[all-commits] [llvm/llvm-project] 715a04: [RISCVGatherScatterLowering] Support shl in non-re...
Philip Reames via All-commits
all-commits at lists.llvm.org
Fri May 12 12:22:17 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 715a04309069aaa87ee4952918fde339492e4295
https://github.com/llvm/llvm-project/commit/715a04309069aaa87ee4952918fde339492e4295
Author: Philip Reames <preames at rivosinc.com>
Date: 2023-05-12 (Fri, 12 May 2023)
Changed paths:
M llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp
M llvm/test/CodeGen/RISCV/rvv/strided-load-store.ll
Log Message:
-----------
[RISCVGatherScatterLowering] Support shl in non-recursive matching
We can apply the same logic as for multiply since a left shift is just a multiply by a power of two. Note that since shl is not commutative, we do need to be careful to match sure that the splat is the RHS of the instruction.
Differential Revision: https://reviews.llvm.org/D150471
More information about the All-commits
mailing list