[MLIR][LLVM] Inline LLVM::StackSaveOp and LLVM::StackRestoreOp.
Support LLVM::StackSaveOp and LLVM::StackRestoreOp in the LLVM dialect inliner in MLIR. Inserts new LLVM::StackSaveOp and LLVM::StackRestoreOp intrinsics when dynamic allocas are detected in the inlined blocks. This may result in multiple saves/restores in the same block if some are already present in the caller, which is legal IR, but is cleaned up in LLVM. There is not yet a canonicalization pattern for this on LLVM dialect in MLIR. Reviewed By: Dinistro Differential Revision: https://reviews.llvm.org/D148011
Loading
Please sign in to comment