@@ -63,7 +63,6 @@ bool VPRecipeBase::mayWriteToMemory() const {
63
63
case VPInstruction::FirstOrderRecurrenceSplice:
64
64
case VPInstruction::LogicalAnd:
65
65
case VPInstruction::PtrAdd:
66
- case VPInstruction::MergeUntilPivot:
67
66
return false ;
68
67
default :
69
68
return true ;
@@ -673,16 +672,7 @@ Value *VPInstruction::generate(VPTransformState &State) {
673
672
}
674
673
return NewPhi;
675
674
}
676
- case VPInstruction::MergeUntilPivot: {
677
- Value *Cond = State.get (getOperand (0 ));
678
- Value *OnTrue = State.get (getOperand (1 ));
679
- Value *OnFalse = State.get (getOperand (2 ));
680
- Value *Pivot = State.get (getOperand (3 ), /* IsScalar */ true );
681
- assert (Pivot->getType ()->isIntegerTy () && " Pivot should be an integer." );
682
- return Builder.CreateIntrinsic (Intrinsic::vp_merge, {OnTrue->getType ()},
683
- {Cond, OnTrue, OnFalse, Pivot}, nullptr ,
684
- Name);
685
- }
675
+
686
676
default :
687
677
llvm_unreachable (" Unsupported opcode for instruction" );
688
678
}
@@ -763,9 +753,6 @@ bool VPInstruction::onlyFirstLaneUsed(const VPValue *Op) const {
763
753
case VPInstruction::BranchOnCond:
764
754
case VPInstruction::ResumePhi:
765
755
return true ;
766
- case VPInstruction::MergeUntilPivot:
767
- // Pivot must be an integer.
768
- return Op == getOperand (3 );
769
756
};
770
757
llvm_unreachable (" switch should return" );
771
758
}
@@ -784,7 +771,6 @@ bool VPInstruction::onlyFirstPartUsed(const VPValue *Op) const {
784
771
case VPInstruction::BranchOnCount:
785
772
case VPInstruction::BranchOnCond:
786
773
case VPInstruction::CanonicalIVIncrementForPart:
787
- case VPInstruction::MergeUntilPivot:
788
774
return true ;
789
775
};
790
776
llvm_unreachable (" switch should return" );
@@ -851,9 +837,6 @@ void VPInstruction::print(raw_ostream &O, const Twine &Indent,
851
837
case VPInstruction::PtrAdd:
852
838
O << " ptradd" ;
853
839
break ;
854
- case VPInstruction::MergeUntilPivot:
855
- O << " merge-until-pivot" ;
856
- break ;
857
840
default :
858
841
O << Instruction::getOpcodeName (getOpcode ());
859
842
}
0 commit comments