Skip to content

Commit a858c90

Browse files
committed
[MLIR] Apply clang-tidy fixes for readability-simplify-boolean-expr in InlinerInterfaceImpl.cpp (NFC)
1 parent cda542d commit a858c90

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mlir/lib/Dialect/LLVMIR/Transforms/InlinerInterfaceImpl.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -755,10 +755,8 @@ struct LLVMInlinerInterface : public DialectInlinerInterface {
755755

756756
bool allowSingleBlockOptimization(
757757
iterator_range<Region::iterator> inlinedBlocks) const final {
758-
if (!inlinedBlocks.empty() &&
759-
isa<LLVM::UnreachableOp>(inlinedBlocks.begin()->getTerminator()))
760-
return false;
761-
return true;
758+
return !(!inlinedBlocks.empty() &&
759+
isa<LLVM::UnreachableOp>(inlinedBlocks.begin()->getTerminator()));
762760
}
763761

764762
/// Handle the given inlined return by replacing the uses of the call with the

0 commit comments

Comments
 (0)