Skip to content
Unverified Commit 2a82c15f authored by Florian Hahn's avatar Florian Hahn
Browse files

[LV] Consider runtime checks profitable if scalar cost is zero.

This fixes an UBSan failure after 644a965c. When using
user-provided VFs/ICs (via the force-vector-width /
force-vector-interleave options) the scalar cost is zero, which would
cause divide-by-zero.

When forcing vectorization using the options, the cost of the runtime
checks should not block vectorization.
parent 1ab37d99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment