Use TRI->regsOverlap() in MachineBasicBlock::computeRegisterLiveness
authorMikael Holmen <mikael.holmen@ericsson.com>
Tue, 25 Sep 2018 06:10:04 +0000 (06:10 +0000)
committerMikael Holmen <mikael.holmen@ericsson.com>
Tue, 25 Sep 2018 06:10:04 +0000 (06:10 +0000)
commitadf5e0d91d10ebd45993b837e7f1eae54223a0d2
tree73fcff8938d44e97bd978d156406eada9fcd2cc1
parent9c2463622dd58b6b3987fe80509c22f5df02b88c
Use TRI->regsOverlap() in MachineBasicBlock::computeRegisterLiveness

Summary:
For the loop that used MCRegAliasIterator this should be NFC.

For the loop that previously used MCSubRegIterator we should
now detect more cases where the register is actually live out that
we previously missed.

Reviewers: MatzeB, arsenm

Reviewed By: MatzeB

Subscribers: wdng, llvm-commits

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

llvm-svn: 342944
llvm/lib/CodeGen/MachineBasicBlock.cpp