[PATCH] D72659: [xray] Add xray-ignore-loops option

Ian Levesque via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 15:27:17 PST 2020


ianlevesque created this revision.
ianlevesque added reviewers: hiraditya, smeenai, dberris.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

XRay allows tuning by minimum function size, but also always instruments
functions with loops in them.  If the minimum function size is set to a
large value the loop instrumention ends up causing most functions to be
instrumented anyway.  This adds a new flag, xray-ignore-loops, to disable
the loop detection logic.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72659

Files:
  llvm/lib/CodeGen/XRayInstrumentation.cpp
  llvm/test/CodeGen/X86/xray-ignore-loop-detection.ll
  llvm/test/CodeGen/X86/xray-loop-detection.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72659.237798.patch
Type: text/x-patch
Size: 4821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200113/85b102c7/attachment.bin>


More information about the llvm-commits mailing list