diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-29 17:47:49 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-29 17:47:49 +0000 |
commit | 140542fcea7b915304b86879ab14637cfcaf2632 (patch) | |
tree | 29f02a37dcae23545ecafc69aa56e16c469872ce /llvm/lib/CodeGen/SplitKit.cpp | |
parent | 16bd9f1ab5e16f3dfaa054e72a75c716ab286fb3 (diff) | |
download | bcm5719-llvm-140542fcea7b915304b86879ab14637cfcaf2632.tar.gz bcm5719-llvm-140542fcea7b915304b86879ab14637cfcaf2632.zip |
Don't transfer unused values to the new intervals formed by splitting.
llvm-svn: 117673
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SplitKit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp index 84d3003859b..763cce82519 100644 --- a/llvm/lib/CodeGen/SplitKit.cpp +++ b/llvm/lib/CodeGen/SplitKit.cpp @@ -913,6 +913,9 @@ void SplitEditor::computeRemainder() { 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? |