llvm-project/llvm/test/Transforms/Inline/ARM
David Green ba9f245b0d [Inliner] Penalise inlining of calls with loops at Oz
We currently seem to underestimate the size of functions with loops in them,
both in terms of absolute code size and in the difficulties of dealing with
such code. (Calls, for example, can be tail merged to further reduce
codesize). At -Oz, we can then increase code size by inlining small loops
multiple times.

This attempts to penalise functions with loops at -Oz by adding a CallPenalty
for each top level loop in the function. It uses LI (and hence DT) to calculate
the number of loops. As we are dealing with minsize, the inline threshold is
small and functions at this point should be relatively small, making the
construction of these cheap.

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

llvm-svn: 346134
2018-11-05 14:54:34 +00:00
..
inline-fp.ll Enrich inline messages 2018-08-05 14:53:08 +00:00
inline-target-attr.ll
lit.local.cfg
loop-add.ll [Inliner] Penalise inlining of calls with loops at Oz 2018-11-05 14:54:34 +00:00
loop-memcpy.ll [Inliner] Penalise inlining of calls with loops at Oz 2018-11-05 14:54:34 +00:00
loop-noinline.ll [Inliner] Penalise inlining of calls with loops at Oz 2018-11-05 14:54:34 +00:00