llvm-project/llvm/test/Transforms/IRCE
Serguei Katkov 38799975ce [IRCE] Do not transform if loop has small number of iterations
IRCE has some overhead for runtime checks and in case number of iteration is small
the overhead can kill the benefit from optimizations.

This CL bases on BlockFrequencyInfo of pre-header and header to estimate the
number of loop iterations. If it is less than irce-min-estimated-iters we do not transform the loop.

Probably it is better to make more complex cost model but for simplicity it seems the be enough.

The usage of BFI is added only for new pass manager and tries to use it efficiently.

Reviewers: ebrevnov, dantrushin, asbirlea, mkazantsev
Reviewed By: mkazantsev
Subscribers: llvm-commits, fhahn
Differential Revision: https://reviews.llvm.org/D89541
2020-10-20 10:33:59 +07:00
..
add-metadata-pre-post-loops.ll
bad-loop-structure.ll
bad_expander.ll
bug-loop-varying-upper-limit.ll
bug-mismatched-types.ll
clamp.ll
conjunctive-checks.ll
correct-loop-info.ll
decrementing-loop.ll
empty_ranges.ll
eq_ne.ll
low-becount.ll
low-iterations.ll [IRCE] Do not transform if loop has small number of iterations 2020-10-20 10:33:59 +07:00
multiple-access-no-preloop.ll
non-loop-invariant-rhs-instr.ll
non_known_positive_end.ll
not-likely-taken.ll
only-lower-check.ll
only-upper-check.ll
optimistic_scev.ll
pre_post_loops.ll
range_intersect_miscompile.ll
ranges_of_different_types.ll
rc-negative-bound.ll
single-access-no-preloop.ll
single-access-with-preloop.ll
skip-profitability-checks.ll
stride_more_than_1.ll
unhandled.ll
unsigned_comparisons_ugt.ll
unsigned_comparisons_ult.ll
variable-loop-bounds.ll
wide_indvar.ll
with-parent-loops.ll