aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMTargetMachine.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-04-07 18:19:07 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-04-07 18:19:07 +0000
commit3e27a4b83f35ac6c5c792c77c3b2b58cfaedd484 (patch)
treed7436e0e6b49d2703afbda6a3f1e421d32048508 /lib/Target/ARM/ARMTargetMachine.cpp
parentf4c97dfd87d6514e7976bafa07b55aee3e3a81b5 (diff)
downloadexternal_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.cpp8
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));