1; RUN: opt -S -lower-guard-intrinsic < %s | FileCheck %s 2 3declare cc99 void @llvm.experimental.guard(i1, ...) 4 5define i8 @f_basic(i1* %c_ptr) { 6; CHECK-LABEL: @f_basic( 7; CHECK: br i1 %c, label %guarded, label %deopt 8; CHECK: deopt: 9; CHECK-NEXT: %deoptcall = call cc99 i8 (...) @llvm.experimental.deoptimize.i8() [ "deopt"() ] 10; CHECK-NEXT: ret i8 %deoptcall 11 12 %c = load volatile i1, i1* %c_ptr 13 call cc99 void(i1, ...) @llvm.experimental.guard(i1 %c) [ "deopt"() ] 14 ret i8 6 15} 16