Compiler: stop wasting cycles....
Must have gotten carried away during the refactoring of the
graph traversal code... The quick codegen's mechanism to sum
the static uses of SSA regs and bucket them by parent Dalvik vreg
was getting run once for each basic block, when all it needed was
to be run once per method.
This had no effect on register allocation because the use counts
kept their relative position, but it uselessly wasted cycles.
Also fixed an inconsistency in the promotion threshold.
Change-Id: I58b438fe419f789ed11f7b136db645b2d23395de
2 files changed