[llvm] 552e46e - Fix unused variable warnings. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 1 06:37:03 PDT 2020
Author: Simon Pilgrim
Date: 2020-04-01T14:36:51+01:00
New Revision: 552e46ea1efd94669b16d2b31439525bf7d7cc80
URL: https://github.com/llvm/llvm-project/commit/552e46ea1efd94669b16d2b31439525bf7d7cc80
DIFF: https://github.com/llvm/llvm-project/commit/552e46ea1efd94669b16d2b31439525bf7d7cc80.diff
LOG: Fix unused variable warnings. NFCI.
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
index 1e3395a80082..c858074d0bf5 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
@@ -3717,8 +3717,7 @@ bool AMDGPULegalizerInfo::legalizeImageIntrinsic(
int CorrectedNumVAddrs = NumVAddrs;
// Optimize _L to _LZ when _L is zero
- if (const AMDGPU::MIMGLZMappingInfo *LZMappingInfo =
- AMDGPU::getMIMGLZMappingInfo(ImageDimIntr->BaseOpcode)) {
+ if (AMDGPU::getMIMGLZMappingInfo(ImageDimIntr->BaseOpcode)) {
const ConstantFP *ConstantLod;
const int LodIdx = AddrIdx + NumVAddrs - 1;
@@ -3736,8 +3735,7 @@ bool AMDGPULegalizerInfo::legalizeImageIntrinsic(
}
// Optimize _mip away, when 'lod' is zero
- if (const AMDGPU::MIMGMIPMappingInfo *MIPMappingInfo =
- AMDGPU::getMIMGMIPMappingInfo(ImageDimIntr->BaseOpcode)) {
+ if (AMDGPU::getMIMGMIPMappingInfo(ImageDimIntr->BaseOpcode)) {
int64_t ConstantLod;
const int LodIdx = AddrIdx + NumVAddrs - 1;
More information about the llvm-commits
mailing list