[llvm] r190110 - R600: Coding style
Tom Stellard
thomas.stellard at amd.com
Thu Sep 5 16:55:13 PDT 2013
Author: tstellar
Date: Thu Sep 5 18:55:13 2013
New Revision: 190110
URL: http://llvm.org/viewvc/llvm-project?rev=190110&view=rev
Log:
R600: Coding style
Modified:
llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp
Modified: llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp?rev=190110&r1=190109&r2=190110&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp (original)
+++ llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp Thu Sep 5 18:55:13 2013
@@ -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");
More information about the llvm-commits
mailing list