diff options
author | Johannes de Fine Licht <johannes.definelicht@nextsilicon.com> | 2023-01-26 15:03:41 +0100 |
---|---|---|
committer | Tobias Gysi <tobias.gysi@nextsilicon.com> | 2023-01-26 15:11:21 +0100 |
commit | c5da2dca2c3453d12419596a1dfe349761f771fc (patch) | |
tree | 4b0c60d58732cd51372b06c63127cd1c5daa9bda /llvm/unittests/Support/MathExtrasTest.cpp | |
parent | 2e9bc1b8614c9422573cf2f4728525787b0cb0cb (diff) | |
download | llvm-c5da2dca2c3453d12419596a1dfe349761f771fc.zip llvm-c5da2dca2c3453d12419596a1dfe349761f771fc.tar.gz llvm-c5da2dca2c3453d12419596a1dfe349761f771fc.tar.bz2 |
[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
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions