[all-commits] [llvm/llvm-project] a3c74d: [RISCV] Add support for selecting vid.v from build...
Fraser Cormack via All-commits
all-commits at lists.llvm.org
Wed Feb 10 03:04:59 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a3c74d6d53fcaf53ac0969dcc7a9ab6dd5c9a9f5
https://github.com/llvm/llvm-project/commit/a3c74d6d53fcaf53ac0969dcc7a9ab6dd5c9a9f5
Author: Fraser Cormack <fraser at codeplay.com>
Date: 2021-02-10 (Wed, 10 Feb 2021)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/lib/Target/RISCV/RISCVISelLowering.h
M llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
M llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-buildvec.ll
Log Message:
-----------
[RISCV] Add support for selecting vid.v from build_vector
This patch optimizes a build_vector "index sequence" and lowers it to
the existing custom RISCVISD::VID node. This pattern is common in
autovectorized code.
The custom node was updated to allow it to be used by both scalable and
fixed-length vectors, thus avoiding pattern duplication.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D96332
More information about the All-commits
mailing list