[MachineSink] Add a loop sink limit
authorSjoerd Meijer <sjoerd.meijer@arm.com>
Tue, 16 Feb 2021 14:43:44 +0000 (14:43 +0000)
committerSjoerd Meijer <sjoerd.meijer@arm.com>
Wed, 17 Feb 2021 08:50:53 +0000 (08:50 +0000)
commit7f3170ec1943a25a09beb0a989ebc83c9c238f97
tree599b5a4bc22b223c72b29e3ec34411cb107e73ee
parentac6c13bfc49f2d67a77144c839ecf49e48cb994c
[MachineSink] Add a loop sink limit

To make sure compile-times don't regress, add an option to restrict the number
of instructions considered for sinking as alias analysis can be expensive and
for the same reason also skip large blocks.

Differential Revision: https://reviews.llvm.org/D96485
llvm/lib/CodeGen/MachineSink.cpp
llvm/test/CodeGen/AArch64/loop-sink-limit.mir [new file with mode: 0644]