[llvm] [RISCV][TII] Add and use new hook to optimize/canonicalize instructions after MachineCopyPropagation (PR #137973)
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Thu May 1 08:16:37 PDT 2025
================
@@ -867,6 +867,12 @@ void MachineCopyPropagation::forwardUses(MachineInstr &MI) {
make_range(Copy->getIterator(), std::next(MI.getIterator())))
KMI.clearRegisterKills(CopySrcReg, TRI);
+ // Attempt to canonicalize/optimize the instruction now its arguments have
----------------
asb wrote:
Ouch yes, I'd meant to place it outside the loop. Thanks for catching - now fixed.
https://github.com/llvm/llvm-project/pull/137973
More information about the llvm-commits
mailing list