@@ -556,10 +556,6 @@ class InnerLoopVectorizer {
556
556
const VPIteration &Instance,
557
557
VPTransformState &State);
558
558
559
- // / Construct the vector value of a scalarized value \p V one lane at a time.
560
- void packScalarIntoVectorValue (VPValue *Def, const VPIteration &Instance,
561
- VPTransformState &State);
562
-
563
559
// / Try to vectorize interleaved access group \p Group with the base address
564
560
// / given in \p Addr, optionally masking the vector operations if \p
565
561
// / BlockInMask is non-null. Use \p State to translate given VPValues to IR
@@ -2524,17 +2520,6 @@ static bool isIndvarOverflowCheckKnownFalse(
2524
2520
return false ;
2525
2521
}
2526
2522
2527
- void InnerLoopVectorizer::packScalarIntoVectorValue (VPValue *Def,
2528
- const VPIteration &Instance,
2529
- VPTransformState &State) {
2530
- Value *ScalarInst = State.get (Def, Instance);
2531
- Value *VectorValue = State.get (Def, Instance.Part );
2532
- VectorValue = Builder.CreateInsertElement (
2533
- VectorValue, ScalarInst,
2534
- Instance.Lane .getAsRuntimeExpr (State.Builder , VF));
2535
- State.set (Def, VectorValue, Instance.Part );
2536
- }
2537
-
2538
2523
// Return whether we allow using masked interleave-groups (for dealing with
2539
2524
// strided loads/stores that reside in predicated blocks, or for dealing
2540
2525
// with gaps).
@@ -9619,7 +9604,7 @@ void VPReplicateRecipe::execute(VPTransformState &State) {
9619
9604
VectorType::get (UI->getType (), State.VF ));
9620
9605
State.set (this , Poison, State.Instance ->Part );
9621
9606
}
9622
- State.ILV -> packScalarIntoVectorValue (this , *State.Instance , State );
9607
+ State.packScalarIntoVectorValue (this , *State.Instance );
9623
9608
}
9624
9609
return ;
9625
9610
}
@@ -9929,7 +9914,7 @@ Value *VPTransformState::get(VPValue *Def, unsigned Part) {
9929
9914
Value *Undef = PoisonValue::get (VectorType::get (LastInst->getType (), VF));
9930
9915
set (Def, Undef, Part);
9931
9916
for (unsigned Lane = 0 ; Lane < VF.getKnownMinValue (); ++Lane)
9932
- ILV-> packScalarIntoVectorValue (Def, {Part, Lane}, * this );
9917
+ packScalarIntoVectorValue (Def, {Part, Lane});
9933
9918
VectorValue = get (Def, Part);
9934
9919
}
9935
9920
Builder.restoreIP (OldIP);
0 commit comments