mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Be more aggressive about renumbering vregs after splitting them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
476615934a
commit
6cf7c390ec
@ -1127,9 +1127,11 @@ bool PreAllocSplitting::Rematerialize(unsigned vreg, VNInfo* ValNo,
|
|||||||
LIs->InsertMachineInstrInMaps(prior(RestorePt), RestoreIdx);
|
LIs->InsertMachineInstrInMaps(prior(RestorePt), RestoreIdx);
|
||||||
|
|
||||||
if (KillPt->getParent() == BarrierMBB) {
|
if (KillPt->getParent() == BarrierMBB) {
|
||||||
UpdateRegisterInterval(ValNo, LIs->getUseIndex(KillIdx)+1,
|
VNInfo* After = UpdateRegisterInterval(ValNo, LIs->getUseIndex(KillIdx)+1,
|
||||||
LIs->getDefIndex(RestoreIdx));
|
LIs->getDefIndex(RestoreIdx));
|
||||||
|
|
||||||
|
RenumberValno(After);
|
||||||
|
|
||||||
++NumSplits;
|
++NumSplits;
|
||||||
++NumRemats;
|
++NumRemats;
|
||||||
return true;
|
return true;
|
||||||
@ -1312,9 +1314,11 @@ bool PreAllocSplitting::SplitRegLiveInterval(LiveInterval *LI) {
|
|||||||
UpdateSpillSlotInterval(ValNo, LIs->getUseIndex(SpillIndex)+1,
|
UpdateSpillSlotInterval(ValNo, LIs->getUseIndex(SpillIndex)+1,
|
||||||
LIs->getDefIndex(RestoreIndex));
|
LIs->getDefIndex(RestoreIndex));
|
||||||
|
|
||||||
UpdateRegisterInterval(ValNo, LIs->getUseIndex(SpillIndex)+1,
|
VNInfo* After = UpdateRegisterInterval(ValNo,
|
||||||
|
LIs->getUseIndex(SpillIndex)+1,
|
||||||
LIs->getDefIndex(RestoreIndex));
|
LIs->getDefIndex(RestoreIndex));
|
||||||
|
RenumberValno(After);
|
||||||
|
|
||||||
++NumSplits;
|
++NumSplits;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -pre-alloc-split -stats |& \
|
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -pre-alloc-split -stats |& \
|
||||||
; RUN: grep {pre-alloc-split} | count 2
|
; RUN: grep {pre-alloc-split} | count 3
|
||||||
|
|
||||||
define i32 @t() {
|
define i32 @t() {
|
||||||
entry:
|
entry:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user