[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.
Loading
Please sign in to comment