]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/38824 (performance regression of sse code from 4.2/4.3)
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 12 Mar 2009 16:08:02 +0000 (16:08 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 12 Mar 2009 16:08:02 +0000 (09:08 -0700)
2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>

PR target/38824
* config/i386/i386.md: Compare REGNO on the new peephole2
patterns.

From-SVN: r144817

gcc/ChangeLog
gcc/config/i386/i386.md

index e59756b5aaaea2ffdeedd2e6c4a2a7602e3c6668..92f167901f46e64fdab99fbfcdf48b8a19f21c0c 100644 (file)
@@ -1,3 +1,9 @@
+2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/38824
+       * config/i386/i386.md: Compare REGNO on the new peephole2
+       patterns.
+
 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR debug/39432
index 761a5e70c680095c722d19221038a3554358c086..d68d0c832394c784ba3b64b0db883aad80bdd1d5 100644 (file)
                      [(match_dup 0)
                       (match_operand:SI 2 "memory_operand" "")]))
               (clobber (reg:CC FLAGS_REG))])]
-  "operands[0] != operands[1]
+  "REGNO (operands[0]) != REGNO (operands[1])
    && GENERAL_REGNO_P (REGNO (operands[0]))
    && GENERAL_REGNO_P (REGNO (operands[1]))"
   [(set (match_dup 0) (match_dup 4))
                    (match_operator 3 "commutative_operator"
                      [(match_dup 0)
                       (match_operand 2 "memory_operand" "")]))]
-  "operands[0] != operands[1]
+  "REGNO (operands[0]) != REGNO (operands[1])
    && ((MMX_REG_P (operands[0]) && MMX_REG_P (operands[1])) 
        || (SSE_REG_P (operands[0]) && SSE_REG_P (operands[1])))"
   [(set (match_dup 0) (match_dup 2))