]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commitdiff
new testcase
authorChris Lattner <sabre@nondot.org>
Mon, 12 Sep 2005 21:59:22 +0000 (21:59 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 12 Sep 2005 21:59:22 +0000 (21:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23319 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/load.ll

index 3c8a693dc78048c6b024177e2cce8806e0f3eb67..056f3177a135481590d08783615e46421e069d3f 100644 (file)
@@ -59,3 +59,9 @@ int %test7(int %X) {
        %R = load int* %V
        ret int %R
 }
+
+int %test8(int* %P) {
+       store int 1, int* %P
+       %X = load int* %P        ;; Trivial store->load forwarding
+       ret int %X
+}