OSDN Git Service

[PBQP] Fix PR33038 by pruning empty intervals in initializeGraph.
authorLang Hames <lhames@gmail.com>
Tue, 20 Feb 2018 22:15:09 +0000 (22:15 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 20 Feb 2018 22:15:09 +0000 (22:15 +0000)
commit2e9f926ca04e52bb0b3ed48aac4414028db1ad37
tree96f7c7c72859d2495020948d32bfd61305e6aa47
parentc138405948dd6dc1d6bd65620d4d7f9ff8a849de
[PBQP] Fix PR33038 by pruning empty intervals in initializeGraph.

Spilling may cause previously non-empty intervals (both for the spilled vreg
and others) to become empty. Moving the pruning into initializeGraph catches
these cases and fixes PR33038.

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