llvm-project
5f84b6ed - [AArch64] Add MATCH loops to LoopIdiomVectorizePass (#101976)

Commit
271 days ago
[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`.
Author
Parents
Loading