[all-commits] [llvm/llvm-project] d3b23d: [libc][math] Fix fast path with small inputs for d...
Eric Ross via All-commits
all-commits at lists.llvm.org
Wed Sep 30 02:08:05 PDT 2026
Branch: refs/heads/release/23.x
Home: https://github.com/llvm/llvm-project
Commit: d3b23d8b0c191783734c7bf1d5f0f77464412760
https://github.com/llvm/llvm-project/commit/d3b23d8b0c191783734c7bf1d5f0f77464412760
Author: lntue <lntue at google.com>
Date: 2026-09-30 (Wed, 30 Sep 2026)
Changed paths:
M libc/src/__support/math/cos.h
M libc/src/__support/math/sin.h
Log Message:
-----------
[libc][math] Fix fast path with small inputs for double precision sin/cos. (#221012)
https://github.com/llvm/llvm-project/pull/201748 added a fast branch for
small inputs to double precision sin/cos,
but the Ziv error bounds were too tight.
Fixes in this PR:
- Updating the Ziv error bounds to accommodate rounding errors.
- Copy binary64 sin/cos hard-to-round cases from the CORE-MATH project.
- Add python tool to convert textual hard to round cases to binary
files, and add those binary files.
- Add hard-to-round tests for double precision sin/cos in the exhaustive
test folder.
Fixes https://github.com/llvm/llvm-project/issues/220934.
Assisted-by: Gemini is used to generate the worst-case text-to-binary
tool.
(cherry picked from commit dbac421efa19a5901f2511958040e18e8188b112)
Commit: 9669f0a31161aee76676076f71ba1b1c40d9f3bf
https://github.com/llvm/llvm-project/commit/9669f0a31161aee76676076f71ba1b1c40d9f3bf
Author: Ying Huang <ying.huang at oss.cipunited.com>
Date: 2026-09-30 (Wed, 30 Sep 2026)
Changed paths:
M compiler-rt/lib/builtins/clear_cache.c
Log Message:
-----------
[Mips] Restrict rdhwr+synci to Linux on MIPS R6 (#222566)
The rdhwr instruction reads synci_step, which is not allowed by OpenBSD
and is not available for ISA older than mips{32/64}r2.
Restrict the rdhwr+synci to Linux on MIPS R6 and fall back to
_flush_cache on all other MIPS targets including OpenBSD and pre-R6
Linux.
Fix #219896.
(cherry picked from commit cff0e6b5dc60cce76e85f0d9e9af537e76759315)
Commit: 1f2d65a9e7d7830ab68139cd52a149b4825b7ed4
https://github.com/llvm/llvm-project/commit/1f2d65a9e7d7830ab68139cd52a149b4825b7ed4
Author: Jonathan Cohen <joncoh at apple.com>
Date: 2026-09-30 (Wed, 30 Sep 2026)
Changed paths:
M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
M llvm/test/CodeGen/AArch64/aarch64-reassociate-accumulators.ll
Log Message:
-----------
[AArch64] Fix accumulator chain opcode for SABAv2i32 (#226062)
A typo in `AArch64InstrInfo::getAccumulationStartOpcode` caused
`SABAv2i32` to be matched instead of `SABDv2i32`.
Fixes #225984
(cherry picked from commit 7d16aafe51fdbf03da4cf08c7785d91faecc0d27)
Commit: 21ef2ddb806006eba611b8a769ae72e5f86f9418
https://github.com/llvm/llvm-project/commit/21ef2ddb806006eba611b8a769ae72e5f86f9418
Author: ZERICO2005 <71151164+ZERICO2005 at users.noreply.github.com>
Date: 2026-09-30 (Wed, 30 Sep 2026)
Changed paths:
M llvm/lib/Support/KnownFPClass.cpp
M llvm/test/Transforms/Attributor/nofpclass-trig.ll
M llvm/unittests/CodeGen/GlobalISel/KnownFPClassTest.cpp
Log Message:
-----------
[KnownFPClass] Do not propagate non-NaN through `asin` and `acos` (#213812)
`KnownFPClass` incorrectly assumed that a non-NaN input to `asin` or
`acos` implies a non-NaN result. However, both `asin` and `acos` can
return NaN from a finite input when `|x| > 1.0`, such as `asin(2.0)` or
`acos(2.0)`.
I have fixed this by removing the calls to
`Known.propagateNaN(KnownSrc)`, which incorrectly propagated that
`asin(non-NaN) == non-NaN`.
I discovered this while working on
https://github.com/llvm/llvm-project/issues/211686. The same issue was
previously noted in a post-merge review comment on
https://github.com/llvm/llvm-project/pull/190609#discussion_r3632814122
AI disclosure:
I used OpenAI Codex (GPT-5.6-sol) to help generate the test updates,
which I reviewed and tested locally.
(cherry picked from commit 0130acf8430b64a8da97217ea57bea64abb51685)
Compare: https://github.com/llvm/llvm-project/compare/dfb1297f7c3f...21ef2ddb8060
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list