]> git.ipfire.org Git - thirdparty/gcc.git/commit
Disable loop distribution for loops with estimated iterations 0
authorJan Hubicka <jh@suse.cz>
Sun, 6 Aug 2023 20:33:33 +0000 (22:33 +0200)
committerJan Hubicka <jh@suse.cz>
Sun, 6 Aug 2023 20:33:33 +0000 (22:33 +0200)
commite3e6db43640fadc9aa41c5459d43e5541d83f29a
tree09b5bbaa638b70e5436af91924f4e36644659062
parent838237aeeba578fc2cf42bfd3ecb9d9a4fb7a2b4
Disable loop distribution for loops with estimated iterations 0

This prevents useless loop distribiton produced in hmmer.  With FDO we now
correctly work out that the loop created for last iteraiton is not going to
iterate however loop distribution still produces a verioned loop that has no
chance to survive loop vectorizer since we only keep distributed loops
when loop vectorization suceeds and it requires number of (header) iterations
to exceed the vectorization factor.

gcc/ChangeLog:

* tree-loop-distribution.cc (loop_distribution::execute): Disable
distribution for loops with estimated iterations 0.
gcc/tree-loop-distribution.cc