]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000: Remove redundant MEM_P predicate usage
authorPeter Bergner <bergner@linux.ibm.com>
Mon, 10 Jul 2023 22:51:23 +0000 (17:51 -0500)
committerPeter Bergner <bergner@linux.ibm.com>
Mon, 10 Jul 2023 22:52:26 +0000 (17:52 -0500)
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.

gcc/config/rs6000/predicates.md

index 8479331482e53a3a0c0e5bbf1ee2727681f80cf3..3552d908e9d149a30993e3e6568466de537336be 100644 (file)
   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);
 (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);