[PATCH] D25763: Add end location of loop to loop metadata.

Adam Nemet via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 24 08:54:39 PDT 2016


anemet added a comment.

In https://reviews.llvm.org/D25763#577179, @fhahn wrote:

> One thing I was thinking about was using this information to display the whole loop when emitting vectorization remarks, instead of just the loop header.  This should be fairly straight forward and I could probably come up with a patch in the next couple of days. We could also use the range information to visually mark loops in the HTML optimization reports. Another thing we could do with the information is folding/hiding "cold" loop bodies in optimization reports per default.


This should probably be interesting to have in opt-viewer.  We don't actually know the type of the code region we're dealing with right now (loop, block, instruction) so this will need more work.  (There is layering problem right now using Loop directly.  Loop is in Analysis while DiagnosticInfo is in IR.)


https://reviews.llvm.org/D25763





More information about the llvm-commits mailing list