public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mkuvyrkov at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/37053] [4.3/4.4/4.5 regression] ICE in reload_cse_simplify_operands, at postreload.c:395
Date: Tue, 23 Jun 2009 11:40:00 -0000	[thread overview]
Message-ID: <20090623114000.14751.qmail@sourceware.org> (raw)
In-Reply-To: <bug-37053-11770@http.gcc.gnu.org/bugzilla/>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1747 bytes --]



------- Comment #8 from mkuvyrkov at gcc dot gnu dot org  2009-06-23 11:39 -------
(In reply to comment #6)
> But that was the meat of fixing PR28690. :-(
> 
> The insn should satisfy the constraints of alternative 4.

Well, not really.  For the insn to match alternative 4 the pattern should be
non-canonical.  The last sentence in GCC Internals' canonicalization rules
says:

"Further canonicalization rules are defined in the function
commutative_operand_ 
precedence in ‘gcc/rtlanal.c’"

Unfortunately, commutative_operand_precendence() at the moment clearly states
that a pointer (being that a MEM or a REG) has precedence over other RTX_OBJs. 
It is absolutely unclear to me why a pointer should have precedence over, say,
multiplication or anything else (and "yes", I've read PR28690).

With my target-independent hat on, I would remove that PPC-specific hunk from
commutative_operand_precendence() or, if that is really that important to PPC,
add a new target hook so that different targets can enjoy privilege of defining
that to whatever they seem fit.  Adding such an obscure canonicalization rule
for all targets seems unjustified.

I'd like to get some feedback on the above before I start implementing new
target hook to make all targets happy.

Peter, I'm CCing you as the author of the commutative_operand_precendence()
piece  to get your opinion on the above.


-- 

mkuvyrkov at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mkuvyrkov at gcc dot gnu dot
                   |                            |org


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


  parent reply	other threads:[~2009-06-23 11:40 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-08  1:02 [Bug c/37053] New: " stephen at marenka dot net
2008-08-08  1:03 ` [Bug c/37053] " stephen at marenka dot net
2008-08-08  1:04 ` stephen at marenka dot net
2008-09-11 15:21 ` [Bug middle-end/37053] [4.3/4.4 regression] " schwab at suse dot de
2008-09-11 15:30 ` bonzini at gnu dot org
2008-09-16 21:01 ` schwab at suse dot de
2008-09-16 21:03 ` bonzini at gnu dot org
2008-09-20 14:30 ` rguenth at gcc dot gnu dot org
2009-06-23 11:40 ` mkuvyrkov at gcc dot gnu dot org [this message]
2009-06-23 12:05 ` [Bug middle-end/37053] [4.3/4.4/4.5 " bonzini at gnu dot org
2009-06-23 12:26 ` mkuvyrkov at gcc dot gnu dot org
2009-06-23 13:09 ` bonzini at gnu dot org
2009-06-23 17:22 ` mkuvyrkov at gcc dot gnu dot org
2009-06-24 16:02 ` mkuvyrkov at gcc dot gnu dot org
2009-08-04 12:42 ` rguenth at gcc dot gnu dot org
2009-08-04 13:14 ` mkuvyrkov at gcc dot gnu dot org
2009-08-04 13:36 ` bergner at gcc dot gnu dot org
2009-08-04 13:43 ` mkuvyrkov at gcc dot gnu dot org
2009-08-05 14:59 ` uweigand at gcc dot gnu dot org
2009-08-10 15:34 ` uweigand at gcc dot gnu dot org
2009-08-23 18:19 ` schwab at linux-m68k dot org
2009-12-29 19:30 ` [Bug middle-end/37053] [4.3/4.4 " bonzini at gnu dot org
2010-05-22 18:25 ` rguenth 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=20090623114000.14751.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).