This is the mail archive of the gcc-patches@gcc.gnu.org mailing 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]

Re: [patch] basic-block.h: Speed up FOR_EACH_EDGE.


Hi Richard,

> As opposed to (i < length ? e = EDGE_I (blah, i), 1 : 0)?
> Kinda gross, I know, but not horrible for burying in macros.
> I suppose it doesn't matter.

Ah, I forgot about a compound expression.  Some users of FOR_EACH_EDGE
expects e == NULL after the loops, so the condition should look
something like

  (i < length ? e = EDGE_I (blah, i), 1 : e = NULL, 0)

Kazu Hirata


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]