Skip to content

Commit 6c6e423

Browse files
committed
Fix bracket issue
1 parent 4039e14 commit 6c6e423

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

llvm/lib/Target/NVPTX/NVPTXTagInvariantLoads.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)