This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Use optimize_insn_for_size_p instead of optimize_size


Hi,

I think we should use optimize_insn_for_size_p instead of optimize_size.
Tested on Linux/Intel64. OK for trunk?

Thanks.


H.J.
---
2009-05-05  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.md: Use optimize_insn_for_size_p instead
	of optimize_size.
	* config/i386/sse.md (divv8sf3): Likewise.
	(sqrtv8sf2): Likewise.

Index: gcc/config/i386/i386.md
===================================================================
--- gcc/config/i386/i386.md	(revision 5853)
+++ gcc/config/i386/i386.md	(working copy)
@@ -21213,7 +21213,7 @@
 	(match_operator 1 "compare_operator"
 	  [(match_operand 2 "register_operand" "")
 	   (match_operand 3 "const_int_operand" "")]))]
-  "(((!TARGET_FUSE_CMP_AND_BRANCH || optimize_size)
+  "(((!TARGET_FUSE_CMP_AND_BRANCH || optimize_insn_for_size_p ())
      && incdec_operand (operands[3], GET_MODE (operands[3])))
     || (!TARGET_FUSE_CMP_AND_BRANCH
 	&& INTVAL (operands[3]) == 128))
Index: gcc/config/i386/sse.md
===================================================================
--- gcc/config/i386/sse.md	(revision 5853)
+++ gcc/config/i386/sse.md	(working copy)
@@ -649,7 +664,7 @@
 {
   ix86_fixup_binary_operands_no_copy (DIV, V8SFmode, operands);
 
-  if (TARGET_SSE_MATH && TARGET_RECIP && !optimize_size
+  if (TARGET_SSE_MATH && TARGET_RECIP && !optimize_insn_for_size_p ()
       && flag_finite_math_only && !flag_trapping_math
       && flag_unsafe_math_optimizations)
     {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]