OSDN Git Service

[RegAlloc] Keep a copy of live interval for the spilled vregs in HoistSpillHelper.
authorWei Mi <wmi@google.com>
Wed, 13 Sep 2017 21:41:30 +0000 (21:41 +0000)
committerWei Mi <wmi@google.com>
Wed, 13 Sep 2017 21:41:30 +0000 (21:41 +0000)
commit57d83cbdcddea8a1299667933991621c81ad19dd
tree7633989f88b5dc30894b880ccebda38953b64b2d
parent307e53ca6732580cf0ac0090257cf55b76e69d18
[RegAlloc] Keep a copy of live interval for the spilled vregs in HoistSpillHelper.

This is to fix PR34502. After rL311401, the live range of spilled vreg will be
cleared. HoistSpill need to use the live range of the original vreg before splitting
to know the moving range of the spills. The patch saves a copy of live interval for
the spilled vreg inside of HoistSpillHelper.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313197 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/InlineSpiller.cpp
test/CodeGen/X86/clear-liverange-spillreg.mir [new file with mode: 0644]