[all-commits] [llvm/llvm-project] 9971b9: [mlir][llvm] Improve alloca handling during inlini...

Tobias Gysi via All-commits all-commits at lists.llvm.org
Wed Dec 20 23:11:31 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9971b9ab195dd629fb2625c5c5c674d355760231
      https://github.com/llvm/llvm-project/commit/9971b9ab195dd629fb2625c5c5c674d355760231
  Author: Tobias Gysi <tobias.gysi at nextsilicon.com>
  Date:   2023-12-21 (Thu, 21 Dec 2023)

  Changed paths:
    M mlir/lib/Dialect/LLVMIR/IR/LLVMInlining.cpp
    M mlir/test/Dialect/LLVMIR/inlining.mlir
    M mlir/test/lib/Dialect/Test/TestOps.td

  Log Message:
  -----------
  [mlir][llvm] Improve alloca handling during inlining (#75961)

This revision changes the alloca handling in the LLVM inliner.
It ensures that alloca operations, even those nested within a
region operation, can be relocated to the entry block of the function,
or the closest ancestor region that is marked with either the
isolated from above or automatic allocation scope trait.

While the LLVM dialect does not have any region operations,
the inlining interface may be used on IR that mixes different
dialects.




More information about the All-commits mailing list