diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-20 18:19:48 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-20 18:19:48 +0000 |
commit | 0e34c1dfac5f55d58cf16197b3e87f49089a5339 (patch) | |
tree | d962d8b816d631b41da1bb3f6124d029ebda2d02 /lldb/source/Commands/CommandObjectSource.cpp | |
parent | d828f316afaaf6825ea968eac5a46d34d375810d (diff) | |
download | llvm-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