diff options
author | Jingyue Wu <jingyue@google.com> | 2016-02-04 04:15:36 +0000 |
---|---|---|
committer | Jingyue Wu <jingyue@google.com> | 2016-02-04 04:15:36 +0000 |
commit | fb3aa174ce14ac21c79fb7cb4ae3e006ce4dd6a7 (patch) | |
tree | 14ac00bf454a3c9ea8cfc216abc39b9088cfbc57 /test/CodeGen/NVPTX | |
parent | 0e71de1a92a393f10b6ed38e269bb60aa156b7a3 (diff) |
[NVPTX] Disable performance optimizations when OptLevel==None
Reviewers: jholewinski, tra, eliben
Subscribers: jholewinski, llvm-commits
Differential Revision: http://reviews.llvm.org/D16874
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259749 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/NVPTX')
-rw-r--r-- | test/CodeGen/NVPTX/disable-opt.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/NVPTX/disable-opt.ll b/test/CodeGen/NVPTX/disable-opt.ll new file mode 100644 index 00000000000..15e4913c169 --- /dev/null +++ b/test/CodeGen/NVPTX/disable-opt.ll @@ -0,0 +1,12 @@ +; RUN: llc < %s -march=nvptx -mcpu=sm_20 -O0 | FileCheck %s + +define void @foo(i32* %output) { +; CHECK-LABEL: .visible .func foo( +entry: + %local = alloca i32 +; CHECK: __local_depot + store i32 1, i32* %local + %0 = load i32, i32* %local + store i32 %0, i32* %output + ret void +} |