summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/AMDGPUSubtarget.cpp
diff options
context:
space:
mode:
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>2013-05-29 07:32:08 +0000
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>2013-05-29 07:32:08 +0000
commitae8faf2e9aee1262fe5f019259ea2c2b08645e0d (patch)
treeb91c3ef57817eb6d464ac32170e6a736b4aa520e /llvm/lib/Target/R600/AMDGPUSubtarget.cpp
parent0209f29528431cdec4905f1cc11ad1a4f148da0f (diff)
downloadbcm5719-llvm-ae8faf2e9aee1262fe5f019259ea2c2b08645e0d.tar.gz
bcm5719-llvm-ae8faf2e9aee1262fe5f019259ea2c2b08645e0d.zip
Temporary fix to get rid of gcc warning.
llvm-svn: 182832
Diffstat (limited to 'llvm/lib/Target/R600/AMDGPUSubtarget.cpp')
-rw-r--r--llvm/lib/Target/R600/AMDGPUSubtarget.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUSubtarget.cpp b/llvm/lib/Target/R600/AMDGPUSubtarget.cpp
index 6bfe17bbae9..da342892da5 100644
--- a/llvm/lib/Target/R600/AMDGPUSubtarget.cpp
+++ b/llvm/lib/Target/R600/AMDGPUSubtarget.cpp
@@ -37,7 +37,16 @@ AMDGPUSubtarget::AMDGPUSubtarget(StringRef TT, StringRef CPU, StringRef FS) :
ParseSubtargetFeatures(GPU, FS);
DevName = GPU;
Device = AMDGPUDeviceInfo::getDeviceFromName(DevName, this, Is64bit);
- TexVTXClauseSize = (Device->getGeneration() >= AMDGPUDeviceInfo::HD4XXX)?16:8;
+
+ // FIXME: The code in the comment below was the original code. But the
+ // condition is always true, generating a warning when compiled with
+ // gcc. Vincent Lejeune indicated in a mail to llvm-commits 2013-05-23 that he
+ // will look into this. The code 'TexVTXClauseSize = 16' is just a temporary
+ // equivalent replacement, to get rid of the compiler warning.
+
+ // TexVTXClauseSize = (Device->getGeneration() >= AMDGPUDeviceInfo::HD4XXX)?16:8;
+
+ TexVTXClauseSize = 16;
}
AMDGPUSubtarget::~AMDGPUSubtarget() {
OpenPOWER on IntegriCloud