Speed up HInstruction::ReplaceUsesDominatedBy

We can pre-calculate the dominated blocks so that the dominance
calculation is faster overall. Methods which were affected by
the previous implementation see 10x speedup with this CL.

Bug: 319118425
Test: Locally compile the app in the bug
Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b
Change-Id: I0e3b84485ea7082bec348b6852b5164e06aa7829
1 file changed