[llvm] 7d33d47 - [LoopFuse] Use poison instead of undef as placeholder for phi entry of unreachable predecessor [NFC]
Nuno Lopes via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 30 04:01:47 PDT 2024
Author: Nuno Lopes
Date: 2024-06-30T11:59:58+01:00
New Revision: 7d33d4720f85fa2df7c1307bcc185017b6e4dd25
URL: https://github.com/llvm/llvm-project/commit/7d33d4720f85fa2df7c1307bcc185017b6e4dd25
DIFF: https://github.com/llvm/llvm-project/commit/7d33d4720f85fa2df7c1307bcc185017b6e4dd25.diff
LOG: [LoopFuse] Use poison instead of undef as placeholder for phi entry of unreachable predecessor [NFC]
Added:
Modified:
llvm/lib/Transforms/Scalar/LoopFuse.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/LoopFuse.cpp b/llvm/lib/Transforms/Scalar/LoopFuse.cpp
index 22ae970a52ea7..8512b2accbe7c 100644
--- a/llvm/lib/Transforms/Scalar/LoopFuse.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopFuse.cpp
@@ -1684,7 +1684,7 @@ struct LoopFuser {
PHINode::Create(LCV->getType(), 2, LCPHI->getName() + ".afterFC0");
L1HeaderPHI->insertBefore(L1HeaderIP);
L1HeaderPHI->addIncoming(LCV, FC0.Latch);
- L1HeaderPHI->addIncoming(UndefValue::get(LCV->getType()),
+ L1HeaderPHI->addIncoming(PoisonValue::get(LCV->getType()),
FC0.ExitingBlock);
LCPHI->setIncomingValue(L1LatchBBIdx, L1HeaderPHI);
More information about the llvm-commits
mailing list