summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitbbf8990ef7531b2aed151e970bb3087ed38531f4 (patch)
tree8aaa6f8ceaa5886b9d5707b20b9ee46404bc944c /llvm/lib/Transforms
parentae8aa646f1682b697c877a07ef74e8f7f17d08f4 (diff)
downloadbcm5719-llvm-bbf8990ef7531b2aed151e970bb3087ed38531f4.tar.gz
bcm5719-llvm-bbf8990ef7531b2aed151e970bb3087ed38531f4.zip
Add a comment, and fix a typo that broke the build.
llvm-svn: 29094
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp3
1 files changed, 2 insertions, 1 deletions
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<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);
OpenPOWER on IntegriCloud