blob: 1e68d4f95301c6a25ffedcaef223bdb9818104c8 [file] [log] [blame]
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes
; RUN: opt < %s -loop-deletion -S | FileCheck %s
define void @f() #0 {
; CHECK: Function Attrs: mustprogress
; CHECK-LABEL: define {{[^@]+}}@f
; CHECK-SAME: () [[ATTR0:#.*]] {
; CHECK-NEXT: unreachable
;
br label %1
%.01 = phi i32 [ 1, %0 ], [ %3, %2 ]
%.0 = phi i32 [ 1, %0 ], [ %3, %2 ]
br label %2
%3 = add nsw i32 %.01, %.0
br label %1
}
attributes #0 = { mustprogress }