Skip to content

Commit e3f62cf

Browse files
committed
inline func
1 parent 2ecc322 commit e3f62cf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mlir/lib/Pass/Pass.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ void OpToOpPassAdaptor::runOnOperationAsyncImpl(bool verifyPasses) {
800800
std::vector<std::atomic<bool>> activePMs(asyncExecutors.size());
801801
std::fill(activePMs.begin(), activePMs.end(), false);
802802
std::atomic<bool> hasFailure = false;
803-
auto processFn = [&](OpPMInfo &opInfo) {
803+
parallelForEach(context, opInfos, [&](OpPMInfo &opInfo) {
804804
// Find an executor for this operation.
805805
auto it = llvm::find_if(activePMs, [](std::atomic<bool> &isActive) {
806806
bool expectedInactive = false;
@@ -818,8 +818,7 @@ void OpToOpPassAdaptor::runOnOperationAsyncImpl(bool verifyPasses) {
818818

819819
// Reset the active bit for this pass manager.
820820
activePMs[pmIndex].store(false);
821-
};
822-
parallelForEach(context, opInfos, processFn);
821+
});
823822

824823
// Signal a failure if any of the executors failed.
825824
if (hasFailure)

0 commit comments

Comments
 (0)