Skip to content

Commit 6d4ce4b

Browse files
committed
[RISCV][TTI] Add llvm.vp.select into canSplatOperand.
1 parent 4a3f46d commit 6d4ce4b

File tree

2 files changed

+568
-412
lines changed

2 files changed

+568
-412
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2404,6 +2404,7 @@ bool RISCVTTIImpl::canSplatOperand(Instruction *I, int Operand) const {
24042404
case Intrinsic::vp_ssub_sat:
24052405
case Intrinsic::usub_sat:
24062406
case Intrinsic::vp_usub_sat:
2407+
case Intrinsic::vp_select:
24072408
return Operand == 1;
24082409
// These intrinsics are commutative.
24092410
case Intrinsic::vp_add:

0 commit comments

Comments
 (0)