During vectorization better to postpone the vectorization of the CmpInst
instructions till the end of the basic block. Otherwise we may vectorize
it too early and may miss some vectorization patterns, like reductions.
Reworked part of D57059
Paths
| Differential D99796
[SLP]Improve vectorization of the CmpInst instructions. ClosedPublic Authored by ABataev on Apr 2 2021, 8:25 AM.
Details Summary During vectorization better to postpone the vectorization of the CmpInst Reworked part of D57059
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 3 2021, 5:18 AM Closed by commit rG00a84f9a7f89: [SLP]Improve vectorization of the CmpInst instructions. (authored by ABataev). · Explain WhyApr 5 2021, 6:50 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 335243 llvm/include/llvm/Transforms/Vectorize/SLPVectorizer.h
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/horizontal-minmax.ll
|