This is the mail archive of the gcc-patches@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]

Re: match.pd: unsigned A - B > A --> A < B


On Wed, 27 Apr 2016, Richard Biener wrote:

Please use types_match_p () instead

Ah, thanks, I couldn't remember the name and spent a bit of time looking for it with a name like same_type, equal_types, etc, and eventually assumed the patch adding it had never been committed when I saw we still had several

  (if ((GIMPLE && useless_type_conversion_p (type, TREE_TYPE (@0)))
       || (GENERIC && type == TREE_TYPE (@0)))


I'm fine if you want to disable all this on GENERIC

The main goal of disabling it was to avoid the ugly test, but with types_match I left it enabled for both.

--
Marc Glisse


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