-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[mlir][Transforms] Report all allowPatternRollback violations as fatal errors
#148416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mlir][Transforms] Report all allowPatternRollback violations as fatal errors
#148416
Conversation
|
@llvm/pr-subscribers-mlir @llvm/pr-subscribers-mlir-core Author: Matthias Springer (matthias-springer) ChangesReport all Full diff: https://github.com/llvm/llvm-project/pull/148416.diff 1 Files Affected:
diff --git a/mlir/lib/Transforms/Utils/DialectConversion.cpp b/mlir/lib/Transforms/Utils/DialectConversion.cpp
index 437dbcfea5288..4d01a83d37165 100644
--- a/mlir/lib/Transforms/Utils/DialectConversion.cpp
+++ b/mlir/lib/Transforms/Utils/DialectConversion.cpp
@@ -2266,9 +2266,8 @@ OperationLegalizer::legalizeWithPattern(Operation *op,
appliedPatterns.erase(&pattern);
if (failed(result)) {
if (!rewriterImpl.config.allowPatternRollback)
- op->emitError("pattern '")
- << pattern.getDebugName()
- << "' produced IR that could not be legalized";
+ llvm::report_fatal_error("pattern '" + pattern.getDebugName() +
+ "' produced IR that could not be legalized");
rewriterImpl.resetState(curState, pattern.getDebugName());
}
if (config.listener)
|
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/116/builds/15516 Here is the relevant piece of the build log for the reference |
Report all
allowPatternRollbackAPI violations as fatal errors. If violated, the IR is potentially in an invalid/inconsistent state from which the driver cannot recover.