[PATCH] D152241: [CaptureTracking] Do not capture equality compares of same object

Joshua Cao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 10 17:01:02 PDT 2023


caojoshua updated this revision to Diff 530266.
caojoshua retitled this revision from "[CaptureTracking] Do not capture compares of same object" to "[CaptureTracking] Do not capture equality compares of same object".
caojoshua edited the summary of this revision.
caojoshua added a comment.
Herald added a subscriber: arichardson.

- Remove getLookthroughUnderlyingObject. Create a utility specifically for non leaking underlying object
- only determine non-capture for equality comparisons


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152241/new/

https://reviews.llvm.org/D152241

Files:
  llvm/lib/Analysis/CaptureTracking.cpp
  llvm/test/Transforms/FunctionAttrs/nocapture.ll
  llvm/unittests/Analysis/CaptureTrackingTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152241.530266.patch
Type: text/x-patch
Size: 5109 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230611/ee95de60/attachment.bin>


More information about the llvm-commits mailing list