diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2010-04-07 18:19:07 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2010-04-07 18:19:07 +0000 |
| commit | 3e27a4b83f35ac6c5c792c77c3b2b58cfaedd484 (patch) | |
| tree | d7436e0e6b49d2703afbda6a3f1e421d32048508 /lib/Target/ARM/ARMTargetMachine.cpp | |
| parent | f4c97dfd87d6514e7976bafa07b55aee3e3a81b5 (diff) | |
| download | external_llvm-3e27a4b83f35ac6c5c792c77c3b2b58cfaedd484.zip external_llvm-3e27a4b83f35ac6c5c792c77c3b2b58cfaedd484.tar.gz external_llvm-3e27a4b83f35ac6c5c792c77c3b2b58cfaedd484.tar.bz2 | |
Some initial version of global merger
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100641 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMTargetMachine.cpp')
| -rw-r--r-- | lib/Target/ARM/ARMTargetMachine.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index 95f57b7..ab299b1 100644 --- a/lib/Target/ARM/ARMTargetMachine.cpp +++ b/lib/Target/ARM/ARMTargetMachine.cpp @@ -79,9 +79,15 @@ ThumbTargetMachine::ThumbTargetMachine(const Target &T, const std::string &TT, TLInfo(*this) { } +// Pass Pipeline Configuration +bool ARMBaseTargetMachine::addPreISel(PassManagerBase &PM, + CodeGenOpt::Level OptLevel) { + if (OptLevel != CodeGenOpt::None) + PM.add(createARMGlobalMergePass(getTargetLowering())); + return false; +} -// Pass Pipeline Configuration bool ARMBaseTargetMachine::addInstSelector(PassManagerBase &PM, CodeGenOpt::Level OptLevel) { PM.add(createARMISelDag(*this, OptLevel)); |
