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:
parent
30207f42d1
commit
2a597d7f51
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user