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:
6eaeb57
)
It is illegal for PHI nodes to have zero values, delete the code to handle them
author
Chris Lattner
<sabre@nondot.org>
Tue, 8 Oct 2002 17:07:39 +0000
(17:07 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 8 Oct 2002 17:07:39 +0000
(17:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4071
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index f0e639742dc2a97dc71ff9da1a133b2fa304a2ac..74a1496bfac1ab5db53a141229af6638daa012bb 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-630,8
+630,6
@@
Instruction *InstCombiner::visitCastInst(CastInst &CI) {
//
Instruction *InstCombiner::visitPHINode(PHINode &PN) {
// If the PHI node only has one incoming value, eliminate the PHI node...
- if (PN.getNumIncomingValues() == 0)
- return ReplaceInstUsesWith(PN, Constant::getNullValue(PN.getType()));
if (PN.getNumIncomingValues() == 1)
return ReplaceInstUsesWith(PN, PN.getIncomingValue(0));