[Bug tree-optimization/96694] Failure to optimize min/max pattern using two binary nots to min/max pattern using one binary not
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jul 25 04:34:07 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96694
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org
Keywords| |easyhack
Status|NEW |ASSIGNED
Severity|normal |enhancement
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So
(for minmax (min max)
maxmin (max min)
(simplify
(bit_not (minmax:cs (bit_not @0) @1))
(maxmin @0 (bit_not @1))))
This is similar to the follow already pattern:
/* ~(~a | b) --> a & ~b */
(simplify
(bit_not (bit_ior:cs (bit_not @0) @1))
(bit_and @0 (bit_not @1)))
More information about the Gcc-bugs
mailing list