This is the mail archive of the
mailing list for the GCC project.
Re: [PING] Interprocedural Constant Propagation for mainline
- From: Eric Christopher <echristo at redhat dot com>
- To: Razya Ladelsky <RAZYA at il dot ibm dot com>
- Cc: Diego Novillo <dnovillo at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 07 Jul 2005 16:01:32 -0700
- Subject: Re: [PING] Interprocedural Constant Propagation for mainline
- References: <OFDAD307C6.7C46D3DA-ONC2257036.00395182-C2257037.002EDAE5@il.ibm.com>
> > > /* Prevent propagation in the case that MT contains ASM expressions.
> > > if (ipcp_method_contains_asm (mt))
> > > return true;
> > Why?
> There was a testcase (have to dig it up), which I ran on X86, in which
> there was an asm call (with the formal parameter sent as argument).
> When IPCP added an assignment statement before the asm call, the test
> iirc, even adding an assignment statement manually to the test
> code,without running
> IPCP, caused a failure, which led me to believe it was an asm call related
> Therefore, I prevent adding assignment statements if there's an asm call.
Might be that the asm statement assumed things that it shouldn't have
been able to (code layout or register usage or...)
Digging up the testcase would be great.