[all-commits] [llvm/llvm-project] 545a71: [RISCV] Pre-promote v1i1/v2i1/v4i1->i1/i2/i4 bitca...
Craig Topper via All-commits
all-commits at lists.llvm.org
Sat Jun 18 11:16:27 PDT 2022
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-06-18 (Sat, 18 Jun 2022)
[RISCV] Pre-promote v1i1/v2i1/v4i1->i1/i2/i4 bitcasts before type legalization
Type legalization will convert the bitcast into a vector store and
Instead this patch widens the vector to v8i1 with undef, and bitcasts
it to i8. v8i1->i8 has custom handling for type legalization already to
bitcast to a v1i8 vector and use an extract_element.
The code here was lifted from X86's avx512 support.
Reviewed By: reames
Differential Revision: https://reviews.llvm.org/D128099
More information about the All-commits