[all-commits] [llvm/llvm-project] 15694f: [CaptureTracking] Avoid overly restrictive dominat...

annamthomas via All-commits all-commits at lists.llvm.org
Thu Nov 5 08:39:12 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 15694fd6ad955c6a16b446a6324364111a49ae8b
      https://github.com/llvm/llvm-project/commit/15694fd6ad955c6a16b446a6324364111a49ae8b
  Author: Anna Thomas <anna at azul.com>
  Date:   2020-11-05 (Thu, 05 Nov 2020)

  Changed paths:
    M llvm/lib/Analysis/CaptureTracking.cpp
    M llvm/test/Transforms/MemCpyOpt/callslot.ll

  Log Message:
  -----------
  [CaptureTracking] Avoid overly restrictive dominates check

CapturesBefore tracker has an overly restrictive dominates check when
the `BeforeHere` and the capture point are in different basic blocks.
All we need to check is that there is no path from the capture point
to `BeforeHere` (which is less stricter than the dominates check).
See added testcase in one of the users of CapturesBefore.

Reviewed-By: jdoerfert
Differential Revision: https://reviews.llvm.org/D90688




More information about the All-commits mailing list