This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/52346] Two abs in a row isn't being optimized to just one on the tree level
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 13 Jan 2016 08:47:11 +0000
- Subject: [Bug tree-optimization/52346] Two abs in a row isn't being optimized to just one on the tree level
- Auto-submitted: auto-generated
- References: <bug-52346-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52346
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |6.0
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed for 6.0:
Visiting statement:
_3 = ABS_EXPR <a_2>;
which is likely CONSTANT
Applying pattern match.pd:683, gimple-match.c:8656
Match-and-simplified ABS_EXPR <a_2> to a_2
Lattice value changed to CONSTANT a_2. Adding SSA edges to worklist.
interesting_ssa_edges: adding SSA use in return _3;
marking stmt to be not simulated again