[Attributor] Cache query results for isPotentiallyReachable in AAReachability
authorShinji Okumura <okuraofvegetable@gmail.com>
Thu, 23 Jul 2020 11:26:30 +0000 (20:26 +0900)
committerShinji Okumura <okuraofvegetable@gmail.com>
Thu, 23 Jul 2020 11:49:28 +0000 (20:49 +0900)
commit697c6d8907e781534eeff062fbe90806ece4b25c
treeaa55addc3366afd393e2068cf9eaf7bc06e5068a
parent931488779f7e916f3f1a7e65cdd38b0dfb4f85a5
[Attributor] Cache query results for isPotentiallyReachable in AAReachability

Summary:
This is the next patch of [[ https://reviews.llvm.org/D76210 | D76210 ]].
This patch made a map in `InformationCache` for caching results.

Reviewers: jdoerfert, sstefan1, uenoku, homerdin, baziotis

Reviewed By: jdoerfert

Subscribers: hiraditya, uenoku, kuter, bbn, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D83246
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/AttributorAttributes.cpp