summaryrefslogtreecommitdiff
path: root/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-09-05 23:55:13 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-09-05 23:55:13 +0000
commitc3b5c042a4e63f8aa464734248881139cbd1694d (patch)
treeccccdfb96d934a7be51191ac444943fc31661287 /lib/Target/R600/R600TextureIntrinsicsReplacer.cpp
parentd7174719a9d5bec7f0c999cd12249d3a918d7153 (diff)
downloadllvm-c3b5c042a4e63f8aa464734248881139cbd1694d.tar.gz
llvm-c3b5c042a4e63f8aa464734248881139cbd1694d.tar.bz2
llvm-c3b5c042a4e63f8aa464734248881139cbd1694d.tar.xz
R600: Coding style
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190110 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/R600TextureIntrinsicsReplacer.cpp')
-rw-r--r--lib/Target/R600/R600TextureIntrinsicsReplacer.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp b/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp
index d4b8ec01c5..32588948d5 100644
--- a/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp
+++ b/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp
@@ -94,9 +94,8 @@ class R600TextureIntrinsicsReplacer :
}
if (TextureType == TEXTURE_CUBE_ARRAY ||
- TextureType == TEXTURE_SHADOWCUBE_ARRAY) {
+ TextureType == TEXTURE_SHADOWCUBE_ARRAY)
CT[2] = 0;
- }
if (TextureType == TEXTURE_1D_ARRAY ||
TextureType == TEXTURE_SHADOW1D_ARRAY) {
@@ -115,9 +114,8 @@ class R600TextureIntrinsicsReplacer :
TextureType == TEXTURE_SHADOW2D ||
TextureType == TEXTURE_SHADOWRECT ||
TextureType == TEXTURE_SHADOW1D_ARRAY) &&
- !(hasLOD && useShadowVariant)) {
+ !(hasLOD && useShadowVariant))
SrcSelect[3] = 2;
- }
}
void ReplaceCallInst(CallInst &I, FunctionType *FT, const char *Name,
@@ -260,9 +258,9 @@ public:
}
void visitCallInst(CallInst &I) {
- if (!I.getCalledFunction()) {
+ if (!I.getCalledFunction())
return;
- }
+
StringRef Name = I.getCalledFunction()->getName();
if (Name == "llvm.AMDGPU.tex") {
ReplaceTexIntrinsic(I, false, TexSign, "llvm.R600.tex", "llvm.R600.texc");