* config/i386/i386-features.c
authorUros Bizjak <ubizjak@gmail.com>
Wed, 28 Aug 2019 15:09:51 +0000 (17:09 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 28 Aug 2019 15:09:51 +0000 (17:09 +0200)
(general_scalar_chain::compute_convert_gain):
Correct cost for double-word shifts.
(general_scalar_to_vector_candidate_p): Reject count operands
greater or equal to mode bitsize.

From-SVN: r274994

gcc/ChangeLog
gcc/config/i386/i386.c

index 525cd90ed509027634ab8f3453975460a2a30718..561bbcbaeea96ec069dd17bd80e2306c74cb3f63 100644 (file)
@@ -1,3 +1,11 @@
+2019-08-28  Uroš Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386-features.c
+       (general_scalar_chain::compute_convert_gain):
+       Correct cost for double-word shifts.
+       (general_scalar_to_vector_candidate_p): Reject count operands
+       greater or equal to mode bitsize.
+
 2019-08-28  Martin Jambor  <mjambor@suse.cz>
 
        PR ipa/91468
index f3b3a9a326fdb1c35155586c9f0e8d64e77a09b9..d2d84eb116638bc45e92637c58a40bbee07b3e59 100644 (file)
@@ -18617,9 +18617,9 @@ ix86_register_move_cost (machine_mode mode, reg_class_t class1_i,
        where integer modes in SSE registers are not tieable
        because of missing QImode and HImode moves to, from or between
        MMX/SSE registers.  */
-    return MAX (8, SSE_CLASS_P (class1)
-               ? ix86_cost->hard_register.sse_to_integer
-               : ix86_cost->hard_register.integer_to_sse);
+    return (SSE_CLASS_P (class1)
+           ? ix86_cost->hard_register.sse_to_integer
+           : ix86_cost->hard_register.integer_to_sse);
 
   if (MAYBE_FLOAT_CLASS_P (class1))
     return ix86_cost->hard_register.fp_move;