[Mlir-commits] [mlir] 18a06d4 - [MLIR][Presburger] Simplex::computeOptimum: slightly simplify code (NFC)
Arjun P
llvmlistbot at llvm.org
Tue May 31 11:10:17 PDT 2022
Author: Arjun P
Date: 2022-05-31T19:10:15+01:00
New Revision: 18a06d4f3a7474d062d1fe7d405813ed2e40b4fc
URL: https://github.com/llvm/llvm-project/commit/18a06d4f3a7474d062d1fe7d405813ed2e40b4fc
DIFF: https://github.com/llvm/llvm-project/commit/18a06d4f3a7474d062d1fe7d405813ed2e40b4fc.diff
LOG: [MLIR][Presburger] Simplex::computeOptimum: slightly simplify code (NFC)
Added:
Modified:
mlir/lib/Analysis/Presburger/Simplex.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Analysis/Presburger/Simplex.cpp b/mlir/lib/Analysis/Presburger/Simplex.cpp
index 45b1a26e79cf..500bfba58e18 100644
--- a/mlir/lib/Analysis/Presburger/Simplex.cpp
+++ b/mlir/lib/Analysis/Presburger/Simplex.cpp
@@ -1333,8 +1333,7 @@ MaybeOptimum<Fraction> Simplex::computeOptimum(Direction direction,
SimplexRollbackScopeExit scopeExit(*this);
unsigned conIndex = addRow(coeffs);
unsigned row = con[conIndex].pos;
- MaybeOptimum<Fraction> optimum = computeRowOptimum(direction, row);
- return optimum;
+ return computeRowOptimum(direction, row);
}
MaybeOptimum<Fraction> Simplex::computeOptimum(Direction direction,
More information about the Mlir-commits
mailing list