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 | f6768bd9cb07f56690f34cf973637cda4d3197f4 (patch) | |
| tree | 75005e1b4cbeb542a7f839c1046ce122f74e8467 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | de482c408ccef5bb66dc473a8c23e4b1e331e20b (diff) | |
| download | llvm-f6768bd9cb07f56690f34cf973637cda4d3197f4.zip llvm-f6768bd9cb07f56690f34cf973637cda4d3197f4.tar.gz llvm-f6768bd9cb07f56690f34cf973637cda4d3197f4.tar.bz2 | |
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 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
