mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
3a4c856323
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48527 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
452 B
LLVM
17 lines
452 B
LLVM
; This testcase checks to make sure the sinker does not cause problems with
|
|
; critical edges.
|
|
|
|
; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext add 1 | grep Exit
|
|
|
|
define void @test() {
|
|
Entry:
|
|
br i1 false, label %Loop, label %Exit
|
|
Loop: ; preds = %Loop, %Entry
|
|
%X = add i32 0, 1 ; <i32> [#uses=1]
|
|
br i1 false, label %Loop, label %Exit
|
|
Exit: ; preds = %Loop, %Entry
|
|
%Y = phi i32 [ 0, %Entry ], [ %X, %Loop ] ; <i32> [#uses=0]
|
|
ret void
|
|
}
|
|
|