[PowerPC] Eliminate compares - add i32 sext/zext handling for SETULT/SETUGT
[llvm-core.git] / test / Transforms / LoopUnswitch / copy-metadata.ll
blob3302bce9a6e58515ad9ad109aa56647e119f0b82
1 ; RUN: opt < %s -loop-unswitch -S < %s 2>&1 | FileCheck %s
3 ; This test checks if unswitched condition preserve make.implicit metadata.
5 define i32 @test(i1 %cond) {
6 ; CHECK-LABEL: @test(
7 ; CHECK:  br i1 %cond, label %..split_crit_edge, label %.loop_exit.split_crit_edge, !make.implicit !0
8   br label %loop_begin
10 loop_begin:
11   br i1 %cond, label %continue, label %loop_exit, !make.implicit !0
13 continue:
14   call void @some_func()
15   br label %loop_begin
17 loop_exit:
18   ret i32 0
21 declare void @some_func()
23 !0 = !{}