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:
parent
f2fa52fec2
commit
9b5ccd195a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user