[PATCH] D78734: [CaptureTracking] Make MaxUsesToExplore cheaper (NFC)

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 23 12:28:31 PDT 2020


nikic marked an inline comment as done.
nikic added inline comments.


================
Comment at: lib/Analysis/CaptureTracking.cpp:233
   assert(V->getType()->isPointerTy() && "Capture is for pointers only!");
+  if (MaxUsesToExplore == 0)
+    MaxUsesToExplore = DefaultMaxUsesToExplore;
----------------
skatkov wrote:
> Why did you decide to update only one PointerMayBeCaptured function instead of three?
This function is the actual implementation, all other functions just forward to it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D78734





More information about the llvm-commits mailing list