From fb60b1f8597ca5e924c78cf4d46eed2422dfece4 Mon Sep 17 00:00:00 2001 From: Tres Popp Date: Tue, 13 Sep 2022 10:21:55 +0200 Subject: [PATCH] [mlir] Decrease stack allocations in Presburger's Matrix The class set a SmallVector stack allocation size to 64 elements which is uncommonly large. These structures are then used extensively and copied often in functions which led to stack frame sizes considered excessively large for some use cases. Differential Revision: https://reviews.llvm.org/D133761 --- mlir/include/mlir/Analysis/Presburger/Matrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/include/mlir/Analysis/Presburger/Matrix.h b/mlir/include/mlir/Analysis/Presburger/Matrix.h index e9251ba..c9fff4a 100644 --- a/mlir/include/mlir/Analysis/Presburger/Matrix.h +++ b/mlir/include/mlir/Analysis/Presburger/Matrix.h @@ -190,7 +190,7 @@ private: /// Stores the data. data.size() is equal to nRows * nReservedColumns. /// data.capacity() / nReservedColumns is the number of reserved rows. - SmallVector data; + SmallVector data; }; } // namespace presburger -- 2.7.4