aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectSource.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-20 18:19:48 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-20 18:19:48 +0000
commit0e34c1dfac5f55d58cf16197b3e87f49089a5339 (patch)
treed962d8b816d631b41da1bb3f6124d029ebda2d02 /lldb/source/Commands/CommandObjectSource.cpp
parentd828f316afaaf6825ea968eac5a46d34d375810d (diff)
downloadllvm-0e34c1dfac5f55d58cf16197b3e87f49089a5339.zip
llvm-0e34c1dfac5f55d58cf16197b3e87f49089a5339.tar.gz
llvm-0e34c1dfac5f55d58cf16197b3e87f49089a5339.tar.bz2
Prefer cheap registers for busy live ranges.
On the x86-64 and thumb2 targets, some registers are more expensive to encode than others in the same register class. Add a CostPerUse field to the TableGen register description, and make it available from TRI->getCostPerUse. This represents the cost of a REX prefix or a 32-bit instruction encoding required by choosing a high register. Teach the greedy register allocator to prefer cheap registers for busy live ranges (as indicated by spill weight). llvm-svn: 129864
Diffstat (limited to 'lldb/source/Commands/CommandObjectSource.cpp')
0 files changed, 0 insertions, 0 deletions