forked from OSchip/llvm-project
Don't transfer unused values to the new intervals formed by splitting.
llvm-svn: 117673
This commit is contained in:
parent
16bd9f1ab5
commit
140542fcea
|
@ -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…
Reference in New Issue