[PATCH] D34867: [ORE] Add diagnostics hotness threshold

Brian Gesiak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 29 23:35:48 PDT 2017


modocache created this revision.
Herald added subscribers: eraman, fhahn.

Add an option to prevent diagnostics that do not meet a minimum hotness
threshold from being output. When generating optimization remarks for
large codebases with a ton of cold code paths, this option can be used
to limit the optimization remark output at a reasonable size. Discussion of
this change can be read here:
http://lists.llvm.org/pipermail/llvm-dev/2017-June/114377.html


https://reviews.llvm.org/D34867

Files:
  include/llvm/IR/LLVMContext.h
  lib/Analysis/OptimizationDiagnosticInfo.cpp
  lib/IR/LLVMContext.cpp
  lib/IR/LLVMContextImpl.h
  test/Transforms/Inline/optimization-remarks-yaml.ll
  tools/llc/llc.cpp
  tools/opt/opt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34867.104821.patch
Type: text/x-patch
Size: 6240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170630/2f7f3473/attachment.bin>


More information about the llvm-commits mailing list