diff --git a/llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp b/llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp --- a/llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp @@ -1167,8 +1167,6 @@ return true; } if (ci_opr1 == 2) { // rootn(x, 2) = sqrt(x) - std::vector ParamsTys; - ParamsTys.push_back(opr0->getType()); Module *M = CI->getModule(); if (FunctionCallee FPExpr = getFunction(M, AMDGPULibFunc(AMDGPULibFunc::EI_SQRT, FInfo))) { @@ -1194,8 +1192,6 @@ replaceCall(nval); return true; } else if (ci_opr1 == -2) { // rootn(x, -2) = rsqrt(x) - std::vector ParamsTys; - ParamsTys.push_back(opr0->getType()); Module *M = CI->getModule(); if (FunctionCallee FPExpr = getFunction(M, AMDGPULibFunc(AMDGPULibFunc::EI_RSQRT, FInfo))) {