diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-10 19:43:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-10 19:43:31 +0000 |
commit | 62850160149a29a1d1dd53dc7deb096a95672f7d (patch) | |
tree | 708e1fae5b50e1893f7e54ebc540af06dfbcfb0e /test/Transforms/IPConstantProp | |
parent | 546faca4ef788230905d11828701d6d3215ee133 (diff) |
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/IPConstantProp')
-rw-r--r-- | test/Transforms/IPConstantProp/recursion.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/IPConstantProp/recursion.ll b/test/Transforms/IPConstantProp/recursion.ll new file mode 100644 index 0000000000..ac36eabcd3 --- /dev/null +++ b/test/Transforms/IPConstantProp/recursion.ll @@ -0,0 +1,14 @@ +; RUN: llvm-as < %s | opt -ipconstprop -deadargelim | llvm-dis | not grep %X + +implementation + +internal int %foo(int %X) { + %Y = call int %foo( int %X ) + %Z = add int %Y, 1 + ret int %Z +} + +void %bar() { + call int %foo( int 17 ) ; <int>:0 [#uses=0] + ret void +} |