[llvm] [Analysis][ValueTracking] Unify most of the tracking between AssumptionCache and DomConditionCache (PR #83161)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 02:00:56 PST 2024


================
@@ -9099,3 +9099,110 @@ ConstantRange llvm::computeConstantRange(const Value *V, bool ForSigned,
 
   return CR;
 }
+
+// Used by DomConditionCache and AssumptionCache.
+void addValueAffectedByCondition(Value *V,
+                                 function_ref<void(Value *)> InsertAffected) {
+  using namespace llvm::PatternMatch;
----------------
nikic wrote:

The whole file already uses the namespace.

https://github.com/llvm/llvm-project/pull/83161


More information about the llvm-commits mailing list