From 128a0032a267c38d5df6b6f5578fb9f2b0f2b159 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 Sep 2005 22:19:46 +0000 Subject: [PATCH] new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23321 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/load.ll | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/Transforms/InstCombine/load.ll b/test/Transforms/InstCombine/load.ll index 056f3177a13..f3090a4f957 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 +} -- 2.34.1