[PATCH] D98659: [MachineCopyPropagation] Do more backward copy propagations
yshui via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 16 06:35:52 PDT 2021
yshui marked an inline comment as done.
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();
----------------
yshui wrote:
> 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.
Looks like I made an assumption that was stronger than what `CopyTracker` actually guaranteed.
This should be fixed now.
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