Skip to content

Commit 5f84b6e

Browse files
authored
[AArch64] Add MATCH loops to LoopIdiomVectorizePass (#101976)
This patch adds a new loop to LoopIdiomVectorizePass, enabling it to recognise and vectorise loops such as: ```cpp template<class InputIt, class ForwardIt> InputIt find_first_of(InputIt first, InputIt last, ForwardIt s_first, ForwardIt s_last) { for (; first != last; ++first) for (ForwardIt it = s_first; it != s_last; ++it) if (*first == *it) return first; return last; } ``` These loops match the C++ standard library function `std::find_first_of`.
1 parent 67b7a25 commit 5f84b6e

File tree

2 files changed

+1158
-9
lines changed

2 files changed

+1158
-9
lines changed

0 commit comments

Comments
 (0)