[PATCH] D78310: [ProfileSummary] Add partial profile annotation on IR.
Wei Mi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 18 10:45:44 PDT 2020
wmi updated this revision to Diff 258530.
wmi added a comment.
Herald added subscribers: luismarques, apazos, sameer.abuasal, pzheng, s.egerton, lenary, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, steven_wu, edward-jones, zzheng, MaskRay, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb.
Address Hiroshi's comment.
Update tests using the following script with a little manual tweaking for special cases.
- update.sh ---------------------------------
file=$1
num=`grep '!\"DetailedSummary\"' $file |sed 's%^[ ]*!\([0-9]*\).*%\1%g'`
for ((i=200; $i>=$num; i--)); do
i_1=`expr $i '+' 1`
sed -i "s/!$i/!$i_1/g" $file
done
sed -i "/!\"DetailedSummary\"/i !$num = !{!\"IsPartialProfile\", i64 0}" $file
minus=`expr $num '-' 1`
plus=`expr $num '+' 1`
sed -i "s/!$minus, !$plus/!$minus, !$num, !$plus/g" $file
---------------------------------------------------------
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78310/new/
https://reviews.llvm.org/D78310
Files:
llvm/include/llvm/IR/ProfileSummary.h
llvm/lib/IR/ProfileSummary.cpp
llvm/test/Analysis/ProfileSummary/basic.ll
llvm/test/Bitcode/thinlto-function-summary-callgraph-profile-summary.ll
llvm/test/Bitcode/thinlto-function-summary-callgraph-sample-profile-summary.ll
llvm/test/CodeGen/AArch64/arm64-memset-to-bzero-pgso.ll
llvm/test/CodeGen/AArch64/max-jump-table.ll
llvm/test/CodeGen/ARM/constantpool-align.ll
llvm/test/CodeGen/RISCV/tail-calls.ll
llvm/test/CodeGen/X86/atom-pad-short-functions.ll
llvm/test/CodeGen/X86/avx-cvt.ll
llvm/test/CodeGen/X86/avx512-mask-op.ll
llvm/test/CodeGen/X86/bypass-slow-division-tune.ll
llvm/test/CodeGen/X86/cmov-into-branch.ll
llvm/test/CodeGen/X86/conditional-tailcall-pgso.ll
llvm/test/CodeGen/X86/fixup-lea.ll
llvm/test/CodeGen/X86/fold-load-unops.ll
llvm/test/CodeGen/X86/fshl.ll
llvm/test/CodeGen/X86/fshr.ll
llvm/test/CodeGen/X86/haddsub.ll
llvm/test/CodeGen/X86/immediate_merging.ll
llvm/test/CodeGen/X86/immediate_merging64.ll
llvm/test/CodeGen/X86/insert-prefetch.ll
llvm/test/CodeGen/X86/loop-blocks.ll
llvm/test/CodeGen/X86/materialize.ll
llvm/test/CodeGen/X86/memcmp-pgso.ll
llvm/test/CodeGen/X86/memcpy.ll
llvm/test/CodeGen/X86/powi.ll
llvm/test/CodeGen/X86/rounding-ops.ll
llvm/test/CodeGen/X86/shrink-compare-pgso.ll
llvm/test/CodeGen/X86/slow-incdec.ll
llvm/test/CodeGen/X86/splat-for-size.ll
llvm/test/CodeGen/X86/store-zero-and-minus-one.ll
llvm/test/CodeGen/X86/switch-density.ll
llvm/test/CodeGen/X86/tail-opts.ll
llvm/test/CodeGen/X86/test-vs-bittest.ll
llvm/test/CodeGen/X86/vector-shuffle-256-v4.ll
llvm/test/CodeGen/X86/x86-64-bittest-logic.ll
llvm/test/CodeGen/X86/x86-64-double-shifts-Oz-Os-O2.ll
llvm/test/CodeGen/X86/x86-repmov-copy-eflags.ll
llvm/test/Other/new-pm-thinlto-postlink-pgo-defaults.ll
llvm/test/Transforms/CodeExtractor/PartialInlineORECrash.ll
llvm/test/Transforms/CodeExtractor/PartialInlinePGOMultiRegion.ll
llvm/test/Transforms/CodeExtractor/PartialInlinePGORegion.ll
llvm/test/Transforms/CodeGenPrepare/X86/section-samplepgo.ll
llvm/test/Transforms/CodeGenPrepare/X86/section.ll
llvm/test/Transforms/CodeGenPrepare/X86/sink-addrmode.ll
llvm/test/Transforms/ConstantHoisting/ARM/const-addr-no-neg-offset.ll
llvm/test/Transforms/FunctionImport/Inputs/hotness_based_import.ll
llvm/test/Transforms/FunctionImport/hotness_based_import.ll
llvm/test/Transforms/FunctionImport/import_stats.ll
llvm/test/Transforms/HotColdSplit/coldentrycount.ll
llvm/test/Transforms/Inline/bfi-update.ll
llvm/test/Transforms/Inline/inline-cold-callee.ll
llvm/test/Transforms/Inline/inline-cold-callsite-pgo.ll
llvm/test/Transforms/Inline/inline-hot-callee.ll
llvm/test/Transforms/Inline/inline-hot-callsite-2.ll
llvm/test/Transforms/Inline/inline-hot-callsite.ll
llvm/test/Transforms/Inline/prof-update-instr.ll
llvm/test/Transforms/Inline/prof-update-sample.ll
llvm/test/Transforms/InstCombine/fputs-opt-size.ll
llvm/test/Transforms/LoopLoadElim/opt-size.ll
llvm/test/Transforms/LoopUnroll/peel-loop-pgo-deopt.ll
llvm/test/Transforms/LoopUnroll/peel-loop-pgo.ll
llvm/test/Transforms/LoopUnroll/unroll-opt-attribute.ll
llvm/test/Transforms/LoopVectorize/optsize.ll
llvm/test/Transforms/PGOProfile/Inputs/thinlto_cspgo_bar_gen.ll
llvm/test/Transforms/PGOProfile/Inputs/thinlto_cspgo_bar_use.ll
llvm/test/Transforms/PGOProfile/chr.ll
llvm/test/Transforms/PGOProfile/cspgo_profile_summary.ll
llvm/test/Transforms/PGOProfile/icp_sample.ll
llvm/test/Transforms/PGOProfile/thinlto_cspgo_gen.ll
llvm/test/Transforms/PGOProfile/thinlto_cspgo_use.ll
llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp.ll
llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp2.ll
llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp3.ll
llvm/test/Transforms/PGOProfile/thinlto_samplepgo_icp_droppeddead.ll
llvm/test/Transforms/PGOProfile/unreachable_bb.ll
llvm/test/Transforms/SampleProfile/section-accurate-samplepgo.ll
llvm/test/Transforms/SampleProfile/summary.ll
llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp
llvm/unittests/ProfileData/SampleProfTest.cpp
llvm/unittests/Target/X86/MachineSizeOptsTest.cpp
llvm/unittests/Transforms/Utils/SizeOptsTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78310.258530.patch
Type: text/x-patch
Size: 257382 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200418/ec7e2feb/attachment-0001.bin>
More information about the llvm-commits
mailing list