mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix a check for PHINodes with two incoming values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133449 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cad129bcc0
commit
332d7e871c
@ -141,7 +141,7 @@ Value *PHINode::removeIncomingValue(unsigned Idx, bool DeletePHIIfEmpty) {
|
||||
void PHINode::growOperands() {
|
||||
unsigned e = getNumOperands();
|
||||
unsigned NumOps = e + e / 2;
|
||||
if (NumOps < 4) NumOps = 4; // 4 op PHI nodes are VERY common.
|
||||
if (NumOps < 2) NumOps = 2; // 2 op PHI nodes are VERY common.
|
||||
|
||||
Use *OldOps = op_begin();
|
||||
BasicBlock **OldBlocks = block_begin();
|
||||
|
Loading…
Reference in New Issue
Block a user