projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new testcase
[oota-llvm.git]
/
test
/
Transforms
/
PiNodeInserter
/
substitutetest.ll
1
; RUN: llvm-as < %s | opt -pinodes -instcombine -die | llvm-dis | not grep add
2
3
int "test"(int %i, int %j) {
4
%c = seteq int %i, 0
5
br bool %c, label %iIsZero, label %iIsNotZero
6
7
iIsZero:
8
%j2 = add int %j, %i ; This is always equal to j
9
ret int %j2
10
11
iIsNotZero:
12
ret int 1
13
}