[PATCH] D35399: [Polly] [OptDiag] Updating Polly Diagnostics Remarks

Tarun Rajendran via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 13 18:49:44 PDT 2017


tarunr created this revision.
tarunr added a project: Polly.
Herald added a subscriber: fhahn.
Herald added a reviewer: bollu.

Utilizing newer llvm diagnostic remark API in order to enable use of opt-viewer tool.
Polly Diagnostic Remarks also now appear in yaml remark file.

In this patch, I've added the OptimizationRemarkEmitter into certain classes where remarks are being emitted and update the remark emit calls itself. I also provide each remark a BasicBlock or Instruction from where it is being called, in order to compute the hotness of the remark.


Repository:
  rL LLVM

https://reviews.llvm.org/D35399

Files:
  include/polly/ScopDetection.h
  include/polly/ScopDetectionDiagnostic.h
  include/polly/ScopInfo.h
  lib/Analysis/ScopBuilder.cpp
  lib/Analysis/ScopDetection.cpp
  lib/Analysis/ScopDetectionDiagnostic.cpp
  lib/Analysis/ScopInfo.cpp
  test/ScopDetectionDiagnostics/ReportUnprofitable.ll
  test/ScopInfo/user_provided_non_dominating_assumptions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35399.106574.patch
Type: text/x-patch
Size: 40976 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170714/694f0374/attachment.bin>


More information about the llvm-commits mailing list