[libvirt] [PATCH] tests: improve build time for qemuxml2argvtest

Ján Tomko jtomko at redhat.com
Wed Nov 27 19:38:39 UTC 2019

On Wed, Nov 27, 2019 at 04:22:42PM +0000, Daniel P. Berrangé wrote:
>On Fedora 31 with GCC 9.2.1, compiling qemuxml2argvtest takes
>about 36 seconds since
>  commit 30c6d99209cd36bba8e14795622f658827698522
>  Author: Jiri Denemark <jdenemar at redhat.com>
>  Date:   Thu Oct 24 17:51:42 2019 +0200
>    qemuxml2argvtest: Update host arch for DO_TEST*ARCH* tests
>The optimizer is hitting some pathelogical performance behaviour due to


>the high number of branches in the mymain() method.

Missing bugzilla link:

>Pushing the branch tests down into the testCompareXMLToArgv method
>brings the compile time down to 3 seconds.

-fno-var-tracking-assignments brings it down even more for me

Can we turn the flag off for tests?


>Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> tests/qemuxml2argvtest.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20191127/013adbca/attachment-0001.sig>

More information about the libvir-list mailing list