Skip to content

Commit

Permalink
[AMDGPU] Common up default value of -amdgpu-nsa-threshold. NFC.
Browse files Browse the repository at this point in the history
The default value of 3 was specified in two places. Use the actual value
of the cl::init to avoid repeating it.
  • Loading branch information
jayfoad committed Sep 5, 2024
1 parent 3726f9c commit 4ce8808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/GCNSubtarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ unsigned GCNSubtarget::getNSAThreshold(const MachineFunction &MF) const {
if (Value > 0)
return std::max(Value, 2);

return 3;
return NSAThreshold;
}

GCNUserSGPRUsageInfo::GCNUserSGPRUsageInfo(const Function &F,
Expand Down

0 comments on commit 4ce8808

Please sign in to comment.