aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Bergner <bergner@linux.ibm.com>2023-07-10 17:51:23 -0500
committerPeter Bergner <bergner@linux.ibm.com>2023-07-10 17:52:26 -0500
commit01991146d8c9d6627b1ffba59f37c037ec33d513 (patch)
tree13f9073ebca89de828a54d922c2d00e04354a8fc
parente9251fea2debebfebe1f762a4a8d5b3b1d4c75ef (diff)
downloadgcc-01991146d8c9d6627b1ffba59f37c037ec33d513.zip
gcc-01991146d8c9d6627b1ffba59f37c037ec33d513.tar.gz
gcc-01991146d8c9d6627b1ffba59f37c037ec33d513.tar.bz2
rs6000: Remove redundant MEM_P predicate usage
The quad_memory_operand and vsx_quad_dform_memory_operand predicates contain a (match_code "mem") test, making their MEM_P usage redundant. Remove them. 2023-07-10 Peter Bergner <bergner@linux.ibm.com> gcc/ * config/rs6000/predicates.md (quad_memory_operand): Remove redundant MEM_P usage. (vsx_quad_dform_memory_operand): Likewise.
-rw-r--r--gcc/config/rs6000/predicates.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/rs6000/predicates.md b/gcc/config/rs6000/predicates.md
index 8479331..3552d90 100644
--- a/gcc/config/rs6000/predicates.md
+++ b/gcc/config/rs6000/predicates.md
@@ -912,7 +912,7 @@
if (!TARGET_QUAD_MEMORY && !TARGET_SYNC_TI)
return false;
- if (GET_MODE_SIZE (mode) != 16 || !MEM_P (op) || MEM_ALIGN (op) < 128)
+ if (GET_MODE_SIZE (mode) != 16 || MEM_ALIGN (op) < 128)
return false;
return quad_address_p (XEXP (op, 0), mode, false);
@@ -924,7 +924,7 @@
(define_predicate "vsx_quad_dform_memory_operand"
(match_code "mem")
{
- if (!TARGET_P9_VECTOR || !MEM_P (op) || GET_MODE_SIZE (mode) != 16)
+ if (!TARGET_P9_VECTOR || GET_MODE_SIZE (mode) != 16)
return false;
return quad_address_p (XEXP (op, 0), mode, false);