commit | 6ca2505711b24a91385c6bf46dbef5c404dcf65f | [log] [tgz] |
---|---|---|
author | jeffhao <jeffhao@google.com> | Fri Jan 28 17:38:16 2011 -0800 |
committer | jeffhao <jeffhao@google.com> | Fri Jan 28 17:38:16 2011 -0800 |
tree | 1b59f31f398f7bb9cbeb9d1bb37b20a63c51ce1a | |
parent | 1c1cdc8493fd75aa240e4f7382e54c088f75f7a6 [diff] |
Changed reg allocator to try mapping phi sources/result to the same reg. The current registor allocator is pretty greedy in how it chooses to allocate registers. This change makes it attempt to try to map the sources and result of a phi to the same register if one of them already has a mapping and that mapping is compatible with the others. This saves on some register shuffling when the original greedy method got unlucky. Change-Id: I8afa430ce2ba8d034a9c0452a247d5943bc9cf37