Add a comment, and fix a typo that broke the build.
llvm-svn: 29094
This commit is contained in:
1 parent
ae8aa646f1
commit
bbf8990ef7
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user