[all-commits] [llvm/llvm-project] 48edb9: [MemorySSA] Use BatchAA for clobber walker

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Dec 5 23:29:36 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 48edb906d52899546317022c70cd674e4c06217e
      https://github.com/llvm/llvm-project/commit/48edb906d52899546317022c70cd674e4c06217e
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-12-06 (Tue, 06 Dec 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/MemorySSA.h
    M llvm/lib/Analysis/MemorySSA.cpp

  Log Message:
  -----------
  [MemorySSA] Use BatchAA for clobber walker

While MemorySSA use optimization was already using BatchAA, the
publicly exposed MSSA walkers were using plain AAResults. This is
not great, because it is expected that clobber walking will make
repeated AA queries.

This patch makes the clobber API accept a BatchAAResults instance.
The plain APIs are kept as wrappers and will create a BatchAAResults
instance for the duration of the query. In the future, the explicit
BatchAAResults arguments will be used to share AA results across
queries, not just within one query.

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




More information about the All-commits mailing list