aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMTargetMachine.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-07-24 21:52:08 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-07-24 21:52:08 +0000
commit6cd461f358b227a0dce4d8ef6d872aa3a192f367 (patch)
tree22c17028e13afec642876ead757e6aa5c42bb78c /lib/Target/ARM/ARMTargetMachine.cpp
parent2bfb28d3aaac30fb593ac868dd522793d4992102 (diff)
downloadexternal_llvm-6cd461f358b227a0dce4d8ef6d872aa3a192f367.zip
external_llvm-6cd461f358b227a0dce4d8ef6d872aa3a192f367.tar.gz
external_llvm-6cd461f358b227a0dce4d8ef6d872aa3a192f367.tar.bz2
Hook in GlobalMerge pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109359 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 09203f9..9d7bf75 100644
--- a/lib/Target/ARM/ARMTargetMachine.cpp
+++ b/lib/Target/ARM/ARMTargetMachine.cpp
@@ -85,9 +85,15 @@ ThumbTargetMachine::ThumbTargetMachine(const Target &T, const std::string &TT,
TSInfo(*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));