summaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2006-07-10 22:15:25 +0000
committerOwen Anderson <resistor@mac.com>2006-07-10 22:15:25 +0000
commitb64ab8769ef54d8087fcebb81a76ea34db004ae7 (patch)
treed9b00fffb64ce2b65a75179a5b370d09c52a413c /lib/Transforms
parent7e05714a10eeabd595cc25e1a5d927e2a86ca698 (diff)
downloadexternal_llvm-b64ab8769ef54d8087fcebb81a76ea34db004ae7.zip
external_llvm-b64ab8769ef54d8087fcebb81a76ea34db004ae7.tar.gz
external_llvm-b64ab8769ef54d8087fcebb81a76ea34db004ae7.tar.bz2
Add a comment, and fix a typo that broke the build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index ce9c47c0..1fc4211 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -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);