1 ; RUN: opt -S -simplifycfg < %s | FileCheck %s
3 ; CHECK-LABEL: @speculatable_attribute
5 define i32 @speculatable_attribute(i32 %a) {
7 %c = icmp sgt i32 %a, 64
8 br i1 %c, label %end, label %if
11 %val = call i32 @func() #0
15 %ret = phi i32 [%val, %if], [0, %entry]
19 define i32 @func() #0 {
22 attributes #0 = { nounwind readnone speculatable }