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