[llvm-commits] [llvm] r56893 - /llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp
Owen Anderson
resistor at mac.com
Tue Sep 30 16:58:50 PDT 2008
Author: resistor
Date: Tue Sep 30 18:58:47 2008
New Revision: 56893
URL: http://llvm.org/viewvc/llvm-project?rev=56893&view=rev
Log:
Mark merged-in VNInfo's as being PHIKilled.
Modified:
llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp
Modified: llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp?rev=56893&r1=56892&r2=56893&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp (original)
+++ llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp Tue Sep 30 18:58:47 2008
@@ -977,6 +977,11 @@
}
}
+ LiveInterval& Int = LI.getOrCreateInterval(I->first);
+ const LiveRange* LR =
+ Int.getLiveRangeContaining(LI.getMBBEndIdx(SI->second));
+ LR->valno->hasPHIKill = true;
+
I->second.erase(SI->first);
}
More information about the llvm-commits
mailing list