mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Add a comment, and fix a typo that broke the build.
llvm-svn: 29094
This commit is contained in:
parent
ea91b4ae30
commit
bc6e3cc1b3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user