[llvm] f83a88a - [Transforms] Use llvm::is_contained (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 4 20:48:32 PDT 2022
Author: Kazu Hirata
Date: 2022-06-04T20:48:26-07:00
New Revision: f83a88a1792826f45396f9aa517515d16f4a8b38
URL: https://github.com/llvm/llvm-project/commit/f83a88a1792826f45396f9aa517515d16f4a8b38
DIFF: https://github.com/llvm/llvm-project/commit/f83a88a1792826f45396f9aa517515d16f4a8b38.diff
LOG: [Transforms] Use llvm::is_contained (NFC)
Added:
Modified:
llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp b/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
index d9254f12e41d2..1ae857669b1c8 100644
--- a/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
@@ -1251,7 +1251,7 @@ struct TransformDFA {
/// Returns true if IncomingBB is a predecessor of BB.
bool isPredecessor(BasicBlock *BB, BasicBlock *IncomingBB) {
- return llvm::find(predecessors(BB), IncomingBB) != pred_end(BB);
+ return llvm::is_contained(predecessors(BB), IncomingBB);
}
AllSwitchPaths *SwitchPaths;
More information about the llvm-commits
mailing list