Skip to content

Commit 372d3fb

Browse files
authored
[CodeGen] Remove shouldExpandPartialReductionIntrinsic() hook (NFC) (#161498)
This is unused. Targets can lower/expand the `PARTIAL_REDUCE_*` ISD nodes.
1 parent 3a34710 commit 372d3fb

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

llvm/include/llvm/CodeGen/TargetLowering.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -480,13 +480,6 @@ class LLVM_ABI TargetLoweringBase {
480480
return true;
481481
}
482482

483-
/// Return true if the @llvm.vector.partial.reduce.* intrinsic
484-
/// should be expanded using generic code in SelectionDAGBuilder.
485-
virtual bool
486-
shouldExpandPartialReductionIntrinsic(const IntrinsicInst *I) const {
487-
return true;
488-
}
489-
490483
/// Return true if the @llvm.get.active.lane.mask intrinsic should be expanded
491484
/// using generic code in SelectionDAGBuilder.
492485
virtual bool shouldExpandGetActiveLaneMask(EVT VT, EVT OpVT) const {

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8103,10 +8103,6 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
81038103
return;
81048104
}
81058105
case Intrinsic::vector_partial_reduce_add: {
8106-
if (!TLI.shouldExpandPartialReductionIntrinsic(cast<IntrinsicInst>(&I))) {
8107-
visitTargetIntrinsic(I, Intrinsic);
8108-
return;
8109-
}
81108106
SDValue Acc = getValue(I.getOperand(0));
81118107
SDValue Input = getValue(I.getOperand(1));
81128108
setValue(&I,

0 commit comments

Comments
 (0)