diff options
author | Dan Gohman <gohman@apple.com> | 2008-10-02 14:56:12 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-10-02 14:56:12 +0000 |
commit | b158fd751c5e8957a8c60a48a4bf0af6f522b7c1 (patch) | |
tree | cd365d90a692ac7a731cad8e238246485958c6b0 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | b04e6edba910509975a2e09900a1ab38fd81299f (diff) | |
download | llvm-b158fd751c5e8957a8c60a48a4bf0af6f522b7c1.zip llvm-b158fd751c5e8957a8c60a48a4bf0af6f522b7c1.tar.gz llvm-b158fd751c5e8957a8c60a48a4bf0af6f522b7c1.tar.bz2 |
Work around an interaction between fast-isel and regalloc=local. The
local register allocator's physreg liveness doesn't recognize subregs,
so it doesn't know that defs of %ecx that are immediately followed by
uses of %cl aren't dead. This comes up due to the way fast-isel emits
shift instructions.
This is a temporary workaround. Arguably, local regalloc should
handle subreg references correctly. On the other hand, perhaps
fast-isel should use INSERT_SUBREG instead of just assigning to the
most convenient super-register of %cl when lowering shifts.
This fixes MultiSource/Benchmarks/MallocBench/espresso,
MultiSource/Applications/hexxagon, and others, under -fast.
llvm-svn: 56947
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions