Added RegisterCoalescer support for joining global copies first.
authorAndrew Trick <atrick@apple.com>
Tue, 13 Nov 2012 08:47:25 +0000 (08:47 +0000)
committerAndrew Trick <atrick@apple.com>
Tue, 13 Nov 2012 08:47:25 +0000 (08:47 +0000)
commit40534fe9a57ae27ba1d47834386d31c649c06972
tree8a2428d14d2302afa655232ffb42b56b28731526
parent2906117857b8aa475d3407b0163c00b67229bde2
Added RegisterCoalescer support for joining global copies first.

This adds the -join-globalcopies option which can be enabled by
default once misched is also enabled.

Ideally, the register coalescer would be able to split local live
ranges in a way that produces copies that can be easily resolved by
the scheduler. Until then, this heuristic should be good enough to at
least allow the scheduler to run after coalescing.

llvm-svn: 167825
llvm/lib/CodeGen/RegisterCoalescer.cpp