Skip to content

Commit 8561859

Browse files
committed
Remove 'enableXXXClustering' methods from RISCVSubtarget.h
We can get the existing enableXXClustering methods to be autogenerated by prefixing the enums with 'Enable', e.g. 'EnableMISchedLoadClustering', and an autogenerated 'enableMISchedLoadClustering' method will be created.
1 parent f1433bd commit 8561859

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

llvm/lib/Target/RISCV/RISCVFeatures.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,16 +1701,16 @@ def TunePostRAScheduler : SubtargetFeature<"use-postra-scheduler",
17011701
"UsePostRAScheduler", "true", "Schedule again after register allocation">;
17021702

17031703
def TuneDisableMISchedLoadClustering : SubtargetFeature<"disable-misched-load-clustering",
1704-
"MISchedLoadClustering", "false", "Disable load clustering in the machine scheduler">;
1704+
"EnableMISchedLoadClustering", "false", "Disable load clustering in the machine scheduler">;
17051705

17061706
def TuneDisableMISchedStoreClustering : SubtargetFeature<"disable-misched-store-clustering",
1707-
"MISchedStoreClustering", "false", "Disable store clustering in the machine scheduler">;
1707+
"EnableMISchedStoreClustering", "false", "Disable store clustering in the machine scheduler">;
17081708

17091709
def TuneDisablePostMISchedLoadClustering : SubtargetFeature<"disable-postmisched-load-clustering",
1710-
"PostMISchedLoadClustering", "false", "Disable PostRA load clustering in the machine scheduler">;
1710+
"EnablePostMISchedLoadClustering", "false", "Disable PostRA load clustering in the machine scheduler">;
17111711

17121712
def TuneDisablePostMISchedStoreClustering : SubtargetFeature<"disable-postmisched-store-clustering",
1713-
"PostMISchedStoreClustering", "false", "Disable PostRA store clustering in the machine scheduler">;
1713+
"EnablePostMISchedStoreClustering", "false", "Disable PostRA store clustering in the machine scheduler">;
17141714

17151715
def TuneDisableLatencySchedHeuristic
17161716
: SubtargetFeature<"disable-latency-sched-heuristic", "DisableLatencySchedHeuristic", "true",

llvm/lib/Target/RISCV/RISCVSubtarget.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,6 @@ class RISCVSubtarget : public RISCVGenSubtargetInfo {
150150

151151
bool enablePostRAScheduler() const override { return UsePostRAScheduler; }
152152

153-
bool enableMISchedLoadClustering() const { return MISchedLoadClustering; }
154-
155-
bool enableMISchedStoreClustering() const { return MISchedStoreClustering; }
156-
157-
bool enablePostMISchedLoadClustering() const { return PostMISchedLoadClustering; }
158-
159-
bool enablePostMISchedStoreClustering() const { return PostMISchedStoreClustering; }
160-
161153
Align getPrefFunctionAlignment() const {
162154
return Align(TuneInfo->PrefFunctionAlignment);
163155
}

0 commit comments

Comments
 (0)