https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79310

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-01
     Ever confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
match.pd is your friend.

(simplify
 (ne (BUILT_IN_STRSTR @0 @1) integer_zerop)
 (with
   {
     unsigned HOST_WIDE_INT string_length;
     const char *p = c_getstr (@1, &string_length);
   }
  (if (p && string_length == 0)
   { constant_boolean_node (type, true); })))

etc.

Reply via email to