@@ -65,7 +65,6 @@ bool VPRecipeBase::mayWriteToMemory() const {
65
65
case VPInstruction::FirstOrderRecurrenceSplice:
66
66
case VPInstruction::LogicalAnd:
67
67
case VPInstruction::PtrAdd:
68
- case VPInstruction::MergeUntilPivot:
69
68
return false ;
70
69
default :
71
70
return true ;
@@ -678,16 +677,7 @@ Value *VPInstruction::generate(VPTransformState &State) {
678
677
}
679
678
return NewPhi;
680
679
}
681
- case VPInstruction::MergeUntilPivot: {
682
- Value *Cond = State.get (getOperand (0 ));
683
- Value *OnTrue = State.get (getOperand (1 ));
684
- Value *OnFalse = State.get (getOperand (2 ));
685
- Value *Pivot = State.get (getOperand (3 ), /* IsScalar */ true );
686
- assert (Pivot->getType ()->isIntegerTy () && " Pivot should be an integer." );
687
- return Builder.CreateIntrinsic (Intrinsic::vp_merge, {OnTrue->getType ()},
688
- {Cond, OnTrue, OnFalse, Pivot}, nullptr ,
689
- Name);
690
- }
680
+
691
681
default :
692
682
llvm_unreachable (" Unsupported opcode for instruction" );
693
683
}
@@ -769,9 +759,6 @@ bool VPInstruction::onlyFirstLaneUsed(const VPValue *Op) const {
769
759
case VPInstruction::BranchOnCond:
770
760
case VPInstruction::ResumePhi:
771
761
return true ;
772
- case VPInstruction::MergeUntilPivot:
773
- // Pivot must be an integer.
774
- return Op == getOperand (3 );
775
762
};
776
763
llvm_unreachable (" switch should return" );
777
764
}
@@ -790,7 +777,6 @@ bool VPInstruction::onlyFirstPartUsed(const VPValue *Op) const {
790
777
case VPInstruction::BranchOnCount:
791
778
case VPInstruction::BranchOnCond:
792
779
case VPInstruction::CanonicalIVIncrementForPart:
793
- case VPInstruction::MergeUntilPivot:
794
780
return true ;
795
781
};
796
782
llvm_unreachable (" switch should return" );
@@ -857,9 +843,6 @@ void VPInstruction::print(raw_ostream &O, const Twine &Indent,
857
843
case VPInstruction::PtrAdd:
858
844
O << " ptradd" ;
859
845
break ;
860
- case VPInstruction::MergeUntilPivot:
861
- O << " merge-until-pivot" ;
862
- break ;
863
846
default :
864
847
O << Instruction::getOpcodeName (getOpcode ());
865
848
}
0 commit comments