[Bug target/82447] [IVOPTS] Consider removing cmp instruction while iterating on an array of known bound

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 6 11:36:00 GMT 2017


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Indeed.  But when the body is:
        sum += a[size - 1 - i];
while base 128U with step -1U is considered, it isn't found as the cheapest for
some reason either.


More information about the Gcc-bugs mailing list