[MemDep] Use BatchAA when computing pointer dependencies
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 25 Jun 2020 19:35:41 +0000 (21:35 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 25 Aug 2020 19:34:34 +0000 (21:34 +0200)
commit3a54b6a4b71c21cf3bab4f132cbc2904fb9d997e
tree3f26f61e83430eeddb572824bee062a10f9b201c
parent84fdc33f4785115cd517c789a99fdebb6a74ac3e
[MemDep] Use BatchAA when computing pointer dependencies

We're not changing IR while running a single MemDep query, so it's
safe to cache alias analysis results using BatchAA. This adds BatchAA
usage to getSimplePointerDependencyFrom(), which is non-intrusive --
covering larger parts (like a whole processNonLocalLoad query) is
also possible, but requires threading BatchAA through a bunch of APIs.

For the ThinLTO configuration, this is a 1% geomean improvement on CTMark.

Differential Revision: https://reviews.llvm.org/D85583
llvm/lib/Analysis/MemoryDependenceAnalysis.cpp