This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add an empty block after outlined MBB
AbandonedPublic

Authored by pcwang-thead on Mar 15 2023, 9:06 PM.

Details

Summary

So that MCP won't delete any copy instructions where a register is
set that is intended to be live-out, since MCP assumes that all the
defs are live-out conservatively.

This is a fix for D146037.

Diff Detail