[LLVMdev] Optimization of calls to functions without side effects (from Kaleidoscope example)

Dan Gohman gohman at apple.com
Mon Nov 15 10:45:11 PST 2010


On Nov 15, 2010, at 8:42 AM, Rob Pieke wrote:

> SUCCESS!
> 
> Sorry, I had removed the addFnAttr() call by accident. Using the basicAA pass and ReadOnly, as you suggested, works like a charm!
> 
> :)

Thanks. I've updated the documentation and examples in r119169.

I didn't update the OCaml documentation or examples yet. It looks
like the OCaml bindings don't expose basicaa yet, though it should
be easy to add for someone familiar with the bindings.

Dan





More information about the llvm-dev mailing list