mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
Skip unused values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124842 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
45139874a7
commit
9ecd1e7197
@ -948,6 +948,8 @@ void SplitEditor::finish() {
|
||||
for (LiveInterval::const_vni_iterator I = Edit.getParent().vni_begin(),
|
||||
E = Edit.getParent().vni_end(); I != E; ++I) {
|
||||
const VNInfo *ParentVNI = *I;
|
||||
if (ParentVNI->isUnused())
|
||||
continue;
|
||||
LiveIntervalMap &LIM = LIMappers[RegAssign.lookup(ParentVNI->def)];
|
||||
VNInfo *VNI = LIM.defValue(ParentVNI, 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(),
|
||||
E = Edit.getParent().vni_end(); I != E; ++I) {
|
||||
const VNInfo *PHIVNI = *I;
|
||||
if (!PHIVNI->isPHIDef())
|
||||
if (PHIVNI->isUnused() || !PHIVNI->isPHIDef())
|
||||
continue;
|
||||
unsigned RegIdx = RegAssign.lookup(PHIVNI->def);
|
||||
LiveIntervalMap &LIM = LIMappers[RegIdx];
|
||||
|
Loading…
x
Reference in New Issue
Block a user