llvm/llvm-project

[mlir][Vector] Improve support for 0-d vectors in vector dialect lowerings

Open

#112.913 aberto em 18 de out. de 2024

Ver no GitHub
 (6 comments) (0 reactions) (1 assignee)C++ (10.782 forks)batch import
good first issuemlir:vector

Métricas do repositório

Stars
 (26.378 stars)
Métricas de merge de PR
 (Mesclagem média 1d 2h) (1.000 fundiu PRs em 30d)

Description

A number of patterns in vector dialect lowerings predate 0-d vector support and side step from 0-d vectors by converting them to scalars and then broadcasting them. An example patch fixing this: https://github.com/llvm/llvm-project/pull/112907

Some example issues:

I have tested removing these, and the llvm ir generated from llvm.store with 0-d vectors is correct. (Good first issue)

Guia do colaborador