[all-commits] [llvm/llvm-project] e5b191: [SLP]Improve/fix reodering for gather nodes with e...
Andrew V. Tischenko via All-commits
all-commits at lists.llvm.org
Mon Dec 13 11:03:03 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e5b191a433902c3dd21cb10c18815b011d6cb1cb
https://github.com/llvm/llvm-project/commit/e5b191a433902c3dd21cb10c18815b011d6cb1cb
Author: Alexey Bataev <a.bataev at outlook.com>
Date: 2021-12-13 (Mon, 13 Dec 2021)
Changed paths:
M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
M llvm/test/Transforms/SLPVectorizer/X86/extracts-with-undefs.ll
Log Message:
-----------
[SLP]Improve/fix reodering for gather nodes with extractelements/undefs.
If the gather node is a mix of undefvalues and exractelement
instructions, need to take the ordering for such nodes into account too.
It allows to reorder some (sub)trees and remove some extra shuffles,
improving overall vectorization.
Also, outlined common functionality into a separate function.
Differential Revision: https://reviews.llvm.org/D115358
More information about the All-commits
mailing list