]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add builtin_expect to predict that CPU supports cpuid to cpuid.h
authorJan Hubicka <jh@suse.cz>
Sun, 6 Aug 2023 20:53:14 +0000 (22:53 +0200)
committerJan Hubicka <jh@suse.cz>
Sun, 6 Aug 2023 20:53:14 +0000 (22:53 +0200)
commit1fc96cdd0a3df2ba90a04dc507a44a02fbebd1f3
tree19547a245d9e4e3c399c8db9b0c5bf66d8479c91
parente3e6db43640fadc9aa41c5459d43e5541d83f29a
Add builtin_expect to predict that CPU supports cpuid to cpuid.h

This is needed to avoid impossible threading update in vectorizer testcase,
but should also reflect reality on most CPUs we care about.

gcc/ChangeLog:

* config/i386/cpuid.h (__get_cpuid_count, __get_cpuid_max): Add
__builtin_expect that CPU likely supports cpuid.
gcc/config/i386/cpuid.h