[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp

Owen Anderson resistor at mac.com
Mon Jul 10 15:15:37 PDT 2006



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.497 -> 1.498
---
Log message:

Add a comment, and fix a typo that broke the build.


---
Diffs of the changes:  (+2 -1)

 InstructionCombining.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.497 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.498
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.497	Mon Jul 10 17:03:18 2006
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Mon Jul 10 17:15:25 2006
@@ -6255,7 +6255,8 @@
 // PHINode simplification
 //
 Instruction *InstCombiner::visitPHINode(PHINode &PN) {
-  if (mustPreservePassID(LCSSAID)) return 0;
+  // If LCSSA is around, don't mess with Phi nodes
+  if (mustPreserveAnalysisID(LCSSAID)) return 0;
   
   if (Value *V = PN.hasConstantValue())
     return ReplaceInstUsesWith(PN, V);






More information about the llvm-commits mailing list