This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Simplified switch conversion in simple cases
On Tue, Apr 21, 2009 at 10:50:45AM +0200, Richard Guenther wrote:
> On Mon, 20 Apr 2009, Martin Jambor wrote:
> > Hi,
> > this patch implements what Richi asked for in
> > http://gcc.gnu.org/ml/gcc-patches/2009-04/msg01204.html
> > When there is only one value in the switch conversion array, than the
> > pass does not need to generate a static array and a load from it but
> > can load the variable with that constant straight away.
> > I also took this opportunity to clean up the rather wild marking for
> > renaming in the patch and simply replaced them with a call to
> > update_stmt at appropriate places. Since Richi also discouraged me
> > from using make_rename-temp, I now create temporaries with
> > create_tmp_var and create ssa names myself since it is easy.
> > Bootstrapped and regression tested on linux-x86_64. OK for trunk?
Committed as revision 146517.