[PATCH] D133121: [PGO] Annotate branch_weight for invoke instruction
Rong Xu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 1 09:24:43 PDT 2022
xur created this revision.
xur added reviewers: davidxl, hoy, wenlei.
Herald added subscribers: Enna1, hiraditya.
Herald added a project: All.
xur requested review of this revision.
Herald added a project: LLVM.
Invoke instruction can have both branch_weights and indirect-call VP count.
We currently only have indirect-call VP count for it.
This patch enables branch_weight metadata for invoke instruction.
https://reviews.llvm.org/D133121
Files:
llvm/include/llvm/IR/Instructions.h
llvm/lib/Analysis/BranchProbabilityInfo.cpp
llvm/lib/IR/Metadata.cpp
llvm/lib/IR/ProfDataUtils.cpp
llvm/lib/IR/Verifier.cpp
llvm/lib/ProfileData/InstrProf.cpp
llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
llvm/lib/Transforms/Utils/Local.cpp
llvm/test/Transforms/PGOProfile/Inputs/invoke_icall.proftext
llvm/test/Transforms/PGOProfile/invoke_icall.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133121.457303.patch
Type: text/x-patch
Size: 26387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220901/4db6a57c/attachment.bin>
More information about the llvm-commits
mailing list