]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Committed] Tidy up !POINTER_TYPE_P test in match.pd LSHIFT_EXPR folding
authorRoger Sayle <roger@nextmovesoftware.com>
Thu, 26 Aug 2021 17:51:46 +0000 (18:51 +0100)
committerRoger Sayle <roger@nextmovesoftware.com>
Thu, 26 Aug 2021 17:51:46 +0000 (18:51 +0100)
commita2d9b558299df91e9c34a583eb0f0b14d1cacce9
treee714d82acafb85aa206c14ca591be09713e2e93f
parent226eb7ff5d73669184a4a56cd348fa6c46b3ec52
[Committed] Tidy up !POINTER_TYPE_P test in match.pd LSHIFT_EXPR folding

As suggested by Richard Biener in the comments of PR middle-end/102029,
the new test "INTEGRAL_TYPE_P (type) && !POINTER_TYPE_P (type) ..." is
redundant, and just "INTEGRAL_TYPE_P (type)" is the preferred form.

2021-08-26  Roger Sayle  <roger@nextmovesoftware.com>
    Richard Biener  <rguenther@suse.de>

gcc/ChangeLog
* match.pd (shift transformations): Remove a redundant
!POINTER_TYPE_P check.
gcc/match.pd