[PATCH] D63844: [LoopFusion] Extend use of OptimizationRemarkEmitter

Kit Barton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 14:21:26 PDT 2019


kbarton created this revision.
Herald added subscribers: llvm-commits, jsji, hiraditya.
Herald added a project: LLVM.

This patch extends the use of the OptimizationRemarkEmitter to provide
information about loops that are not fused, and loops that are not eligible for
fusion. In particular, it uses the OptimizationRemarkAnalysis to identify loops
that are not eligible for fusion and the OptimizationRemarkMissed to identify
loops that cannot be fused.

It also reuses the statistics to provide the messages used in the
OptimizationRemarks. This provides common message strings between the
optimization remarks and the statistics.

I would like feedback on this approach, in general. If people are OK with this,
I will flesh out additional remarks in subsequent commits.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D63844

Files:
  llvm/lib/Transforms/Scalar/LoopFuse.cpp
  llvm/test/Transforms/LoopFusion/diagnostics_analysis.ll
  llvm/test/Transforms/LoopFusion/diagnostics_missed.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63844.206747.patch
Type: text/x-patch
Size: 41593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190626/56e47424/attachment.bin>


More information about the llvm-commits mailing list