[PATCH] D102629: [ARM] Fix inline memcpy trip count sequence
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 19 00:41:49 PDT 2021
dmgreen added a comment.
Thanks!
================
Comment at: llvm/lib/Target/ARM/ARMISelLowering.cpp:11204
- Register BicDestReg = MRI.createVirtualRegister(&ARM::rGPRRegClass);
- BuildMI(TpEntry, Dl, TII->get(ARM::t2BICri), BicDestReg)
- .addUse(AddDestReg, RegState::Kill)
- .addImm(16)
- .add(predOps(ARMCC::AL))
- .addReg(0);
-
- Register LsrDestReg = MRI.createVirtualRegister(&ARM::GPRlrRegClass);
+ Register LsrDestReg = MRI.createVirtualRegister(&ARM::rGPRRegClass);
BuildMI(TpEntry, Dl, TII->get(ARM::t2LSRri), LsrDestReg)
----------------
malharJ wrote:
> I think this might need to be &ARM::GPRlrRegClass ...
>
> I recall ARMLowOverheadLoops::IterationCountDCE() not working for me correctly
> when I had used rGPR.
>
> But if the tests work correctly then I guess it's fine leaving it as rGPR.
Yeah I saw that. I put up D102620 as a fix, which seems to be the cause of it not removing the instructions that it should be able to.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102629/new/
https://reviews.llvm.org/D102629
More information about the llvm-commits
mailing list