[llvm-commits] [llvm] r133449 - /llvm/trunk/lib/VMCore/Instructions.cpp
Jay Foad
jay.foad at gmail.com
Mon Jun 20 10:46:19 PDT 2011
Author: foad
Date: Mon Jun 20 12:46:19 2011
New Revision: 133449
URL: http://llvm.org/viewvc/llvm-project?rev=133449&view=rev
Log:
Fix a check for PHINodes with two incoming values.
Modified:
llvm/trunk/lib/VMCore/Instructions.cpp
Modified: llvm/trunk/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instructions.cpp?rev=133449&r1=133448&r2=133449&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Instructions.cpp (original)
+++ llvm/trunk/lib/VMCore/Instructions.cpp Mon Jun 20 12:46:19 2011
@@ -141,7 +141,7 @@
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();
More information about the llvm-commits
mailing list