[all-commits] [llvm/llvm-project] 0b55f7: [RISCV] Fix interleave crash on unary interleaves
Luke Lau via All-commits
all-commits at lists.llvm.org
Tue Apr 25 01:19:04 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0b55f7c5c69ff2a2776a03f32ad31bedc556faf3
https://github.com/llvm/llvm-project/commit/0b55f7c5c69ff2a2776a03f32ad31bedc556faf3
Author: Luke Lau <luke at igalia.com>
Date: 2023-04-25 (Tue, 25 Apr 2023)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-interleave.ll
Log Message:
-----------
[RISCV] Fix interleave crash on unary interleaves
We were crashing when lowering interleave shuffles like
(shuffle <0,3,1,4>, x:v4i8, y:v4i8)
Where it was technically an unary shuffle (both EvenSrc and OddSrc point
to the first operand), but the resulting extract_subvectors were out of
bounds.
This checks to make sure that the vectors being extracted are within
range.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D148647
More information about the All-commits
mailing list