[llvm] Introduce CounterExpressionBuilder::subst(C, Map) (PR #112698)

Jessica Paquette via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 8 20:20:23 PST 2025


================
@@ -213,6 +214,11 @@ class CounterExpressionBuilder {
   /// Return a counter that represents the expression that subtracts RHS from
   /// LHS.
   Counter subtract(Counter LHS, Counter RHS, bool Simplify = true);
+
+  using SubstMap = std::map<Counter, Counter>;
----------------
ornata wrote:

I think a comment here to explain the map's role in the algorithm would be useful for future readers.

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


More information about the llvm-commits mailing list