This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/33828] Issues with the implementation of code hoisting in gcse.c
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2007 11:08:26 -0000
- Subject: [Bug rtl-optimization/33828] Issues with the implementation of code hoisting in gcse.c
- References: <bug-33828-280@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from steven at gcc dot gnu dot org 2007-10-20 11:08 -------
In gcse.c:compute_code_hoist_vbeinout(), the backward dataflow analysis problem
is solved using FOR_EACH_BB_REVERSE. which traverses all basic blocks through
the bb->prev_bb chain. Because the passes in gcse.c run in cfglayout mode,
bb->prev_bb chain is not a CFG postorder sort. It would be faster to use a
postorder sort, which should be available from df. It would be even better to
just use the df solver instead.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33828