[Bug tree-optimization/52346] Two abs in a row isn't being optimized to just one on the tree level

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 13 08:47:00 GMT 2016


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


More information about the Gcc-bugs mailing list