OSDN Git Service

LiveIntervalAnalysis: Fix handleMoveDown() problem
authorMatthias Braun <matze@braunis.de>
Tue, 26 Jul 2016 03:57:45 +0000 (03:57 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 26 Jul 2016 03:57:45 +0000 (03:57 +0000)
commitbb936d2a6ecca0d9f4e214dacb5d4bf78a1a7dae
treef3c167fd985adb2833272c39df81bba3a0610290
parent6ba60326a1075e272e2af1969c164d55067bb711
LiveIntervalAnalysis: Fix handleMoveDown() problem

If we move a last-use register read to a later position we may skip
intermediate segments. This may require us to not only extend the
segment before the NewIdx, but also extend the segment live-in to
OldIdx.

This switches LiveIntervalTest to use AMDGPU so we can test subregister
liveness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276724 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveIntervalAnalysis.cpp
unittests/MI/LiveIntervalTest.cpp