1 ; RUN: opt < %s -simple-loop-unswitch -S | FileCheck %s
2 ; RUN: opt < %s -simple-loop-unswitch -enable-mssa-loop-dependency=true -verify-memoryssa -S | FileCheck %s
4 ; This test checks if unswitched condition preserve make.implicit metadata.
5 define i32 @test(i1 %cond) {
10 ; CHECK-NEXT: br i1 %{{.*}}, label %entry.split, label %loop_exit, !make.implicit !0
13 ; CHECK-NEXT: br label %loop_begin
16 br i1 %cond, label %continue, label %loop_exit, !make.implicit !0
18 ; CHECK-NEXT: br label %continue
21 call void @some_func()
25 ; CHECK-NEXT: br label %loop_begin
33 declare void @some_func()