DescriptionSeems a bit complicated
1. only double constant is not enough for double instructions to place in right operand. double constant can't be directly inlined in instruction. But if double constant usecount is more than 1, it would be better not to clobber it.
2. Simply check the (a = a + b) and (a = b + a) inside a loop just as the mentioned benchmark. At each case, we'd better place the "a" operand in the left operand.
General benchmarks(octane,sunspider,kraken) measurement shows that the new heuristic does not have measurable negative impact.
BUG=
Patch Set 1 #Patch Set 2 : Tune Better{Left,Right}Operand() heuristic #
Total comments: 1
Messages
Total messages: 7 (0 generated)
|