[all-commits] [llvm/llvm-project] 19c5cf: [SLP]Fix comparator for cmp instruction vectorizat...
Andrew V. Tischenko via All-commits
all-commits at lists.llvm.org
Thu Dec 9 10:59:38 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 19c5cf4167f645ac4f612a32abcc4d5a469cb214
https://github.com/llvm/llvm-project/commit/19c5cf4167f645ac4f612a32abcc4d5a469cb214
Author: Alexey Bataev <a.bataev at outlook.com>
Date: 2021-12-09 (Thu, 09 Dec 2021)
Changed paths:
M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
M llvm/test/Transforms/SLPVectorizer/X86/used-reduced-op.ll
A llvm/test/Transforms/SLPVectorizer/X86/vectorize-cmps.ll
Log Message:
-----------
[SLP]Fix comparator for cmp instruction vectorization.
The comparator for the sort functions should provide strict weak
ordering relation between parameters. Current solution causes compiler
crash with some standard c++ library implementations, because it does
not meet this criteria. Tried to fix it + it improves the iverall
vectorization result.
Differential Revision: https://reviews.llvm.org/D115268
More information about the All-commits
mailing list