1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=loop-deletion -S | FileCheck %s
4 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
5 target triple = "aarch64-unknown-linux-gnu"
7 define dso_local i32 @hoge() local_unnamed_addr #0 {
10 ; CHECK-NEXT: callbr void asm sideeffect "", "!i"()
11 ; CHECK-NEXT: to label [[BB1:%.*]] [label %bb2.preheader]
13 ; CHECK-NEXT: br label [[BB2_PREHEADER:%.*]]
14 ; CHECK: bb2.preheader:
15 ; CHECK-NEXT: br label [[BB2:%.*]]
17 ; CHECK-NEXT: [[TMP:%.*]] = phi i32 [ [[TMP3:%.*]], [[BB2]] ], [ undef, [[BB2_PREHEADER]] ]
18 ; CHECK-NEXT: [[TMP3]] = tail call i32 @widget(i32 [[TMP]])
19 ; CHECK-NEXT: br label [[BB2]]
22 callbr void asm sideeffect "", "!i"() #1
23 to label %bb1 [label %bb2]
28 bb2: ; preds = %bb2, %bb1, %bb
29 %tmp = phi i32 [ undef, %bb1 ], [ %tmp3, %bb2 ], [ undef, %bb ]
30 %tmp3 = tail call i32 @widget(i32 %tmp) #1
34 declare dso_local i32 @widget(...) local_unnamed_addr #0