[all-commits] [llvm/llvm-project] b9cf2d: [test] Add phase ordering test

aeubanks via All-commits all-commits at lists.llvm.org
Mon Mar 14 09:42:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b9cf2df3ff73e6f10b9fd50a4e38f3ccc1da502d
      https://github.com/llvm/llvm-project/commit/b9cf2df3ff73e6f10b9fd50a4e38f3ccc1da502d
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-03-14 (Mon, 14 Mar 2022)

  Changed paths:
    A llvm/test/Transforms/PhaseOrdering/recompute-globalsaa.ll

  Log Message:
  -----------
  [test] Add phase ordering test


  Commit: 4fc7c55ffff1bb2b23fc022331b82b086d4b03b4
      https://github.com/llvm/llvm-project/commit/4fc7c55ffff1bb2b23fc022331b82b086d4b03b4
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-03-14 (Mon, 14 Mar 2022)

  Changed paths:
    M clang/test/CodeGen/thinlto-distributed-newpm.ll
    M llvm/include/llvm/Analysis/GlobalsModRef.h
    M llvm/lib/Analysis/GlobalsModRef.cpp
    M llvm/lib/Passes/PassBuilderPipelines.cpp
    M llvm/lib/Passes/PassRegistry.def
    M llvm/test/Other/new-pm-defaults.ll
    M llvm/test/Other/new-pm-thinlto-defaults.ll
    M llvm/test/Other/new-pm-thinlto-postlink-pgo-defaults.ll
    M llvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll
    M llvm/test/Transforms/PhaseOrdering/recompute-globalsaa.ll

  Log Message:
  -----------
  [NewPM] Actually recompute GlobalsAA before module optimization pipeline

RequireAnalysis<GlobalsAA> doesn't actually recompute GlobalsAA.
GlobalsAA isn't invalidated (unless specifically invalidated) because
it's self-updating via ValueHandles, but can be imprecise during the
self-updates.

Rather than invalidating GlobalsAA, which would invalidate AAManager and
any analyses that use AAManager, create a new pass that recomputes
GlobalsAA.

Fixes #53131.

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


Compare: https://github.com/llvm/llvm-project/compare/7b917fd28413...4fc7c55ffff1


More information about the All-commits mailing list