public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia@physics.uc.edu" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug optimization/8967] [3.4 regression] Making class data members `const' pessimizes code Date: Tue, 03 Jun 2003 19:04:00 -0000 [thread overview] Message-ID: <20030603190432.26572.qmail@sources.redhat.com> (raw) In-Reply-To: <20021216151600.8967.martin@xemacs.org> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8967 ------- Additional Comments From pinskia@physics.uc.edu 2003-06-03 19:04 ------- Still happens on the mainline (20030603): Here is the diff of the rtl right before the life analysis (cse2): --- pr8967c.cc.19.cse2 Tue Jun 3 14:54:28 2003 +++ pr8967m.cc.19.cse2 Tue Jun 3 14:54:27 2003 @@ -1,5 +1,5 @@ -;; Function Const Const_foo() +;; Function Mutable Mutable_foo() 81 registers. @@ -28,32 +28,32 @@ (note 4 3 24 0 NOTE_INSN_FUNCTION_BEG) -(insn 24 4 27 0 0x400b61b8 (set (mem/s/u:SI (plus:SI (reg/f:SI 20 frame) +(insn 24 4 27 0 0x400b61b8 (set (mem/s:SI (plus:SI (reg/f:SI 20 frame) (const_int -8 [0xfffffff8])) [4 S4 A32]) (const_int 1 [0x1])) 38 {*movsi_1} (nil) (nil)) -(insn 27 24 44 0 0x400b61b8 (set (mem/s/u:SI (plus:SI (reg/f:SI 20 frame) +(insn 27 24 44 0 0x400b61b8 (set (mem/s:SI (plus:SI (reg/f:SI 20 frame) (const_int -4 [0xfffffffc])) [4 <variable>.y+0 S4 A32]) (const_int 2 [0x2])) 38 {*movsi_1} (nil) (nil)) -(insn 44 27 47 0 0x400b6210 (set (mem/s/u:SI (plus:SI (reg/f:SI 20 frame) +(insn 44 27 47 0 0x400b6210 (set (mem/s:SI (plus:SI (reg/f:SI 20 frame) (const_int -16 [0xfffffff0])) [4 S4 A32]) (const_int 8 [0x8])) 38 {*movsi_1} (nil) (nil)) -(insn 47 44 75 0 0x400b6210 (set (mem/s/u:SI (plus:SI (reg/f:SI 20 frame) +(insn 47 44 75 0 0x400b6210 (set (mem/s:SI (plus:SI (reg/f:SI 20 frame) (const_int -12 [0xfffffff4])) [4 <variable>.y+0 S4 A32]) (const_int 9 [0x9])) 38 {*movsi_1} (nil) (nil)) -(insn 75 47 78 0 0x400b62c0 (set (mem/s/u:SI (plus:SI (reg/f:SI 20 frame) +(insn 75 47 78 0 0x400b62c0 (set (mem/s:SI (plus:SI (reg/f:SI 20 frame) (const_int -24 [0xffffffe8])) [4 S4 A32]) (const_int 9 [0x9])) 38 {*movsi_1} (nil) (nil)) -(insn 78 75 91 0 0x400b62c0 (set (mem/s/u:SI (plus:SI (reg/f:SI 20 frame) +(insn 78 75 91 0 0x400b62c0 (set (mem/s:SI (plus:SI (reg/f:SI 20 frame) (const_int -20 [0xffffffec])) [4 <variable>.y+0 S4 A32]) (const_int 11 [0xb])) 38 {*movsi_1} (nil) (nil)) Looks like the /u is what is causing life analysis to go wrong. ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
next parent reply other threads:[~2003-06-03 19:04 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <20021216151600.8967.martin@xemacs.org> 2003-06-03 19:04 ` pinskia@physics.uc.edu [this message] 2003-06-05 18:39 ` bangerth@dealii.org 2003-09-12 15:08 ` cvs-commit at gcc dot gnu dot org 2003-09-23 18:51 ` 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=20030603190432.26572.qmail@sources.redhat.com \ --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: linkBe 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).