diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-06-20 17:46:19 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-06-20 17:46:19 +0000 |
commit | 332d7e871cbff385e6bf7d42565eb7d92cde0ed6 (patch) | |
tree | ba37bcd4f8ad3d06373d6bb1c2247e2a4c5ccb95 /lib/VMCore/Instructions.cpp | |
parent | cad129bcc0a23d1acfb6560f12ff1066c7b42ba0 (diff) | |
download | external_llvm-332d7e871cbff385e6bf7d42565eb7d92cde0ed6.zip external_llvm-332d7e871cbff385e6bf7d42565eb7d92cde0ed6.tar.gz external_llvm-332d7e871cbff385e6bf7d42565eb7d92cde0ed6.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r-- | lib/VMCore/Instructions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 116a0d4..0eddd5a 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -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(); |