[llvm] [SLP] Vectorize full insertvalue buildvector sequences (PR #200274)
Ryan Buchner via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 14:49:45 PDT 2026
================
----------------
bababuck wrote:
```suggestion
case Instruction::InsertValue:
case Instruction::InsertElement:
Operands.assign(2, {VL.size(), nullptr});
for (auto [Idx, V] : enumerate(VL)) {
auto *IE = cast<Instruction>(V);
for (auto [OpIdx, Ops] : enumerate(Operands))
Ops[Idx] = IE->getOperand(OpIdx);
}
return;
```
https://github.com/llvm/llvm-project/pull/200274
More information about the llvm-commits
mailing list