mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
50e8682f28
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6965 91177308-0d34-0410-b5e6-96231b3b80d8
36 lines
1.0 KiB
LLVM
36 lines
1.0 KiB
LLVM
; RUN: as < %s | opt -cee -simplifycfg | dis | not grep 'REMOVE'
|
|
|
|
implementation
|
|
|
|
declare void %foo(int)
|
|
|
|
void %test(int %A) {
|
|
bb1: ;[#uses=0]
|
|
%cond212 = setgt int %A, 9 ; <bool> [#uses=1]
|
|
br bool %cond212, label %REMOVEbb3, label %bb2
|
|
|
|
bb2: ;[#uses=1]
|
|
call void %foo( int 123 )
|
|
br label %REMOVEbb3
|
|
|
|
REMOVEbb3: ;[#uses=2]
|
|
%cond217 = setle int %A, 9 ; <bool> [#uses=1]
|
|
br bool %cond217, label %REMOVEbb5, label %bb4
|
|
|
|
bb4: ;[#uses=1]
|
|
call void %foo( int 234 )
|
|
br label %REMOVEbb5
|
|
|
|
REMOVEbb5: ;[#uses=2]
|
|
%cond222 = setgt int %A, 9 ; <bool> [#uses=1]
|
|
br bool %cond222, label %bb7, label %REMOVEbb6
|
|
|
|
REMOVEbb6: ;[#uses=1]
|
|
call void %foo( int 456 )
|
|
br label %bb7
|
|
|
|
bb7: ;[#uses=2]
|
|
ret void
|
|
}
|
|
|