1. Reapply [CaptureTracking] Do not check domination (details)
  2. [CaptureTracking] Simplify reachability check (NFCI) (details)
  3. [Utils] Fix indentation error in utils/ (details)
Commit 656296b1c2eca127cb48612227fa5f381c81b53b by nikita.ppv
Reapply [CaptureTracking] Do not check domination

Reapply after adjusting the synchronized.m test case, where the
TODO is now resolved. The pointer is only captured on the exception
handling path.


For the CapturesBefore tracker, it is sufficient to check that
I can not reach BeforeHere. This does not necessarily require
that BeforeHere dominates I, it can also occur if the capture
happens on an entirely disjoint path.

This change was previously accepted in D90688, but had to be
reverted due to large compile-time impact in some cases: It
increases the number of reachability queries that are performed.

After recent changes, the compile-time impact is largely mitigated,
so I'm reapplying this patch. The remaining compile-time impact
is largely proportional to changes in code-size.
The file was modifiedclang/test/CodeGenObjC/synchronized.m
The file was modifiedllvm/test/Transforms/MemCpyOpt/callslot.ll
The file was modifiedllvm/lib/Analysis/CaptureTracking.cpp
Commit 7243120198914441c97de04bb6fc9afcc5b80731 by nikita.ppv
[CaptureTracking] Simplify reachability check (NFCI)

This code was re-implementing the same-BB case of
isPotentiallyReachable(). Historically, this was done because
CaptureTracking used additional caching for local dominance
queries. Now that it is no longer needed, the code is effectively
the same as isPotentiallyReachable().

The only difference are extra checks for invoke/phis. These are
misleading checks related to dominance in the value availability
sense that are not relevant for control reachability. The invoke
check was correct but redundant in that invokes are always
terminators, so `I` could never come before the invoke. The phi
check is a matter of interpretation (should an earlier phi node be
considered reachable from a later phi node in the same block?)
but ultimately doesn't matter because phis don't capture anyway.
The file was modifiedllvm/lib/Analysis/CaptureTracking.cpp
Commit 06a9b0c6f445585393cdac3d488b7e9b28c7c5d5 by lkail
[Utils] Fix indentation error in utils/

Running this script gives
"llvm-project/llvm/./utils/", line 56
    if word == "N:":
TabError: inconsistent use of tabs and spaces in indentation
Under emacs' whitespace-mode, it shows
»       if·word·==·"N:":$
»       »       name·=·line[2:].strip()$
»       »       if·code_owner:$
»       »       »       process_code_owner(code_owner)$
»       »       »       code_owner·=·{}$
I use `yapf` to format this script directly and it's running correctly.
The file was modifiedllvm/utils/