[Bug tree-optimization/95396] GCC produces incorrect code with -O3 for loops

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 29 06:36:09 GMT 2020


Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |NEW
             Target|                            |x86_64-*-*
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-05-29
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
> ./xgcc -B. t.C -O2 -fopt-info -ftree-vectorize
t.C:11:20: optimized:  Inlining int c(int, int)/15 into void test()/16.
t.C:11:37: optimized: loop vectorized using 16 byte vectors
t.C:10:6: optimized: loop with 1 iterations completely unrolled (header
execution count 70866959)

caused/triggered by vectorization.

More information about the Gcc-bugs mailing list