File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -615,6 +615,8 @@ class TargetInstrInfo : public MCInstrInfo {
615
615
return false ;
616
616
}
617
617
618
+ virtual bool enableClusterLoads () const { return false ; }
619
+
618
620
virtual bool shouldClusterLoads (MachineInstr *FirstLdSt,
619
621
MachineInstr *SecondLdSt,
620
622
unsigned NumLoads) const {
Original file line number Diff line number Diff line change @@ -2753,7 +2753,7 @@ static ScheduleDAGInstrs *createConvergingSched(MachineSchedContext *C) {
2753
2753
// data and pass it to later mutations. Have a single mutation that gathers
2754
2754
// the interesting nodes in one pass.
2755
2755
DAG->addMutation (new CopyConstrain (DAG->TII , DAG->TRI ));
2756
- if (EnableLoadCluster)
2756
+ if (EnableLoadCluster && DAG-> TII -> enableClusterLoads () )
2757
2757
DAG->addMutation (new LoadClusterMutation (DAG->TII , DAG->TRI ));
2758
2758
if (EnableMacroFusion)
2759
2759
DAG->addMutation (new MacroFusion (DAG->TII ));
You can’t perform that action at this time.
0 commit comments