1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/CodeGen/NVPTX/disable-opt.ll
Jingyue Wu bb54579422 [NVPTX] Disable performance optimizations when OptLevel==None
Reviewers: jholewinski, tra, eliben

Subscribers: jholewinski, llvm-commits

Differential Revision: http://reviews.llvm.org/D16874

llvm-svn: 259749
2016-02-04 04:15:36 +00:00

13 lines
279 B
LLVM

; 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
}