1 ; RUN: opt < %s -passes=simple-loop-unswitch -verify-memoryssa -S | FileCheck %s
3 ; This test checks if unswitched condition preserve make.implicit metadata.
4 define i32 @test(i1 %cond) {
9 ; CHECK-NEXT: br i1 %{{.*}}, label %entry.split, label %loop_exit, !make.implicit !0
12 ; CHECK-NEXT: br label %loop_begin
15 br i1 %cond, label %continue, label %loop_exit, !make.implicit !0
17 ; CHECK-NEXT: br label %continue
20 call void @some_func()
24 ; CHECK-NEXT: br label %loop_begin
32 declare void @some_func()