[PATCH] D92479: [RISCV] remove instruction mv a0, a0
Jessica Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 2 07:06:58 PST 2020
jrtc27 added a comment.
It's also wrong if the ADDI has FrameReg as its destination. A neater approach might be to always use the destination register (if there is one, using general instruction query information) as the destination for the ADD, keeping the scratch register for the movImm call. Then you'd only need special logic to work out whether you need to keep the (modified) existing instruction.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92479/new/
https://reviews.llvm.org/D92479
More information about the llvm-commits
mailing list