[PATCH] D147031: [MachineCopy] Bug fix sub register machine copy propagation
Sergei Barannikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 28 17:27:05 PDT 2023
barannikov88 added inline comments.
================
Comment at: llvm/lib/CodeGen/MachineCopyPropagation.cpp:662
+ TRI->getRegSizeInBits(CopySrcReg, *MRI) &&
+ CheckRegClass(CopyDstReg, CopySrcReg)) {
SubregIdx = TRI->getSubRegIndex(CopyDstReg, MOUse.getReg());
----------------
All registers in a register class have the same sizes. The check for size above is redundant.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147031/new/
https://reviews.llvm.org/D147031
More information about the llvm-commits
mailing list