[Mlir-commits] [mlir] [mlir][bufferization] Add static memory planner pass for compile-time buffer allocation (PR #205125)
Krish Gupta
llvmlistbot at llvm.org
Mon Jun 29 01:29:36 PDT 2026
================
----------------
KrxGu wrote:
Switched from `std::max` to LCM for arena alignment `std::max` was indeed wrong (e.g., lcm(3,7)=21, not max(3,7)=7). One note: `llvm::lcm `doesn't appear to be available here (compiler suggested `std::lcm`, so using `std::lcm` from <numeric> (C++17).
Happy to use a different helper if there's a preferred LLVM wrapper. Test case for LCM alignment is pending, will add in the next commit along with the test restructuring from javedabsar's feedback.
https://github.com/llvm/llvm-project/pull/205125
More information about the Mlir-commits
mailing list