[llvm] [SelectionDAG] Add space-optimized forms of OPC_CheckPredicate (PR #73488)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 01:47:07 PST 2023


================
@@ -1163,6 +1169,23 @@ class CodeGenDAGPatterns {
     return F->second;
   }
 
+  const std::map<const ComplexPattern *, unsigned> &
+  getComplexPatternUsage() const {
+    return ComplexPatternUsage;
+  }
+
+  void increaseComplexPatternUsage(const ComplexPattern *CP) {
+    ComplexPatternUsage[CP]++;
+  }
+
+  const std::map<TreePattern *, unsigned> &getPredicateUsage() const {
+    return PredicateUsage;
+  }
+
+  void increasePredicateUsage(const TreePredicateFn &Predicate) {
+    PredicateUsage[Predicate.getOrigPatFragRecord()]++;
----------------
arsenm wrote:

Pre-increment 

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


More information about the llvm-commits mailing list