aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ExpandVectorPredication.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-06-21 08:33:40 +0200
committerNikita Popov <npopov@redhat.com>2024-06-21 08:34:04 +0200
commitf2f18459d4e77e323b08971cf9d42b3574421fa7 (patch)
treee56a13ab5961640f6ad60116218b4e43d9e085cf /llvm/lib/CodeGen/ExpandVectorPredication.cpp
parent12c0281f8c73bc1aa20d1517357e0e12c3f8bb4e (diff)
downloadllvm-f2f18459d4e77e323b08971cf9d42b3574421fa7.zip
llvm-f2f18459d4e77e323b08971cf9d42b3574421fa7.tar.gz
llvm-f2f18459d4e77e323b08971cf9d42b3574421fa7.tar.bz2
Revert "Intrinsic: introduce minimumnum and maximumnum (#93841)"
As far as I can tell, this pull request was not approved, and did not go through an RFC on discourse. This reverts commit 89881480030f48f83af668175b70a9798edca2fb. This reverts commit 225d8fc8eb24fb797154c1ef6dcbe5ba033142da.
Diffstat (limited to 'llvm/lib/CodeGen/ExpandVectorPredication.cpp')
-rw-r--r--llvm/lib/CodeGen/ExpandVectorPredication.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/llvm/lib/CodeGen/ExpandVectorPredication.cpp b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
index c8a9f90..dc35f33 100644
--- a/llvm/lib/CodeGen/ExpandVectorPredication.cpp
+++ b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
@@ -331,9 +331,7 @@ Value *CachingVPExpander::expandPredicationToFPCall(
return NewOp;
}
case Intrinsic::maxnum:
- case Intrinsic::minnum:
- case Intrinsic::maximumnum:
- case Intrinsic::minimumnum: {
+ case Intrinsic::minnum: {
Value *Op0 = VPI.getOperand(0);
Value *Op1 = VPI.getOperand(1);
Function *Fn = Intrinsic::getDeclaration(
@@ -500,18 +498,6 @@ CachingVPExpander::expandPredicationInReduction(IRBuilder<> &Builder,
Reduction =
Builder.CreateBinaryIntrinsic(Intrinsic::minimum, Reduction, Start);
break;
- case Intrinsic::vp_reduce_fmaximumnum:
- Reduction = Builder.CreateFPMaximumReduce(RedOp);
- transferDecorations(*Reduction, VPI);
- Reduction =
- Builder.CreateBinaryIntrinsic(Intrinsic::maximumnum, Reduction, Start);
- break;
- case Intrinsic::vp_reduce_fminimumnum:
- Reduction = Builder.CreateFPMinimumReduce(RedOp);
- transferDecorations(*Reduction, VPI);
- Reduction =
- Builder.CreateBinaryIntrinsic(Intrinsic::minimumnum, Reduction, Start);
- break;
case Intrinsic::vp_reduce_fadd:
Reduction = Builder.CreateFAddReduce(Start, RedOp);
break;
@@ -769,8 +755,6 @@ Value *CachingVPExpander::expandPredication(VPIntrinsic &VPI) {
case Intrinsic::vp_minnum:
case Intrinsic::vp_maximum:
case Intrinsic::vp_minimum:
- case Intrinsic::vp_maximumnum:
- case Intrinsic::vp_minimumnum:
case Intrinsic::vp_fma:
case Intrinsic::vp_fmuladd:
return expandPredicationToFPCall(Builder, VPI,