mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Check for cannonicalization of shl X, 1 -> add X, X
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3670 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
533ce5c070
commit
dabb94adc1
@ -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