This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help restricting args of an intrinsic function
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: Mike Stump <mrs at apple dot com>
- Cc: Diego Novillo <dnovillo at redhat dot com>, Syd Polk <spolk at apple dot com>,GCC List <gcc at gcc dot gnu dot org>
- Date: Mon, 2 Feb 2004 15:26:06 -0800
- Subject: Re: Help restricting args of an intrinsic function
- References: <1075513117.8251.25.camel@localhost.localdomain> <E1368D70-53A1-11D8-9B07-003065BDF310@apple.com>
On Fri, Jan 30, 2004 at 07:59:34PM -0800, Mike Stump wrote:
> On Friday, January 30, 2004, at 05:38 PM, Diego Novillo wrote:
> > Yes, that's fine. Here's what tree-ssa emits after the tree
> > optimization passes for the test cases you mentioned.
>
> So, does your scheme work when the optimizer is off (-O0)?
>
> If not, why would that be a solution?
Who says that exactly one instruction must be emitted with the optimizer
off? It seems to me that it would suffice to have the builtin function
emit the one instruction in the case where the mask arguments, after any
optimization, are constant, and otherwise emit whatever code is needed to
compute the correct result (or simply emit a call to a library function).