Unverified Commit 70904226 authored by Igor Kirillov's avatar Igor Kirillov Committed by GitHub
Browse files

[LoopVectorize] Enhance Vectorization decisions for predicate tail-folded...

[LoopVectorize] Enhance Vectorization decisions for predicate tail-folded loops with low trip counts (#69588)

* Avoid using `CM_ScalarEpilogueNotAllowedLowTripLoop` for loops known
to be predicate tail-folded, delegating to `areRuntimeChecksProfitable`
to decide on the profitability of vectorizing loops with runtime checks.
* Update the `areRuntimeChecksProfitable` function to consider the
`ScalarEpilogueLowering` setting when assessing vectorization of a loop.

With this patch, we can make more informed decisions for loops with low
trip counts, especially when leveraging Profile-Guided Optimization
(PGO) data.
parent 43264970
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment