[PATCH] D136169: [AMDGPU] Avoid SCC clobbering before S_CSELECT_B32
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 19 09:38:07 PDT 2022
foad added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp:2263
+ Register SCCCopy =
+ RS->scavengeRegister(getBoolRC(), std::prev(P), 0, !UseSGPR);
+ if (!SCCCopy)
----------------
None of this code should depend on wave size. You don't want getBoolRC here - that's for VCC which might be a register pair in wave64. You can always save SCC in a single 32-bit SGPR.
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