1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes='loop-mssa(licm)' < %s | FileCheck %s
3 @e = external dso_local global i32*, align 8
8 ; CHECK-NEXT: br label [[LOOP1:%.*]]
10 ; CHECK-NEXT: br label [[LOOP2:%.*]]
12 ; CHECK-NEXT: br i1 false, label [[LOOP2_LATCH:%.*]], label [[LOOP_LATCH:%.*]]
14 ; CHECK-NEXT: br label [[LOOP2]]
16 ; CHECK-NEXT: br label [[LOOP1]]
25 br i1 undef, label %loop2.latch, label %loop.latch
28 store i32 0, i32* null, align 4
32 store i32* null, i32** @e, align 8, !tbaa !0
33 %ptr = load i32*, i32** @e, align 8, !tbaa !0
34 store i32 0, i32* %ptr, align 4, !tbaa !4
39 !1 = !{!"any pointer", !2, i64 0}
40 !2 = !{!"omnipotent char", !3, i64 0}
41 !3 = !{!"Simple C/C++ TBAA"}
43 !5 = !{!"int", !2, i64 0}