* ssa-ccp: Remove unused macro.
@ 2002-07-21 13:50 Neil Booth
2002-07-22 5:26 ` Geoff Keating
0 siblings, 1 reply; 5+ messages in thread
From: Neil Booth @ 2002-07-21 13:50 UTC (permalink / raw)
To: gcc-patches
OK?
Neil.
* ssa-ccp.c (PHI_PARMS): Remove.
============================================================
Index: gcc/ssa-ccp.c
*** gcc/ssa-ccp.c 12 Jun 2002 14:51:03 -0000 1.25
--- gcc/ssa-ccp.c 21 Jul 2002 18:58:29 -0000
*************** static sbitmap ssa_edges;
*** 120,126 ****
/* Simple macros to simplify code */
#define SSA_NAME(x) REGNO (SET_DEST (x))
- #define PHI_PARMS(x) XVEC (SET_SRC (x), 0)
#define EIE(x,y) EDGE_INDEX (edges, x, y)
static void visit_phi_node PARAMS ((rtx, basic_block));
--- 120,125 ----
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ssa-ccp: Remove unused macro.
2002-07-21 13:50 ssa-ccp: Remove unused macro Neil Booth
@ 2002-07-22 5:26 ` Geoff Keating
2002-07-22 7:33 ` Daniel Berlin
0 siblings, 1 reply; 5+ messages in thread
From: Geoff Keating @ 2002-07-22 5:26 UTC (permalink / raw)
To: Neil Booth; +Cc: gcc-patches
Neil Booth <neil@daikokuya.co.uk> writes:
> OK?
OK. (The macro is probably wrong, anyway.)
> * ssa-ccp.c (PHI_PARMS): Remove.
>
> ============================================================
> Index: gcc/ssa-ccp.c
> *** gcc/ssa-ccp.c 12 Jun 2002 14:51:03 -0000 1.25
> --- gcc/ssa-ccp.c 21 Jul 2002 18:58:29 -0000
> *************** static sbitmap ssa_edges;
> *** 120,126 ****
>
> /* Simple macros to simplify code */
> #define SSA_NAME(x) REGNO (SET_DEST (x))
> - #define PHI_PARMS(x) XVEC (SET_SRC (x), 0)
> #define EIE(x,y) EDGE_INDEX (edges, x, y)
>
> static void visit_phi_node PARAMS ((rtx, basic_block));
> --- 120,125 ----
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ssa-ccp: Remove unused macro.
2002-07-22 5:26 ` Geoff Keating
@ 2002-07-22 7:33 ` Daniel Berlin
2002-07-22 7:58 ` Geoff Keating
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Berlin @ 2002-07-22 7:33 UTC (permalink / raw)
To: Geoff Keating; +Cc: Neil Booth, gcc-patches
On Monday, July 22, 2002, at 08:21 AM, Geoff Keating wrote:
> Neil Booth <neil@daikokuya.co.uk> writes:
>
>> OK?
>
> OK. (The macro is probably wrong, anyway.)
>
Actually, it's not wrong.
Why would you say so?
It was only used in one place (do a search for XVEC (SET_SRC (x), 0)),
and I had written is as a macro so that it was easy to tell what the
heck we were trying to do.
> - Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ssa-ccp: Remove unused macro.
2002-07-22 7:33 ` Daniel Berlin
@ 2002-07-22 7:58 ` Geoff Keating
2002-07-22 8:18 ` Daniel Berlin
0 siblings, 1 reply; 5+ messages in thread
From: Geoff Keating @ 2002-07-22 7:58 UTC (permalink / raw)
To: dberlin; +Cc: neil, gcc-patches
> Date: Mon, 22 Jul 2002 10:07:28 -0400
> Cc: Neil Booth <neil@daikokuya.co.uk>, gcc-patches@gcc.gnu.org
> From: Daniel Berlin <dberlin@dberlin.org>
> X-Spam-Status: No, hits=-3.2 required=5.0
> tests=IN_REP_TO,SUBJ_REMOVE,AWL
> version=2.40
> X-Spam-Level:
> X-OriginalArrivalTime: 22 Jul 2002 14:09:08.0453 (UTC) FILETIME=[587AF950:01C23189]
>
>
> On Monday, July 22, 2002, at 08:21 AM, Geoff Keating wrote:
>
> > Neil Booth <neil@daikokuya.co.uk> writes:
> >
> >> OK?
> >
> > OK. (The macro is probably wrong, anyway.)
> >
> Actually, it's not wrong.
> Why would you say so?
> It was only used in one place (do a search for XVEC (SET_SRC (x), 0)),
> and I had written is as a macro so that it was easy to tell what the
> heck we were trying to do.
I thought it was wrong because of the use of SET_SRC, but I see that
phi nodes are always of the right form.
If you like, feel free to put the macro back and change the place
where it would be used to actually use it...
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ssa-ccp: Remove unused macro.
2002-07-22 7:58 ` Geoff Keating
@ 2002-07-22 8:18 ` Daniel Berlin
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Berlin @ 2002-07-22 8:18 UTC (permalink / raw)
To: Geoff Keating; +Cc: neil, gcc-patches
On Mon, 22 Jul 2002, Geoff Keating wrote:
> > Date: Mon, 22 Jul 2002 10:07:28 -0400
> > Cc: Neil Booth <neil@daikokuya.co.uk>, gcc-patches@gcc.gnu.org
> > From: Daniel Berlin <dberlin@dberlin.org>
> > X-Spam-Status: No, hits=-3.2 required=5.0
> > tests=IN_REP_TO,SUBJ_REMOVE,AWL
> > version=2.40
> > X-Spam-Level:
> > X-OriginalArrivalTime: 22 Jul 2002 14:09:08.0453 (UTC) FILETIME=[587AF950:01C23189]
> >
> >
> > On Monday, July 22, 2002, at 08:21 AM, Geoff Keating wrote:
> >
> > > Neil Booth <neil@daikokuya.co.uk> writes:
> > >
> > >> OK?
> > >
> > > OK. (The macro is probably wrong, anyway.)
> > >
> > Actually, it's not wrong.
> > Why would you say so?
> > It was only used in one place (do a search for XVEC (SET_SRC (x), 0)),
> > and I had written is as a macro so that it was easy to tell what the
> > heck we were trying to do.
>
> I thought it was wrong because of the use of SET_SRC, but I see that
> phi nodes are always of the right form.
Correct, they have to be. We also PHi_NODE_P them before using them.
>
> If you like, feel free to put the macro back and change the place
> where it would be used to actually use it...
No, i have no love of it.
Jeff probably was the one who removed it when he revamped SSA-CCP from the
original I had sent.
If he's fine with not using it, i don't care.
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-07-22 14:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-21 13:50 ssa-ccp: Remove unused macro Neil Booth
2002-07-22 5:26 ` Geoff Keating
2002-07-22 7:33 ` Daniel Berlin
2002-07-22 7:58 ` Geoff Keating
2002-07-22 8:18 ` Daniel Berlin
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).