[all-commits] [llvm/llvm-project] 8e31ac: [VectorCombine] Add special handling for truncatin...
Nabeel Omer via All-commits
all-commits at lists.llvm.org
Tue Oct 24 07:03:58 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8e31acf8ca0db5e6160d85e266432f78148d38f5
https://github.com/llvm/llvm-project/commit/8e31acf8ca0db5e6160d85e266432f78148d38f5
Author: Nabeel Omer <nabeel.omer at sony.com>
Date: 2023-10-24 (Tue, 24 Oct 2023)
Changed paths:
M llvm/lib/Transforms/Vectorize/VectorCombine.cpp
M llvm/test/Transforms/VectorCombine/X86/reduction-two-vecs-combine.ll
Log Message:
-----------
[VectorCombine] Add special handling for truncating shuffles (#70013)
When dealing with a truncating shuffle, we can end up in a situation
where the type passed to getShuffleCost is the type of the result of the
shuffle, and the mask references an element which is out of bounds of
the result vector.
If dealing with truncating shuffles, pass the type of the input vectors
to `getShuffleCost()` in order to avoid an out-of-bounds assertion.
More information about the All-commits
mailing list