[Bug tree-optimization/94969] New: Invalid loop distribution

krebbel at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 6 09:12:55 GMT 2020


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

            Bug ID: 94969
           Summary: Invalid loop distribution
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: krebbel at gcc dot gnu.org
  Target Milestone: ---

Created attachment 48461
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48461&action=edit
Testcase

The attached testcase aborts on x86 when compiled with -O3. It succeeds with
-O2 or -O3 -fno-loop-distribution.

The loop is distributed separating the two statements. This affects the result
of the testcase.

 for (; c <= 1; c++) {
    f[b] = g;
    f[b].e ^= 1;
  }


More information about the Gcc-bugs mailing list