diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2013-09-05 23:55:13 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2013-09-05 23:55:13 +0000 |
| commit | 8bc633ac099f68f04c31ece871ed808339ce9067 (patch) | |
| tree | 8941e1a3dbf56f18c4336443801f36847d6f2c4c /llvm/lib | |
| parent | af65120bd3825ed7548108618cc709ba22102439 (diff) | |
| download | bcm5719-llvm-8bc633ac099f68f04c31ece871ed808339ce9067.tar.gz bcm5719-llvm-8bc633ac099f68f04c31ece871ed808339ce9067.zip | |
R600: Coding style
llvm-svn: 190110
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp b/llvm/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp index d4b8ec01c55..32588948d5d 100644 --- a/llvm/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp +++ b/llvm/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"); |

