[PATCH] D95266: [AMDGPU] Fix FP materialization/resolve with flat scratch
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 22 14:03:09 PST 2021
rampitec added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp:443
+ // an SGPR for flat scratch.
+ MRI.setRegClass(BaseReg, &AMDGPU::SReg_32_XEXEC_HIRegClass);
+ }
----------------
arsenm wrote:
> I don't think you can blindly set the register class, you should contrainRegClass instead
I cannot constrain VGPR to SGPR.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95266/new/
https://reviews.llvm.org/D95266
More information about the llvm-commits
mailing list