mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
Although probably not necessary, guard against a potential assertion by
using isNullValue() instead of getZExtValue() == 0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34815 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4da0451821
commit
a3507ebd33
@ -139,7 +139,7 @@ void CondProp::SimplifyPredecessors(BranchInst *BI) {
|
|||||||
// ultimate destination.
|
// ultimate destination.
|
||||||
bool PHIGone = PN->getNumIncomingValues() == 2;
|
bool PHIGone = PN->getNumIncomingValues() == 2;
|
||||||
RevectorBlockTo(PN->getIncomingBlock(i-1),
|
RevectorBlockTo(PN->getIncomingBlock(i-1),
|
||||||
BI->getSuccessor(CB->getZExtValue() == 0));
|
BI->getSuccessor(CB->isNullValue()));
|
||||||
++NumBrThread;
|
++NumBrThread;
|
||||||
|
|
||||||
// If there were two predecessors before this simplification, the PHI node
|
// If there were two predecessors before this simplification, the PHI node
|
||||||
|
Loading…
x
Reference in New Issue
Block a user