1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Fix unused variable warnings. NFCI.

This commit is contained in:
Simon Pilgrim 2020-04-01 14:36:02 +01:00
parent 30207f42d1
commit 2a597d7f51

View File

@ -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;