[llvm] [InstCombine] Treat `asin`, `asinh`, `atan`, `atan2` and `cbrt` as odd-functions (PR #227336)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 07:48:54 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-transforms

Author: 伍浩宇 (suogesi)

<details>
<summary>Changes</summary>

Add `asin`, `asinh`, `atan`, `atan2` and `cbrt` into the odd-functions list. They should be treated as odd-functions now.

For #<!-- -->227011

---
Full diff: https://github.com/llvm/llvm-project/pull/227336.diff


2 Files Affected:

- (modified) llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp (+20) 
- (modified) llvm/test/Transforms/InstCombine/math-odd-even-parity.ll (+85-2) 


``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````

</details>


https://github.com/llvm/llvm-project/pull/227336


More information about the llvm-commits mailing list