Open xrme opened 7 months ago
It looks like acode-rewrite-mul2
changes the multiply into a shift, but it doesn't do enough work to know if can use (%nx1-operator fixnum-ash)
instead of (%nx1-operator ash)
.
Maybe we could add acode-rewrite-ash
to catch this case?
Disassembly for
foo
. We recognize that we can turn the multiply into a shift, but for some reason we call out.Disassembly for
bar
, where we open-code:The situation on the ARM is similar.
The function
foo
:The function
bar
: