mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
Add a new subtarget hook for whether or not we'd like to enable
the atomic load linked expander pass to run for a particular subtarget. This requires a check of the subtarget and so save the TargetMachine rather than only TargetLoweringInfo and update all callers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211314 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -417,6 +417,10 @@ bool ARMSubtarget::enablePostMachineScheduler() const {
|
||||
return PostRAScheduler;
|
||||
}
|
||||
|
||||
bool ARMSubtarget::enableAtomicExpandLoadLinked() const {
|
||||
return hasAnyDataBarrier() && !isThumb1Only();
|
||||
}
|
||||
|
||||
bool ARMSubtarget::enablePostRAScheduler(
|
||||
CodeGenOpt::Level OptLevel,
|
||||
TargetSubtargetInfo::AntiDepBreakMode& Mode,
|
||||
|
||||
Reference in New Issue
Block a user