From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4513B385781D; Fri, 29 Apr 2022 22:38:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4513B385781D From: "msebor at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/29104] GDB very slow running LLVM opt Date: Fri, 29 Apr 2022 22:38:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 11.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2022 22:38:44 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29104 --- Comment #7 from Martin Sebor --- GDB trunk indeed solves the problem! Thank you! $ time ~/bin/gdb-trunk/bin/gdb --batch -nx -q -ex "r -S -instcombine x.ll" /build/llvm-gcc/bin/opt This GDB supports auto-downloading debuginfo from the following URLs: Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal] Debuginfod has been disabled. To make this setting permanent, add 'set debuginfod enabled off' to .gdbini= t. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". ; ModuleID =3D 'x.ll' source_filename =3D "x.ll" declare i64 @strlen(i8*) define i64 @f(i8* %s) { %n =3D call i64 @strlen(i8* noundef nonnull dereferenceable(1) %s) ret i64 %n } [Inferior 1 (process 133664) exited normally] real 0m1.440s user 0m10.096s --=20 You are receiving this mail because: You are on the CC list for the bug.=