[Attributor][NFCI] Use queries without exclusion set whenever possible
authorJohannes Doerfert <johannes@jdoerfert.de>
Fri, 3 Feb 2023 09:42:30 +0000 (01:42 -0800)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 10 Feb 2023 17:56:09 +0000 (11:56 -0600)
commita9557aacd1a9a7ffb75dfb54cdc23398f69a4e36
treec2800792348dfd95f8a19b893bf559158669b00f
parent294db31be74851a107452b5012bb5faead780b37
[Attributor][NFCI] Use queries without exclusion set whenever possible

If a query uses an exclusion set but we haven't used it to determine the
result, we can cache the query without exclusion set too. When we lookup
a cached result we can check for the non-exclusion set version first.
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/test/Transforms/Attributor/depgraph.ll
llvm/test/Transforms/Attributor/noalias.ll