[MLIR][NFC] Simplex::restoreRow: improve documentation

This commit is contained in:
Arjun P 2021-11-21 19:23:15 +05:30
parent 3234f2d9c1
commit ad48ef1e31
2 changed files with 4 additions and 4 deletions

View File

@ -310,8 +310,8 @@ private:
/// Restore the unknown to a non-negative sample value.
///
/// Returns true if the unknown was successfully restored to a non-negative
/// sample value, false otherwise.
/// Returns success if the unknown was successfully restored to a non-negative
/// sample value, failure otherwise.
LogicalResult restoreRow(Unknown &u);
/// Compute the maximum or minimum of the specified Unknown, depending on

View File

@ -259,8 +259,8 @@ void Simplex::pivot(unsigned pivotRow, unsigned pivotCol) {
}
/// Perform pivots until the unknown has a non-negative sample value or until
/// no more upward pivots can be performed. Return the sign of the final sample
/// value.
/// no more upward pivots can be performed. Return success if we were able to
/// bring the row to a non-negative sample value, and failure otherwise.
LogicalResult Simplex::restoreRow(Unknown &u) {
assert(u.orientation == Orientation::Row &&
"unknown should be in row position");