From 2493deee555bff3a4be1cc3ef011b4f7a4efdf71 Mon Sep 17 00:00:00 2001 From: Kazu Hirata <kazu@cs.umass.edu> Date: Tue, 10 Feb 2004 22:40:30 +0000 Subject: [PATCH] h8300.md: Remove an incorrect comment about peephole2. * config/h8300/h8300.md: Remove an incorrect comment about peephole2. Add comments. From-SVN: r77618 --- gcc/ChangeLog | 5 +++++ gcc/config/h8300/h8300.md | 14 +++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a3e050d89904..5cfcbfa21cdd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-02-10 Kazu Hirata <kazu@cs.umass.edu> + + * config/h8300/h8300.md: Remove an incorrect comment about + peephole2. Add comments. + 2004-02-10 Josef Zlomek <zlomekj@suse.cz> PR/14058 diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index c0a9575f4cdf..99a72a35633f 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -4971,9 +4971,12 @@ operands[7] = gen_int_mode (INTVAL (operands[2]), QImode);") ;; These triggers right at the end of allocation of locals in the -;; prologue. The only profitable cases are when we have stack -;; adjustment of -4 or -12. That of -8 won't happen because it is -;; always split into two consecutive subtractions of -4. +;; prologue (and possibly at other places). + +;; stack adjustment of -8, generate one push +;; +;; before : 14 bytes, 22 clocks +;; after : 8 bytes, 20 clocks (define_peephole2 [(set (reg:SI SP_REG) @@ -4987,6 +4990,11 @@ (match_dup 0))] "") +;; stack adjustment of -12, generate one push +;; +;; before : 10 bytes, 14 clocks +;; after : 8 bytes, 14 clocks + (define_peephole2 [(set (reg:SI SP_REG) (plus:SI (reg:SI SP_REG) -- GitLab