[LV] Scalar with predication must not be uniform

Authored by Ayal on Nov 26 2019, 2:08 PM.


[LV] Scalar with predication must not be uniform

Fix PR40816: avoid considering scalar-with-predication instructions as also

Instructions identified as "scalar with predication" will be "vectorized" using
a replicating region. If such instructions are also optimized as "uniform after
vectorization", namely when only the first of VF lanes is used, such a
replicating region becomes erroneous - only the first instance of the region can
and should be formed. Fix such cases by not considering such instructions as
"uniform after vectorization".

Differential Revision: https://reviews.llvm.org/D70298