This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/81834] loop with increment conditional on IV is not optimized out
- From: "geoffrey at allott dot email" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Aug 2017 06:41:11 +0000
- Subject: [Bug tree-optimization/81834] loop with increment conditional on IV is not optimized out
- Auto-submitted: auto-generated
- References: <bug-81834-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81834
--- Comment #2 from Geoffrey Allott <geoffrey at allott dot email> ---
Hi Richard, I agree that this seems quite 'arcane' at first glance; I should
explain that I found it when an empty for loop failed to optimize out in rust -
the reduced test case failed to optimize in clang and also gcc, so I posted it
here. My thought is that this kind of pattern might be more common than it
seems at first glance, after other code has been reduced.
null