[llvm] [RISCV] Allow larger offset when matching build_vector as vid sequence (PR #144756)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 18 17:09:11 PDT 2025
================
@@ -3724,14 +3724,14 @@ static SDValue lowerBuildVectorViaVID(SDValue Op, SelectionDAG &DAG,
SplatStepVal = Log2_64(std::abs(StepNumerator));
}
- // Only emit VIDs with suitably-small steps/addends. We use imm5 is a
- // threshold since it's the immediate value many RVV instructions accept.
- // There is no vmul.vi instruction so ensure multiply constant can fit in
- // a single addi instruction.
+ // Only emit VIDs with suitably-small steps. We use imm5 is a threshold
----------------
topperc wrote:
```suggestion
// Only emit VIDs with suitably-small steps. We use imm5 as a threshold
```
https://github.com/llvm/llvm-project/pull/144756
More information about the llvm-commits
mailing list