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

Joshua Cao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 15 00:30:48 PDT 2023


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

Go back to the original version with getUnderlyingObjectLookthrough(). Only no-capture for equality compares. Add tests to make sure we don't escape comparisons against captured objects like ptrmask.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152241

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

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


More information about the llvm-commits mailing list