brintos

brintos / llvm-project-archived public Read only

0
0
Text · 611 B · 7f881d0 Raw
26 lines · plain
1; REQUIRES: amdgpu-registered-target2; RUN: opt -S -passes=speculative-execution -mtriple=amdgcn--  \3; RUN: -spec-exec-only-if-divergent-target \4; RUN:   -spec-exec-max-speculation-cost 4 -spec-exec-max-not-hoisted 3 \5; RUN:   %s | FileCheck %s6 7; Hoist in if-then pattern.8define void @skip_single_lane_ifThen() #0 {9; CHECK-LABEL: @skip_single_lane_ifThen(10; CHECK: br i1 true11 12br i1 true, label %a, label %b13; CHECK: a:14; CHECK: %x = add i32 2, 315a:16  %x = add i32 2, 317; CHECK: br label18  br label %b19; CHECK: b:20b:21; CHECK: ret void22  ret void23}24 25attributes #0 = { "amdgpu-flat-work-group-size"="1,1" }26