This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/83126] [8 Regression] ICE in transform_to_exit_first_loop_alt, at tree-parloops.c:1713
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Feb 2018 06:49:55 +0000
- Subject: [Bug tree-optimization/83126] [8 Regression] ICE in transform_to_exit_first_loop_alt, at tree-parloops.c:1713
- Auto-submitted: auto-generated
- References: <bug-83126-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83126
--- Comment #8 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 43476
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43476&action=edit
Tentative patch
(In reply to rguenther@suse.de from comment #3)
> This is the usual "you should not repeat analysis during transform" issue.
> The vectorizer gets around this by caching relevant scalar evolution
> but obviously that's difficult if using generic stuff like
> canonicalize_loop_ivs ...
This patch caches affine_iv info before calling loop_version, and then uses
that cached info in canonicalize_loop_ivs. This fixes the ICE.