[PATCH] D139719: [BasicAA] Remove support for PhiValues analysis

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 9 07:58:40 PST 2022


nikic created this revision.
nikic added reviewers: fhahn, asbirlea, jdoerfert, reames.
Herald added subscribers: kosarev, jeroen.dobbelaere, ormris, wenlei, kerbowa, steven_wu, hiraditya, jvesely.
Herald added a project: All.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

BasicAA currently has an optional dependency on the PhiValues analysis. However, at least with our current pipeline setup, we never actually make use of it. It's possible that this used to work with the legacy pass manager, but I'm not sure of that either.

Given that this analysis has not actually been in use for a long time, and nobody noticed or complained, I think we should drop support for it and focus on one code path. It is worth noting that analysis quality for the non-PhiValues case has significantly improved in the meantime.

If we //really// wanted to make use of PhiValues, the right way would probably be to pass it in via AAQI in places we want to use it, rather than using an optional pass manager dependency (which are an unpredictable PITA and should really only ever be used for analyses that are only preserved and not used).


https://reviews.llvm.org/D139719

Files:
  llvm/include/llvm/Analysis/BasicAliasAnalysis.h
  llvm/include/llvm/Analysis/MemoryDependenceAnalysis.h
  llvm/lib/Analysis/BasicAliasAnalysis.cpp
  llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
  llvm/test/Analysis/BasicAA/invalidation.ll
  llvm/test/Analysis/BasicAA/phi-aa.ll
  llvm/test/Analysis/BasicAA/recphi.ll
  llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
  llvm/test/Other/new-pm-defaults.ll
  llvm/test/Other/new-pm-lto-defaults.ll
  llvm/test/Other/new-pm-thinlto-defaults.ll
  llvm/test/Other/new-pm-thinlto-postlink-pgo-defaults.ll
  llvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll
  llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll
  llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139719.481653.patch
Type: text/x-patch
Size: 21025 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221209/cd5436d0/attachment.bin>


More information about the llvm-commits mailing list