blob: 6ad437df66ad0a245a55fce12c7d849f0f683fee [file] [log] [blame]
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes
; RUN: opt < %s -passes=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 }