This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/70177] [6 Regression] ICE in extract_ops_from_tree starting with r233660
- 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: Thu, 10 Mar 2016 23:07:01 +0000
- Subject: [Bug tree-optimization/70177] [6 Regression] ICE in extract_ops_from_tree starting with r233660
- Auto-submitted: auto-generated
- References: <bug-70177-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70177
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Though, that expression looks weird, on the testcase it is clear that if i is
>= 0 (not -1!), then c must be 0, because otherwise the innermost loop must
invoke undefined behavior, and deriving anything about number of iterations
from the b[h] = 0; assignment in the upper loop is wrong, because the innermost
loop can (and must be) iterated 0 times.