[all-commits] [llvm/llvm-project] 450dfa: [RISCV] Add tests where bin ops of splats could be...
Luke Lau via All-commits
all-commits at lists.llvm.org
Wed Sep 20 05:24:11 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 450dfab8c36337813814a69d0c50df5bc74b9419
https://github.com/llvm/llvm-project/commit/450dfab8c36337813814a69d0c50df5bc74b9419
Author: Luke Lau <luke at igalia.com>
Date: 2023-09-20 (Wed, 20 Sep 2023)
Changed paths:
A llvm/test/CodeGen/RISCV/rvv/binop-splats.ll
A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-binop-splats.ll
Log Message:
-----------
[RISCV] Add tests where bin ops of splats could be scalarized. NFC (#65747)
This adds tests for fixed and scalable vectors where we have a binary op
on two splats that could be scalarized. Normally this would be
scalarized in the middle-end by VectorCombine, but as noted in
https://reviews.llvm.org/D159190, this pattern can crop up during
CodeGen afterwards.
Note that a combine already exists for this, but on RISC-V currently it
only works on scalable vectors where the element type == XLEN. See
#65068 and #65072
More information about the All-commits
mailing list