Optimized dx instruction expansion to only generate necessary moves.
When an instruction's fields do not fit into an instruction format, dx
expands the instruction. Before, this would always use new registers for
sources and destination, generating moves for each. However, some of
these moves would be unnecessary if an original register already fit
into the instruction format. This change checks to see if the original
register fits before using a new register and generating a new move.
Change-Id: I17c6722cf4053573bf913a28d631386f2c3a733d
31 files changed