[PATCH] D147651: [PseudoProbe] Encode/Decode FS discriminator

Hongtao Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 5 11:54:06 PDT 2023


hoy created this revision.
Herald added subscribers: wlei, modimo, wenlei, hiraditya.
Herald added a project: All.
hoy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Encoding FS discriminators for block probes. Decoding them correspondingly.

The encoding/decoding of FS discriminators are conditional, only for probes with a non-zero discriminator. This saves encoding size, also ensures downwards-compatiblity.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147651

Files:
  llvm/include/llvm/IR/PseudoProbe.h
  llvm/include/llvm/MC/MCPseudoProbe.h
  llvm/include/llvm/MC/MCStreamer.h
  llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.cpp
  llvm/lib/MC/MCAsmStreamer.cpp
  llvm/lib/MC/MCParser/AsmParser.cpp
  llvm/lib/MC/MCPseudoProbe.cpp
  llvm/lib/MC/MCStreamer.cpp
  llvm/test/Transforms/SampleProfile/pseudo-probe-emit-inline.ll
  llvm/test/Transforms/SampleProfile/pseudo-probe-emit.ll
  llvm/test/tools/llvm-profgen/Inputs/fs-discriminator-probe.perfbin
  llvm/test/tools/llvm-profgen/pseudoprobe-decoding-discriminator.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147651.511177.patch
Type: text/x-patch
Size: 20358 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230405/b65915f0/attachment.bin>


More information about the llvm-commits mailing list