We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b4100d commit 678851bCopy full SHA for 678851b
llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp
@@ -146,7 +146,7 @@ bool RISCVCodeGenPrepare::widenVPMerge(IntrinsicInst &II) {
146
return false;
147
148
auto *Phi = dyn_cast<PHINode>(PhiV);
149
- if (!Phi || Phi->getNumUses() > 2 || Phi->getNumIncomingValues() != 2 ||
+ if (!Phi || !Phi->hasOneUse() || Phi->getNumIncomingValues() != 2 ||
150
!match(Phi->getIncomingValue(0), m_Zero()) ||
151
Phi->getIncomingValue(1) != &II)
152
0 commit comments