You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, calls to RewriterBase::inlineRegionBefore will result in a failure to use -debug functionality by default. It works with the addition of -mlir-print-op-generic, but without will result in failures such as:
This makes debugging of passes including dialect conversion often painful as either the less clear generic form has to be used, or the pattern has to insert a block into the deleted operation to avoid the assertion failure.
The above stack trace was generated by adding -debug to Conversion/AffineToStandard/lower-affine.mlir
The text was updated successfully, but these errors were encountered:
This isn't really specific to inlineRegionBefore in any way. A lot of things within the conversion process can break invariants in ways that will crash pretty printers, it kind of just comes with the territory. https://reviews.llvm.org/D117834 is realistically the path forward to removing the crashes during printing for invalid ops, but defaulting to the generic form is not something we will always be able to avoid during conversions.
Currently, calls to
RewriterBase::inlineRegionBefore
will result in a failure to use-debug
functionality by default. It works with the addition of-mlir-print-op-generic
, but without will result in failures such as:This makes debugging of passes including dialect conversion often painful as either the less clear generic form has to be used, or the pattern has to insert a block into the deleted operation to avoid the assertion failure.
The above stack trace was generated by adding
-debug
toConversion/AffineToStandard/lower-affine.mlir
The text was updated successfully, but these errors were encountered: