HomePhabricator

[MLIR] Fix for updating function signature in normalizing memrefs

Authored by imaihal on Sep 25 2020, 10:19 AM.

Description

[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