[all-commits] [llvm/llvm-project] b5ed0a: [mlir][bufferization] Add best-fit algorithm to st...

Javed Absar via All-commits all-commits at lists.llvm.org
Wed Jul 8 01:43:39 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b5ed0ae6bc70792cb9749444b2803c3fa72276e4
      https://github.com/llvm/llvm-project/commit/b5ed0ae6bc70792cb9749444b2803c3fa72276e4
  Author: Javed Absar <javed.absar at gmail.com>
  Date:   2026-07-08 (Wed, 08 Jul 2026)

  Changed paths:
    M mlir/include/mlir/Dialect/Bufferization/IR/BufferizationEnums.td
    M mlir/include/mlir/Dialect/Bufferization/Transforms/Passes.td
    A mlir/include/mlir/Dialect/Bufferization/Transforms/StaticMemoryPlanning.h
    M mlir/lib/Dialect/Bufferization/Transforms/CMakeLists.txt
    M mlir/lib/Dialect/Bufferization/Transforms/StaticMemoryPlannerAnalysis.cpp
    A mlir/lib/Dialect/Bufferization/Transforms/StaticMemoryPlanning.cpp
    A mlir/test/Dialect/Bufferization/Transforms/static-memory-planner-best-fit.mlir

  Log Message:
  -----------
  [mlir][bufferization] Add best-fit algorithm to static memory planner (#207403)

Introduces an algorithm selection option to the static memory planner
pass and adds a best-fit algorithm that reuses memory from expired allocations by
finding the smallest suitable gap.

I have tested the correctness of the best-fit algorithm with an
independent randomized verifier.

Signed-off-by: mabsar <mabsar at qti.qualcomm.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list