Skip to content

Commit 7d33d47

Browse files
committed
[LoopFuse] Use poison instead of undef as placeholder for phi entry of unreachable predecessor [NFC]
1 parent a4b4974 commit 7d33d47

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
@@ -1684,7 +1684,7 @@ struct LoopFuser {
16841684
PHINode::Create(LCV->getType(), 2, LCPHI->getName() + ".afterFC0");
16851685
L1HeaderPHI->insertBefore(L1HeaderIP);
16861686
L1HeaderPHI->addIncoming(LCV, FC0.Latch);
1687-
L1HeaderPHI->addIncoming(UndefValue::get(LCV->getType()),
1687+
L1HeaderPHI->addIncoming(PoisonValue::get(LCV->getType()),
16881688
FC0.ExitingBlock);
16891689

16901690
LCPHI->setIncomingValue(L1LatchBBIdx, L1HeaderPHI);

0 commit comments

Comments
 (0)