[MLIR][Presburger] Simplex::computeOptimum: slightly simplify code (NFC)

This commit is contained in:
Arjun P 2022-05-25 16:46:45 +01:00
parent 3bdcf3bfc1
commit 18a06d4f3a
1 changed files with 1 additions and 2 deletions

View File

@ -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,