[all-commits] [llvm/llvm-project] c1f856: [MLIR] Fix for updating function signature in norm...

Haruki Imai via All-commits all-commits at lists.llvm.org
Fri Sep 25 10:28:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c1f856803142a113fa094411fa4760512b919ef6
      https://github.com/llvm/llvm-project/commit/c1f856803142a113fa094411fa4760512b919ef6
  Author: Haruki Imai <imaihal at jp.ibm.com>
  Date:   2020-09-25 (Fri, 25 Sep 2020)

  Changed paths:
    M mlir/lib/Transforms/NormalizeMemRefs.cpp
    M mlir/test/Transforms/normalize-memrefs-ops.mlir
    M mlir/test/lib/Dialect/Test/TestDialect.h
    M mlir/test/lib/Dialect/Test/TestOps.td

  Log Message:
  -----------
  [MLIR] Fix for updating function signature in normalizing memrefs

Normalizing memrefs failed when a caller of symbolic use in a function
can not be casted to `CallOp`. This patch avoids the failure by checking
the result of the casting. If the caller can not be casted to `CallOp`,
it is skipped.

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




More information about the All-commits mailing list