aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorStephen Long <63318318+steplong@users.noreply.github.com>2025-08-11 12:04:28 -0400
committerGitHub <noreply@github.com>2025-08-12 01:04:28 +0900
commit19ada02086c371dda75ec9704e50e1e28f1758bb (patch)
tree964c5105f6d8a265a267f8a8e9813ac438aa287f /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent40a469f79a0807a04bb805c749ec2ee723dd833c (diff)
downloadllvm-19ada02086c371dda75ec9704e50e1e28f1758bb.zip
llvm-19ada02086c371dda75ec9704e50e1e28f1758bb.tar.gz
llvm-19ada02086c371dda75ec9704e50e1e28f1758bb.tar.bz2
PreISelIntrinsicLowering: Lower llvm.log to a loop if scalable vec arg (#129744)
Similar to ab976a1, but for llvm.log.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 35bdb40..61ff2df 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -1924,6 +1924,8 @@ int TargetLoweringBase::IntrinsicIDToISD(Intrinsic::ID ID) const {
return ISD::FEXP;
case Intrinsic::exp2:
return ISD::FEXP2;
+ case Intrinsic::log:
+ return ISD::FLOG;
default:
return ISD::DELETED_NODE;
}