projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62f254d
)
new testcase
author
Chris Lattner
<sabre@nondot.org>
Mon, 12 Sep 2005 22:19:46 +0000
(22:19 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 12 Sep 2005 22:19:46 +0000
(22:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23321
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/load.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/load.ll
b/test/Transforms/InstCombine/load.ll
index 056f3177a135481590d08783615e46421e069d3f..f3090a4f9570cf2d018db341f505d24084ddcacd 100644
(file)
--- 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
+}