[Bug tree-optimization/88598] simplification of multiplication by 1 or 0 fails

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 26 10:05:00 GMT 2018


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

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
-funroll-loops helps (I expect that's what llvm does).
float j[5] = {}; also helps. We should probably simplify {0,0,...} to {}, but
then we would still be missing the optimization for {1,1,...} where we would
like to notice that any read can only yield 1.


More information about the Gcc-bugs mailing list