HomePhabricator

[AMDGPU] Allow buildSpillLoadStore in empty bb

Authored by sebastian-ne on Apr 29 2021, 3:52 AM.

Description

[AMDGPU] Allow buildSpillLoadStore in empty bb

This allows calling buildSpillLoadStore for an empty basic block, where
MI points at the end of the block instead of to an instruction.

This only happens with downstream CFI changes, so I was not able to
create a testcase that works with upstream LLVM.

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