diff options
author | Roger Sayle <roger@nextmovesoftware.com> | 2021-08-26 18:51:46 +0100 |
---|---|---|
committer | Roger Sayle <roger@nextmovesoftware.com> | 2021-08-26 18:51:46 +0100 |
commit | a2d9b558299df91e9c34a583eb0f0b14d1cacce9 (patch) | |
tree | e714d82acafb85aa206c14ca591be09713e2e93f /gcc/match.pd | |
parent | 226eb7ff5d73669184a4a56cd348fa6c46b3ec52 (diff) | |
download | gcc-a2d9b558299df91e9c34a583eb0f0b14d1cacce9.zip gcc-a2d9b558299df91e9c34a583eb0f0b14d1cacce9.tar.gz gcc-a2d9b558299df91e9c34a583eb0f0b14d1cacce9.tar.bz2 |
[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.
Diffstat (limited to 'gcc/match.pd')
-rw-r--r-- | gcc/match.pd | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/match.pd b/gcc/match.pd index e5bbb12..f421c74 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -3390,7 +3390,6 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (simplify (convert (lshift:s@0 (convert:s@1 @2) INTEGER_CST@3)) (if (INTEGRAL_TYPE_P (type) - && !POINTER_TYPE_P (type) && tree_nop_conversion_p (type, TREE_TYPE (@0)) && INTEGRAL_TYPE_P (TREE_TYPE (@2)) && TYPE_PRECISION (TREE_TYPE (@2)) <= TYPE_PRECISION (type)) |