mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-08 18:30:26 +00:00
Add aggressive anti-dependence breaker. Currently it is not the default for any target. Enable with -break-anti-dependencies=all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85145 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "post-RA-sched"
|
||||
#include "AggressiveAntiDepBreaker.h"
|
||||
#include "CriticalAntiDepBreaker.h"
|
||||
#include "ExactHazardRecognizer.h"
|
||||
#include "SimpleHazardRecognizer.h"
|
||||
@@ -236,9 +237,10 @@ bool PostRAScheduler::runOnMachineFunction(MachineFunction &Fn) {
|
||||
(ScheduleHazardRecognizer *)new ExactHazardRecognizer(InstrItins) :
|
||||
(ScheduleHazardRecognizer *)new SimpleHazardRecognizer();
|
||||
AntiDepBreaker *ADB =
|
||||
(AntiDepMode == TargetSubtarget::ANTIDEP_ALL) ? NULL /* FIXME */ :
|
||||
(AntiDepMode == TargetSubtarget::ANTIDEP_CRITICAL) ?
|
||||
new CriticalAntiDepBreaker(Fn) : NULL;
|
||||
((AntiDepMode == TargetSubtarget::ANTIDEP_ALL) ?
|
||||
(AntiDepBreaker *)new AggressiveAntiDepBreaker(Fn) :
|
||||
((AntiDepMode == TargetSubtarget::ANTIDEP_CRITICAL) ?
|
||||
(AntiDepBreaker *)new CriticalAntiDepBreaker(Fn) : NULL));
|
||||
|
||||
SchedulePostRATDList Scheduler(Fn, MLI, MDT, HR, ADB, AA);
|
||||
|
||||
|
Reference in New Issue
Block a user