[PATCH] D144535: [RISCV] Enable machine copy propagation for copy-like instructions
Wang Pengcheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 22 20:28:10 PST 2023
pcwang-thead marked an inline comment as done.
pcwang-thead added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVTargetMachine.cpp:344
+
+ if (TM->getOptLevel() >= CodeGenOpt::Default && EnableRISCVCopyPropagation)
+ addPass(createMachineCopyPropagationPass(true));
----------------
craig.topper wrote:
> Can this be before the two Expand passes? Especially the one that says "last possible moment"?
How about between the two Expand passes? we may produce MVs when expanding `PseudoCCMOVGPR`.
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