Run codegen dce pass for all targets at all optimization levels. Previously it's
authorEvan Cheng <evan.cheng@apple.com>
Sat, 6 Feb 2010 09:07:11 +0000 (09:07 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 6 Feb 2010 09:07:11 +0000 (09:07 +0000)
commit00a99a35840451a291eb61a192a750908a4073ae
tree9339c885e326a6d881e123500e772ba97e35e9a6
parente3e86dce64163a2082f3fc7be64c7dbb6e580493
Run codegen dce pass for all targets at all optimization levels. Previously it's
only run for x86 with fastisel. I've found it being very effective in
eliminating some obvious dead code as result of formal parameter lowering
especially when tail call optimization eliminated the need for some of the loads
from fixed frame objects. It also shrinks a number of the tests. A couple of
tests no longer make sense and are now eliminated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95493 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
lib/CodeGen/DeadMachineInstructionElim.cpp
lib/CodeGen/LLVMTargetMachine.cpp
lib/CodeGen/LiveIntervalAnalysis.cpp
lib/Target/X86/X86TargetMachine.cpp
test/CodeGen/ARM/2009-10-30.ll
test/CodeGen/ARM/long_shift.ll
test/CodeGen/ARM/remat-2.ll [deleted file]
test/CodeGen/ARM/remat.ll
test/CodeGen/X86/2007-11-30-TestLoadFolding.ll [deleted file]
test/CodeGen/X86/2009-09-10-LoadFoldingBug.ll
test/CodeGen/X86/codegen-dce.ll [new file with mode: 0644]
test/CodeGen/X86/convert-2-addr-3-addr-inc64.ll
test/CodeGen/X86/ins_subreg_coalesce-3.ll
test/CodeGen/X86/sext-i1.ll
test/CodeGen/X86/sse3.ll
test/CodeGen/X86/tailcall2.ll
test/CodeGen/X86/twoaddr-delete.ll [deleted file]