1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Check for cannonicalization of shl X, 1 -> add X, X

llvm-svn: 3670
This commit is contained in:
Chris Lattner 2002-09-10 23:03:10 +00:00
parent f2fa52fec2
commit 9b5ccd195a

View File

@ -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
}