diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-01-07 02:08:57 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-01-07 02:08:57 +0000 |
commit | 8f90b6eb2fd0125f5b779de80954944f9071fb87 (patch) | |
tree | 4403ff075f0b061b7ba6286c8d30421b1dba012a /lib/Transforms/IPO/FunctionAttrs.cpp | |
parent | d37eaa3b9768f464323ace16e6aecda605ba3f49 (diff) |
The coalescer does not coalesce a virtual register to a physical register if any of the physical register's sub-register live intervals overlaps with the virtual register. This is overly conservative. It prevents a extract_subreg from being coalesced away:
v1024 = EDI // not killed
=
= EDI
One possible solution is for the coalescer to examine the sub-register live intervals in the same manner as the physical register. Another possibility is to examine defs and uses (when needed) of sub-registers. Both solutions are too expensive. For now, look for "short virtual intervals" and scan instructions to look for conflict instead.
This is a small win on x86-64. e.g. It shaves 403.gcc by ~80 instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61847 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/FunctionAttrs.cpp')
0 files changed, 0 insertions, 0 deletions