[PATCH] D66461: [CaptureTracker] Comparisons of allocation pointers do not capture

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 22 12:31:08 PDT 2019


efriedma added a comment.

> As I described, the compare will capture only if the other pointer was captured. So additionally to the checks in the patch ask the tracker if that is the case

You can't actually reconstruct the pointer in that case, but the bits are still significant; if two functions sort a list of pointers, they have to sort the same way.  Whether that means the pointer is "captured" depends on the definition of "captured"; I can think of transforms that don't care, and transforms that do care.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D66461





More information about the llvm-commits mailing list