mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
mi-sched: Load clustering is a bit to expensive to enable unconditionally.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189990 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
00b5fa4c28
commit
d1d0d37a19
@ -615,6 +615,8 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual bool enableClusterLoads() const { return false; }
|
||||||
|
|
||||||
virtual bool shouldClusterLoads(MachineInstr *FirstLdSt,
|
virtual bool shouldClusterLoads(MachineInstr *FirstLdSt,
|
||||||
MachineInstr *SecondLdSt,
|
MachineInstr *SecondLdSt,
|
||||||
unsigned NumLoads) const {
|
unsigned NumLoads) const {
|
||||||
|
@ -2753,7 +2753,7 @@ static ScheduleDAGInstrs *createConvergingSched(MachineSchedContext *C) {
|
|||||||
// data and pass it to later mutations. Have a single mutation that gathers
|
// data and pass it to later mutations. Have a single mutation that gathers
|
||||||
// the interesting nodes in one pass.
|
// the interesting nodes in one pass.
|
||||||
DAG->addMutation(new CopyConstrain(DAG->TII, DAG->TRI));
|
DAG->addMutation(new CopyConstrain(DAG->TII, DAG->TRI));
|
||||||
if (EnableLoadCluster)
|
if (EnableLoadCluster && DAG->TII->enableClusterLoads())
|
||||||
DAG->addMutation(new LoadClusterMutation(DAG->TII, DAG->TRI));
|
DAG->addMutation(new LoadClusterMutation(DAG->TII, DAG->TRI));
|
||||||
if (EnableMacroFusion)
|
if (EnableMacroFusion)
|
||||||
DAG->addMutation(new MacroFusion(DAG->TII));
|
DAG->addMutation(new MacroFusion(DAG->TII));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user