brintos

brintos / llvm-project-archived public Read only

0
0
Text · 552 B · bb1d616 Raw
27 lines · plain
1; RUN: opt < %s -passes=debugify,instcombine -S | FileCheck %s2 3declare i32 @escape(i32)4 5; CHECK-LABEL: define {{.*}}@foo(6define i32 @foo(i1 %c1) {7entry:8  %baz = alloca i329  br i1 %c1, label %lhs, label %rhs10 11lhs:12  store i32 1, ptr %baz13  br label %cleanup14 15rhs:16  store i32 2, ptr %baz17  br label %cleanup18 19cleanup:20  ; CHECK: %storemerge = phi i32 [ 2, %rhs ], [ 1, %lhs ], !dbg [[merge_loc:![0-9]+]]21  %baz.val = load i32, ptr %baz22  %ret.val = call i32 @escape(i32 %baz.val)23  ret i32 %ret.val24}25 26; CHECK: [[merge_loc]] = !DILocation(line: 027