blob: 65e14b69e9e633e90d66d591e9e7023b055d6a76 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
; RUN: opt < %s -S -speculative-execution \
; RUN: -spec-exec-max-speculation-cost 4 -spec-exec-max-not-hoisted 3 \
; RUN: | FileCheck %s
; CHECK-LABEL: @ifThen_extractvalue(
; CHECK: extractvalue
; CHECK: br i1 true
define void @ifThen_extractvalue() {
br i1 true, label %a, label %b
a:
%x = extractvalue { i32, i32 } undef, 0
br label %b
b:
ret void
}
; CHECK-LABEL: @ifThen_insertvalue(
; CHECK: insertvalue
; CHECK: br i1 true
define void @ifThen_insertvalue() {
br i1 true, label %a, label %b
a:
%x = insertvalue { i32, i32 } undef, i32 undef, 0
br label %b
b:
ret void
}
|