In llvm-project/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp, at line 16324,
auto It = Set.second.find(std::make_pair(Idx, *Diff));
The comment explains that if *Diff is duplicated in the set, TryToVectorize(Set.second) should be executed.
However, the code also checks Idx. Does this mean that TryToVectorize(Set.second) might never be executed?
In llvm-project/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp, at line 16324,
auto It = Set.second.find(std::make_pair(Idx, *Diff));
The comment explains that if *Diff is duplicated in the set, TryToVectorize(Set.second) should be executed. However, the code also checks Idx. Does this mean that TryToVectorize(Set.second) might never be executed?