public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/18535] New: fix_irreducible_loops could be improved
@ 2004-11-18 1:29 pinskia at gcc dot gnu dot org
2004-11-20 18:42 ` [Bug middle-end/18535] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-18 1:29 UTC (permalink / raw)
To: gcc-bugs
If get_loop_exit_edges would return a VEC (edges) instead of a malloced array, we could improve the
else stament of when we get the edges to be just an assigment of the SUCCS so we don't have an extra
setting loop in this case.
The code in quesiton:
if (bb->loop_father->header == bb)
edges = get_loop_exit_edges (bb->loop_father, &n_edges);
else
{
n_edges = EDGE_COUNT (bb->succs);
edges = xmalloc (n_edges * sizeof (edge));
FOR_EACH_EDGE (e, ei, bb->succs)
edges[ei.index] = e;
}
(we do not write to edges after this).
See how we just set the edges array to the edge.
--
Summary: fix_irreducible_loops could be improved
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: compile-time-hog
Severity: enhancement
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18535
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug middle-end/18535] fix_irreducible_loops could be improved
2004-11-18 1:29 [Bug middle-end/18535] New: fix_irreducible_loops could be improved pinskia at gcc dot gnu dot org
@ 2004-11-20 18:42 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-20 18:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-20 18:42 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-11-20 18:42:08
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18535
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-20 18:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-18 1:29 [Bug middle-end/18535] New: fix_irreducible_loops could be improved pinskia at gcc dot gnu dot org
2004-11-20 18:42 ` [Bug middle-end/18535] " pinskia at gcc dot gnu dot org
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).