[Bug tree-optimization/103815] IVCann/IVOPTs changes induction variable so it is an addition but the need for shift is there and the result could have used for the (loop) exit compare

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 4 13:24:19 GMT 2022


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2022-01-04
             Status|UNCONFIRMED                 |NEW

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
It's difficult for IVOPTs to handle this since CC are not modeled on GIMPLE.
'add' is also not an affine induction variable and thus is not considered
at all when representing the exit test.


More information about the Gcc-bugs mailing list