[PATCH] D147954: [SimplifyCFG] Merge branch_weights for direct callsites and introduce options to preserve value profile for indirect callsites

Mingming Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 18 15:42:07 PDT 2023


mingmingl updated this revision to Diff 514766.
mingmingl retitled this revision from "[SimplifyCFG]Prevent premature simplification of indirect callsites with profile data" to "[SimplifyCFG] Merge branch_weights for direct callsites and introduce options to preserve value profile for indirect callsites".
mingmingl edited the summary of this revision.
mingmingl added a comment.

implemented branch_weight merge for direct callsites in hoist and sink, and get rid of the command line option to override indirect-call specific option -> SimplifyCFG option parser still parses it for testing purposes.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147954/new/

https://reviews.llvm.org/D147954

Files:
  llvm/include/llvm/IR/Metadata.h
  llvm/include/llvm/Transforms/Utils/SimplifyCFGOptions.h
  llvm/lib/IR/Metadata.cpp
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
  llvm/lib/Transforms/Utils/Local.cpp
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/test/Transforms/SimplifyCFG/merge-direct-call-branch-weights-in-hoist.ll
  llvm/test/Transforms/SimplifyCFG/merge-direct-call-branch-weights-in-sink.ll
  llvm/test/Transforms/SimplifyCFG/preserve-call-metadata-in-hoist.ll
  llvm/test/Transforms/SimplifyCFG/preserve-call-metadata-in-sink.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147954.514766.patch
Type: text/x-patch
Size: 29667 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230418/70fbe34c/attachment-0001.bin>


More information about the llvm-commits mailing list