[llvm] r293717 - AMDGPU: Fix warning
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 31 15:48:37 PST 2017
Author: arsenm
Date: Tue Jan 31 17:48:37 2017
New Revision: 293717
URL: http://llvm.org/viewvc/llvm-project?rev=293717&view=rev
Log:
AMDGPU: Fix warning
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h?rev=293717&r1=293716&r2=293717&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h Tue Jan 31 17:48:37 2017
@@ -98,7 +98,8 @@ public:
// don't use flat addressing.
if (IsGraphicsShader)
return -1;
- return ST->hasFlatAddressSpace() ? AMDGPUAS::FLAT_ADDRESS : -1;
+ return ST->hasFlatAddressSpace() ?
+ AMDGPUAS::FLAT_ADDRESS : AMDGPUAS::UNKNOWN_ADDRESS_SPACE;
}
unsigned getVectorSplitCost() { return 0; }
More information about the llvm-commits
mailing list