[Bug gdb/29104] GDB very slow running LLVM opt
msebor at gmail dot com
sourceware-bugzilla@sourceware.org
Fri Apr 29 18:16:30 GMT 2022
https://sourceware.org/bugzilla/show_bug.cgi?id=29104
--- Comment #2 from Martin Sebor <msebor at gmail dot com> ---
Like this? (The 25 second delay is after the Command execution time: line is
printed and before the rest of the output.)
$ gdb -nx -q /build/llvm-gcc/bin/opt
Reading symbols from /build/llvm-gcc/bin/opt...
(gdb) maint time 1
(gdb) r -S -instcombine x.ll
2022-04-29 12:10:34.658 - command started
Starting program: /ssd/build/llvm-gcc/bin/opt -S -instcombine x.ll
2022-04-29 12:10:34.737 - command finished
Command execution time: 0.070464 (cpu), 0.078909 (wall)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
; ModuleID = 'x.ll'
source_filename = "x.ll"
declare i64 @strlen(i8*)
define i64 @f(i8* %s) {
%n = call i64 @strlen(i8* noundef nonnull dereferenceable(1) %s)
ret i64 %n
}
[Inferior 1 (process 20983) exited normally]
(gdb) r -S -instcombine x.ll
2022-04-29 12:11:04.466 - command started
Starting program: /ssd/build/llvm-gcc/bin/opt -S -instcombine x.ll
2022-04-29 12:11:04.731 - command finished
Command execution time: 0.265862 (cpu), 0.265208 (wall)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
; ModuleID = 'x.ll'
source_filename = "x.ll"
declare i64 @strlen(i8*)
define i64 @f(i8* %s) {
%n = call i64 @strlen(i8* noundef nonnull dereferenceable(1) %s)
ret i64 %n
}
[Inferior 1 (process 20991) exited normally]
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list