From f9d0d0d7e01f8076e0affa642a34055b2ac48ee9 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Tue, 20 Apr 2021 15:58:01 -0700 Subject: [PATCH] [AMDGPU] Lower regbanks reassign threshold to 15000 Let it work on a very small kernels only. Measurements showed the performance benefit is not worth the compile time. Differential Revision: https://reviews.llvm.org/D100904 --- llvm/lib/Target/AMDGPU/GCNRegBankReassign.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/AMDGPU/GCNRegBankReassign.cpp b/llvm/lib/Target/AMDGPU/GCNRegBankReassign.cpp index 085796dee08b..b877ef9be660 100644 --- a/llvm/lib/Target/AMDGPU/GCNRegBankReassign.cpp +++ b/llvm/lib/Target/AMDGPU/GCNRegBankReassign.cpp @@ -52,7 +52,7 @@ static cl::opt VerifyStallCycles("amdgpu-verify-regbanks-reassign", // Threshold to keep compile time reasonable. static cl::opt VRegThresh("amdgpu-regbanks-reassign-threshold", cl::desc("Max number of vregs to run the regbanks reassign pass"), - cl::init(100000), cl::Hidden); + cl::init(15000), cl::Hidden); #define DEBUG_TYPE "amdgpu-regbanks-reassign"