Add a comment, and fix a typo that broke the build.
authorOwen Anderson <resistor@mac.com>
Mon, 10 Jul 2006 22:15:25 +0000 (22:15 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 10 Jul 2006 22:15:25 +0000 (22:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29094 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index ce9c47c03cbf7c326e82bcc10a23f0c1f78231bb..1fc4211ea74a885a20d284e9e857e68a47d5dafd 100644 (file)
@@ -6255,7 +6255,8 @@ static bool DeadPHICycle(PHINode *PN, std::set<PHINode*> &PotentiallyDeadPHIs) {
 // 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);