[all-commits] [llvm/llvm-project] 7417eb: [RISCV] Use getSplatBuildVector instead of getSpla...
Craig Topper via All-commits
all-commits at lists.llvm.org
Wed Mar 30 11:37:07 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7417eb29cece1dafdf615c9cc4f24bfb42e326ea
https://github.com/llvm/llvm-project/commit/7417eb29cece1dafdf615c9cc4f24bfb42e326ea
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-03-30 (Wed, 30 Mar 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-buildvec.ll
Log Message:
-----------
[RISCV] Use getSplatBuildVector instead of getSplatVector for fixed vectors.
The splat_vector will be legalized to build_vector eventually
anyway. This patch makes it take fewer steps.
Unfortunately, this results in some codegen changes. It looks
like it comes down to how the nodes were ordered in the topological
sort for isel. Because the build_vector is created earlier we end up
with a different ordering of nodes.
Reviewed By: frasercrmck
Differential Revision: https://reviews.llvm.org/D122185
More information about the All-commits
mailing list