Skip to content

Commit 5295ced

Browse files
committed
probably
1 parent f9c07a8 commit 5295ced

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Transforms/Scalar/LICM.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2767,8 +2767,9 @@ static bool hoistMulAddAssociation(Instruction &I, Loop &L,
27672767
unsigned OpIdx = U->getOperandNo();
27682768
auto *LHS = OpIdx == 0 ? Mul : Ins->getOperand(0);
27692769
auto *RHS = OpIdx == 1 ? Mul : Ins->getOperand(1);
2770-
auto *NewBO = BinaryOperator::Create(Ins->getOpcode(), LHS, RHS,
2771-
Ins->getName() + ".reass", Ins);
2770+
auto *NewBO =
2771+
BinaryOperator::Create(Ins->getOpcode(), LHS, RHS,
2772+
Ins->getName() + ".reass", Ins->getIterator());
27722773
NewBO->copyIRFlags(Ins);
27732774
if (VariantOp == Ins)
27742775
VariantOp = NewBO;

0 commit comments

Comments
 (0)