File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -64,18 +64,17 @@ static bool tagInvariantLoads(Function &F) {
6464
6565 bool Changed = false ;
6666 for (auto &I : instructions (F)) {
67- if (auto *LI = dyn_cast<LoadInst>(&I)) {
67+ if (auto *LI = dyn_cast<LoadInst>(&I))
6868 if (isInvariantLoad (LI, LI->getPointerOperand (), IsKernelFn)) {
6969 markLoadsAsInvariant (LI);
7070 Changed = true ;
7171 }
72- if (auto *II = dyn_cast<IntrinsicInst>(&I))
73- if (II->getIntrinsicID () == Intrinsic::masked_load &&
74- isInvariantLoad (II, II->getOperand (0 ), IsKernelFn)) {
75- markLoadsAsInvariant (II);
76- Changed = true ;
77- }
78- }
72+ if (auto *II = dyn_cast<IntrinsicInst>(&I))
73+ if (II->getIntrinsicID () == Intrinsic::masked_load &&
74+ isInvariantLoad (II, II->getOperand (0 ), IsKernelFn)) {
75+ markLoadsAsInvariant (II);
76+ Changed = true ;
77+ }
7978 }
8079 return Changed;
8180}
You can’t perform that action at this time.
0 commit comments