[PATCH] D121491: [AMDGPU] Restrict machine copy propagation from creating unaligned classes
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 11 14:37:29 PST 2022
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:4774
+ const TargetRegisterClass *RC = RI.getRegClass(RCID);
+ if (RC && ST.needsAlignedVGPRs()) {
+ unsigned Size = RI.getRegSizeInBits(*RC);
----------------
Why can't you just select the aligned class above to begin with?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121491/new/
https://reviews.llvm.org/D121491
More information about the llvm-commits
mailing list