mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 22:24:28 +00:00
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:
@ -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);
|
||||||
|
Reference in New Issue
Block a user