[PATCH] [OPENMP] llvm.loop.vectorize.enable metadata are lost after critical edge splitting
zinovy.nis at gmail.com
Tue Sep 30 05:57:31 PDT 2014
Hi chandlerc, atrick,
Critical edge splitting called by GVN and Loop Rotation leads to losing of ```llvm.loop.vectorize.enable``` metadata for loops as critical edge splitting replaces a branch, corresponding to the loop latch, with a new one.
My patch clones loop latch metadata to a new latch branch thus fixing the issue.
I also had to add LoopInfo analysis for GVN, as it's needed for latch metadata cloning.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4513 bytes
Desc: not available
More information about the llvm-commits