1 ; REQUIRES: amdgpu-registered-target
2 ; 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 %s
7 ; Hoist in if-then pattern.
8 define void @skip_single_lane_ifThen() #0 {
9 ; CHECK-LABEL: @skip_single_lane_ifThen(
12 br i1 true, label %a, label %b
14 ; CHECK: %x = add i32 2, 3
25 attributes #0 = { "amdgpu-flat-work-group-size"="1,1" }