From bbf8990ef7531b2aed151e970bb3087ed38531f4 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Mon, 10 Jul 2006 22:15:25 +0000 Subject: Add a comment, and fix a typo that broke the build. llvm-svn: 29094 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index ce9c47c03cb..1fc4211ea74 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -6255,7 +6255,8 @@ static bool DeadPHICycle(PHINode *PN, std::set &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); -- cgit v1.2.3