[PATCH] D128393: [RISCV] Add macrofusion infrastructure and one example usage.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 22 21:02:16 PDT 2022


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVTargetMachine.cpp:147
+  createMachineScheduler(MachineSchedContext *C) const override {
+    ScheduleDAGMILive *DAG = createGenericSchedLive(C);
+    const RISCVSubtarget &ST = C->MF->getSubtarget<RISCVSubtarget>();
----------------
reames wrote:
> I think you want this to be returned only if macro enabled.  Or at least, unconditionally enabling a machine scheduler seems like it should be a separate change.
I don't think this changed anything. If this function returns nullptr, the caller ends up calling createGenericSchedLive anyway. But I'll change it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128393/new/

https://reviews.llvm.org/D128393



More information about the llvm-commits mailing list