[LLVMdev] loop metdata instruction

Michael D'hont micdhont at gmail.com
Sun Mar 3 05:15:33 PST 2013


Hi

I'm working on a project which needs loop-attached metadata similar to
the parallel metadata discussed in here. Currently I'm trying to make
the metadata get through the optimisation passes unscathed. For loop
passes, I've solved that by modifying the LPPassManager to check for
metadata presence before and after runOnLoop, and restoring it if
necessary (assuming the loop didn't get removed and the metadata
didn't get moved).

However, the CFG simplifier pass also can optimize the loop latch and
attached metadata away. As this is a function pass, I don't have
access to the loop-specific functionality such as getLoopLatch to
check for metadata.

Any suggestions how to fix this? How would the parallel loop metadata
discussed in here survive these CFG simplifications?

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130303/4b938fbc/attachment.html>


More information about the llvm-dev mailing list