[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / Transforms / ADCE / broken-loop-info.ll
blob74679a1ab7f2e884e0c52f463ce6404d580af246
1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes='loop-mssa(licm),adce,loop-mssa(licm)' -S < %s | FileCheck %s
5 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128-ni:1-p2:32:8:8:32-ni:2"
6 target triple = "x86_64-unknown-linux-gnu"
8 define void @test() {
9 ; CHECK-LABEL: @test(
10 ; CHECK-NEXT:  bb:
11 ; CHECK-NEXT:    br label [[BB2:%.*]]
12 ; CHECK:       bb1:
13 ; CHECK-NEXT:    ret void
14 ; CHECK:       bb2:
15 ; CHECK-NEXT:    br label [[BB4:%.*]]
16 ; CHECK:       bb3:
17 ; CHECK-NEXT:    unreachable
18 ; CHECK:       bb4:
19 ; CHECK-NEXT:    br i1 true, label [[BB1:%.*]], label [[BB2]]
22 bb:
23   br label %bb2
25 bb1:                                              ; preds = %bb4
26   ret void
28 bb2:                                              ; preds = %bb4, %bb
29   br i1 undef, label %bb4, label %bb3
31 bb3:                                              ; preds = %bb2
32   br label %bb4
34 bb4:                                              ; preds = %bb3, %bb2
35   br i1 undef, label %bb1, label %bb2