[all-commits] [llvm/llvm-project] e4b58e: [MemDep] Also remove load instructions from NonLoc...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Jun 17 01:37:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e4b58ea8c1ec267bd17a2d56dc08faf904bd9c70
      https://github.com/llvm/llvm-project/commit/e4b58ea8c1ec267bd17a2d56dc08faf904bd9c70
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-06-17 (Wed, 17 Jun 2020)

  Changed paths:
    M llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
    A llvm/test/Transforms/GVN/pr46054-md-nonlocaldefcache-cleanup.ll

  Log Message:
  -----------
  [MemDep] Also remove load instructions from NonLocalDesCache.

Currently load instructions are added to the cache for invariant pointer
group dependencies, but only pointer values are removed currently. That
leads to dangling AssertingVHs in the test case below, where we delete a
load from an invariant pointer group. We should also remove the entries
from the cache.

Fixes PR46054.

Reviewers: efriedma, hfinkel, asbirlea

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D81726




More information about the All-commits mailing list