From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6D3333858C52; Tue, 26 Apr 2022 07:37:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D3333858C52 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/105384] compilation never (?) finishes with __builtin_yn{,f,l} at -O and above Date: Tue, 26 Apr 2022 07:37:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2022 07:37:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105384 --- Comment #6 from Zdenek Sojka --- (In reply to Richard Biener from comment #5) > The bessel functions are known to take a lot of time, there are (fixed?) > older bugreports about those and we do take some measures to speed up the > computation. > We might want to give up the idea on producing correctly rounded results = and > simply invoke the host library routines here ... $ cat testcase.c=20 double foo(double a, double b) { return __builtin_yn(a, b); } double bar(double a, double b) { return __builtin_jn(a, b); } int main() { foo(0x220f0985, 0xbc7bc234); bar(4292622104, 0xff00ff00ff00ff00); return 0; } $ gcc testcase.c -lm -O1 $ time ./a.out=20 real 0m2.825s user 0m2.815s sys 0m0.010s It takes quite some time at runtime, but the compilation time evaluation ta= kes several magnitudes more time (PR105384) and/or memory (PR105385).=