* config/h8300/h8300.md (a peephole2): Remove useless code.
authorKazu Hirata <kazu@cs.umass.edu>
Sun, 30 Mar 2003 13:00:32 +0000 (13:00 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 30 Mar 2003 13:00:32 +0000 (13:00 +0000)
From-SVN: r65039

gcc/ChangeLog
gcc/config/h8300/h8300.md

index be4f3dd3aceb7800315e81b085bab0b9938aeb70..871f97269f46d332811340a232d98ded0ed9c033 100644 (file)
@@ -1,3 +1,7 @@
+2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (a peephole2): Remove useless code.
+
 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.md (*iorsi3_and_ashift): New.
index 8c8ed6d306de8688275483f84fcdb87ae770ddf9..b63ed49decc69601ef4988429bd1098ab5e231ac 100644 (file)
                     (const_int 8)))]
   "")
 
+;; If a load of mem:SI is followed by an AND that turns off the upper
+;; half, then we can load mem:HI instead.
+
 (define_peephole2
   [(set (match_operand:SI 0 "register_operand" "")
        (match_operand:SI 1 "memory_operand" ""))
        (and:SI (match_dup 0)
                (match_operand:SI 2 "const_int_operand" "")))]
   "(TARGET_H8300H || TARGET_H8300S)
-   && !(GET_CODE (operands[1]) == MEM && MEM_VOLATILE_P (operands[1]))
+   && !MEM_VOLATILE_P (operands[1])
    && (INTVAL (operands[2]) & ~0xffff) == 0
    && INTVAL (operands[2]) != 255"
   [(set (match_dup 3)