[PATCH] D21771: [OptRemark] RFC: Add hotness attribute

Adam Nemet via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 1 17:10:13 PDT 2016


anemet updated this revision to Diff 62579.
anemet added a comment.

Use getAnalysisIfAvailable to access BFI. If the pass does not currently use
BFI the original code wouldn't work.  This does not trigger with LV but
porting Loop Distribution tripped on this.


http://reviews.llvm.org/D21771

Files:
  include/llvm/Analysis/OptimizationDiagnosticInfo.h
  include/llvm/IR/DiagnosticInfo.h
  lib/Analysis/CMakeLists.txt
  lib/Analysis/OptimizationDiagnosticInfo.cpp
  lib/IR/DiagnosticInfo.cpp
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/diag-with-hotness-info.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21771.62579.patch
Type: text/x-patch
Size: 20623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160702/0374f428/attachment.bin>


More information about the llvm-commits mailing list