[PATCH] D144535: [RISCV] Enable machine copy propagation for copy-like instructions

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 10:13:39 PST 2023


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVTargetMachine.cpp:344
+
+  if (TM->getOptLevel() >= CodeGenOpt::Default && EnableRISCVCopyPropagation)
+    addPass(createMachineCopyPropagationPass(true));
----------------
Can this be before the two Expand passes? Especially the one that says "last possible moment"?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144535



More information about the llvm-commits mailing list