diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-09-16 00:03:35 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-09-16 00:03:35 +0000 |
commit | e2c92a311260fc80909fe75c3a47382976ba937a (patch) | |
tree | 39257c2163d9fe0f8960343e8baff021f6891921 /llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp | |
parent | e8339b2e633206c991bceacab87e059e652d1b01 (diff) | |
download | bcm5719-llvm-e2c92a311260fc80909fe75c3a47382976ba937a.tar.gz bcm5719-llvm-e2c92a311260fc80909fe75c3a47382976ba937a.zip |
Spill mode: Hoist back-copies locally.
The leaveIntvAfter() function normally inserts a back-copy after the
requested instruction, making the back-copy kill the live range.
In spill mode, try to insert the back-copy before the last use instead.
That means the last use becomes the kill instead of the back-copy. This
lowers the register pressure because the last use can now redefine the
same register it was reading.
This will also improve compile time: The back-copy isn't a kill, so
hoisting it in hoistCopiesForSize() won't force a recomputation of the
source live range. Similarly, if the back-copy isn't hoisted by the
splitter, the spiller will not attempt hoisting it locally.
llvm-svn: 139883
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp')
0 files changed, 0 insertions, 0 deletions