xref: /llvm-project/llvm/test/Transforms/EarlyCSE/instsimplify-dom.ll (revision ac696ac4530fb3df626195e94e83649bf7114754)
1; RUN: opt -passes=early-cse -earlycse-debug-hash -S < %s | FileCheck %s
2; RUN: opt -passes='early-cse<memssa>' -S < %s | FileCheck %s
3; PR12231
4
5declare i32 @f()
6
7define i32 @fn() {
8entry:
9  br label %lbl_1215
10
11lbl_1215:
12  %ins34 = phi i32 [ %ins35, %xxx ], [ undef, %entry ]
13  ret i32 %ins34
14
15xxx:
16  %ins35 = call i32 @f()
17  br label %lbl_1215
18}
19
20; CHECK-LABEL: define i32 @fn(
21