21 lines
518 B
LLVM
21 lines
518 B
LLVM
; 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 }
|