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:
d99bf49
)
New testcase for scalar promotion
author
Chris Lattner
<sabre@nondot.org>
Mon, 24 Feb 2003 03:52:04 +0000
(
03:52
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 24 Feb 2003 03:52:04 +0000
(
03:52
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5611
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/LICM/scalar_promote.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/LICM/scalar_promote.ll
b/test/Transforms/LICM/scalar_promote.ll
index 817492e2d99fab69014c7065b9ba3879fb035ba1..01c25c8cebb164d18eaa7a4a9762d2d56e647446 100644
(file)
--- a/
test/Transforms/LICM/scalar_promote.ll
+++ b/
test/Transforms/LICM/scalar_promote.ll
@@
-19,3
+19,18
@@
Loop:
Out:
ret void
}
+
+void %testhard(int %i) {
+ br label %Loop
+Loop:
+ %X1 = getelementptr int* %X, long 0
+ %A = load int* %X1 ; Aliases X, needs to be rewritten
+ %V = add int %A, 1
+ %X2 = getelementptr int* %X, long 0
+ store int %V, int* %X2
+ br bool false, label %Loop, label %Exit
+
+Exit:
+ ret void
+
+}