[all-commits] [llvm/llvm-project] c5da2d: [MLIR][LLVM] Support inlining of LLVM::AllocaOp.
definelicht via All-commits
all-commits at lists.llvm.org
Thu Jan 26 06:13:38 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c5da2dca2c3453d12419596a1dfe349761f771fc
https://github.com/llvm/llvm-project/commit/c5da2dca2c3453d12419596a1dfe349761f771fc
Author: Johannes de Fine Licht <johannes.definelicht at nextsilicon.com>
Date: 2023-01-26 (Thu, 26 Jan 2023)
Changed paths:
M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
M mlir/test/Dialect/LLVMIR/inlining.mlir
Log Message:
-----------
[MLIR][LLVM] Support inlining of LLVM::AllocaOp.
If inlining into an LLVM function, move allocas of constant size from
the callee's entry block to the new entry block, as this will fold into
the prologue/epilogue code during code generation.
We still allow inlining allocas even if we cannot do this
post-processing (i.e., when we are not inlining into an `LLVM::FuncOp`),
since this is an optimization (and thus not necessary for correctness).
Depends on D141682
Reviewed By: gysit
Differential Revision: https://reviews.llvm.org/D142436
More information about the All-commits
mailing list