This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/56486] [4.6/4.7 Regression] infinite loop in cc1 at -O1
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 03 Apr 2013 10:02:11 +0000
- Subject: [Bug tree-optimization/56486] [4.6/4.7 Regression] infinite loop in cc1 at -O1
- Auto-submitted: auto-generated
- References: <bug-56486-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56486
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-03 10:02:11 UTC ---
Hmm, remove_visited_stmt_chain looks like premature optimization to me
anyway ... if, then re-organizing it to work on the BB of the definition
of var only and walking backwards might indeed be the way to "fix" it
(apart from eventually just removing it or only considering a single stmt).
reassoc1 is immediately followed by dce, reassoc2 is followed by passes
that may be confused by dead stmts (vrp and dom jump-threading).