summaryrefslogtreecommitdiff
path: root/test/Transforms/EarlyCSE/instsimplify-dom.ll
blob: ebdd7f9b419fc5e419e255bf4163ae6d00f32f6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; RUN: opt -early-cse -S < %s | FileCheck %s
; PR12231

declare i32 @f()

define i32 @fn() {
entry:
  br label %lbl_1215

lbl_1215:
  %ins34 = phi i32 [ %ins35, %xxx ], [ undef, %entry ]
  ret i32 %ins34

xxx:
  %ins35 = call i32 @f()
  br label %lbl_1215
}

; CHECK-LABEL: define i32 @fn(