HomePhabricator

[mlir] Debug print pattern before and after matchAndRewrite call

Authored by Hardcode84 on Apr 10 2021, 9:38 AM.

Description

[mlir] Debug print pattern before and after matchAndRewrite call

Motivation: we have passes with lot of rewrites and when one one them segfaults or asserts, it is very hard to find waht exactly pattern failed without debug info.

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

Details