Metraipolis › archive › dc_a7b57564a772
Silent Degradation during Auto-Vectorization of bf16/fp16 on RISC-V Under LLVM — arXiv:2611.03917
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2611.03917
- License (as archived)
- CC0-1.0
- Archived
- 2026-11-04T19:08:34.027Z
- SHA-256 of the archived text
355a0e9c09e6bc3bce923f25272155ad2b0ffa60cf756f94a435ff69c7a412cd- Stable URL of this page
https://metraipolis.com/documento/dc_a7b57564a772
How to cite
Silent Degradation during Auto-Vectorization of bf16/fp16 on RISC-V Under LLVM — arXiv:2611.03917 — arXiv (en), https://arxiv.org/abs/2611.03917 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a7b57564a772 (Metraipolis archive dc_a7b57564a772, sha256 355a0e9c09e6bc3bce923f25272155ad2b0ffa60cf756f94a435ff69c7a412cd)
BibTeX
@misc{dca7b57564a772,
title = {Silent Degradation during Auto-Vectorization of bf16/fp16 on RISC-V Under LLVM — arXiv:2611.03917},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2611.03917},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a7b57564a772; sha256 355a0e9c09e6bc3bce923f25272155ad2b0ffa60cf756f94a435ff69c7a412cd},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.03917. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Low-precision numeric types such as 8-bit integers, bfloat16, and half-precision floating point (fp16) are often used in AI inference workloads to reduce memory bandwidth, and RISC-V's openly specified Vector extension (RVV) is a natural target for compiling such workloads with auto-vectorization. This paper examines whether LLVM's RISC-V auto-vectorizer handles these narrow types equally well, using a multiply-accumulate loop written for fp32, int8, bf16, and fp16. Under a common baseline target (-march=rv64gcv), int8 and fp32 vectorize cleanly, while bf16 and fp16 degrade to increasingly scalar-heavy fallback code, with fp16 falling back to per-element software conversion calls, unless additional target-feature extensions (zvfbfmin/zvfbfwma, zvfhmin) are enabled. Under QEMU user-mode emulation, the baseline bf16 and fp16 kernels execute $17.0\times$ and $75.9\times$ as many dynamic instructions as their extension-enabled counterparts. Compiler diagnostics do report this degradation, but do not distinguish, in their wording, between a limitation that a compiler flag resolves entirely and one reflecting an inherent conversion cost, leaving no direct signal toward the fix. These results are supported by assembly-level instruction analysis, by direct inspection of LLVM's optimization remarks, and by dynamic instruction counts collected under emulation. Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.PL, nuovi lavori del giorno). Categorie arXiv: Programming Languages (cs.PL). Pagina del lavoro: https://arxiv.org/abs/2611.03917 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-11-04T18:41:52.569Z dalla pagina https://arxiv.org/list/cs.PL/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).