diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-10-31 15:48:08 -0400 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-12-18 14:33:56 -0500 |
commit | c16df0741fb7c61119ba300ded96bea7ae33e946 (patch) | |
tree | fc716038c7a5d62f4438858ea6e2312cba47a4f7 | |
parent | 4f25ccbaad83b1df69609ded7127d5e26bac45b7 (diff) |
XXX: R600/SI: Completely Disable TypeRewriter on compute
-rw-r--r-- | lib/Target/R600/SITypeRewriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/R600/SITypeRewriter.cpp b/lib/Target/R600/SITypeRewriter.cpp index f194d8b56dc..c061866051d 100644 --- a/lib/Target/R600/SITypeRewriter.cpp +++ b/lib/Target/R600/SITypeRewriter.cpp @@ -70,11 +70,11 @@ bool SITypeRewriter::runOnFunction(Function &F) { 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; } |