[SLPVectorizer] Fix divide-by-zero after D99719
authorFangrui Song <i@maskray.me>
Fri, 2 Apr 2021 18:13:51 +0000 (11:13 -0700)
committerFangrui Song <i@maskray.me>
Fri, 2 Apr 2021 18:13:51 +0000 (11:13 -0700)
commit8e5f3d04f269dbe791076e775f1d1a098cbada01
tree9adf7de21ea6032371e0d51490cee74164074de7
parent15ec0ad77ae3b65e791567854da5b4984030d080
[SLPVectorizer] Fix divide-by-zero after D99719

Will add a test case later.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp