This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: SSE conversion optimization
On Sun, Sep 09, 2007 at 01:10:14PM -0700, H.J. Lu wrote:
> > --- config/i386/i386.h (revision 128300)
> > +++ config/i386/i386.h (working copy)
> > @@ -257,6 +257,7 @@ enum ix86_tune_indices {
> > X86_TUNE_MOVE_M1_VIA_OR,
> > X86_TUNE_NOT_UNPAIRABLE,
> > X86_TUNE_NOT_VECTORMODE,
> > + X86_USE_VECTOR_CONVERTS,
>
> Would you mind using X86_TUNE_USE_VECTOR_CONVERTS to make it
> consistent with other tuning options?
>
> >
> > X86_TUNE_LAST
> > };
>
> Thanks.
>
>
This is the proposed patch.
H.J.
----
2007-09-09 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.h (ix86_tune_indices): Rename
X86_USE_VECTOR_CONVERTS to X86_TUNE_USE_VECTOR_CONVERTS.
(TARGET_USE_VECTOR_CONVERTS): Updated.
* config/i386/i386.c: Likewise.
--- gcc/config/i386/i386.c.name 2007-09-09 12:58:27.000000000 -0700
+++ gcc/config/i386/i386.c 2007-09-09 13:13:02.000000000 -0700
@@ -1259,8 +1259,8 @@ unsigned int ix86_tune_features[X86_TUNE
replacement is long decoded, so this split helps here as well. */
m_K6,
- /* X86_USE_VECTOR_CONVERTS: Preffer vector packed SSE conversion from
- integer to FP. */
+ /* X86_TUNE_USE_VECTOR_CONVERTS: Preffer vector packed SSE conversion
+ from integer to FP. */
m_AMDFAM10,
};
--- gcc/config/i386/i386.h.name 2007-09-09 12:58:27.000000000 -0700
+++ gcc/config/i386/i386.h 2007-09-09 13:12:56.000000000 -0700
@@ -257,7 +257,7 @@ enum ix86_tune_indices {
X86_TUNE_MOVE_M1_VIA_OR,
X86_TUNE_NOT_UNPAIRABLE,
X86_TUNE_NOT_VECTORMODE,
- X86_USE_VECTOR_CONVERTS,
+ X86_TUNE_USE_VECTOR_CONVERTS,
X86_TUNE_LAST
};
@@ -338,7 +338,7 @@ extern unsigned int ix86_tune_features[X
#define TARGET_MOVE_M1_VIA_OR ix86_tune_features[X86_TUNE_MOVE_M1_VIA_OR]
#define TARGET_NOT_UNPAIRABLE ix86_tune_features[X86_TUNE_NOT_UNPAIRABLE]
#define TARGET_NOT_VECTORMODE ix86_tune_features[X86_TUNE_NOT_VECTORMODE]
-#define TARGET_USE_VECTOR_CONVERTS ix86_tune_features[X86_USE_VECTOR_CONVERTS]
+#define TARGET_USE_VECTOR_CONVERTS ix86_tune_features[X86_TUNE_USE_VECTOR_CONVERTS]
/* Feature tests against the various architecture variations. */
enum ix86_arch_indices {