[LLVMdev] removing dead function calls

Jochen Wilhelmy j.wilhelmy at arcor.de
Sun Jul 25 12:42:45 PDT 2010


> Yep, just add the readonly/readnone attributes to the call site or function and they should be deleted if dead.  See LangRef.html for more info.
>
>   
Is it even possible to define this attribute in clang?
e.g. __attribute__(readnone) float sin(float x);

-Jochen




More information about the llvm-dev mailing list