[PATCH] D136169: [AMDGPU] Avoid SCC clobbering before S_CSELECT_B32
Alexander via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 19 06:26:45 PDT 2022
alex-t added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp:2243
UseSGPR ? TmpReg
- : RS->scavengeRegister(&AMDGPU::SReg_32_XM0RegClass, MI, 0,
+ : RS->scavengeRegister(&AMDGPU::SReg_32_XM0RegClass, P, 0,
!UseSGPR);
----------------
If we've failed to scavenge SGPR for SCC save/restore we never get here. But if we've got here we'd either fail to scavenge SGPR for the frame offset computation.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136169/new/
https://reviews.llvm.org/D136169
More information about the llvm-commits
mailing list