[LLVMdev] parallel loop metadata simplification
pekka.jaaskelainen at tut.fi
Fri Mar 1 14:10:18 PST 2013
On 03/01/2013 11:05 PM, Redmond, Paul wrote:
> I have discovered that you can provide a custom inserter to IRBuilder (who
> knew!). This has basically solved all my problems and allowed me to generate
> the proper metadata with minimal changes to clang codegen. Currently it adds
> the metadata to all loads and stores but I don't think this is a problem and
> can be refined later if necessary.
Good. I do not see why allocas should cause problems/special handling
here: if the programmer is declaring a loop as "parallel" and still
writes/reads a stack object in such a way that it adds loop-carried
dependencies, it's a programmer-error (it's not a parallel loop).
More information about the llvm-dev