================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits