We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cda542d commit a858c90Copy full SHA for a858c90
mlir/lib/Dialect/LLVMIR/Transforms/InlinerInterfaceImpl.cpp
@@ -755,10 +755,8 @@ struct LLVMInlinerInterface : public DialectInlinerInterface {
755
756
bool allowSingleBlockOptimization(
757
iterator_range<Region::iterator> inlinedBlocks) const final {
758
- if (!inlinedBlocks.empty() &&
759
- isa<LLVM::UnreachableOp>(inlinedBlocks.begin()->getTerminator()))
760
- return false;
761
- return true;
+ return !(!inlinedBlocks.empty() &&
+ isa<LLVM::UnreachableOp>(inlinedBlocks.begin()->getTerminator()));
762
}
763
764
/// Handle the given inlined return by replacing the uses of the call with the
0 commit comments