summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-01-07 02:08:57 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-01-07 02:08:57 +0000
commitf6768bd9cb07f56690f34cf973637cda4d3197f4 (patch)
tree75005e1b4cbeb542a7f839c1046ce122f74e8467 /clang/lib/AST/DeclBase.cpp
parentde482c408ccef5bb66dc473a8c23e4b1e331e20b (diff)
downloadbcm5719-llvm-f6768bd9cb07f56690f34cf973637cda4d3197f4.tar.gz
bcm5719-llvm-f6768bd9cb07f56690f34cf973637cda4d3197f4.zip
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. llvm-svn: 61847
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud