[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 8 12:08:01 PDT 2002
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.60 -> 1.61
---
Log message:
It is illegal for PHI nodes to have zero values, delete the code to handle them
---
Diffs of the changes:
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.60 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.61
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.60 Tue Oct 8 11:16:40 2002
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Tue Oct 8 12:07:39 2002
@@ -630,8 +630,6 @@
//
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));
More information about the llvm-commits
mailing list