diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-25 23:58:36 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-25 23:58:36 +0000 |
commit | 25d5745cc5db8ce0da4ed5e3b20587800ae15b65 (patch) | |
tree | 1f3347c82e8ca13a3a6cead846df8006c37d919c /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 4c5d2888f46788f1970994e7607de33ca8c03a0e (diff) | |
download | llvm-25d5745cc5db8ce0da4ed5e3b20587800ae15b65.zip llvm-25d5745cc5db8ce0da4ed5e3b20587800ae15b65.tar.gz llvm-25d5745cc5db8ce0da4ed5e3b20587800ae15b65.tar.bz2 |
Add a RAGreedy::canEvict function.
This doesn't change functionality (much), but it allows for a more fine-grained
eviction policy. The current policy only compares spill weights, and that is not
always the best thing to do. Spill weights are designed to serve linear scan,
and they don't consider live range splitting.
Add a mechanism so canEvict() can request that a live range be evicted and
split/spilled. This is to avoid infinite eviction loops.
llvm-svn: 132101
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions