[RegisterCoalescer] Add a rule to consider more profitable copies first when
authorQuentin Colombet <qcolombet@apple.com>
Thu, 26 Mar 2015 01:01:48 +0000 (01:01 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 26 Mar 2015 01:01:48 +0000 (01:01 +0000)
commit45f376c4e6bb65d34f45eb8127759eb39b708b56
treeac8c55ddabe926ebaf5bf1173af9319a40f5cd0c
parentdd9bb11cfc663f49bf64bb0c92390e73b0aa3c3b
[RegisterCoalescer] Add a rule to consider more profitable copies first when
those are in the same basic block.
The previous approach was the topological order of the basic block.

By default this rule is disabled.

Related to PR22768.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233241 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp
test/CodeGen/X86/phys_subreg_coalesce-2.ll