[PATCH] [OPENMP] llvm.loop.vectorize.enable metadata are lost after critical edge splitting

Andrew Trick atrick at apple.com
Tue Sep 30 17:54:06 PDT 2014

> On Sep 30, 2014, at 2:57 PM, Hal Finkel <hfinkel at anl.gov> wrote:
> I believe this was a known issue when we discussed the design; if we can come up with a better design, that'd (by definition) be great. The core issue is just how to associate metadata with a loop.

This is clearly out-of-scope, but for the record I don’t think it’s hard to find the branch that the loop latch is control dependent on, and the loop metadata could just always reside there. That way, the metadata would only be invalidated if the loop test itself changed. I would do it by looking for a loop exit block that dominates the (unconditional) latch and doesn’t dominate any other loop exits.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140930/314b8654/attachment.html>

More information about the llvm-commits mailing list