llvm.org GIT mirror llvm / 069667c
New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2695 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 13 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; This testcase shows a bug where an common subexpression exists, but there
1 ; is no shared dominator block that the expression can be hoisted out to.
2 ;
3 ; RUN: as < %s | opt -gcse | dis
4
5 int "test"(int %X, int %Y) {
6 %Z = add int %X, %Y
7 ret int %Z
8
9 Unreachable:
10 %Q = add int %X, %Y
11 ret int %Q
12 }