[llvm] [VPlan] Dissolve replicate regions with vector live-outs. (PR #189022)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 4 10:28:38 PDT 2026
================
@@ -571,6 +572,12 @@ Value *VPInstruction::generate(VPTransformState &State) {
Value *Idx = State.get(getOperand(1), /*IsScalar=*/true);
return Builder.CreateExtractElement(Vec, Idx, Name);
}
+ case Instruction::InsertElement: {
+ Value *Vec = State.get(getOperand(0));
----------------
ayalz wrote:
```suggestion
assert(State.VF.isVector() && "Only insert elements into vectors");
Value *Vec = State.get(getOperand(0));
```
https://github.com/llvm/llvm-project/pull/189022
More information about the llvm-commits
mailing list