This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/82447] [IVOPTS] Consider removing cmp instruction while iterating on an array of known bound
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 06 Oct 2017 11:36:48 +0000
- Subject: [Bug target/82447] [IVOPTS] Consider removing cmp instruction while iterating on an array of known bound
- Auto-submitted: auto-generated
- References: <bug-82447-4@http.gcc.gnu.org/bugzilla/>
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.