mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 01:13:25 +00:00
6f729d601c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48762 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
355 B
LLVM
16 lines
355 B
LLVM
; RUN: llvm-as < %s | opt -loopsimplify
|
|
|
|
define void @foo(i1 %C) {
|
|
br i1 %C, label %T, label %F
|
|
T: ; preds = %0
|
|
br label %Loop
|
|
F: ; preds = %0
|
|
br label %Loop
|
|
Loop: ; preds = %L2, %Loop, %F, %T
|
|
%Val = phi i32 [ 0, %T ], [ 1, %F ], [ 2, %Loop ], [ 3, %L2 ] ; <i32> [#uses=0]
|
|
br i1 %C, label %Loop, label %L2
|
|
L2: ; preds = %Loop
|
|
br label %Loop
|
|
}
|
|
|