Skip to content

Commit 950bc6c

Browse files
authored
[LoopFuse] Change placeholder from undef to poison (#131535)
Use `poison` instead of `undef` as a placeholder for phi entries of unreachable predecessors.
1 parent 3e6f618 commit 950bc6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/LoopFuse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1968,7 +1968,7 @@ struct LoopFuser {
19681968
PHINode::Create(LCV->getType(), 2, LCPHI->getName() + ".afterFC0");
19691969
L1HeaderPHI->insertBefore(L1HeaderIP);
19701970
L1HeaderPHI->addIncoming(LCV, FC0.Latch);
1971-
L1HeaderPHI->addIncoming(UndefValue::get(LCV->getType()),
1971+
L1HeaderPHI->addIncoming(PoisonValue::get(LCV->getType()),
19721972
FC0.ExitingBlock);
19731973

19741974
LCPHI->setIncomingValue(L1LatchBBIdx, L1HeaderPHI);

0 commit comments

Comments
 (0)