repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added the ability to xfail based on llvmgcc version
[llvm-complete.git]
/
test
/
Transforms
/
GCSE
/
2002-05-21-NoSharedDominator.ll
blob
9d09911ac130b25c0964318711a3738259555224
1
; This testcase shows a bug where an common subexpression exists, but there
2
; is no shared dominator block that the expression can be hoisted out to.
3
;
4
; RUN: llvm-as < %s | opt -gcse | llvm-dis
5
6
int "test"(int %X, int %Y) {
7
%Z = add int %X, %Y
8
ret int %Z
9
10
Unreachable:
11
%Q = add int %X, %Y
12
ret int %Q
13
}