This is an archive of the discontinued LLVM Phabricator instance.

[mlir][NFC] Replace some llvm::find with llvm::is_contained.
ClosedPublic

Authored by jacquesguan on Jun 5 2022, 7:35 PM.

Details

Summary

This patch replaces some llvm::find with llvm::is_contained, it should be more clear.

Diff Detail

Event Timeline

jacquesguan created this revision.Jun 5 2022, 7:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 5 2022, 7:35 PM
jacquesguan requested review of this revision.Jun 5 2022, 7:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 5 2022, 7:35 PM
rriddle accepted this revision.Jun 5 2022, 7:38 PM
This revision is now accepted and ready to land.Jun 5 2022, 7:38 PM
rriddle added inline comments.Jun 5 2022, 7:39 PM
mlir/lib/Dialect/SCF/SCF.cpp
2469–2470

Can you remove this lambda all together?

address comment.

mlir/lib/Dialect/SCF/SCF.cpp
2469–2470

done.

This revision was landed with ongoing or failed builds.Jun 5 2022, 8:01 PM
This revision was automatically updated to reflect the committed changes.