mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
20 lines
389 B
LLVM
20 lines
389 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 | grep -C1 add | grep Exit
|
||
|
|
||
|
implementation ; Functions:
|
||
|
|
||
|
void %test() {
|
||
|
Entry:
|
||
|
br bool false, label %Loop, label %Exit
|
||
|
|
||
|
Loop:
|
||
|
%X = add int 0, 1
|
||
|
br bool false, label %Loop, label %Exit
|
||
|
|
||
|
Exit:
|
||
|
%Y = phi int [ 0, %Entry ], [ %X, %Loop ]
|
||
|
ret void
|
||
|
}
|