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
tree: f618b4b3b6b4a92ca2357c6f84b2da0ba90a42d1
  1. .gitignore
  3. build/
  4. jdwpspy/
  5. src/
  6. test/
  7. tools/