[all-commits] [llvm/llvm-project] d0e3a5: [SLP]Fix PR64519: Unexpected reordering of gathers.
Alexey Bataev via All-commits
all-commits at lists.llvm.org
Tue Aug 8 08:10:10 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d0e3a571e7f7eced43d85891181dad3fb6c0eaa1
https://github.com/llvm/llvm-project/commit/d0e3a571e7f7eced43d85891181dad3fb6c0eaa1
Author: Alexey Bataev <a.bataev at outlook.com>
Date: 2023-08-08 (Tue, 08 Aug 2023)
Changed paths:
M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
A llvm/test/Transforms/SLPVectorizer/X86/scatter-vectorize-reorder-non-empty.ll
Log Message:
-----------
[SLP]Fix PR64519: Unexpected reordering of gathers.
The issue is actually related to ScatterVectorize nodes. If such node
gets reordered during bottom-to-top reordering, it may have associated
non-empty ReorderIndices. In this case, such nodes need to be handled
the same way as regular Vectorize nodes, not NeedToGather nodes. In this
case we need to reorder ReorderIndices array rather than scalars.
More information about the All-commits
mailing list