aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ExpandVectorPredication.cpp
diff options
context:
space:
mode:
authorSimeon K <5235180+simeonkr@users.noreply.github.com>2024-01-23 00:46:39 +0000
committerGitHub <noreply@github.com>2024-01-22 16:46:39 -0800
commit58cfd56356ed96690150245ca5bcf646d12edc7a (patch)
tree8ab1a66a74ad2aee15798c64d7e44b6e9abbf279 /llvm/lib/CodeGen/ExpandVectorPredication.cpp
parent029bfd6329aee0b60761998986dadba38e1de6f3 (diff)
downloadllvm-58cfd56356ed96690150245ca5bcf646d12edc7a.zip
llvm-58cfd56356ed96690150245ca5bcf646d12edc7a.tar.gz
llvm-58cfd56356ed96690150245ca5bcf646d12edc7a.tar.bz2
[VP][RISCV] Introduce llvm.vp.minimum/maximum intrinsics (#74840)
Although there are predicated versions of minnum/maxnum, the ones for minimum/maximum are currently missing. This patch introduces these intrinsics and implements their lowering to RISC-V.
Diffstat (limited to 'llvm/lib/CodeGen/ExpandVectorPredication.cpp')
-rw-r--r--llvm/lib/CodeGen/ExpandVectorPredication.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/ExpandVectorPredication.cpp b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
index 6c873a9a..0fe4cfe 100644
--- a/llvm/lib/CodeGen/ExpandVectorPredication.cpp
+++ b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
@@ -729,6 +729,8 @@ Value *CachingVPExpander::expandPredication(VPIntrinsic &VPI) {
case Intrinsic::vp_sqrt:
case Intrinsic::vp_maxnum:
case Intrinsic::vp_minnum:
+ case Intrinsic::vp_maximum:
+ case Intrinsic::vp_minimum:
return expandPredicationToFPCall(Builder, VPI,
VPI.getFunctionalIntrinsicID().value());
case Intrinsic::vp_load: