diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-02 05:29:58 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-02 05:29:58 +0000 |
| commit | 7d4067936a977c8c692884bfe131dd51406a0412 (patch) | |
| tree | 09c24c0e88c64f1cf8ef661d8594ba76fb168419 /llvm/lib/CodeGen/LiveRangeEdit.h | |
| parent | 55f1e202a88a4f54c3b5dd7fbb35c8d5ea071b3e (diff) | |
| download | bcm5719-llvm-7d4067936a977c8c692884bfe131dd51406a0412.tar.gz bcm5719-llvm-7d4067936a977c8c692884bfe131dd51406a0412.zip | |
Minimize the slot indexes spanned by register ranges created when splitting.
When an interfering live range ends at a dead slot index between two
instructions, make sure that the inserted copy instruction gets a slot index
after the dead ones. This makes it possible to avoid the interference.
Ideally, there shouldn't be interference ending at a deleted instruction, but
physical register coalescing can sometimes do that to sub-registers.
This fixes PR9823.
llvm-svn: 130687
Diffstat (limited to 'llvm/lib/CodeGen/LiveRangeEdit.h')
| -rw-r--r-- | llvm/lib/CodeGen/LiveRangeEdit.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveRangeEdit.h b/llvm/lib/CodeGen/LiveRangeEdit.h index c008d7647db..14d227e6195 100644 --- a/llvm/lib/CodeGen/LiveRangeEdit.h +++ b/llvm/lib/CodeGen/LiveRangeEdit.h @@ -165,7 +165,8 @@ public: const Remat &RM, LiveIntervals&, const TargetInstrInfo&, - const TargetRegisterInfo&); + const TargetRegisterInfo&, + bool Late = false); /// markRematerialized - explicitly mark a value as rematerialized after doing /// it manually. |

