Skip to content

Commit 8481016

Browse files
committed
fix compile-time issue in spec2017 527.cam4_r
1 parent 5813f51 commit 8481016

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5077,6 +5077,9 @@ InstCombinerImpl::pushFreezeToPreventPoisonFromPropagating(FreezeInst &OrigFI) {
50775077
if (U == OrigUse)
50785078
return nullptr;
50795079

5080+
if (isa<PoisonValue>(V))
5081+
continue;
5082+
50805083
auto *UserI = cast<Instruction>(U->getUser());
50815084
if (auto *PN = dyn_cast<PHINode>(UserI))
50825085
Builder.SetInsertPoint(PN->getIncomingBlock(*U)->getTerminator());

0 commit comments

Comments
 (0)