We may not classify a BB vectorization load as VMAT_ELEMENTWISE as
that will ICE. Instead we build vectors from existing scalar loads.
Make that explicit.
* tree-vect-stmts.cc (get_load_store_type): Explicitly fail
when we end up with VMAT_ELEMENTWISE for BB vectorization.
"not falling back to elementwise accesses\n");
return false;
}
+
+ /* For BB vectorization build up the vector from existing scalar defs. */
+ if (!loop_vinfo && *memory_access_type == VMAT_ELEMENTWISE)
+ return false;
+
return true;
}