Skip to content

Commit 4ce8808

Browse files
committed
[AMDGPU] Common up default value of -amdgpu-nsa-threshold. NFC.
The default value of 3 was specified in two places. Use the actual value of the cl::init to avoid repeating it.
1 parent 3726f9c commit 4ce8808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/GCNSubtarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ unsigned GCNSubtarget::getNSAThreshold(const MachineFunction &MF) const {
708708
if (Value > 0)
709709
return std::max(Value, 2);
710710

711-
return 3;
711+
return NSAThreshold;
712712
}
713713

714714
GCNUserSGPRUsageInfo::GCNUserSGPRUsageInfo(const Function &F,

0 commit comments

Comments
 (0)