[Bug tree-optimization/64031] Vectorization of max/min is not robust enough

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 23 14:08:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64031

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
-ffast-math lets it vectorize (using min directly). Otherwise, for the first
test, ifcvt gives (a<b)?a:b which is vectorized as such, but for the second
test, it doesn't unless we pass -fno-trapping-math. That seems a bit
inconsistent.



More information about the Gcc-bugs mailing list