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
This commit is contained in:
Owen Anderson 2006-07-10 22:15:25 +00:00
parent 7e05714a10
commit b64ab8769e

View 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);