Jakob Stoklund Olesen 6d4ef2b65f Consider ad hoc aliasing when building RegUnits.
Register units can be used to compute if two registers overlap:

  A overlaps B iff units(A) intersects units(B).

With this change, the above holds true even on targets that use ad hoc
aliasing (currently only ARM). This means that register units can be
used to implement regsOverlap() more efficiently, and the register
allocator can use the concept to model interference.

When there is no ad hoc aliasing, the register units correspond to the
maximal cliques in the register overlap graph. This is optimal, no other
register unit assignment can have fewer units.

With ad hoc aliasing, weird things are possible, and we don't try too
hard to compute the maximal cliques. The current approach is always
correct, and it works very well (probably optimally) as long as the ad
hoc aliasing doesn't have cliques larger than pairs. It seems unlikely
that any target would need more.

llvm-svn: 156763
2012-05-14 15:20:39 +00:00
..
2012-02-22 19:38:03 +00:00
2010-11-29 18:16:10 +00:00
2009-02-20 23:44:54 +00:00
2012-04-03 23:09:22 +00:00
2012-03-23 05:50:46 +00:00
2012-01-20 17:56:17 +00:00
2010-08-04 16:11:24 +00:00
2012-01-26 22:06:23 +00:00
2012-04-17 17:21:17 +00:00