[all-commits] [llvm/llvm-project] 7a0dd3: [mlir][func] Guard for unranked memref with the ba...

Kai Sasaki via All-commits all-commits at lists.llvm.org
Wed Apr 12 19:01:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a0dd35493d4a87b3152e26e1f6449a3f07f1190
      https://github.com/llvm/llvm-project/commit/7a0dd35493d4a87b3152e26e1f6449a3f07f1190
  Author: Kai Sasaki <lewuathe at gmail.com>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
    M mlir/test/Conversion/FuncToLLVM/func-memref-return.mlir

  Log Message:
  -----------
  [mlir][func] Guard for unranked memref with the bare ptr memref call

Lowering the call op with use-bare-ptr-memref-call crashes due to the unsupported unranked memref type. We can prevent the crash by checking the type of operand in the pass instead of the assertion in the type converter.

Issue: https://github.com/llvm/llvm-project/issues/61872

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D148078




More information about the All-commits mailing list