This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]