Skip to content

Commit 5cc672e

Browse files
rj-jesusIcohedron
authored andcommitted
[AArch64] Add MATCH loops to LoopIdiomVectorizePass (llvm#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 09623c1 commit 5cc672e

File tree

2 files changed

+1158
-9
lines changed

2 files changed

+1158
-9
lines changed

0 commit comments

Comments
 (0)