blob: 89c9d9cea2270cbb471f90b5aae50bfd64d6d2f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
; RUN: opts -instsimplify -S < %s | FileCheck %s
define void @foo() nounwind {
br i1 undef, label %1, label %4
; <label>:1 ; preds = %1, %0
; CHECK-NOT: phi
; CHECK-NOT: sub
%2 = phi i32 [ %3, %1 ], [ undef, %0 ]
%3 = sub i32 0, undef
br label %1
; <label>:4 ; preds = %0
ret void
}
|