[AArch64][NFC] NFC for const vector as Instruction operand (#116790)
[llvm-project.git] / llvm / test / Transforms / InstCombine / storemerge-dbg.ll
blobf2bdf4493fbafb3410c37137e0ffaa97b03ef37c
1 ; RUN: opt < %s -passes=debugify,instcombine -S | FileCheck %s
2 ; RUN: opt < %s -passes=debugify,instcombine -S --try-experimental-debuginfo-iterators | FileCheck %s
4 declare i32 @escape(i32)
6 ; CHECK-LABEL: define {{.*}}@foo(
7 define i32 @foo(i1 %c1) {
8 entry:
9   %baz = alloca i32
10   br i1 %c1, label %lhs, label %rhs
12 lhs:
13   store i32 1, ptr %baz
14   br label %cleanup
16 rhs:
17   store i32 2, ptr %baz
18   br label %cleanup
20 cleanup:
21   ; CHECK: %storemerge = phi i32 [ 2, %rhs ], [ 1, %lhs ], !dbg [[merge_loc:![0-9]+]]
22   %baz.val = load i32, ptr %baz
23   %ret.val = call i32 @escape(i32 %baz.val)
24   ret i32 %ret.val
27 ; CHECK: [[merge_loc]] = !DILocation(line: 0