[LLVMdev] Optimization of calls to functions without side effects (from Kaleidoscope example)
Dan Gohman
gohman at apple.com
Wed Nov 17 10:05:03 PST 2010
On Nov 17, 2010, at 12:19 AM, Arnaud Allard de Grandmaison <Arnaud.AllardDeGrandMaison at dibcom.com
> wrote:
> Hi Dan,
>
>> Did the code in the tutorial work at some point? Offhand, I
>> wouldn't expect
>> any of my recent changes to have affected this. I'm reluctant to
>> fix this
>> without understanding how the original code was intended to work.
>
> The code works, but not as shown in the tutorial. In the tutorial,
> it shows that multiple calls to pure functions (sin, cos) can be
> optimized. Without the patch, this does not show up any longer. So
> we need to update either the tutorial or the code.
Please contact the tutorial author.
Thanks,
Dan
More information about the llvm-dev
mailing list