This is an archive of the discontinued LLVM Phabricator instance.

[Polly] [OptDiag] Updating Polly Diagnostics Remarks
ClosedPublic

Authored by tarunr on Jul 13 2017, 6:49 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

tarunr created this revision.Jul 13 2017, 6:49 PM
grosser accepted this revision.Jul 14 2017, 12:43 AM

Very cool. This looks good to me.

Not for this patch, but it would be amazing if you could use this opportunity:

  1. Add this change to the release notes
  2. Add a brief section about Polly's optimization remarks to the documentation. I am especially interested how to use the hotness information!
This revision is now accepted and ready to land.Jul 14 2017, 12:43 AM

@tarunr : Do you plan to commit this patch or do you need somebody to commit this patch for you?

tarunr updated this revision to Diff 106962.EditedJul 17 2017, 3:01 PM

Rebasing,added support for a new remark.

This revision was automatically updated to reflect the committed changes.