Heuristic: If the number of operands in the alias are more than the number of
[llvm/stm8.git] / test / Transforms / IPConstantProp / recursion.ll
blobb25a6c081811104e6b8a6891915f52cd399e030b
1 ; RUN: opt < %s -ipconstprop -deadargelim -S | not grep %X
2 define internal i32 @foo(i32 %X) {
3         %Y = call i32 @foo( i32 %X )            ; <i32> [#uses=1]
4         %Z = add i32 %Y, 1              ; <i32> [#uses=1]
5         ret i32 %Z
8 define void @bar() {
9         call i32 @foo( i32 17 )         ; <i32>:1 [#uses=0]
10         ret void