[all-commits] [llvm/llvm-project] 12cd7e: [RISCV] Remove one use restriction on the scalar f...
Craig Topper via All-commits
all-commits at lists.llvm.org
Tue Apr 25 21:11:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 12cd7e11aad01ba0ff35d76707ba956b2fb14e8b
https://github.com/llvm/llvm-project/commit/12cd7e11aad01ba0ff35d76707ba956b2fb14e8b
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-04-25 (Tue, 25 Apr 2023)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/rvv/fold-binary-reduce.ll
Log Message:
-----------
[RISCV] Remove one use restriction on the scalar from combineBinOpToReduce.
If multiple reductions use the neutral start value, this prevented
us from optimizing any of them.
This increases the number of scalar->vector operations but reduces
the number of scalar operations.
Note, we were already inconsistent about the one use check when we
peeked through INSERT_SUBVECTORs.
Reviewed By: fakepaper56
Differential Revision: https://reviews.llvm.org/D149181
More information about the All-commits
mailing list