mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-29 06:32:22 +00:00
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
This commit is contained in:
parent
80eb233a3c
commit
3ccfce0e35
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user