[LLVMdev] How to remove a pesky store?

Joerg Sonnenberger joerg at britannica.bec.de
Thu Apr 16 08:00:12 PDT 2015


On Thu, Apr 16, 2015 at 11:49:25AM -0300, Fernando Magno Quintao Pereira wrote:
>    The second and third versions are the kernels that we get with
> clang -O3, if we using "restrict" in the arguments:

I don't think the restrict here does what you expect it to do.
The problem is that src->v and dst->v may still alias and that's why it
can't move the store.

Joerg



More information about the llvm-dev mailing list