dolphin-emu/dolphin — pull request #1252 by FioraAeterna (2014-10-10 03:07:25+00:00)
Title: JIT: add basic register allocation heuristics

Should be at least a bit better than the previous LRU approach. Currently
has two basic components: whether a register is dirty (dirty registers need
to be stored, so clobbering them hurts more) and how many other registers will
be used between now and the next time a register gets used.

Also don't pre-load values that don't need to be in registers.