diff options
author | David Goodwin <david_goodwin@apple.com> | 2009-11-10 00:48:55 +0000 |
---|---|---|
committer | David Goodwin <david_goodwin@apple.com> | 2009-11-10 00:48:55 +0000 |
commit | c2e8a7e8d2ab156afaa8ab0d0317dd9ee3db7d30 (patch) | |
tree | d92603d35b7e78d48b858e031ee8d04c0197d691 /lib/Target/ARM/ARMSubtarget.cpp | |
parent | d65267ee625bb9cf8dc655a0c0409760e2b76c71 (diff) | |
download | external_llvm-c2e8a7e8d2ab156afaa8ab0d0317dd9ee3db7d30.zip external_llvm-c2e8a7e8d2ab156afaa8ab0d0317dd9ee3db7d30.tar.gz external_llvm-c2e8a7e8d2ab156afaa8ab0d0317dd9ee3db7d30.tar.bz2 |
Fixed to address code review. No functional changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.cpp')
-rw-r--r-- | lib/Target/ARM/ARMSubtarget.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.cpp b/lib/Target/ARM/ARMSubtarget.cpp index 5af95c3..dc81328 100644 --- a/lib/Target/ARM/ARMSubtarget.cpp +++ b/lib/Target/ARM/ARMSubtarget.cpp @@ -16,6 +16,7 @@ #include "llvm/GlobalValue.h" #include "llvm/Target/TargetOptions.h" #include "llvm/Support/CommandLine.h" +#include "llvm/ADT/SmallVector.h" using namespace llvm; static cl::opt<bool> @@ -159,3 +160,13 @@ ARMSubtarget::GVIsIndirectSymbol(GlobalValue *GV, Reloc::Model RelocM) const { return false; } + +bool ARMSubtarget::enablePostRAScheduler( + CodeGenOpt::Level OptLevel, + TargetSubtarget::AntiDepBreakMode& Mode, + ExcludedRCVector& ExcludedRCs) const { + Mode = TargetSubtarget::ANTIDEP_CRITICAL; + ExcludedRCs.clear(); + ExcludedRCs.push_back(&ARM::GPRRegClass); + return PostRAScheduler && OptLevel >= CodeGenOpt::Default; +} |