[llvm] r201369 - R600/SI: Completely Disable TypeRewriter on compute
Tom Stellard
thomas.stellard at amd.com
Thu Feb 13 15:34:12 PST 2014
Author: tstellar
Date: Thu Feb 13 17:34:12 2014
New Revision: 201369
URL: http://llvm.org/viewvc/llvm-project?rev=201369&view=rev
Log:
R600/SI: Completely Disable TypeRewriter on compute
Modified:
llvm/trunk/lib/Target/R600/SITypeRewriter.cpp
llvm/trunk/test/CodeGen/R600/bitcast.ll
Modified: llvm/trunk/lib/Target/R600/SITypeRewriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SITypeRewriter.cpp?rev=201369&r1=201368&r2=201369&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SITypeRewriter.cpp (original)
+++ llvm/trunk/lib/Target/R600/SITypeRewriter.cpp Thu Feb 13 17:34:12 2014
@@ -69,11 +69,11 @@ bool SITypeRewriter::runOnFunction(Funct
StringRef Str = A.getValueAsString();
Str.getAsInteger(0, ShaderType);
}
- if (ShaderType != ShaderType::COMPUTE) {
- visit(F);
- }
+ if (ShaderType == ShaderType::COMPUTE)
+ return false;
visit(F);
+ visit(F);
return false;
}
Modified: llvm/trunk/test/CodeGen/R600/bitcast.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/bitcast.ll?rev=201369&r1=201368&r2=201369&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/R600/bitcast.ll (original)
+++ llvm/trunk/test/CodeGen/R600/bitcast.ll Thu Feb 13 17:34:12 2014
@@ -19,3 +19,12 @@ declare void @llvm.SI.export(i32, i32, i
attributes #0 = { "ShaderType"="0" }
+; CHECK-LABEL: @i8ptr_v16i8ptr
+; CHECK: S_ENDPGM
+define void @i8ptr_v16i8ptr(<16 x i8> addrspace(1)* %out, i8 addrspace(1)* %in) {
+entry:
+ %0 = bitcast i8 addrspace(1)* %in to <16 x i8> addrspace(1)*
+ %1 = load <16 x i8> addrspace(1)* %0
+ store <16 x i8> %1, <16 x i8> addrspace(1)* %out
+ ret void
+}
More information about the llvm-commits
mailing list