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)
commit265058d9239e6867d06dc8aa40db5f33390abd17
tree76ccd67252e09e29caf5c7af07c046959073fc45
parent009c4d86c14bb2f46f9473f8f517393dabab7e9e
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167825 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp