public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/25848] local alloc causing an extra move
Date: Sat, 26 Aug 2006 04:19:00 -0000	[thread overview]
Message-ID: <20060826041936.11108.qmail@sourceware.org> (raw)
In-Reply-To: <bug-25848-11730@http.gcc.gnu.org/bugzilla/>



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-08-26 04:19 -------
;; Register 120 in 0.
;; Register 121 in 3.
;; Register 122 in 3.
(insn:HI 6 16 10 2 (set (reg/v:DI 120 [ a ])
        (reg:DI 3 3 [ a ])) 331 {*movdi_internal64} (nil)
    (expr_list:REG_DEAD (reg:DI 3 3 [ a ])
        (expr_list:REG_EQUIV (mem/c/i:DI (plus:DI (reg/f:DI 67 ap)
                    (const_int 48 [0x30])) [2 a+0 S4 A64])
            (nil))))

(insn:HI 10 6 11 2 (set (reg:SI 122)
        (ashift:SI (subreg/s:SI (reg/v:DI 120 [ a ]) 4)
            (const_int 1 [0x1]))) 172 {ashlsi3_no_power} (nil)
    (nil))

(insn:HI 11 10 19 2 (set (reg:SI 121)
        (plus:SI (reg:SI 122)
            (subreg/s:SI (reg/v:DI 120 [ a ]) 4))) 79 {*addsi3_internal1} (nil)
    (expr_list:REG_DEAD (reg:SI 122)
        (expr_list:REG_DEAD (reg/v:DI 120 [ a ])
            (nil))))

(insn:HI 19 11 25 2 (set (reg/i:DI 3 3 [ <result> ])
        (sign_extend:DI (reg:SI 121))) 27 {*rs6000.md:371} (nil)
    (expr_list:REG_DEAD (reg:SI 121)
        (nil)))

(insn:HI 25 19 30 2 (use (reg/i:DI 3 3 [ <result> ])) -1 (nil)
    (nil))


if local alloc put r120 into r3 and 121 in r0, this would have worked.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |missed-optimization, ra
   Last reconfirmed|0000-00-00 00:00:00         |2006-08-26 04:19:35
               date|                            |
            Summary|missed-rtl-optimization     |local alloc causing an extra
                   |                            |move


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25848


  parent reply	other threads:[~2006-08-26  4:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-18 19:58 [Bug rtl-optimization/25848] New: missed-rtl-optimization dtemirbulatov at gmail dot com
2006-01-18 20:08 ` [Bug rtl-optimization/25848] missed-rtl-optimization pinskia at gcc dot gnu dot org
2006-08-26  4:19 ` pinskia at gcc dot gnu dot org [this message]
2006-08-26  4:24 ` [Bug rtl-optimization/25848] local alloc causing an extra move pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060826041936.11108.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).