[PATCH] D67575: [Coverage] Speed up file-based queries for coverage info, NFC

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 13 15:10:03 PDT 2019


vsk created this revision.
vsk added a reviewer: Dor1s.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Speed up queries for coverage info in a file by reducing the amount of
time spent determining whether a function record corresponds to a file.

This gives a 36% speedup when generating a coverage report for `llc`.
The reduction is entirely in user time.

rdar://54758110


https://reviews.llvm.org/D67575

Files:
  llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h
  llvm/lib/ProfileData/Coverage/CoverageMapping.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67575.220177.patch
Type: text/x-patch
Size: 4799 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190913/ef6f7647/attachment.bin>


More information about the llvm-commits mailing list