[all-commits] [llvm/llvm-project] 4a2306: [RISCV] Lower VECTOR_INTERLEAVE 4 and 8 with Zvzip...
Min-Yih Hsu via All-commits
all-commits at lists.llvm.org
Fri Sep 18 14:34:16 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4a2306bb4be443d8ca89844d1625d0de01a924e8
https://github.com/llvm/llvm-project/commit/4a2306bb4be443d8ca89844d1625d0de01a924e8
Author: Min-Yih Hsu <min.hsu at sifive.com>
Date: 2026-09-18 (Fri, 18 Sep 2026)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/rvv/vector-interleave-fixed.ll
M llvm/test/CodeGen/RISCV/rvv/vector-interleave.ll
Log Message:
-----------
[RISCV] Lower VECTOR_INTERLEAVE 4 and 8 with Zvzip via DAGCombiner (#223861)
This is the second take of #222432, and to some extent #222750
The full context of why moving to this implementation can be found here:
https://github.com/llvm/llvm-project/pull/222432#discussion_r3992576835
Basically, #222432 has the downside of generating redundant
vslideup/down, as no DAG combine would be run in between different
operation lowering. Although #222750 tried to address that problem, the
fact that it has to call RAUW in the middle of lowering might result in
unexpected result.
This iteration of approach use a DAG combine to break
vector_interleave4/8 into vector_interleave2 early in the ISel, so that
any redundant insert/extract_subvector or concat_vectors should be
cleaned up automatically. Though some redundant pairs of vslideup/down
still show up but they are relatively easy to clean up, which will be
done in the following patch.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list