Lines Matching refs:OPT
7 ; RUN: opt -O3 -S < %s | FileCheck -check-prefixes=OPT,OPT-WXX %s
8 ; RUN: opt -mtriple=amdgcn-- -O3 -S < %s | FileCheck -check-prefixes=OPT,OPT-WXX %s
9 …pt -mtriple=amdgcn-- -O3 -mattr=+wavefrontsize32 -S < %s | FileCheck -check-prefixes=OPT,OPT-W32 %s
10 …-- -passes='default<O3>' -mattr=+wavefrontsize32 -S < %s | FileCheck -check-prefixes=OPT,OPT-W32 %s
11 …pt -mtriple=amdgcn-- -O3 -mattr=+wavefrontsize64 -S < %s | FileCheck -check-prefixes=OPT,OPT-W64 %s
12 ; RUN: opt -mtriple=amdgcn-- -mcpu=tonga -O3 -S < %s | FileCheck -check-prefixes=OPT,OPT-W64 %s
13 …010 -O3 -mattr=+wavefrontsize32,-wavefrontsize64 -S < %s | FileCheck -check-prefixes=OPT,OPT-W32 %s
14 …010 -O3 -mattr=-wavefrontsize32,+wavefrontsize64 -S < %s | FileCheck -check-prefixes=OPT,OPT-W64 %s
15 …100 -O3 -mattr=+wavefrontsize32,-wavefrontsize64 -S < %s | FileCheck -check-prefixes=OPT,OPT-W32 %s
16 …100 -O3 -mattr=-wavefrontsize32,+wavefrontsize64 -S < %s | FileCheck -check-prefixes=OPT,OPT-W64 %s
19 ; OPT-LABEL: define amdgpu_kernel void @fold_wavefrontsize(
25 ; OPT-W32: store i32 32, i32 addrspace(1)* %arg, align 4
26 ; OPT-W64: store i32 64, i32 addrspace(1)* %arg, align 4
27 ; OPT-WXX: %tmp = tail call i32 @llvm.amdgcn.wavefrontsize()
28 ; OPT-WXX: store i32 %tmp, i32 addrspace(1)* %arg, align 4
29 ; OPT-NEXT: ret void
39 ; OPT-LABEL: define amdgpu_kernel void @fold_and_optimize_wavefrontsize(
46 ; OPT-W32: store i32 1, i32 addrspace(1)* %arg, align 4
47 ; OPT-W64: store i32 2, i32 addrspace(1)* %arg, align 4
48 ; OPT-WXX: %tmp = tail call i32 @llvm.amdgcn.wavefrontsize()
49 ; OPT-WXX: %tmp1 = icmp ugt i32 %tmp, 32
50 ; OPT-WXX: %tmp2 = select i1 %tmp1, i32 2, i32 1
51 ; OPT-WXX: store i32 %tmp2, i32 addrspace(1)* %arg
52 ; OPT-NEXT: ret void
64 ; OPT-LABEL: define amdgpu_kernel void @fold_and_optimize_if_wavefrontsize(
66 ; OPT: bb:
67 ; OPT-WXX: %tmp = tail call i32 @llvm.amdgcn.wavefrontsize()
68 ; OPT-WXX: %tmp1 = icmp ugt i32 %tmp, 32
69 ; OPT-WXX: bb3:
70 ; OPT-W64: store i32 1, i32 addrspace(1)* %arg, align 4
71 ; OPT-NEXT: ret void