diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2010-07-24 21:52:08 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2010-07-24 21:52:08 +0000 |
| commit | 6cd461f358b227a0dce4d8ef6d872aa3a192f367 (patch) | |
| tree | 22c17028e13afec642876ead757e6aa5c42bb78c /lib/Target/ARM/ARMISelLowering.cpp | |
| parent | 2bfb28d3aaac30fb593ac868dd522793d4992102 (diff) | |
| download | external_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/ARMISelLowering.cpp')
| -rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 35ca389..56d2440 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -703,6 +703,12 @@ unsigned ARMTargetLowering::getFunctionAlignment(const Function *F) const { return getTargetMachine().getSubtarget<ARMSubtarget>().isThumb() ? 1 : 2; } +/// getMaximalGlobalOffset - Returns the maximal possible offset which can +/// be used for loads / stores from the global. +unsigned ARMTargetLowering::getMaximalGlobalOffset() const { + return (Subtarget->isThumb1Only() ? 127 : 4095); +} + Sched::Preference ARMTargetLowering::getSchedulingPreference(SDNode *N) const { unsigned NumVals = N->getNumValues(); if (!NumVals) |
