aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopVersioning.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-10-23 20:50:05 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-10-24 09:58:02 +0200
commitd09c5921421c362ecc24c9a804e87c2bc1d48997 (patch)
tree36c646210f287be03b0f047c5c35da7a58e7269c /llvm/lib/Transforms/Utils/LoopVersioning.cpp
parent7c026a83ee903f00cb0a2827519ccd6f16b6ed03 (diff)
downloadllvm-d09c5921421c362ecc24c9a804e87c2bc1d48997.zip
llvm-d09c5921421c362ecc24c9a804e87c2bc1d48997.tar.gz
llvm-d09c5921421c362ecc24c9a804e87c2bc1d48997.tar.bz2
[BasicAA] Fix caching in the presence of phi cycles
Any time we insert a block into VisitedPhiBBs, previously cached values may no longer be valid for the recursive alias queries. As such, perform them using an empty AAQueryInfo. Note that if we recurse to the same phi, the block will already be inserted, so we reuse the old AAQueryInfo, and thus still protect against infinite recursion. This problem can appear with with an without BatchAA, but is more likely to occur with BatchAA, as more values are cached. Differential Revision: https://reviews.llvm.org/D90066
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopVersioning.cpp')
0 files changed, 0 insertions, 0 deletions