Status: New
Owner: ----
CC: [email protected]
Labels: Type-Bug Priority-Medium

New issue 3164 by [email protected]: Crankshaft produces double arithmetic due to -0 which can't actually be observed
http://code.google.com/p/v8/issues/detail?id=3164

This function is optimized with smi arithmetic:

function smi() {
  var s = 1;
  for (var i = 0; i < 1e6; i++)
    s = 1 - s;
}


This one however is optimized with double arithmetic due to -0 poisoning ICs. However -0 can never be observed outside so producing double arithmetic seems wasteful:

function dbl() {
  var s = 1;
  for (var i = 0; i < 1e6; i++)
    s = -s + 1;
}


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
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