diff options
| author | Dan Gohman <gohman@apple.com> | 2008-10-25 17:46:52 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-10-25 17:46:52 +0000 |
| commit | 191453174d7379540be69ac836f02db68a5becb8 (patch) | |
| tree | e7849cc92b79f11165d3536ffcbfa4df68187762 /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
| parent | bf40eee91a4e1ee4866a94aedad563f01e253a9e (diff) | |
| download | bcm5719-llvm-191453174d7379540be69ac836f02db68a5becb8.tar.gz bcm5719-llvm-191453174d7379540be69ac836f02db68a5becb8.zip | |
Move the code that adds the DeadMachineInstructionElimPass from
target-independent code to target-specific code. This prevents it
from running on targets that aren't using fast-isel.
In addition to saving compile time, this addresses the problem
that not all targets are prepared for it. In order to use this
pass, all instructions must declare all their fixed uses and
defs of physical registers.
llvm-svn: 58144
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index fa386b00f7b..ee3f604abda 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -185,10 +185,6 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, bool Fast) { if (PrintMachineCode) PM.add(createMachineFunctionPrinterPass(cerr)); - // If we're using Fast-ISel, clean up the mess. - if (EnableFastISel) - PM.add(createDeadMachineInstructionElimPass()); - if (EnableLICM) PM.add(createMachineLICMPass()); |

