[llvm-commits] [llvm] r117673 - /llvm/trunk/lib/CodeGen/SplitKit.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Oct 29 10:47:49 PDT 2010
Author: stoklund
Date: Fri Oct 29 12:47:49 2010
New Revision: 117673
URL: http://llvm.org/viewvc/llvm-project?rev=117673&view=rev
Log:
Don't transfer unused values to the new intervals formed by splitting.
Modified:
llvm/trunk/lib/CodeGen/SplitKit.cpp
Modified: llvm/trunk/lib/CodeGen/SplitKit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SplitKit.cpp?rev=117673&r1=117672&r2=117673&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SplitKit.cpp (original)
+++ llvm/trunk/lib/CodeGen/SplitKit.cpp Fri Oct 29 12:47:49 2010
@@ -913,6 +913,9 @@
for (LiveInterval::const_vni_iterator I = parent.vni_begin(),
E = parent.vni_end(); I != E; ++I) {
const VNInfo *VNI = *I;
+ // Don't transfer unused values to the new intervals.
+ if (VNI->isUnused())
+ continue;
// Original def is contained in the split intervals.
if (intervalsLiveAt(VNI->def)) {
// Did this value escape?
More information about the llvm-commits
mailing list