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:
533ce5c
)
Check for cannonicalization of shl X, 1 -> add X, X
author
Chris Lattner
<sabre@nondot.org>
Tue, 10 Sep 2002 23:03:10 +0000
(23:03 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 10 Sep 2002 23:03:10 +0000
(23:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3670
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/shift.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/shift.ll
b/test/Transforms/InstCombine/shift.ll
index dde01f56586328a9be5dbd846a87edbcab82d7a6..c6a341f454f46bd8f2c9cef24ab499492ff6be22 100644
(file)
--- a/
test/Transforms/InstCombine/shift.ll
+++ b/
test/Transforms/InstCombine/shift.ll
@@
-33,3
+33,7
@@
uint "test5"(uint %A) {
ret uint %B
}
+uint %test6(uint %A) {
+ %B = shl uint %A, ubyte 1 ;; convert to an add instruction
+ ret uint %B
+}