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

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 1 16:25:41 PST 2024


================
@@ -0,0 +1,131 @@
+//===- llvm/Analysis/ConditionCacheUtil.h -----------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Shared by DomConditionCache and AssumptionCache. Holds common operation of
+// finding values potentially affected by an assumed/branched on condition.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_ANALYSIS_CONDITIONCACHEUTIL_H
+#define LLVM_ANALYSIS_CONDITIONCACHEUTIL_H
----------------
goldsteinn wrote:

Doesn't seem to be any extra overhead: https://llvm-compile-time-tracker.com/compare.php?from=d95e97609b15dc13a2d20dc9edb0257b742af86b&to=df14b4d584162ca73a8208b4055d05abea7f07d5&stat=instructions:u

moving to valuetracking

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


More information about the llvm-commits mailing list