Skip to content

Commit 1e05c3a

Browse files
committed
not
1 parent 5295ced commit 1e05c3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Scalar/LICM.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2823,9 +2823,9 @@ static bool hoistBOAssociation(Instruction &I, Loop &L,
28232823
assert(Preheader && "Loop is not in simplify form?");
28242824

28252825
auto *Inv = BinaryOperator::Create(Opcode, C1, C2, "invariant.op",
2826-
Preheader->getTerminator());
2827-
auto *NewBO =
2828-
BinaryOperator::Create(Opcode, LV, Inv, BO->getName() + ".reass", BO);
2826+
Preheader->getTerminator()->getIterator());
2827+
auto *NewBO = BinaryOperator::Create(
2828+
Opcode, LV, Inv, BO->getName() + ".reass", BO->getIterator());
28292829

28302830
// Copy NUW for ADDs if both instructions have it.
28312831
if (Opcode == Instruction::Add && BO->hasNoUnsignedWrap() &&

0 commit comments

Comments
 (0)