[PATCH] D98659: [MachineCopyPropagation] Do more backward copy propagations
yshui via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 16 04:56:54 PDT 2021
yshui added inline comments.
================
Comment at: llvm/lib/CodeGen/MachineCopyPropagation.cpp:331
+ MachineInstr *Copy = findCopyDefViaUnit(*RUI, TRI);
+ MCRegister Src = Copy->getOperand(1).getReg().asMCReg();
+ MCRegister Def = Copy->getOperand(0).getReg().asMCReg();
----------------
foad wrote:
> Hi, I tried testing this on AMDGPU but quite a lot of tests crash here because Copy is nullptr.
Thanks, I will have a look.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98659/new/
https://reviews.llvm.org/D98659
More information about the llvm-commits
mailing list