This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: shorten branches versus reg-stack
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: shorten branches versus reg-stack
- From: Richard Henderson <rth at redhat dot com>
- Date: Mon, 4 Jun 2001 13:38:27 -0700
- Cc: gcc-patches at gcc dot gnu dot org, patches at x86-64 dot org
- References: <20010604171312.B25024@atrey.karlin.mff.cuni.cz>
On Mon, Jun 04, 2001 at 05:13:12PM +0200, Jan Hubicka wrote:
> - timevar_push (TV_SHORTEN_BRANCH);
> - shorten_branches (get_insns ());
> - timevar_pop (TV_SHORTEN_BRANCH);
> + split_all_insns (0);
[...]
> + /* Shorten branches. */
> + timevar_push (TV_SHORTEN_BRANCH);
> + shorten_branches (get_insns ());
> + timevar_pop (TV_SHORTEN_BRANCH);
This isn't good enough. You need to remove the split_all_insns from
within shorten_branches and do it unconditionally before regstack.
r~