File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -569,8 +569,9 @@ class VPIntrinsic : public IntrinsicInst {
569
569
// / The llvm.vp.* intrinsics for this instruction Opcode
570
570
static Intrinsic::ID getForOpcode (unsigned OC);
571
571
572
- // / The llvm.vp.* intrinsics for this intrinsic ID.
573
- static Intrinsic::ID getForIntrinsic (Intrinsic::ID);
572
+ // / The llvm.vp.* intrinsics for this intrinsic ID \p Id. Return \p Id if it
573
+ // / is already a VP intrinsic.
574
+ static Intrinsic::ID getForIntrinsic (Intrinsic::ID Id);
574
575
575
576
// Whether \p ID is a VP intrinsic ID.
576
577
static bool isVPIntrinsic (Intrinsic::ID);
Original file line number Diff line number Diff line change @@ -600,6 +600,9 @@ Intrinsic::ID VPIntrinsic::getForOpcode(unsigned IROPC) {
600
600
}
601
601
602
602
Intrinsic::ID VPIntrinsic::getForIntrinsic (Intrinsic::ID Id) {
603
+ if (isVPIntrinsic (Id))
604
+ return Id;
605
+
603
606
switch (Id) {
604
607
default :
605
608
break ;
You can’t perform that action at this time.
0 commit comments