[llvm] [AMDGPU] Add option to bias SGPR allocation to reduce read hazards (PR #129869)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 5 04:44:35 PST 2025
================
@@ -3904,3 +3909,166 @@ SIRegisterInfo::getVRegFlagsOfReg(Register Reg,
RegFlags.push_back("WWM_REG");
return RegFlags;
}
+
+unsigned SIRegisterInfo::getSGPRHazardAvoidanceStrategy(
+ const MachineFunction &MF) const {
+ if (SGPRHazardAvoidanceStrategy.getNumOccurrences()) {
+ return SGPRHazardAvoidanceStrategy;
+ } else {
----------------
arsenm wrote:
no else after return
https://github.com/llvm/llvm-project/pull/129869
More information about the llvm-commits
mailing list