mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Skip unused values.
llvm-svn: 124842
This commit is contained in:
parent
89c57d3a69
commit
097e61e40f
@ -948,6 +948,8 @@ void SplitEditor::finish() {
|
|||||||
for (LiveInterval::const_vni_iterator I = Edit.getParent().vni_begin(),
|
for (LiveInterval::const_vni_iterator I = Edit.getParent().vni_begin(),
|
||||||
E = Edit.getParent().vni_end(); I != E; ++I) {
|
E = Edit.getParent().vni_end(); I != E; ++I) {
|
||||||
const VNInfo *ParentVNI = *I;
|
const VNInfo *ParentVNI = *I;
|
||||||
|
if (ParentVNI->isUnused())
|
||||||
|
continue;
|
||||||
LiveIntervalMap &LIM = LIMappers[RegAssign.lookup(ParentVNI->def)];
|
LiveIntervalMap &LIM = LIMappers[RegAssign.lookup(ParentVNI->def)];
|
||||||
VNInfo *VNI = LIM.defValue(ParentVNI, ParentVNI->def);
|
VNInfo *VNI = LIM.defValue(ParentVNI, ParentVNI->def);
|
||||||
LIM.getLI()->addRange(LiveRange(ParentVNI->def,
|
LIM.getLI()->addRange(LiveRange(ParentVNI->def,
|
||||||
@ -976,7 +978,7 @@ void SplitEditor::finish() {
|
|||||||
for (LiveInterval::const_vni_iterator I = Edit.getParent().vni_begin(),
|
for (LiveInterval::const_vni_iterator I = Edit.getParent().vni_begin(),
|
||||||
E = Edit.getParent().vni_end(); I != E; ++I) {
|
E = Edit.getParent().vni_end(); I != E; ++I) {
|
||||||
const VNInfo *PHIVNI = *I;
|
const VNInfo *PHIVNI = *I;
|
||||||
if (!PHIVNI->isPHIDef())
|
if (PHIVNI->isUnused() || !PHIVNI->isPHIDef())
|
||||||
continue;
|
continue;
|
||||||
unsigned RegIdx = RegAssign.lookup(PHIVNI->def);
|
unsigned RegIdx = RegAssign.lookup(PHIVNI->def);
|
||||||
LiveIntervalMap &LIM = LIMappers[RegIdx];
|
LiveIntervalMap &LIM = LIMappers[RegIdx];
|
||||||
|
Loading…
Reference in New Issue
Block a user