diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2009-10-02 04:57:15 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2009-10-02 04:57:15 +0000 |
| commit | 2dcee28a61339b6d5b7e5e20f6a4e626f6bc2a5d (patch) | |
| tree | 491f514390465ebd106cac3eedaea63c363bb526 /llvm/lib | |
| parent | 8a744ad8a695069ef1c68e14c6e5333b84e83ddd (diff) | |
| download | bcm5719-llvm-2dcee28a61339b6d5b7e5e20f6a4e626f6bc2a5d.tar.gz bcm5719-llvm-2dcee28a61339b6d5b7e5e20f6a4e626f6bc2a5d.zip | |
Move load / store multiple before post-alloc scheduling.
llvm-svn: 83236
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMTargetMachine.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetMachine.cpp b/llvm/lib/Target/ARM/ARMTargetMachine.cpp index ef42bd20caf..32ddc20a560 100644 --- a/llvm/lib/Target/ARM/ARMTargetMachine.cpp +++ b/llvm/lib/Target/ARM/ARMTargetMachine.cpp @@ -22,10 +22,6 @@ #include "llvm/Target/TargetRegistry.h" using namespace llvm; -static cl::opt<bool> -LdStBeforeSched("ldstopti-before-sched2", cl::Hidden, - cl::desc("Move ld / st multiple pass before postalloc scheduling")); - static const MCAsmInfo *createMCAsmInfo(const Target &T, const StringRef &TT) { Triple TheTriple(TT); @@ -109,8 +105,7 @@ bool ARMBaseTargetMachine::addPreSched2(PassManagerBase &PM, CodeGenOpt::Level OptLevel) { // FIXME: temporarily disabling load / store optimization pass for Thumb1. if (OptLevel != CodeGenOpt::None && !Subtarget.isThumb1Only()) - if (LdStBeforeSched) - PM.add(createARMLoadStoreOptimizationPass()); + PM.add(createARMLoadStoreOptimizationPass()); return true; } @@ -118,11 +113,8 @@ bool ARMBaseTargetMachine::addPreSched2(PassManagerBase &PM, bool ARMBaseTargetMachine::addPreEmitPass(PassManagerBase &PM, CodeGenOpt::Level OptLevel) { // FIXME: temporarily disabling load / store optimization pass for Thumb1. - if (OptLevel != CodeGenOpt::None && !Subtarget.isThumb1Only()) { - if (!LdStBeforeSched) - PM.add(createARMLoadStoreOptimizationPass()); + if (OptLevel != CodeGenOpt::None && !Subtarget.isThumb1Only()) PM.add(createIfConverterPass()); - } if (Subtarget.isThumb2()) { PM.add(createThumb2ITBlockPass()); |

