You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
34
external/llvm/test/Transforms/SimpleLoopUnswitch/copy-metadata.ll
vendored
Normal file
34
external/llvm/test/Transforms/SimpleLoopUnswitch/copy-metadata.ll
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
; RUN: opt < %s -simple-loop-unswitch -S | FileCheck %s
|
||||
|
||||
; This test checks if unswitched condition preserve make.implicit metadata.
|
||||
define i32 @test(i1 %cond) {
|
||||
; CHECK-LABEL: @test(
|
||||
entry:
|
||||
br label %loop_begin
|
||||
; CHECK-NEXT: entry:
|
||||
; CHECK-NEXT: br i1 %{{.*}}, label %entry.split, label %loop_exit, !make.implicit !0
|
||||
;
|
||||
; CHECK: entry.split:
|
||||
; CHECK-NEXT: br label %loop_begin
|
||||
|
||||
loop_begin:
|
||||
br i1 %cond, label %continue, label %loop_exit, !make.implicit !0
|
||||
; CHECK: loop_begin:
|
||||
; CHECK-NEXT: br label %continue
|
||||
|
||||
continue:
|
||||
call void @some_func()
|
||||
br label %loop_begin
|
||||
; CHECK: continue:
|
||||
; CHECK-NEXT: call
|
||||
; CHECK-NEXT: br label %loop_begin
|
||||
|
||||
loop_exit:
|
||||
ret i32 0
|
||||
; CHECK: loop_exit:
|
||||
; CHECK-NEXT: ret
|
||||
}
|
||||
|
||||
declare void @some_func()
|
||||
|
||||
!0 = !{}
|
Reference in New Issue
Block a user