[llvm] 5721483 - [AMDGPU] Fix -Wunused-variable after e5823bf806ca9fa6f87583065b3898a2edabce57
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 20 22:42:16 PST 2020
Author: Fangrui Song
Date: 2020-01-20T22:41:13-08:00
New Revision: 5721483b64251faa115efa3dddd47f1b833d9a13
URL: https://github.com/llvm/llvm-project/commit/5721483b64251faa115efa3dddd47f1b833d9a13
DIFF: https://github.com/llvm/llvm-project/commit/5721483b64251faa115efa3dddd47f1b833d9a13.diff
LOG: [AMDGPU] Fix -Wunused-variable after e5823bf806ca9fa6f87583065b3898a2edabce57
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp b/llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
index a7c2e4e9e665..cfa52ecbea29 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
@@ -654,7 +654,6 @@ Value* AMDGPUCodeGenPrepare::expandDivRem24(IRBuilder<> &Builder,
if (IsSigned)
++DivBits;
- Type *Ty = Num->getType();
Type *I32Ty = Builder.getInt32Ty();
Type *F32Ty = Builder.getFloatTy();
ConstantInt *One = Builder.getInt32(1);
More information about the llvm-commits
mailing list