projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cad129b
)
Fix a check for PHINodes with two incoming values.
author
Jay Foad
<jay.foad@gmail.com>
Mon, 20 Jun 2011 17:46:19 +0000
(17:46 +0000)
committer
Jay Foad
<jay.foad@gmail.com>
Mon, 20 Jun 2011 17:46:19 +0000
(17:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133449
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Instructions.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Instructions.cpp
b/lib/VMCore/Instructions.cpp
index 116a0d48c55dd6030d6b443dbd11085289df1b39..0eddd5ada7ae9c71e39efb70ef090d25bb699c04 100644
(file)
--- 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();