Skip to content

Commit acfd8a8

Browse files
committed
[AArch64] Add MATCH loops to LoopIdiomVectorizePass
This patch adds a new loop to LoopIdiomVectorizePass, enabling it to recognise and use @llvm.experimental.vector.match to vectorise loops such as: char* find_first_of(char *first, char *last, char *s_first, char *s_last) { for (; first != last; ++first) for (char *it = s_first; it != s_last; ++it) if (*first == *it) return first; return last; } These loops match the C++ standard library's std::find_first_of.
1 parent 34097c0 commit acfd8a8

File tree

2 files changed

+843
-9
lines changed

2 files changed

+843
-9
lines changed

0 commit comments

Comments
 (0)