Added a separate metadata to indicate when the loop has already been vectorized instead of setting width and count to 1.
Worked in collaboration with Aditya Kumar
Differential D36220
[Loop Vectorize] Added a separate metadata DIVYA on Aug 2 2017, 7:05 AM. Authored by
Details Added a separate metadata to indicate when the loop has already been vectorized instead of setting width and count to 1. Worked in collaboration with Aditya Kumar
Diff Detail
Event TimelineComment Actions
What's the motivation?
Comment Actions LGTM
Comment Actions I have a question: Is there any reason not to mark the scalar loop and the vectorized version with the "llvm.loop.vectorize.width" and "llvm.loop.interleave.count" metadata reflecting the real outcome from the LV. Our out of tree compiler have later loop passes that could benefit from that information. I do not know if would be of any use for any of the in-tree targets or if it would hurt something. Comment Actions I'm not clear on how a later pass might use that information in a robust way. Can you please elaborate? |