diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
commit | 009b1c42aa6266385f2c37e227516b24077e6dd7 (patch) | |
tree | 64ba909838c23261cace781ece27d106134ea451 /test/Transforms/SCCP/ipsccp-basic.ll |
Diffstat (limited to 'test/Transforms/SCCP/ipsccp-basic.ll')
-rw-r--r-- | test/Transforms/SCCP/ipsccp-basic.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/SCCP/ipsccp-basic.ll b/test/Transforms/SCCP/ipsccp-basic.ll new file mode 100644 index 0000000000000..1449ea70c39ba --- /dev/null +++ b/test/Transforms/SCCP/ipsccp-basic.ll @@ -0,0 +1,13 @@ +; RUN: llvm-as < %s | opt -ipsccp | llvm-dis | \ +; RUN: grep -v {ret i32 17} | grep -v {ret i32 undef} | not grep ret + +define internal i32 @bar(i32 %A) { + %X = add i32 1, 2 ; <i32> [#uses=0] + ret i32 %A +} + +define i32 @foo() { + %X = call i32 @bar( i32 17 ) ; <i32> [#uses=1] + ret i32 %X +} + |