This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/52459] PRE performs stupid inserts
- 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, 21 Mar 2012 10:41:04 +0000
- Subject: [Bug tree-optimization/52459] PRE performs stupid inserts
- Auto-submitted: auto-generated
- References: <bug-52459-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52459
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |matz at gcc dot gnu.org
Summary|PPRE performs stupid |PRE performs stupid inserts
|inserts |
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-21 10:41:04 UTC ---
I have a patch. The issue is we inhibit PHI insertion for the builtin call
at -O3 (when -ftree-vectorize is on), not partial-PRE. The stupid inserts
are really caused because of the inhibited PRE insertion will cause
only part of the dependent expressions to be available but some uses get
eliminated so the still inserted PHI node is not removed ... which means
that limiting 'PHI insertion' is bougs - we should really limit what
we PHI translate, to not cause dependent expressions to be partially
available. Not sure if we know at that point whether we'd need a PHI node,
but at least the edges we want to eventually restrict translation are
easy to spot - the latch edges.