Dereferencing std::end() of an object can lead to undefined behavior
(e.g. segmentation fault, invalid memory access).
This commit updates SLPVectorizer to only dereference the iterator from
find_if_not() if it is not a std::end().
This prevents SLPVectorizer from crashing with certain workloads.
clang-format not found in user’s local PATH; not linting file.