[mlir][NFC] Fix codestyle issues introduced in D121988

These were noticed in the post commit review of https://reviews.llvm.org/D121988
This commit is contained in:
Markus Böck
2022-03-28 16:54:34 +02:00
parent d26c42af57
commit a7865228b3
2 changed files with 2 additions and 3 deletions

View File

@@ -533,7 +533,7 @@ LogicalResult BlockMergeCluster::addToCluster(BlockEquivalenceData &blockData) {
if (!isValidSuccessorArg(leaderBlock, lhsOperand) ||
!isValidSuccessorArg(mergeBlock, rhsOperand))
return mlir::failure();
return failure();
mismatchedOperands.emplace_back(opI, operand);
continue;

View File

@@ -348,9 +348,8 @@ TestBranchOp::getMutableSuccessorOperands(unsigned index) {
Optional<MutableOperandRange>
TestProducingBranchOp::getMutableSuccessorOperands(unsigned index) {
assert(index <= 1 && "invalid successor index");
if (index == 1) {
if (index == 1)
return getFirstOperandsMutable();
}
return getSecondOperandsMutable();
}