aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorMikhail R. Gadelha <mikhail@igalia.com>2025-01-21 12:28:48 -0800
committerPhilip Reames <listmail@philipreames.com>2025-01-21 12:51:41 -0800
commit89f119cbdae0beb606229ca422cdd9e1400d0746 (patch)
tree85e4dc6bc6fa0d5d74a086258f8238c6a11f09d6 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentcac67d39362b23466708e464c00ce84abe16bece (diff)
downloadllvm-89f119cbdae0beb606229ca422cdd9e1400d0746.zip
llvm-89f119cbdae0beb606229ca422cdd9e1400d0746.tar.gz
llvm-89f119cbdae0beb606229ca422cdd9e1400d0746.tar.bz2
[RISCV] Update matchSplatAsGather to use the index of extract_elt if in-bounds (#118873)
This is a follow-up to #117878 and allows the usage of vrgather if the index we are accessing in VT is constant and within bounds. This patch replaces the previous behavior of bailing out if the length of the search vector is greater than the vector of elements we are searching for. Since matchSplatAsGather works on EXTRACT_VECTOR_ELT, and we know the index from which the element is extracted, we only need to check if we are doing an insert from a larger vector into a smaller one, in which we do an extract instead. Co-authored-by: Luke Lau luke_lau@icloud.com Co-authored-by: Philip Reames preames@rivosinc.com
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions