[clang] [llvm] [RISCV] Add MIPS extensions (PR #121394)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 31 09:38:39 PST 2024


================
@@ -389,6 +390,13 @@ class RISCVPassConfig : public TargetPassConfig {
       DAG->addMutation(createStoreClusterDAGMutation(
           DAG->TII, DAG->TRI, /*ReorderWhileClustering=*/true));
     }
+
+    const RISCVSubtarget &ST = C->MF->getSubtarget<RISCVSubtarget>();
+    if (!ST.getMacroFusions().empty() && ST.useLoadStorePairs()) {
----------------
topperc wrote:

This needs to be integrated with the `EnablePostMISchedLoadStoreClustering` on line 386. Otherwise we will have multiple load/store cluster mutations.

https://github.com/llvm/llvm-project/pull/121394


More information about the llvm-commits mailing list