[PATCH] D32673: [CaptureTracking] Handle capturing of launder.invariant.group
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 4 03:28:14 PDT 2018
xbolva00 added inline comments.
================
Comment at: llvm/lib/Analysis/CaptureTracking.cpp:219
- for (const Use &U : V->uses()) {
- // If there are lots of uses, conservatively say that the value
- // is captured to avoid taking too much compile time.
- if (Count++ >= Threshold)
- return Tracker->tooManyUses();
-
- if (!Tracker->shouldExplore(&U)) continue;
- Visited.insert(&U);
- Worklist.push_back(&U);
- }
+ auto AddUses = [&](const Value *V) {
+ int Count = 0;
----------------
is lambda better here? I would prefer seperate function personally.
Repository:
rL LLVM
https://reviews.llvm.org/D32673
More information about the llvm-commits
mailing list