[Mlir-commits] [mlir] 97c9f9a - [mlir][affine] NFC: Improve variable name in TestReifyValueBounds
Lei Zhang
llvmlistbot at llvm.org
Sun Oct 15 18:05:33 PDT 2023
Author: Lei Zhang
Date: 2023-10-15T18:05:13-07:00
New Revision: 97c9f9a20af42a6efb3d3912a147cb7f513a9441
URL: https://github.com/llvm/llvm-project/commit/97c9f9a20af42a6efb3d3912a147cb7f513a9441
DIFF: https://github.com/llvm/llvm-project/commit/97c9f9a20af42a6efb3d3912a147cb7f513a9441.diff
LOG: [mlir][affine] NFC: Improve variable name in TestReifyValueBounds
Added:
Modified:
mlir/test/lib/Dialect/Affine/TestReifyValueBounds.cpp
Removed:
################################################################################
diff --git a/mlir/test/lib/Dialect/Affine/TestReifyValueBounds.cpp b/mlir/test/lib/Dialect/Affine/TestReifyValueBounds.cpp
index 2f1631cbdb02e01..393e83beb475b50 100644
--- a/mlir/test/lib/Dialect/Affine/TestReifyValueBounds.cpp
+++ b/mlir/test/lib/Dialect/Affine/TestReifyValueBounds.cpp
@@ -188,11 +188,11 @@ static LogicalResult testEquality(func::FuncOp funcOp) {
return WalkResult::skip();
}
if (op->hasAttr("compose")) {
- FailureOr<int64_t> equal = affine::fullyComposeAndComputeConstantDelta(
+ FailureOr<int64_t> delta = affine::fullyComposeAndComputeConstantDelta(
op->getOperand(0), op->getOperand(1));
- if (failed(equal)) {
+ if (failed(delta)) {
op->emitError("could not determine equality");
- } else if (*equal == 0) {
+ } else if (*delta == 0) {
op->emitRemark("equal");
} else {
op->emitRemark("
diff erent");
More information about the Mlir-commits
mailing list