Skip to content

Commit 44e9e4e

Browse files
committed
!fixup add comment regarding folding.
1 parent b305b7e commit 44e9e4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Scalar/LICM.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2880,6 +2880,7 @@ static bool hoistBOAssociation(Instruction &I, Loop &L,
28802880
} else if (Opcode == Instruction::Or) {
28812881
bool Disjoint = cast<PossiblyDisjointInst>(BO)->isDisjoint() &&
28822882
cast<PossiblyDisjointInst>(BO0)->isDisjoint();
2883+
// If `Inv` was not constant-folded, a new Instruction has been created.
28832884
if (auto *I = dyn_cast<PossiblyDisjointInst>(Inv))
28842885
I->setIsDisjoint(Disjoint);
28852886
cast<PossiblyDisjointInst>(NewBO)->setIsDisjoint(Disjoint);

0 commit comments

Comments
 (0)