Manually remove successors in if conversion when CopyAndPredicateBlock is used
[oota-llvm.git] / test / CodeGen / PowerPC / early-ret2.ll
1 ; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s
2 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
3 target triple = "powerpc64-unknown-linux-gnu"
4
5 define void @_Z8example3iPiS_() #0 {
6 entry:
7   br i1 undef, label %while.end, label %while.body.lr.ph
8
9 while.body.lr.ph:                                 ; preds = %entry
10   br i1 undef, label %while.end, label %while.body
11
12 while.body:                                       ; preds = %while.body, %while.body.lr.ph
13   br i1 false, label %while.end, label %while.body, !llvm.vectorizer.already_vectorized !0
14
15 while.end:                                        ; preds = %while.body, %while.body.lr.ph, %entry
16   ret void
17
18 ; CHECK: @_Z8example3iPiS_
19 ; CHECK: bnelr
20 }
21
22 attributes #0 = { noinline nounwind }
23
24 !0 = metadata !{}
25