Patchwork [i386] : Simplify movdf_internal insn condition a bit

login
register
mail settings
Submitter Uros Bizjak
Date May 15, 2011, 5:43 p.m.
Message ID <BANLkTiktRu_N_ywYvhLh2TZRq0qCAdG5Gw@mail.gmail.com>
Download mbox | patch
Permalink /patch/95657/
State New
Headers show

Comments

Uros Bizjak - May 15, 2011, 5:43 p.m.
Hello!

optimize_size clears TARGET_INTEGER_DFMODE_MOVES, so we can simplify
movdf_internal insn condition a bit.

2011-05-15  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.md (*movdf_internal): Simplify insn condition.

Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN.

Uros.

Patch

Index: config/i386/i386.md
===================================================================
--- config/i386/i386.md	(revision 173771)
+++ config/i386/i386.md	(working copy)
@@ -3050,15 +3050,14 @@ 
    && (!can_create_pseudo_p ()
        || (ix86_cmodel == CM_MEDIUM || ix86_cmodel == CM_LARGE)
        || GET_CODE (operands[1]) != CONST_DOUBLE
-       || (optimize_function_for_size_p (cfun)
+       || (!TARGET_INTEGER_DFMODE_MOVES
 	   && ((!(TARGET_SSE2 && TARGET_SSE_MATH)
 		&& standard_80387_constant_p (operands[1]) > 0)
 	       || (TARGET_SSE2 && TARGET_SSE_MATH
 		   && standard_sse_constant_p (operands[1])))
 	   && !memory_operand (operands[0], DFmode))
        || ((TARGET_INTEGER_DFMODE_MOVES
-	    || (optimize_function_for_size_p (cfun)
-	        && !TARGET_MEMORY_MISMATCH_STALL))
+	    || !TARGET_MEMORY_MISMATCH_STALL)
 	   && memory_operand (operands[0], DFmode)))"
 {
   switch (which_alternative)