This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help restricting args of an intrinsic function


On Sat, 2004-01-31 at 02:02, Mike Stump wrote:

> > Syd's problem can only be addressed if you have some
> > minimal data flow information available.
> 
> No.  Enumeration constants don't require data flow.  Intergral constant 
> expressions don't require data flow.
>
Syd seems to be looking for anything that the compiler can prove is a
constant.  Realizing that a pointer dereference is a compile time
constant *does* need dataflow info, however trivial.

>   I don't think Syd needs anything 
> as powerful as dataflow, just as powerful as fold.
>
Powerful != expensive.  Why are you considering such a simple data flow
problem a non-starter?

>   The problem is 
> these are frontend concepts and they may need to be handled by frontend 
> code.
>
No, they are not.  Syd's test case with pointer dereferences is not
something you can solve with an FE hook.


Diego.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]