DescriptionEmit RSB for subtraction with constant lhs on ARM
Instead of generating the following for "100 - x":
mov r1, #100
subs r0, r1, r0
this patch makes Crankshaft generate this:
rsbs r0, r0, #100
thus saving a register and a mov.
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=13017
Patch Set 1 #
Total comments: 2
Patch Set 2 : Rebase, address comments #
Messages
Total messages: 5 (0 generated)
|