2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
* config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
vec_promote_demote cost to 1 for non-Power7 VSX architectures.
From-SVN: r276859
+2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
+
+ * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
+ vec_promote_demote cost to 1 for non-Power7 VSX architectures.
+
2019-10-10 Joseph Myers <joseph@codesourcery.com>
* ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
return 1;
case vec_promote_demote:
- if (TARGET_VSX)
- return 4;
- else
- return 1;
+ /* Power7 has only one permute/pack unit, make it a bit expensive. */
+ if (TARGET_VSX && rs6000_tune == PROCESSOR_POWER7)
+ return 4;
+ else
+ return 1;
case cond_branch_taken:
return 3;