OSDN Git Service

[RegAlloc] Make sure live-ranges reflect the state of the IR when removing them
authorQuentin Colombet <qcolombet@apple.com>
Mon, 21 Aug 2017 22:56:18 +0000 (22:56 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Mon, 21 Aug 2017 22:56:18 +0000 (22:56 +0000)
commit463fa38bbcbb4293ce52f1b615410867b82026d2
treed5c0ea5be9b9c3f5e6f871b46de3fa5e1e66ede3
parent16e7603633073a4f452f11020646d1b876bafe00
[RegAlloc] Make sure live-ranges reflect the state of the IR when removing them

When removing a live-range we used to not touch them making debug
prints harder to read because the IR was not matching what the
live-ranges information was saying.

This only affects debug printing and allows to put stronger asserts in
the code (see r308906 for instance).

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