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

Hal Finkel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 21 21:08:14 PDT 2019


hfinkel added a comment.

> If you compare the same pointer (or derived from the same), you need to capture at least one from them "explicitly" to learn the bits.

Yes, but then we'd need some way to account for that. If pointer A is compared to pointer B, and then pointer B is unambiguously captured, then so has been pointer A (at least in the part of the control flow dominated by the true edge of the comparison).


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