llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang-static-analyzer-1 Author: Gábor Horváth (Xazax-hun) <details> <summary>Changes</summary> EquivalenceClass derived from FoldingSetNode but was never put in a FoldingSet; its Profile method is all ImmutableMap/Set need. Drop the base. This shrinks it from 16 to 8 bytes on 64-bit targets, and the ClassMap, ClassMembers, ConstraintRange and DisequalityMap nodes from 80 to 72 bytes and the ClassSet nodes from 72 to 64 bytes. Assisted-by: Claude Opus 5.5 --- Full diff: https://github.com/llvm/llvm-project/pull/244866.diff 1 Files Affected: - (modified) clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp (+1-1) ``````````diff diff --git a/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp b/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp index d96135e4006ca..abefc37a1565d 100644 --- a/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp +++ b/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp @@ -911,7 +911,7 @@ namespace { /// to produce non-trivial classes. /// If, at some point, we can assume that two symbols from two distinct /// classes are equal, we can merge these classes. -class EquivalenceClass : public llvm::FoldingSetNode { +class EquivalenceClass { public: /// Find equivalence class for the given symbol in the given state. [[nodiscard]] static inline EquivalenceClass find(ProgramStateRef State, `````````` </details> https://github.com/llvm/llvm-project/pull/244866 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
