[all-commits] [llvm/llvm-project] 17b4e5: [BasicAA] Don't pass through AA metadata (NFCI)

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat Apr 3 02:31:59 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 17b4e5d4563104130575c6e07e7a8f05a6f7653c
      https://github.com/llvm/llvm-project/commit/17b4e5d4563104130575c6e07e7a8f05a6f7653c
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-04-03 (Sat, 03 Apr 2021)

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

  Log Message:
  -----------
  [BasicAA] Don't pass through AA metadata (NFCI)

BasicAA itself doesn't make use of AA metadata, but passes it
through to recursive queries and makes it part of the cache key.
Aliasing decisions that are based on AA metadata (i.e. TBAA and
ScopedAA) are based *only* on AA metadata, so checking them with
different pointer values or sizes is not useful, the result will
always be the same.

While this change is a mild compile-time improvement by itself,
the actual goal here is to reduce the size of AA cache keys in
a followup change.

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




More information about the All-commits mailing list