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 | 3ccfce0e35371d20fb84f65185f7f0126d072461 (patch) | |
tree | 005dcb3a4f90f2f4b9d50d70d3680e0277a77937 /lib/CodeGen/SplitKit.cpp | |
parent | 80eb233a3ce1a6f2e6c0847cb3e456d735e37569 (diff) |
Don't transfer unused values to the new intervals formed by splitting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.cpp')
-rw-r--r-- | lib/CodeGen/SplitKit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp index 84d3003859..763cce8251 100644 --- a/lib/CodeGen/SplitKit.cpp +++ b/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? |