[LiveIntervals] Repair subreg ranges in processTiedPairs
authorJay Foad <jay.foad@amd.com>
Fri, 24 Sep 2021 15:50:55 +0000 (16:50 +0100)
committerJay Foad <jay.foad@amd.com>
Tue, 28 Sep 2021 07:10:16 +0000 (08:10 +0100)
commit20c02807333a47000879e0f673cdf2d6b07148dd
tree69fbc1e122c92cba41f60fe464115fe97f180fe6
parentb2b1a8b833905e159fe445ba1d0baae427a118cc
[LiveIntervals] Repair subreg ranges in processTiedPairs

In TwoAddressInstructionPass::processTiedPairs, update subranges of the
live interval for RegB as well as the main range.

This is a small step towards switching TwoAddressInstructionPass over
from LiveVariables to LiveIntervals. Currently this path is only tested
if you explicitly enable -early-live-intervals.

Differential Revision: https://reviews.llvm.org/D110526
llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
llvm/test/CodeGen/Hexagon/swp-vect-dotprod.ll
llvm/test/CodeGen/SystemZ/subregliveness-01.ll
llvm/test/CodeGen/Thumb2/mve-multivec-spill.ll