llvm/llvm-project

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

Open

#112.913 geöffnet am 18. Okt. 2024

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (1 zugewiesene Person)C++ (10.782 Forks)batch import
good first issuemlir:vector

Repository-Metriken

Stars
 (26.378 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

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)

Contributor Guide