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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rdapp at gcc dot gnu.org

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Yes, the SCEV-assumption work might have laid ground to fix this.  Robin?

Creating dr for *_5
analyze_innermost: t2.c:5:12: missed:  failed: evolution of base is not affine.

  # j_20 = PHI <j_17(6), start_10(D)(5)>
  j.0_1 = (unsigned int) j_20;
  _2 = j.0_1 + offset_13(D);
  t_14 = (int) _2;
  _3 = (long unsigned int) t_14;
  _4 = _3 * 4;
  _5 = arr_15(D) + _4;
  _6 = *_5;
...
  j_17 = j_20 + 1;

basically j+offset is not known to not wrap in 'int', we'd need to
rewrite it to j+(int)offset to SCEV analyze it or record the appropriate
assumption and then analyze it as such.

Reply via email to