1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -basic-aa -dse -S | FileCheck %s
4 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
5 declare void @unknown_func()
7 define void @test6(i32* noalias %P) {
9 ; CHECK-NEXT: store i32 0, i32* [[P:%.*]]
10 ; CHECK-NEXT: br i1 true, label [[BB1:%.*]], label [[BB2:%.*]]
12 ; CHECK-NEXT: br label [[BB3:%.*]]
14 ; CHECK-NEXT: call void @unknown_func()
15 ; CHECK-NEXT: br label [[BB3]]
17 ; CHECK-NEXT: store i32 0, i32* [[P]]
18 ; CHECK-NEXT: ret void
21 br i1 true, label %bb1, label %bb2
25 call void @unknown_func()
32 define void @test23(i32* noalias %P) {
33 ; CHECK-LABEL: @test23(
34 ; CHECK-NEXT: br i1 true, label [[BB1:%.*]], label [[BB2:%.*]]
36 ; CHECK-NEXT: br label [[BB3:%.*]]
38 ; CHECK-NEXT: call void @unknown_func()
39 ; CHECK-NEXT: br label [[BB3]]
41 ; CHECK-NEXT: store i32 0, i32* [[P:%.*]]
42 ; CHECK-NEXT: ret void
44 br i1 true, label %bb1, label %bb2
49 call void @unknown_func()
57 define void @test24(i32* noalias %P) {
58 ; CHECK-LABEL: @test24(
59 ; CHECK-NEXT: br i1 true, label [[BB2:%.*]], label [[BB1:%.*]]
61 ; CHECK-NEXT: br label [[BB3:%.*]]
63 ; CHECK-NEXT: call void @unknown_func()
64 ; CHECK-NEXT: br label [[BB3]]
66 ; CHECK-NEXT: store i32 0, i32* [[P:%.*]]
67 ; CHECK-NEXT: ret void
69 br i1 true, label %bb2, label %bb1
74 call void @unknown_func()