[PATCH] D134006: Add an optional cache to computeKnownBits.

Justin Lebar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 15 20:02:23 PDT 2022


jlebar created this revision.
Herald added subscribers: jeroen.dobbelaere, foad, hiraditya.
Herald added a project: All.
jlebar requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

BasicAA (via MemoryDependenceResults, via GVN) may make many calls to
computeKnownBits.  On my testcase (not able to share, sorry), this cache
reduces the time spent in computeKnownBits from 2 to 270ms, a 7.5x
speedup.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134006

Files:
  llvm/include/llvm/Analysis/AliasAnalysis.h
  llvm/include/llvm/Analysis/ValueTracking.h
  llvm/lib/Analysis/BasicAliasAnalysis.cpp
  llvm/lib/Analysis/ValueTracking.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134006.460614.patch
Type: text/x-patch
Size: 32297 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220916/bea529c6/attachment.bin>


More information about the llvm-commits mailing list