Richard Sandiford - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro (original) (raw)
This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
- From: Richard Sandiford
- To: law at redhat dot com
- Cc: Mark Mitchell , Bernd Schmidt <bernds_cb1 at t-online dot de>, Ian Lance Taylor , gcc-patches at gcc dot gnu dot org
- Date: Wed, 28 Feb 2007 16:34:01 +0000
- Subject: Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
- References: 874pqzw4w1.fsf@firetop.home 1168457319.28081.615.camel@sweet.slc.redhat.com 87k5zuinc0.fsf@firetop.home 1168983686.28081.842.camel@sweet.slc.redhat.com 87ps9efc4t.fsf@talisman.home <1171321913.4134.162.camel@sweet.slc.redhat.com> <87bqjx9j0r.fsf@firetop.home> <1171472988.4134.196.camel@sweet.slc.redhat.com> <87vei47ij9.fsf@firetop.home> <m3d54cy6k6.fsf@localhost.localdomain> <45D44F7F.6000405@t-online.de> <45DE5A9F.5000509@codesourcery.com> <1172529300.4129.135.camel@sweet.slc.redhat.com> <87slcr8rza.fsf@firetop.home> <1172600718.4129.210.camel@sweet.slc.redhat.com> <87ejob8le7.fsf@firetop.home> <1172605966.4129.216.camel@sweet.slc.redhat.com> <87irdnjoam.fsf@firetop.home> <1172613491.4129.228.camel@sweet.slc.redhat.com> <87slcqy6tz.fsf@firetop.home> <1172680024.4129.251.camel@sweet.slc.redhat.com>
Jeffrey Law law@redhat.com writes:
My concern about efficiency still stands though. Concretely, your patch is going to mean that the MIPS port does (29 modes x 188 regs =) 5452 legitimate address checks at startup, all of which will be false. The figure for PowerPC is (38 modes x 114 regs =) 4332 checks and the figure for ia64 is (40 modes * 334 regs =) 13360 checks. (I realise that ia64 is one of those targets where you expect the compiler to be slower, but still. ;)) As the patch stands, it will also create new garbage addresses for each check. I think at the very least you should:
- create one address and use it for all checks, changing parts of it as appropriate Definitely. Please go ahead and do this.
Sorry, but I still strongly believe you're leading us in the wrong direction here. I suggest we leave it for someone else with less strong feelings. And...
I was merely showing a quick proof of concept, it wasn't necessarily meant to go into the tree as-is, but instead show you the way to getting this problem cleanly resolved.
...with respect Jeff, I didn't need you to tell me how the double_reg_address_ok thing should be implemented. I was resisting doing it because I disagreed with it, not because I didn't understand the concept.
Richard
- Follow-Ups:
- Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Mark Mitchell - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Jeffrey Law
- Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
- References:
- Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Jeffrey Law - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Richard Sandiford - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Jeffrey Law - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Richard Sandiford - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Ian Lance Taylor - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Bernd Schmidt - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Mark Mitchell - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Jeffrey Law - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Richard Sandiford - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Jeffrey Law - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Richard Sandiford - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Jeffrey Law - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Richard Sandiford - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Jeffrey Law - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Richard Sandiford - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Jeffrey Law
- Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |