blob: 72fce3b301d8b5865108c841080cf12e64a9a787 [file] [log] [blame]
Jia Liub22310f2012-02-18 12:03:15 +00001//===-- ARMSubtarget.cpp - ARM Subtarget Information ----------------------===//
Evan Cheng10043e22007-01-19 07:51:42 +00002//
3// The LLVM Compiler Infrastructure
4//
Chris Lattnerf3ebc3f2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Evan Cheng10043e22007-01-19 07:51:42 +00007//
8//===----------------------------------------------------------------------===//
9//
Evan Cheng0d639a22011-07-01 21:01:15 +000010// This file implements the ARM specific subclass of TargetSubtargetInfo.
Evan Cheng10043e22007-01-19 07:51:42 +000011//
12//===----------------------------------------------------------------------===//
13
14#include "ARMSubtarget.h"
Andrew Trickab722bd2012-09-18 03:18:56 +000015#include "ARMBaseInstrInfo.h"
Chandler Carruthed0881b2012-12-03 16:50:05 +000016#include "ARMBaseRegisterInfo.h"
Bill Wendling5a92eec2013-02-15 22:41:25 +000017#include "llvm/IR/Attributes.h"
Bill Wendling5a92eec2013-02-15 22:41:25 +000018#include "llvm/IR/Function.h"
Chandler Carruth8a8cd2b2014-01-07 11:48:04 +000019#include "llvm/IR/GlobalValue.h"
Bob Wilson45825302009-06-22 21:01:46 +000020#include "llvm/Support/CommandLine.h"
Chandler Carruthed0881b2012-12-03 16:50:05 +000021#include "llvm/Target/TargetInstrInfo.h"
Renato Golinb4dd6c52013-03-21 18:47:47 +000022#include "llvm/Target/TargetOptions.h"
Evan Cheng54b68e32011-07-01 20:45:01 +000023
Chandler Carruthd174b722014-04-22 02:03:14 +000024using namespace llvm;
25
Chandler Carruthe96dd892014-04-21 22:55:11 +000026#define DEBUG_TYPE "arm-subtarget"
27
Evan Cheng54b68e32011-07-01 20:45:01 +000028#define GET_SUBTARGETINFO_TARGET_DESC
Evan Cheng4d1ca962011-07-08 01:53:10 +000029#define GET_SUBTARGETINFO_CTOR
Evan Chengc9c090d2011-07-01 22:36:09 +000030#include "ARMGenSubtargetInfo.inc"
Evan Cheng54b68e32011-07-01 20:45:01 +000031
Bob Wilson45825302009-06-22 21:01:46 +000032static cl::opt<bool>
33ReserveR9("arm-reserve-r9", cl::Hidden,
34 cl::desc("Reserve R9, making it unavailable as GPR"));
35
Anton Korobeynikov25229082009-11-24 00:44:37 +000036static cl::opt<bool>
Renato Golinca570632013-08-15 20:54:38 +000037ArmUseMOVT("arm-use-movt", cl::init(true), cl::Hidden);
Anton Korobeynikov25229082009-11-24 00:44:37 +000038
Bob Wilson3dc97322010-09-28 04:09:35 +000039static cl::opt<bool>
Bob Wilsone8a549c2012-09-29 21:43:49 +000040UseFusedMulOps("arm-use-mulops",
41 cl::init(true), cl::Hidden);
42
JF Bastien97b08c402013-05-17 23:49:01 +000043enum AlignMode {
44 DefaultAlign,
45 StrictAlign,
46 NoStrictAlign
47};
48
49static cl::opt<AlignMode>
50Align(cl::desc("Load/store alignment support"),
51 cl::Hidden, cl::init(DefaultAlign),
52 cl::values(
53 clEnumValN(DefaultAlign, "arm-default-align",
54 "Generate unaligned accesses only on hardware/OS "
55 "combinations that are known to support them"),
56 clEnumValN(StrictAlign, "arm-strict-align",
57 "Disallow all unaligned memory accesses"),
58 clEnumValN(NoStrictAlign, "arm-no-strict-align",
59 "Allow unaligned memory accesses"),
60 clEnumValEnd));
Bob Wilson3dc97322010-09-28 04:09:35 +000061
Weiming Zhao0da5cc02013-11-13 18:29:49 +000062enum ITMode {
63 DefaultIT,
64 RestrictedIT,
65 NoRestrictedIT
66};
67
68static cl::opt<ITMode>
69IT(cl::desc("IT block support"), cl::Hidden, cl::init(DefaultIT),
70 cl::ZeroOrMore,
71 cl::values(clEnumValN(DefaultIT, "arm-default-it",
72 "Generate IT block based on arch"),
73 clEnumValN(RestrictedIT, "arm-restrict-it",
74 "Disallow deprecated IT based on ARMv8"),
75 clEnumValN(NoRestrictedIT, "arm-no-restrict-it",
76 "Allow IT blocks based on ARMv7"),
77 clEnumValEnd));
78
Eric Christophera47f6802014-06-13 00:20:35 +000079static std::string computeDataLayout(ARMSubtarget &ST) {
80 std::string Ret = "";
81
82 if (ST.isLittle())
83 // Little endian.
84 Ret += "e";
85 else
86 // Big endian.
87 Ret += "E";
88
89 Ret += DataLayout::getManglingComponent(ST.getTargetTriple());
90
91 // Pointers are 32 bits and aligned to 32 bits.
92 Ret += "-p:32:32";
93
94 // On thumb, i16,i18 and i1 have natural aligment requirements, but we try to
95 // align to 32.
96 if (ST.isThumb())
97 Ret += "-i1:8:32-i8:8:32-i16:16:32";
98
99 // ABIs other than APCS have 64 bit integers with natural alignment.
100 if (!ST.isAPCS_ABI())
101 Ret += "-i64:64";
102
103 // We have 64 bits floats. The APCS ABI requires them to be aligned to 32
104 // bits, others to 64 bits. We always try to align to 64 bits.
105 if (ST.isAPCS_ABI())
106 Ret += "-f64:32:64";
107
108 // We have 128 and 64 bit vectors. The APCS ABI aligns them to 32 bits, others
109 // to 64. We always ty to give them natural alignment.
110 if (ST.isAPCS_ABI())
111 Ret += "-v64:32:64-v128:32:128";
112 else
113 Ret += "-v128:64:128";
114
115 // On thumb and APCS, only try to align aggregates to 32 bits (the default is
116 // 64 bits).
117 if (ST.isThumb() || ST.isAPCS_ABI())
118 Ret += "-a:0:32";
119
120 // Integer registers are 32 bits.
121 Ret += "-n32";
122
123 // The stack is 128 bit aligned on NaCl, 64 bit aligned on AAPCS and 32 bit
124 // aligned everywhere else.
125 if (ST.isTargetNaCl())
126 Ret += "-S128";
127 else if (ST.isAAPCS_ABI())
128 Ret += "-S64";
129 else
130 Ret += "-S32";
131
132 return Ret;
133}
134
135/// initializeSubtargetDependencies - Initializes using a CPU and feature string
136/// so that we can use initializer lists for subtarget initialization.
137ARMSubtarget &ARMSubtarget::initializeSubtargetDependencies(StringRef CPU,
138 StringRef FS) {
139 initializeEnvironment();
140 resetSubtargetFeatures(CPU, FS);
141 return *this;
142}
143
Evan Chengfe6e4052011-06-30 01:53:36 +0000144ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &CPU,
Christian Pirker2a111602014-03-28 14:35:30 +0000145 const std::string &FS, bool IsLittle,
146 const TargetOptions &Options)
Eric Christophera47f6802014-06-13 00:20:35 +0000147 : ARMGenSubtargetInfo(TT, CPU, FS), ARMProcFamily(Others),
148 ARMProcClass(None), stackAlignment(4), CPUString(CPU), IsLittle(IsLittle),
149 TargetTriple(TT), Options(Options), TargetABI(ARM_ABI_UNKNOWN),
150 DL(computeDataLayout(initializeSubtargetDependencies(CPU, FS))) {}
Bill Wendling5a92eec2013-02-15 22:41:25 +0000151
Bill Wendling61375d82013-02-16 01:36:26 +0000152void ARMSubtarget::initializeEnvironment() {
153 HasV4TOps = false;
154 HasV5TOps = false;
155 HasV5TEOps = false;
156 HasV6Ops = false;
Amara Emerson5035ee02013-10-07 16:55:23 +0000157 HasV6MOps = false;
Bill Wendling61375d82013-02-16 01:36:26 +0000158 HasV6T2Ops = false;
159 HasV7Ops = false;
Joey Goulyb3f550e2013-06-26 16:58:26 +0000160 HasV8Ops = false;
Bill Wendling61375d82013-02-16 01:36:26 +0000161 HasVFPv2 = false;
162 HasVFPv3 = false;
163 HasVFPv4 = false;
Joey Goulyccd04892013-09-13 13:46:57 +0000164 HasFPARMv8 = false;
Bill Wendling61375d82013-02-16 01:36:26 +0000165 HasNEON = false;
Tim Northoverdee86042013-12-02 14:46:26 +0000166 MinSize = false;
Bill Wendling61375d82013-02-16 01:36:26 +0000167 UseNEONForSinglePrecisionFP = false;
168 UseMulOps = UseFusedMulOps;
169 SlowFPVMLx = false;
170 HasVMLxForwarding = false;
171 SlowFPBrcc = false;
172 InThumbMode = false;
173 HasThumb2 = false;
Bill Wendling61375d82013-02-16 01:36:26 +0000174 NoARM = false;
175 PostRAScheduler = false;
176 IsR9Reserved = ReserveR9;
177 UseMovt = false;
178 SupportsTailCall = false;
179 HasFP16 = false;
180 HasD16 = false;
181 HasHardwareDivide = false;
182 HasHardwareDivideInARM = false;
183 HasT2ExtractPack = false;
184 HasDataBarrier = false;
185 Pref32BitThumb = false;
186 AvoidCPSRPartialUpdate = false;
187 AvoidMOVsShifterOperand = false;
188 HasRAS = false;
189 HasMPExtension = false;
Bradley Smith25219752013-11-01 13:27:35 +0000190 HasVirtualization = false;
Bill Wendling61375d82013-02-16 01:36:26 +0000191 FPOnlySP = false;
Tim Northovercedd4812013-05-23 19:11:14 +0000192 HasPerfMon = false;
Tim Northoverc6047652013-04-10 12:08:35 +0000193 HasTrustZone = false;
Amara Emerson33089092013-09-19 11:59:01 +0000194 HasCrypto = false;
Amara Emersonf9a67fc2013-10-29 16:54:52 +0000195 HasCRC = false;
Tim Northover13510302014-04-01 13:22:02 +0000196 HasZeroCycleZeroing = false;
Bill Wendling61375d82013-02-16 01:36:26 +0000197 AllowsUnalignedMem = false;
198 Thumb2DSP = false;
199 UseNaClTrap = false;
Renato Golinb4dd6c52013-03-21 18:47:47 +0000200 UnsafeFPMath = false;
Bill Wendling61375d82013-02-16 01:36:26 +0000201}
202
Bill Wendling5a92eec2013-02-15 22:41:25 +0000203void ARMSubtarget::resetSubtargetFeatures(const MachineFunction *MF) {
204 AttributeSet FnAttrs = MF->getFunction()->getAttributes();
205 Attribute CPUAttr = FnAttrs.getAttribute(AttributeSet::FunctionIndex,
206 "target-cpu");
207 Attribute FSAttr = FnAttrs.getAttribute(AttributeSet::FunctionIndex,
208 "target-features");
209 std::string CPU =
210 !CPUAttr.hasAttribute(Attribute::None) ?CPUAttr.getValueAsString() : "";
211 std::string FS =
212 !FSAttr.hasAttribute(Attribute::None) ? FSAttr.getValueAsString() : "";
Bill Wendling61375d82013-02-16 01:36:26 +0000213 if (!FS.empty()) {
214 initializeEnvironment();
Bill Wendling5a92eec2013-02-15 22:41:25 +0000215 resetSubtargetFeatures(CPU, FS);
Bill Wendling61375d82013-02-16 01:36:26 +0000216 }
Tim Northoverdee86042013-12-02 14:46:26 +0000217
218 MinSize =
219 FnAttrs.hasAttribute(AttributeSet::FunctionIndex, Attribute::MinSize);
Bill Wendling5a92eec2013-02-15 22:41:25 +0000220}
221
222void ARMSubtarget::resetSubtargetFeatures(StringRef CPU, StringRef FS) {
Tilmann Scheller63872ce2013-09-02 17:09:01 +0000223 if (CPUString.empty()) {
224 if (isTargetIOS() && TargetTriple.getArchName().endswith("v7s"))
225 // Default to the Swift CPU when targeting armv7s/thumbv7s.
226 CPUString = "swift";
227 else
228 CPUString = "generic";
229 }
Evan Chengec415ef2009-03-08 04:02:49 +0000230
Evan Cheng0b33a322011-06-30 02:12:44 +0000231 // Insert the architecture feature derived from the target triple into the
232 // feature string. This is important for setting features that are implied
233 // based on the architecture version.
Bill Wendling5a92eec2013-02-15 22:41:25 +0000234 std::string ArchFS = ARM_MC::ParseARMTriple(TargetTriple.getTriple(),
235 CPUString);
Evan Cheng2bd65362011-07-07 00:08:19 +0000236 if (!FS.empty()) {
237 if (!ArchFS.empty())
Bill Wendling5a92eec2013-02-15 22:41:25 +0000238 ArchFS = ArchFS + "," + FS.str();
Evan Cheng2bd65362011-07-07 00:08:19 +0000239 else
240 ArchFS = FS;
241 }
Evan Cheng1a72add62011-07-07 07:07:08 +0000242 ParseSubtargetFeatures(CPUString, ArchFS);
Evan Cheng2bd65362011-07-07 00:08:19 +0000243
Joerg Sonnenberger002a1472013-12-13 11:16:00 +0000244 // FIXME: This used enable V6T2 support implicitly for Thumb2 mode.
245 // Assert this for now to make the change obvious.
246 assert(hasV6T2Ops() || !hasThumb2());
Bob Wilsond0046ca2010-11-09 22:50:47 +0000247
Andrew Trick352abc12012-08-08 02:44:16 +0000248 // Keep a pointer to static instruction cost data for the specified CPU.
249 SchedModel = getSchedModelForCPU(CPUString);
250
Evan Cheng54b68e32011-07-01 20:45:01 +0000251 // Initialize scheduling itinerary for the specified CPU.
252 InstrItins = getInstrItineraryForCPU(CPUString);
253
Rafael Espindolad89b16d2014-01-02 13:40:08 +0000254 if (TargetABI == ARM_ABI_UNKNOWN) {
255 switch (TargetTriple.getEnvironment()) {
256 case Triple::Android:
257 case Triple::EABI:
258 case Triple::EABIHF:
259 case Triple::GNUEABI:
260 case Triple::GNUEABIHF:
Joerg Sonnenberger74669792013-12-15 00:12:52 +0000261 TargetABI = ARM_ABI_AAPCS;
Rafael Espindolad89b16d2014-01-02 13:40:08 +0000262 break;
263 default:
Saleem Abdulrasool35476332014-03-06 20:47:11 +0000264 if ((isTargetIOS() && isMClass()) ||
265 (TargetTriple.isOSBinFormatMachO() &&
266 TargetTriple.getOS() == Triple::UnknownOS))
Rafael Espindolad89b16d2014-01-02 13:40:08 +0000267 TargetABI = ARM_ABI_AAPCS;
268 else
269 TargetABI = ARM_ABI_APCS;
270 break;
271 }
Joerg Sonnenberger74669792013-12-15 00:12:52 +0000272 }
Evan Cheng1a72add62011-07-07 07:07:08 +0000273
Saleem Abdulrasoolcd130822014-04-02 20:32:05 +0000274 // FIXME: this is invalid for WindowsCE
275 if (isTargetWindows()) {
276 TargetABI = ARM_ABI_AAPCS;
277 NoARM = true;
278 }
279
Lauro Ramos Venancio048e16ff2007-02-13 19:52:28 +0000280 if (isAAPCS_ABI())
281 stackAlignment = 8;
Mark Seabornbe266aa2014-02-16 18:59:48 +0000282 if (isTargetNaCl())
283 stackAlignment = 16;
Lauro Ramos Venancio048e16ff2007-02-13 19:52:28 +0000284
Renato Golinca570632013-08-15 20:54:38 +0000285 UseMovt = hasV6T2Ops() && ArmUseMOVT;
286
Tim Northoverd6a729b2014-01-06 14:28:05 +0000287 if (isTargetMachO()) {
Evan Cheng8b2bda02011-07-07 03:55:05 +0000288 IsR9Reserved = ReserveR9 | !HasV6Ops;
Tim Northoverd6a729b2014-01-06 14:28:05 +0000289 SupportsTailCall = !isTargetIOS() || !getTargetTriple().isOSVersionLT(5, 0);
Saleem Abdulrasoolec1ec1b2014-03-11 15:09:44 +0000290 } else {
Tim Northoverd6a729b2014-01-06 14:28:05 +0000291 IsR9Reserved = ReserveR9;
Saleem Abdulrasoolec1ec1b2014-03-11 15:09:44 +0000292 SupportsTailCall = !isThumb1Only();
293 }
David Goodwin9a051a52009-10-01 21:46:35 +0000294
Evan Cheng03da4db2009-10-16 06:11:08 +0000295 if (!isThumb() || hasThumb2())
296 PostRAScheduler = true;
Bob Wilson3dc97322010-09-28 04:09:35 +0000297
JF Bastien97b08c402013-05-17 23:49:01 +0000298 switch (Align) {
299 case DefaultAlign:
300 // Assume pre-ARMv6 doesn't support unaligned accesses.
301 //
302 // ARMv6 may or may not support unaligned accesses depending on the
303 // SCTLR.U bit, which is architecture-specific. We assume ARMv6
Jim Grosbach4a1a9ce2014-04-02 19:28:13 +0000304 // Darwin and NetBSD targets support unaligned accesses, and others don't.
JF Bastien97b08c402013-05-17 23:49:01 +0000305 //
306 // ARMv7 always has SCTLR.U set to 1, but it has a new SCTLR.A bit
307 // which raises an alignment fault on unaligned accesses. Linux
308 // defaults this bit to 0 and handles it as a system-wide (not
309 // per-process) setting. It is therefore safe to assume that ARMv7+
310 // Linux targets support unaligned accesses. The same goes for NaCl.
311 //
312 // The above behavior is consistent with GCC.
Joerg Sonnenberger4455ffc2014-02-02 21:18:36 +0000313 AllowsUnalignedMem =
314 (hasV7Ops() && (isTargetLinux() || isTargetNaCl() ||
315 isTargetNetBSD())) ||
316 (hasV6Ops() && (isTargetMachO() || isTargetNetBSD()));
Jim Grosbach4a1a9ce2014-04-02 19:28:13 +0000317 // The one exception is cortex-m0, which despite being v6, does not
318 // support unaligned accesses. Rather than make the above boolean
319 // expression even more obtuse, just override the value here.
320 if (isThumb1Only() && isMClass())
321 AllowsUnalignedMem = false;
JF Bastien97b08c402013-05-17 23:49:01 +0000322 break;
323 case StrictAlign:
324 AllowsUnalignedMem = false;
325 break;
326 case NoStrictAlign:
327 AllowsUnalignedMem = true;
328 break;
329 }
Renato Golinb4dd6c52013-03-21 18:47:47 +0000330
Weiming Zhao0da5cc02013-11-13 18:29:49 +0000331 switch (IT) {
332 case DefaultIT:
333 RestrictIT = hasV8Ops() ? true : false;
334 break;
335 case RestrictedIT:
336 RestrictIT = true;
337 break;
338 case NoRestrictedIT:
339 RestrictIT = false;
340 break;
341 }
342
Renato Golinb4dd6c52013-03-21 18:47:47 +0000343 // NEON f32 ops are non-IEEE 754 compliant. Darwin is ok with it by default.
344 uint64_t Bits = getFeatureBits();
345 if ((Bits & ARM::ProcA5 || Bits & ARM::ProcA8) && // Where this matters
346 (Options.UnsafeFPMath || isTargetDarwin()))
347 UseNEONForSinglePrecisionFP = true;
Evan Cheng10043e22007-01-19 07:51:42 +0000348}
Evan Cheng43b9ca62009-08-28 23:18:09 +0000349
350/// GVIsIndirectSymbol - true if the GV will be accessed via an indirect symbol.
Evan Cheng1b389522009-09-03 07:04:02 +0000351bool
Dan Gohmanbcaf6812010-04-15 01:51:59 +0000352ARMSubtarget::GVIsIndirectSymbol(const GlobalValue *GV,
353 Reloc::Model RelocM) const {
Evan Cheng1b389522009-09-03 07:04:02 +0000354 if (RelocM == Reloc::Static)
Evan Cheng43b9ca62009-08-28 23:18:09 +0000355 return false;
Evan Cheng1b389522009-09-03 07:04:02 +0000356
Jeffrey Yasskin091217b2010-01-27 20:34:15 +0000357 // Materializable GVs (in JIT lazy compilation mode) do not require an extra
358 // load from stub.
Evan Cheng2ce66302011-02-22 06:58:34 +0000359 bool isDecl = GV->hasAvailableExternallyLinkage();
360 if (GV->isDeclaration() && !GV->isMaterializable())
361 isDecl = true;
Evan Cheng1b389522009-09-03 07:04:02 +0000362
Tim Northoverd6a729b2014-01-06 14:28:05 +0000363 if (!isTargetMachO()) {
Evan Cheng1b389522009-09-03 07:04:02 +0000364 // Extra load is needed for all externally visible.
365 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility())
366 return false;
367 return true;
368 } else {
369 if (RelocM == Reloc::PIC_) {
370 // If this is a strong reference to a definition, it is definitely not
371 // through a stub.
372 if (!isDecl && !GV->isWeakForLinker())
373 return false;
374
375 // Unless we have a symbol with hidden visibility, we have to go through a
376 // normal $non_lazy_ptr stub because this symbol might be resolved late.
377 if (!GV->hasHiddenVisibility()) // Non-hidden $non_lazy_ptr reference.
378 return true;
379
380 // If symbol visibility is hidden, we have a stub for common symbol
381 // references and external declarations.
382 if (isDecl || GV->hasCommonLinkage())
383 // Hidden $non_lazy_ptr reference.
384 return true;
385
386 return false;
387 } else {
388 // If this is a strong reference to a definition, it is definitely not
389 // through a stub.
390 if (!isDecl && !GV->isWeakForLinker())
391 return false;
Andrew Trickc416ba62010-12-24 04:28:06 +0000392
Evan Cheng1b389522009-09-03 07:04:02 +0000393 // Unless we have a symbol with hidden visibility, we have to go through a
394 // normal $non_lazy_ptr stub because this symbol might be resolved late.
395 if (!GV->hasHiddenVisibility()) // Non-hidden $non_lazy_ptr reference.
396 return true;
397 }
398 }
399
400 return false;
Evan Cheng43b9ca62009-08-28 23:18:09 +0000401}
David Goodwin0d412c22009-11-10 00:48:55 +0000402
Owen Andersona3181e22010-09-28 21:57:50 +0000403unsigned ARMSubtarget::getMispredictionPenalty() const {
Andrew Trick352abc12012-08-08 02:44:16 +0000404 return SchedModel->MispredictPenalty;
Owen Andersona3181e22010-09-28 21:57:50 +0000405}
406
Bob Wilsone7dde0c2013-11-03 06:14:38 +0000407bool ARMSubtarget::hasSinCos() const {
408 return getTargetTriple().getOS() == Triple::IOS &&
409 !getTargetTriple().isOSVersionLT(7, 0);
410}
411
Andrew Trick8d2ee372014-06-04 07:06:27 +0000412// Enable the PostMachineScheduler if the target selects it instead of
413// PostRAScheduler. Currently only available on the command line via
414// -misched-postra.
415bool ARMSubtarget::enablePostMachineScheduler() const {
416 return PostRAScheduler;
417}
418
David Goodwin0d412c22009-11-10 00:48:55 +0000419bool ARMSubtarget::enablePostRAScheduler(
420 CodeGenOpt::Level OptLevel,
Evan Cheng0d639a22011-07-01 21:01:15 +0000421 TargetSubtargetInfo::AntiDepBreakMode& Mode,
David Goodwinb9fe5d52009-11-13 19:52:48 +0000422 RegClassVector& CriticalPathRCs) const {
Andrew Trickd24698c2013-09-25 00:26:16 +0000423 Mode = TargetSubtargetInfo::ANTIDEP_NONE;
David Goodwin0d412c22009-11-10 00:48:55 +0000424 return PostRAScheduler && OptLevel >= CodeGenOpt::Default;
425}