Comment #8 on issue 2513 by [email protected]: life benchmark slowness
http://code.google.com/p/v8/issues/detail?id=2513

It shouldn't be too hard to optimize (a<b)|0 to avoid any branching; | (and all the other bitwise operators) perform ToInt32 on their inputs. Propagating this "result flows into ToInt32" information from uses to defs, it is then simple to optimize a comparison that flows into ToInt32 to emit "cmp; setcc". Indeed, I assume Crankshaft must already be doing something similar, e.g., to avoid the overflow check in an integer addition that flows into |0; IonMonkey certainly does.

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to