[PATCH] D109907: [DSE] Use cached escape info for calls.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 16 12:09:51 PDT 2021


fhahn created this revision.
fhahn added reviewers: nikic, xbolva00, asbirlea.
Herald added a subscriber: hiraditya.
fhahn requested review of this revision.
Herald added a project: LLVM.

This patch uses the caching added in D109844 <https://reviews.llvm.org/D109844> to analyze calls. It adds a
variant of callCapturesBefore which should only be called if the object
does not escape before the call. I am happy to adjust the naming and
structure of the changes in CaptureTracking and I'll add a doc-comment
once everything is settled.

Fixes PR50220.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109907

Files:
  llvm/include/llvm/Analysis/AliasAnalysis.h
  llvm/lib/Analysis/AliasAnalysis.cpp
  llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
  llvm/test/Transforms/DeadStoreElimination/captures-before-call.ll
  llvm/test/Transforms/DeadStoreElimination/captures-before-load.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109907.373027.patch
Type: text/x-patch
Size: 10283 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210916/24b22ba2/attachment.bin>


More information about the llvm-commits mailing list