[llvm] [InstCombine] Add support for Instruction combining of hyperbolic functions (PR #173730)
Kshitij Paranjape via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 30 00:03:42 PST 2025
================
@@ -3074,6 +3074,33 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
}
break;
}
+ case Intrinsic::cosh: {
+ Value *X;
+ if (match(II->getArgOperand(0), m_OneUse(m_FNeg(m_Value(X))))) {
----------------
kshitijvp wrote:
Done
https://github.com/llvm/llvm-project/pull/173730
More information about the llvm-commits
mailing list