mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
This pass has been removed from LLVM
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17518 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
392b75cbc7
commit
a9236a8d4b
@ -1,13 +0,0 @@
|
||||
; RUN: llvm-as < %s | opt -pinodes -instcombine -die | llvm-dis | not grep add
|
||||
|
||||
int "test"(int %i, int %j) {
|
||||
%c = seteq int %i, 0
|
||||
br bool %c, label %iIsZero, label %iIsNotZero
|
||||
|
||||
iIsZero:
|
||||
%j2 = add int %j, %i ; This is always equal to j
|
||||
ret int %j2
|
||||
|
||||
iIsNotZero:
|
||||
ret int 1
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
|
||||
int "test"(int %i) {
|
||||
%c = seteq int %i, 0
|
||||
br bool %c, label %iIsZero, label %iIsNotZero
|
||||
|
||||
iIsZero:
|
||||
ret int %i
|
||||
|
||||
iIsZero2:
|
||||
ret int 0
|
||||
iIsNotZero:
|
||||
%d = setne int %i, 0
|
||||
br bool %d, label %Quit, label %iIsZero2
|
||||
|
||||
Quit:
|
||||
ret int 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user