Check for cannonicalization of shl X, 1 -> add X, X
llvm-svn: 3670
This commit is contained in:
parent
e8c927f71a
commit
025e58dfa5
|
@ -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