OSDN Git Service

[RegAllocGreedy] Take last chance recoloring into account in split and assign
authorMikael Holmen <mikael.holmen@ericsson.com>
Wed, 20 Feb 2019 07:14:39 +0000 (07:14 +0000)
committerMikael Holmen <mikael.holmen@ericsson.com>
Wed, 20 Feb 2019 07:14:39 +0000 (07:14 +0000)
commit3e6388c561e0b1aa3f2fbb2a996f2b81004db6bb
tree15a8d355051150fc1b6177aced3e90de497667f3
parentc67948988f4cf1d96071ab2acfa7f124a0eac124
[RegAllocGreedy] Take last chance recoloring into account in split and assign

Summary:
This is a follow-up to r353988 where tryEvict was extended to take last
chance recoloring into account. Now we do the same thing for trySplit and
tryAssign.

Now we always pass a "FixedRegisters" argument to canEvictInterference and
tryEvict so it doesn't need to have a default value anymore.

The need for this was found long ago in an out-of-tree target.
Unfortunately I don't have a reproducer for an in-tree target.

Reviewers: qcolombet, rudkx

Reviewed By: qcolombet, rudkx

Subscribers: rudkx, MatzeB, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58376

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