This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fno-tree-cselim not working?
- From: Ian Lance Taylor <iant at google dot com>
- To: Andi Kleen <andi at firstfloor dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: 29 Oct 2007 10:03:45 -0700
- Subject: Re: -fno-tree-cselim not working?
- References: <20071026070903.GS2896@sunsite.mff.cuni.cz.suse.lists.egcs> <20071026.002701.193707917.davem@davemloft.net.suse.lists.egcs> <20071026074825.GT2896@sunsite.mff.cuni.cz.suse.lists.egcs> <20071026.005802.107688735.davem@davemloft.net.suse.lists.egcs> <m3bqamj5x7.fsf@localhost.localdomain.suse.lists.egcs> <p73k5p9prwx.fsf@bingen.suse.de> <m38x5pfwwc.fsf@localhost.localdomain> <20071028111558.GA14441@one.firstfloor.org>
Andi Kleen <andi@firstfloor.org> writes:
> Your patch would fix it too because it uses a function call, but
> it might not in the general case when the condition happens to be
> not a function call.
My patch will disable the if-conversion optimization for your example,
because the variable is not unconditionally set later in the function.
Ian