This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH GCC]Don't clobber cbase when computing iv_use cost.
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Bin Cheng <Bin dot Cheng at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, nd <nd at arm dot com>
- Date: Mon, 2 May 2016 11:02:54 +0200
- Subject: Re: [PATCH GCC]Don't clobber cbase when computing iv_use cost.
- Authentication-results: sourceware.org; auth=none
- References: <DB5PR08MB114438E3DED81B79BB063279E7660 at DB5PR08MB1144 dot eurprd08 dot prod dot outlook dot com>
On Fri, Apr 29, 2016 at 5:55 PM, Bin Cheng <Bin.Cheng@arm.com> wrote:
> Hi,
> This fixes a latent bug I introduced. Variable "cbase" shouldn't be modified since it will be used afterwards. Bootstrap and test on x86_64. I think it's an obvious change, is it OK?
Ok.
Richard.
> Thanks,
> bin
>
> 2016-04-28 Bin Cheng <bin.cheng@arm.com>
>
> * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
> cbase.