--
--
v8-dev mailing list
v8-...@googlegroups.com
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 v8-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/8f6d3e85-0141-416c-a82a-ed622b2ff30bn%40googlegroups.com.
Hi,
looking at the implementations for signed and unsigned 32-bit divisions in MachineOperatorReducer, it seems like there's some code that can be factored together. Do you think it's worth doing it since I'm introducing the 64-bit versions of these?
Also, partially related, I saw that the handling of kInt32Mul is slightly different from the one of kInt32MulWithOverflow: in particular, it looks like the latter only checks for multiplications by -1 or 2 (which is transformed into an addition) here and 0 and 1 are handled separately by ReduceProjection here, while the former handles 0,1,-1, power of twos and consecutive multiplications by a constant. Could the same set of optimizations be applied for both?
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/74af643d-0b83-467c-b644-85adb789f7efn%40googlegroups.com.