[PATCH, i386]: Committed: Merge TARGET_SSE4_2 and TARGET_ABM handling of x86_popcnt variable
Uros Bizjak
ubizjak@gmail.com
Fri Jun 8 16:34:00 GMT 2007
Hello!
Just a microoptimization, tested on i686-pc-linux-gnu.
2007-06-08 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
TARGET_ABM handling of x86_popcnt variable.
Uros.
Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c (revision 125566)
+++ config/i386/i386.c (working copy)
@@ -2267,12 +2267,9 @@ override_options (void)
if (!TARGET_80387)
target_flags |= MASK_NO_FANCY_MATH_387;
- /* Turn on SSE4.1 builtins and popcnt instruction for -msse4.2. */
+ /* Turn on SSE4.1 builtins for -msse4.2. */
if (TARGET_SSE4_2)
- {
- ix86_isa_flags |= OPTION_MASK_ISA_SSE4_1;
- x86_popcnt = true;
- }
+ ix86_isa_flags |= OPTION_MASK_ISA_SSE4_1;
/* Turn on SSSE3 builtins for -msse4.1. */
if (TARGET_SSE4_1)
@@ -2305,8 +2302,8 @@ override_options (void)
if (TARGET_3DNOW)
ix86_isa_flags |= OPTION_MASK_ISA_MMX;
- /* Turn on POPCNT builtins for -mabm. */
- if (TARGET_ABM)
+ /* Turn on popcnt instruction for -msse4.2 or -mabm. */
+ if (TARGET_SSE4_2 || TARGET_ABM)
x86_popcnt = true;
/* Validate -mpreferred-stack-boundary= value, or provide default.
More information about the Gcc-patches
mailing list