diff options
author | Chris Lattner <sabre@nondot.org> | 2005-09-12 22:19:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-09-12 22:19:46 +0000 |
commit | 128a0032a267c38d5df6b6f5578fb9f2b0f2b159 (patch) | |
tree | 81b248aed3b6a43d9d21daabaf0eb0539072b534 | |
parent | 62f254df04a78bf93ac9fa5859a9e7275867e853 (diff) |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23321 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/load.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/load.ll b/test/Transforms/InstCombine/load.ll index 056f3177a1..f3090a4f95 100644 --- a/test/Transforms/InstCombine/load.ll +++ b/test/Transforms/InstCombine/load.ll @@ -65,3 +65,10 @@ int %test8(int* %P) { %X = load int* %P ;; Trivial store->load forwarding ret int %X } + +int %test9(int* %P) { + %X = load int* %P ;; Trivial load cse + %Y = load int* %P + %Z = sub int %X, %Y + ret int %Z +} |