[SplitKit] Cope with no live subranges in defFromParent
authorJay Foad <jay.foad@amd.com>
Mon, 28 Sep 2020 08:30:58 +0000 (09:30 +0100)
committerJay Foad <jay.foad@amd.com>
Wed, 30 Sep 2020 09:16:25 +0000 (10:16 +0100)
commitcdac4492b4a523a888a013d42ea0a968f684ed59
tree70cd256b141378c25fe1ee37febbccb7d3ca79ba
parent0249df33fec16b728e2d33cae02f5da4c9f74e38
[SplitKit] Cope with no live subranges in defFromParent

Following on from D87757 "[SplitKit] Only copy live lanes", it is
possible to split a live range at a point when none of its subranges
are live. This patch handles that case by inserting an implicit def
of the superreg.

Patch by Quentin Colombet!

Differential Revision: https://reviews.llvm.org/D88397
llvm/lib/CodeGen/SplitKit.cpp
llvm/test/CodeGen/AMDGPU/splitkit-nolivesubranges.mir [new file with mode: 0644]