[PATCH] D28966: [PGO] Memory intrinsic calls optimization based on profiled size

Rong Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 29 14:48:46 PDT 2017


xur updated this revision to Diff 93408.
xur marked an inline comment as done.
xur added a comment.

This new patch integrated David's review suggestion to make this optimization a separated pass.
This pass will be called after inlining to avoid the potential interference to in-lining decisions.  It will use both the metadata annotation for memop size profiling and the enclosing BB's edge count to find the actual count.


https://reviews.llvm.org/D28966

Files:
  include/llvm/InitializePasses.h
  include/llvm/LinkAllPasses.h
  include/llvm/ProfileData/InstrProf.h
  include/llvm/Transforms/InstrProfiling.h
  include/llvm/Transforms/Instrumentation.h
  include/llvm/Transforms/PGOInstrumentation.h
  lib/Passes/PassRegistry.def
  lib/ProfileData/InstrProf.cpp
  lib/Transforms/IPO/PassManagerBuilder.cpp
  lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
  lib/Transforms/Instrumentation/InstrProfiling.cpp
  lib/Transforms/Instrumentation/Instrumentation.cpp
  lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  test/Transforms/PGOProfile/memop_size_opt.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28966.93408.patch
Type: text/x-patch
Size: 29623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170329/33da7274/attachment.bin>


More information about the llvm-commits mailing list