1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Add a comment, and fix a typo that broke the build.

llvm-svn: 29094
This commit is contained in:
Owen Anderson 2006-07-10 22:15:25 +00:00
parent ea91b4ae30
commit bc6e3cc1b3

View File

@ -6255,7 +6255,8 @@ static bool DeadPHICycle(PHINode *PN, std::set<PHINode*> &PotentiallyDeadPHIs) {
// PHINode simplification // PHINode simplification
// //
Instruction *InstCombiner::visitPHINode(PHINode &PN) { 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()) if (Value *V = PN.hasConstantValue())
return ReplaceInstUsesWith(PN, V); return ReplaceInstUsesWith(PN, V);