Skip to content

Commit 565f3bd

Browse files
authored
[mlir][linalg] Remove redundant checks for variable(NFC) (#122731)
This PR removes the redundant checks for the `supported` variable, as it's guaranteed to be true.
1 parent a19919f commit 565f3bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3889,7 +3889,7 @@ DiagnosedSilenceableFailure transform::WinogradConv2DOp::applyToOne(
38893889
<< "this operation is not supported to convert to Winograd Conv2D";
38903890
}
38913891

3892-
if (supported && failed(maybeTransformed)) {
3892+
if (failed(maybeTransformed)) {
38933893
return emitSilenceableError() << "apply Winograd Conv2D failed";
38943894
}
38953895

@@ -3927,7 +3927,7 @@ DiagnosedSilenceableFailure transform::DecomposeWinogradOp::applyToOne(
39273927
return diag;
39283928
}
39293929

3930-
if (supported && failed(maybeTransformed)) {
3930+
if (failed(maybeTransformed)) {
39313931
DiagnosedSilenceableFailure diag =
39323932
emitSilenceableError() << "decompose Winograd operations failed";
39333933
diag.attachNote(target->getLoc()) << "target op";

0 commit comments

Comments
 (0)