[PATCH] D78734: [CaptureTracking] Make MaxUsesToExplore cheaper (NFC)
Serguei Katkov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 11:53:15 PDT 2020
skatkov added a comment.
Doc for function should probably explicitly mention that zero value means using default option value.
================
Comment at: lib/Analysis/CaptureTracking.cpp:233
assert(V->getType()->isPointerTy() && "Capture is for pointers only!");
+ if (MaxUsesToExplore == 0)
+ MaxUsesToExplore = DefaultMaxUsesToExplore;
----------------
Why did you decide to update only one PointerMayBeCaptured function instead of three?
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