diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-03-27 15:13:58 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-03-27 15:13:58 +0000 |
commit | 9c1ad5cb7d52c84fbf955aa80112e8a96990e629 (patch) | |
tree | f55c12a927c0869154322faae6bf06615e042211 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | c9d9b92dc119dbfce7201100991a281d93f4f191 (diff) | |
download | llvm-9c1ad5cb7d52c84fbf955aa80112e8a96990e629.zip llvm-9c1ad5cb7d52c84fbf955aa80112e8a96990e629.tar.gz llvm-9c1ad5cb7d52c84fbf955aa80112e8a96990e629.tar.bz2 |
Add an MRI::tracksLiveness() flag.
Late optimization passes like branch folding and tail duplication can
transform the machine code in a way that makes it expensive to keep the
register liveness information up to date. There is a fuzzy line between
register allocation and late scheduling where the liveness information
degrades.
The MRI::tracksLiveness() flag makes the line clear: While true,
liveness information is accurate, and can be used for register
scavenging. Once the flag is false, liveness information is not
accurate, and can only be used as a hint.
Late passes generally don't need the liveness information, but they will
sometimes use the register scavenger to help update it. The scavenger
enforces strict correctness, and we have to spend a lot of code to
update register liveness that may never be used.
llvm-svn: 153511
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions