mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47793 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
819 B
Plaintext
28 lines
819 B
Plaintext
; This testcase was failing because without merging the return blocks, ADCE
|
|
; didn't know that it could get rid of the then.0 block.
|
|
|
|
; RUN: llvm-as < %s | opt -adce | llvm-dis | not grep load
|
|
|
|
|
|
define void @main(i32 %argc, i8** %argv) {
|
|
entry:
|
|
call void @__main( )
|
|
%tmp.1 = icmp ule i32 %argc, 5 ; <i1> [#uses=1]
|
|
br i1 %tmp.1, label %then.0, label %return
|
|
|
|
then.0: ; preds = %entry
|
|
%tmp.8 = load i8** %argv ; <i8*> [#uses=1]
|
|
%tmp.10 = load i8* %tmp.8 ; <i8> [#uses=1]
|
|
%tmp.11 = icmp eq i8 %tmp.10, 98 ; <i1> [#uses=1]
|
|
br i1 %tmp.11, label %then.1, label %return
|
|
|
|
then.1: ; preds = %then.0
|
|
ret void
|
|
|
|
return: ; preds = %then.0, %entry
|
|
ret void
|
|
}
|
|
|
|
declare void @__main()
|
|
|