]> granicus.if.org Git - llvm/commitdiff
AssumptionCache: Update documentation comment.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 15 Feb 2017 03:50:01 +0000 (03:50 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 15 Feb 2017 03:50:01 +0000 (03:50 +0000)
The comment was somewhat misleading in that it implied that passes were not
responsible for adding new assumptions to the assumption cache. This new
wording now explicitly mentions that they are required to do so.

Differential Revision: https://reviews.llvm.org/D29977

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295148 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/AssumptionCache.h

index 72c67955a950f166f0430a4361b1dd173729e270..bd29292c4c66a8cedbd5288267874128c0fb2043 100644 (file)
@@ -31,11 +31,10 @@ namespace llvm {
 /// \brief A cache of @llvm.assume calls within a function.
 ///
 /// This cache provides fast lookup of assumptions within a function by caching
-/// them and amortizing the cost of scanning for them across all queries. The
-/// cache is also conservatively self-updating so that it will never return
-/// incorrect results about a function even as the function is being mutated.
-/// However, flushing the cache and rebuilding it (or explicitly updating it)
-/// may allow it to discover new assumptions.
+/// them and amortizing the cost of scanning for them across all queries. Passes
+/// that create new assumptions are required to call registerAssumption() to
+/// register any new @llvm.assume calls that they create. Deletions of
+/// @llvm.assume calls do not require special handling.
 class AssumptionCache {
   /// \brief The function for which this cache is handling assumptions.
   ///