https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62630
Mircea Namolaru <mircea.namolaru at inria dot fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mircea.namolaru at inria dot fr --- Comment #7 from Mircea Namolaru <mircea.namolaru at inria dot fr> --- Graphite generates MAX/MIN expressions. I've modified Graphite to use the original types of "n" and "mid" in MIN and MAX, and to not generate the casts of "n" and "mid" to a longer signed INT before MIN/MAX, and the vectorization succeeded. It seems that it is not a Graphite problem but a scalar evolution one. Scalar evolution is not able to handle MIN/MAX expressions in the presence of casts. Beside vectorization also further unrolling is prevented.