[PATCH] D121524: [AMDGPU] use scalar shift for SALU users in frame index elimination
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 17 18:29:16 PDT 2022
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp:2237
// In an entry function/kernel the offset is already swizzled.
-
+ bool IsSALU = TII->isSALU(*MI);
+ const TargetRegisterClass *RC = IsSALU ? &AMDGPU::SReg_32RegClass
----------------
It would be a bit more appropriate to check the class of the use operand
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121524/new/
https://reviews.llvm.org/D121524
More information about the llvm-commits
mailing list