1 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
3 * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
4 (conditional moves with memory inputs splitters): Ditto.
5 * config/i386/sse.md (one_cmpl<mode>2): Simplify.
7 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
9 * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
12 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
14 * config/rs6000/rs6000-overload.def: Add remaining overloads.
16 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
18 * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
20 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
22 * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
23 crypto, and htm stanzas.
25 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
27 * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
29 2021-08-26 Martin Sebor <msebor@redhat.com>
31 * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
32 (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
33 (warn_uninitialized_vars): Same. Reduce visibility of locals.
34 (warn_uninitialized_phi): Same.
36 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
38 * tree-ssa-ccp.c (get_individual_bits): Helper function to
39 extract the individual bits from a widest_int constant (mask).
40 (gray_code_bit_flips): New read-only table for effiently
41 enumerating permutations/combinations of bits.
42 (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
43 by unknown counts that are guaranteed less than the target
44 precision and four or fewer unknown bits by enumeration.
45 [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
46 enumeration under the same conditions. Handle remaining
47 shifts as a mask based upon the minimum possible shift value.
49 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
50 Richard Biener <rguenther@suse.de>
52 * match.pd (shift transformations): Remove a redundant
53 !POINTER_TYPE_P check.
55 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
58 * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
59 Set all_regs to true in the call to replace_rtx.
61 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
63 * ipa-modref-tree.c (test_insert_search_collapse): Update test.
64 * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
65 hiting --param modref-max-refs limit.
66 (modref_tree:insert_base): Be smarter when hitting
67 --param modref-max-bases limit. Add new parameter REF.
68 (modref_tree:insert): Update.
69 (modref_tree:merge): Update.
70 * ipa-modref.c (read_modref_records): Update.
72 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
74 * params.opt: (modref-max-adjustments): Add full stop.
76 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
78 * ipa-modref-tree.h (modref_ref_node::verify): New member
80 (modref_ref_node::insert): Use it.
81 (modref_ref_node::try_mere_with): Fix off by one error.
83 2021-08-26 Martin Liska <mliska@suse.cz>
84 Stefan Kneifel <stefan.kneifel@bluewin.ch>
86 * cgraph.h (create_version_clone_with_body): Add new parameter.
87 * cgraphclones.c: Likewise.
88 * multiple_target.c (create_dispatcher_calls): Do not use
90 (create_target_clone): Likewise here.
92 2021-08-26 Jonathan Yong <10walls@gmail.com>
94 * doc/extend.texi: Add note about reserved priorities
95 to the constructor attribute.
97 2021-08-25 Martin Sebor <msebor@redhat.com>
99 * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
100 range table header alone.
101 * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
103 2021-08-25 Jan Hubicka <hubicka@ucw.cz>
105 * doc/invoke.texi: Document --param modref-max-adjustments.
106 * ipa-modref-tree.c (test_insert_search_collapse): Update.
107 (test_merge): Update.
108 * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
109 (modref_access_node::operator==): Fix handling of access ranges.
110 (modref_access_node::contains): Constify parameter; handle also
111 mismatched parm offsets.
112 (modref_access_node::update): New function.
113 (modref_access_node::merge): New function.
114 (unspecified_modref_access_node): Update constructor.
115 (modref_ref_node::insert_access): Add record_adjustments parameter;
117 (modref_ref_node::try_merge_with): New private function.
118 (modref_tree::insert): New record_adjustments parameter.
119 (modref_tree::merge): New record_adjustments parameter.
120 (modref_tree::copy_from): Update.
121 * ipa-modref.c (dump_access): Dump adjustments field.
122 (get_access): Update constructor.
123 (record_access): Update call of insert.
124 (record_access_lto): Update call of insert.
125 (merge_call_side_effects): Add record_adjustments parameter.
126 (get_access_for_fnspec): Update.
127 (process_fnspec): Update.
128 (analyze_call): Update.
129 (analyze_function): Update.
130 (read_modref_records): Update.
131 (ipa_merge_modref_summary_after_inlining): Update.
132 (propagate_unknown_call): Update.
133 (modref_propagate_in_scc): Update.
134 * params.opt (param-max-modref-adjustments=): New.
136 2021-08-25 Michael Meissner <meissner@linux.ibm.com>
138 * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
140 (xxspltiw_v4si): Use vecperm type attribute.
141 (xxspltiw_v4si_inst): Use vecperm type attribute.
142 (xxspltiw_v4sf_inst): Likewise.
143 (xxspltidp_v2df): Use vecperm type attribute. Use
144 UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
145 (xxspltidp_v2df_inst): Likewise.
146 (xxsplti32dx_v4si): Use vecperm type attribute.
147 (xxsplti32dx_v4si_inst): Likewise.
148 (xxsplti32dx_v4sf_inst): Likewise.
149 (xxblend_<mode>): Likewise.
151 (xxpermx_inst): Likewise.
154 2021-08-25 Lewis Hyatt <lhyatt@gmail.com>
157 * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
158 * diagnostic.c (diagnostic_initialize_input_context): New function.
159 * diagnostic.h (diagnostic_initialize_input_context): Declare.
160 * input.c (default_charset_callback): New function.
161 (file_cache::initialize_input_context): New function.
162 (file_cache_slot::create): Added ability to convert the input
163 according to the input context.
164 (file_cache::file_cache): Initialize the new input context.
165 (class file_cache_slot): Added new m_alloc_offset member.
166 (file_cache_slot::file_cache_slot): Initialize the new member.
167 (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
168 (file_cache_slot::maybe_grow): Likewise.
169 (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
170 (file_cache_slot::get_next_line): Likewise.
171 * input.h (class file_cache): Added input context member.
173 2021-08-25 Richard Biener <rguenther@suse.de>
175 PR tree-optimization/102046
176 * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
177 update ->any_pattern when swapping operands.
179 2021-08-25 Hongyu Wang <hongyu.wang@intel.com>
182 * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
183 (ix86_decompose_address): Remove retval check for ASHIFT,
184 allow non-canonical zero extend if AND mask covers ASHIFT
186 (ix86_legitimate_address_p): Adjust condition for decompose.
187 (ix86_rtx_costs): Adjust cost for lea with non-canonical
189 Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
191 2021-08-25 Jiufu Guo <guojiufu@linux.ibm.com>
193 PR tree-optimization/101145
194 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
196 (number_of_iterations_lt): Invoke above function.
197 (adjust_cond_for_loop_until_wrap):
198 Merge to number_of_iterations_until_wrap.
199 (number_of_iterations_cond): Update invokes for
200 adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
202 2021-08-25 konglin1 <lingling.kong@intel.com>
205 * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
207 (_mm512_mask_fpclass_ps_mask): Ditto.
209 2021-08-25 Kewen Lin <linkw@linux.ibm.com>
211 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
212 (vec_unpacku_hi_v8hi): Likewise.
213 (vec_unpacku_lo_v16qi): Likewise.
214 (vec_unpacku_lo_v8hi): Likewise.
215 (vec_unpacku_hi_<VP_small_lc>): New define_expand.
216 (vec_unpacku_lo_<VP_small_lc>): Likewise.
218 2021-08-24 David Edelsohn <dje.gcc@gmail.com>
220 * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
221 * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
222 * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
223 * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
225 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
228 * simplify-rtx.c (simplify_truncation): When comparing precisions
229 use "subreg_prec" variable, not "subreg_mode".
231 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
233 * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
236 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
238 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
239 various pointer type nodes.
240 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
241 values for various pointer types.
242 (ptr_V16QI_type_node): New macro.
243 (ptr_V1TI_type_node): New macro.
244 (ptr_V2DI_type_node): New macro.
245 (ptr_V2DF_type_node): New macro.
246 (ptr_V4SI_type_node): New macro.
247 (ptr_V4SF_type_node): New macro.
248 (ptr_V8HI_type_node): New macro.
249 (ptr_unsigned_V16QI_type_node): New macro.
250 (ptr_unsigned_V1TI_type_node): New macro.
251 (ptr_unsigned_V8HI_type_node): New macro.
252 (ptr_unsigned_V4SI_type_node): New macro.
253 (ptr_unsigned_V2DI_type_node): New macro.
254 (ptr_bool_V16QI_type_node): New macro.
255 (ptr_bool_V8HI_type_node): New macro.
256 (ptr_bool_V4SI_type_node): New macro.
257 (ptr_bool_V2DI_type_node): New macro.
258 (ptr_bool_V1TI_type_node): New macro.
259 (ptr_pixel_type_node): New macro.
260 (ptr_intQI_type_node): New macro.
261 (ptr_uintQI_type_node): New macro.
262 (ptr_intHI_type_node): New macro.
263 (ptr_uintHI_type_node): New macro.
264 (ptr_intSI_type_node): New macro.
265 (ptr_uintSI_type_node): New macro.
266 (ptr_intDI_type_node): New macro.
267 (ptr_uintDI_type_node): New macro.
268 (ptr_intTI_type_node): New macro.
269 (ptr_uintTI_type_node): New macro.
270 (ptr_long_integer_type_node): New macro.
271 (ptr_long_unsigned_type_node): New macro.
272 (ptr_float_type_node): New macro.
273 (ptr_double_type_node): New macro.
274 (ptr_long_double_type_node): New macro.
275 (ptr_dfloat64_type_node): New macro.
276 (ptr_dfloat128_type_node): New macro.
277 (ptr_ieee128_type_node): New macro.
278 (ptr_ibm128_type_node): New macro.
279 (ptr_vector_pair_type_node): New macro.
280 (ptr_vector_quad_type_node): New macro.
281 (ptr_long_long_integer_type_node): New macro.
282 (ptr_long_long_unsigned_type_node): New macro.
284 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
286 * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
287 and power9-64 stanzas.
289 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
290 Tom de Vries <tdevries@suse.de>
292 * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
293 * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
294 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
295 a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
296 * config/nvptx/t-nvptx (nvptx-c.o): New rule.
297 * config/nvptx/nvptx-c.c: New source file.
298 (nvptx_cpu_cpp_builtins): Move implementation here.
300 2021-08-24 Martin Sebor <msebor@redhat.com>
304 * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
305 the phrasing of a warning.
306 (check_access): Use the remaining size after subtracting any offset
307 rather than the whole object size.
308 * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
309 clear for any nonnull PHI argument.
310 (compute_objsize): Clear argument.
312 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
314 * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
316 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
318 * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
321 2021-08-24 Andrew MacLeod <amacleod@redhat.com>
323 * value-relation.cc (rr_transitive_table): New.
324 (relation_transitive): New.
325 (value_relation::swap): Remove.
326 (value_relation::apply_transitive): New.
327 (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
328 (relation_oracle::register_relation): Call register_transitives.
329 (relation_oracle::register_transitives): New.
330 * value-relation.h (relation_oracle): Add new temporary bitmap and
333 2021-08-24 H.J. Lu <hjl.tools@gmail.com>
336 * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
337 from integer to a pseudo vector register.
339 2021-08-24 Richard Biener <rguenther@suse.de>
341 PR tree-optimization/100089
342 * tree-vectorizer.h (vect_slp_bb): Rename to ...
343 (vect_slp_if_converted_bb): ... this and get the original
344 loop as new argument.
345 * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
346 pass original loop to vect_slp_if_converted_bb.
347 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
348 If orig_loop was passed scan the not vectorized stmts
349 for COND_EXPRs and force not profitable if found.
350 (vect_slp_region): Pass down all SLP instances to costing
351 if orig_loop was specified.
352 (vect_slp_bbs): Pass through orig_loop.
353 (vect_slp_bb): Rename to ...
354 (vect_slp_if_converted_bb): ... this and get the original
355 loop as new argument.
356 (vect_slp_function): Adjust.
358 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
361 * config/arm/arm.md (attribute arch): Add fix_vlldm.
362 (arch_enabled): Use it.
363 * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
364 use when erratum mitigation is needed.
366 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
369 * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
370 * doc/invoke.texi (Arm Options): Document it.
371 * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
372 (ALL_QUIRKS): Add quirk_vlldm.
373 (cortex-m33): Add quirk_vlldm.
374 (cortex-m35p, cortex-m55): Likewise.
375 * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
376 targetting an affected CPU and not explicitly controlled on
379 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
381 * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
382 (lazy_load_multiple_insn): Likewise.
384 2021-08-24 liuhongt <hongtao.liu@intel.com>
387 * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
388 Enable avx512 embedded broadcast.
389 (*<avx512>_vternlog<mode>_all): Ditto.
390 (<avx512>_vternlog<mode>_mask): Ditto.
392 2021-08-24 liuhongt <hongtao.liu@intel.com>
395 * config/i386/i386.c (ix86_rtx_costs): Define cost for
397 * config/i386/i386.h (STRIP_UNARY): New macro.
398 * config/i386/predicates.md (reg_or_notreg_operand): New
400 * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
401 (*<avx512>_vternlog<mode>_1): New pre_reload
402 define_insn_and_split.
403 (*<avx512>_vternlog<mode>_2): Ditto.
404 (*<avx512>_vternlog<mode>_3): Ditto.
405 (any_logic1,any_logic2): New code iterator.
406 (logic_op): New code attribute.
407 (ternlogsuffix): Extend to VNxDF and VNxSF.
409 2021-08-24 Richard Biener <rguenther@suse.de>
411 * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
412 * params.opt (--param vect-inner-loop-cost-factor): Adjust
414 * tree-vect-loop.c (vect_analyze_loop_form): Initialize
415 inner_loop_cost_factor to the minimum of the estimated number
416 of iterations of the inner loop and vect-inner-loop-cost-factor.
418 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
419 Richard Biener <rguenther@suse.de>
421 * config/i386/i386-features.c (compute_convert_gain): Provide
422 more accurate values for CONST_INT, when optimizing for size.
423 * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
424 * config/i386/i386.h (COSTS_N_BYTES): to here.
426 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
427 Jakub Jelinek <jakub@redhat.com>
430 * match.pd (shift transformations): Add an additional check for
431 !POINTER_TYPE_P in the recently added left shift transformation.
433 2021-08-24 liuhongt <hongtao.liu@intel.com>
435 PR tree-optimization/100089
436 * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
437 loop vectorizer when cost model is very-cheap.
439 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
441 * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
442 asprintf, which is not available on AIX.
444 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
446 * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
447 * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
449 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
451 * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
452 * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
454 * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
455 (rbtree.o): Likewise.
456 (rs6000-gen-builtins): Likewise.
457 (rs6000-builtins.c): Likewise.
458 (rs6000-builtins.h): Likewise.
459 (rs6000.o): Add dependency.
460 (EXTRA_HEADERS): Add rs6000-vecdefines.h.
461 (rs6000-vecdefines.h): New target.
462 (rs6000-builtins.o): Likewise.
463 (rs6000-call.o): Add rs6000-builtins.h as a dependency.
464 (rs6000-c.o): Likewise.
466 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
469 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
470 Diagnose buffer overrun.
471 (safe_inc_pos): Fix overrun detection.
472 (match_identifier): Diagnose buffer overrun.
473 (match_integer): Likewise.
474 (match_to_right_bracket): Likewise.
476 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
478 * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
479 Improve range compare.
480 (modref_access_node::contains): New member function.
481 (modref_access_node::search): Remove.
482 (modref_access_node::insert): Be smarter about subaccesses.
484 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
486 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
487 <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
488 * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
491 2021-08-23 Jeff Law <jlaw@localhost.localdomain>
493 * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
495 * config/h8300/jumpcall.md (call, call_value): Restrict to
496 !SIBLING_CALL_P cases.
497 (subcall, sibcall_value): New patterns & expanders.
498 * config/h8300/proepi.md (epilogue): Pass new argument to
499 h8300_expand_epilogue.
500 (sibcall_epilogue): New expander.
501 * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
503 (h8300_ok_for_sibcall_p): New function.
504 (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
506 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
508 * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
509 Handle case where the operand is already the desired mode.
511 2021-08-23 Richard Biener <rguenther@suse.de>
514 * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
515 in addition to has_gimple_body.
517 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
520 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
523 2021-08-23 Martin Liska <mliska@suse.cz>
525 * doc/invoke.texi: Put the option out of -mxl-mode-app-model
528 2021-08-23 Richard Biener <rguenther@suse.de>
530 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
531 Properly scale the inner loop cost only once.
533 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
535 * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
536 Provide bounds for unsigned (and signed with non-negative operands)
537 division and modulus.
539 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
541 * simplify-rtx.c (simplify_truncation): Generalize simplification
542 of (truncate:A (subreg:B X)).
543 (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
544 SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
545 already has the desired machine mode.
546 (test_scalar_int_ops): Add tests that useless extensions and
547 truncations are optimized away.
548 (test_scalar_int_ext_ops): New self-test function to confirm
549 that truncations of extensions are correctly simplified.
550 (test_scalar_int_ext_ops2): New self-test function to check
551 truncations of truncations, extensions of extensions, and
552 truncations of extensions.
553 (test_scalar_ops): Call the above two functions with a
554 representative sampling of integer machine modes.
556 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
558 * match.pd (shift transformations): Change the sign of an
559 LSHIFT_EXPR if it reduces the number of explicit conversions.
561 2021-08-23 Jakub Jelinek <jakub@redhat.com>
563 PR tree-optimization/86723
564 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
565 cast64_to_32 argument, set *cast64_to_32 to false, unless n is
566 non-memory permutation of 64-bit src which only has bytes of
567 0 or [5..8] and n->range is 4.
568 (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
569 find_bswap_or_nop_finalize caller, support bswap with some bytes
570 zeroed, as long as at least two bytes are not zeroed.
571 (bswap_replace): Add mask argument and handle masking of bswap
573 (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
574 caller, punt if cast64_to_32 or mask is not all ones.
575 (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
576 caller, for now punt if cast64_to_32.
578 2021-08-23 Richard Biener <rguenther@suse.de>
580 PR tree-optimization/79334
581 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
582 a type also for COMPONENT_REFs.
583 (vn_reference_may_trap): Check ARRAY_REF with constant index
584 against the array domain.
586 2021-08-23 liuhongt <hongtao.liu@intel.com>
589 * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
590 TARGET_AVX512BW to condition.
592 2021-08-23 Jakub Jelinek <jakub@redhat.com>
595 * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
596 register variables already during early_dwarf if possible.
598 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
600 * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
602 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
605 * config/arm/arm.opt: Fix typo.
606 * config/arm/t-rmprofile: Fix typo.
608 2021-08-23 Jakub Jelinek <jakub@redhat.com>
610 * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
611 (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
612 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
613 case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
614 * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
615 if either grainsize or num_tasks clause has the strict modifier.
617 2021-08-23 Martin Liska <mliska@suse.cz>
619 * dbgcnt.def (DEBUG_COUNTER): New counter.
620 * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
622 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
624 * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
626 2021-08-23 Xi Ruoyao <xry111@mengyan1223.wang>
629 * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
631 * config/mips/mips.c (mips_msa_output_shift_immediate): New
633 * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
634 vlshr<mode>3): Call it.
636 2021-08-22 Jan Hubicka <hubicka@ucw.cz>
637 Martin Liska <mliska@suse.cz>
640 * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
643 2021-08-21 Dragan Mladjenovic <OT_Dragan.Mladjenovic@mediatek.com>
645 * config/mips/mips.c (mips_function_rodata_section,
646 TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
648 2021-08-21 John David Anglin <danglin@gcc.gnu.org>
650 * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
652 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
654 * configure.ac (thread-local storage support): Remove tls_first_major
655 and tls_first_minor. Use "$conftest_s" to check support.
656 * configure: Regenerate.
658 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
660 * configure.ac: Fixup formatting.
662 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
664 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
665 * configure.ac: ... update all callers.
667 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
670 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
671 (gcc_GAS_VERSION_GTE_IFELSE): Remove.
672 (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
673 * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
674 Remove remaining checks for in-tree assembler.
675 * configure: Regenerate.
677 2021-08-20 Jeff Law <jlaw@localhost.localdomain>
679 * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
680 by 15 bits for H8/300H and H8/S. Improve logical shifts by 12
682 (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
683 H8/300H. Improve arithmetic shift right by 15 bits for H8/S.
684 Improve logical shifts by 27 bits for H8/S.
685 (get_shift_alg): Corresponding changes.
686 (h8300_option_override): Revert to loops for -Os when profitable.
688 2021-08-20 Richard Biener <rguenther@suse.de>
690 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
692 (vect_analyze_data_ref_accesses): Likewise. Assign the BB
693 index as group_id when dataref_groups were not computed.
694 * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
695 we advace to the next BB.
697 2021-08-20 Jakub Jelinek <jakub@redhat.com>
699 * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
702 2021-08-20 Martin Liska <mliska@suse.cz>
704 PR gcov-profile/89961
705 * gcov.c (make_gcov_file_name): Rewrite using std::string.
706 (mangle_name): Simplify, do not used the second argument.
707 (strip_extention): New function.
708 (get_md5sum): Likewise.
709 (get_gcov_intermediate_filename): Handle properly -p and -x
711 (output_gcov_file): Use string type.
712 (generate_results): Likewise.
713 (md5sum_to_hex): Remove.
715 2021-08-20 Michael Meissner <meissner@linux.ibm.com>
717 * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
718 (UNSPEC_XXSPLTIW): Move to vsx.md.
719 (UNSPEC_XXSPLTID): Move to vsx.md.
720 (UNSPEC_XXSPLTI32DX): Move to vsx.md.
721 (UNSPEC_XXBLEND): Move to vsx.md.
722 (UNSPEC_XXPERMX): Move to vsx.md.
723 (VM3): Move to vsx.md.
724 (VM3_char): Move to vsx.md.
725 (xxspltiw_v4si): Move to vsx.md.
726 (xxspltiw_v4sf): Move to vsx.md.
727 (xxspltiw_v4sf_inst): Move to vsx.md.
728 (xxspltidp_v2df): Move to vsx.md.
729 (xxspltidp_v2df_inst): Move to vsx.md.
730 (xxsplti32dx_v4si_inst): Move to vsx.md.
731 (xxsplti32dx_v4sf): Move to vsx.md.
732 (xxsplti32dx_v4sf_inst): Move to vsx.md.
733 (xxblend_<mode>): Move to vsx.md.
734 (xxpermx): Move to vsx.md.
735 (xxpermx_inst): Move to vsx.md.
736 * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
737 (UNSPEC_XXSPLTIW): Move from altivec.md.
738 (UNSPEC_XXSPLTID): Move from altivec.md.
739 (UNSPEC_XXSPLTI32DX): Move from altivec.md.
740 (UNSPEC_XXBLEND): Move from altivec.md.
741 (UNSPEC_XXPERMX): Move from altivec.md.
742 (VM3): Move from altivec.md.
743 (VM3_char): Move from altivec.md.
744 (xxspltiw_v4si): Move from altivec.md.
745 (xxspltiw_v4sf): Move from altivec.md.
746 (xxspltiw_v4sf_inst): Move from altivec.md.
747 (xxspltidp_v2df): Move from altivec.md.
748 (xxspltidp_v2df_inst): Move from altivec.md.
749 (xxsplti32dx_v4si_inst): Move from altivec.md.
750 (xxsplti32dx_v4sf): Move from altivec.md.
751 (xxsplti32dx_v4sf_inst): Move from altivec.md.
752 (xxblend_<mode>): Move from altivec.md.
753 (xxpermx): Move from altivec.md.
754 (xxpermx_inst): Move from altivec.md.
756 2021-08-19 Roger Sayle <roger@nextmovesoftware.com>
758 * tree-vect-generic.c (expand_vector_operations_1): Use either
759 gimplify_build1 or gimplify_build2 instead of gimple_build_assign
760 when constructing scalar splat expressions.
762 2021-08-19 Peter Bergner <bergner@linux.ibm.com>
765 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
766 pointer to __vector_pair *.
768 2021-08-19 Martin Sebor <msebor@redhat.com>
770 * gimple-range.cc: Add comments.
771 * gimple-range.h: Same.
773 2021-08-19 Martin Sebor <msebor@redhat.com>
776 * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
779 2021-08-19 Jeff Law <jlaw@localhost.localdomain>
781 * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
782 (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
783 * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
785 2021-08-19 Jakub Jelinek <jakub@redhat.com>
788 * optabs.c (expand_clrsb_using_clz): New function.
789 (expand_unop): Use it as another clrsb expansion fallback.
791 2021-08-19 liuhongt <hongtao.liu@intel.com>
794 2021-07-28 liuhongt <hongtao.liu@intel.com>
797 * config/i386/i386.h (processor_costs): Add new member
799 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
800 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
801 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
802 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
803 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
804 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
805 generic_cost, core_cost): Initialize integer_to_sse same value
807 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
808 * config/i386/i386.c (ix86_builtin_vectorization_cost):
809 Use integer_to_sse instead of sse_op to calculate the cost of
812 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
814 * config.gcc: Include rpath.opt for Darwin.
815 * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
817 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
820 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
823 2021-08-18 Jonathan Wright <jonathan.wright@arm.com>
825 * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
826 pattern and type cast.
827 (vld4_lane_f32): Use float RTL pattern.
828 (vld4q_lane_f64): Use float type cast.
830 2021-08-18 Jan Hubicka <hubicka@ucw.cz>
832 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
835 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
837 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
838 (test_map_of_type_with_ctor_and_dtor_expand): Add function.
839 (hash_map_tests_c_tests): Call it.
841 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
843 * ggc.h (enum ggc_collect): New.
844 (ggc_collect): Use it.
845 * ggc-page.c: Adjust.
846 * ggc-common.c: Likewise.
847 * ggc-tests.c: Likewise.
848 * read-rtl-function.c: Likewise.
849 * selftest-run-tests.c: Likewise.
850 * doc/gty.texi (Invoking the garbage collector): Likewise.
852 2021-08-18 liuhongt <hongtao.liu@intel.com>
855 * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
857 * config/i386/sse.md (*sse3_haddv2df3_low): Add
858 TARGET_V2DF_REDUCTION_PREFER_HADDPD.
859 (*sse3_hsubv2df3_low): Ditto.
860 * config/i386/x86-tune.def
861 (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
863 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
865 * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
866 (gori_compute::compute_operand_range): Add tracing.
867 (gori_compute::logical_combine): Ditto.
868 (gori_compute::compute_logical_operands): Ditto.
869 (gori_compute::compute_operand1_range): Ditto.
870 (gori_compute::compute_operand2_range): Ditto.
871 (gori_compute::outgoing_edge_range_p): Ditto.
872 * gimple-range-gori.h (class gori_compute): Add range_tracer.
874 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
876 * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
877 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
878 * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
879 * params.opt (--param=evrp-mode): Adjust options.
881 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
883 * Makefile.in (OBJS): Add gimple-range-trace.o.
884 * gimple-range-cache.h (enable_new_values): Remove unused prototype.
885 * gimple-range-fold.cc: Adjust headers.
886 * gimple-range-trace.cc: New.
887 * gimple-range-trace.h: New.
888 * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
889 (gimple_ranger::range_of_expr): Add tracing.
890 (gimple_ranger::range_on_entry): Ditto.
891 (gimple_ranger::range_on_exit): Ditto.
892 (gimple_ranger::range_on_edge): Ditto.
893 (gimple_ranger::fold_range_internal): Ditto.
894 (gimple_ranger::dump_bb): Do not calculate edge range twice.
895 (trace_ranger::*): Remove.
896 (enable_ranger): Never create a trace_ranger.
897 (debug_seed_ranger): Move to gimple-range-trace.cc.
898 (dump_ranger): Ditto.
899 (debug_ranger): Ditto.
900 * gimple-range.h: Include gimple-range-trace.h.
901 (range_on_entry, range_on_exit): No longer virtual.
902 (class trace_ranger): Remove.
903 (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
905 2021-08-17 Martin Sebor <msebor@redhat.com>
908 * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
909 in gimple-ssa-warn-access.cc.
910 * calls.c (alloc_max_size): Move code to check_alloca.
911 (get_size_range): Move to pointer-query.cc.
912 (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
913 (get_attr_nonstring_decl): Move to tree.c.
914 (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
915 (append_attrname): Same.
916 (maybe_warn_rdwr_sizes): Same.
917 (initialize_argument_information): Move code to
918 gimple-ssa-warn-access.cc.
919 * calls.h (maybe_warn_alloc_args_overflow): Move to
920 gimple-ssa-warn-access.h.
921 (get_attr_nonstring_decl): Move to tree.h.
922 (maybe_warn_nonstring_arg): Move to gimple-ssa-warn-access.h.
923 (enum size_range_flags): Move to pointer-query.h.
924 (get_size_range): Same.
925 * gimple-ssa-warn-access.cc (has_location): Remove unused overload
926 to avoid Clang -Wunused-function.
927 (get_size_range): Declare static.
928 (maybe_emit_free_warning): Rename...
929 (maybe_check_dealloc_call): ...to this for consistency.
930 (class pass_waccess): Add members.
931 (pass_waccess::~pass_waccess): Defined.
932 (alloc_max_size): Move here from calls.c.
933 (maybe_warn_alloc_args_overflow): Same.
934 (check_alloca): New function.
935 (check_alloc_size_call): New function.
936 (check_strncat): Handle another warning flag.
937 (pass_waccess::check_builtin): Handle alloca.
938 (fntype_argno_type): Move here from calls.c.
939 (append_attrname): Same.
940 (maybe_warn_rdwr_sizes): Same.
941 (pass_waccess::check_call): Define.
942 (check_nonstring_args): New function.
943 (pass_waccess::check): Call new member functions.
944 (pass_waccess::execute): Enable ranger.
945 * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
946 (maybe_warn_nonstring_arg): Same.
947 * gimple-ssa-warn-restrict.c: Remove #include.
948 * pointer-query.cc (get_size_range): Move here from calls.c.
949 * pointer-query.h (enum size_range_flags): Same.
950 (get_size_range): Same.
951 * tree.c (get_attr_nonstring_decl): Move here from calls.c.
952 * tree.h (get_attr_nonstring_decl): Move here from calls.h.
954 2021-08-17 Thomas Schwinge <thomas@codesourcery.com>
956 * ggc.h (ggc_collect): Add 'force_collect' parameter.
957 * ggc-page.c (ggc_collect): Use that one instead of global
958 'ggc_force_collect'. Adjust all users.
959 * doc/gty.texi (Invoking the garbage collector): Update.
960 * ggc-internal.h (ggc_force_collect): Remove.
961 * ggc-common.c (ggc_force_collect): Likewise.
962 * selftest.h (forcibly_ggc_collect): Remove.
963 * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
964 * read-rtl-function.c (test_loading_labels): Adjust.
965 * selftest-run-tests.c (run_tests): Likewise.
967 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
969 * config/darwin.c (darwin_file_end): Reset and reclaim the
970 section names table at the end of compile.
972 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
975 * config.in: Regenerate.
976 * config/i386/darwin.h (EXTRA_ASM_OPTS): New
977 (ASM_SPEC): Pass options to disable branch shortening where
979 * configure: Regenerate.
980 * configure.ac: Detect versions of 'as' that support the
981 optimisation which has the bug.
983 2021-08-17 Richard Biener <rguenther@suse.de>
985 * optabs-query.c (supports_vec_gather_load_p): Also check
987 (supports_vec_scatter_store_p): Likewise.
988 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
989 back to masked variants if non-masked are not supported.
990 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
991 When we need to use masked gather/scatter but do not have
992 a mask set up a constant true one.
993 * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
996 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
998 * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
999 algorithm as PLUS_EXPR to improve subtraction bit bounds.
1000 [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
1002 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
1004 * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
1005 calculate the mask-value pair result of a multiplication by an
1007 (bit_value_binop) [MULT_EXPR]: Call it from here for
1008 multiplications by (sparse) non-negative constants.
1010 2021-08-17 Christophe Lyon <christophe.lyon@foss.st.com>
1013 * config.gcc (gcc_cv_initfini_array): Leave undefined for
1014 uclinuxfdpiceabi targets.
1016 2021-08-17 Alexandre Oliva <oliva@adacore.com>
1018 * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
1019 reverse debug stmts.
1021 2021-08-17 Alexandre Oliva <oliva@adacore.com>
1023 * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
1025 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
1027 * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
1028 (__LD4Q_LANE_FUNC): Likewise.
1029 (vld4_lane_u8): Define without macro.
1030 (vld4_lane_u16): Likewise.
1031 (vld4_lane_u32): Likewise.
1032 (vld4_lane_u64): Likewise.
1033 (vld4_lane_s8): Likewise.
1034 (vld4_lane_s16): Likewise.
1035 (vld4_lane_s32): Likewise.
1036 (vld4_lane_s64): Likewise.
1037 (vld4_lane_f16): Likewise.
1038 (vld4_lane_f32): Likewise.
1039 (vld4_lane_f64): Likewise.
1040 (vld4_lane_p8): Likewise.
1041 (vld4_lane_p16): Likewise.
1042 (vld4_lane_p64): Likewise.
1043 (vld4q_lane_u8): Likewise.
1044 (vld4q_lane_u16): Likewise.
1045 (vld4q_lane_u32): Likewise.
1046 (vld4q_lane_u64): Likewise.
1047 (vld4q_lane_s8): Likewise.
1048 (vld4q_lane_s16): Likewise.
1049 (vld4q_lane_s32): Likewise.
1050 (vld4q_lane_s64): Likewise.
1051 (vld4q_lane_f16): Likewise.
1052 (vld4q_lane_f32): Likewise.
1053 (vld4q_lane_f64): Likewise.
1054 (vld4q_lane_p8): Likewise.
1055 (vld4q_lane_p16): Likewise.
1056 (vld4q_lane_p64): Likewise.
1057 (vld4_lane_bf16): Likewise.
1058 (vld4q_lane_bf16): Likewise.
1060 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
1062 * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
1063 (__LD3Q_LANE_FUNC): Delete.
1064 (vld3_lane_u8): Define without macro.
1065 (vld3_lane_u16): Likewise.
1066 (vld3_lane_u32): Likewise.
1067 (vld3_lane_u64): Likewise.
1068 (vld3_lane_s8): Likewise.
1069 (vld3_lane_s16): Likewise.
1070 (vld3_lane_s32): Likewise.
1071 (vld3_lane_s64): Likewise.
1072 (vld3_lane_f16): Likewise.
1073 (vld3_lane_f32): Likewise.
1074 (vld3_lane_f64): Likewise.
1075 (vld3_lane_p8): Likewise.
1076 (vld3_lane_p16): Likewise.
1077 (vld3_lane_p64): Likewise.
1078 (vld3q_lane_u8): Likewise.
1079 (vld3q_lane_u16): Likewise.
1080 (vld3q_lane_u32): Likewise.
1081 (vld3q_lane_u64): Likewise.
1082 (vld3q_lane_s8): Likewise.
1083 (vld3q_lane_s16): Likewise.
1084 (vld3q_lane_s32): Likewise.
1085 (vld3q_lane_s64): Likewise.
1086 (vld3q_lane_f16): Likewise.
1087 (vld3q_lane_f32): Likewise.
1088 (vld3q_lane_f64): Likewise.
1089 (vld3q_lane_p8): Likewise.
1090 (vld3q_lane_p16): Likewise.
1091 (vld3q_lane_p64): Likewise.
1092 (vld3_lane_bf16): Likewise.
1093 (vld3q_lane_bf16): Likewise.
1095 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
1097 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
1098 (__LD2Q_LANE_FUNC): Likewise.
1099 (vld2_lane_u8): Define without macro.
1100 (vld2_lane_u16): Likewise.
1101 (vld2_lane_u32): Likewise.
1102 (vld2_lane_u64): Likewise.
1103 (vld2_lane_s8): Likewise.
1104 (vld2_lane_s16): Likewise.
1105 (vld2_lane_s32): Likewise.
1106 (vld2_lane_s64): Likewise.
1107 (vld2_lane_f16): Likewise.
1108 (vld2_lane_f32): Likewise.
1109 (vld2_lane_f64): Likewise.
1110 (vld2_lane_p8): Likewise.
1111 (vld2_lane_p16): Likewise.
1112 (vld2_lane_p64): Likewise.
1113 (vld2q_lane_u8): Likewise.
1114 (vld2q_lane_u16): Likewise.
1115 (vld2q_lane_u32): Likewise.
1116 (vld2q_lane_u64): Likewise.
1117 (vld2q_lane_s8): Likewise.
1118 (vld2q_lane_s16): Likewise.
1119 (vld2q_lane_s32): Likewise.
1120 (vld2q_lane_s64): Likewise.
1121 (vld2q_lane_f16): Likewise.
1122 (vld2q_lane_f32): Likewise.
1123 (vld2q_lane_f64): Likewise.
1124 (vld2q_lane_p8): Likewise.
1125 (vld2q_lane_p16): Likewise.
1126 (vld2q_lane_p64): Likewise.
1127 (vld2_lane_bf16): Likewise.
1128 (vld2q_lane_bf16): Likewise.
1130 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1132 * haifa-sched.c (advance_one_cycle): Output more context-synchronization
1135 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1137 * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
1138 (rank_for_schedule): Use it.
1140 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1142 PR rtl-optimization/91598
1143 * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
1144 insns after memory reads and before memory writes.
1146 2021-08-17 Alistair_Lee <alistair.lee@arm.com>
1148 * rtl.h (CONST_VECTOR_P): New macro.
1149 * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
1150 code testing macros.
1151 (aarch64_ptrue_all_mode): Likewise.
1152 (aarch64_expand_mov_immediate): Likewise.
1153 (aarch64_const_vec_all_in_range_p): Likewise.
1154 (aarch64_rtx_costs): Likewise.
1155 (aarch64_legitimate_constant_p): Likewise.
1156 (aarch64_simd_valid_immediate): Likewise.
1157 (aarch64_simd_make_constant): Likewise.
1158 (aarch64_convert_mult_to_shift): Likewise.
1159 (aarch64_expand_sve_vec_perm): Likewise.
1160 (aarch64_vec_fpconst_pow_of_2): Likewise.
1162 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
1164 PR tree-optimization/101938
1165 * range-op.cc (operator_abs::op1_range): Special case
1166 -TYPE_MIN_VALUE for flag_wrapv.
1168 2021-08-17 Kewen Lin <linkw@linux.ibm.com>
1170 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
1173 2021-08-17 Jakub Jelinek <jakub@redhat.com>
1175 * tree.def (OMP_SCOPE): New tree code.
1176 * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
1177 * tree-nested.c (convert_nonlocal_reference_stmt,
1178 convert_local_reference_stmt, convert_gimple_call): Handle
1180 * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
1181 * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
1182 * gimple.c (gimple_build_omp_scope): New function.
1183 (gimple_copy): Handle GIMPLE_OMP_SCOPE.
1184 * gimple.h (gimple_build_omp_scope): Declare.
1185 (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
1186 (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
1187 gimple_omp_scope_set_clauses): New inline functions.
1188 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
1189 * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
1190 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
1191 * gimple-walk.c (walk_gimple_stmt): Likewise.
1192 * gimple-low.c (lower_stmt): Likewise.
1193 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
1194 (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
1195 like ORT_WORKSHARE constructs. Adjust diagnostics for %<scope%>
1196 allowing task reductions. Reject inscan reductions on scope.
1197 (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
1198 (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
1199 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
1200 (estimate_num_insns): Likewise.
1201 * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
1202 contexts if var isn't privatized there.
1203 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
1204 (scan_omp_1_stmt): Likewise.
1205 (maybe_add_implicit_barrier_cancel): Look through outer
1207 (lower_omp_scope): New function.
1208 (lower_omp_task_reductions): Handle OMP_SCOPE.
1209 (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
1210 (diagnose_sb_1, diagnose_sb_2): Likewise.
1211 * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
1212 (expand_omp): Handle GIMPLE_OMP_SCOPE.
1213 (omp_make_gimple_edges): Likewise.
1214 * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
1216 2021-08-17 Richard Biener <rguenther@suse.de>
1218 PR tree-optimization/101925
1219 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
1220 reverse on COMPONENT_REF and ARRAY_REF according to
1221 what reverse_storage_order_for_component_p does.
1222 (vn_reference_eq): Compare reversed on reference ops.
1223 (reverse_storage_order_for_component_p): New overload.
1224 (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
1225 on the reference looked up.
1227 2021-08-17 Jeff Law <jlaw@localhost.localdomain>
1229 * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
1231 (h8300_option_override): Use loops on H8/S more often when optimizing
1233 (get_shift_alg): Handle new "special" cases on H8/S. Simplify
1234 accordingly. Handle various arithmetic right shifts with special
1235 sequences that we couldn't handle before.
1237 2021-08-16 Jeff Law <jlaw@localhost.localdomain>
1239 * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
1241 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
1243 * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
1244 * config/sparc/sparc.c (sparc_gcov_type_size): New.
1245 (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
1246 * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
1247 * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
1248 * doc/tm.texi.in: Regenerate.
1249 * target.def (gcov_type_size): New target hook.
1250 * targhooks.c (default_gcov_type_size): New.
1251 * targhooks.h (default_gcov_type_size): Declare.
1252 * tree-profile.c (gimple_gen_edge_profiler): Use precision of
1254 (gimple_gen_time_profiler): Likewise.
1256 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
1258 * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
1260 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
1262 PR middle-end/101931
1263 * omp-low.c (omp_runtime_api_call): Update for routines
1264 added in the meanwhile.
1266 2021-08-16 Martin Liska <mliska@suse.cz>
1268 PR tree-optimization/100393
1269 * tree-switch-conversion.c (group_cluster::dump): Use
1270 get_comparison_count.
1271 (jump_table_cluster::find_jump_tables): Pre-compute number of
1272 comparisons and then decrement it. Cache also max_ratio.
1273 (jump_table_cluster::can_be_handled): Change signature.
1274 * tree-switch-conversion.h (get_comparison_count): New.
1276 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
1278 * dwarf2out.c (add_data_member_location_attribute): Use GNAT
1279 encodings only when -fgnat-encodings=all is specified.
1280 (add_bound_info): Likewise.
1281 (add_byte_size_attribute): Likewise.
1282 (gen_member_die): Likewise.
1284 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
1286 * omp-oacc-neuter-broadcast.cc
1287 (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
1289 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
1291 * omp-oacc-neuter-broadcast.cc
1292 (execute_omp_oacc_neuter_broadcast): Clarify memory management for
1295 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
1297 * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
1298 (execute_omp_oacc_neuter_broadcast): ... here.
1299 (install_var_field, build_receiver_ref, build_sender_ref): Take
1300 'field_map_t *' parameter. Adjust all users.
1301 (worker_single_copy, neuter_worker_single): Take a
1302 'record_field_map_t *' parameter. Adjust all users.
1304 2021-08-16 liuhongt <hongtao.liu@intel.com>
1307 * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
1310 2021-08-16 Martin Liska <mliska@suse.cz>
1313 * multiple_target.c (create_dispatcher_calls): Make default
1314 function local only if it is a definition.
1316 2021-08-16 Martin Liska <mliska@suse.cz>
1319 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
1320 consider equal SSA_NAMEs when one is a param.
1322 2021-08-16 liuhongt <hongtao.liu@intel.com>
1325 * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
1326 Support vpermi2b for V32QI/V16QImode.
1327 (ix86_extract_perm_from_pool_constant): New function.
1328 (ix86_expand_vec_one_operand_perm_avx512): Support
1329 vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
1330 (expand_vec_perm_1): Adjust comments for upper.
1331 * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
1333 * config/i386/predicates.md (permvar_truncate_operand): New predicate.
1334 (pshufb_truncv4siv4hi_operand): Ditto.
1335 (pshufb_truncv8hiv8qi_operand): Ditto.
1336 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
1337 New pre_reload define_insn_and_split.
1338 (*avx512f_permvar_truncv8siv8hi_1): Ditto.
1339 (*avx512f_vpermvar_truncv8div8si_1): Ditto.
1340 (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
1341 (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
1342 (*avx512f_permvar_truncv4div4si_1): Ditto.
1343 (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
1344 (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
1345 (*avx512f_pshufd_truncv2div2si_1): Ditto.
1347 2021-08-16 Kito Cheng <kito.cheng@sifive.com>
1349 * config/riscv/multilib-generator: Support code model option for
1351 * doc/install.texi: Add document of new option for
1352 --with-multilib-generator.
1354 2021-08-15 Clément Chigot <clement.chigot@atos.net>
1356 * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
1357 (rs6000_legitimize_tls_address_aix): Use it.
1358 (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
1359 xcoff_tls_exec_model_detected is true.
1361 2021-08-15 Jeff Law <jlaw@localhost.localdomain>
1363 * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
1364 to allow a bit more code growth, saving many dozens of cycles.
1365 (h8300_option_override): Adjus shift_alg_si if optimizing for
1367 (get_shift_alg): Use special + inline shifts for residuals
1370 2021-08-14 Stafford Horne <shorne@gmail.com>
1373 * config/or1k/or1k-opts.h: New file.
1374 * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
1375 Support generating gotha relocations if -mcmodel=large is
1377 * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
1379 * config/or1k/or1k.opt (mcmodel=): New option.
1380 * doc/invoke.texi (OpenRISC Options): Document mcmodel.
1382 2021-08-14 Martin Sebor <msebor@redhat.com>
1384 PR middle-end/101791
1385 * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
1386 to valid_new_delete_pair_p.
1387 * tree.c (valid_new_delete_pair_p): Add argument.
1388 * tree.h (valid_new_delete_pair_p): Same.
1390 2021-08-14 Jakub Jelinek <jakub@redhat.com>
1393 * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
1394 <case E_V64QImode>: For this mode assert
1395 !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
1397 2021-08-13 Michael Meissner <meissner@linux.ibm.com>
1400 * config/rs6000/altivec.md (xxeval): Use register_predicate
1401 instead of altivec_register_predicate.
1403 2021-08-13 Martin Sebor <msebor@redhat.com>
1405 PR middle-end/101734
1406 * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
1407 (maybe_warn_operand): Call it.
1409 2021-08-13 Martin Liska <mliska@suse.cz>
1412 * attribs.c (decl_attributes): Make naked functions "noipa"
1415 2021-08-13 Martin Liska <mliska@suse.cz>
1418 * symtab.c (symtab_node::noninterposable_alias): Do not create
1419 local aliases for target_clone functions as the clonning pass
1422 2021-08-13 Martin Liska <mliska@suse.cz>
1424 * opts.c (LIVE_PATCHING_OPTION): Define.
1425 (control_options_for_live_patching): Use it in error messages.
1427 2021-08-13 Jan Hubicka <hubicka@ucw.cz>
1429 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
1430 (implicit_const_eaf_flags, implicit_pure_eaf_flags,
1431 ignore_stores_eaf_flags): New constants.
1432 (remove_useless_eaf_flags): New function.
1433 (eaf_flags_useful_p): Use it.
1434 (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
1436 (modref_lattice::init): Add EAF_NOREAD.
1437 (modref_lattice::add_escape_point): Do not reacord escape point if
1439 (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
1440 use remove_useless_eaf_flags.
1441 (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
1442 (modref_lattice::merge_direct_load): Add EAF_NOREAD
1443 (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
1444 (analyze_parms): Use remove_useless_eaf_flags.
1445 (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
1446 (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
1447 use remove_useless_eaf_flags.
1448 (modref_propagate_flags_in_scc): Update.
1449 * ipa-modref.h: Turn eaf_flags_t back to char.
1450 * tree-core.h (EAF_NOT_RETURNED): Fix.
1451 (EAF_NOREAD): New constant
1452 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
1454 * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
1455 (handle_pure_call): Likewise.
1457 2021-08-12 Jakub Jelinek <jakub@redhat.com>
1459 * tree.def (OMP_MASKED): New tree code.
1460 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
1461 * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
1462 OMP_CLAUSE_FILTER_EXPR): Define.
1463 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
1464 (omp_clause_code_name): Likewise.
1465 (walk_tree_1): Handle OMP_CLAUSE_FILTER.
1466 * tree-nested.c (convert_nonlocal_omp_clauses,
1467 convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
1468 (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
1469 convert_gimple_call): Handle GIMPLE_OMP_MASTER.
1470 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
1471 (dump_generic_node): Handle OMP_MASTER.
1472 * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
1473 * gimple.c (gimple_build_omp_masked): New function.
1474 (gimple_copy): Handle GIMPLE_OMP_MASKED.
1475 * gimple.h (gimple_build_omp_masked): Declare.
1476 (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
1477 (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
1478 gimple_omp_masked_set_clauses): New inline functions.
1479 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
1480 * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
1481 (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
1482 * gimple-walk.c (walk_gimple_stmt): Likewise.
1483 * gimple-low.c (lower_stmt): Likewise.
1484 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
1485 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER. For clauses
1486 that take one expression rather than decl or constant, force
1487 gimplification of that into a SSA_NAME or temporary unless min
1489 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
1490 (gimplify_expr): Handle OMP_MASKED.
1491 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
1492 (estimate_num_insns): Likewise.
1493 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
1494 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED. Adjust
1495 diagnostics for existence of masked construct.
1496 (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
1497 diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
1498 * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
1501 2021-08-12 Uroš Bizjak <ubizjak@gmail.com>
1504 * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
1505 (ldexp<mode>3): Use avx512f_scalef<mode>2.
1506 (UNSPEC_SCALEF): Move from ...
1507 * config/i386/sse.md (UNSPEC_SCALEF): ... here.
1509 2021-08-12 Jan Hubicka <hubicka@ucw.cz>
1511 * ipa-split.c (consider_split): Fix condition testing void functions.
1513 2021-08-12 Aldy Hernandez <aldyh@redhat.com>
1515 * doc/invoke.texi: Remove docs for threader-mode param.
1516 * flag-types.h (enum threader_mode): Remove.
1517 * params.opt: Remove threader-mode param.
1518 * tree-ssa-threadbackward.c (class back_threader): Remove
1519 path_is_unreachable_p.
1520 Make find_paths private.
1521 Add maybe_thread and thread_through_all_blocks.
1522 Remove reference marker for m_registry.
1523 Remove reference marker for m_profit.
1524 (back_threader::back_threader): Adjust for registry and profit not
1526 (dump_path): Move down.
1528 (class thread_jumps): Remove.
1529 (class back_threader_registry): Remove m_all_paths.
1531 (thread_jumps::thread_through_all_blocks): Move to back_threader
1533 (fsm_find_thread_path): Remove
1534 (back_threader::maybe_thread): New.
1535 (back_threader::thread_through_all_blocks): Move from
1537 (back_threader_registry::back_threader_registry): Remove
1539 (back_threader_registry::~back_threader_registry): Remove.
1540 (thread_jumps::find_taken_edge): Remove.
1541 (thread_jumps::check_subpath_and_update_thread_path): Remove.
1542 (thread_jumps::maybe_register_path): Remove.
1543 (thread_jumps::handle_phi): Remove.
1544 (handle_assignment_p): Remove.
1545 (thread_jumps::handle_assignment): Remove.
1546 (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
1547 (thread_jumps::find_jump_threads_backwards): Remove.
1548 (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
1549 (try_thread_blocks): Rename find_jump_threads_backwards to
1551 (pass_early_thread_jumps::execute): Same.
1553 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
1555 * tree-core.h (omp_clause_proc_bind_kind): Add
1556 OMP_CLAUSE_PROC_BIND_PRIMARY.
1557 * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
1558 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
1560 2021-08-12 Claudiu Zissulescu <claziss@synopsys.com>
1562 * common/config/arc/arc-common.c (arc_option_init_struct): Remove
1563 fno-common reference.
1564 * config/arc/arc.c (arc_override_options): Remove overriding of
1567 2021-08-12 Jakub Jelinek <jakub@redhat.com>
1570 * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
1571 If d->testing_p, return true after performing checks instead of
1572 actually expanding the insn.
1573 (expand_vec_perm_broadcast_1): Handle V32HImode - assert
1574 !TARGET_AVX512BW and return false.
1576 2021-08-12 Eric Botcazou <ebotcazou@gcc.gnu.org>
1578 * configure.ac (PE linker --disable-dynamicbase support): New check.
1579 * configure: Regenerate.
1580 * config.in: Likewise.
1581 * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
1582 (LINK_SPEC): Use it.
1583 * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
1584 (LINK_SPEC): Likewise.
1586 2021-08-12 liuhongt <hongtao.liu@intel.com>
1589 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
1590 post_reload define_insn_and_split.
1591 (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
1592 (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
1593 (*avx512f_zero_extendv16hiv16si2_2): Ditto.
1594 (*avx2_zero_extendv8hiv8si2_2): Ditto.
1595 (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
1596 (*avx512f_zero_extendv8siv8di2_2): Ditto.
1597 (*avx2_zero_extendv4siv4di2_2): Ditto.
1598 (*sse4_1_zero_extendv2siv2di2_4): Ditto.
1599 (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
1602 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
1604 * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
1607 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
1609 * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
1611 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
1613 * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
1614 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
1615 initialization of pcvoid_type_node here...
1616 (altivec_init_builtins): ...from here.
1617 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
1618 RS6000_BTI_const_ptr_void.
1619 (pcvoid_type_node): New macro.
1621 2021-08-11 Richard Biener <rguenther@suse.de>
1624 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
1625 hard-register accesses.
1627 2021-08-11 Richard Biener <rguenther@suse.de>
1629 * tree-ssa-operands.c (operands_scanner::get_expr_operands):
1630 Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
1631 to determine has_volatile_ops.
1633 2021-08-11 Eric Botcazou <ebotcazou@gcc.gnu.org>
1635 * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
1637 2021-08-11 Jan Hubicka <hubicka@ucw.cz>
1638 Alexandre Oliva <oliva@adacore.com>
1640 * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
1642 (modref_lattice::merge_deref): Fix handling of indirect scape points.
1643 (update_escape_summary_1): Likewise.
1644 (update_escape_summary): Likewise.
1645 (ipa_merge_modref_summary_after_inlining): Likewise.
1647 2021-08-11 Richard Biener <rguenther@suse.de>
1649 PR middle-end/101858
1650 * fold-const.c (fold_binary_loc): Guard simplification
1651 of X < (cast) (1 << Y) to integer types.
1653 2021-08-11 Richard Biener <rguenther@suse.de>
1655 PR tree-optimization/101861
1656 * tree-vect-stmts.c (vectorizable_load): Fix error in
1657 previous change with regard to gather vectorization.
1659 2021-08-11 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
1662 * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
1664 (vdup_n_s16): Likewise.
1665 (vdup_n_s32): Likewise.
1666 (vdup_n_s64): Likewise.
1667 (vdup_n_u8): Likewise.
1668 (vdup_n_u16): Likewise.
1669 (vdup_n_u32): Likewise.
1670 (vdup_n_u64): Likewise.
1671 (vdup_n_p8): Likewise.
1672 (vdup_n_p16): Likewise.
1673 (vdup_n_p64): Likewise.
1674 (vdup_n_f16): Likewise.
1675 (vdup_n_f32): Likewise.
1676 (vdupq_n_s8): Likewise.
1677 (vdupq_n_s16): Likewise.
1678 (vdupq_n_s32): Likewise.
1679 (vdupq_n_s64): Likewise.
1680 (vdupq_n_u8): Likewise.
1681 (vdupq_n_u16): Likewise.
1682 (vdupq_n_u32): Likewise.
1683 (vdupq_n_u64): Likewise.
1684 (vdupq_n_p8): Likewise.
1685 (vdupq_n_p16): Likewise.
1686 (vdupq_n_p64): Likewise.
1687 (vdupq_n_f16): Likewise.
1688 (vdupq_n_f32): Likewise.
1689 (vmov_n_s8): Replace call to builtin with call to corresponding
1691 (vmov_n_s16): Likewise.
1692 (vmov_n_s32): Likewise.
1693 (vmov_n_s64): Likewise.
1694 (vmov_n_u8): Likewise.
1695 (vmov_n_u16): Likewise.
1696 (vmov_n_u32): Likewise.
1697 (vmov_n_u64): Likewise.
1698 (vmov_n_p8): Likewise.
1699 (vmov_n_p16): Likewise.
1700 (vmov_n_f16): Likewise.
1701 (vmov_n_f32): Likewise.
1702 (vmovq_n_s8): Likewise.
1703 (vmovq_n_s16): Likewise.
1704 (vmovq_n_s32): Likewise.
1705 (vmovq_n_s64): Likewise.
1706 (vmovq_n_u8): Likewise.
1707 (vmovq_n_u16): Likewise.
1708 (vmovq_n_u32): Likewise.
1709 (vmovq_n_u64): Likewise.
1710 (vmovq_n_p8): Likewise.
1711 (vmovq_n_p16): Likewise.
1712 (vmovq_n_f16): Likewise.
1713 (vmovq_n_f32): Likewise.
1714 * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
1716 2021-08-11 liuhongt <hongtao.liu@intel.com>
1719 * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
1720 when TARGET_AVX512F and TARGET_SSE_MATH.
1722 2021-08-10 Jakub Jelinek <jakub@redhat.com>
1725 * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
1726 for V32HImode if !TARGET_AVX512BW.
1727 (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
1728 If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
1729 early, but actually check the permutation.
1731 2021-08-10 Richard Biener <rguenther@suse.de>
1733 PR tree-optimization/101809
1734 * tree-vect-stmts.c (get_load_store_type): Allow emulated
1735 gathers with offset vector nunits being a constant multiple
1736 of the data vector nunits.
1737 (vect_get_gather_scatter_ops): Use the appropriate nunits
1738 for the offset vector defs.
1739 (vectorizable_store): Adjust call to
1740 vect_get_gather_scatter_ops.
1741 (vectorizable_load): Likewise. Handle the case of less
1742 offset vectors than data vectors.
1744 2021-08-10 Jakub Jelinek <jakub@redhat.com>
1747 * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
1748 *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
1751 2021-08-10 Richard Biener <rguenther@suse.de>
1753 PR tree-optimization/101801
1754 PR tree-optimization/101819
1755 * tree-vectorizer.h (vect_emulated_vector_p): Declare.
1756 * tree-vect-loop.c (vect_emulated_vector_p): New function.
1757 (vectorizable_reduction): Re-instantiate a check for emulated
1759 * tree-vect-stmts.c (vectorizable_shift): Likewise.
1760 (vectorizable_operation): Likewise. Cost emulated vector
1761 operations according to the scalar sequence synthesized by
1764 2021-08-10 Richard Biener <rguenther@suse.de>
1766 PR middle-end/101824
1767 * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
1768 volatile in case the variable was.
1770 2021-08-10 H.J. Lu <hjl.tools@gmail.com>
1773 * config/i386/constraints.md (BC): Document for integer SSE
1774 constant all bits set operand.
1775 (BF): New constraint for const floating-point all bits set
1777 * config/i386/i386.c (standard_sse_constant_p): Likewise.
1778 (standard_sse_constant_opcode): Likewise.
1779 * config/i386/sse.md (sseconstm1): New mode attribute.
1780 (mov<mode>_internal): Replace BC with <sseconstm1>.
1782 2021-08-10 liuhongt <hongtao.liu@intel.com>
1784 * config/i386/sse.md (cond_<insn><mode>): New expander.
1785 (VI248_AVX512VLBW): New mode iterator.
1786 * config/i386/predicates.md
1787 (nonimmediate_or_const_vec_dup_operand): New predicate.
1789 2021-08-09 Andrew MacLeod <amacleod@redhat.com>
1791 PR tree-optimization/101741
1792 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
1793 type of parameter for toupper/tolower.
1795 2021-08-09 Martin Jambor <mjambor@suse.cz>
1798 * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
1800 2021-08-09 Pat Haugen <pthaugen@linux.ibm.com>
1802 * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
1804 (is_store_insn1): Verify source is a register.
1806 2021-08-09 Uroš Bizjak <ubizjak@gmail.com>
1809 * config/i386/mmx.md (<any_logic:code>v2sf3):
1810 Rename from *mmx_<any_logic:code>v2sf3
1812 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1814 * config/nvptx/nvptx.c: Cross-reference parts adapted in
1815 'gcc/omp-oacc-neuter-broadcast.cc'.
1816 * omp-low.c: Likewise.
1817 * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
1820 2021-08-09 Julian Brown <julian@codesourcery.com>
1821 Kwok Cheung Yeung <kcy@codesourcery.com>
1822 Thomas Schwinge <thomas@codesourcery.com>
1824 * config/gcn/gcn.c (gcn_init_builtins): Override decls for
1825 BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
1826 BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
1827 (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
1828 (gcn_fork_join): Update comment.
1829 * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
1830 (macc_experimental_workers): Remove unused option.
1832 2021-08-09 Julian Brown <julian@codesourcery.com>
1833 Nathan Sidwell <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
1834 Kwok Cheung Yeung <kcy@codesourcery.com>
1835 Thomas Schwinge <thomas@codesourcery.com>
1837 * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
1838 * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
1839 Add documentation hook.
1840 * doc/tm.texi: Regenerate.
1841 * omp-oacc-neuter-broadcast.cc: New file.
1842 * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
1843 (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
1844 (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
1845 * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
1846 * target.def (goacc.create_worker_broadcast_record): Add target
1848 * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
1850 * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
1851 Rename prototype to...
1852 (gcn_goacc_create_worker_broadcast_record): ... this.
1853 * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
1855 (gcn_goacc_create_worker_broadcast_record): ... this.
1856 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
1858 (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
1860 2021-08-09 Tejas Belagod <tejas.belagod@arm.com>
1863 * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
1866 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1868 * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
1870 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1872 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
1873 consider '-foffload-abi'.
1874 * common.opt (-foffload-abi): Remove 'Var', 'Init'.
1875 * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
1878 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1880 * optc-gen.awk: Sanity check that 'Init' doesn't appear without
1883 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1885 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
1887 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1889 * doc/gty.texi (Files): Update.
1891 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1893 * doc/gty.texi (Files): Fix GTY header file example.
1895 2021-08-09 Roger Sayle <roger@nextmovesoftware.com>
1897 * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
1898 determine the upper and lower bounds from a mask-value pair.
1899 (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
1900 absolute value and unsigned absolute value expressions.
1901 (bit_value_binop): Initialize *VAL's precision.
1902 [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
1903 upper and lower bounds of operands. Add LE_EXPR/GE_EXPR
1904 support when the operands are unknown but potentially equal.
1905 [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
1907 2021-08-09 Bin Cheng <bin.cheng@linux.alibaba.com>
1909 * config/aarch64/aarch64.md
1910 (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
1912 2021-08-08 Sergei Trofimovich <siarheit@google.com>
1914 * lra-constraints.c: Fix s/otput/output/ typo.
1916 2021-08-06 Martin Sebor <msebor@redhat.com>
1918 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
1919 (expand_builtin_strcat): Same.
1920 (expand_builtin_stpncpy): Same.
1921 (expand_builtin_strncat): Same.
1922 (check_read_access): Same.
1923 (check_memop_access): Same.
1924 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
1925 (expand_builtin_strnlen): Same.
1926 (expand_builtin_memcpy): Same.
1927 (expand_builtin_memmove): Same.
1928 (expand_builtin_mempcpy): Same.
1929 (expand_builtin_strcpy): Same.
1930 (expand_builtin_strcpy_args): Same.
1931 (expand_builtin_stpcpy_1): Same.
1932 (expand_builtin_strncpy): Same.
1933 (expand_builtin_memset): Same.
1934 (expand_builtin_bzero): Same.
1935 (expand_builtin_strcmp): Same.
1936 (expand_builtin_strncmp): Same.
1937 (expand_builtin): Remove handlers.
1938 (fold_builtin_strlen): Add a comment.
1939 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
1940 * calls.c (maybe_warn_nonstring_arg): Same.
1941 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
1942 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
1943 (gimple_fold_builtin_stpcpy): Same.
1944 * gimple-ssa-warn-access.cc (has_location): New function.
1945 (get_location): Same.
1946 (get_callee_fndecl): Same.
1949 (warn_string_no_nul): Define.
1950 (unterminated_array): Same.
1951 (check_nul_terminated_array): Same.
1952 (maybe_warn_nonstring_arg): Same.
1953 (maybe_warn_for_bound): Same.
1954 (warn_for_access): Same.
1955 (check_access): Same.
1956 (check_memop_access): Same.
1957 (check_read_access): Same.
1958 (warn_dealloc_offset): Use helper functions.
1959 (maybe_emit_free_warning): Same.
1960 (class pass_waccess): Add members.
1961 (check_strcat): New function.
1962 (check_strncat): New function.
1963 (check_stxcpy): New function.
1964 (check_stxncpy): New function.
1965 (check_strncmp): New function.
1966 (pass_waccess::check_builtin): New function.
1967 (pass_waccess::check): Call it.
1968 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
1970 (maybe_warn_for_bound): Same.
1971 (check_access): Same.
1972 (check_memop_access): Same.
1973 (check_read_access): Same.
1974 * pointer-query.h (struct access_data): Define a ctor overload.
1976 2021-08-06 Richard Biener <rguenther@suse.de>
1978 PR tree-optimization/101801
1979 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
1980 (vect_can_vectorize_without_simd_p): ... to this.
1981 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
1982 (vect_can_vectorize_without_simd_p): ... to this and fold
1983 in vect_min_worthwhile_factor.
1984 (vect_min_worthwhile_factor): Remove.
1985 (vectorizable_reduction): Adjust and remove the cost part.
1986 * tree-vect-stmts.c (vectorizable_shift): Likewise.
1987 (vectorizable_operation): Likewise.
1989 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
1992 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
1993 Add general_gr_operand predicate to operand 3.
1995 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
1997 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
1998 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
2000 2021-08-06 Tamar Christina <tamar.christina@arm.com>
2002 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
2003 register_svprfop): Pass vec<> by pointer.
2004 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
2005 * langhooks.c (lhd_simulate_enum_decl): Likewise.
2006 * langhooks.h (struct lang_hooks_for_types): Likewise.
2008 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
2010 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
2011 __builtin_memcpy instead of constructing an additional
2012 __builtin_aarch64_simd_oi one vector at a time.
2013 (vst1q_bf16_x2): Likewise.
2014 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
2015 an additional __builtin_aarch64_simd_ci one vector at a time.
2016 (vst1q_bf16_x3): Likewise.
2017 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
2018 (vst1q_bf16_x4): Likewise.
2019 (vst2_bf16): Use __builtin_memcpy instead of constructing an
2020 additional __builtin_aarch64_simd_oi one vector at a time.
2021 (vst2q_bf16): Likewise.
2022 (vst3_bf16): Use __builtin_memcpy instead of constructing an
2023 additional __builtin_aarch64_simd_ci mode one vector at a
2025 (vst3q_bf16): Likewise.
2026 (vst4_bf16): Use __builtin_memcpy instead of constructing an
2027 additional __builtin_aarch64_simd_xi one vector at a time.
2028 (vst4q_bf16): Likewise.
2030 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
2032 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
2033 (__ST2Q_LANE_FUNC): Delete.
2034 (vst2_lane_f16): Use __builtin_memcpy to copy vector
2035 structure instead of constructing __builtin_aarch64_simd_oi
2036 one vector at a time.
2037 (vst2_lane_f32): Likewise.
2038 (vst2_lane_f64): Likewise.
2039 (vst2_lane_p8): Likewise.
2040 (vst2_lane_p16): Likewise.
2041 (vst2_lane_p64): Likewise.
2042 (vst2_lane_s8): Likewise.
2043 (vst2_lane_s16): Likewise.
2044 (vst2_lane_s32): Likewise.
2045 (vst2_lane_s64): Likewise.
2046 (vst2_lane_u8): Likewise.
2047 (vst2_lane_u16): Likewise.
2048 (vst2_lane_u32): Likewise.
2049 (vst2_lane_u64): Likewise.
2050 (vst2_lane_bf16): Likewise.
2051 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
2052 structure instead of using a union.
2053 (vst2q_lane_f32): Likewise.
2054 (vst2q_lane_f64): Likewise.
2055 (vst2q_lane_p8): Likewise.
2056 (vst2q_lane_p16): Likewise.
2057 (vst2q_lane_p64): Likewise.
2058 (vst2q_lane_s8): Likewise.
2059 (vst2q_lane_s16): Likewise.
2060 (vst2q_lane_s32): Likewise.
2061 (vst2q_lane_s64): Likewise.
2062 (vst2q_lane_u8): Likewise.
2063 (vst2q_lane_u16): Likewise.
2064 (vst2q_lane_u32): Likewise.
2065 (vst2q_lane_u64): Likewise.
2066 (vst2q_lane_bf16): Likewise.
2068 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
2070 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
2071 (__ST3Q_LANE_FUNC): Delete.
2072 (vst3_lane_f16): Use __builtin_memcpy to copy vector
2073 structure instead of constructing __builtin_aarch64_simd_ci
2074 one vector at a time.
2075 (vst3_lane_f32): Likewise.
2076 (vst3_lane_f64): Likewise.
2077 (vst3_lane_p8): Likewise.
2078 (vst3_lane_p16): Likewise.
2079 (vst3_lane_p64): Likewise.
2080 (vst3_lane_s8): Likewise.
2081 (vst3_lane_s16): Likewise.
2082 (vst3_lane_s32): Likewise.
2083 (vst3_lane_s64): Likewise.
2084 (vst3_lane_u8): Likewise.
2085 (vst3_lane_u16): Likewise.
2086 (vst3_lane_u32): Likewise.
2087 (vst3_lane_u64): Likewise.
2088 (vst3_lane_bf16): Likewise.
2089 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
2090 structure instead of using a union.
2091 (vst3q_lane_f32): Likewise.
2092 (vst3q_lane_f64): Likewise.
2093 (vst3q_lane_p8): Likewise.
2094 (vst3q_lane_p16): Likewise.
2095 (vst3q_lane_p64): Likewise.
2096 (vst3q_lane_s8): Likewise.
2097 (vst3q_lane_s16): Likewise.
2098 (vst3q_lane_s32): Likewise.
2099 (vst3q_lane_s64): Likewise.
2100 (vst3q_lane_u8): Likewise.
2101 (vst3q_lane_u16): Likewise.
2102 (vst3q_lane_u32): Likewise.
2103 (vst3q_lane_u64): Likewise.
2104 (vst3q_lane_bf16): Likewise.
2106 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
2108 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
2109 (__ST4Q_LANE_FUNC): Delete.
2110 (vst4_lane_f16): Use __builtin_memcpy to copy vector
2111 structure instead of constructing __builtin_aarch64_simd_xi
2112 one vector at a time.
2113 (vst4_lane_f32): Likewise.
2114 (vst4_lane_f64): Likewise.
2115 (vst4_lane_p8): Likewise.
2116 (vst4_lane_p16): Likewise.
2117 (vst4_lane_p64): Likewise.
2118 (vst4_lane_s8): Likewise.
2119 (vst4_lane_s16): Likewise.
2120 (vst4_lane_s32): Likewise.
2121 (vst4_lane_s64): Likewise.
2122 (vst4_lane_u8): Likewise.
2123 (vst4_lane_u16): Likewise.
2124 (vst4_lane_u32): Likewise.
2125 (vst4_lane_u64): Likewise.
2126 (vst4_lane_bf16): Likewise.
2127 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
2128 structure instead of using a union.
2129 (vst4q_lane_f32): Likewise.
2130 (vst4q_lane_f64): Likewise.
2131 (vst4q_lane_p8): Likewise.
2132 (vst4q_lane_p16): Likewise.
2133 (vst4q_lane_p64): Likewise.
2134 (vst4q_lane_s8): Likewise.
2135 (vst4q_lane_s16): Likewise.
2136 (vst4q_lane_s32): Likewise.
2137 (vst4q_lane_s64): Likewise.
2138 (vst4q_lane_u8): Likewise.
2139 (vst4q_lane_u16): Likewise.
2140 (vst4q_lane_u32): Likewise.
2141 (vst4q_lane_u64): Likewise.
2142 (vst4q_lane_bf16): Likewise.
2144 2021-08-06 Martin Liska <mliska@suse.cz>
2146 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
2147 a target option is restored, it can have
2148 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
2149 and error should not be emitted.
2151 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
2153 * gcov-io.h (gcov_write): Declare.
2154 * gcov-io.c (gcov_write): New.
2155 (gcov_write_counter): Remove.
2156 (gcov_write_tag_length): Likewise.
2157 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
2158 gcov_write_unsigned().
2159 * doc/invoke.texi (fprofile-info-section): Mention
2160 __gcov_info_to_gdca().
2162 2021-08-06 Martin Sebor <msebor@redhat.com>
2164 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
2165 arguments to by-reference.
2166 (iterate_fix_dominators): Same.
2167 * dominance.h (iterate_fix_dominators): Same.
2168 * ipa-prop.h: Call auto_vec::to_vec_legacy.
2169 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
2170 arguments to by-reference.
2171 (debug_data_dependence_relation): Same.
2172 (dump_data_dependence_relations): Same.
2173 * tree-data-ref.h (debug_data_dependence_relation): Same.
2174 (dump_data_dependence_relations): Same.
2175 * tree-predcom.c (dump_chains): Same.
2176 (initialize_root_vars_lm): Same.
2177 (determine_unroll_factor): Same.
2178 (replace_phis_by_defined_names): Same.
2179 (insert_init_seqs): Same.
2180 (pcom_worker::tree_predictive_commoning_loop): Call
2181 auto_vec::to_vec_legacy.
2182 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
2183 arguments to by-reference.
2184 * tree-ssa-threadbackward.c (populate_worklist): Same.
2185 (back_threader::resolve_def): Same.
2186 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
2187 (vect_enhance_data_refs_alignment): Same.
2188 (vect_check_lower_bound): Same.
2189 (vect_prune_runtime_alias_test_list): Same.
2190 (vect_permute_store_chain): Same.
2191 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
2192 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
2193 * tree-vectorizer.h (vect_permute_store_chain): Same.
2194 * vec.c (test_init): New function.
2195 (vec_c_tests): Call new function.
2196 * vec.h (vec): Declare ctors, dtor, and assignment.
2197 (auto_vec::vec_to_legacy): New function.
2198 (vec::copy): Adjust initialization.
2200 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
2203 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
2204 callee only uses GPRs.
2205 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
2206 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
2207 * config/i386/x86gprintrin.h: Add
2208 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
2209 to disable non-GPR ISAs.
2211 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
2213 PR middle-end/101787
2214 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
2216 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
2218 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
2219 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
2220 (vect_is_extending_load, vect_is_integer_truncation): New functions,
2221 moved from aarch64.c but given different names.
2222 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
2223 (aarch64_is_reduction, aarch64_reduc_type)
2224 (aarch64_embedded_comparison_type, aarch64_comparison_type)
2225 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
2226 in favor of the above. Update callers accordingly.
2228 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
2231 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
2232 writing .cpu directive in asm output.
2233 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
2234 (arm_last_printed_arch_string): Delete.
2235 (arm_last-printed_fpu_string): Delete.
2236 (arm_configure_build_target): If use of floating-point/SIMD is
2237 disabled, remove all fp/simd related features from the target ISA.
2238 (last_arm_targ_options): New variable.
2239 (arm_print_asm_arch_directives): Add new parameters. Change order
2240 of emitted directives and handle all cases here.
2241 (arm_file_start): Always call arm_print_asm_arch_directives, move
2242 all generation of .arch/.arch_extension here.
2243 (arm_file_end): Call arm_print_asm_arch.
2244 (arm_declare_function_name): Call arm_print_asm_arch_directives
2245 instead of printing .arch/.fpu directives directly.
2247 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
2249 * config/arm/arm.c (arm_configure_build_target): Don't call
2250 arm_option_reconfigure_globals.
2251 (arm_option_restore): Call arm_option_reconfigure_globals after
2252 reconfiguring the target.
2253 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
2255 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
2257 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
2258 arch_name is always set.
2260 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
2262 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
2263 of vec_select high-half from being added into Neon subtract
2266 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
2268 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
2269 of vec_select high-half from being added into Neon add cost.
2271 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
2273 * cfgloop.h (loops_list::loops_list): Add one optional argument
2274 root and adjust accordingly, update loop tree walking and factor
2276 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
2278 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
2280 PR tree-optimization/101626
2281 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
2282 reverse scalar storage order on a pointer or vector component.
2284 2021-08-05 liuhongt <hongtao.liu@intel.com>
2286 * config/i386/sse.md (cond_<code><mode>): New expander.
2288 2021-08-05 liuhongt <hongtao.liu@intel.com>
2290 * config/i386/sse.md (cond_<code><mode>): New expander.
2292 2021-08-05 liuhongt <hongtao.liu@intel.com>
2294 * config/i386/sse.md (cond_<code><mode>): New expander.
2296 2021-08-04 David Malcolm <dmalcolm@redhat.com>
2299 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
2301 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
2304 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
2305 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
2307 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
2310 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
2311 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
2312 data with SSE register from one memory location to another.
2314 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2316 * config/s390/s390.c (expand_perm_with_vpdi): New function.
2317 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
2318 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
2319 parameterized expander.
2320 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
2322 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2324 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
2325 (struct expand_vec_perm_d): Define struct.
2326 (expand_perm_with_merge): New function.
2327 (vectorize_vec_perm_const_1): New function.
2328 (s390_vectorize_vec_perm_const): New function.
2329 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
2331 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2333 * config/s390/vector.md (V_HW_64): Remove mode iterator.
2334 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
2335 * config/s390/vx-builtins.md
2336 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
2339 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2341 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
2343 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
2345 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
2346 instead of an unspec.
2348 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2350 * config/s390/s390-modes.def: Add more vector modes to support
2351 concatenation of two vectors.
2352 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
2354 (s390_expand_merge): Likewise.
2355 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
2356 (s390_expand_merge): New function.
2357 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
2358 Remove constant definitions.
2359 * config/s390/vector.md (V_HW_2): Add mode iterators.
2360 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
2361 (vec_2x_nelts, vec_2x_wide): New mode attributes.
2362 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
2363 New pattern definitions.
2364 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
2365 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
2366 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
2367 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
2369 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
2371 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
2372 emit vec merge pattern.
2374 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
2376 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
2378 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
2379 vec_select high-half from being added into Neon multiply
2381 * rtlanal.c (vec_series_highpart_p): Define.
2382 * rtlanal.h (vec_series_highpart_p): Declare.
2384 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
2386 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
2388 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
2389 vec_select cost from being added into Neon multiply cost.
2391 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
2393 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
2394 which old_loop_vinfo is an epilogue loop that handles a constant
2395 number of iterations.
2397 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
2399 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
2400 when a reanalyzed loop fails to be cheaper than the current
2403 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
2405 * config/aarch64/aarch64.c: Fix a typo.
2407 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
2409 PR gcov-profile/101773
2410 * gcov-io.c (gcov_close): Check return code of a fclose.
2412 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
2415 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
2416 .file statement when needed.
2418 2021-08-04 Richard Biener <rguenther@suse.de>
2420 * tree-vect-data-refs.c (vect_check_gather_scatter):
2421 Include widening conversions only when the result is
2422 still handed by native gather or the current offset
2423 size not already matches the data size.
2424 Also succeed analysis in case there's no native support,
2425 noted by a IFN_LAST ifn and a NULL decl.
2426 (vect_analyze_data_refs): Always consider gathers.
2427 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
2428 Test for no IFN gather rather than decl gather.
2429 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
2430 gather-scatter info and cost emulated gathers accordingly.
2431 (vect_truncate_gather_scatter_offset): Properly test for
2433 (vect_use_strided_gather_scatters_p): Likewise.
2434 (get_load_store_type): Handle emulated gathers and its
2436 (vectorizable_load): Likewise. Emulate them by extracting
2437 scalar offsets, doing scalar loads and a vector construct.
2439 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
2442 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
2443 argument to set m_max_size.
2444 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
2445 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
2446 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
2448 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
2449 Marc Glisse <marc.glisse@inria.fr>
2451 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
2452 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
2453 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
2455 2021-08-04 Richard Biener <rguenther@suse.de>
2457 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
2458 out code to decompose vector loads ...
2459 (optimize_vector_load): ... here. Generalize it to
2460 handle intermediate widening and TARGET_MEM_REF loads
2461 and apply it to loads with a supported vector mode as well.
2463 2021-08-04 Richard Biener <rguenther@suse.de>
2465 PR tree-optimization/101756
2466 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
2467 the result of the reduction epilogue is compatible to the original
2470 2021-08-04 liuhongt <hongtao.liu@intel.com>
2473 * config/i386/i386.md (peephole2): Refine predicate from
2474 register_operand to general_reg_operand.
2476 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
2478 * gimple-range-path.h (path_range_query::dump): Mark override.
2480 2021-08-04 Richard Biener <rguenther@suse.de>
2482 PR tree-optimization/101769
2483 * tree-tailcall.c (eliminate_tail_call): Add the created loop
2484 for the first recursion and return it via the new output parameter.
2485 (optimize_tail_call): Pass through new output param.
2486 (tree_optimize_tail_calls_1): After creating all latches,
2487 add the created loop to the loop tree. Do not mark loops for fixup.
2489 2021-08-04 Martin Liska <mliska@suse.cz>
2491 * doc/invoke.texi: Document threader-mode param.
2493 2021-08-04 liuhongt <hongtao.liu@intel.com>
2495 * config/i386/sse.md (cond_fma<mode>): New expander.
2496 (cond_fms<mode>): Ditto.
2497 (cond_fnma<mode>): Ditto.
2498 (cond_fnms<mode>): Ditto.
2500 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
2502 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
2504 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
2506 * config/rs6000/constraints.md: Remove "e" from the list of available
2507 constraint characters.
2509 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
2511 PR gcov-profile/71672
2512 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
2514 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
2516 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
2518 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
2520 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
2521 try XMM31 to avoid vzeroupper.
2523 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2525 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
2526 -mcpu=neoverse-512tvb.
2527 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
2528 * config/aarch64/aarch64-tune.md: Regenerate.
2529 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
2530 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
2531 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
2532 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
2533 (aarch64_adjust_body_cost): Likewise.
2535 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2537 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
2538 record issue information for operations that occur in the
2541 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2543 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
2544 parameter. Detect cases in which an Advanced SIMD MLA would almost
2545 certainly require a MOV.
2546 (aarch64_count_ops): Update accordingly.
2548 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2550 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
2551 function, split out from...
2552 (aarch64_detect_vector_stmt_subtype): ...here.
2553 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
2555 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2557 * config/aarch64/aarch64-protos.h (sve_vec_cost):
2558 Add gather_load_x32_cost and gather_load_x64_cost.
2559 * config/aarch64/aarch64.c (generic_sve_vector_cost)
2560 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
2561 accordingly, using the values given by the scalar_load * number
2562 of elements calculation that we used previously.
2563 (aarch64_detect_vector_stmt_subtype): Use the new fields.
2565 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2567 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
2568 function, split out from...
2569 (aarch64_adjust_body_cost): ...here.
2571 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2573 * config/aarch64/fractional-cost.h: New file.
2574 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
2575 and cost_fraction.h.
2576 (vec_cost_fraction): New typedef.
2577 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
2578 (aarch64_detect_vector_stmt_subtype): Likewise.
2579 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
2580 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
2582 (aarch64_adjust_body_cost): Likewise.
2583 (aarch64_test_cost_fraction): New function.
2584 (aarch64_run_selftests): Call it.
2586 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2588 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
2590 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
2592 (aarch64_estimated_poly_value): Likewise. Use the least significant
2593 set bit for the minimum and likely values. Use the most significant
2594 set bit for the maximum value.
2596 2021-08-03 liuhongt <hongtao.liu@intel.com>
2598 * config/i386/sse.md (cond_<insn><mode>): New expander.
2599 (cond_mul<mode>): Ditto.
2601 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
2603 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
2605 2021-08-03 liuhongt <hongtao.liu@intel.com>
2607 * config/i386/sse.md (cond_<insn><mode>):New expander.
2608 (cond_mul<mode>): Ditto.
2609 (cond_div<mode>): Ditto.
2611 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
2613 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
2614 check stack_realign_needed for stack realignment.
2615 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
2616 than the largest integer supported by vector register.
2617 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
2618 (MOVE_MAX): Set to bytes of the largest integer supported by
2620 (STORE_MAX_PIECES): New.
2622 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
2624 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
2625 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
2626 data from one memory location to another.
2628 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
2631 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
2633 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
2635 PR tree-optimization/101724
2636 * params.opt: Remove --param=threader-iterative.
2637 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
2640 2021-08-02 Tom de Vries <tdevries@suse.de>
2642 PR middle-end/101665
2643 * doc/extend.texi (nonnull attribute): Improve documentation.
2645 2021-08-02 Andrew Pinski <apinski@marvell.com>
2647 PR rtl-optimization/101683
2648 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
2650 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
2652 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
2653 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
2654 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
2655 (tree_ssa_phiop_worker): Update call to function above.
2657 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
2660 * config/i386/i386.md (bsr_rex64_1_zext): New.
2661 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
2662 with gen_bsr_rex64_1_zext.
2664 2021-07-31 Jakub Jelinek <jakub@redhat.com>
2667 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
2668 define_insn patterns.
2669 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
2670 Add combine splitters for constant - clz.
2671 (clz<mode>2): Use a temporary pseudo for bsr result.
2673 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
2675 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
2676 _mm_floor_sd, _mm_floor_ss): New.
2678 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
2680 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
2681 _mm_ceil_sd, _mm_ceil_ss): New.
2683 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
2685 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
2686 _mm_blend_ps, _mm_blendv_ps): New.
2688 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
2689 Uroš Bizjak <ubizjak@gmail.com>
2691 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
2692 to generate a conditional move using the carry flag after sub $1.
2693 (peephole2): Eliminate a register-to-register move by inverting
2694 the condition of a conditional move.
2696 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
2698 * config/mmix/mmix.md ("call", "call_value", "*call_real")
2699 ("*call_value_real"): Don't generate rtx mentioning the generic
2700 operands 1 and 2 to "call", and similarly for "call_value".
2701 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
2702 (mmix_print_operand): Use '!' instead of 'p'.
2704 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
2706 * doc/md.texi (call): Correct information about operand 2.
2707 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
2709 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
2711 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
2713 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
2715 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
2717 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
2719 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
2721 (*::get_bb_range): Ditto.
2722 (*::bb_range_p): Ditto.
2723 * gimple-range-cache.h: Change prototypes.
2725 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
2728 * builtins.c (builtin_memcpy_read_str): Change the mode argument
2729 from scalar_int_mode to fixed_size_mode.
2730 (builtin_strncpy_read_str): Likewise.
2731 (gen_memset_value_from_prev): New function.
2732 (builtin_memset_read_str): Change the mode argument from
2733 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
2734 and support CONST_VECTOR.
2735 (builtin_memset_gen_str): Likewise.
2736 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
2738 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
2739 with fixed_size_mode.
2740 (builtin_memset_read_str): Likewise.
2741 * expr.c (widest_int_mode_for_size): Renamed to ...
2742 (widest_fixed_size_mode_for_size): Add a bool argument to
2743 indicate if QI vector mode can be used.
2744 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
2745 instead of widest_int_mode_for_size.
2746 (pieces_addr::adjust): Change the mode argument from
2747 scalar_int_mode to fixed_size_mode.
2748 (op_by_pieces_d): Make m_len read-only. Add a bool member,
2749 m_qi_vector_mode, to indicate that QI vector mode can be used.
2750 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
2751 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
2752 instead of widest_int_mode_for_size.
2753 (op_by_pieces_d::get_usable_mode): Change the mode argument from
2754 scalar_int_mode to fixed_size_mode. Call
2755 widest_fixed_size_mode_for_size instead of
2756 widest_int_mode_for_size.
2757 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
2758 function to return the smallest integer or QI vector mode.
2759 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
2760 instead of widest_int_mode_for_size. Call
2761 smallest_fixed_size_mode_for_size instead of
2762 smallest_int_mode_for_size.
2763 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
2764 indicate that QI vector mode can be used and pass it to
2765 op_by_pieces_d::op_by_pieces_d.
2766 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
2767 instead of widest_int_mode_for_size. Pass memsetp to
2768 widest_fixed_size_mode_for_size to support QI vector mode.
2769 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
2770 (store_by_pieces): Pass memsetp to
2771 store_by_pieces_d::store_by_pieces_d.
2772 (clear_by_pieces_1): Removed.
2773 (clear_by_pieces): Replace clear_by_pieces_1 with
2774 builtin_memset_read_str and pass true to store_by_pieces_d to
2775 support vector mode broadcast.
2776 (string_cst_read_str): Change the mode argument from
2777 scalar_int_mode to fixed_size_mode.
2778 * expr.h (by_pieces_constfn): Change scalar_int_mode to
2780 (by_pieces_prev): Likewise.
2781 * rtl.h (lowpart_subreg_regno): New.
2782 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
2783 simplify_subreg_regno.
2784 * target.def (gen_memset_scratch_rtx): New hook.
2785 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
2786 * doc/tm.texi: Regenerated.
2788 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
2791 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
2792 TARGET_EXPR instead of MODIFY_EXPR.
2794 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
2797 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
2798 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
2799 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
2801 (vec_cmpu<IMSA:mode><mode_i>): New expander.
2803 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
2806 * config/i386/i386-options.c (ix86_option_override_internal):
2807 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
2809 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
2812 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
2813 explicitly dereferencing __a.
2814 (vld1_s64): Likewise.
2815 (vld1_u64): Likewise.
2816 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
2817 and change to VAR13.
2819 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
2821 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
2822 use of m_range_analyzer.
2823 (loop_versioning::lv_dom_walker::before_dom_children): Same.
2824 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
2825 (loop_versioning::prune_loop_conditions): Replace vr_values use
2826 with range_query interface.
2827 (pass_loop_versioning::execute): Use ranger.
2829 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
2832 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
2833 enum values, and emit a warning if they mismatch.
2835 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
2837 * cfgloop.h (as_const): New function.
2838 (class loop_iterator): Rename to ...
2839 (class loops_list): ... this.
2840 (loop_iterator::next): Rename to ...
2841 (loops_list::Iter::fill_curr_loop): ... this and adjust.
2842 (loop_iterator::loop_iterator): Rename to ...
2843 (loops_list::loops_list): ... this and adjust.
2844 (loops_list::Iter): New class.
2845 (loops_list::iterator): New type.
2846 (loops_list::const_iterator): New type.
2847 (loops_list::begin): New function.
2848 (loops_list::end): Likewise.
2849 (loops_list::begin const): Likewise.
2850 (loops_list::end const): Likewise.
2851 (FOR_EACH_LOOP): Remove.
2852 (FOR_EACH_LOOP_FN): Remove.
2853 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
2854 for loop with loops_list instance.
2855 (sort_sibling_loops): Likewise.
2856 (disambiguate_loops_with_multiple_latches): Likewise.
2857 (verify_loop_structure): Likewise.
2858 * cfgloopmanip.c (create_preheaders): Likewise.
2859 (force_single_succ_latches): Likewise.
2860 * config/aarch64/falkor-tag-collision-avoidance.c
2861 (execute_tag_collision_avoidance): Likewise.
2862 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
2863 * config/s390/s390.c (s390_adjust_loops): Likewise.
2864 * doc/loop.texi: Likewise.
2865 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
2866 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
2867 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
2868 (loop_versioning::make_versioning_decisions): Likewise.
2869 * gimple-ssa-split-paths.c (split_paths): Likewise.
2870 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
2871 * graphite.c (canonicalize_loop_form): Likewise.
2872 (graphite_transform_loops): Likewise.
2873 * ipa-fnsummary.c (analyze_function_body): Likewise.
2874 * ipa-pure-const.c (analyze_function): Likewise.
2875 * loop-doloop.c (doloop_optimize_loops): Likewise.
2876 * loop-init.c (loop_optimizer_finalize): Likewise.
2877 (fix_loop_structure): Likewise.
2878 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2879 (move_loop_invariants): Likewise.
2880 * loop-unroll.c (decide_unrolling): Likewise.
2881 (unroll_loops): Likewise.
2882 * modulo-sched.c (sms_schedule): Likewise.
2883 * predict.c (predict_loops): Likewise.
2884 (pass_profile::execute): Likewise.
2885 * profile.c (branch_prob): Likewise.
2886 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
2887 (sel_find_rgns): Likewise.
2888 * tree-cfg.c (replace_loop_annotate): Likewise.
2889 (replace_uses_by): Likewise.
2890 (move_sese_region_to_fn): Likewise.
2891 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
2892 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
2893 * tree-parloops.c (parallelize_loops): Likewise.
2894 * tree-predcom.c (tree_predictive_commoning): Likewise.
2895 * tree-scalar-evolution.c (scev_initialize): Likewise.
2896 (scev_reset): Likewise.
2897 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
2898 * tree-ssa-live.c (remove_unused_locals): Likewise.
2899 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
2900 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2901 (tree_ssa_lim_initialize): Likewise.
2902 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
2903 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
2904 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
2905 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
2906 (free_numbers_of_iterations_estimates): Likewise.
2907 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
2908 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
2909 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
2910 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
2911 (pass_scev_cprop::execute): Likewise.
2912 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
2913 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
2914 * tree-ssa-threadupdate.c
2915 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
2916 * tree-vectorizer.c (vectorize_loops): Likewise.
2917 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
2919 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
2921 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
2922 generating a VOIDmode register for e.g the
2923 function_arg_info::end_marker.
2925 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
2927 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
2928 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
2929 (cc mode_attr): Similarly.
2930 (ccz subst_attr): Similarly.
2931 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
2932 * config/h8300/testcompare.md: Remove various cc0 based patterns
2933 that had been commented out. Add pattern to set CCZ from a bit
2936 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
2937 Julian Brown <julian@codesourcery.com>
2938 Kwok Cheung Yeung <kcy@codesourcery.com>
2940 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
2941 'update_stmt' after modification.
2942 (pass_oacc_loop_designation): New function, extracted out of...
2943 (pass_oacc_device_lower): ... this.
2944 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
2945 (make_pass_oacc_loop_designation): New
2946 * passes.def: Add it.
2947 * tree-parloops.c (create_parallel_loop): Adjust.
2948 * tree-pass.h (make_pass_oacc_loop_designation): New.
2950 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
2952 * flag-types.h (enum threader_mode): New.
2953 * params.opt: Add entry for --param=threader-mode.
2954 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
2955 (class back_threader): New.
2956 (back_threader::back_threader): New.
2957 (back_threader::~back_threader): New.
2958 (back_threader::maybe_register_path): New.
2959 (back_threader::find_taken_edge): New.
2960 (back_threader::find_taken_edge_switch): New.
2961 (back_threader::find_taken_edge_cond): New.
2962 (back_threader::resolve_def): New.
2963 (back_threader::resolve_phi): New.
2964 (back_threader::find_paths_to_names): New.
2965 (back_threader::find_paths): New.
2968 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
2969 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
2970 (pass_thread_jumps::execute): Abstract out code...
2971 (try_thread_blocks): ...here.
2972 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
2973 Abstract out threading candidate code to...
2974 (single_succ_to_potentially_threadable_block): ...here.
2975 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
2977 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
2978 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
2979 Return bool from register_jump_thread.
2981 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
2983 * target.def: in0 and in1 do not need to be registers.
2984 * doc/tm.texi: Regenerate.
2986 2021-07-29 liuhongt <hongtao.liu@intel.com>
2989 * config/i386/i386.c (ix86_widen_mult_cost): New function.
2990 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
2993 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
2996 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
2997 (rs6000_preferred_doloop_mode): New hook.
2998 * doc/tm.texi: Regenerate.
2999 * doc/tm.texi.in: Add hook preferred_doloop_mode.
3000 * target.def (preferred_doloop_mode): New hook.
3001 * targhooks.c (default_preferred_doloop_mode): New hook.
3002 * targhooks.h (default_preferred_doloop_mode): New hook.
3003 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
3004 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
3005 and compute_doloop_base_on_mode.
3007 2021-07-28 Martin Sebor <msebor@redhat.com>
3009 PR middle-end/101494
3010 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
3011 and size computation.
3013 2021-07-28 Martin Sebor <msebor@redhat.com>
3015 PR middle-end/101601
3016 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
3018 Handle pointers to functions.
3020 2021-07-28 Martin Sebor <msebor@redhat.com>
3022 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
3023 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
3024 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
3025 (access_ref::access_ref): Same.
3026 (access_ref::phi): Same.
3027 (access_ref::get_ref): Same.
3028 (access_ref::size_remaining): Same.
3029 (access_ref::offset_in_range): Same.
3030 (access_ref::add_offset): Same.
3031 (access_ref::inform_access): Same.
3032 (ssa_name_limit_t::visit_phi): Same.
3033 (ssa_name_limit_t::leave_phi): Same.
3034 (ssa_name_limit_t::next): Same.
3035 (ssa_name_limit_t::next_phi): Same.
3036 (ssa_name_limit_t::~ssa_name_limit_t): Same.
3037 (pointer_query::pointer_query): Same.
3038 (pointer_query::get_ref): Same.
3039 (pointer_query::put_ref): Same.
3040 (pointer_query::flush_cache): Same.
3041 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
3042 (check_nul_terminated_array): Same.
3043 (unterminated_array): Same.
3044 (maybe_warn_for_bound): Same.
3045 (check_read_access): Same.
3046 (warn_for_access): Same.
3047 (get_size_range): Same.
3048 (check_access): Same.
3049 (gimple_call_alloc_size): Move to tree.c.
3050 (gimple_parm_array_size): Move to pointer-query.cc.
3051 (get_offset_range): Same.
3052 (gimple_call_return_array): Same.
3053 (handle_min_max_size): Same.
3054 (handle_array_ref): Same.
3055 (handle_mem_ref): Same.
3056 (compute_objsize): Same.
3057 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
3058 (call_dealloc_argno): Same.
3059 (fndecl_dealloc_argno): Same.
3060 (new_delete_mismatch_p): Same.
3061 (matching_alloc_calls_p): Same.
3062 (warn_dealloc_offset): Same.
3063 (maybe_emit_free_warning): Same.
3064 * builtins.h (check_nul_terminated_array): Move to
3065 gimple-ssa-warn-access.h.
3066 (check_nul_terminated_array): Same.
3067 (warn_string_no_nul): Same.
3068 (unterminated_array): Same.
3069 (class ssa_name_limit_t): Same.
3070 (class pointer_query): Same.
3071 (struct access_ref): Same.
3072 (class range_query): Same.
3073 (struct access_data): Same.
3074 (gimple_call_alloc_size): Same.
3075 (gimple_parm_array_size): Same.
3076 (compute_objsize): Same.
3077 (class access_data): Same.
3078 (maybe_emit_free_warning): Same.
3079 * calls.c (initialize_argument_information): Remove call to
3080 maybe_emit_free_warning.
3081 * gimple-array-bounds.cc: Include new header..
3082 * gimple-fold.c: Same.
3083 * gimple-ssa-sprintf.c: Same.
3084 * gimple-ssa-warn-restrict.c: Same.
3085 * passes.def: Add pass_warn_access.
3086 * tree-pass.h (make_pass_warn_access): Declare.
3087 * tree-ssa-strlen.c: Include new headers.
3088 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
3089 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
3090 * gimple-ssa-warn-access.cc: New file.
3091 * gimple-ssa-warn-access.h: New file.
3092 * pointer-query.cc: New file.
3093 * pointer-query.h: New file.
3095 2021-07-28 Jakub Jelinek <jakub@redhat.com>
3097 PR middle-end/101624
3098 * ubsan.c (maybe_instrument_pointer_overflow,
3099 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
3100 PARM_DECLs or RESULT_DECLs.
3101 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
3103 2021-07-28 Jakub Jelinek <jakub@redhat.com>
3105 PR middle-end/101642
3106 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
3107 to type of bswap16 for comparison.
3108 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
3110 2021-07-28 Richard Biener <rguenther@suse.de>
3112 PR tree-optimization/101615
3113 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
3114 at CTOR SLP graph entries.
3116 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3118 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
3119 Add "r,w" alternative.
3121 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
3124 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
3125 AVX_U128_DIRTY when all bits are zero.
3127 2021-07-28 Richard Biener <rguenther@suse.de>
3129 PR tree-optimization/101615
3130 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
3131 external nodes cannot be permuted so make them perm_out 0.
3133 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
3136 * config.in: Regenerate.
3137 * config/gcn/gcn-hsa.h (A_FIJI): New define.
3138 (A_900): New define.
3139 (A_906): New define.
3140 (A_908): New define.
3141 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
3142 * config/gcn/gcn.c (output_file_start): Adjust attributes according
3143 to the assembler capabilities.
3144 * config/gcn/mkoffload.c (main): Likewise.
3145 * configure: Regenerate.
3146 * configure.ac: Add tests for LLVM assembler attribute features.
3148 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
3150 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
3151 cond_false and cond_true on branches.
3153 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
3155 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
3158 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
3160 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
3162 2021-07-28 Jakub Jelinek <jakub@redhat.com>
3165 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
3166 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
3167 and has special !TARGET_AVX512VL expansion.
3168 (vashrv2di3<mask_name>): Rename to ...
3169 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
3170 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
3172 2021-07-28 Martin Uecker <muecker@gwdg.de>
3174 * calls.c (maybe_warn_rdwr_sizes): Correct argument
3175 numbers in warning that were switched.
3177 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
3179 PR tree-optimization/101596
3180 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
3181 by using new_type's precision instead.
3183 2021-07-28 liuhongt <hongtao.liu@intel.com>
3186 * config/i386/i386.h (processor_costs): Add new member
3188 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
3189 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
3190 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
3191 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
3192 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
3193 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
3194 generic_cost, core_cost): Initialize integer_to_sse same value
3196 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
3197 * config/i386/i386.c (ix86_builtin_vectorization_cost):
3198 Use integer_to_sse instead of sse_op to calculate the cost of
3201 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
3203 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
3205 (write_init_file): Call write_ovld_static_init.
3207 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
3209 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
3211 (write_init_file): Call write_bif_static_init.
3213 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
3215 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
3216 (TYPE_MAP_SIZE): New macro.
3217 (type_map): New initialized variable.
3218 (typemap_cmp): New function.
3219 (write_type_node): Likewise.
3220 (write_fntype_init): Implement.
3222 2021-07-27 Martin Sebor <msebor@redhat.com>
3224 PR tree-optimization/101584
3225 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
3226 (check_defs): Call it.
3228 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
3230 * tree-ssa-dom.c (dom_jump_threader_simplifier):
3231 Put avail_exprs_stack in the class, instead of passing it to
3232 jump_threader_simplifier.
3233 (dom_jump_threader_simplifier::simplify): Add state argument.
3234 (dom_opt_dom_walker): Add state.
3235 (pass_dominator::execute): Pass state to threader.
3236 (dom_opt_dom_walker::before_dom_children): Use state.
3237 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
3239 (jump_threader::record_temporary_equivalences_from_phis):
3240 Register equivalences through the state variable.
3241 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
3242 Record ranges in a statement through the state variable.
3243 (jump_threader::simplify_control_stmt_condition): Pass state to
3245 (jump_threader::simplify_control_stmt_condition_1): Same.
3246 (jump_threader::thread_around_empty_blocks): Remove obsolete
3248 (jump_threader::thread_through_normal_block): Record equivalences
3249 on edge through the state variable.
3250 (jump_threader::thread_across_edge): Abstract state pushing.
3251 (jt_state::jt_state): New.
3252 (jt_state::push): New.
3253 (jt_state::pop): New.
3254 (jt_state::register_equiv): New.
3255 (jt_state::record_ranges_from_stmt): New.
3256 (jt_state::register_equivs_on_edge): New.
3257 (jump_threader_simplifier::jump_threader_simplifier): Move from
3259 (jump_threader_simplifier::simplify): Add state argument.
3260 * tree-ssa-threadedge.h (class jt_state): New.
3261 (class jump_threader): Add state to constructor.
3262 (class jump_threader_simplifier): Add state to simplify. Remove
3263 avail_exprs_stack from class.
3264 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
3266 (vrp_jump_threader::vrp_jump_threader): Add state.
3267 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
3269 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
3271 * Makefile.in (OBJS): Add gimple-range-path.o.
3272 * gimple-range-path.cc: New file.
3273 * gimple-range-path.h: New file.
3275 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
3277 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
3278 inside vec_duplicate for all patterns.
3279 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
3280 Push sign/zero-extension inside vec_duplicate.
3282 2021-07-27 Richard Biener <rguenther@suse.de>
3284 PR tree-optimization/101573
3285 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
3286 looking at uninitialized PHI arg defs in some constrained cases.
3287 (warn_uninitialized_vars): Call it.
3288 (execute_early_warn_uninitialized): Calculate dominators.
3290 2021-07-27 Richard Biener <rguenther@suse.de>
3292 PR tree-optimization/39821
3293 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
3294 vector_stmt for widening arithmetic.
3295 (vectorizable_conversion): Adjust.
3297 2021-07-27 Martin Jambor <mjambor@suse.cz>
3299 * cgraph.h (ipa_replace_map): New field force_load_ref.
3300 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
3301 aded new flag load_dereferenced, adjusted comments.
3302 (ipa_get_param_dereferenced): New function.
3303 (ipa_set_param_dereferenced): Likewise.
3304 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
3305 * ipa-cp.c: Include gimple.h.
3306 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
3307 (get_replacement_map): New parameter force_load_ref, set the
3308 appropriate flag in ipa_replace_map if set.
3309 (struct symbol_and_index_together): New type.
3310 (adjust_refs_in_act_callers): New function.
3311 (adjust_references_in_caller): Likewise.
3312 (create_specialized_node): When appropriate, call
3313 adjust_references_in_caller and force only load references.
3314 * ipa-prop.c (load_from_dereferenced_name): New function.
3315 (ipa_analyze_controlled_uses): Also detect loads from a
3316 dereference, harden testing of call statements.
3317 (ipa_write_node_info): Stream the dereferenced flag.
3318 (ipa_read_node_info): Likewise.
3319 (ipa_set_jf_constant): Also create refdesc when jump function
3320 references a variable.
3321 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
3322 also on references of variables and return a symtab_node. Adjust
3324 (propagate_controlled_uses): Also remove references to VAR_DECLs.
3326 2021-07-27 Jakub Jelinek <jakub@redhat.com>
3328 PR middle-end/101586
3329 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
3330 positions above or equal to sz except for diagnostics of flexible
3333 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
3335 PR tree-optimization/78888
3336 * gimple-range-fold.cc (get_letter_range): New.
3337 (fold_using_range::range_of_builtin_call): Call get_letter_range.
3339 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
3341 PR tree-optimization/78888
3342 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
3343 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
3345 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
3346 Marc Glisse <marc.glisse@inria.fr>
3348 * match.pd (rotate): Simplify equality/inequality of rotations.
3349 (bswap): Simplify equality/inequality tests of byte swapping.
3351 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
3353 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
3356 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
3358 * range-op.cc (operator_lshift::fold_range): Pass rel to
3359 base class fold_range.
3360 (operator_rshift::fold_range): Same.
3362 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
3365 * toplev.h (min_align_loops_log): Remove declaration.
3366 (min_align_jumps_log, min_align_labels_log): Likewise.
3367 (min_align_functions_log): Likewise.
3369 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
3371 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
3373 (execute_vrp): Abstract out simplification of conditionals...
3374 (simplify_casted_conds): ...here.
3376 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
3378 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
3379 Add gimple argument.
3380 (array_bounds_checker::check_array_ref): Same.
3381 (array_bounds_checker::check_addr_expr): Same.
3382 (array_bounds_checker::check_array_bounds): Pass statement to
3383 check_array_bounds and check_addr_expr.
3384 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
3385 (check_addr_expr): Same.
3386 (get_value_range): Same.
3388 2021-07-26 Tamar Christina <tamar.christina@arm.com>
3390 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
3391 (sdot_prod, udot_prod): ... This.
3392 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
3394 (<sur>dot_prod<vsi2qi>): ... this.
3395 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
3396 Change operands order.
3397 (<sur>sadv16qi): Use new operands order.
3398 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
3399 vdotq_s32): Use new RTL ordering.
3401 2021-07-26 Tamar Christina <tamar.christina@arm.com>
3403 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
3404 aarch64_types_ternop_suss_qualifiers): New.
3405 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
3406 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
3407 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
3409 2021-07-23 Jakub Jelinek <jakub@redhat.com>
3411 PR rtl-optimization/101562
3412 * expmed.c (store_integral_bit_field): Only use movstrict_optab
3413 if the operand isn't paradoxical.
3415 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
3417 * gimple-array-bounds.h (class array_bounds_checker): Change
3418 ranges type to range_query.
3420 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3422 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
3423 __builtin_memcpy instead of constructing
3424 __builtin_aarch64_simd_oi one vector at a time.
3425 (vst1_u64_x2): Likewise.
3426 (vst1_f64_x2): Likewise.
3427 (vst1_s8_x2): Likewise.
3428 (vst1_p8_x2): Likewise.
3429 (vst1_s16_x2): Likewise.
3430 (vst1_p16_x2): Likewise.
3431 (vst1_s32_x2): Likewise.
3432 (vst1_u8_x2): Likewise.
3433 (vst1_u16_x2): Likewise.
3434 (vst1_u32_x2): Likewise.
3435 (vst1_f16_x2): Likewise.
3436 (vst1_f32_x2): Likewise.
3437 (vst1_p64_x2): Likewise.
3438 (vst1q_s8_x2): Likewise.
3439 (vst1q_p8_x2): Likewise.
3440 (vst1q_s16_x2): Likewise.
3441 (vst1q_p16_x2): Likewise.
3442 (vst1q_s32_x2): Likewise.
3443 (vst1q_s64_x2): Likewise.
3444 (vst1q_u8_x2): Likewise.
3445 (vst1q_u16_x2): Likewise.
3446 (vst1q_u32_x2): Likewise.
3447 (vst1q_u64_x2): Likewise.
3448 (vst1q_f16_x2): Likewise.
3449 (vst1q_f32_x2): Likewise.
3450 (vst1q_f64_x2): Likewise.
3451 (vst1q_p64_x2): Likewise.
3453 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3455 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
3456 __builtin_memcpy instead of constructing
3457 __builtin_aarch64_simd_ci one vector at a time.
3458 (vst1_u64_x3): Likewise.
3459 (vst1_f64_x3): Likewise.
3460 (vst1_s8_x3): Likewise.
3461 (vst1_p8_x3): Likewise.
3462 (vst1_s16_x3): Likewise.
3463 (vst1_p16_x3): Likewise.
3464 (vst1_s32_x3): Likewise.
3465 (vst1_u8_x3): Likewise.
3466 (vst1_u16_x3): Likewise.
3467 (vst1_u32_x3): Likewise.
3468 (vst1_f16_x3): Likewise.
3469 (vst1_f32_x3): Likewise.
3470 (vst1_p64_x3): Likewise.
3471 (vst1q_s8_x3): Likewise.
3472 (vst1q_p8_x3): Likewise.
3473 (vst1q_s16_x3): Likewise.
3474 (vst1q_p16_x3): Likewise.
3475 (vst1q_s32_x3): Likewise.
3476 (vst1q_s64_x3): Likewise.
3477 (vst1q_u8_x3): Likewise.
3478 (vst1q_u16_x3): Likewise.
3479 (vst1q_u32_x3): Likewise.
3480 (vst1q_u64_x3): Likewise.
3481 (vst1q_f16_x3): Likewise.
3482 (vst1q_f32_x3): Likewise.
3483 (vst1q_f64_x3): Likewise.
3484 (vst1q_p64_x3): Likewise.
3486 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
3489 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
3490 hard register when LRA is in progress.
3492 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3494 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
3495 __builtin_memcpy instead of using a union.
3496 (vst1q_s8_x4): Likewise.
3497 (vst1_s16_x4): Likewise.
3498 (vst1q_s16_x4): Likewise.
3499 (vst1_s32_x4): Likewise.
3500 (vst1q_s32_x4): Likewise.
3501 (vst1_u8_x4): Likewise.
3502 (vst1q_u8_x4): Likewise.
3503 (vst1_u16_x4): Likewise.
3504 (vst1q_u16_x4): Likewise.
3505 (vst1_u32_x4): Likewise.
3506 (vst1q_u32_x4): Likewise.
3507 (vst1_f16_x4): Likewise.
3508 (vst1q_f16_x4): Likewise.
3509 (vst1_f32_x4): Likewise.
3510 (vst1q_f32_x4): Likewise.
3511 (vst1_p8_x4): Likewise.
3512 (vst1q_p8_x4): Likewise.
3513 (vst1_p16_x4): Likewise.
3514 (vst1q_p16_x4): Likewise.
3515 (vst1_s64_x4): Likewise.
3516 (vst1_u64_x4): Likewise.
3517 (vst1_p64_x4): Likewise.
3518 (vst1q_s64_x4): Likewise.
3519 (vst1q_u64_x4): Likewise.
3520 (vst1q_p64_x4): Likewise.
3521 (vst1_f64_x4): Likewise.
3522 (vst1q_f64_x4): Likewise.
3524 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
3526 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
3527 instead of constructing __builtin_aarch64_simd_oi one vector
3529 (vst2_u64): Likewise.
3530 (vst2_f64): Likewise.
3531 (vst2_s8): Likewise.
3532 (vst2_p8): Likewise.
3533 (vst2_s16): Likewise.
3534 (vst2_p16): Likewise.
3535 (vst2_s32): Likewise.
3536 (vst2_u8): Likewise.
3537 (vst2_u16): Likewise.
3538 (vst2_u32): Likewise.
3539 (vst2_f16): Likewise.
3540 (vst2_f32): Likewise.
3541 (vst2_p64): Likewise.
3542 (vst2q_s8): Likewise.
3543 (vst2q_p8): Likewise.
3544 (vst2q_s16): Likewise.
3545 (vst2q_p16): Likewise.
3546 (vst2q_s32): Likewise.
3547 (vst2q_s64): Likewise.
3548 (vst2q_u8): Likewise.
3549 (vst2q_u16): Likewise.
3550 (vst2q_u32): Likewise.
3551 (vst2q_u64): Likewise.
3552 (vst2q_f16): Likewise.
3553 (vst2q_f32): Likewise.
3554 (vst2q_f64): Likewise.
3555 (vst2q_p64): Likewise.
3557 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3559 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
3560 instead of constructing __builtin_aarch64_simd_ci one vector
3562 (vst3_u64): Likewise.
3563 (vst3_f64): Likewise.
3564 (vst3_s8): Likewise.
3565 (vst3_p8): Likewise.
3566 (vst3_s16): Likewise.
3567 (vst3_p16): Likewise.
3568 (vst3_s32): Likewise.
3569 (vst3_u8): Likewise.
3570 (vst3_u16): Likewise.
3571 (vst3_u32): Likewise.
3572 (vst3_f16): Likewise.
3573 (vst3_f32): Likewise.
3574 (vst3_p64): Likewise.
3575 (vst3q_s8): Likewise.
3576 (vst3q_p8): Likewise.
3577 (vst3q_s16): Likewise.
3578 (vst3q_p16): Likewise.
3579 (vst3q_s32): Likewise.
3580 (vst3q_s64): Likewise.
3581 (vst3q_u8): Likewise.
3582 (vst3q_u16): Likewise.
3583 (vst3q_u32): Likewise.
3584 (vst3q_u64): Likewise.
3585 (vst3q_f16): Likewise.
3586 (vst3q_f32): Likewise.
3587 (vst3q_f64): Likewise.
3588 (vst3q_p64): Likewise.
3590 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3592 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
3593 instead of constructing __builtin_aarch64_simd_xi one vector
3595 (vst4_u64): Likewise.
3596 (vst4_f64): Likewise.
3597 (vst4_s8): Likewise.
3598 (vst4_p8): Likewise.
3599 (vst4_s16): Likewise.
3600 (vst4_p16): Likewise.
3601 (vst4_s32): Likewise.
3602 (vst4_u8): Likewise.
3603 (vst4_u16): Likewise.
3604 (vst4_u32): Likewise.
3605 (vst4_f16): Likewise.
3606 (vst4_f32): Likewise.
3607 (vst4_p64): Likewise.
3608 (vst4q_s8): Likewise.
3609 (vst4q_p8): Likewise.
3610 (vst4q_s16): Likewise.
3611 (vst4q_p16): Likewise.
3612 (vst4q_s32): Likewise.
3613 (vst4q_s64): Likewise.
3614 (vst4q_u8): Likewise.
3615 (vst4q_u16): Likewise.
3616 (vst4q_u32): Likewise.
3617 (vst4q_u64): Likewise.
3618 (vst4q_f16): Likewise.
3619 (vst4q_f32): Likewise.
3620 (vst4q_f64): Likewise.
3621 (vst4q_p64): Likewise.
3623 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3625 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
3626 instead of constructing __builtin_aarch64_simd_oi one vector
3628 (vtbx4_u8): Likewise.
3629 (vtbx4_p8): Likewise.
3631 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3633 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
3634 instead of constructing __builtin_aarch64_simd_oi one vector
3636 (vtbl3_u8): Likewise.
3637 (vtbl3_p8): Likewise.
3638 (vtbl4_s8): Likewise.
3639 (vtbl4_u8): Likewise.
3640 (vtbl4_p8): Likewise.
3642 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3644 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
3645 instead of constructing __builtin_aarch64_simd_oi one vector
3647 (vqtbx2_u8): Likewise.
3648 (vqtbx2_p8): Likewise.
3649 (vqtbx2q_s8): Likewise.
3650 (vqtbx2q_u8): Likewise.
3651 (vqtbx2q_p8): Likewise.
3652 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
3653 __builtin_aarch64_simd_ci one vector at a time.
3654 (vqtbx3_u8): Likewise.
3655 (vqtbx3_p8): Likewise.
3656 (vqtbx3q_s8): Likewise.
3657 (vqtbx3q_u8): Likewise.
3658 (vqtbx3q_p8): Likewise.
3659 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
3660 __builtin_aarch64_simd_xi one vector at a time.
3661 (vqtbx4_u8): Likewise.
3662 (vqtbx4_p8): Likewise.
3663 (vqtbx4q_s8): Likewise.
3664 (vqtbx4q_u8): Likewise.
3665 (vqtbx4q_p8): Likewise.
3667 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3669 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
3670 instead of constructing __builtin_aarch64_simd_oi one vector
3672 (vqtbl2_u8): Likewise.
3673 (vqtbl2_p8): Likewise.
3674 (vqtbl2q_s8): Likewise.
3675 (vqtbl2q_u8): Likewise.
3676 (vqtbl2q_p8): Likewise.
3677 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
3678 __builtin_aarch64_simd_ci one vector at a time.
3679 (vqtbl3_u8): Likewise.
3680 (vqtbl3_p8): Likewise.
3681 (vqtbl3q_s8): Likewise.
3682 (vqtbl3q_u8): Likewise.
3683 (vqtbl3q_p8): Likewise.
3684 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
3685 __builtin_aarch64_simd_xi one vector at a time.
3686 (vqtbl4_u8): Likewise.
3687 (vqtbl4_p8): Likewise.
3688 (vqtbl4q_s8): Likewise.
3689 (vqtbl4q_u8): Likewise.
3690 (vqtbl4q_p8): Likewise.
3692 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
3695 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
3697 2021-07-22 Andrew Pinski <apinski@marvell.com>
3699 PR tree-optimization/10153
3700 * tree-tailcall.c (create_tailcall_accumulator):
3701 Don't call fold_convert as the type should be correct already.
3702 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
3703 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
3705 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
3707 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
3708 varying_p check for null/non-null check.
3710 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
3712 PR tree-optimization/101511
3713 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
3714 is in ssa2's equiv set, and don't trap if so.
3716 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
3718 PR tree-optimization/101497
3719 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
3722 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
3724 PR tree-optimization/101496
3725 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
3726 first, then vrp_visit_cond_Stmt.
3728 2021-07-22 liuhongt <hongtao.liu@intel.com>
3730 * config/i386/i386-expand.c
3731 (ix86_broadcast_from_integer_constant): Rename to ..
3732 (ix86_broadcast_from_constant): .. this, and extend it to
3734 (ix86_expand_vector_move): Extend to float mode.
3735 * config/i386/i386-features.c
3736 (replace_constant_pool_with_broadcast): Remove.
3737 (remove_partial_avx_dependency_gate): Ditto.
3738 (constant_pool_broadcast): Ditto.
3739 (class pass_constant_pool_broadcast): Ditto.
3740 (make_pass_constant_pool_broadcast): Ditto.
3741 (remove_partial_avx_dependency): Adjust gate.
3742 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
3743 * config/i386/i386-protos.h
3744 (make_pass_constant_pool_broadcast): Remove.
3746 2021-07-22 liuhongt <hongtao.liu@intel.com>
3748 * config/i386/constraints.md (Wb): New constraint.
3750 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
3752 (*ashlqi3_1): Ditto.
3753 (*<insn><mode>3_1): Split to ..
3754 (*ashr<mode>3_1): this, ...
3755 (*lshr<mode>3_1): and this, also extend this pattern to avx512
3757 (*<insn><mode>3_1): Split to ..
3758 (*ashr<mode>3_1): this, ...
3759 (*lshrqi3_1): and this, also extend this pattern to avx512
3761 (*lshrhi3_1): And this, also extend this pattern to avx512
3763 * config/i386/sse.md (k<code><mode>): New define_split after
3764 it to convert generic shift pattern to mask shift ones.
3766 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
3767 Joseph Myers <joseph@codesourcery.com>
3768 Cesar Philippidis <cesar@codesourcery.com>
3770 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
3771 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
3773 * tree-pretty-print.c (dump_omp_clause): Likewise.
3774 * omp-general.c (oacc_verify_routine_clauses): Likewise.
3775 * gimplify.c (gimplify_scan_omp_clauses)
3776 (gimplify_adjust_omp_clauses): Likewise.
3777 * tree-nested.c (convert_nonlocal_omp_clauses)
3778 (convert_local_omp_clauses): Likewise.
3779 * omp-low.c (scan_sharing_clauses): Likewise.
3780 * omp-offload.c (execute_oacc_device_lower): Update.
3782 2021-07-21 Martin Sebor <msebor@redhat.com>
3784 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
3786 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3788 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
3791 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3793 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
3795 (write_fntype_init): New stub function.
3796 (write_init_bif_table): Likewise.
3797 (write_init_ovld_table): New function.
3798 (write_init_file): Implement.
3800 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3802 * config/rs6000/rs6000-gen-builtins.c
3803 (write_autogenerated_header): New function.
3804 (write_decls): Likewise.
3805 (write_extern_fntype): New callback function.
3806 (write_header_file): Implement.
3808 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3810 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
3813 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3815 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
3817 (complete_base_type): Likewise.
3818 (construct_fntype_id): Likewise.
3819 (parse_bif_entry): Call contruct_fntype_id.
3820 (parse_ovld_entry): Likewise.
3822 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3824 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
3825 (MAXOVLDSTANZAS): New macro.
3826 (ovld_stanzas): New variable.
3827 (curr_ovld_stanza): Likewise.
3828 (MAXOVLDS): New macro.
3829 (ovlddata): New struct.
3830 (ovlds): New variable.
3831 (curr_ovld): Likewise.
3832 (max_ovld_args): Likewise.
3833 (parse_ovld_entry): New function.
3834 (parse_ovld_stanza): Likewise.
3835 (parse_ovld): Implement.
3837 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3839 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
3842 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3844 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
3845 (parse_prototype): Implement.
3847 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3849 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
3850 (curr_bif_stanza): New variable.
3851 (stanza_entry): New struct.
3852 (stanza_map): New initialized variable.
3853 (enable_string): Likewise.
3854 (fnkinds): New enum.
3855 (typelist): New struct.
3856 (attrinfo): Likewise.
3857 (MAXRESTROPNDS): New macro.
3858 (prototype): New struct.
3859 (MAXBIFS): New macro.
3860 (bifdata): New struct.
3861 (bifs): New variable.
3862 (curr_bif): Likewise.
3863 (bif_order): Likewise.
3864 (bif_index): Likewise.
3865 (fatal): New function.
3866 (stanza_name_to_stanza): Likewise.
3867 (parse_bif_attrs): New stub function.
3868 (parse_prototype): Likewise.
3869 (parse_bif_entry): New function.
3870 (parse_bif_stanza): Likewise.
3871 (parse_bif): Implement.
3872 (set_bif_order): New function.
3873 (create_bif_order): Implement.
3875 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3877 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
3878 (num_bifs): New variable.
3879 (num_ovld_stanzas): Likewise.
3880 (num_ovlds): Likewise.
3881 (parse_codes): New enum.
3882 (bif_rbt): New variable.
3883 (ovld_rbt): Likewise.
3884 (fntype_rbt): Likewise.
3885 (bifo_rbt): Likewise.
3886 (parse_bif): New stub function.
3887 (create_bif_order): Likewise.
3888 (parse_ovld): Likewise.
3889 (write_header_file): Likewise.
3890 (write_init_file): Likewise.
3891 (write_defines_file): Likewise.
3892 (delete_output_files): New function.
3895 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
3898 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
3899 from CRC32 _builtin functions.
3901 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
3903 * coverage.c (build_gcov_info_var_registration): Mark the object placed
3904 in the linker set as referenced so that it does not get optimized away.
3906 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
3909 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
3911 * config.gcc (riscv*-*-*): Detect which python is available.
3913 2021-07-21 Jakub Jelinek <jakub@redhat.com>
3915 PR middle-end/101535
3916 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
3917 contexts in which decl isn't privatized and for ORT_TARGET return
3918 false if decl is mapped.
3920 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
3922 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
3923 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
3924 has been successfully unrolled.
3926 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
3928 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
3929 exit condition if no tail loop is needed, and if the original exit
3930 condition should therefore be kept as-is.
3931 (tree_transform_and_unroll_loop): Handle that case here too.
3933 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
3935 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
3937 (free_data_refs): Likewise.
3938 * tree-data-ref.h (free_dependence_relations): Likewise.
3939 (free_data_refs): Likewise.
3940 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
3942 (struct component): Likewise.
3943 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
3944 (pcom_worker::~pcom_worker): Likewise.
3945 (pcom_worker::release_chain): Adjust as auto_vec changes.
3946 (pcom_worker::loop): Rename to ...
3947 (pcom_worker::m_loop): ... this.
3948 (pcom_worker::datarefs): Rename to ...
3949 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
3950 (pcom_worker::dependences): Rename to ...
3951 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
3952 (pcom_worker::chains): Rename to ...
3953 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
3954 (pcom_worker::looparound_phis): Rename to ...
3955 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
3957 (pcom_worker::cache): Rename to ...
3958 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
3959 (pcom_worker::release_chain): Adjust for auto_vec changes.
3960 (pcom_worker::release_chains): Adjust for auto_vec and renaming
3962 (release_component): Remove.
3963 (release_components): Adjust for release_component removal.
3964 (component_of): Adjust to use vec.
3965 (merge_comps): Likewise.
3966 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
3967 (pcom_worker::determine_offset): Likewise.
3968 (class comp_ptrs): Remove.
3969 (pcom_worker::split_data_refs_to_components): Adjust for renaming
3970 changes, for comp_ptrs removal with auto_vec.
3971 (pcom_worker::suitable_component_p): Adjust for renaming changes.
3972 (pcom_worker::filter_suitable_components): Adjust for release_component
3974 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
3975 (pcom_worker::find_looparound_phi): Likewise.
3976 (pcom_worker::add_looparound_copies): Likewise.
3977 (pcom_worker::determine_roots_comp): Likewise.
3978 (pcom_worker::single_nonlooparound_use): Likewise.
3979 (pcom_worker::execute_pred_commoning_chain): Likewise.
3980 (pcom_worker::execute_pred_commoning): Likewise.
3981 (pcom_worker::try_combine_chains): Likewise.
3982 (pcom_worker::prepare_initializers_chain): Likewise.
3983 (pcom_worker::prepare_initializers): Likewise.
3984 (pcom_worker::prepare_finalizers_chain): Likewise.
3985 (pcom_worker::prepare_finalizers): Likewise.
3986 (pcom_worker::tree_predictive_commoning_loop): Likewise.
3988 2021-07-20 Martin Sebor <msebor@redhat.com>
3990 PR middle-end/101397
3991 * builtins.c (gimple_call_return_array): Add argument. Correct
3992 offsets for memchr, mempcpy, stpcpy, and stpncpy.
3993 (compute_objsize_r): Adjust offset computation for argument returning
3996 2021-07-20 Martin Sebor <msebor@redhat.com>
3998 PR middle-end/101300
3999 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
4001 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
4003 * function.c (assign_parm_setup_block): Use adjust_address instead
4004 of change_address to preserve MEM_EXPR and friends.
4006 2021-07-20 Martin Sebor <msebor@redhat.com>
4008 * cfgloop.h (single_likely_exit): Adjust by-value argument to
4010 * cfgloopanal.c (single_likely_exit): Same.
4011 * cgraph.h (struct cgraph_node): Same.
4012 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
4013 * genautomata.c (merge_states): Same.
4014 * genextract.c (VEC_char_to_string): Same.
4015 * genmatch.c (dt_node::gen_kids_1): Same.
4016 (walk_captures): Adjust by-value argument to by-reference.
4017 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
4018 to by-const-reference.
4019 * gimple.c (gimple_build_call_vec): Same.
4020 (gimple_build_call_internal_vec): Same.
4021 (gimple_build_switch): Same.
4022 (sort_case_labels): Same.
4023 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
4025 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
4027 (gimple_build_call_internal_vec): Same.
4028 (gimple_build_switch): Same.
4029 (sort_case_labels): Same.
4030 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
4032 * haifa-sched.c (calc_priorities): Adjust by-value argument to
4034 (sched_init_luids): Same.
4035 (haifa_init_h_i_d): Same.
4036 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
4037 (adjust_callers_for_value_intersection): Adjust by-value argument to
4039 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
4041 (find_more_contexts_for_caller_subset): Same.
4042 (find_aggregate_values_for_callers_subset): Same.
4043 (copy_useful_known_contexts): Same.
4044 * ipa-fnsummary.c (remap_edge_summaries): Same.
4045 (remap_freqcounting_predicate): Same.
4046 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
4048 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
4049 to by-const-reference.
4050 * ipa-predicate.h (predicate::remap_after_inlining): Same.
4051 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
4052 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
4053 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
4054 * read-rtl.c (add_overload_instance): Same.
4055 * rtl.h (native_decode_rtx): Same.
4056 (native_decode_vector_rtx): Same.
4057 * sched-int.h (sched_init_luids): Same.
4058 (haifa_init_h_i_d): Same.
4059 * simplify-rtx.c (native_decode_vector_rtx): Same.
4060 (native_decode_rtx): Same.
4061 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
4062 (shrink_wrap_one_built_in_call_with_conds): Same.
4063 (shrink_wrap_conditional_dead_built_in_calls): Same.
4064 * tree-data-ref.c (create_runtime_alias_checks): Same.
4065 (compute_all_dependences): Same.
4066 * tree-data-ref.h (compute_all_dependences): Same.
4067 (create_runtime_alias_checks): Same.
4068 (index_in_loop_nest): Same.
4069 * tree-if-conv.c (mask_exists): Same.
4070 * tree-loop-distribution.c (class loop_distribution): Same.
4071 (loop_distribution::create_rdg_vertices): Same.
4072 (dump_rdg_partitions): Same.
4073 (debug_rdg_partitions): Same.
4074 (partition_contains_all_rw): Same.
4075 (loop_distribution::distribute_loop): Same.
4076 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
4077 (oacc_entry_exit_single_gang): Same.
4078 * tree-ssa-loop-im.c (hoist_memory_references): Same.
4079 (loop_suitable_for_sm): Same.
4080 * tree-ssa-loop-niter.c (bound_index): Same.
4081 * tree-ssa-reassoc.c (update_ops): Same.
4082 (swap_ops_for_binary_stmt): Same.
4083 (rewrite_expr_tree): Same.
4084 (rewrite_expr_tree_parallel): Same.
4085 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
4086 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
4087 * tree-ssa-structalias.c (process_all_all_constraints): Same.
4088 (make_constraints_to): Same.
4089 (handle_lhs_call): Same.
4090 (find_func_aliases_for_builtin_call): Same.
4091 (sort_fieldstack): Same.
4092 (check_for_overlaps): Same.
4093 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
4094 (vect_create_cond_for_unequal_addrs): Same.
4095 (vect_create_cond_for_lower_bounds): Same.
4096 (vect_create_cond_for_alias_checks): Same.
4097 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
4098 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
4099 (vect_make_slp_decision): Same.
4100 (vect_slp_bbs): Same.
4101 (duplicate_and_interleave): Same.
4102 (vect_transform_slp_perm_load): Same.
4103 (vect_schedule_slp): Same.
4104 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
4105 (vect_schedule_slp): Same.
4106 (duplicate_and_interleave): Same.
4107 * tree.c (build_vector_from_ctor): Same.
4108 (build_vector): Same.
4109 (check_vector_cst): Same.
4110 (check_vector_cst_duplicate): Same.
4111 (check_vector_cst_fill): Same.
4112 (check_vector_cst_stepped): Same.
4113 * tree.h (build_vector_from_ctor): Same.
4115 2021-07-20 Jakub Jelinek <jakub@redhat.com>
4118 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
4119 type from bool to int.
4120 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
4121 EASY_VECTOR_MSB case if either step or copies is not 1.
4122 (vspltis_shifted): Fix comment typo.
4123 (easy_altivec_constant): Change return type from bool to int, instead
4124 of returning true return byte size of the element mode that should be
4125 used to synthetize the constant.
4126 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
4127 that vspltis_shifted is 0, handle the case where easy_altivec_constant
4128 assumes using different vector mode from CONST_VECTOR's mode.
4129 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
4130 easy_altivec_constant to determine mode in which -1 >> -1 should be
4131 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
4133 2021-07-20 Richard Biener <rguenther@suse.de>
4136 * dwarf2out.h (dwarf_file_data): Add key member.
4137 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
4138 (dwarf_file_hasher::hash): Hash key.
4139 (lookup_filename): Remap the filename and store it in the
4140 filename member of dwarf_file_data when creating a new
4142 (file_name_acquire): Do not remap the filename again.
4143 (maybe_emit_file): Likewise.
4145 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
4147 * config/aarch64/aarch64-simd-builtins.def: Use two variant
4148 generators for all TBL/TBX intrinsics and rename to
4149 consistent forms: qtbl[1234] or qtbx[1234].
4150 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
4152 (aarch64_qtbl1<mode>): This.
4153 (aarch64_tbx1<mode>): Rename to...
4154 (aarch64_qtbx1<mode>): This.
4155 (aarch64_tbl2v16qi): Delete.
4156 (aarch64_tbl3<mode>): Rename to...
4157 (aarch64_qtbl2<mode>): This.
4158 (aarch64_tbx4<mode>): Rename to...
4159 (aarch64_qtbx2<mode>): This.
4160 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
4161 renamed qtbl1 and qtbl2 RTL patterns.
4162 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
4164 (vqtbl1_s8): Likewise.
4165 (vqtbl1_u8): Likewise.
4166 (vqtbl1q_p8): Likewise.
4167 (vqtbl1q_s8): Likewise.
4168 (vqtbl1q_u8): Likewise.
4169 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
4170 (vqtbx1_u8): Likewise.
4171 (vqtbx1_p8): Likewise.
4172 (vqtbx1q_s8): Likewise.
4173 (vqtbx1q_u8): Likewise.
4174 (vqtbx1q_p8): Likewise.
4175 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
4176 (vtbl1_u8): Likewise.
4177 (vtbl1_p8): Likewise.
4178 (vtbl2_s8): Likewise
4179 (vtbl2_u8): Likewise.
4180 (vtbl2_p8): Likewise.
4181 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
4182 (vtbl3_u8): Likewise.
4183 (vtbl3_p8): Likewise.
4184 (vtbl4_s8): Likewise.
4185 (vtbl4_u8): Likewise.
4186 (vtbl4_p8): Likewise.
4187 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
4188 (vtbx2_u8): Likewise.
4189 (vtbx2_p8): Likewise.
4190 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
4191 (vqtbl2_u8): Likewise.
4192 (vqtbl2_p8): Likewise.
4193 (vqtbl2q_s8): Likewise.
4194 (vqtbl2q_u8): Likewise.
4195 (vqtbl2q_p8): Likewise.
4196 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
4197 (vqtbx2_u8): Likewise.
4198 (vqtbx2_p8): Likewise.
4199 (vqtbx2q_s8): Likewise.
4200 (vqtbx2q_u8): Likewise.
4201 (vqtbx2q_p8): Likewise.
4202 (vtbx4_s8): Likewise.
4203 (vtbx4_u8): Likewise.
4204 (vtbx4_p8): Likewise.
4206 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
4209 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
4211 (define_peephole2 atomic_loaddi_fpu): Ditto.
4213 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
4215 * config.gcc (riscv*-*-*): Detect which python is available.
4217 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
4219 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
4220 (smul<mode>3_highpart): ... this.
4221 (mulhu_<mode>): Rename to...
4222 (umul<mode>3_highpart): ... this.
4223 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
4224 MULHU_V2DI, MULHU_V4SI): Adjust.
4226 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
4228 PR tree-optimization/100696
4229 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
4230 * internal-fn.def (IFN_MULH): New internal function.
4231 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
4232 recog normal multiply highpart as IFN_MULH.
4233 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
4236 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
4238 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
4239 (BTF_DEBUGGING_INFO): Likewise.
4240 * doc/tm.texi.in: Document the new macros.
4241 * doc/tm.texi: Regenerated.
4242 * toplev.c: Guard initialization of debug hooks.
4244 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
4246 * flags.h (ctf_debuginfo_p): New function declaration.
4247 * opts.c (ctf_debuginfo_p): New function definition.
4249 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
4252 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
4253 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
4254 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
4255 * config/gcn/gcn-valu.md: Add a warning comment.
4256 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
4257 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
4258 * config/gcn/gcn.md: Add a warning comment.
4259 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
4260 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
4262 (EF_AMDGPU_XNACK): New.
4263 (EF_AMDGPU_SRAM_ECC): New.
4265 (copy_early_debug_info): Use elf_flags.
4266 (main): Handle -mxnack and -msram-ecc options.
4267 * doc/invoke.texi: Document -mxnack and -msram-ecc.
4269 2021-07-19 Andrew Pinski <apinski@marvell.com>
4272 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
4273 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
4275 2021-07-19 Richard Biener <rguenther@suse.de>
4277 PR tree-optimization/101505
4278 * tree-vect-patterns.c (vect_determine_precisions): Walk
4279 PHIs also for loop vectorization.
4281 2021-07-19 Richard Biener <rguenther@suse.de>
4283 * gimple.h (gimple_expr_type): Remove.
4284 * doc/gimple.texi: Remove gimple_expr_type documentation.
4286 2021-07-19 Richard Biener <rguenther@suse.de>
4288 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
4289 (ao_ref_init_from_vn_reference): Likewise.
4290 (fully_constant_reference): Likewise.
4291 (vn_reference_lookup_call): Do not set vr->type to random
4293 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
4295 * tree-vect-generic.c (expand_vector_piecewise): Pass in
4296 whether we expanded parallel.
4297 (expand_vector_parallel): Adjust.
4298 (expand_vector_addition): Likewise.
4299 (expand_vector_comparison): Likewise.
4300 (expand_vector_operation): Likewise.
4301 (expand_vector_scalar_condition): Likewise.
4302 (expand_vector_conversion): Likewise.
4304 2021-07-19 Richard Biener <rguenther@suse.de>
4306 * tree-vrp.c (register_edge_assert_for_2): Use the
4308 (vrp_folder::fold_predicate_in): Likewise.
4309 * vr-values.c (gimple_assign_nonzero_p): Likewise.
4310 (vr_values::extract_range_from_comparison): Likewise.
4311 (vr_values::extract_range_from_ubsan_builtin): Use the
4312 type of the first operand.
4313 (vr_values::extract_range_basic): Push down type
4314 computation, use the appropriate LHS.
4315 (vr_values::extract_range_from_assignment): Use the
4318 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
4321 * common/config/i386/i386-common.c (ix86_handle_option): For
4322 -mgeneral-regs-only, enable the GPR only instructions which are
4323 enabled implicitly by SSE ISAs unless they have been disabled
4326 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
4329 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
4330 ix86_avx_u128_mode_needed.
4331 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
4332 returns AVX register.
4334 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
4336 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
4337 (handle_const_call): Liekise
4338 (handle_pure_call): Liekise
4340 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
4342 PR tree-optimization/96542
4343 * range-op.cc (range_operator::wi_fold_in_parts): New.
4344 (range_operator::fold_range): Call wi_fold_in_parts.
4345 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
4346 * range-op.h (wi_fold_in_parts): Add prototype.
4348 2021-07-16 David Malcolm <dmalcolm@redhat.com>
4350 * doc/analyzer.texi: Add __analyzer_dump_state.
4352 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4354 * config/rs6000/rbtree.c: New file.
4355 * config/rs6000/rbtree.h: New file.
4357 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4359 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
4360 (typeinfo): Add restr field.
4361 (match_bracketed_pair): New function.
4362 (match_const_restriction): Implement.
4364 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4366 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
4368 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4370 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
4371 (basetype): Likewise.
4372 (typeinfo): Likewise.
4373 (handle_pointer): New function.
4374 (match_basetype): New stub function.
4375 (match_const_restriction): Likewise.
4376 (match_type): New function.
4378 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4380 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
4382 (advance_line): Likewise.
4383 (safe_inc_pos): Likewise.
4384 (match_identifier): Likewise.
4385 (match_integer): Likewise.
4386 (match_to_right_bracket): Likewise.
4388 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4390 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
4391 (ovld_file): Likewise.
4392 (header_file): Likewise.
4393 (init_file): Likewise.
4394 (defines_file): Likewise.
4395 (pgm_path): Likewise.
4396 (bif_path): Likewise.
4397 (ovld_path): Likewise.
4398 (header_path): Likewise.
4399 (init_path): Likewise.
4400 (defines_path): Likewise.
4401 (LINELEN): New macro.
4402 (linebuf): New variable.
4406 (bif_diag): New function.
4407 (ovld_diag): Likewise.
4409 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4411 * config/rs6000/rs6000-builtin-new.def: New.
4412 * config/rs6000/rs6000-overload.def: New.
4414 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4416 * config/rs6000/rs6000-gen-builtins.c: New.
4418 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4420 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
4421 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
4422 * gengtype-state.c (state_writer::write_state_file_list): Add a
4423 parameter to the fileslist expression for the number of build
4425 (read_state_files_list): Detect build headers and strip the
4426 initial "./" or ".\" from their names.
4427 * gengtype.c (build_headers): New global variable.
4428 (num_build_headers): Likewise.
4429 (open_base_files): Emit #include for each build header.
4430 (main): Detect and count build headers.
4431 * gengtype.h (build_headers): New extern variable.
4432 (num_build_headers): Likewise.
4434 2021-07-16 Richard Biener <rguenther@suse.de>
4436 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
4437 the type of the LHS.
4438 (find_bswap_or_nop_1): Likewise.
4439 (find_bswap_or_nop): Likewise.
4440 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
4442 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
4443 Remove unused parameters, pass in the scalar type. Fix
4444 internal store function handling.
4445 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
4446 (vect_get_vector_types_for_stmt): Move down check for
4447 existing vector stmt after we've determined a scalar type.
4448 Pass down the used scalar type to vect_get_smallest_scalar_type.
4449 * tree-vect-generic.c (expand_vector_condition): Use
4450 the type of the LHS.
4451 (expand_vector_scalar_condition): Likewise.
4452 (expand_vector_operations_1): Likewise.
4453 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
4454 (vect_recog_dot_prod_pattern): Likewise.
4455 (vect_recog_sad_pattern): Likewise.
4456 (vect_recog_widen_op_pattern): Likewise.
4457 (vect_recog_widen_sum_pattern): Likewise.
4458 (vect_recog_mixed_size_cond_pattern): Likewise.
4460 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
4462 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
4463 (dump_eaf_flags): Dump EAF_NOT_RETURNED
4464 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
4465 and EAF_NOT_RETURNED.
4466 (modref_summary::useful_p): Likewise.
4467 (modref_summary_lto::useful_p): Likewise.
4468 (struct) modref_summary_lto: Use eaf_fleags_t.
4469 (deref_flags): Handle EAF_NOT_RETURNED.
4470 (struct escape_point): Use min_flags.
4471 (modref_lattice::init): Add EAF_NOT_RETURNED.
4472 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
4473 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
4475 (analyze_parms): Also analyze const functions; update conition on
4477 (modref_write): Update streaming.
4478 (read_section): Update streaming.
4479 (remap_arg_flags): Use eaf_flags_t.
4480 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
4481 * ipa-modref.h: (eaf_flags_t): New typedef.
4482 (struct modref_summary): Use eaf_flags_t.
4483 * tree-core.h (EAF_NOT_RETURNED): New constant.
4485 2021-07-16 Richard Biener <rguenther@suse.de>
4487 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
4488 the type of the LHS.
4489 (gimple_assign_nonnegative_warnv_p): Likewise.
4490 (gimple_call_nonnegative_warnv_p): Likewise. Return false
4491 if the call has no LHS.
4492 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
4493 * tree-eh.c (stmt_could_throw_1_p): Likewise.
4494 * tree-inline.c (insert_init_stmt): Likewise.
4495 * tree-ssa-loop-niter.c (get_val_for): Likewise.
4496 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
4498 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
4499 gassign *. Use the type of the lhs.
4500 (vn_nary_op_lookup_stmt): Adjust.
4501 (vn_nary_op_insert_stmt): Likewise.
4503 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
4505 * config/s390/predicates.md (bras_sym_operand): Accept all
4506 functions in 64-bit mode, use UNSPEC_PLT31.
4507 (larl_operand): Use UNSPEC_PLT31.
4508 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
4509 (legitimize_pic_address): Likewise.
4510 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
4512 (s390_delegitimize_address): Use UNSPEC_PLT31.
4513 (s390_output_addr_const_extra): Likewise.
4514 (print_operand): Add @PLT to TLS calls, handle %K.
4515 (s390_function_profiler): Mark __fentry__/_mcount as function,
4516 use %K, use UNSPEC_PLT31.
4517 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
4518 (s390_emit_call): Use UNSPEC_PLT31.
4519 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
4520 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
4521 (*movdi_64): Use %K.
4522 (reload_base_64): Likewise.
4523 (*sibcall_brc): Likewise.
4524 (*sibcall_brcl): Likewise.
4525 (*sibcall_value_brc): Likewise.
4526 (*sibcall_value_brcl): Likewise.
4529 (*bras_r): Likewise.
4530 (*brasl_r): Likewise.
4531 (*bras_tls): Likewise.
4532 (*brasl_tls): Likewise.
4533 (main_base_64): Likewise.
4534 (reload_base_64): Likewise.
4535 (@split_stack_call<mode>): Likewise.
4537 2021-07-16 Richard Biener <rguenther@suse.de>
4539 PR tree-optimization/101467
4540 * tree-vect-stmts.c (vect_gen_while): Properly guard
4541 make_temp_ssa_name usage.
4543 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
4545 * config.gcc: Don't use forked print-sysroot-suffix.sh and
4546 t-sysroot-suffix for C-SKY.
4547 * config/csky/print-sysroot-suffix.sh: Delete.
4548 * config/csky/t-csky-linux: Delete.
4549 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
4550 instead of CSKY_MULTILIB_DIRNAMES.
4552 2021-07-16 Richard Biener <rguenther@suse.de>
4554 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
4555 conversion issues with the partial reduction of the reused
4558 2021-07-16 Richard Biener <rguenther@suse.de>
4560 * config/i386/i386-options.c (ix86_option_override_internal): Set
4561 param_vect_partial_vector_usage to zero if not set.
4563 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
4566 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
4567 (VALID_INT_MODE_P): Add SDmode and DDmode.
4568 Add TDmode for TARGET_64BIT.
4569 (VALID_DFP_MODE_P): Remove.
4570 * config/i386/i386.c (ix86_hard_regno_mode_ok):
4571 Do not use VALID_DFP_MODE_P.
4573 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
4575 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
4577 (fold_using_range::fold_stmt): Ditto.
4578 (fold_using_range::range_of_range_op): Ditto.
4579 (fold_using_range::range_of_phi): Ditto.
4580 (fold_using_range::range_of_call): Ditto.
4581 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
4582 (fold_using_range::range_of_builtin_call): Ditto.
4583 (fold_using_range::range_of_cond_expr): Ditto.
4584 * gimple-range-fold.h (gimple_range_type): New.
4586 2021-07-15 Martin Sebor <msebor@redhat.com>
4589 * tree-ssa-strlen.c (handle_assign): New function.
4590 (maybe_warn_overflow): Add argument.
4591 (nonzero_bytes_for_type): New function.
4592 (count_nonzero_bytes): Handle more tree types. Call
4593 nonzero_bytes_for_tye.
4594 (count_nonzero_bytes): Handle types.
4595 (handle_store): Handle stores from function calls.
4596 (strlen_check_and_optimize_call): Move code to handle_assign. Call
4597 it for assignments from function calls.
4599 2021-07-15 David Malcolm <dmalcolm@redhat.com>
4604 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
4606 2021-07-15 David Malcolm <dmalcolm@redhat.com>
4608 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
4610 2021-07-15 Martin Sebor <msebor@redhat.com>
4614 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
4615 (operand_compare::verify_hash_value): Same.
4616 * tree-core.h (OEP_DECL_NAME): New.
4618 2021-07-15 Martin Jambor <mjambor@suse.cz>
4620 * profile-count.h (profile_count::value): Change the return type to
4622 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
4624 * tree-cfg.c (dump_function_to_file): Likewise.
4626 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
4629 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
4630 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
4633 2021-07-15 Richard Biener <rguenther@suse.de>
4635 * tree-vectorizer.h (vect_gen_while): Match up with
4637 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
4638 of vect_gen_while_not.
4639 (vect_gen_while_not): Adjust.
4640 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
4642 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
4644 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
4645 (ranger_cache::range_of_def): Call adjust_range.
4646 (ranger_cache::entry_range): Same.
4647 * gimple-range-cache.h (non_null_ref::adjust_range): New.
4648 * gimple-range.cc (gimple_ranger::range_of_expr): Call
4650 (gimple_ranger::range_on_entry): Same.
4652 2021-07-15 Tamar Christina <tamar.christina@arm.com>
4655 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4657 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
4659 2021-07-15 Tamar Christina <tamar.christina@arm.com>
4662 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4664 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
4665 (sdot_prod, udot_prod): ...These.
4666 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
4667 (aarch64_<sur>dot<vsi2qi>): Rename to...
4668 (<sur>dot_prod<vsi2qi>): ...This.
4669 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
4672 2021-07-15 Jakub Jelinek <jakub@redhat.com>
4674 PR middle-end/101437
4675 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
4676 types even if they have non-BLKmode TYPE_MODE.
4678 2021-07-15 Richard Biener <rguenther@suse.de>
4681 * gcc.c (process_command): Process -gtoggle like process_options
4682 would after parsing options.
4684 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
4686 * cfgexpand.c (expand_asm_loc): Adjust.
4687 (expand_asm_stmt): Likewise.
4688 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
4689 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
4690 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
4691 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
4692 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
4693 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
4694 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
4695 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
4696 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
4697 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
4698 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
4699 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
4700 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
4701 * doc/tm.texi: Regenerate.
4702 * target.def: Add location argument to md_asm_adjust.
4704 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
4706 * tree-diagnostic.c (diagnostic_report_current_function): Use the
4707 diagnostic's location, not input_location.
4709 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
4711 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
4713 (expand_asm_stmt): Likewise.
4715 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
4717 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
4718 addressed memory rtx, if any.
4719 (rs6000_split_multireg_move): Fix code formatting.
4720 Handle MMA build built-ins with operands in adjacent memory locations.
4722 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
4724 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
4727 2021-07-14 Jason Merrill <jason@redhat.com>
4729 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
4731 2021-07-14 Jason Merrill <jason@redhat.com>
4733 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
4736 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4738 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
4739 Remove erroneous line.
4741 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
4743 * params.opt (param_evrp_mode): Change default.
4745 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4747 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
4748 (sdot_prod, udot_prod): ...These.
4749 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
4750 (aarch64_<sur>dot<vsi2qi>): Rename to...
4751 (<sur>dot_prod<vsi2qi>): ...This.
4752 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
4755 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4757 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
4759 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4761 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
4763 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4765 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
4767 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4769 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
4770 (usdot_prod<vsi2qi>): ... This.
4771 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
4772 (usdot_prod): ...This.
4773 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
4774 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
4776 (@<sur>dot_prod<vsi2qi>): ...This.
4777 * config/aarch64/aarch64-sve-builtins-base.cc
4778 (svusdot_impl::expand): Use it.
4780 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4782 * optabs.def (usdot_prod_optab): New.
4783 * doc/md.texi: Document it and clarify other dot prod optabs.
4784 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
4785 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
4786 * optabs.c (expand_widen_pattern_expr): Likewise.
4787 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
4788 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
4789 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
4791 (vect_widened_op_tree): Optionally ignore
4793 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
4795 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
4798 * config/i386/driver-i386.c (host_detect_local_cpu): Check
4799 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
4800 Enable UINTR only for 64-bit codegen.
4801 * config/i386/i386-options.c
4802 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
4804 * config/i386/i386.h (ARCH_ARG): New.
4805 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
4806 "[arch|tune] 64" for 64-bit codegen.
4808 2021-07-14 Richard Biener <rguenther@suse.de>
4810 PR tree-optimization/101445
4811 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
4812 of the IV in the correct direction for negative stride
4815 2021-07-14 Jakub Jelinek <jakub@redhat.com>
4818 * godump.c (godump_str_hash): New type.
4819 (godump_container::pot_dummy_types): Use string_hash instead of
4820 ptr_hash in the hash_set.
4822 2021-07-14 Richard Biener <rguenther@suse.de>
4824 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
4825 vector types where the old vector type has a multiple of
4826 the new vector type elements.
4827 (vect_create_partial_epilog): New function, split out from...
4828 (vect_create_epilog_for_reduction): ... here.
4829 (vect_transform_cycle_phi): Reduce the re-used accumulator
4830 to the new vector type.
4832 2021-07-14 Alexandre Oliva <oliva@adacore.com>
4834 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
4835 non-'t'-sized arg check.
4837 2021-07-14 Alexandre Oliva <oliva@adacore.com>
4839 * tree-cfg.c (cleanup_dead_labels_eh): Update
4840 post_landing_pad label upon change of landing pad block's
4842 (cleanup_dead_labels): Check that a removed label is not that
4845 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
4847 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
4849 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
4850 Add Neon to general purpose register case for zero-extend
4852 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
4853 case to prevent some cases opting to go through memory.
4854 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
4855 * rtl.c (rtvec_series_p): Define predicate to determine
4856 whether a vector contains a linear series of integers.
4857 * rtl.h (rtvec_series_p): Define.
4858 * rtlanal.c (vec_series_lowpart_p): Define predicate to
4859 determine if a vector selection is equivalent to the low part
4861 * rtlanal.h (vec_series_lowpart_p): Define.
4862 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
4863 Add vec_select -> subreg simplification.
4865 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
4867 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
4868 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
4869 _mm_test_mix_ones_zeros): New.
4871 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
4872 Richard Biener <rguenther@suse.de>
4874 * gimple.c (gimple_could_trap_p_1): Make S argument a
4875 "const gimple*". Preserve constness in call to
4876 gimple_asm_volatile_p.
4877 (gimple_could_trap_p): Make S argument a "const gimple*".
4878 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
4879 Update function prototypes.
4881 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4883 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
4884 (_loop_vec_info::main_loop_edge): New field.
4885 (_loop_vec_info::skip_main_loop_edge): Likewise.
4886 (_loop_vec_info::skip_this_loop_edge): Likewise.
4887 (_loop_vec_info::reusable_accumulators): Likewise.
4888 (_stmt_vec_info::reduc_scalar_results): Likewise.
4889 (_stmt_vec_info::reused_accumulator): Likewise.
4890 (vect_get_main_loop_result): Declare.
4891 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
4892 reduc_scalar_inputs.
4893 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
4894 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
4895 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
4896 skip_main_loop_edge and skip_this_loop_edge fields.
4897 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
4898 (vect_emit_reduction_init_stmts): New function.
4899 (get_initial_def_for_reduction): Use it.
4900 (get_initial_defs_for_reduction): Likewise. Change the vinfo
4901 parameter to a loop_vec_info.
4902 (vect_create_epilog_for_reduction): Store the scalar results
4903 in the reduc_info. If an epilogue loop is reusing an accumulator
4904 from the main loop, and if the epilogue loop can also be skipped,
4905 try to place the reduction code in the join block. Record
4906 accumulators that could potentially be reused by epilogue loops.
4907 (vect_transform_cycle_phi): When vectorizing epilogue loops,
4908 try to reuse accumulators from the main loop. Record the initial
4909 value in reduc_info for non-SLP reductions too.
4911 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4913 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
4914 adjustment handling. Take the neutral value as an argument,
4915 in place of the code argument.
4916 (vect_transform_cycle_phi): Update accordingly. Handle the
4917 initial values of cond reductions separately from code reductions.
4918 Choose the adjustment here rather than in
4919 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
4921 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4923 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
4924 (neutral_op_for_reduction): ...this, providing a more general
4926 (vect_create_epilog_for_reduction): Update accordingly.
4927 (vectorizable_reduction): Likewise.
4928 (vect_transform_cycle_phi): Likewise.
4930 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4932 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
4933 reduc_info instead of the original stmt_vec_info.
4934 (vect_transform_cycle_phi): Update accordingly.
4936 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4938 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
4939 reduc_info as an additional parameter.
4940 (vect_transform_cycle_phi): Update accordingly.
4942 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4944 * tree-vectorizer.h: Include tree-ssa-operands.h.
4945 (vect_phi_initial_value): New function.
4946 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
4947 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
4948 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
4949 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
4951 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4953 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
4954 the phi results to vectype after creating them. Remove later
4955 conversion code that thus becomes redundant.
4957 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4959 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
4960 the new_phis vector with a reduc_inputs vector. Combine handling
4961 of reduction chains and ncopies > 1.
4963 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4965 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
4966 scalar_results to group_size elements after reducing down from
4967 N*group_size elements. Construct an array_slice of the live-out
4968 stmts and assert that there is one stmt per scalar result.
4970 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4972 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
4973 nested_in_vect_loop and use double_reduc everywhere. Remove dead
4974 assignment to "loop".
4976 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4978 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
4979 vector types first. For scalar types, consider both the preferred
4980 vector mode and the alternative vector modes.
4981 * optabs-query.c (can_vec_mask_load_store_p): Use the same
4982 structure as above, in particular using related_vector_mode
4983 for modes provided by autovectorize_vector_modes.
4985 2021-07-13 Jakub Jelinek <jakub@redhat.com>
4986 Richard Biener <rguenther@suse.de>
4988 PR tree-optimization/101419
4989 * tree-pass.h (PROP_objsz): Define.
4990 (make_pass_early_object_sizes): Declare.
4991 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
4992 there to pass_early_object_sizes, drop parameter.
4993 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
4994 drop parameter, move pass_post_ipa_warn right after that.
4995 * tree-object-size.c (pass_object_sizes::execute): Rename to...
4996 (object_sizes_execute): ... this. Add insert_min_max_p argument.
4997 (pass_data_object_sizes): Move after object_sizes_execute.
4998 (pass_object_sizes): Likewise. In execute method call
4999 object_sizes_execute, drop set_pass_param method and insert_min_max_p
5000 non-static data member and its initializer in the ctor.
5001 (pass_data_early_object_sizes, pass_early_object_sizes,
5002 make_pass_early_object_sizes): New.
5003 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
5004 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
5006 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
5009 * config/riscv/constraints.md ("S"): Update description and remove
5011 * doc/md.texi (Machine Constraints): Document the 'S' constraints
5014 2021-07-13 Richard Biener <rguenther@suse.de>
5017 2021-07-12 Richard Biener <rguenther@suse.de>
5019 * tree-vect-slp.c (vect_slp_region): Show the number of
5020 SLP graph entries in the optimization message.
5022 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
5024 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
5026 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
5027 return type to long.
5028 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
5031 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
5033 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
5034 Query relation between the 2 operands and use it.
5036 2021-07-12 Sergei Trofimovich <siarheit@google.com>
5038 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
5040 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
5043 * config/i386/predicates.md (vec_setm_sse41_operand):
5044 Rename from vec_setm_operand.
5045 (vec_setm_avx2_operand): New predicate.
5046 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
5047 Use vec_setm_sse41_operand as operand 2 predicate.
5048 (vec_set<V_256_512:mode): New expander.
5049 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
5050 as operand 2 predicate.
5052 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
5054 PR tree-optimization/101335
5055 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
5057 2021-07-12 Andrew Pinski <apinski@marvell.com>
5059 * tree-ssa-phiopt.c (match_simplify_replacement): Move
5060 insert of the sequence before the movement of the
5061 statement. Check if to see if the statement is used
5062 outside of the original phi to see if we should move it.
5064 2021-07-12 Richard Biener <rguenther@suse.de>
5066 * dump-context.h (debug_dump_context::debug_dump_context):
5067 Add FILE * parameter defaulted to stderr.
5068 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
5069 * tree-vect-slp.c (dot_slp_tree): New functions.
5071 2021-07-12 Richard Biener <rguenther@suse.de>
5073 PR tree-optimization/101373
5074 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
5075 references when the BB may not return.
5076 (compute_avail): Pass in the function we're working on and
5077 replace cfun references with it. Externally throwing
5078 const calls also possibly terminate the function.
5079 (pass_pre::execute): Pass down the function we're working on.
5080 * gcse.c (compute_hash_table_work): Externally throwing
5081 const/pure calls also need record_last_mem_set_info.
5082 * postreload-gcse.c (record_opr_changes): Looping or externally
5083 throwing const/pure calls also need record_last_mem_set_info.
5085 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
5087 * recog.c (memory_address_addr_space_p): Change the type to bool.
5088 Return true/false instead of 1/0.
5089 (offsettable_memref_p): Ditto.
5090 (offsettable_nonstrict_memref_p): Ditto.
5091 (offsettable_address_addr_space_p): Ditto.
5092 Change the type of addressp indirect function to bool.
5093 * recog.h (memory_address_addr_space_p): Change the type to bool.
5094 (strict_memory_address_addr_space_p): Ditto.
5095 (offsettable_memref_p): Ditto.
5096 (offsettable_nonstrict_memref_p): Ditto.
5097 (offsettable_address_addr_space_p): Ditto.
5098 * reload.c (maybe_memory_address_addr_space_p): Ditto.
5099 (strict_memory_address_addr_space_p): Change the type to bool.
5100 Return true/false instead of 1/0.
5101 (maybe_memory_address_addr_space_p): Change the type to bool.
5103 2021-07-12 Richard Biener <rguenther@suse.de>
5105 * tree-vect-slp.c (vect_slp_region): Show the number of
5106 SLP graph entries in the optimization message.
5108 2021-07-12 Richard Biener <rguenther@suse.de>
5110 PR tree-optimization/101394
5111 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
5112 copies from abnormals for a full redundancy.
5114 2021-07-12 Richard Biener <rguenther@suse.de>
5116 PR middle-end/101423
5117 * gimple.c (gimple_could_trap_p_1): Internal function calls
5119 * tree-eh.c (tree_could_trap_p): Likewise.
5121 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
5124 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
5126 (vmulq_n_u32): Likewise.
5127 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
5128 (vmulq_n_f32): Likewise.
5129 (vmul_n_f16): Likewise.
5130 (vmulq_n_f16): Likewise.
5132 2021-07-12 Martin Liska <mliska@suse.cz>
5135 * gcc.c (check_offload_target_name): Call
5136 candidates_list_and_hint only if we have a candidate.
5138 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
5141 * config/arm/neon.md (vec_init): Move to ...
5142 * config/arm/vec-common.md (vec_init): ... here.
5143 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
5145 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
5147 PR tree-optimization/101403
5148 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
5149 signedness of the shift is not the same as the signedness of
5152 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
5153 Uroš Bizjak <ubizjak@gmail.com>
5155 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
5156 divmod of a constant numerator with new define_insn_and_split.
5158 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
5161 * config/i386/i386-expand.c (ix86_expand_call): If a call is
5162 to a non-local-binding, or local but to a public symbol, then
5163 assume that it might be indirected via the lazy symbol binder.
5164 Mark R10 and R10 as clobbered in that case.
5166 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
5169 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
5170 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
5171 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
5173 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
5175 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
5176 log2 range of operands[3] to [1,31].
5177 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
5179 2021-07-09 Sergei Trofimovich <siarheit@google.com>
5181 * doc/md.texi: Don't split @smallexample in multiple @groups.
5183 2021-07-09 Sergei Trofimovich <siarheit@google.com>
5185 * doc/md.texi: Add missing 'see' word.
5187 2021-07-09 Andrew Pinski <apinski@marvell.com>
5189 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
5190 to take sequence and gimple_match_op. Accept the case where
5191 op is a SSA_NAME and one statement in the sequence.
5192 Also allow constants.
5193 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
5194 Update call to phiopt_early_allow. Discard the sequence if not
5197 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
5202 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
5203 instead of ISA_HAS_MSA.
5204 (mips_expand_vec_unpack): Likewise.
5205 (mips_expand_vector_init): Likewise.
5207 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
5209 * config/rs6000/vsx.md (mods_<mode>): Rename to...
5210 (mod<mode>3): ... this.
5211 (modu_<mode>): Rename to...
5212 (umod<mode>3): ... this.
5213 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
5216 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
5218 * config/h8300/shiftrotate.md (variable shifts): Expose condition
5219 code handling for the test before the loop.
5221 2021-07-08 Martin Jambor <mjambor@suse.cz>
5224 * ipa-sra.c (class isra_call_summary): New member
5225 m_before_any_store, initialize it in the constructor.
5226 (isra_call_summary::dump): Dump the new field.
5227 (ipa_sra_call_summaries::duplicate): Copy it.
5228 (process_scan_results): Set it.
5229 (isra_write_edge_summary): Stream it.
5230 (isra_read_edge_summary): Likewise.
5231 (param_splitting_across_edge): Only override
5232 safe_to_import_accesses if m_before_any_store is set.
5234 2021-07-08 Martin Sebor <msebor@redhat.com>
5237 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
5238 Use Object Size Type 0 instead of 1.
5240 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
5242 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
5245 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
5247 * match.pd: Simplify an extend-operate-truncate sequence involving
5250 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
5251 Richard Biener <rguenther@suse.de>
5253 PR tree-optimization/40210
5254 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
5255 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
5256 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
5258 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
5261 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
5263 * config/i386/mmx.md (V_32): New mode iterator.
5264 (mov<V_32:mode>): Use V_32 mode iterator.
5265 (*mov<V_32:mode>_internal): Ditto.
5266 (*push<V_32:mode>2_rex64): Ditto.
5267 (*push<V_32:mode>2): Ditto.
5268 (movmisalign<V_32:mode>): Ditto.
5269 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
5270 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
5271 (vec_unpacks_lo_v4qi): New expander.
5272 (vec_unpacks_hi_v4qi): Ditto.
5273 (vec_unpacku_lo_v4qi): Ditto.
5274 (vec_unpacku_hi_v4qi): Ditto.
5275 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
5276 (VALID_INT_MODE_P): Ditto.
5278 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
5281 * config/rs6000/rs6000.md (udivti3): New insn.
5283 (umodti3): New insn.
5286 2021-07-07 Martin Sebor <msebor@redhat.com>
5288 PR tree-optimization/100137
5289 PR tree-optimization/99121
5290 PR tree-optimization/97027
5291 * builtins.c (access_ref::access_ref): Also set offmax.
5292 (access_ref::offset_in_range): Define new function.
5293 (access_ref::add_offset): Set offmax.
5294 (access_ref::inform_access): Handle access_none.
5295 (handle_mem_ref): Clear ostype.
5296 (compute_objsize_r): Handle ASSERT_EXPR.
5297 * builtins.h (struct access_ref): Add offmax member.
5298 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
5299 compute_objsize() and simplify.
5301 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
5303 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
5304 and VSX_BUILTIN_STXVP.
5306 2021-07-07 Martin Sebor <msebor@redhat.com>
5309 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
5310 a stray %K from error_at() missed in r12-2088.
5312 2021-07-07 Richard Biener <rguenther@suse.de>
5314 PR tree-optimization/99728
5315 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
5317 (mem_refs_may_alias_p): Add assert we handled aggregate
5319 (sm_seq_valid_bb): Give up when running into aggregate copies.
5320 (ref_indep_loop_p): Handle aggregate copies as never
5321 being invariant themselves but allow other refs to be
5322 disambiguated against them.
5323 (can_sm_ref_p): Do not try to apply store-motion to aggregate
5326 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
5329 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
5332 2021-07-06 Martin Sebor <msebor@redhat.com>
5334 * gimple-pretty-print.c (percent_G_format): Remove.
5335 * tree-diagnostic.c (default_tree_printer): Remove calls.
5336 * tree-pretty-print.c (percent_K_format): Remove.
5337 * tree-pretty-print.h (percent_K_format): Remove.
5339 2021-07-06 Martin Sebor <msebor@redhat.com>
5341 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
5342 Remove %K and use error_at.
5343 (aarch64_expand_fcmla_builtin): Same.
5344 (aarch64_expand_builtin_tme): Same.
5345 (aarch64_expand_builtin_memtag): Same.
5346 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
5347 (arm_expand_builtin): Same.
5348 * config/arm/arm.c (bounds_check): Same.
5350 2021-07-06 Martin Sebor <msebor@redhat.com>
5352 * builtins.c (warn_string_no_nul): Remove %G.
5353 (maybe_warn_for_bound): Same.
5354 (warn_for_access): Same.
5355 (check_access): Same.
5356 (check_strncat_sizes): Same.
5357 (expand_builtin_strncat): Same.
5358 (expand_builtin_strncmp): Same.
5359 (expand_builtin): Same.
5360 (expand_builtin_object_size): Same.
5361 (warn_dealloc_offset): Same.
5362 (maybe_emit_free_warning): Same.
5363 * calls.c (maybe_warn_alloc_args_overflow): Same.
5364 (maybe_warn_nonstring_arg): Same.
5365 (maybe_warn_rdwr_sizes): Same.
5366 * expr.c (expand_expr_real_1): Remove %K.
5367 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
5368 (gimple_fold_builtin_strncat): Same.
5369 * gimple-ssa-sprintf.c (format_directive): Same.
5370 (handle_printf_call): Same.
5371 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
5372 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
5373 (maybe_diag_access_bounds): Same. Call gimple_location.
5374 (check_bounds_or_overlap): Same.
5375 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
5376 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
5377 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
5378 (maybe_diag_stxncpy_trunc): Same.
5379 (handle_builtin_stxncpy_strncat): Same.
5380 (maybe_warn_pointless_strcmp): Same.
5381 * tree-ssa-uninit.c (maybe_warn_operand): Same.
5383 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
5386 * config/i386/predicates.md (vec_setm_operand): Enable
5387 register_operand for TARGET_SSE4_1.
5388 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
5389 as operand 2 predicate. Call ix86_expand_vector_set_var
5390 for non-constant index operand.
5391 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
5392 Call ix86_expand_vector_set_var for non-constant index operand.
5394 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
5396 * config/h8300/jumpcall.md (*branch): When possible, generate
5397 the comparison in CCZN mode.
5398 * config/h8300/predicates.md (simple_memory_operand): Reject all
5399 auto-increment addressing modes.
5401 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
5404 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
5407 2021-07-06 Richard Biener <rguenther@suse.de>
5409 * doc/md.texi (vec_fmaddsub<mode>4): Document.
5410 (vec_fmsubadd<mode>4): Likewise.
5411 * optabs.def (vec_fmaddsub$a4): Add.
5412 (vec_fmsubadd$a4): Likewise.
5413 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
5414 (IFN_VEC_FMSUBADD): Likewise.
5415 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
5416 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
5417 (addsub_pattern::build): Likewise.
5418 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
5419 and CFN_VEC_FMSUBADD are not transparent for permutes.
5420 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
5421 (vec_fmsubadd<mode>4): Likewise.
5423 2021-07-06 Richard Biener <rguenther@suse.de>
5425 * doc/invoke.texi (fmove-loop-stores): Document.
5426 * common.opt (fmove-loop-stores): New option.
5427 * opts.c (default_options_table): Enable -fmove-loop-stores
5429 * tree-ssa-loop-im.c (pass_lim::execute): Pass
5430 flag_move_loop_stores instead of true to
5431 loop_invariant_motion_in_fun.
5433 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
5435 * doc/install.texi: Document --with-dsymutil.
5437 2021-07-06 Andrew Pinski <apinski@marvell.com>
5439 PR tree-optimization/101256
5440 * dbgcnt.def (phiopt_edge_range): New counter.
5441 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
5442 Check to make sure the new name is defined in the same
5443 bb as the conditional before duplicating range info.
5444 Also add debug counter.
5446 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
5448 PR rtl-optimization/100328
5449 * config/i386/i386-options.c (ix86_option_override_internal):
5450 Set param_ira_consider_dup_in_all_alts to 0.
5452 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
5454 PR rtl-optimization/100328
5455 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
5457 * ira.c (ira_get_dup_out_num): Adjust as parameter
5458 param_ira_consider_dup_in_all_alts.
5459 * params.opt (ira-consider-dup-in-all-alts): New.
5460 * ira-conflicts.c (process_regs_for_copy): Add one parameter
5461 single_input_op_has_cstr_p.
5462 (get_freq_for_shuffle_copy): New function.
5463 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
5464 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
5466 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
5468 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
5469 generate condition code aware RTL directly.
5471 2021-07-05 Andrew Pinski <apinski@marvell.com>
5473 PR tree-optimization/101039
5474 * match.pd (A CMP 0 ? A : -A): New patterns.
5475 * tree-ssa-phiopt.c (abs_replacement): Delete function.
5476 (tree_ssa_phiopt_worker): Don't call abs_replacement.
5477 Update comment about abs_replacement.
5479 2021-07-05 Andrew Pinski <apinski@marvell.com>
5481 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
5482 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
5484 2021-07-05 Andrew Pinski <apinski@marvell.com>
5486 * tree-ssa-phiopt.c (match_simplify_replacement):
5487 Add early_p argument. Call gimple_simplify_phiopt
5488 instead of gimple_simplify.
5489 (tree_ssa_phiopt_worker): Update call to
5490 match_simplify_replacement and allow unconditionally.
5491 (phiopt_early_allow): New function.
5492 (gimple_simplify_phiopt): New function.
5494 2021-07-05 Andrew Pinski <apinski@marvell.com>
5496 PR middle-end/101237
5497 * fold-const.c (negate_expr_p): Remove call to element_mode
5498 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
5499 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
5500 (fold_negate_expr_1): Likewise.
5501 (const_unop): Likewise.
5502 (fold_cond_expr_with_comparison): Likewise.
5503 (fold_binary_loc): Likewise.
5504 (fold_ternary_loc): Likewise.
5505 (tree_call_nonnegative_warnv_p): Likewise.
5506 * match.pd (-(A + B) -> (-B) - A): Likewise.
5508 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
5510 * configure.ac: Handle --with-dsymutil in the same way as we
5511 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
5512 Extract the type and version for the dsymutil configured or
5513 found by the default searches.
5514 * config.in: Regenerated.
5515 * configure: Regenerated.
5516 * collect2.c (do_dsymutil): Handle locating dsymutil in the
5517 same way as for the assembler and linker.
5518 * config/darwin.h (DSYMUTIL): Delete.
5519 * gcc.c: Report a configured dsymutil correctly.
5520 * exec-tool.in: Allow for dsymutil.
5522 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
5524 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
5525 Handle V4QI and V2HI modes.
5526 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
5527 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
5528 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
5529 Handle 4-byte dual operands with TARGET_XOP and single operands
5530 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
5531 mmx_pshufbv4qi3 for TARGET_SSSE3.
5532 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
5533 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
5534 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
5535 (expand_vec_perm_even_odd_1): Handle V4QI mode.
5536 (expand_vec_perm_broadcast_1): Handle V4QI mode.
5537 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
5538 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
5539 (mmx_pshufbv4qi3): Ditto.
5540 (*mmx_pblendw32): Ditto.
5541 (*mmx_pblendw64): Rename from *mmx_pblendw.
5542 (mmx_punpckhbw_low): New insn_and_split pattern.
5543 (mmx_punpcklbw_low): Ditto.
5545 2021-07-05 Richard Biener <rguenther@suse.de>
5547 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
5548 set LOOP_C_INFINITE on the vectorized loop.
5550 2021-07-05 Richard Biener <rguenther@suse.de>
5552 PR middle-end/101291
5553 * cfgloopmanip.c (loop_version): Set the loop copy of the
5554 versioned loop to the new loop.
5556 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
5559 * config.gcc: Ensure that Darwin biarch definitions are
5560 added before i386.h.
5561 * config/i386/darwin.h (TARGET_64BIT): Remove.
5562 (PR80556_WORKAROUND): New.
5563 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
5564 (DARWIN_SUBARCH_SPEC): New.
5565 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
5566 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
5567 (REAL_LIBGCC_SPEC): Remove.
5568 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
5569 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
5570 (REAL_LIBGCC_SPEC): Remove.
5572 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
5574 PR middle-end/101294
5575 * expr.c (store_constructor): Don't use vec_duplicate on vector.
5577 2021-07-02 Martin Sebor <msebor@redhat.com>
5581 * diagnostic.c (get_any_inlining_info): New.
5582 (update_effective_level_from_pragmas): Handle inlining context.
5583 (diagnostic_enabled): Same.
5584 (diagnostic_report_diagnostic): Same.
5585 * diagnostic.h (struct diagnostic_info): Add ctor.
5586 (struct diagnostic_context): Add new member.
5587 * tree-diagnostic.c (set_inlining_locations): New.
5588 (tree_diagnostics_defaults): Set new callback pointer.
5590 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
5592 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
5594 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
5595 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
5596 lxvp and stxvp built-ins.
5597 (mma_init_builtins): Handle lxvp and stxvp built-ins.
5598 (builtin_function_type): Likewise.
5599 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
5601 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
5603 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
5604 additional argument for the code.
5605 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
5606 argument for the code. Just return if the ZN bits are useful or
5607 not rather than the old style CC_* enums.
5608 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
5609 more generic shiftqi patterns.
5610 (shifthi_noscratch, shiftsi_noscratch): Similarly.
5611 (shiftqi_noscratch_set_flags): New pattern.
5612 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
5614 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
5616 PR tree-optimization/101223
5617 * range-op.cc (build_lt): Add -1 for signed values.
5618 (built_gt): Subtract -1 for signed values.
5620 2021-07-02 David Faust <david.faust@oracle.com>
5622 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
5623 (btf_asm_type): Likewise.
5625 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
5627 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
5628 an array of rtx rather than a pointer to rtx. Add code argument.
5629 (compute_a_shift_length): Similarly.
5630 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
5631 shift itself isn't an operand. Create dummy operand[0] to carry
5632 a mode and pass a suitable rtx code to compute_a_shift_length.
5633 (get_shift_alg): Adjust operand number of clobber in output templates.
5634 (output_a_shift): Make first argument an array of rtx rather than
5635 a pointer to rtx. Add code argument for the type of shift.
5636 Adjust now that the shift itself is no longer an operand.
5637 (compute_a_shift_length): Similarly.
5638 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
5639 iterator rather than nshift_operator.
5640 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
5641 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
5642 and compute_a_shift_length.
5643 (shiftqi_noscratch_clobber_flags): Likewise.
5644 (shifthi_noscratch_clobber_flags): Likewise.
5645 (shiftsi_noscratch_clobber_flags): Likewise.
5647 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
5650 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
5651 dsymutil for BTF/CTF.
5653 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
5656 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
5657 segment to include BTF.
5658 (BTF_INFO_SECTION_NAME): New.
5660 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
5662 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
5663 (small_data_operand, memreg_operand, small_insn_p): Likewise.
5664 * config/m32r/m32r.c (call_operand): Adjust return type.
5665 (small_data_operand, memreg_operand): Likewise.
5667 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
5669 * config/frv/frv-protos.h (integer_register_operand): Adjust return
5671 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
5672 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
5673 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
5674 (move_source_operand, move_destination_operand): Likewise.
5675 (condexec_source_operand, condexec_dest_operand): Likewise.
5676 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
5677 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
5678 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
5679 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
5680 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
5681 (even_fpr_operand, odd_fpr_operand): Likewise.
5682 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
5683 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
5684 (uint4_operand, uint1_operand, int_2word_operand): Likewise
5685 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
5686 (relational_operator, float_relational_operator): Likewise.
5687 (ccr_eqne_operator, minmax_operator): Likewise.
5688 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
5689 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
5690 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
5691 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
5692 (quad_acc_operand, accg_operand): Likewise.
5694 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
5696 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
5697 return type to a bool.
5698 (nonimmediate_nonstack_operand): Likewise.
5699 (xstormy16_splittable_below100_operand): Likewise.
5700 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
5702 (xstormy16_splittable_below100_operand): Likewise.
5704 2021-07-02 Richard Biener <rguenther@suse.de>
5706 PR tree-optimization/101293
5707 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
5708 with combined offsets.
5709 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
5710 combined with the rest of the offset.
5712 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
5714 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
5715 PIC encodings for PE-COFF targets.
5717 2021-07-02 Jakub Jelinek <jakub@redhat.com>
5720 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
5721 Return nullptr for TImode inner mode.
5723 2021-07-02 Richard Biener <rguenther@suse.de>
5725 PR tree-optimization/101280
5726 PR tree-optimization/101173
5727 * gimple-loop-interchange.cc
5728 (tree_loop_interchange::valid_data_dependences): Properly
5729 guard all dependence checks with DDR_REVERSED_P or its
5732 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
5734 * config/i386/i386-expand.c (ix86_expand_builtin):
5735 Add branch to clear odata when ZF is set for asedecenc_expand
5736 and wideaesdecenc_expand.
5738 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
5740 * config/i386/gcc-auto-profile: regenerate
5742 2021-07-02 liuhongt <hongtao.liu@intel.com>
5744 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
5745 (trunc<mode><pmov_dst_4_lower>2): this.
5747 2021-07-01 David Malcolm <dmalcolm@redhat.com>
5749 * diagnostic.h (diagnostic_context::m_file_cache): New field.
5750 * input.c (class fcache): Rename to...
5751 (class file_cache_slot): ...this, making most members private and
5752 prefixing fields with "m_".
5753 (file_cache_slot::get_file_path): New accessor.
5754 (file_cache_slot::get_use_count): New accessor.
5755 (file_cache_slot::missing_trailing_newline_p): New accessor.
5756 (file_cache_slot::inc_use_count): New.
5757 (fcache_buffer_size): Move to...
5758 (file_cache_slot::buffer_size): ...here.
5759 (fcache_line_record_size): Move to...
5760 (file_cache_slot::line_record_size): ...here.
5761 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
5762 (fcache_tab_size): Move to file_cache::num_file_slots.
5763 (diagnostic_file_cache_init): Update for move of fcache_tab
5764 to global_dc->m_file_cache.
5765 (diagnostic_file_cache_fini): Likewise.
5766 (lookup_file_in_cache_tab): Convert to...
5767 (file_cache::lookup_file): ...this.
5768 (diagnostics_file_cache_forcibly_evict_file): Update for move of
5769 fcache_tab to global_dc->m_file_cache, moving most of
5770 implementation to...
5771 (file_cache::forcibly_evict_file): ...this new function and...
5772 (file_cache_slot::evict): ...this new function.
5773 (evicted_cache_tab_entry): Convert to...
5774 (file_cache::evicted_cache_tab_entry): ...this.
5775 (add_file_to_cache_tab): Convert to...
5776 (file_cache::add_file): ...this, moving bulk of implementation
5778 (file_cache_slot::create): ..this new function.
5779 (file_cache::file_cache): New.
5780 (file_cache::~file_cache): New.
5781 (lookup_or_add_file_to_cache_tab): Convert to...
5782 (file_cache::lookup_or_add_file): ..this new function.
5783 (fcache::fcache): Rename to...
5784 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
5786 (fcache::~fcache): Rename to...
5787 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
5789 (needs_read): Convert to...
5790 (file_cache_slot::needs_read_p): ...this.
5791 (needs_grow): Convert to...
5792 (file_cache_slot::needs_grow_p): ...this.
5793 (maybe_grow): Convert to...
5794 (file_cache_slot::maybe_grow): ...this.
5795 (read_data): Convert to...
5796 (file_cache_slot::read_data): ...this.
5797 (maybe_read_data): Convert to...
5798 (file_cache_slot::maybe_read_data): ...this.
5799 (get_next_line): Convert to...
5800 (file_cache_slot::get_next_line): ...this.
5801 (goto_next_line): Convert to...
5802 (file_cache_slot::goto_next_line): ...this.
5803 (read_line_num): Convert to...
5804 (file_cache_slot::read_line_num): ...this.
5805 (location_get_source_line): Update for moving of globals to
5806 global_dc->m_file_cache.
5807 (location_missing_trailing_newline): Likewise.
5808 * input.h (class file_cache_slot): New forward decl.
5809 (class file_cache): New.
5811 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
5813 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
5814 128-bit floating point conditional move support.
5815 (have_compare_and_set_mask): Add IEEE 128-bit floating point
5817 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
5818 (mov<mode>cc_p10, IEEE128 iterator): New insn.
5819 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
5820 (fpmask<mode>, IEEE128 iterator): New insn.
5821 (xxsel<mode>, IEEE128 iterator): New insn.
5823 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
5826 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
5828 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
5830 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
5832 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
5834 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
5835 (vec_duplicate<mode>): New expander.
5837 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
5840 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
5842 (ix86_byte_broadcast): New function.
5843 (ix86_convert_const_wide_int_to_broadcast): Likewise.
5844 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
5845 size is 16 bytes or bigger.
5846 (ix86_broadcast_from_integer_constant): New function.
5847 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
5848 to broadcast if mode size is 16 bytes or bigger.
5849 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
5851 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
5853 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
5855 * config/i386/predicates.md (ix86_endbr_immediate_operand):
5856 Return true/false instead of 1/0.
5857 (movq_parallel): Ditto.
5859 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
5861 * recog.c (general_operand): Return true/false instead of 1/0.
5862 (register_operand): Ditto.
5863 (immediate_operand): Ditto.
5864 (const_int_operand): Ditto.
5865 (const_scalar_int_operand): Ditto.
5866 (const_double_operand): Ditto.
5867 (push_operand): Ditto.
5868 (pop_operand): Ditto.
5869 (memory_operand): Ditto.
5870 (indirect_operand): Ditto.
5872 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
5874 * genpreds.c (write_predicate_subfunction):
5875 Change the type of written subfunction to bool.
5876 (write_one_predicate_function):
5877 Change the type of written function to bool.
5878 (write_tm_preds_h): Ditto.
5879 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
5880 * recog.c (general_operand): Change the type to bool.
5881 (address_operand): Ditto.
5882 (register_operand): Ditto.
5883 (pmode_register_operand): Ditto.
5884 (scratch_operand): Ditto.
5885 (immediate_operand): Ditto.
5886 (const_int_operand): Ditto.
5887 (const_scalar_int_operand): Ditto.
5888 (const_double_operand): Ditto.
5889 (nonimmediate_operand): Ditto.
5890 (nonmemory_operand): Ditto.
5891 (push_operand): Ditto.
5892 (pop_operand): Ditto.
5893 (memory_operand): Ditto.
5894 (indirect_operand): Ditto.
5895 (ordered_comparison_operator): Ditto.
5896 (comparison_operator): Ditto.
5897 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
5898 Change the type of indirect predicate function to bool.
5899 * config/rs6000/rs6000.c (easy_vector_constant):
5900 Change the type to bool.
5901 * config/mips/mips-protos.h (m16_based_address_p):
5902 Change the type of operand 3 to bool.
5904 2021-07-01 Richard Biener <rguenther@suse.de>
5906 PR tree-optimization/101280
5907 PR tree-optimization/101173
5908 * gimple-loop-interchange.cc
5909 (tree_loop_interchange::valid_data_dependences): Revert
5910 previous change and instead correctly handle DDR_REVERSED_P
5913 2021-07-01 Richard Biener <rguenther@suse.de>
5915 PR tree-optimization/101278
5916 * tree-ssa-dse.c (dse_classify_store): First check for
5917 uses, then ignore stmt for chaining purposes.
5919 2021-07-01 Richard Biener <rguenther@suse.de>
5921 PR tree-optimization/100778
5922 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
5923 vectorized ops ahead of their scalar BB.
5925 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
5928 * config/i386/i386.md (*nabs<dwi>2_doubleword):
5929 New insn_and_split pattern.
5930 (*nabs<dwi>2_1): Ditto.
5931 * config/i386/i386-features.c
5932 (general_scalar_chain::compute_convert_gain):
5933 Handle (NEG (ABS (...))) RTX. Rewrite src code
5934 scanner as switch statement.
5935 (general_scalar_chain::convert_insn):
5936 Handle (NEG (ABS (...))) RTX.
5937 (general_scalar_to_vector_candidate_p):
5938 Detect (NEG (ABS (...))) RTX. Reorder case statements
5939 for (AND (NOT (...) ...)) fallthrough.
5941 2021-07-01 Richard Biener <rguenther@suse.de>
5943 PR tree-optimization/101178
5944 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
5945 (slpg::perm_in): Add.
5946 (slpg::get_perm_in): Remove.
5947 (slpg::get_perm_materialized): Add.
5948 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
5949 during permute propagation and materialization.
5951 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5954 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
5956 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5959 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
5960 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
5961 use boolean_type_node instead of integer_type_node as NE_EXPR type.
5962 (lower_reduction_clauses): Likewise.
5964 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5966 * config/gcn/gcn.c: Include dwarf2.h.
5967 (gcn_addr_space_debug): New function.
5968 (TARGET_ADDR_SPACE_DEBUG): New hook.
5970 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5972 * common/config/gcn/gcn-common.c
5973 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
5974 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
5976 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
5977 (gcn_frame_pointer_rqd): New function.
5978 (TARGET_FRAME_POINTER_REQUIRED): New hook.
5980 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5982 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
5983 prologue register saves.
5984 (gcn_debug_unwind_info): Use UI_DWARF2.
5985 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
5986 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
5987 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
5988 (DWARF_LINK_REGISTER): New define.
5989 (FIRST_PSEUDO_REGISTER): Increment.
5990 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
5991 (CALL_USED_REGISTERS): Likewise.
5992 (REGISTER_NAMES): Likewise.
5994 2021-06-30 Richard Biener <rguenther@suse.de>
5996 PR tree-optimization/101267
5997 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
5998 API and use SLP compatible interface of vect_is_simple_use.
5999 Reject not vectorized SLP defs for callers that do not support
6001 (vect_check_store_rhs): Handle masked stores and pass down
6002 the appropriate operator index.
6003 (vectorizable_call): Adjust.
6004 (vectorizable_store): Likewise.
6005 (vectorizable_load): Likewise. Handle SLP pecularity of
6007 (vect_is_simple_use): Remove special-casing of masked stores.
6009 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
6011 * common.opt (foffload): Remove help as Driver only.
6012 * gcc.c (display_help): Add -foffload.
6014 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
6016 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
6017 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
6018 a candidate list; better inform no offload target is configured
6019 and fix hint extraction when passed target is not '\0' at [len].
6020 * common.opt (foffload): Add tailing '.'.
6021 (foffload-options): Likewise; fix flag name in the help string.
6023 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
6026 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
6027 (vcage_f32): Gate comparison on __FAST_MATH__.
6028 (vcageq_f32): Likewise.
6029 (vcale_f32): Likewise.
6030 (vcaleq_f32): Likewise.
6031 (vcagt_f32): Likewise.
6032 (vcagtq_f32): Likewise.
6033 (vcalt_f32): Likewise.
6034 (vcaltq_f32): Likewise.
6035 (vcage_f16): Likewise.
6036 (vcageq_f16): Likewise.
6037 (vcale_f16): Likewise.
6038 (vcaleq_f16): Likewise.
6039 (vcagt_f16): Likewise.
6040 (vcagtq_f16): Likewise.
6041 (vcalt_f16): Likewise.
6042 (vcaltq_f16): Likewise.
6044 2021-06-30 Richard Biener <rguenther@suse.de>
6046 PR tree-optimization/101264
6047 * tree-vect-slp.c (vect_optimize_slp): Propagate the
6048 computed perm_in to all "any" permute successors
6049 we cannot de-duplicate immediately.
6051 2021-06-30 liuhongt <hongtao.liu@intel.com>
6054 * config/i386/sse.md
6055 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
6057 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
6059 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
6060 * config/i386/subst.md (maskz_scalar): New define_subst.
6061 (maskz_scalar_name): New subst_attr.
6062 (maskz_scalar_op5): Ditto.
6063 (round_saeonly_maskz_scalar_op5): Ditto.
6064 (round_saeonly_maskz_scalar_operand5): Ditto.
6066 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
6068 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
6069 Increase code CSECT alignment to at least 32 bytes.
6070 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
6071 alignment designation.
6073 2021-06-29 Sergei Trofimovich <siarheit@google.com>
6075 * doc/generic.texi: Fix s/net yet/not yet/ typo.
6077 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
6079 PR tree-optimization/101254
6080 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
6081 wrapping/non-wrapping when setting the result range.
6083 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
6085 * value-query.cc (gimple_range_global): Allow phis.
6087 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
6089 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
6090 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
6091 statement for location context.
6092 (check_for_binary_op_overflow): Ditto.
6093 (simplify_using_ranges::get_vr_for_comparison): Ditto.
6094 (simplify_using_ranges::compare_name_with_value): Ditto.
6095 (simplify_using_ranges::compare_names): Ditto.
6096 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
6097 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
6098 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
6099 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
6100 (simplify_using_ranges::two_valued_val_range_p): Ditto.
6101 (simplify_using_ranges::simplify): Ditto.
6102 * vr-values.h: Adjust prototypes.
6104 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
6107 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
6109 2021-06-29 Julian Brown <julian@codesourcery.com>
6111 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
6112 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
6113 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
6115 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
6116 (MAX_FIXED_MODE_SIZE): Change to 128.
6118 2021-06-29 Julian Brown <julian@codesourcery.com>
6120 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
6121 (s_mnemonic): Add clrsb.
6122 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
6123 (clrsb<mode>2): Add expander for SImode/DImode.
6125 2021-06-29 Julian Brown <julian@codesourcery.com>
6127 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
6128 muldi3): Add patterns.
6130 2021-06-29 Julian Brown <julian@codesourcery.com>
6132 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
6133 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
6135 2021-06-29 Julian Brown <julian@codesourcery.com>
6137 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
6139 2021-06-29 Joseph Myers <joseph@codesourcery.com>
6141 * btfout.c, ctfout.c: Include "memmodel.h".
6143 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
6145 * gcc.c (check_offload_target_name): Cast len argument to
6146 %q.*s to 'int'; avoid -Wstringop-truncation warning.
6148 2021-06-29 Richard Biener <rguenther@suse.de>
6150 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
6151 to "any" permute nodes and relax "any" permute proapgation
6152 during iterative backward propagation.
6154 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
6157 * common.opt (-foffload=): Update description.
6158 (-foffload-options=): New.
6159 * doc/invoke.texi (C Language Options): Document
6160 -foffload and -foffload-options.
6161 * gcc.c (check_offload_target_name): New, split off from
6162 handle_foffload_option.
6163 (check_foffload_target_names): New.
6164 (handle_foffload_option): Handle -foffload=default.
6165 (driver_handle_option): Update for -foffload-options.
6166 * lto-opts.c (lto_write_options): Use -foffload-options
6167 instead of -foffload.
6168 * lto-wrapper.c (merge_and_complain, append_offload_options):
6170 * opts.c (common_handle_option): Likewise.
6172 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
6174 * doc/invoke.texi (C Language Options): Sort options
6175 alphabetically in optlist and also the description itself.
6176 Remove leftover -fallow-single-precision from and add missing
6177 -fgnu-tm to the optlist.
6179 2021-06-29 Richard Biener <rguenther@suse.de>
6181 * tree-vect-slp.c (slpg_vertex::visited): Remove.
6182 (vect_slp_perms_eq): Handle -1 permutes.
6183 (vect_optimize_slp): Rewrite permute propagation.
6185 2021-06-29 Jakub Jelinek <jakub@redhat.com>
6188 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
6189 perform the optimization in GENERIC when sanitizing and x has a
6192 2021-06-29 Richard Biener <rguenther@suse.de>
6194 PR tree-optimization/101242
6195 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
6196 PHIs with not represented initial values as leafs.
6198 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
6200 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
6201 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
6203 (pdp11_initial_elimination_offset) Remove unused variable.
6204 (pdp11_cmp_length) Ditto.
6205 (pdp11_insn_cost): Ditto, and fix signedness warning.
6207 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
6209 * btfout.c: Include tm_p.h.
6212 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
6214 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
6216 (bpf_expand_epilogue): Likewise.
6217 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
6218 Do not define DBX_DEBUGGING_INFO.
6220 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
6222 * doc/invoke.texi: Document the CTF and BTF debug info options.
6224 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
6225 David Faust <david.faust@oracle.com>
6226 Jose E. Marchesi <jose.marchesi@oracle.com>
6227 Weimin Pan <weimin.pan@oracle.com>
6229 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
6230 GTFILES. Add new object files.
6231 * common.opt: Add CTF and BTF debug info options.
6232 * btfout.c: New file.
6235 * ctfout.c: Likewise.
6236 * dwarf2ctf.c: Likewise.
6237 * dwarf2ctf.h: Likewise.
6238 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
6240 * dwarf2out.c (dwarf2out_source_line): Likewise.
6241 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
6243 (debug_format_do_cu): New function.
6244 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
6246 Include dwarf2ctf.c.
6247 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
6249 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
6250 (CTF_DEBUG): New bitmask.
6251 (BTF_DEBUG): Likewise.
6252 (enum ctf_debug_info_levels): New enum.
6253 * gengtype.c (open_base_files): Handle ctfc.h.
6254 (main): Handle uint32_t type.
6255 * flags.h (btf_debuginfo_p): New definition.
6256 (dwarf_based_debuginfo_p): Likewise.
6257 * opts.c (debug_type_names): Add entries for CTF and BTF.
6258 (btf_debuginfo_p): New function.
6259 (dwarf_based_debuginfo_p): Likewise.
6260 (common_handle_option): Handle -gctfN and -gbtf options.
6261 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
6262 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
6265 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
6267 * dwarf2out.c (AT_class): Function is no longer static.
6269 (AT_unsigned): Likewise.
6272 (get_AT_string): Likewise.
6273 (get_AT_flag): Likewise.
6274 (get_AT_unsigned): Likewise.
6275 (get_AT_ref): Likewise.
6276 (new_die_raw): Likewise.
6277 (lookup_decl_die): Likewise.
6278 (base_type_die): Likewise.
6279 (add_name_attribute): Likewise.
6280 (add_AT_int): Likewise.
6281 (add_AT_unsigned): Likewise.
6282 (add_AT_loc): Likewise.
6283 (dw_get_die_tag): New function.
6284 (dw_get_die_child): Likewise.
6285 (dw_get_die_sib): Likewise.
6286 (struct dwarf_file_data): Move from here to dwarf2out.h
6287 (struct dw_attr_struct): Likewise.
6288 * dwarf2out.h: Analogous changes.
6290 2021-06-28 Martin Jambor <mjambor@suse.cz>
6293 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
6294 members m_dead_stmts and m_dead_ssas.
6295 * ipa-param-manipulation.c
6296 (ipa_param_body_adjustments::mark_dead_statements): New function.
6297 (ipa_param_body_adjustments::common_initialization): Call it on
6298 all removed but not split parameters.
6299 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
6301 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
6303 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
6304 dead debug statements.
6305 (copy_phis_for_bb): Do not copy dead PHI nodes.
6307 2021-06-28 Martin Jambor <mjambor@suse.cz>
6310 * symtab-clones.h (clone_info): Removed member param_adjustments.
6311 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
6312 deal with pass-through splits now.
6313 (ipa_param_performed_split): Removed.
6314 (ipa_param_adjustments::modify_call): Adjusted parameters.
6315 (class ipa_param_body_adjustments): Adjusted parameters of
6316 register_replacement, modify_gimple_stmt and modify_call_stmt.
6317 (ipa_verify_edge_has_no_modifications): Declare.
6318 (ipa_edge_modifications_finalize): Declare.
6319 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
6320 performed_splits processing, pas only edge to padjs->modify_call,
6321 check that call arguments were not modified if they should not have
6323 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
6325 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
6326 (ipa_edge_modification_info): Likewise.
6327 (ipa_edge_modification_sum): Likewise.
6328 (ipa_edge_modifications): New edge summary.
6329 (ipa_verify_edge_has_no_modifications): New function.
6330 (transitive_split_p): Removed.
6331 (transitive_split_map): Likewise.
6332 (init_transitive_splits): Likewise.
6333 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
6334 summary instead of performed_splits.
6335 (ipa_param_body_adjustments::register_replacement): Drop dummy
6336 parameter, set base_index of the created ipa_param_body_replacement.
6337 (phi_arg_will_live_p): New function.
6338 (ipa_param_body_adjustments::common_initialization): Do not create
6339 IPA_SRA dummy decls.
6340 (simple_tree_swap_info): Removed.
6341 (remap_split_decl_to_dummy): Likewise.
6342 (record_argument_state_1): New function.
6343 (record_argument_state): Likewise.
6344 (ipa_param_body_adjustments::modify_call_stmt): New parameter
6345 orig_stmt. Do not work with dummy decls, save necessary info about
6346 changes to ipa_edge_modifications.
6347 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
6348 orig_stmt, pass it to modify_call_stmt.
6349 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
6351 (ipa_edge_modifications_finalize): New function.
6352 * tree-inline.c (remap_gimple_stmt): Pass original statement to
6354 (copy_phis_for_bb): Do not copy dead PHI nodes.
6355 (expand_call_inline): Do not remap performed_splits.
6356 (update_clone_info): Likewise.
6357 * toplev.c: Include ipa-param-manipulation.h.
6358 (toplev::finalize): Call ipa_edge_modifications_finalize.
6360 2021-06-28 Andrew Pinski <apinski@marvell.com>
6362 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
6363 info if we're the only things setting the target PHI.
6364 (value_replacement): Don't duplicate range here.
6365 (minmax_replacement): Likewise.
6367 2021-06-28 Richard Biener <rguenther@suse.de>
6369 PR tree-optimization/101229
6370 * gimple-walk.c (gimple_walk_op): Handle PHIs.
6372 2021-06-28 Martin Liska <mliska@suse.cz>
6374 * config/v850/v850.c (construct_dispose_instruction): Allocate
6376 (construct_prepare_instruction): Likewise.
6378 2021-06-28 Martin Liska <mliska@suse.cz>
6380 * config/v850/v850.c (v850_option_override): Build default
6382 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
6383 ignored for inlining.
6384 (TARGET_CAN_INLINE_P): New.
6386 2021-06-28 Richard Biener <rguenther@suse.de>
6388 PR tree-optimization/101207
6389 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
6390 permute eliding for load permutations properly.
6392 2021-06-28 Richard Biener <rguenther@suse.de>
6394 PR tree-optimization/101173
6395 * gimple-loop-interchange.cc
6396 (tree_loop_interchange::valid_data_dependences): Disallow outer
6397 loop dependence distance of zero.
6399 2021-06-28 liuhongt <hongtao.liu@intel.com>
6402 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
6403 define_insn_and_split.
6404 (*avx_cmp<mode>3_ltint): Ditto.
6405 (*avx2_pcmp<mode>3_3): Ditto.
6406 (*avx2_pcmp<mode>3_4): Ditto.
6407 (*avx2_pcmp<mode>3_5): Ditto.
6409 2021-06-28 liuhongt <hongtao.liu@intel.com>
6411 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
6412 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
6413 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
6414 IX86_BUILTIN_PBLENDVB128): Replace icode with
6416 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
6418 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
6419 New pre_reload splitter.
6421 2021-06-27 Andrew Pinski <apinski@marvell.com>
6423 PR middle-end/101230
6424 * fold-const.c (fold_ternary_loc): Check
6425 the return value of invert_tree_comparison.
6427 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
6429 * config.gcc: Add SPDX License Identifier.
6430 (powerpc-ibm-aix789): Default to aix73.h.
6431 (powerpc-ibm-aix7.2.*.*): New stanza.
6432 * config/rs6000/aix72.h: Add SPDX License Identifier.
6433 * config/rs6000/aix73.h: New file.
6435 2021-06-26 Jason Merrill <jason@redhat.com>
6437 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
6439 2021-06-26 Andrew Pinski <apinski@marvell.com>
6441 * genmatch.c (lower_cond): Copy for_subst_vec
6442 for the simplify also.
6443 (lower): Swap the order for lower_for and lower_cond.
6445 2021-06-26 Andrew Pinski <apinski@marvell.com>
6447 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
6448 flow senatitive info on the moved ssa set.
6450 2021-06-26 Andrew Pinski <apinski@marvell.com>
6452 * fold-const.c (fold_cond_expr_with_comparison):
6453 Exand arg0 into comp_code, arg00, and arg01.
6454 (fold_ternary_loc): Use invert_tree_comparison
6455 instead of fold_invert_truthvalue for the case
6456 where we have A CMP B ? C : A.
6458 2021-06-25 Martin Sebor <msebor@redhat.com>
6460 PR middle-end/101216
6461 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
6463 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
6465 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
6467 2021-06-25 Richard Biener <rguenther@suse.de>
6469 PR tree-optimization/101202
6470 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
6473 2021-06-25 Richard Biener <rguenther@suse.de>
6475 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
6476 STMT_VINFO_REDUC_DEF from the original representative.
6478 2021-06-25 Martin Sebor <msebor@redhat.com>
6480 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
6481 gimple_no_warning_p and gimple_set_no_warning with
6482 warning_suppressed_p, and suppress_warning.
6484 (maybe_warn_for_bound): Same.
6485 (warn_for_access): Same.
6486 (check_access): Same.
6487 (expand_builtin_strncmp): Same.
6488 (fold_builtin_varargs): Same.
6489 * calls.c (maybe_warn_nonstring_arg): Same.
6490 (maybe_warn_rdwr_sizes): Same.
6491 * cfgexpand.c (expand_call_stmt): Same.
6492 * cgraphunit.c (check_global_declaration): Same.
6493 * fold-const.c (fold_undefer_overflow_warnings): Same.
6494 (fold_truth_not_expr): Same.
6495 (fold_unary_loc): Same.
6496 (fold_checksum_tree): Same.
6497 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
6498 (array_bounds_checker::check_mem_ref): Same.
6499 (array_bounds_checker::check_addr_expr): Same.
6500 (array_bounds_checker::check_array_bounds): Same.
6501 * gimple-expr.c (copy_var_decl): Same.
6502 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
6503 (gimple_fold_builtin_strncat): Same.
6504 (gimple_fold_builtin_stxcpy_chk): Same.
6505 (gimple_fold_builtin_stpcpy): Same.
6506 (gimple_fold_builtin_sprintf): Same.
6507 (fold_stmt_1): Same.
6508 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
6509 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
6510 * gimple-ssa-sprintf.c (handle_printf_call): Same.
6511 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
6512 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
6513 * gimple-ssa-warn-restrict.h: Adjust declarations.
6514 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
6515 gimple_no_warning_p and gimple_set_no_warning with
6516 warning_suppressed_p, and suppress_warning.
6518 (check_bounds_or_overlap): Same.
6519 * gimple.c (gimple_build_call_from_tree): Same.
6520 * gimplify.c (gimplify_return_expr): Same.
6521 (gimplify_cond_expr): Same.
6522 (gimplify_modify_expr_complex_part): Same.
6523 (gimplify_modify_expr): Same.
6524 (gimple_push_cleanup): Same.
6525 (gimplify_expr): Same.
6526 * omp-expand.c (expand_omp_for_generic): Same.
6527 (expand_omp_taskloop_for_outer): Same.
6528 * omp-low.c (lower_rec_input_clauses): Same.
6529 (lower_lastprivate_clauses): Same.
6530 (lower_send_clauses): Same.
6531 (lower_omp_target): Same.
6532 * tree-cfg.c (pass_warn_function_return::execute): Same.
6533 * tree-complex.c (create_one_component_var): Same.
6534 * tree-inline.c (remap_gimple_op_r): Same.
6535 (copy_tree_body_r): Same.
6536 (declare_return_variable): Same.
6537 (expand_call_inline): Same.
6538 * tree-nested.c (lookup_field_for_decl): Same.
6539 * tree-sra.c (create_access_replacement): Same.
6540 (generate_subtree_copies): Same.
6541 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
6542 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
6543 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
6544 * tree-ssa-loop-im.c (execute_sm): Same.
6545 * tree-ssa-phiopt.c (cond_store_replacement): Same.
6546 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
6547 (handle_builtin_strcpy): Same.
6548 (maybe_diag_stxncpy_trunc): Same.
6549 (handle_builtin_stxncpy_strncat): Same.
6550 (handle_builtin_strcat): Same.
6551 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
6552 (set_no_uninit_warning): Same.
6553 (uninit_undefined_value_p): Same.
6554 (warn_uninit): Same.
6555 (maybe_warn_operand): Same.
6556 * tree-vrp.c (compare_values_warnv): Same.
6557 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
6558 (test_for_singularity): Same.
6559 * gimple.h (warning_suppressed_p): New function.
6560 (suppress_warning): Same.
6561 (copy_no_warning): Same.
6562 (gimple_set_block): Call gimple_set_location.
6563 (gimple_set_location): Call copy_warning.
6565 2021-06-25 Martin Sebor <msebor@redhat.com>
6567 * tree.h (warning_suppressed_at, copy_warning,
6568 warning_suppressed_p, suppress_warning): New functions.
6570 2021-06-25 Martin Sebor <msebor@redhat.com>
6572 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
6573 * gengtype.c (open_base_files): Add diagnostic-spec.h.
6574 * diagnostic-spec.c: New file.
6575 * diagnostic-spec.h: New file.
6576 * tree.h (no_warning, all_warnings, suppress_warning_at): New
6578 * warning-control.cc: New file.
6580 2021-06-25 liuhongt <hongtao.liu@intel.com>
6583 * config/i386/i386.c (x86_order_regs_for_local_alloc):
6586 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
6588 PR tree-optimization/101189
6589 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
6590 LHS range of condition to postfold routine.
6591 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
6592 FALSE edge if the LHS range supports it being taken.
6593 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
6595 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
6597 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
6598 (relation_oracle::find_relation_block): Check correct bitmap.
6599 (relation_oracle::dump): Do not dump NULL blocks.
6601 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
6603 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
6604 range_on_edge instead of manually calculating.
6606 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
6608 * range-op.cc: Fix comment.
6610 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
6613 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
6614 Handle V8QI and V4HI modes.
6615 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
6617 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
6618 (mmxpackmode): New mode attribute.
6619 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
6620 (mmxunpackmode): New mode attribute.
6621 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
6622 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
6623 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
6624 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
6625 * config/i386/i386.md (extsuffix): Move from ...
6626 * config/i386/sse.md: ... here.
6628 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
6630 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
6631 (dwarf2out_finish): ...instead of here.
6633 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
6635 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
6636 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
6637 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
6638 * configure: Regenerate.
6640 2021-06-24 Richard Biener <rguenther@suse.de>
6642 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
6643 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
6644 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
6646 2021-06-24 Richard Biener <rguenther@suse.de>
6648 * config/i386/sse.md (avx_addsubv4df3): Rename to
6650 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
6651 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
6652 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
6653 * config/i386/i386-builtin.def: Adjust.
6654 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
6655 * optabs.def (vec_addsub_optab): New optab.
6656 * tree-vect-slp-patterns.c (class addsub_pattern): New.
6657 (slp_patterns): Add addsub_pattern.
6658 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
6659 across CFN_VEC_ADDSUB.
6660 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
6662 * doc/md.texi (vec_addsub<mode>3): Document.
6664 2021-06-24 Jakub Jelinek <jakub@redhat.com>
6666 PR middle-end/101170
6667 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
6668 where regno + subreg_regno_offset wraps around use 0 as starting
6671 2021-06-24 Jakub Jelinek <jakub@redhat.com>
6673 PR middle-end/101172
6674 * stor-layout.c (finish_bitfield_representative): If nextf has
6675 error_mark_node type, set repr type to error_mark_node too.
6677 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
6679 * config/s390/s390.c (s390_function_profiler): Ignore labelno
6681 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
6683 2021-06-24 Richard Biener <rguenther@suse.de>
6685 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
6686 across operations that have different semantics on different
6689 2021-06-24 Jakub Jelinek <jakub@redhat.com>
6691 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
6692 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
6693 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
6694 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
6695 OMP_TARGET user outer_ctx instead of ctx for placeholders and
6696 initializer/combiner gimplification.
6697 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
6698 on target constructs.
6699 (lower_rec_input_clauses): Likewise.
6700 (lower_omp_target): Likewise.
6701 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
6702 on target if in_reduction is present.
6704 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
6706 * tree-predcom.c (class pcom_worker): New class.
6707 (release_chain): Renamed to...
6708 (pcom_worker::release_chain): ...this.
6709 (release_chains): Renamed to...
6710 (pcom_worker::release_chains): ...this.
6711 (aff_combination_dr_offset): Renamed to...
6712 (pcom_worker::aff_combination_dr_offset): ...this.
6713 (determine_offset): Renamed to...
6714 (pcom_worker::determine_offset): ...this.
6715 (class comp_ptrs): New class.
6716 (split_data_refs_to_components): Renamed to...
6717 (pcom_worker::split_data_refs_to_components): ...this,
6718 and update with class comp_ptrs.
6719 (suitable_component_p): Renamed to...
6720 (pcom_worker::suitable_component_p): ...this.
6721 (filter_suitable_components): Renamed to...
6722 (pcom_worker::filter_suitable_components): ...this.
6723 (valid_initializer_p): Renamed to...
6724 (pcom_worker::valid_initializer_p): ...this.
6725 (find_looparound_phi): Renamed to...
6726 (pcom_worker::find_looparound_phi): ...this.
6727 (add_looparound_copies): Renamed to...
6728 (pcom_worker::add_looparound_copies): ...this.
6729 (determine_roots_comp): Renamed to...
6730 (pcom_worker::determine_roots_comp): ...this.
6731 (determine_roots): Renamed to...
6732 (pcom_worker::determine_roots): ...this.
6733 (single_nonlooparound_use): Renamed to...
6734 (pcom_worker::single_nonlooparound_use): ...this.
6735 (remove_stmt): Renamed to...
6736 (pcom_worker::remove_stmt): ...this.
6737 (execute_pred_commoning_chain): Renamed to...
6738 (pcom_worker::execute_pred_commoning_chain): ...this.
6739 (execute_pred_commoning): Renamed to...
6740 (pcom_worker::execute_pred_commoning): ...this.
6741 (struct epcc_data): New member worker.
6742 (execute_pred_commoning_cbck): Call execute_pred_commoning
6743 with pcom_worker pointer.
6744 (find_use_stmt): Renamed to...
6745 (pcom_worker::find_use_stmt): ...this.
6746 (find_associative_operation_root): Renamed to...
6747 (pcom_worker::find_associative_operation_root): ...this.
6748 (find_common_use_stmt): Renamed to...
6749 (pcom_worker::find_common_use_stmt): ...this.
6750 (combinable_refs_p): Renamed to...
6751 (pcom_worker::combinable_refs_p): ...this.
6752 (reassociate_to_the_same_stmt): Renamed to...
6753 (pcom_worker::reassociate_to_the_same_stmt): ...this.
6754 (stmt_combining_refs): Renamed to...
6755 (pcom_worker::stmt_combining_refs): ...this.
6756 (combine_chains): Renamed to...
6757 (pcom_worker::combine_chains): ...this.
6758 (try_combine_chains): Renamed to...
6759 (pcom_worker::try_combine_chains): ...this.
6760 (prepare_initializers_chain): Renamed to...
6761 (pcom_worker::prepare_initializers_chain): ...this.
6762 (prepare_initializers): Renamed to...
6763 (pcom_worker::prepare_initializers): ...this.
6764 (prepare_finalizers_chain): Renamed to...
6765 (pcom_worker::prepare_finalizers_chain): ...this.
6766 (prepare_finalizers): Renamed to...
6767 (pcom_worker::prepare_finalizers): ...this.
6768 (tree_predictive_commoning_loop): Renamed to...
6769 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
6770 some calls and remove some cleanup code.
6771 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
6772 (static variable looparound_phis): Remove.
6773 (static variable name_expansions): Remove.
6775 2021-06-24 Richard Biener <rguenther@suse.de>
6777 * tree-vect-slp.c (slpg_vertex): New struct.
6778 (vect_slp_build_vertices): Adjust.
6779 (vect_optimize_slp): Likewise. Maintain an outgoing permute
6780 and a materialized one.
6782 2021-06-24 Richard Biener <rguenther@suse.de>
6784 PR tree-optimization/101105
6785 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6786 Only ignore steps when they are equal or scalar order is preserved.
6788 2021-06-24 liuhongt <hongtao.liu@intel.com>
6791 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
6792 Adjust comments for ix86_expand_vecop_qihi2.
6793 (ix86_expand_vecmul_qihi): Renamed to ..
6794 (ix86_expand_vecop_qihi2): Adjust function prototype to
6795 support shift operation, add static to definition.
6796 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
6797 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
6798 ix86_expand_vec_shift_qihi_constant.
6799 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
6800 (ix86_expand_vec_shift_qihi_constant): Deleted.
6801 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
6803 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
6804 condition TARGET_64BIT.
6805 (mul<mode>3): Ditto.
6806 (<insn><mode>3): Ditto.
6807 (vlshr<mode>3): Extend to support avx512 vlshr.
6808 (v<insn><mode>3): New expander for
6810 (v<insn>v8qi3): Ditto.
6811 (vashrv8hi3<mask_name>): Renamed to ..
6812 (vashr<mode>3): And extend to support V16QImode for avx512.
6813 (vashrv16qi3): Deleted.
6814 (vashrv2di3<mask_name>): Extend expander to support avx512
6817 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
6819 * doc/lto.texi (Design Overview): Update that slim objects are
6822 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
6824 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
6825 of OTHER_POWER10_MASKS so it will not be enabled by default.
6827 2021-06-23 Richard Biener <rguenther@suse.de>
6828 Martin Jambor <mjambor@suse.cz>
6830 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
6831 param replacement unconditionally. Adjust comment.
6833 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
6835 * Makefile.in (OBJS): Add gimple-range-fold.o
6836 * gimple-range-fold.cc: New.
6837 * gimple-range-fold.h: New.
6838 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
6839 (gimple_range_calc_op2): Ditto.
6840 * gimple-range-gori.h: Move prototypes to here.
6841 * gimple-range.cc: Adjust include files.
6842 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
6843 (fur_source::get_operand): Ditto.
6844 (fur_source::get_phi_operand): Ditto.
6845 (fur_source::query_relation): Ditto.
6846 (fur_source::register_relation): Ditto.
6847 (class fur_edge): Ditto.
6848 (fur_edge::fur_edge): Ditto.
6849 (fur_edge::get_operand): Ditto.
6850 (fur_edge::get_phi_operand): Ditto.
6851 (fur_stmt::fur_stmt): Ditto.
6852 (fur_stmt::get_operand): Ditto.
6853 (fur_stmt::get_phi_operand): Ditto.
6854 (fur_stmt::query_relation): Ditto.
6855 (class fur_depend): Relocate to gimple-range-fold.h.
6856 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
6857 (fur_depend::register_relation): Ditto.
6858 (fur_depend::register_relation): Ditto.
6859 (class fur_list): Ditto.
6860 (fur_list::fur_list): Ditto.
6861 (fur_list::get_operand): Ditto.
6862 (fur_list::get_phi_operand): Ditto.
6863 (fold_range): Ditto.
6864 (adjust_pointer_diff_expr): Ditto.
6865 (gimple_range_adjustment): Ditto.
6866 (gimple_range_base_of_assignment): Ditto.
6867 (gimple_range_operand1): Ditto.
6868 (gimple_range_operand2): Ditto.
6869 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
6870 (gimple_range_calc_op2): Ditto.
6871 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
6872 (fold_using_range::range_of_range_op): Ditto.
6873 (fold_using_range::range_of_address): Ditto.
6874 (fold_using_range::range_of_phi): Ditto.
6875 (fold_using_range::range_of_call): Ditto.
6876 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
6877 (fold_using_range::range_of_builtin_call): Ditto.
6878 (fold_using_range::range_of_cond_expr): Ditto.
6879 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
6880 (fold_using_range::relation_fold_and_or): Ditto.
6881 (fold_using_range::postfold_gcond_edges): Ditto.
6882 * gimple-range.h: Add gimple-range-fold.h to include files. Change
6883 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
6884 (gimple_range_handler): Relocate to gimple-range-fold.h.
6885 (gimple_range_ssa_p): Ditto.
6886 (range_compatible_p): Ditto.
6887 (class fur_source): Ditto.
6888 (class fur_stmt): Ditto.
6889 (class fold_using_range): Ditto.
6890 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
6891 (gimple_range_calc_op2): Ditto.
6893 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
6895 PR tree-optimization/101148
6896 PR tree-optimization/101014
6897 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
6898 (ranger_cache::~ranger_cache): Adjust.
6899 (ranger_cache::block_range): Check if propagation disallowed.
6900 (ranger_cache::propagate_cache): Disallow propagation if new value
6901 can't be stored properly.
6902 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
6904 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
6906 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
6907 (sbr_vector::set_bb_range): Return true.
6908 (class sbr_sparse_bitmap): Adjust.
6909 (sbr_sparse_bitmap::set_bb_range): Return value.
6910 (block_range_cache::set_bb_range): Return value.
6911 (ranger_cache::propagate_cache): Use return value to print msg.
6912 * gimple-range-cache.h (class block_range_cache): Adjust.
6914 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
6916 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
6918 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
6920 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
6921 so this pattern can be used for test/compare removal. Pass
6922 current insn to compute_logical_op_length and output_logical_op.
6923 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
6924 (h8300_and_costs): Add argument to compute_logical_op_length.
6925 (output_logical_op): Add new argument. Use it to determine if the
6926 condition codes are used and adjust the output accordingly.
6927 (compute_logical_op_length): Add new argument and update length
6928 computations when condition codes are used.
6929 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
6931 (output_logical_op): Likewise.
6933 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
6936 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
6937 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
6938 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
6939 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
6940 * config/i386/sse.md (unspec): ... here.
6942 2021-06-23 Martin Liska <mliska@suse.cz>
6945 * optc-save-gen.awk: Put back arm_fp16_format to
6948 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
6951 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
6954 (clz<mode>2): Update RTX pattern for additions.
6956 2021-06-23 Jakub Jelinek <jakub@redhat.com>
6958 PR middle-end/101167
6959 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
6960 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
6962 2021-06-22 Sergei Trofimovich <siarheit@google.com>
6964 * doc/rtl.texi: drop unbalanced parenthesis.
6966 2021-06-22 Richard Biener <rguenther@suse.de>
6968 PR middle-end/101156
6969 * gimplify.c (gimplify_expr): Remove premature incorrect
6972 2021-06-22 Jakub Jelinek <jakub@redhat.com>
6974 PR tree-optimization/101159
6975 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
6978 2021-06-22 Jakub Jelinek <jakub@redhat.com>
6980 PR middle-end/101160
6981 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
6982 clear crtl->return_rtx instead of keeping it referencing a pseudo.
6984 2021-06-22 Jakub Jelinek <jakub@redhat.com>
6985 Andrew Pinski <apinski@marvell.com>
6987 PR tree-optimization/101162
6988 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
6991 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
6993 * range-op.cc (range_relational_tests): New.
6994 (range_op_tests): Call range_relational_tests.
6996 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
6998 * range-op.cc (operator_cast::lhs_op1_relation): New.
6999 (operator_identity::lhs_op1_relation): Mew.
7001 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7003 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
7005 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7007 * range-op.cc (operator_plus::lhs_op1_relation): New.
7008 (operator_plus::lhs_op2_relation): New.
7010 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7012 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
7013 relation_oracle if dominators exist.
7014 (ranger_cache::~ranger_cache): Dispose of oracle.
7015 (ranger_cache::dump_bb): Dump oracle.
7016 * gimple-range.cc (fur_source::fur_source): New.
7017 (fur_source::get_operand): Use mmeber query.
7018 (fur_source::get_phi_operand): Use member_query.
7019 (fur_source::query_relation): New.
7020 (fur_source::register_dependency): Delete.
7021 (fur_source::register_relation): New.
7022 (fur_edge::fur_edge): Adjust.
7023 (fur_edge::get_phi_operand): Fix comment.
7024 (fur_edge::query): Delete.
7025 (fur_stmt::fur_stmt): Adjust.
7026 (fur_stmt::query): Delete.
7027 (fur_depend::fur_depend): Adjust.
7028 (fur_depend::register_relation): New.
7029 (fur_depend::register_relation): New.
7030 (fur_list::fur_list): Adjust.
7031 (fur_list::get_operand): Use member query.
7032 (fold_using_range::range_of_range_op): Process and query relations.
7033 (fold_using_range::range_of_address): Adjust dependency call.
7034 (fold_using_range::range_of_phi): Ditto.
7035 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
7036 (fold_using_range::relation_fold_and_or): New.
7037 (fold_using_range::postfold_gcond_edges): New.
7038 * gimple-range.h (class gimple_ranger): Adjust.
7039 (class fur_source): Adjust members.
7040 (class fur_stmt): Ditto.
7041 (class fold_using_range): Ditto.
7043 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7045 * range-op.cc (range_operator::wi_fold): Apply relation effect.
7046 (range_operator::fold_range): Adjust and apply relation effect.
7047 (*::fold_range): Add relation parameters.
7048 (*::op1_range): Ditto.
7049 (*::op2_range): Ditto.
7050 (range_operator::lhs_op1_relation): New.
7051 (range_operator::lhs_op2_relation): New.
7052 (range_operator::op1_op2_relation): New.
7053 (range_operator::op1_op2_relation_effect): New.
7054 (relop_early_resolve): New.
7055 (operator_equal::op1_op2_relation): New.
7056 (operator_equal::fold_range): Call relop_early_resolve.
7057 (operator_not_equal::op1_op2_relation): New.
7058 (operator_not_equal::fold_range): Call relop_early_resolve.
7059 (operator_lt::op1_op2_relation): New.
7060 (operator_lt::fold_range): Call relop_early_resolve.
7061 (operator_le::op1_op2_relation): New.
7062 (operator_le::fold_range): Call relop_early_resolve.
7063 (operator_gt::op1_op2_relation): New.
7064 (operator_gt::fold_range): Call relop_early_resolve.
7065 (operator_ge::op1_op2_relation): New.
7066 (operator_ge::fold_range): Call relop_early_resolve.
7067 * range-op.h (class range_operator): Adjust parameters and methods.
7069 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7071 * Makefile.in (OBJS): Add value-relation.o.
7072 * gimple-range.h: Adjust include files.
7073 * tree-data-ref.c: Adjust include file order.
7074 * value-query.cc (range_query::get_value_range): Default to no oracle.
7075 (range_query::query_relation): New.
7076 (range_query::query_relation): New.
7077 * value-query.h (class range_query): Adjust.
7078 * value-relation.cc: New.
7079 * value-relation.h: New.
7081 2021-06-22 Richard Biener <rguenther@suse.de>
7083 PR tree-optimization/101151
7084 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
7087 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
7089 * config/riscv/riscv.c (thead_c906_tune_info): New.
7090 (riscv_tune_info_table): Use new tune.
7092 2021-06-22 Richard Biener <rguenther@suse.de>
7094 PR tree-optimization/101158
7095 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
7096 checking after checking for matching operation.
7098 2021-06-22 Richard Biener <rguenther@suse.de>
7100 PR tree-optimization/101159
7101 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
7102 missing NULL vectype check.
7104 2021-06-22 Richard Biener <rguenther@suse.de>
7106 PR tree-optimization/101154
7107 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
7109 2021-06-22 Jakub Jelinek <jakub@redhat.com>
7112 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
7113 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
7114 * config/i386/i386.c (ix86_expand_prologue): Clear it.
7115 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
7116 Remove "" from match_operand. Emit new insns using emit_move_insn and
7117 set ix86_last_zero_store_uid to INSN_UID of the last store.
7118 Add peephole2s for 1/2/4 stores of const0_rtx following previous
7121 2021-06-22 Martin Liska <mliska@suse.cz>
7123 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
7126 2021-06-22 Martin Liska <mliska@suse.cz>
7128 * gcov-io.h: Remove padding entries.
7130 2021-06-22 liuhongt <hongtao.liu@intel.com>
7132 PR tree-optimization/97770
7133 * tree-vect-patterns.c (vect_recog_popcount_pattern):
7135 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
7137 2021-06-22 liuhongt <hongtao.liu@intel.com>
7140 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
7141 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
7142 (expand<mode>_mask): this ..
7143 (*expand<mode>_mask): New pre_reload splitter to transform
7144 v{,p}expand* to vmov* when mask is zero, all ones, or has all
7145 ones in it's lower part, otherwise still generate
7148 2021-06-22 liuhongt <hongtao.liu@intel.com>
7151 * config/i386/i386-expand.c
7152 (ix86_expand_special_args_builtin): Keep constm1_operand only
7153 if it satisfies insn's operand predicate.
7155 2021-06-21 Jason Merrill <jason@redhat.com>
7158 * df-scan.c (df_ref_record): Check that regno < endregno.
7159 * function.c (assign_parms, expand_function_end): Do nothing with a
7160 TYPE_EMPTY_P result.
7162 2021-06-21 Richard Biener <rguenther@suse.de>
7164 PR tree-optimization/101120
7165 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
7167 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
7168 DR chain DCE capability.
7169 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
7170 * tree-vect-stmts.c (vectorizable_load): Remove unused
7171 loads in the DR chain for SLP.
7173 2021-06-21 Jakub Jelinek <jakub@redhat.com>
7175 PR inline-asm/100785
7176 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
7177 output or input operands were already error_mark_node.
7178 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
7179 remove all inputs, outputs and clobbers from the asm and
7182 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
7184 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
7185 (vceq_s16): Likewise.
7186 (vceq_s32): Likewise.
7187 (vceq_u8): Likewise.
7188 (vceq_u16): Likewise.
7189 (vceq_u32): Likewise.
7190 (vceq_p8): Likewise.
7191 (vceqq_s8): Likewise.
7192 (vceqq_s16): Likewise.
7193 (vceqq_s32): Likewise.
7194 (vceqq_u8): Likewise.
7195 (vceqq_u16): Likewise.
7196 (vceqq_u32): Likewise.
7197 (vceqq_p8): Likewise.
7198 (vceq_f32): Gate __a == __b on __FAST_MATH__.
7199 (vceqq_f32): Likewise.
7200 (vceq_f16): Likewise.
7201 (vceqq_f16): Likewise.
7203 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
7206 * config/arm/iterators.md (NEON_VACMP): Remove.
7207 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
7209 (neon_vca<cmp_op><mode>_insn): Likewise.
7210 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
7213 2021-06-21 Richard Biener <rguenther@suse.de>
7215 PR tree-optimization/101121
7216 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
7217 when we just lack a stmt with the desired op when doing permutation.
7218 (vect_build_slp_tree): When caching a failed SLP build attempt
7219 assert that at least one lane is marked as not matching.
7221 2021-06-21 liuhongt <hongtao.liu@intel.com>
7224 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
7225 register alternative.
7226 (*and<mode>_1): Ditto.
7228 (*andn<mode>_1): Ditto.
7229 (*<code><mode>_1): Ditto.
7230 (*<code>qi_1): Ditto.
7231 (*one_cmpl<mode>2_1): Ditto.
7232 (*one_cmplsi2_1_zext): Ditto.
7233 (*one_cmplqi2_1): Ditto.
7234 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
7235 the order of mask registers to be before general registers.
7237 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
7240 * config/i386/i386.md: New define_peephole2s to shrink writing
7241 1, 2 or 4 consecutive zeros to memory when optimizing for size.
7243 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
7245 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
7246 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
7247 more efficient code when the source can be trivially simplified.
7249 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
7251 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
7252 a range if global is not available.
7253 (ranger_cache::entry_range): Fallback to range_of_def.
7254 * gimple-range-cache.h (range_of_def): Adjust prototype.
7256 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
7258 PR tree-optimization/101014
7259 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
7261 (ranger_cache::~ranger_cache): Ditto.
7262 (ranger_cache::enable_new_values): Delete.
7263 (ranger_cache::push_poor_value): Delete.
7264 (ranger_cache::range_of_def): Remove poor value processing.
7265 (ranger_cache::entry_range): Ditto.
7266 (ranger_cache::fill_block_cache): Ditto.
7267 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
7268 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
7269 * gimple-range.h (class gimple_ranger): Adjust.
7271 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7274 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
7275 derived from arm_canon_arch.
7276 (arm_canon_arch_option): Call it.
7277 (arm_canon_arch_multilib_option): New function.
7278 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
7279 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
7280 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
7281 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
7282 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
7283 * config/arm/arm.opt (mlibarch): New option.
7284 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
7285 of march on RHS with mlibarch.
7287 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
7289 * config.in: Regenerate.
7290 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
7292 * configure: Regenerate.
7293 * configure.ac: Fix for global_load assembler functions.
7295 2021-06-18 Richard Biener <rguenther@suse.de>
7297 PR tree-optimization/101112
7298 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
7299 to lookup a pattern stmt def.
7301 2021-06-18 Jakub Jelinek <jakub@redhat.com>
7303 PR middle-end/101062
7304 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
7305 representatives in QUAL_UNION_TYPE.
7307 2021-06-18 Andrew Pinski <apinski@marvell.com>
7309 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
7310 Add counting of how many times it is done.
7311 (factor_out_conditional_conversion): Likewise.
7312 (match_simplify_replacement): Likewise.
7313 (value_replacement): Likewise.
7314 (spaceship_replacement): Likewise.
7315 (cond_store_replacement): Likewise.
7316 (cond_if_else_store_replacement_1): Likewise.
7317 (hoist_adjacent_loads): Likewise.
7319 2021-06-18 Andrew Pinski <apinski@marvell.com>
7321 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
7322 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
7323 (verify_gimple_assign_binary): Reject point and offset types on
7324 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
7325 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
7326 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
7328 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
7330 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
7331 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
7332 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
7335 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
7337 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
7338 earlyclobber to alts 0/1.
7339 (gen_addadd): Add earlyclobber to alts 0/1.
7340 * config/rs6000/fusion.md: Regenerate file.
7342 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7344 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
7346 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
7348 * gimple-range-cache.cc: Comment cleanups.
7349 * gimple-range-gori.cc: Comment cleanups.
7350 * gimple-range.cc: Comment/spacing cleanups
7351 * value-range.h: Comment cleanups.
7353 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
7356 * calls.c (expand_call): Replace PUSH_ARGS with
7357 targetm.calls.push_argument (0).
7358 (emit_library_call_value_1): Likewise.
7359 * defaults.h (PUSH_ARGS): Removed.
7360 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
7361 targetm.calls.push_argument (0).
7362 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7363 (emit_push_insn): Pass the number bytes to push to
7364 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
7365 * hooks.c (hook_bool_uint_true): New.
7366 * hooks.h (hook_bool_uint_true): Likewise.
7367 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
7368 targetm.calls.push_argument (0).
7369 * target.def (push_argument): Add a targetm.calls hook.
7370 * targhooks.c (default_push_argument): New.
7371 * targhooks.h (default_push_argument): Likewise.
7372 * config/bpf/bpf.h (PUSH_ARGS): Removed.
7373 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
7374 * config/cr16/cr16.h (PUSH_ARGS): Removed.
7375 * config/i386/i386.c (ix86_push_argument): New.
7376 (TARGET_PUSH_ARGUMENT): Likewise.
7377 * config/i386/i386.h (PUSH_ARGS): Removed.
7378 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
7379 * config/m32c/m32c.h (PUSH_ARGS): Removed.
7380 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
7381 * config/pru/pru.h (PUSH_ARGS): Likewise.
7382 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
7383 TARGET_PUSH_ARGUMENT hook.
7384 * doc/tm.texi: Regenerated.
7386 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
7389 * config/i386/i386-expand.c (expand_vector_set_var):
7390 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
7391 ix86_expand_vector_init_duplicate.
7392 (ix86_expand_vector_init_duplicate): Emit insv_1 for
7393 QImode for !TARGET_PARTIAL_REG_STALL.
7394 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
7395 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
7396 as operand 2 predicate. Call ix86_expand_vector_set_var
7397 for non-constant index operand.
7398 (vec_setv2si): Ditto.
7399 (vec_setv4hi): Ditto.
7400 (vec_setv8qi): ditto.
7402 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
7404 PR tree-optimization/100790
7405 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
7408 2021-06-17 Martin Liska <mliska@suse.cz>
7410 * doc/invoke.texi: Use consistently -O1 instead of -O.
7412 2021-06-17 Martin Liska <mliska@suse.cz>
7414 * gcov-io.h: Update documentation entry about string format.
7416 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
7419 * config/s390/vecintrin.h (vec_doublee): Fix to use
7420 __builtin_s390_vflls.
7421 (vec_floate): Fix to use __builtin_s390_vflrd.
7423 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7425 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
7426 * dominance.h (get_dominated_to_depth): Likewise.
7427 (get_all_dominated_blocks): Likewise.
7428 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
7429 * gcse.c (hoist_code): Likewise.
7430 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
7431 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
7432 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7433 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
7435 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7437 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
7438 * dominance.h (get_dominated_by_region): Likewise.
7439 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
7440 (gimple_duplicate_sese_tail): Likewise.
7441 (move_sese_region_to_fn): Likewise.
7443 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7445 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
7446 * dominance.h (get_dominated_by): Likewise.
7447 * auto-profile.c (afdo_find_equiv_class): Adjust.
7448 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
7449 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
7450 * tree-cfg.c (test_linear_chain): Likewise.
7451 (test_diamond): Likewise.
7453 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7455 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
7456 * cfgloopanal.c (get_loop_hot_path): Likewise.
7457 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
7459 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7461 * cgraph.c (cgraph_node::collect_callers): Return
7462 auto_vec<cgraph_edge *>.
7463 * cgraph.h (cgraph_node::collect_callers): Likewise.
7464 * ipa-cp.c (create_specialized_node): Adjust.
7465 (decide_about_value): Likewise.
7466 (decide_whether_version_node): Likewise.
7467 * ipa-sra.c (process_isra_node_results): Likewise.
7469 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7471 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
7472 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
7474 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
7477 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
7479 * gimple-range.cc (debug_seed_ranger): New.
7481 (debug_ranger): New.
7483 2021-06-17 Richard Biener <rguenther@suse.de>
7485 PR tree-optimization/54400
7486 * tree-vectorizer.h (enum slp_instance_kind): Add
7487 slp_inst_kind_bb_reduc.
7488 (reduction_fn_for_scalar_code): Declare.
7489 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
7490 Check SLP_INSTANCE_KIND instead of looking at the
7492 (vect_slp_analyze_instance_alignment): Likewise.
7493 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
7494 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
7495 chain linearization from vect_build_slp_tree_2 and generalize
7496 for the use of BB reduction vectorization.
7497 (vect_build_slp_tree_2): Adjust accordingly.
7498 (vect_optimize_slp): Elide permutes at the root of BB reduction
7500 (vectorizable_bb_reduc_epilogue): New function.
7501 (vect_slp_prune_covered_roots): Likewise.
7502 (vect_slp_analyze_operations): Use them.
7503 (vect_slp_check_for_constructors): Recognize associatable
7504 chains for BB reduction vectorization.
7505 (vectorize_slp_instance_root_stmt): Generate code for the
7506 BB reduction epilogue.
7508 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
7510 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
7512 (gori_compute::may_recompute_p): New.
7513 (gori_compute::outgoing_edge_range_p): Perform recomputations.
7514 * gimple-range-gori.h (class gori_compute): Add prototype.
7516 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
7518 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
7519 true when a range can be calculated.
7520 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
7522 2021-06-16 Martin Sebor <msebor@redhat.com>
7524 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
7525 Correct documented defaults.
7527 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
7529 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
7530 m_new_value_p directly.
7532 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
7535 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
7536 Handle 64bit modes for TARGET_SSE4_1.
7537 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
7538 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
7539 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
7540 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
7541 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
7542 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
7544 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
7546 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
7547 Change to an expander that emits the correct instruction
7548 depending on endianness.
7549 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
7550 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
7552 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
7554 * config/aarch64/aarch64-simd-builtins.def: Split generator
7555 for aarch64_<su>qmovn builtins into scalar and vector
7557 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
7559 (aarch64_<su>qmovn<mode>_insn_be): Define.
7560 (aarch64_<su>qmovn<mode>): Split into scalar and vector
7561 variants. Change vector variant to an expander that emits the
7562 correct instruction depending on endianness.
7564 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
7566 * config/aarch64/aarch64-simd-builtins.def: Split generator
7567 for aarch64_sqmovun builtins into scalar and vector variants.
7568 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
7569 Split into scalar and vector variants. Change vector variant
7570 to an expander that emits the correct instruction depending
7572 (aarch64_sqmovun<mode>_insn_le): Define.
7573 (aarch64_sqmovun<mode>_insn_be): Define.
7575 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
7577 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
7578 Define - modeling zero-high-half semantics.
7579 (aarch64_xtn<mode>): Change to an expander that emits the
7580 appropriate instruction depending on endianness.
7581 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
7583 (aarch64_xtn2<mode>_le): Rename to...
7584 (aarch64_xtn2<mode>_insn_le): This.
7585 (aarch64_xtn2<mode>_be): Rename to...
7586 (aarch64_xtn2<mode>_insn_be): This.
7587 (vec_pack_trunc_<mode>): Emit truncation instruction instead
7589 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
7592 2021-06-16 Martin Jambor <mjambor@suse.cz>
7594 PR tree-optimization/100453
7595 * tree-sra.c (create_access): Disqualify any const candidates
7596 which are written to.
7597 (sra_modify_expr): Do not store sub-replacements back to a const base.
7598 (handle_unscalarized_data_in_subtree): Likewise.
7599 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
7600 instead of constant_decl_p.
7602 2021-06-16 Jakub Jelinek <jakub@redhat.com>
7604 PR middle-end/101062
7605 * stor-layout.c (finish_bitfield_representative): For fields in unions
7606 assume nextf is always NULL.
7607 (finish_bitfield_layout): Compute bit field representatives also in
7608 unions, but handle it as if each bitfield was the only field in the
7611 2021-06-16 Richard Biener <rguenther@suse.de>
7613 PR tree-optimization/101088
7614 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
7615 supported refs on edges. Do not assert same ref but
7616 different kind stores are unsuported but mark them so.
7617 (hoist_memory_references): Only look for supported refs
7620 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
7622 PR rtl-optimization/46235
7623 * config/i386/i386.md: New define_split for bt followed by cmov.
7624 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
7625 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
7626 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
7627 by setnc with zero extension.
7629 2021-06-16 Richard Biener <rguenther@suse.de>
7631 PR tree-optimization/101083
7632 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
7633 vectype as argument.
7634 (vect_build_slp_tree_2): Adjust.
7636 2021-06-15 Martin Sebor <msebor@redhat.com>
7638 PR middle-end/100876
7639 * builtins.c: (gimple_call_return_array): Account for size_t
7640 mangling as either unsigned int or unsigned long
7642 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
7644 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
7645 up before eliminating comparisons.
7647 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
7649 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
7650 nonzero|X is nonzero.
7651 (range_op_bitwise_and_tests): Add tests for above.
7653 2021-06-15 Carl Love <cel@us.ibm.com>
7656 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
7658 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
7661 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
7664 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
7665 (struct gimplify_omp_ctx): Extend defaultmap array by one.
7666 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
7667 (omp_notice_variable): Update type classification for Fortran.
7668 (gimplify_scan_omp_clauses): Update calls for new argument; handle
7669 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
7670 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
7671 * langhooks.c (lhd_omp_scalar_p): Likewise.
7672 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
7673 (LANG_HOOKS_DECLS): Add them.
7674 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
7675 omp_scalar_p pointer type to include the new bool argument.
7677 2021-06-15 David Malcolm <dmalcolm@redhat.com>
7680 (Special Functions for Debugging the Analyzer): Add
7681 __analyzer_dump_capacity.
7683 2021-06-15 Jakub Jelinek <jakub@redhat.com>
7686 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
7687 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
7689 2021-06-15 Richard Biener <rguenther@suse.de>
7691 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
7692 check to identify loop latches.
7693 * cfgloop.c (verify_loop_structure): Likewise.
7694 * loop-init.c (apply_loop_flags): Allow marked irreducible
7695 regions even with multiple latches.
7696 * predict.c (rebuild_frequencies): Simplify.
7698 2021-06-15 Richard Biener <rguenther@suse.de>
7700 * tree-ssa-threadupdate.c
7701 (jump_thread_path_registry::mark_threaded_blocks): Assert we
7702 have marked irreducible regions.
7704 2021-06-14 Martin Sebor <msebor@redhat.com>
7707 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
7708 Handle calls to placement new.
7709 (ndecl_dealloc_argno): Avoid placement delete.
7711 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
7714 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
7715 create_tmp_reg_or_ssa_name().
7717 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
7719 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
7720 (ranger_cache::enable_new_values): Set to specified value and
7721 return the old value.
7722 (ranger_cache::disable_new_values): Delete.
7723 (ranger_cache::fill_block_cache): Disable non 1st order derived
7725 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
7726 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
7728 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
7731 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
7732 Return true early when testing with V2HImode.
7733 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
7735 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
7737 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
7738 (mve_vec_unpack<US>_hi_<mode>): New pattern.
7739 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
7740 (mve_vmovntq_<supf><mode>): Prefix with '@'.
7741 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
7743 (vec_unpack<US>_lo_<mode>): Likewise.
7744 (vec_pack_trunc_<mode>): Rename to
7745 neon_quad_vec_pack_trunc_<mode>.
7746 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
7748 (vec_unpack<US>_lo_<mode>): New.
7749 (vec_pack_trunc_<mode>): New.
7751 2021-06-14 Richard Biener <rguenther@suse.de>
7753 PR tree-optimization/100934
7754 * tree-ssa-dom.c (pass_dominator::execute): Properly
7755 mark irreducible regions.
7757 2021-06-14 Martin Liska <mliska@suse.cz>
7759 * doc/invoke.texi: Put r{...} on the same line as @item.
7761 2021-06-14 Martin Liska <mliska@suse.cz>
7763 * doc/invoke.texi: Add missing newline.
7765 2021-06-14 Martin Liska <mliska@suse.cz>
7767 * doc/invoke.texi: Remove '+' charasters.
7769 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
7771 * config.gcc (arc): Add support for with_cpu option.
7772 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
7774 2021-06-14 Richard Biener <rguenther@suse.de>
7776 PR tree-optimization/101031
7777 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
7778 instead of size when accounting for a possibly string
7781 2021-06-14 Martin Liska <mliska@suse.cz>
7783 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
7785 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
7787 * value-query.cc (gimple_range_global): Call get_range_global
7788 if called after inlining.
7790 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
7793 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
7794 Emit constant permutation insn directly from here.
7796 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
7798 * attribs.c (find_attribute_namespace): Iterate over vec<> with
7800 * auto-profile.c (afdo_find_equiv_class): Likewise.
7801 * gcc.c (do_specs_vec): Likewise.
7802 (do_spec_1): Likewise.
7803 (driver::set_up_specs): Likewise.
7804 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
7805 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
7806 (imm_store_chain_info::try_coalesce_bswap): Likewise.
7807 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
7808 (get_location_for_stmts): Likewise.
7809 * graphite-poly.c (print_iteration_domains): Likewise.
7810 (free_poly_bb): Likewise.
7811 (remove_gbbs_in_scop): Likewise.
7812 (free_scop): Likewise.
7813 (dump_gbb_cases): Likewise.
7814 (dump_gbb_conditions): Likewise.
7815 (print_pdrs): Likewise.
7816 (print_scop): Likewise.
7817 * ifcvt.c (cond_move_process_if_block): Likewise.
7818 * lower-subreg.c (decompose_multiword_subregs): Likewise.
7819 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
7820 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
7821 * sel-sched-dump.c (dump_insn_vector): Likewise.
7822 * store-motion.c (store_ops_ok): Likewise.
7823 (store_killed_in_insn): Likewise.
7824 * timevar.c (timer::named_items::print): Likewise.
7825 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
7826 (cleanup_tree_cfg_noloop): Likewise.
7827 * tree-data-ref.c (dump_data_references): Likewise.
7828 (print_dir_vectors): Likewise.
7829 (print_dist_vectors): Likewise.
7830 (dump_data_dependence_relations): Likewise.
7831 (dump_dist_dir_vectors): Likewise.
7832 (dump_ddrs): Likewise.
7833 (create_runtime_alias_checks): Likewise.
7834 (free_subscripts): Likewise.
7835 (save_dist_v): Likewise.
7836 (save_dir_v): Likewise.
7837 (invariant_access_functions): Likewise.
7838 (same_access_functions): Likewise.
7839 (access_functions_are_affine_or_constant_p): Likewise.
7840 (find_data_references_in_stmt): Likewise.
7841 (graphite_find_data_references_in_stmt): Likewise.
7842 (free_dependence_relations): Likewise.
7843 (free_data_refs): Likewise.
7844 * tree-inline.c (copy_debug_stmts): Likewise.
7845 * tree-into-ssa.c (dump_currdefs): Likewise.
7846 (rewrite_update_phi_arguments): Likewise.
7847 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
7848 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
7850 (vect_slp_analyze_node_dependences): Likewise.
7851 (vect_slp_analyze_instance_dependence): Likewise.
7852 (vect_record_base_alignments): Likewise.
7853 (vect_get_peeling_costs_all_drs): Likewise.
7854 (vect_peeling_supportable): Likewise.
7855 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
7856 (vec_info::free_stmt_vec_infos): Likewise.
7858 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
7860 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
7861 (andqi3_1<cczn>): Removed.
7862 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
7863 (H8/SX bit logicals): Split out from other patterns.
7864 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
7865 mulqihi3_const_clobber_flags.
7866 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
7868 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
7871 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
7872 to true if red zone is used.
7873 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
7875 * config/i386/i386.h (machine_function): Add red_zone_used.
7876 (ix86_red_zone_size): Removed.
7877 (ix86_red_zone_used): New.
7878 * config/i386/i386.md (peephole2 patterns): Replace
7879 ix86_red_zone_size with ix86_red_zone_used.
7881 2021-06-12 Jason Merrill <jason@redhat.com>
7883 * doc/extend.texi (unused variable attribute): Applies to
7884 structure fields as well.
7886 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
7888 * auto-profile.c (read_profile): fix a typo in an error string
7890 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
7892 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
7894 * tree-pretty-print.c (dump_omp_clauses): Update.
7895 (dump_generic_node) <OMP_CLAUSE>: Use it.
7897 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7900 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
7901 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
7902 the polymorphic variants matching code.
7903 (__arm_vld1q_z): Likewise.
7904 (__arm_vld2q): Likewise.
7905 (__arm_vld4q): Likewise.
7906 (__arm_vldrbq_gather_offset): Likewise.
7907 (__arm_vldrbq_gather_offset_z): Likewise.
7909 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
7911 PR tree-optimization/96392
7912 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
7914 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
7916 PR tree-optimization/96392
7917 * fold-const.c (fold_real_zero_addition_p): Take both arguments
7918 of the addition or subtraction, not just the zero. Use this
7919 other argument in tests for signaling NaNs and signed zeros.
7920 (tree_expr_maybe_real_minus_zero_p): New predicate.
7921 * fold-const.h (fold_real_zero_addition_p): Update prototype.
7922 (tree_expr_maybe_real_minus_zero_p): New function prototype.
7923 * match.pd: Update calls to fold_real_zero_addition_p.
7924 Replace HONOR_NANS with tree_expr_maybe_nan_p.
7925 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
7926 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
7927 * tree-ssa-reassoc.c (eliminate_using_constants): Update
7928 call to fold_real_zero_addition_p.
7930 2021-06-11 Richard Biener <rguenther@suse.de>
7932 PR tree-optimization/101025
7933 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
7934 all refs that require dependence checking.
7936 2021-06-11 Richard Biener <rguenther@suse.de>
7938 PR tree-optimization/101028
7939 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
7940 reassoc discovery fails fatally, mark appropriate lanes
7943 2021-06-11 Richard Biener <rguenther@suse.de>
7945 PR tree-optimization/101026
7946 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
7947 have a representative for the associated chain nodes.
7949 2021-06-11 Jakub Jelinek <jakub@redhat.com>
7951 PR rtl-optimization/101008
7952 * simplify-rtx.c (relational_result): New function.
7953 (simplify_logical_relational_operation,
7954 simplify_relational_operation): Use it.
7956 2021-06-11 Jakub Jelinek <jakub@redhat.com>
7959 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
7961 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
7964 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
7965 false if the permutation can be implemented with constant
7966 permutation instruction in wider mode.
7967 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
7968 Handle V8QImode and V4HImode.
7970 2021-06-11 Martin Liska <mliska@suse.cz>
7972 PR gcov-profile/100788
7973 * common.opt: Add new option.
7974 * coverage.c (coverage_begin_function): Emit warning instead on
7975 the internal compiler error.
7976 * doc/invoke.texi: Document the option.
7977 * toplev.c (process_options): Enable it by default.
7979 2021-06-11 Richard Biener <rguenther@suse.de>
7981 PR middle-end/101009
7982 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
7983 to set *init_b to true when we encounter a constant equal
7985 (compute_affine_dependence): Also dump the actual DR_REF.
7987 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
7989 PR tree-optimization/100984
7990 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
7992 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
7994 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
7996 * config/rs6000/rs6000.md
7997 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
7998 define_insn_and_split.
8000 2021-06-11 Richard Biener <rguenther@suse.de>
8002 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
8003 to sort operands of the associative chain.
8005 2021-06-11 Richard Biener <rguenther@suse.de>
8007 * system.h (gcc_stablesort_r): Declare.
8008 * sort.cc (gcc_sort_r): Support stable sort.
8009 (gcc_stablesort_r): Define.
8010 * vec.h (vec<>::stablesort): Add.
8012 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
8015 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
8016 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
8017 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
8018 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
8019 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
8020 (expand_vec_perm_interleave2): Handle 64bit modes.
8021 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
8022 (expand_vec_perm_even_odd_1): Ditto.
8023 (ix86_vectorize_vec_perm_const): Ditto.
8024 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
8025 * config/i386/sse.md: ... here.
8026 * config/i386/mmx.md (*vec_interleave_lowv2sf):
8027 New insn_and_split pattern.
8028 (*vec_interleave_highv2sf): Ditto.
8029 (mmx_pshufbv8qi3): New insn pattern.
8030 (*mmx_pblendw): Ditto.
8032 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
8034 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
8035 (build_acc): Likewise.
8036 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
8037 source operands in little-endian mode.
8038 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
8039 (mma_init_builtins): Likewise.
8040 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
8041 ordering for the MMA assemble and build source operands.
8042 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
8044 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
8047 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
8049 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
8051 * config/h8300/extensions.md: Replace _clobber_flags patterns
8054 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
8056 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
8057 (vcond_mask_<mode><tointvec>): this.
8059 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
8060 Thomas Schwinge <thomas@codesourcery.com>
8062 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
8063 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
8064 * gimple.h (enum gf_mask): Split
8065 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
8066 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
8067 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
8068 (is_gimple_omp_oacc): Update.
8069 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
8070 * gimplify.c (gimplify_omp_target_update): Likewise.
8071 * omp-expand.c (expand_omp_target, build_omp_regions_1)
8072 (omp_make_gimple_edges): Likewise.
8073 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
8076 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
8078 * value-query.cc (value_query::value_on_edge): Rename name to
8080 (range_query::range_on_edge): Same.
8081 (range_query::value_of_expr): Same.
8082 (range_query::value_on_edge): Same.
8083 * value-query.h (class value_query): Same.
8084 (class range_query): Same.
8086 2021-06-10 Richard Biener <rguenther@suse.de>
8088 PR tree-optimization/101003
8089 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
8090 use the pattern stmt defs when linearizing a chain.
8092 2021-06-10 Jakub Jelinek <jakub@redhat.com>
8095 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
8096 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
8098 2021-06-10 Clement Chigot <clement.chigot@atos.net>
8100 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
8101 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
8103 2021-06-09 Andrew Pinski <apinski@marvell.com>
8105 PR tree-optimization/100925
8106 * match.pd (a ? CST1 : CST2): Limit transformations
8107 that would produce a negative to integeral types only.
8108 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
8110 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
8113 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
8115 * doc/tm.texi: Correctly update.
8117 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
8119 * doc/tm.texi: Correctly update.
8121 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
8124 * doc/tm.texi.in (Trampolines): Add a missing blank line.
8126 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
8129 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
8130 and -ftrampolines work only with Ada.
8131 * doc/tm.texi.in (Trampolines): Likewise.
8132 * doc/tm.texi: Regenerated.
8134 2021-06-09 Carl Love <cel@us.ibm.com>
8136 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
8137 Add define for new builtins.
8138 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
8139 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
8140 overloaded builtin definitions.
8141 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
8142 VSIGNEXTSD2Q): Add builtin expansions.
8143 (SIGNEXT): Add P10 overload definition.
8144 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
8145 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
8146 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
8147 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
8148 vsignextend_si_v2di)[VIlong]: Add define_expand.
8149 Make define_insn vsx_sign_extend_si_v2di visible.
8150 * doc/extend.texi: Add documentation for the vec_signexti,
8151 vec_signextll builtins and vec_signextq.
8153 2021-06-09 Carl Love <cel@us.ibm.com>
8155 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
8156 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
8157 __floattikf_sw, __floatuntikf_sw respectively.
8158 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
8159 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
8160 define_insn for mode IEEE 128.
8162 2021-06-09 Carl Love <cel@us.ibm.com>
8164 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
8165 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
8166 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
8167 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
8168 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
8169 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
8170 uses of VSX_TI to VEC_TI.
8172 2021-06-09 Carl Love <cel@us.ibm.com>
8174 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
8176 2021-06-09 Carl Love <cel@us.ibm.com>
8178 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
8180 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
8181 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
8182 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
8183 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
8184 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
8185 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
8186 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
8188 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
8189 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
8190 altivec_vrlqnm): New define_expands.
8191 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
8192 VCMPGTUT_P): Add macro expansions.
8193 (BU_P10V_AV_P): Add builtin predicate definition.
8194 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
8195 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
8196 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
8197 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
8198 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
8199 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
8200 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
8201 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
8202 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
8203 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
8204 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
8205 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
8206 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
8207 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
8208 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
8209 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
8210 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
8211 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
8212 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
8213 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
8214 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
8215 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
8216 P10V_BUILTIN_MODU_V1TI):
8217 New overloaded definitions.
8218 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
8219 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
8220 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
8221 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
8222 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
8223 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
8225 (altivec_init_builtins): New E_V1TImode case statement.
8226 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
8227 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
8228 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
8229 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
8230 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
8231 E_V1TImode]: New case statements.
8232 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
8233 value RS6000_BTI_bool_V1TI.
8234 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
8235 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
8236 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
8237 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
8238 vlshrv1ti3, vashrv1ti3): New define_expands.
8239 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
8240 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
8241 UNSPEC_VSX_MODUQ): New unspecs.
8242 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
8243 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
8245 (vcmpnet): New define_expand.
8246 * doc/extend.texi: Add documentation for the new builtins vec_rl,
8247 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
8248 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
8249 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
8250 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
8251 vec_any_ge, vec_any_le.
8253 2021-06-09 Carl Love <cel@us.ibm.com>
8255 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
8256 bug in argument generation.
8258 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
8260 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
8262 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
8263 remove <supf> iterator.
8264 (mve_vclzq_u<mode>): New.
8265 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
8266 (neon_vclz<mode): Move to ...
8267 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
8268 * config/arm/vec-common.md: ... here. Add support for MVE.
8270 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
8272 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
8273 (@mve_vrhaddq_<supf><mode): Likewise.
8274 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
8275 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
8276 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
8278 2021-06-09 imba-tjd <109224573@qq.com>
8280 * doc/invoke.texi: Fix typo.
8282 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
8285 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
8286 Support evaluation of fmod/fmodf/fmodl at compile-time.
8288 2021-06-09 Richard Biener <rguenther@suse.de>
8290 PR tree-optimization/100981
8291 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
8292 gimple_get_lhs to also handle calls.
8293 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
8296 2021-06-09 Richard Biener <rguenther@suse.de>
8298 PR tree-optimization/97832
8299 * tree-vectorizer.h (_slp_tree::failed): New.
8300 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
8302 (_slp_tree::~_slp_tree): Free failed.
8303 (vect_build_slp_tree): Retain failed nodes and record
8304 matches in them, copying that back out when running
8305 into a cached fail. Dump start and end of discovery.
8307 (vect_build_slp_tree_2): Handle associatable chains
8308 together doing more aggressive operand swapping.
8310 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
8313 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
8315 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
8316 Linux and GNU targets.
8318 2021-06-09 Richard Biener <rguenther@suse.de>
8320 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
8323 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
8325 * config/arc/arc.md (loop_end): Change it to
8326 define_insn_and_split.
8328 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
8330 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
8331 (machi): New pattern.
8332 (umaddhisi4): Use VMAC2HU instruction.
8333 (umachi): New pattern.
8335 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
8337 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
8338 * config/arc/arc.c (arc_split_move_p): New function.
8339 (arc_split_move): Clean up.
8340 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
8341 (movdf_insn): Likewise.
8342 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
8344 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
8347 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
8348 argument to "raw". Do not emit segment overrides when "raw" is true.
8350 2021-06-09 Martin Liska <mliska@suse.cz>
8352 * doc/gcov.texi: Create a proper JSON files.
8353 * doc/invoke.texi: Remove dots in order to make it a valid
8356 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
8358 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
8359 (insn_is_load_p): Use pattern_is_rotate64.
8360 (insn_is_swap_p): Likewise.
8361 (quad_aligned_load_p): Likewise.
8362 (const_load_sequence_p): Likewise.
8363 (replace_swapped_aligned_load): Likewise.
8364 (recombine_lvx_pattern): Likewise.
8365 (recombine_stvx_pattern): Likewise.
8367 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
8369 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
8370 fur_stmt source record.
8371 * gimple-range.cc (fur_source::get_operand): Generic range query.
8372 (fur_source::get_phi_operand): New.
8373 (fur_source::register_dependency): New.
8374 (fur_source::query): New.
8375 (class fur_edge): New. Edge source for operands.
8376 (fur_edge::fur_edge): New.
8377 (fur_edge::get_operand): New.
8378 (fur_edge::get_phi_operand): New.
8379 (fur_edge::query): New.
8380 (fur_stmt::fur_stmt): New.
8381 (fur_stmt::get_operand): New.
8382 (fur_stmt::get_phi_operand): New.
8383 (fur_stmt::query): New.
8384 (class fur_depend): New. Statement source and process dependencies.
8385 (fur_depend::fur_depend): New.
8386 (fur_depend::register_dependency): New.
8387 (class fur_list): New. List source for operands.
8388 (fur_list::fur_list): New.
8389 (fur_list::get_operand): New.
8390 (fur_list::get_phi_operand): New.
8391 (fold_range): New. Instantiate appropriate fur_source class and fold.
8392 (fold_using_range::range_of_range_op): Use new API.
8393 (fold_using_range::range_of_address): Ditto.
8394 (fold_using_range::range_of_phi): Ditto.
8395 (imple_ranger::fold_range_internal): Use fur_depend class.
8396 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
8397 * gimple-range.h (class fur_source): Now a base class.
8398 (class fur_stmt): New.
8399 (fold_range): New prototypes.
8400 (fur_source::fur_source): Delete.
8402 2021-06-08 Andrew Pinski <apinski@marvell.com>
8404 PR tree-optimization/25290
8405 * tree-ssa-phiopt.c (xor_replacement): Delete.
8406 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
8407 (match_simplify_replacement): Allow one cheap preparation
8408 statement that can be moved to before the if.
8410 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
8412 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
8413 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
8415 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
8417 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
8418 Create length attribute on define_insn_and_split. Only split for cases which we
8420 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
8421 fix length computation.
8422 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
8424 2021-06-08 Richard Biener <rguenther@suse.de>
8426 PR tree-optimization/100923
8427 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
8428 the operand vector to be valueized.
8429 (valueize_refs): Likewise.
8430 (valueize_shared_reference_ops_from_ref): Adjust.
8431 (valueize_shared_reference_ops_from_call): Likewise.
8432 (vn_reference_lookup_3): Likewise.
8433 (vn_reference_lookup_pieces): Likewise. Re-valueize
8434 with honoring availability when we are about to create
8435 the ao_ref and valueized before.
8436 (vn_reference_lookup): Likewise.
8437 (vn_reference_insert_pieces): Adjust.
8439 2021-06-08 Richard Biener <rguenther@suse.de>
8441 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
8442 (_slp_instance::root_stmts): ... a vector.
8443 (SLP_INSTANCE_ROOT_STMT): Rename to ...
8444 (SLP_INSTANCE_ROOT_STMTS): ... this.
8445 (slp_root::root): Change to...
8446 (slp_root::roots): ... a vector.
8447 (slp_root::slp_root): Adjust.
8448 * tree-vect-slp.c (_slp_instance::location): Adjust.
8449 (vect_free_slp_instance): Release the root stmt vector.
8450 (vect_build_slp_instance): Adjust.
8451 (vect_analyze_slp): Likewise.
8452 (_bb_vec_info::~_bb_vec_info): Likewise.
8453 (vect_slp_analyze_operations): Likewise.
8454 (vect_bb_vectorization_profitable_p): Likewise. Adjust
8455 costs for the root stmt.
8456 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
8458 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
8460 (vectorize_slp_instance_root_stmt): Adjust.
8461 (vect_schedule_slp): Likewise.
8463 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
8465 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
8466 (ssa_equiv_stack::ssa_equiv_stack): New.
8467 (ssa_equiv_stack::~ssa_equiv_stack): New.
8468 (ssa_equiv_stack::enter): New.
8469 (ssa_equiv_stack::leave): New.
8470 (ssa_equiv_stack::push_replacement): New.
8471 (ssa_equiv_stack::get_replacement): New.
8472 (is_pointer_ssa): New.
8473 (class pointer_equiv_analyzer): New.
8474 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
8475 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
8476 (pointer_equiv_analyzer::set_global_equiv): New.
8477 (pointer_equiv_analyzer::set_cond_equiv): New.
8478 (pointer_equiv_analyzer::get_equiv): New.
8479 (pointer_equiv_analyzer::enter): New.
8480 (pointer_equiv_analyzer::leave): New.
8481 (pointer_equiv_analyzer::get_equiv_expr): New.
8482 (pta_valueize): New.
8483 (pointer_equiv_analyzer::visit_stmt): New.
8484 (pointer_equiv_analyzer::visit_edge): New.
8485 (hybrid_folder::value_of_expr): Call PTA.
8486 (hybrid_folder::value_on_edge): Same.
8487 (hybrid_folder::pre_fold_bb): New.
8488 (hybrid_folder::post_fold_bb): New.
8489 (hybrid_folder::pre_fold_stmt): New.
8490 (rvrp_folder::pre_fold_bb): New.
8491 (rvrp_folder::post_fold_bb): New.
8492 (rvrp_folder::pre_fold_stmt): New.
8493 (rvrp_folder::value_of_expr): Call PTA.
8494 (rvrp_folder::value_on_edge): Same.
8496 2021-06-08 Jakub Jelinek <jakub@redhat.com>
8499 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
8500 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
8502 2021-06-08 Richard Biener <rguenther@suse.de>
8504 PR middle-end/100951
8505 * tree-vect-generic.c (expand_vector_piecewise): Build a
8506 VECTOR_CST if all elements are constant.
8507 (expand_vector_condition): Likewise.
8508 (lower_vec_perm): Likewise.
8509 (expand_vector_conversion): Likewise.
8511 2021-06-08 Martin Liska <mliska@suse.cz>
8513 * doc/invoke.texi: Document new param evrp-sparse-threshold.
8515 2021-06-08 Martin Liska <mliska@suse.cz>
8517 * genautomata.c (create_automata): Fix typo.
8519 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
8521 PR tree-optimization/100794
8522 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
8523 allow_unroll_p and only allow unrolling when it's true.
8524 (tree_predictive_commoning): Add parameter allow_unroll_p and
8526 (run_tree_predictive_commoning): Likewise.
8527 (pass_predcom::gate): Check flag_tree_loop_vectorize and
8528 global_options_set.x_flag_predictive_commoning.
8529 (pass_predcom::execute): Adjust for allow_unroll_p.
8531 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
8533 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
8534 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
8535 lambda function cleanup, remove scev_reset call, and adjust return
8537 (tree_predictive_commoning): Adjust for different changed values,
8538 only set flag TODO_update_ssa_only_virtuals if changed.
8539 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
8540 from todo_flags_finish.
8542 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
8544 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
8545 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
8546 (sbr_sparse_bitmap::bitmap_set_quad): New.
8547 (sbr_sparse_bitmap::bitmap_get_quad): New.
8548 (sbr_sparse_bitmap::set_bb_range): New.
8549 (sbr_sparse_bitmap::get_bb_range): New.
8550 (sbr_sparse_bitmap::bb_range_p): New.
8551 (block_range_cache::block_range_cache): initialize bitmap obstack.
8552 (block_range_cache::~block_range_cache): Destruct obstack.
8553 (block_range_cache::set_bb_range): Decide when to utilze the
8554 sparse on entry cache.
8555 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
8556 * params.opt (-param=evrp-sparse-threshold): New.
8558 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
8560 * bitmap.c (bitmap_set_aligned_chunk): New.
8561 (bitmap_get_aligned_chunk): New.
8562 (test_aligned_chunk): New.
8563 (bitmap_c_tests): Call test_aligned_chunk.
8564 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
8566 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
8569 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
8571 (ix86_expand_vector_init_one_nonzero): Ditto.
8572 (ix86_expand_vector_init_one_var): Ditto.
8573 (ix86_expand_vector_init_general): Ditto.
8574 * config/i386/mmx.md (vec_initv4qiqi): New expander.
8576 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
8578 * config/h8300/movepush.md: Change most _clobber_flags
8579 patterns to instead use <cczn> subst.
8580 (movsi_cczn): New pattern with usable CC cases split out.
8581 (movsi_h8sx_cczn): Likewise.
8583 2021-06-07 Martin Liska <mliska@suse.cz>
8585 * common/common-target.def: Split long lines and replace them
8587 * target.def: Likewise.
8588 * doc/tm.texi: Re-generated.
8590 2021-06-07 Jakub Jelinek <jakub@redhat.com>
8593 * fold-const.c (fold_read_from_vector): Return NULL if trying to
8594 read from a CONSTRUCTOR with vector type elements.
8596 2021-06-07 Jakub Jelinek <jakub@redhat.com>
8598 PR middle-end/100898
8599 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
8600 should copy any arguments. Don't call gimple_call_num_args
8601 on id->call_stmt or call_stmt more than once.
8603 2021-06-07 liuhongt <hongtao.liu@intel.com>
8606 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
8608 (<insn>v4siv4di2): Delete constraints for define_expand.
8610 2021-06-07 liuhongt <hongtao.liu@intel.com>
8613 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
8614 assignment of cfun->machine->has_explicit_vzeroupper.
8615 * config/i386/i386-features.c
8616 (ix86_add_reg_usage_to_vzerouppers): Delete.
8617 (ix86_add_reg_usage_to_vzeroupper): Ditto.
8618 (rest_of_handle_insert_vzeroupper): Remove
8619 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
8621 (gate): Remove cfun->machine->has_explicit_vzeroupper.
8622 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
8624 * config/i386/i386.c (ix86_insn_callee_abi): New function.
8625 (ix86_initialize_callee_abi): Ditto.
8626 (ix86_expand_avx_vzeroupper): Ditto.
8627 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
8629 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
8630 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
8632 * config/i386/i386.h (struct GTY(()) machine_function): Delete
8633 has_explicit_vzeroupper.
8634 * config/i386/i386.md (enum unspec): New member
8636 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
8637 define_constants for insn callee abi index.
8638 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
8639 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
8640 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
8641 (*avx_vzeroupper): Rename to ..
8642 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
8643 call_insn which has a special vzeroupper ABI.
8644 (*avx_vzeroupper_1): Deleted.
8646 2021-06-07 liuhongt <hongtao.liu@intel.com>
8649 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
8650 it won't use stack pointer reg.
8651 * final.c (leaf_function_p): When call_insn is a fake call, it
8652 won't affect caller as a leaf function.
8653 * reg-stack.c (callee_clobbers_any_stack_reg): New.
8654 (subst_stack_regs): When call_insn doesn't clobber any stack
8655 reg, don't clear the arguments.
8656 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
8658 * shrink-wrap.c (requires_stack_frame_p): No need for stack
8659 frame for a fake call.
8660 * rtl.h (FAKE_CALL_P): New macro.
8662 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
8664 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
8666 (sparc_order_regs_for_local_alloc): ...this.
8667 (sparc_leaf_reg_remap): Declare.
8668 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
8669 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
8670 * config/sparc/sparc.c (leaf_reg_remap): Delete.
8671 (order_regs_for_local_alloc): Rename to...
8672 (sparc_order_regs_for_local_alloc): ...this.
8673 (sparc_leaf_reg_remap): New function.
8674 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
8676 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
8678 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
8679 Use assemble_name to output BSS section name.
8681 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
8683 * config/i386/constraints.md (Bs):
8684 Remove boolean operators from match_test RTX.
8687 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
8690 2021-06-06 Martin Liska <mliska@suse.cz>
8692 * doc/extend.texi: Add missing @headitem.
8693 * doc/invoke.texi: Likewise.
8694 * doc/objc.texi: Likewise.
8696 2021-06-06 Martin Liska <mliska@suse.cz>
8698 * genhooks.c (emit_findices): Remove unused function.
8699 (emit_documentation): Do not call emit_findices
8700 and do not search for @Fcode directives.
8702 2021-06-06 Martin Liska <mliska@suse.cz>
8704 * doc/invoke.texi: Remove extra character.
8706 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
8708 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
8710 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
8712 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
8713 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
8714 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
8715 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
8717 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
8719 * config/or1k/or1k.md (*movdi): Fix empty split condition.
8721 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
8723 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
8726 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
8728 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
8729 *zero_extendsidi2): Fix empty split condition.
8731 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
8733 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
8735 * config/h8300/bitfield.md: Likewise.
8736 * config/h8300/combiner.md: Likewise.
8737 * config/h8300/divmod.md: Likewise.
8738 * config/h8300/extensions.md: Likewise.
8739 * config/h8300/jumpcall.md: Likewise.
8740 * config/h8300/movepush.md: Likewise.
8741 * config/h8300/multiply.md: Likewise.
8742 * config/h8300/other.md: Likewise.
8743 * config/h8300/shiftrotate.md: Likewise.
8744 * config/h8300/logical.md: Likewise. Fix split pattern to use
8745 code iterator that somehow slipped through.
8747 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
8749 PR middle-end/100905
8750 * tree-nested.c (convert_nonlocal_omp_clauses,
8751 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
8753 2021-06-04 Martin Sebor <msebor@redhat.com>
8755 PR middle-end/100732
8756 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
8757 with either source or destination argument of invalid type.
8758 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
8759 calls with arguments of invalid type.
8761 2021-06-04 Martin Sebor <msebor@redhat.com>
8763 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
8765 (attr_access::vla_bounds): Also handle VLA bounds.
8767 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
8769 * config/i386/predicates.md (GOT_memory_operand):
8770 Implement using match_code RTXes.
8771 (GOT32_symbol_operand): Ditto.
8773 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
8776 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
8778 (ix86_expand_vector_init_general): Ditto.
8779 Use SImode instead of word_mode for logic operations
8780 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
8781 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
8782 implemented by expand_vec_perm_1.
8783 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
8784 should be implemented using standard shuffle patterns.
8785 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
8786 V2HI modes to modes, implementable with shuffle for one operand.
8787 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
8788 (*pshufw_1): New insn pattern.
8789 (*vec_dupv2hi): Ditto.
8790 (vec_initv2hihi): New expander.
8792 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
8794 * config/arm/vfp.md (no_literal_pool_df_immediate,
8795 no_literal_pool_sf_immediate): Fix empty split condition.
8797 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
8799 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
8800 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
8801 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
8802 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
8803 *<sse4_1_avx2>_pblendvb_lt): Likewise.
8805 2021-06-04 Jakub Jelinek <jakub@redhat.com>
8808 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
8809 concatenation from half-sized modes with TImode elements.
8811 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
8813 * config/arc/arc.c (arc_override_options): Disable millicode
8814 thunks when RF16 is on.
8816 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
8818 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
8820 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
8822 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
8823 Replace PROMOTE_MODE marco with its content.
8825 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
8827 * config/cris/cris.md (*addi_reload): Fix empty split condition.
8829 2021-06-03 Jim Wilson <jimw@sifive.com>
8831 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
8832 turn it on for all riscv targets.
8834 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
8837 * config/i386/i386-expand.c (ix86_expand_vector_set):
8838 Handle V2HI and V4QI modes.
8839 (ix86_expand_vector_extract): Ditto.
8840 * config/i386/mmx.md (*pinsrw): New insn pattern.
8843 (*pextrw_zext): Ditto.
8845 (*pextrb_zext): Ditto.
8846 (vec_setv2hi): New expander.
8847 (vec_extractv2hihi): Ditto.
8848 (vec_setv4qi): Ditto.
8849 (vec_extractv4qiqi): Ditto.
8850 (vec_setv8qi): Enable only for TARGET_SSE4_1.
8851 (vec_extractv8qiqi): Ditto.
8853 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8855 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
8856 order to subf instruction.
8857 * config/rs6000/fusion.md: Regenerate.
8859 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
8861 * calls.c (get_size_range): Use range_of_expr instead of
8862 determine_value_range.
8863 * tree-affine.c (expr_to_aff_combination): Same.
8864 * tree-data-ref.c (split_constant_offset): Same.
8865 * tree-vrp.c (determine_value_range_1): Remove.
8866 (determine_value_range): Remove.
8867 * tree-vrp.h (determine_value_range): Remove.
8869 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
8871 * function-tests.c (test_ranges): Call gimple_range_tests.
8872 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
8874 * gimple-range.cc (fur_source::get_operand): Do not call
8875 get_tree_range or gimple_range_global.
8877 (get_tree_range): Move to value-query.cc.
8878 Call get_arith_expr_range.
8879 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
8880 Include gimple-range-tests.cc.
8881 * gimple-range.h (fold_range): Add argument.
8882 (get_tree_range): Remove.
8883 * selftest.h (gimple_range_tests): New.
8884 * value-query.cc (global_range_query::range_of_expr): Add
8886 (range_query::get_tree_range): Move from gimple-range.cc.
8887 * value-query.h (class range_query): Add get_tree_range and
8888 get_arith_expr_range. Make fur_source a friend.
8889 * vr-values.c (vr_values::range_of_expr): Pass stmt to
8891 * gimple-range-tests.cc: New file.
8893 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
8895 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
8896 update_global_range.
8897 * value-query.cc (update_global_range): New.
8898 * value-query.h (update_global_range): New.
8900 2021-06-03 David Malcolm <dmalcolm@redhat.com>
8902 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
8903 printing the same location twice if there are fix-it hints,
8904 multiple locations, or a label.
8906 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
8908 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
8909 thresholds to narrow the upper bound on epilogue iterations.
8911 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
8913 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
8914 (mve_vabsq_s<mode>): Likewise.
8915 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
8916 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
8917 * config/arm/vec-common.md (neg<mode>2): Rename to
8918 <absneg_str><mode>2.
8920 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
8922 * common/config/arc/arc-common.c (arc_option_optimization_table):
8924 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
8925 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
8926 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
8927 * config/arc/arc.md (abssi2_mixed): Remove pattern.
8928 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
8929 (malign-call): Likewise.
8930 (mmixed-code): Likewise.
8931 * doc/invoke.texi (ARC): Update doc.
8933 2021-06-03 Martin Liska <mliska@suse.cz>
8935 * common.opt: Use proper Enum values.
8936 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
8937 (parse_sanitizer_options): Handle only sanitizer_opts.
8938 (common_handle_option): Just assign value.
8940 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
8943 * tree-inline.c (inline_forbidden_p): Remove test on return type.
8945 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
8947 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
8948 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
8949 (type_byte_size): Inline into...
8950 (add_byte_size_attribute): ...this and call add_scalar_info.
8952 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
8954 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
8955 (typed_binop_from_tree): New function.
8956 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
8957 turn a divide by a power of 2 into a shift.
8958 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
8959 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
8960 typed divide by calling typed_binop_from_tree.
8962 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
8964 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
8965 (is_handled_procedure_type): Likewise.
8966 (struct loc_descr_context): Add strict_signedness field.
8967 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
8968 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
8969 (resolve_args_picking): Minor tweak.
8970 (function_to_dwarf_procedure): Initialize strict_signedness field.
8971 (type_byte_size): Likewise.
8972 (field_byte_offset): Likewise.
8973 (gen_descr_array_type_die): Likewise.
8974 (gen_variant_part): Likewise.
8975 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
8976 to true when a context is present before evaluating the arguments.
8977 <COND_EXPR>: Do not generate a useless comparison with zero.
8978 When dereferencing an address, if strict_signedness is true and the
8979 type is small and signed, use DW_OP_deref_type to do the dereference
8980 and then DW_OP_convert to convert back to the generic type.
8982 2021-06-03 Jakub Jelinek <jakub@redhat.com>
8985 * tree-inline.c (copy_tree_body_r): Handle iterators on
8986 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
8988 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
8990 * config/arc/arc.md (*bbit_di): Remove.
8992 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
8994 PR rtl-optimization/100264
8995 * ree.c (get_sub_rtx): Ignore SET expressions without register
8996 destinations and remove assertion, as it is not valid anymore
8997 with this new behaviour.
8998 (merge_def_and_ext): Eliminate destination check for register
8999 as such SET expressions can't occur anymore.
9000 (combine_reaching_defs): Likewise.
9002 2021-06-02 Jakub Jelinek <jakub@redhat.com>
9005 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
9006 -Wtype-limits warnings.
9007 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
9008 in operands to avoid -Wsign-compare warnings.
9010 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
9012 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
9015 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
9017 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
9019 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
9021 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
9023 * config/s390/subst.md(cconly_subst): Use a single constraint
9026 2021-06-02 Martin Liska <mliska@suse.cz>
9028 * ipa-icf.h: Use auto_vec for memory_access_types.
9030 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
9032 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
9033 argument from prototype.
9034 (output_logical_op): Add rtx_code argument.
9035 (compute_logical_op_length): Likewise.
9036 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
9037 to compute_a_shift_length.
9038 (output_logical_op); New argument with the rtx code rather than
9039 extracting it from an operand. Handle QImode too.
9040 (compute_logical_op_length): Similary.
9041 (compute_a_shift_length): Drop unused argument.
9042 * config/h8300/h8300.md (logicals): New code iterator.
9043 * config/h8300/logical.md (<code><mode>3 expander): Combine
9044 the "and" expander with the "ior"/"xor" expander.
9045 (bclr<mode>msx): Combine the QI/HI mode patterns.
9046 (<logical><mode>3 insns): Use code iterator rather than match_operator.
9047 Handle QImode as well. Update call to output_logical_op and
9048 compute_logical_op_length to pass in rtx_code
9049 Fix split condition on all define_insn_and_split patterns.
9050 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
9051 the flags and setting ZN via existing define_subst.
9052 * config/h8300/shiftrotate.md: Drop unused argument from
9053 calls to compute_a_shift_length.
9054 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
9056 2021-06-01 Andrew Pinski <apinski@marvell.com>
9058 PR tree-optimization/25290
9059 * tree-ssa-phiopt.c (match_simplify_replacement):
9061 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
9062 (two_value_replacement): Change the comment about
9063 conditional_replacement.
9064 (conditional_replacement): Delete.
9066 2021-06-01 Andrew Pinski <apinski@marvell.com>
9068 PR tree-optimization/95481
9069 * tree-tailcall.c (find_tail_calls): Handle empty typed
9072 2021-06-01 Andrew Pinski <apinski@marvell.com>
9074 * gimplify.c (zero_sized_field_decl): Delete
9075 (zero_sized_type): Delete
9076 (gimplify_init_ctor_eval): Use is_empty_type instead
9077 of zero_sized_field_decl.
9078 (gimplify_modify_expr): Use is_empty_type instead of
9081 2021-06-01 Jason Merrill <jason@redhat.com>
9084 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
9086 2021-06-01 Jason Merrill <jason@redhat.com>
9089 * diagnostic.h (warning_enabled_at): Declare.
9090 * diagnostic.c (diagnostic_enabled): Factor out from...
9091 (diagnostic_report_diagnostic): ...here.
9092 (warning_enabled_at): New.
9094 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
9096 * gimple-ssa-evrp.c: Enable exporting of global ranges.
9098 2021-06-01 Martin Liska <mliska@suse.cz>
9101 * doc/invoke.texi: Mention that -fgcse-after-reload
9102 is enabled with -O3.
9104 2021-06-01 liuhongt <hongtao.liu@intel.com>
9106 PR tree-optimization/98365
9107 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
9108 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
9109 (convert_scalar_cond_reduction): Ditto.
9110 (predicate_scalar_phi): Ditto.
9112 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
9114 PR tree-optimization/100781
9115 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
9116 value calculation by default.
9117 (ranger_cache::enable_new_values): New.
9118 (ranger_cache::disable_new_values): New.
9119 (ranger_cache::push_poor_value): Check if new values are allowed.
9120 * gimple-range-cache.h (class ranger_cache): New member/methods.
9121 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
9122 statement, and disable/renable new value calculation.
9124 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
9126 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
9127 (ranger_cache::range_of_def): New.
9128 (ranger_cache::entry_range): New.
9129 (ranger_cache::exit_range): New.
9130 (ranger_cache::range_of_expr): Adjust.
9131 (ranger_cache::range_on_edge): Adjust.
9132 (ranger_cache::propagate_cache): Call exit_range directly.
9133 * gimple-range-cache.h (class ranger_cache): Adjust.
9135 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
9137 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
9138 gori_compute being a member rather than base class.
9139 dervied call to member call.
9140 (ranger_cache::dump): No longer dump gori_map.
9141 (ranger_cache::dump_bb): New.
9142 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
9143 being a member rather than base class.
9144 (ranger_cache::set_global_range): Ditto.
9145 (ranger_cache::ssa_range_in_bb): Ditto.
9146 (ranger_cache::range_of_expr): New.
9147 (ranger_cache::range_on_edge): New.
9148 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
9149 (ranger_cache::propagate_cache): Adjust debugging output.
9150 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
9152 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
9153 member, and inherit from range_query instead.
9154 (ranger_cache::dump_bb): New. split from dump.
9155 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
9156 (gori_compute::expr_range_at_stmt): Delete.
9157 (gori_compute::compute_name_range_op): Delete.
9158 (gori_compute::compute_operand_range_switch): Add fur_source.
9159 (gori_compute::compute_operand_range): Add fur_source param, inline
9160 old compute_name_range_op and optimize_logical_operands.
9161 (struct tf_range): Delete.
9162 (gori_compute::logical_combine): Adjust
9163 (gori_compute::optimize_logical_operands): Delete.
9164 (gori_compute::compute_logical_operands_in_chain): Delete.
9165 (gori_compute::compute_logical_operands): Adjust.
9166 (gori_compute::compute_operand1_range): Adjust to fur_source.
9167 (gori_compute::compute_operand2_range): Ditto.
9168 (gori_compute::compute_operand1_and_operand2_range): Ditto.
9169 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
9170 and adjust to fur_source.
9171 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
9172 range_query and fur_source.
9173 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
9174 from the ranger_cache..
9175 (gimple_ranger::fold_range_internal): Adjust to base class change of
9177 (gimple_ranger::dump_bb): Adjust dump.
9178 * gimple-range.h (gimple_ranger):export gori computes object.
9180 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
9182 PR tree-optimization/100774
9183 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
9184 Constant values are also not stale.
9185 (ranger_cache::set_global_range): Range invariant values should also
9186 have the correct timestamp.
9188 2021-05-31 Martin Liska <mliska@suse.cz>
9190 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9191 Unpack FUNCTION_DECL_DECL_TYPE.
9192 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9193 Stream FUNCTION_DECL_DECL_TYPE instead of
9194 DECL_IS_OPERATOR_NEW_P.
9195 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
9197 (DECL_IS_OPERATOR_NEW_P): Likewise.
9198 (DECL_IS_OPERATOR_DELETE_P): Likewise.
9199 (DECL_LAMBDA_FUNCTION_P): Likewise.
9201 2021-05-31 Richard Biener <rguenther@suse.de>
9204 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
9205 * internal-fn.def (SHUFFLEVECTOR): New.
9206 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
9207 * doc/extend.texi: Document __builtin_shufflevector.
9209 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
9212 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
9213 indexed form addresses.
9215 2021-05-29 Jeff Law <jlaw@tachyum.com>
9217 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
9218 parameter. Call callers fixed.
9220 (output_plussi): Add FALLTHRU markers.
9221 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
9223 2021-05-29 Jakub Jelinek <jakub@redhat.com>
9226 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
9227 combined with parallel, make sure to add shared clause to
9228 parallel for explicit linear clause.
9230 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
9232 PR tree-optimization/100787
9233 * gimple-ssa-evrp.c: Disable exporting of global ranges.
9235 2021-05-28 Jason Merrill <jason@redhat.com>
9237 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
9238 operator--, operator*, operator==, and operator!=.
9239 (class tsi_range): New.
9241 2021-05-28 Richard Biener <rguenther@suse.de>
9243 PR tree-optimization/100778
9244 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
9245 trapping ops in different BBs.
9247 2021-05-28 Richard Biener <rguenther@suse.de>
9250 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
9251 copy fntype from original call.
9253 2021-05-28 Martin Liska <mliska@suse.cz>
9255 PR gcov-profile/100751
9256 * doc/gcov.texi: Revert partially a hunk that was wrong.
9258 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
9260 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
9262 (HAVE_sync_compare_and_swaphi): Likewise.
9263 (HAVE_sync_compare_and_swapsi): Likewise.
9265 2021-05-28 Jakub Jelinek <jakub@redhat.com>
9268 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
9270 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
9272 * gimplify.c (gimplify_omp_affinity): New.
9273 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
9274 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
9275 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
9276 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
9277 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
9279 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
9280 Richard Biener <rguenther@suse.de>
9282 * match.pd <popcount & / + pattern matching>:
9283 When generating popcount directly fails, try doing it in two halves.
9285 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9287 * Makefile.in (generated_files): Add gimple-match.c and
9290 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
9292 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
9294 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
9296 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
9298 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
9300 PR tree-optimization/99398
9301 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
9302 where the fed operands are CTOR/CST and propagated through
9303 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
9304 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
9306 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
9309 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
9311 * config/i386/mmx.md (addv2sf3): Do not call
9312 ix86_fixup_binary_operands_no_copy.
9315 (<smaxmin:code>v2sf3): Ditto.
9316 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
9317 (<plusminus:insn><VI_32:mode>3): Remove expander.
9318 (<plusminus:insn><VI_32:mode>3): Rename from
9319 "*<plusminus:insn><VI_32:mode>3".
9320 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
9321 (mulv2hi3): Remove expander.
9322 (mulv2hi3): Rename from *mulv2hi3.
9323 (<s>mulv2hi3_highpart): Remove expander.
9324 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
9325 (<smaxmin:code><MMXMODE14:mode>3): Rename from
9326 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
9327 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
9328 (SMAXMIN_MMXMODEI): Remove mode iterator.
9329 (<smaxmin:code>v4hi3): New expander.
9330 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
9331 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
9332 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
9333 (SMAXMIN_VI_32): Remove mode iterator.
9334 (<umaxmin:code><MMXMODE24:mode>3): Rename from
9335 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
9336 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
9337 (UMAXMIN_MMXMODEI): Remove mode iterator.
9338 (<umaxmin:code>v8qi3): New expander.
9339 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
9340 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
9341 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
9342 (UMAXMIN_VI_32): Remove mode iterator.
9343 (<any_shift:insn>v2hi3): Remove expander.
9344 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
9345 (<any_logic:code><MMXMODEI:mode>3): Do not call
9346 ix86_fixup_binary_operands_no_copy.
9347 (<any_logic:code><VI_32:mode>3): Remove expander.
9348 (<any_logic:code><VI_32:mode>3): Rename from
9349 "*<any_logic:code><VI_32:mode>3".
9350 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
9351 * config/i386/sse.md (div<VF2:mode>3): Do not call
9352 ix86_fixup_binary_operands_no_copy.
9353 (div<VF1:mode>3): Ditto.
9354 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
9355 (smulhrsv4hi3): Ditto.
9356 (smulhrsv2hi3): Ditto.
9358 2021-05-27 Martin Sebor <msebor@redhat.com>
9360 * ggc.h (gt_ggc_mx): Add overloads for all integers.
9362 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
9364 (hash_map::operator==): New function.
9366 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
9369 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
9370 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
9371 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
9372 (*xop_maskcmp<VI_32:mode>3): Ditto.
9373 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
9374 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
9376 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
9379 * config/arm/arm.c (arm_configure_build_target): Remove parameter
9380 opts_set, directly check opts parameters for being non-null.
9381 (arm_option_restore): Update call to arm_configure_build_target.
9382 (arm_option_override): Likewise.
9383 (arm_can_inline_p): Likewise.
9384 (arm_valid_target_attribute_tree): Likewise.
9385 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
9386 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
9389 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
9391 * vr-values.c (simplify_conversion_using_ranges): Use
9392 get_range_query instead of get_global_range_query.
9394 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
9396 * gimple-range.cc (get_range_global): Move to value-query.cc.
9397 (gimple_range_global): Same.
9398 (get_global_range_query): Same.
9399 (global_range_query::range_of_expr): Same.
9400 * gimple-range.h (class global_range_query): Move to
9402 (gimple_range_global): Same.
9403 * tree-ssanames.c (get_range_info): Move to value-query.cc.
9404 (get_ptr_nonnull): Same.
9405 * tree-ssanames.h (get_range_info): Remove.
9406 (get_ptr_nonnull): Remove.
9407 * value-query.cc (get_ssa_name_range_info): Move from
9409 (get_ssa_name_ptr_info_nonnull): Same.
9410 (get_range_global): Move from gimple-range.cc.
9411 (gimple_range_global): Same.
9412 (get_global_range_query): Same.
9413 (global_range_query::range_of_expr): Same.
9414 * value-query.h (class global_range_query): Move from
9416 (gimple_range_global): Same.
9418 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
9421 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
9422 (uavgv2hi3_ceil): Ditto.
9424 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
9427 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
9429 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
9431 * tree-ssanames.c (get_range_info): Merge both copies of
9432 get_range_info into one that works with irange.
9433 * tree-ssanames.h (get_range_info): Remove version that works on
9436 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
9438 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
9439 (expand_builtin_strnlen): Same.
9440 (determine_block_size): Same.
9441 * fold-const.c (expr_not_equal_to): Same.
9442 * gimple-fold.c (size_must_be_zero_p): Same.
9443 * gimple-match-head.c: Include gimple-range.h.
9444 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
9445 * gimple-ssa-warn-restrict.c
9446 (builtin_memref::extend_offset_range): Same.
9447 * graphite-sese-to-poly.c (add_param_constraints): Same.
9448 * internal-fn.c (get_min_precision): Same.
9449 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
9450 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9452 * tree-data-ref.c (split_constant_offset): Same.
9453 (dr_step_indicator): Same.
9454 * tree-dfa.c (get_ref_base_and_extent): Same.
9455 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
9456 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
9457 (determine_value_range): Same.
9458 (record_nonwrapping_iv): Same.
9459 (infer_loop_bounds_from_signedness): Same.
9460 (scev_var_range_cant_overflow): Same.
9461 * tree-ssa-phiopt.c (two_value_replacement): Same.
9462 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
9463 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
9464 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
9466 (dump_strlen_info): Same.
9467 (set_strlen_range): Same.
9468 (maybe_diag_stxncpy_trunc): Same.
9469 (get_len_or_size): Same.
9470 (handle_integral_assign): Same.
9471 * tree-ssa-structalias.c (find_what_p_points_to): Same.
9472 * tree-ssa-uninit.c (find_var_cmp_const): Same.
9473 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
9474 * tree-vect-patterns.c (vect_get_range_info): Same.
9475 (vect_recog_divmod_pattern): Same.
9476 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
9477 (register_edge_assert_for_2): Same.
9478 (determine_value_range_1): Same.
9479 * tree.c (get_range_pos_neg): Same.
9480 * vr-values.c (vr_values::get_lattice_entry): Same.
9481 (vr_values::update_value_range): Same.
9482 (simplify_conversion_using_ranges): Same.
9484 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
9486 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
9487 get_range_query instead of query argument.
9488 (pass_walloca::execute): Enable and disable global ranger.
9490 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
9492 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
9494 (rvrp_folder::~rvrp_folder): Call disable_ranger.
9495 (hybrid_folder::hybrid_folder): Call enable_ranger.
9496 (hybrid_folder::~hybrid_folder): Call disable_ranger.
9498 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
9500 * function.c (allocate_struct_function): Set cfun->x_range_query.
9501 * function.h (struct function): Declare x_range_query.
9502 (get_range_query): New.
9503 (get_global_range_query): New.
9504 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
9505 Remove call to safe_grow_cleared.
9506 * gimple-range.cc (get_range_global): New.
9507 (gimple_range_global): Move from gimple-range.h.
9508 (get_global_range_query): New.
9509 (global_range_query::range_of_expr): New.
9510 (enable_ranger): New.
9511 (disable_ranger): New.
9512 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
9513 (class global_range_query): New.
9514 (enable_ranger): New.
9515 (disable_ranger): New.
9516 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
9517 dump_all_value_ranges to dump.
9518 * tree-vrp.c (vrp_prop::finalize): Same.
9519 * value-query.cc (range_query::dump): New.
9520 * value-query.h (range_query::dump): New.
9521 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
9522 (vr_values::dump): ...this.
9523 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
9524 dump and make virtual.
9526 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
9528 * config/i386/i386.c (ix86_autovectorize_vector_modes):
9529 Add V4QImode and V16QImode for TARGET_SSE2.
9530 * doc/sourcebuild.texi (Vector-specific attributes):
9531 Add vect64 and vect32 description.
9533 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
9535 * gimple-range-gori.cc (range_def_chain::register_dependency):
9536 Resize m_def_chain when needed.
9538 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
9540 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
9541 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
9542 * config/arm/vec-common.md: .. here. Add support for MVE.
9544 2021-05-26 Jakub Jelinek <jakub@redhat.com>
9546 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
9548 * config/microblaze/microblaze.c (microblaze_legitimize_address,
9550 microblaze_option_override, print_operand): Likewise.
9551 * config/microblaze/microblaze.md (call_internal_plt,
9552 call_value_intern_plt, call_value_intern): Likewise.
9553 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
9554 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
9555 call_value_multiple_internal1): Likewise.
9556 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
9558 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9560 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
9561 arc_ccfsm_advance, symbolic_reference_mentioned_p,
9562 arc_raw_symbolic_reference_mentioned_p): Remove register
9565 2021-05-26 Jakub Jelinek <jakub@redhat.com>
9568 * omp-low.c: Include omp-offload.h.
9569 (create_omp_child_function): If current_function_decl has
9570 "omp declare target" attribute and is_gimple_omp_offloaded,
9571 remove that attribute from the copy of attribute list and
9572 add "omp target entrypoint" attribute instead.
9573 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
9574 variables for offloading if in omp_maybe_offloaded_ctx.
9575 * omp-offload.c (pass_omp_target_link::execute): Nullify second
9576 argument to GOMP_target_data_ext in offloaded code.
9578 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
9580 * config/csky/csky.c (csky_can_change_mode_class): Delete.
9581 For csky, HF/SF mode use the low bits of VREGS.
9583 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
9585 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
9586 DECL which is a reference for OMP.
9588 2021-05-26 Martin Liska <mliska@suse.cz>
9590 PR gcov-profile/100751
9591 * doc/gcov.texi: Document that __gcov_dump can be called just
9592 once and that __gcov_reset resets run-time counters.
9594 2021-05-26 Martin Liska <mliska@suse.cz>
9596 * doc/install.texi: Port relevant part from install-old.texi
9597 and re-generate list of CPUs and systems.
9599 2021-05-26 Martin Liska <mliska@suse.cz>
9601 * Makefile.in: Remove it.
9602 * doc/include/fdl.texi: Update next/previous chapters.
9603 * doc/install.texi: Likewise.
9604 * doc/install-old.texi: Removed.
9606 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
9608 * config/csky/csky.c (ck810_legitimate_index_p): Support
9609 "base + index" with DF mode.
9610 * config/csky/constraints.md ("Y"): New constraint for memory operands
9611 without index register.
9612 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
9613 when mov between memory and general registers, and lower their priority.
9614 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
9616 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
9618 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
9620 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
9622 * config/csky/csky.md (untyped_call): Emit clobber for return
9623 registers to mark them used.
9625 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
9627 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
9629 2021-05-26 Andrew Pinski <apinski@marvell.com>
9631 * match.pd (x < 0 ? ~y : y): New patterns.
9633 2021-05-26 Andrew Pinski <apinski@marvell.com>
9635 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
9636 A?POW2:0 and A?0:POW2.
9638 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9640 * gimple-range-gori.cc (class logical_stmt_cache): Delete
9641 (logical_stmt_cache::logical_stmt_cache ): Delete.
9642 (logical_stmt_cache::~logical_stmt_cache): Delete.
9643 (logical_stmt_cache::cache_entry::dump): Delete.
9644 (logical_stmt_cache::get_range): Delete.
9645 (logical_stmt_cache::cached_name ): Delete.
9646 (logical_stmt_cache::same_cached_name): Delete.
9647 (logical_stmt_cache::cacheable_p): Delete.
9648 (logical_stmt_cache::slot_diagnostics ): Delete.
9649 (logical_stmt_cache::dump): Delete.
9650 (gori_compute_cache::gori_compute_cache): Delete.
9651 (gori_compute_cache::~gori_compute_cache): Delete.
9652 (gori_compute_cache::compute_operand_range): Delete.
9653 (gori_compute_cache::cache_stmt): Delete.
9654 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
9656 (class gori_compute_cache): Delete.
9658 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9660 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
9662 (fold_using_range::range_of_address): Adjust.
9663 (fold_using_range::range_of_phi): Adjust.
9664 * gimple-range.h (class fur_source): Adjust.
9665 (fur_source::fur_source): Adjust.
9667 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9669 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
9670 from expr_range_in_bb and adjust.
9671 (gori_compute::compute_name_range_op): Adjust.
9672 (gori_compute::optimize_logical_operands): Adjust.
9673 (gori_compute::compute_logical_operands_in_chain): Adjust.
9674 (gori_compute::compute_operand1_range): Adjust.
9675 (gori_compute::compute_operand2_range): Adjust.
9676 (ori_compute_cache::cache_stmt): Adjust.
9677 * gimple-range-gori.h (gori_compute): Rename prototype.
9679 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9681 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
9682 checked only after range_of_stmt, not range_on_entry.
9683 (gimple_ranger::range_on_entry): Check for non-null in any
9684 predecessor block, if it is not already non-null.
9685 (gimple_ranger::range_on_exit): DOnt check for non-null after
9686 range on entry call.
9687 (gimple_ranger::dump_bb): New. Split from dump.
9688 (gimple_ranger::dump): Adjust.
9689 * gimple-range.h (class gimple_ranger): Adjust.
9691 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9693 * gimple-range-cache.cc (struct range_timestamp): Delete.
9694 (class temporal_cache): Adjust.
9695 (temporal_cache::get_timestamp): Delete.
9696 (temporal_cache::set_dependency): Delete.
9697 (temporal_cache::temporal_value): Adjust.
9698 (temporal_cache::current_p): Take dependencies as params.
9699 (temporal_cache::set_timestamp): Adjust.
9700 (temporal_cache::set_always_current): Adjust.
9701 (ranger_cache::get_non_stale_global_range): Adjust.
9702 (ranger_cache::register_dependency): Delete.
9703 * gimple-range-cache.h (class range_cache): Adjust.
9705 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9707 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
9709 (range_def_chain::~range_def_chain): Dispose of obstack rather than
9710 each individual bitmap.
9711 (range_def_chain::set_import): New.
9712 (range_def_chain::get_imports): New.
9713 (range_def_chain::chain_import_p): New.
9714 (range_def_chain::register_dependency): Rename from build_def_chain
9716 (range_def_chain::def_chain_in_bitmap_p): New.
9717 (range_def_chain::add_def_chain_to_bitmap): New.
9718 (range_def_chain::has_def_chain): Just check first depenedence.
9719 (range_def_chain::get_def_chain): Process imports, use generic
9720 register_dependency routine.
9721 (range_def_chain::dump): New.
9722 (gori_map::gori_map): Allocate import list.
9723 (gori_map::~gori_map): Release imports.
9724 (gori_map::exports): Check for past allocated block size.
9725 (gori_map::imports): New.
9726 (gori_map::def_chain_in_export_p): Delete.
9727 (gori_map::is_import_p): New.
9728 (gori_map::maybe_add_gori): Handle imports.
9729 (gori_map::dump): Adjust output, add imports.
9730 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
9731 (gori_export_iterator::gori_export_iterator): New.
9732 (gori_export_iterator::next): New.
9733 (gori_export_iterator::get_name): New.
9734 * gimple-range-gori.h (range_def_chain): Add imports and direct
9735 dependecies via struct rdc.
9736 (range_def_chain::depend1): New.
9737 (range_def_chain::depend2): New.
9738 (class gori_map): Adjust.
9739 (FOR_EACH_GORI_IMPORT_NAME): New.
9740 (FOR_EACH_GORI_EXPORT_NAME): New.
9741 (class gori_export_iterator): New.
9743 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9745 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
9746 export cache filling to here.
9747 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
9749 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9751 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
9752 (gori_map): Move to gimple-range-gori.h.
9753 (gori_compute::gori_compute): Adjust.
9754 (gori_compute::~gori_compute): Delete.
9755 (gori_compute::compute_operand_range_switch): Adjust.
9756 (gori_compute::compute_operand_range): Adjust.
9757 (gori_compute::compute_logical_operands): Adjust.
9758 (gori_compute::has_edge_range_p ): Adjust.
9759 (gori_compute::set_range_invariant): Delete.
9760 (gori_compute::dump): Adjust.
9761 (gori_compute::outgoing_edge_range_p): Adjust.
9762 * gimple-range-gori.h (class range_def_chain): Relocate here.
9763 (class gori_map): Relocate here.
9764 (class gori_compute): Inherit from gori_map, and adjust.
9766 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
9768 * value-range.cc (range_tests_legacy): Use
9769 build_nonstandard_integer_type instead of int and short.
9771 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
9773 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
9774 when really creating an initialization statement for it.
9776 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
9778 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
9780 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
9782 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
9784 2021-05-25 Martin Liska <mliska@suse.cz>
9786 PR tree-optimization/92860
9788 * optc-save-gen.awk: Remove exceptions.
9790 2021-05-25 Martin Liska <mliska@suse.cz>
9792 * asan.h (sanitize_coverage_p): New function.
9793 * doc/extend.texi: Document it.
9794 * fold-const.c (fold_range_test): Use sanitize_flags_p
9795 instead of flag_sanitize_coverage.
9796 (fold_truth_andor): Likewise.
9797 * sancov.c: Likewise.
9798 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
9799 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
9800 -fsanitize-coverage when inlining.
9802 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
9804 * config/csky/csky-modes.def : Fix copyright.
9806 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
9808 * config/csky/csky-modes.def : Amend copyright.
9809 * config/csky/csky_insn_fpuv2.md : Likewise.
9810 * config/csky/csky_insn_fpuv3.md : Likewise.
9812 2021-05-25 Richard Biener <rguenther@suse.de>
9814 PR middle-end/100727
9815 * calls.c (initialize_argument_information): Explicitely test
9817 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
9819 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
9821 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
9822 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
9823 the signle definition. The signle definition may not work well
9824 at simplify_subreg_regno().
9825 (HARD_FRAME_POINTER_REGNUM): New.
9826 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
9827 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
9828 csky_initial_elimination_offset, csky_expand_prologue,
9829 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
9831 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
9833 * config/csky/csky.c (csky_option_override):
9834 Init csky_arch_isa_features[] in advance, so TARGET_DSP
9835 and TARGET_DIV can be set well.
9837 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
9839 * config/csky/constraints.md ("l", "h"): Delete.
9840 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
9841 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
9842 * config/csky/csky.c (regno_reg_classm,
9843 csky_secondary_reload, csky_register_move_cost):
9844 Use HILO_REGS instead of LO_REGS and HI_REGS.
9846 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
9848 * config/csky/constraints.md ("W"): New constriant for mem operand
9849 with base reg, index register.
9850 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
9851 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
9853 ("Dv"): New constraint for const double value that can be used at
9855 * config/csky/csky-modes.def (HFmode): New mode.
9856 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
9857 to "csky_valid_mem_constraint_operand" and support new constraint
9859 (csky_get_movedouble_length): New.
9860 (fpuv3_output_move): New.
9861 (fpuv3_const_double): New.
9862 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
9863 (decompose_csky_address): Refine.
9864 (csky_print_operand): New "CONST_DOUBLE" operand.
9865 (csky_output_move): Support fpv3 instructions.
9866 (csky_get_movedouble_length): New.
9867 (fpuv3_output_move): New.
9868 (fpuv3_const_double): New.
9869 (csky_emit_compare): Cover float comparsion.
9870 (csky_emit_compare_float): Refine.
9871 (csky_vaild_fpuv2_mem_operand): Rename to
9872 "csky_valid_mem_constraint_operand" and support new constraint "W".
9873 (ck860_rtx_costs): New.
9874 (csky_rtx_costs): Add the cost calculation of CK860.
9875 (regno_reg_class): New vregs for fpuv3.
9876 (csky_dbx_regno): Likewise.
9877 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
9878 (csky_conditional_register_usage): Suporrot fpuv3.
9879 (csky_dwarf_register_span): Suporrot fpuv3.
9880 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
9881 (ck810_legitimate_index_p): Support fp16.
9882 * config/csky/csky.h (TARGET_TLS): ADD CK860.
9883 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
9884 (TARGET_SINGLE_FPU): Support fpuv3.
9885 (TARGET_SUPPORT_FPV3): New.
9886 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
9887 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
9888 REG_CLASS_CONTENTS): Support fpuv3.
9889 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
9890 (csky_movsf_fpv2): Likewise.
9891 (ck801_movsf): Likewise.
9892 (csky_movsf): Likewise.
9894 (csky_movdf_fpv2): Likewise.
9895 (ck801_movdf): Likewise.
9896 (csky_movdf): Likewise.
9897 (movsicc): Refine. Use "comparison_operatior" instead of
9898 "ordered_comparison_operatior".
9899 (addsicc): Likewise.
9900 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
9901 (call_value_internal_vh): New.
9902 * config/csky/csky_cores.def (CK860): New arch and cpu.
9907 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
9908 into emit-patterns and match-patterns, remain the emit-patterns here,
9909 and move the match-patterns to csky_insn_fpuv2.md or
9911 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
9912 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
9914 * config/csky/csky_isa.def (fcr): New.
9919 (CK860): New definition for ck860.
9920 * config/csky/csky_tables.opt (ck860): New processors ck860,
9921 ck860f. And new arch ck860.
9926 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
9927 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
9928 * config/csky/t-csky-elf: Support 860.
9929 * config/csky/t-csky-linux: Likewise.
9930 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
9932 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
9934 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
9935 add generation of logical-add and add-logical fusion pairs.
9936 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
9938 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
9939 logical-add and add-logical fusion by default.
9940 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
9941 -mpower10-fusion-add-logical options.
9942 * config/rs6000/fusion.md: Regenerate file.
9944 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
9946 * value-range.cc (irange::legacy_equal_p): Check type when
9947 comparing VR_VARYING types.
9948 (range_tests_legacy): Test comparing VARYING ranges of different
9951 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
9953 * config/aarch64/aarch64.c (neoversen1_tunings):
9954 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
9956 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
9958 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
9959 extern weak symbols. Limit symbol offsets for non-GOT symbols with
9962 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
9964 * config/arm/neon.md (vec_load_lanesxi<mode>)
9965 (vec_store_lanexoi<mode>): Move ...
9966 * config/arm/vec-common.md: here.
9968 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
9970 * config/arm/neon.md (vec_load_lanesoi<mode>)
9971 (vec_store_lanesoi<mode>): Move ...
9972 * config/arm/vec-common.md: here.
9974 2021-05-24 liuhongt <hongtao.liu@intel.com>
9977 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
9978 stmt with GIMPLE_NOP when lhs doesn't exist.
9980 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
9983 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
9984 New instruction pattern.
9985 (*push<VI_32:mode>2): Ditto.
9986 (push splitter for SSE registers): New splitter.
9988 2021-05-23 Andrew Pinski <apinski@marvell.com>
9990 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
9992 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
9994 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
9995 * config/rs6000/fusion.md: Regenerate file.
9997 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
9999 * config/rs6000/genfusion.pl (gen_addadd): New function.
10000 * config/rs6000/fusion.md: Regenerate file.
10001 * config/rs6000/rs6000-cpus.def: Add
10002 OPTION_MASK_P10_FUSION_2ADD to masks.
10003 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10004 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
10005 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
10007 2021-05-21 Jakub Jelinek <jakub@redhat.com>
10009 PR middle-end/99928
10010 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
10011 * gimplify.c (enum gimplify_omp_var_data): Fix up
10012 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
10013 (omp_lastprivate_for_combined_outer_constructs): If combined target
10014 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
10015 GOVD_MAP | GOVD_SEEN.
10016 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
10017 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
10018 (gimplify_adjust_omp_clauses): For firstprivate clauses with
10019 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
10020 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
10021 let it be replaced by implicit map clause.
10023 2021-05-21 Jakub Jelinek <jakub@redhat.com>
10025 PR middle-end/99928
10026 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
10028 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
10029 (gimplify_omp_for): Likewise.
10031 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10033 PR middle-end/90115
10034 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
10035 'external' in blocks.
10037 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10039 PR middle-end/90115
10040 * flag-types.h (enum openacc_privatization): New.
10041 * params.opt (-param=openacc-privatization): New.
10042 * doc/invoke.texi (openacc-privatization): Document it.
10043 * omp-general.h (get_openacc_privatization_dump_flags): New
10045 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
10046 * omp-offload.c (execute_oacc_device_lower)
10047 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
10048 * target.def (goacc.adjust_private_decl): Add 'location_t'
10050 * doc/tm.texi: Regenerate.
10051 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
10052 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
10053 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
10054 Likewise. Preserve it for...
10055 (nvptx_goacc_expand_var_decl): ... use here.
10057 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10059 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
10062 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10064 PR middle-end/90115
10065 * omp-low.c (oacc_privatization_candidate_p): New function.
10066 (oacc_privatization_scan_clause_chain)
10067 (oacc_privatization_scan_decl_chain): Use it. Also
10068 'gcc_checking_assert' that we're not seeing duplicates.
10070 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10072 PR middle-end/90115
10073 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
10076 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10078 PR middle-end/90115
10079 * omp-offload.c (execute_oacc_device_lower): Explain.
10081 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10083 PR middle-end/90115
10084 * omp-offload.c (execute_oacc_device_lower)
10085 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
10087 * internal-fn.c (expand_UNIQUE): Don't expect
10088 'IFN_UNIQUE_OACC_PRIVATE'.
10090 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10092 PR middle-end/90115
10093 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
10095 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10097 PR middle-end/90115
10098 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
10099 (nvptx_goacc_expand_var_decl): Tighten.
10101 2021-05-21 Julian Brown <julian@codesourcery.com>
10102 Chung-Lin Tang <cltang@codesourcery.com>
10103 Thomas Schwinge <thomas@codesourcery.com>
10105 PR middle-end/90115
10106 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
10107 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
10108 * doc/tm.texi: Regenerate.
10109 * expr.c (expand_expr_real_1): Expand decls using the
10110 expand_var_decl OpenACC hook if defined.
10111 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
10112 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
10113 * omp-low.c (omp_context): Add oacc_privatization_candidates
10115 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
10117 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
10118 private marker's gimple call arguments, and pass it to
10119 lower_oacc_reductions.
10120 (oacc_privatization_scan_clause_chain)
10121 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
10123 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
10124 * omp-offload.c (convert.h): Include.
10125 (oacc_loop_xform_head_tail): Treat private-variable markers like
10126 fork/join when transforming head/tail sequences.
10127 (struct var_decl_rewrite_info): Add struct.
10128 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
10129 (execute_oacc_device_lower): Support rewriting gang-private
10130 variables using target hook, and fix up addr_expr and var_decl
10132 * target.def (adjust_private_decl, expand_var_decl): New hooks.
10133 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
10135 (gcn_goacc_adjust_private_decl): ...this.
10136 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
10138 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
10139 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
10140 definition using gcn_goacc_adjust_gangprivate_decl...
10141 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
10142 gcn_goacc_adjust_private_decl.
10143 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
10144 (gang_private_shared_size): New global variable.
10145 (gang_private_shared_align): Likewise.
10146 (gang_private_shared_sym): Likewise.
10147 (gang_private_shared_hmap): Likewise.
10148 (nvptx_option_override): Initialize these.
10149 (nvptx_file_end): Output gang_private_shared_sym.
10150 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
10152 (nvptx_set_current_function): Clear gang_private_shared_hmap.
10153 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
10154 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
10156 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
10158 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
10160 2021-05-21 Richard Biener <rguenther@suse.de>
10161 H.J. Lu <hjl.tools@gmail.com>
10163 PR middle-end/90773
10164 * expr.c (expand_constructor): Elide expand_constructor if
10165 move by pieces is preferred.
10167 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10169 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
10170 Take a flag and mode value as arguments.
10171 (aarch64_modifies_global_state_p): Likewise.
10172 (aarch64_reads_global_state_p): Likewise.
10173 (aarch64_could_trap_p): Likewise.
10174 (aarch64_get_attributes): Likewise.
10175 (aarch64_init_simd_builtins): Adjust callsite of above.
10176 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
10177 function attributes to apply to builtins.
10178 (aarch64_init_crc32_builtins): Likewise.
10179 (aarch64_init_builtin_rsqrt): Likewise.
10181 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
10183 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
10184 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
10185 (gen_2logical): Use new fusion types.
10186 * config/rs6000/fusion.md: Regenerate.
10188 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
10191 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
10192 Handle V4QI and V2HI modes.
10193 (ix86_expand_sse_movcc): Ditto.
10194 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
10195 New instruction pattern.
10196 (*eq<VI_32:mode>3): Ditto.
10197 (*gt<VI_32:mode>3): Ditto.
10198 (*xop_pcmov_<VI_32:mode>): Ditto.
10199 (mmx_pblendvb32): Ditto.
10200 (mmx_pblendvb64): Rename from mmx_pblendvb.
10201 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
10202 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
10203 (vcond<VI_32:mode><VI_32:mode>): Ditto.
10204 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
10205 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
10207 2021-05-21 Jakub Jelinek <jakub@redhat.com>
10209 PR tree-optimization/94589
10210 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
10211 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
10212 not the same as cmp3) treat <= the same as < and >= the same as >.
10213 Don't require that cond2_phi_edge is true edge, instead take
10214 false/true edges into account based on cmp1/cmp2 comparison kinds.
10216 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
10219 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
10220 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
10221 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
10222 using SMAXMIN_MMXMODEI mode iterator.
10223 (*<smaxmin:code>v4qi3): New insn pattern.
10224 (*<smaxmin:code>v2hi3): Ditto.
10225 (SMAXMIN_VI_32): New mode iterator.
10226 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
10227 (UMAXMIN_MMXMODEI): New mode iterator.
10228 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
10229 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
10230 using UMAXMIN_MMXMODEI mode iterator.
10231 (*<umaxmin:code>v4qi3): New insn pattern.
10232 (*<umaxmin:code>v2hi3): Ditto.
10233 (UMAXMIN_VI_32): New mode iterator.
10234 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
10235 (abs<VI_32:mode>2): New insn pattern.
10236 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
10237 * config/i386/sse.md: ... here.
10239 2021-05-20 Clement Chigot <clement.chigot@atos.net>
10240 David Edelsohn <dje.gcc@gmail.com>
10242 * collect2.c (scan_prog_file): Issue non-fatal warning for
10245 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
10247 * doc/invoke.texi (-Wno-c++11-extensions)
10248 (-Wno-c++14-extensions, -Wno-c++17-extensions)
10249 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
10252 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
10254 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
10255 * config/darwin.c (darwin_override_options): Likewise.
10256 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
10257 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
10258 (DWARF2_FRAME_REG_OUT): Likewise.
10259 * config/mips/mips.c (mips_output_filename): Likewise.
10260 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
10262 (rs6000_dbx_register_number): Likewise.
10263 * dbxout.c: Include flags.h.
10264 * dwarf2cfi.c (cfi_label_required_p): Likewise.
10265 (dwarf2out_do_frame): Likewise.
10266 * except.c: Include flags.h.
10267 * final.c (dwarf2_debug_info_emitted_p): Likewise.
10268 (final_scan_insn_1): Likewise.
10269 * flags.h (dwarf_debuginfo_p): New function declaration.
10270 * opts.c (dwarf_debuginfo_p): New function definition.
10271 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
10272 * toplev.c (process_options): Likewise.
10274 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
10276 * common.opt: Change type to support bitmasks.
10277 * flag-types.h (enum debug_info_type): Rename enumerator constants.
10278 (NO_DEBUG): New bitmask.
10279 (DBX_DEBUG): Likewise.
10280 (DWARF2_DEBUG): Likewise.
10281 (XCOFF_DEBUG): Likewise.
10282 (VMS_DEBUG): Likewise.
10283 (VMS_AND_DWARF2_DEBUG): Likewise.
10284 * flags.h (debug_set_to_format): New function declaration.
10285 (debug_set_count): Likewise.
10286 (debug_set_names): Likewise.
10287 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
10288 (debug_set_to_format): New function definition.
10289 (debug_set_count): Likewise.
10290 (debug_set_names): Likewise.
10291 (set_debug_level): Update access to debug_type_names.
10292 * toplev.c: Likewise.
10294 2021-05-20 Martin Sebor <msebor@redhat.com>
10296 PR middle-end/100684
10297 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
10299 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
10302 * config/i386/i386.md (isa): Remove x64_bmi.
10303 (enabled): Remove x64_bmi.
10304 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
10305 Remove general register alternative.
10306 (*andnot<VI_32:mode>3): Ditto.
10307 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
10308 (*<any_logic:code><VI_32:mode>3): Ditto.
10310 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
10312 * config/arm/arm.c: Include head files tree-vectorizer.h and
10315 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
10318 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
10319 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
10320 (<s>mulv4hi3_highpart): New expander.
10321 (*<s>mulv2hi3_highpart): New insn pattern.
10322 (<s>mulv2hi3_higpart): New expander.
10323 (*<any_shift:insn>v2hi3): New insn pattern.
10324 (<any_shift:insn>v2hi3): New expander.
10325 * config/i386/sse.md (smulhrsv2hi3): New expander.
10326 (*smulhrsv2hi3): New insn pattern.
10328 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
10330 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
10332 * params.opt (vect-inner-loop-cost-factor): New.
10333 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
10334 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
10335 tree-vectorizer.h and its required ones.
10336 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
10337 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
10338 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
10339 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
10340 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
10341 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
10343 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
10344 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
10345 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
10347 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
10348 Torbjörn Svensson <torbjorn.svensson@st.com>
10351 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
10353 2021-05-20 Jakub Jelinek <jakub@redhat.com>
10355 PR middle-end/99928
10356 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
10357 explicit linear clause when combined with target, make it map(tofrom:)
10358 instead of no clause or firstprivate.
10360 2021-05-20 Jakub Jelinek <jakub@redhat.com>
10362 PR tree-optimization/94589
10363 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
10364 of integral conversions.
10366 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
10368 * gimple-range.cc (fur_source::get_operand): New.
10369 (gimple_range_fold): Delete.
10370 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
10371 (fold_using_range::range_of_range_op): Move from gimple_ranger.
10372 (fold_using_range::range_of_address): Ditto.
10373 (fold_using_range::range_of_phi): Ditto.
10374 (fold_using_range::range_of_call): Ditto.
10375 (fold_using_range::range_of_builtin_ubsan_call): Move from
10376 range_of_builtin_ubsan_call.
10377 (fold_using_range::range_of_builtin_call): Move from
10378 range_of_builtin_call.
10379 (gimple_ranger::range_of_builtin_call): Delete.
10380 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
10381 (gimple_ranger::fold_range_internal): New.
10382 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
10383 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
10384 gimple_ranger. Improve ranges of SSA_NAMES when possible.
10385 * gimple-range.h (gimple_ranger): Remove various range_of routines.
10386 (class fur_source): New.
10387 (class fold_using_range): New.
10388 (fur_source::fur_source): New.
10390 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
10391 instead of range_of_builtin_call.
10393 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
10395 * doc/cpp.texi (Common Predefined Macros): Update documentation
10396 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
10398 2021-05-19 Alex Coplan <alex.coplan@arm.com>
10401 * config/arm/arm.md (nonsecure_call_internal): Always ensure
10402 callee's address is in a register.
10404 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
10406 * common/config/riscv/riscv-common.c
10407 (riscv_subset_list::parsing_subset_version): Properly parse the letter
10409 (riscv_subset_list::parse_std_ext,
10410 riscv_subset_list::parse_multiletter_ext): To handle errors generated
10411 in riscv_subset_list::parsing_subset_version.
10413 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
10415 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
10416 type attribute in patterns generating XTN(2).
10418 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
10420 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
10421 Remove as duplicate of...
10422 (aarch64_xtn<mode>): This.
10423 (aarch64_xtn2<mode>_le): Move position in file.
10424 (aarch64_xtn2<mode>_be): Move position in file.
10425 (aarch64_xtn2<mode>): Move position in file.
10426 (vec_pack_trunc_<mode>): Define as an expander.
10428 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
10430 * config/aarch64/aarch64-simd-builtins.def: Split builtin
10431 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
10432 separate scalar and vector generators.
10433 * config/aarch64/aarch64-simd.md
10434 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
10436 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
10437 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
10438 * config/aarch64/iterators.md: Define SD_HSDI iterator.
10440 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
10442 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
10444 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
10446 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
10448 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
10449 Implement as an expand emitting a big/little endian
10450 instruction pattern.
10451 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
10452 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
10454 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
10456 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
10457 Implement as an expand emitting a big/little endian
10458 instruction pattern.
10459 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
10460 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
10461 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
10462 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
10464 2021-05-19 Richard Biener <rguenther@suse.de>
10466 PR middle-end/100672
10467 * fold-const.c (fold_negate_expr_1): Use element_precision.
10468 (negate_expr_p): Likewise.
10470 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
10472 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
10473 (pred_load): New int attribute.
10474 * config/aarch64/aarch64-sve.md
10475 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
10476 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
10477 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
10478 code_for_aarch64_load.
10480 2021-05-19 Richard Biener <rguenther@suse.de>
10482 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
10483 sure TARGET_MEM_REF bases are expanded as memory.
10484 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
10485 Do not mark TARGET_MEM_REF bases addressable.
10486 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
10487 TARGET_MEM_REF bases as never rewritable.
10488 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
10489 walk TARGET_MEM_REF bases as address-takens.
10490 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
10492 2021-05-19 Richard Biener <rguenther@suse.de>
10494 * builtins.c (get_object_alignment_1): Strip outer
10496 * tree-dfa.c (get_ref_base_and_extent): Handle outer
10497 WITH_SIZE_EXPR for size processing and process the
10499 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
10500 outer WITH_SIZE_EXPR.
10501 (ao_ref_base_alias_ptr_type): Likewise.
10502 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
10503 and handle that accordingly, stripping it for the
10504 core alias workers.
10505 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
10506 looking through it instead of returning NULL.
10508 2021-05-19 Jakub Jelinek <jakub@redhat.com>
10510 PR middle-end/100576
10511 * builtins.c (check_read_access): Convert bound to size_type_node if
10514 2021-05-19 Richard Biener <rguenther@suse.de>
10516 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
10517 (verify_types_in_gimple_reference): ... here. Sanitize.
10518 (verify_gimple_call): Verify references in LHS and arguments.
10519 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
10521 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
10523 * config/i386/i386.h (VALID_INT_MODE_P):
10524 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
10525 * config/i386/i386.md (isa): Add x64_bmi.
10526 (enabled): Handle x64_bmi.
10527 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
10528 Add alternative using 64bit general registers.
10529 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
10531 2021-05-19 Jakub Jelinek <jakub@redhat.com>
10533 PR middle-end/99928
10534 * tree.h (OMP_MASTER_COMBINED): Define.
10535 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
10536 handling for outer combined/composite constructs to a loop.
10537 Handle lastprivate on combined target.
10538 (gimplify_expr): Formatting fix.
10540 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
10542 * passes.def: Add sink_code pass before store_merging.
10543 * tree-ssa-sink.c (pass_sink_code:clone): New.
10545 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
10547 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
10548 rs6000_special_adjust_field_align_p.
10549 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
10550 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
10551 Remove ABI warning.
10552 (rs6000_function_arg): Likewise.
10553 * config/rs6000/rs6000-protos.h
10554 (rs6000_special_adjust_field_align_p): Remove prototype.
10555 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
10557 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
10558 rs6000_special_adjust_field_align_p.
10560 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
10563 * config/i386/i386.h (VALID_SSE2_REG_MODE):
10564 Add V4QI and V2HI modes.
10565 (VALID_INT_MODE_P): Ditto.
10566 * config/i386/mmx.md (VI_32): New mode iterator.
10567 (mmxvecsize): Handle V4QI and V2HI.
10569 (mov<VI_32:mode>): New expander.
10570 (*mov<mode>_internal): New insn pattern.
10571 (movmisalign<VI_32:mode>): New expander.
10572 (neg<VI_32:mode>): New expander.
10573 (<plusminus:insn><VI_32:mode>3): New expander.
10574 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
10575 (mulv2hi3): New expander.
10576 (*mulv2hi3): New insn pattern.
10577 (one_cmpl<VI_32:mode>2): New expander.
10578 (*andnot<VI_32:mode>3): New insn pattern.
10579 (<any_logic:code><VI_32:mode>3): New expander.
10580 (*<any_logic:code><VI_32:mode>3): New insn pattern.
10582 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
10584 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
10585 Fix a mode mismatch with operand 1.
10587 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
10590 * config/i386/i386-expand.c (split_double_mode): Return
10591 temporary register when simplify_gen_subreg fails with
10592 the high half od the paradoxical subreg.
10594 2021-05-18 Richard Biener <rguenther@suse.de>
10596 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
10597 and honor it when expanding.
10598 (expand_used_vars_for_block): Pass through forced_stack_var.
10599 (expand_used_vars): Likewise.
10600 (discover_nonconstant_array_refs_r): Set bits in
10601 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
10602 (avoid_type_punning_on_regs): Likewise.
10603 (discover_nonconstant_array_refs): Likewise.
10604 (pass_expand::execute): Create and pass down forced_stack_var
10605 bitmap. For parameters and returns temporarily set
10606 TREE_ADDRESSABLE when expand_function_start.
10608 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
10610 * doc/sourcebuild.texi: Document 'dg-note'.
10612 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
10615 * configure: Regenerate.
10616 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
10618 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
10620 * gimple.h (is_gimple_omp_oacc): Tighten.
10621 * omp-low.c (check_omp_nesting_restrictions): Adjust.
10623 2021-05-18 Richard Biener <rguenther@suse.de>
10625 * tree-ssa-operands.c (mark_address_taken): Simplify.
10627 2021-05-18 Martin Liska <mliska@suse.cz>
10629 * config/gcn/mkoffload.c (STR): Redefine.
10630 * config/i386/intelmic-mkoffload.c (STR): Likewise.
10631 * config/nvptx/mkoffload.c (STR): Likewise.
10633 2021-05-18 Martin Liska <mliska@suse.cz>
10635 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
10636 Use startswith function instead of strncmp.
10637 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
10638 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
10639 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
10640 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
10641 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
10642 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
10643 * config/arm/arm.c (arm_file_start): Likewise.
10644 (arm_valid_target_attribute_rec): Likewise.
10645 (thumb1_md_asm_adjust): Likewise.
10646 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
10647 * config/avr/avr.c (STR_PREFIX_P): Likewise.
10648 (avr_set_current_function): Likewise.
10649 (avr_handle_addr_attribute): Likewise.
10650 (avr_asm_output_aligned_decl_common): Likewise.
10651 (avr_asm_named_section): Likewise.
10652 (avr_section_type_flags): Likewise.
10653 (avr_asm_select_section): Likewise.
10654 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
10655 (c6x_section_type_flags): Likewise.
10656 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
10657 (darwin_objc_declare_unresolved_class_reference): Likewise.
10658 (darwin_objc_declare_class_definition): Likewise.
10659 * config/darwin.c (indirect_data): Likewise.
10660 (darwin_encode_section_info): Likewise.
10661 (darwin_objc2_section): Likewise.
10662 (darwin_objc1_section): Likewise.
10663 (machopic_select_section): Likewise.
10664 (darwin_globalize_label): Likewise.
10665 (darwin_label_is_anonymous_local_objc_name): Likewise.
10666 (darwin_asm_named_section): Likewise.
10667 (darwin_asm_output_dwarf_offset): Likewise.
10668 * config/frv/frv.c (frv_string_begins_with): Likewise.
10669 (frv_in_small_data_p): Likewise.
10670 * config/gcn/mkoffload.c (STR): Likewise.
10672 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
10673 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
10674 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
10675 (ix86_md_asm_adjust): Likewise.
10676 * config/i386/intelmic-mkoffload.c (STR): Likewise.
10677 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
10678 (i386_pe_file_end): Likewise.
10679 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
10680 (ia64_section_type_flags): Likewise.
10681 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
10682 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
10683 (mips16_stub_function_p): Likewise.
10684 (mips_function_rodata_section): Likewise.
10685 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
10686 (msp430_function_section): Likewise.
10687 (msp430_section_type_flags): Likewise.
10688 (msp430_expand_helper): Likewise.
10689 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
10690 (nios2_valid_target_attribute_rec): Likewise.
10691 * config/nvptx/mkoffload.c (process): Likewise.
10693 * config/pa/som.h: Likewise.
10694 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
10695 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
10696 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
10697 (rs6000_inner_target_options): Likewise.
10698 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
10699 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
10700 * config/vax/vax.c (vax_output_int_move): Likewise.
10701 * config/vms/vms-ld.c (startswith): Likewise.
10702 (process_args): Likewise.
10704 * config/vms/vms.c: Likewise.
10706 2021-05-18 Jakub Jelinek <jakub@redhat.com>
10708 PR rtl-optimization/100590
10709 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
10710 they are NONJUMP_INSN_P.
10712 2021-05-18 Jakub Jelinek <jakub@redhat.com>
10715 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
10716 DECL_ASSEMBLER_NAME on the fn_decl.
10718 2021-05-18 Jakub Jelinek <jakub@redhat.com>
10720 PR tree-optimization/94589
10721 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
10722 phi result used in (res & ~1) == 0 comparison as res >= 0 as
10723 res == 2 would be UB with -ffinite-math-only.
10725 2021-05-18 Martin Liska <mliska@suse.cz>
10727 * Makefile.in: genversion.o should depend on DATESTAMP.
10729 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
10731 * config/arc/simdext.md (negv2si2): Remove round bracket.
10733 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
10735 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
10736 _Bool as macro expanding to _Bool.
10738 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
10741 * tree.c (build_reference_type_for_mode)
10742 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
10744 (build_reference_type, build_pointer_type): Invoke
10745 build_*_type_for_mode with VOIDmode.
10747 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
10749 PR tree-optimization/100512
10750 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
10751 and non-zero pointer ranges as invariant.
10752 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
10753 processing from here.
10755 2021-05-17 Tom de Vries <tdevries@suse.de>
10758 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
10759 * config/nvptx/nvptx.c (nvptx_output_barrier)
10760 (nvptx_output_atomic_insn): New function.
10761 (nvptx_print_operand): Add support for 'B'.
10762 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
10765 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
10767 PR tree-optimization/100349
10768 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
10771 2021-05-17 Tamar Christina <tamar.christina@arm.com>
10773 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
10774 (host_detect_local_cpu): Use it.
10776 2021-05-17 Martin Liska <mliska@suse.cz>
10778 * doc/invoke.texi: Add 2 missing dots.
10780 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
10782 PR bootstrap/100552
10783 * configure.ac: Replace pattern substitution with call to sed.
10784 * configure: Regenerate.
10786 2021-05-17 Richard Biener <rguenther@suse.de>
10788 PR middle-end/100582
10789 * tree.c (array_at_struct_end_p): Get to the base of the
10790 reference before looking for the underlying decl.
10792 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
10794 * genoutput.c (validate_insn_alternatives) Make "wrong number of
10795 alternatives" message more specific, and remove assumption on where
10798 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
10800 * config/arm/iterators.md (V16): New iterator.
10801 (VH_cvtto): New iterator.
10802 (v_cmp_result): Added V4HF and V8HF support.
10803 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
10804 (vcond<mode><mode>): Likewise.
10805 (vcond_mask_<mode><v_cmp_result>): Likewise.
10806 (vcond<VH_cvtto><mode>): New expander.
10808 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
10810 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
10812 * config/arm/arm.c (arm_expand_vector_compare): Add support for
10814 (arm_expand_vcond): Likewise.
10815 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
10816 VCMPEQQ_N_S, VCMPNEQ_N_S.
10817 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
10818 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
10819 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
10820 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
10821 (@mve_vpselq_<supf><mode>): Likewise.
10822 (@mve_vpselq_f<mode>"): Likewise.
10823 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
10824 and move to vec-common.md.
10825 (vec_cmpu<mode><mode>): Likewise.
10826 (vcond<mode><mode>): Likewise.
10827 (vcond<V_cvtto><mode>): Likewise.
10828 (vcondu<mode><v_cmp_result>): Likewise.
10829 (vcond_mask_<mode><v_cmp_result>): Likewise.
10830 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
10831 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
10832 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
10833 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
10834 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
10835 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
10837 (vec_cmpu<mode><mode>): Likewise.
10838 (vcond<mode><mode>): Likewise.
10839 (vcond<V_cvtto><mode>): Likewise.
10840 (vcondu<mode><v_cmp_result>): Likewise.
10841 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
10844 2021-05-17 liuhongt <hongtao.liu@intel.com>
10847 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
10848 gsi_insert_seq_before instead.
10850 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
10852 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
10853 (arm_sat_ok): ...this.
10855 2021-05-17 Martin Liska <mliska@suse.cz>
10857 * lto-wrapper.c (merge_flto_options): Factor out a new function.
10858 (merge_and_complain): Use it.
10859 (run_gcc): Merge also linker command line -flto=foo argument
10862 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
10864 * config/arm/arm.h (CPP_SPEC): Remove error message about
10865 -mlittle-endian/-mbig-endian conflict.
10867 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
10869 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10870 __ROP_PROTECT__ if -mrop-protect is selected.
10872 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
10874 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
10875 rop_hash_save_offset and rop_hash_size.
10876 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
10877 rop_hash_size and rop_hash_save_offset.
10878 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
10879 (rs6000_emit_prologue): Emit hashst[p] in prologue.
10880 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
10881 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
10883 (hashst): New define_insn.
10884 (hashchk): Likewise.
10886 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
10888 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10889 Disable shrink wrap when inserting ROP-protect instructions.
10890 * config/rs6000/rs6000.opt (mrop-protect): New option.
10891 (mprivileged): Likewise.
10892 * doc/invoke.texi: Document mrop-protect and mprivileged.
10894 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
10896 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
10899 2021-05-15 Martin Jambor <mjambor@suse.cz>
10902 2021-05-13 Martin Jambor <mjambor@suse.cz>
10904 PR tree-optimization/100453
10905 * tree-sra.c (sra_modify_assign): All const base accesses do not
10906 need refreshing, not just those from decl_pool.
10907 (sra_modify_assign): Do not refresh into a const base decl.
10909 2021-05-15 Jakub Jelinek <jakub@redhat.com>
10911 PR rtl-optimization/100342
10912 * regcprop.c (copy_value): When copying a source reg in a wider
10913 mode than it has recorded for the value, adjust recorded destination
10914 mode too or punt if !REG_CAN_CHANGE_MODE_P.
10916 2021-05-14 Jason Merrill <jason@redhat.com>
10918 * intl.h: Add comments.
10920 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10922 * config/aarch64/aarch64-simd.md
10923 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
10924 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
10925 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
10926 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
10927 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
10928 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
10929 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
10930 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
10931 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
10933 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10936 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
10937 boolean logic equivalent.
10938 (vtst_s16): Likewise.
10939 (vtst_s32): Likewise.
10940 (vtst_u8): Likewise.
10941 (vtst_u16): Likewise.
10942 (vtst_u32): Likewise.
10943 (vtst_p8): Likewise.
10944 (vtst_p16): Likewise.
10945 (vtstq_s8): Likewise.
10946 (vtstq_s16): Likewise.
10947 (vtstq_s32): Likewise.
10948 (vtstq_u8): Likewise.
10949 (vtstq_u16): Likewise.
10950 (vtstq_u32): Likewise.
10951 (vtstq_p8): Likewise.
10952 (vtstq_p16): Likewise.
10953 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
10954 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
10956 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10958 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
10959 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
10960 (aarch64_sqdmlsl2<mode>): Delete.
10961 (aarch64_sqdmlal2_lane<mode>): Merge this...
10962 (aarch64_sqdmlsl2_lane<mode>): ... And this...
10963 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
10964 (aarch64_sqdmlal2_laneq<mode>): Merge this...
10965 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
10966 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
10967 (aarch64_sqdmlal2_n<mode>): Merge this...
10968 (aarch64_sqdmlsl2_n<mode>): ... And this...
10969 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
10971 2021-05-13 Martin Sebor <msebor@redhat.com>
10973 PR middle-end/100574
10974 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
10975 all null arguments.
10977 2021-05-13 Martin Sebor <msebor@redhat.com>
10979 PR tree-optimization/93100
10980 PR middle-end/98583
10981 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
10982 don't modify referenced objects.
10984 2021-05-13 Martin Jambor <mjambor@suse.cz>
10986 PR tree-optimization/100453
10987 * tree-sra.c (sra_modify_assign): All const base accesses do not
10988 need refreshing, not just those from decl_pool.
10989 (sra_modify_assign): Do not refresh into a const base decl.
10991 2021-05-13 Martin Liska <mliska@suse.cz>
10993 * tree-ssa-dom.c: Remove m_simplifier.
10995 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
10998 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
10999 canonicalize DImode inequality comparisons against the
11000 maximum integral value.
11002 2021-05-13 Jakub Jelinek <jakub@redhat.com>
11004 PR tree-optimization/98856
11005 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
11006 Expect V2DI and V4DI arithmetic right shifts to be emulated.
11007 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
11009 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
11010 expand_vec_perm_2perm_pblendv): New functions.
11011 (ix86_expand_vec_perm_const_1): Use them.
11012 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
11013 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
11014 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
11015 (ashrv4di3): New define_expand.
11016 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
11017 and !TARGET_AVX512VL expansion.
11019 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
11022 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
11023 sizes < 16 to a register when constructing vpcmov pattern.
11024 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
11026 2021-05-13 Martin Liska <mliska@suse.cz>
11028 * gcov-io.c (gcov_write_block): Remove.
11029 (gcov_write_words): Likewise.
11030 (gcov_read_words): Re-implement using gcov_read_bytes.
11031 (gcov_allocate): Remove.
11032 (GCOV_BLOCK_SIZE): Likewise.
11033 (struct gcov_var): Remove most of the fields.
11034 (gcov_position): Implement with ftell.
11035 (gcov_rewrite): Remove setting of start and offset fields.
11036 (from_file): Re-format.
11037 (gcov_open): Remove setbuf call. It should not be needed.
11038 (gcov_close): Remove internal buffer handling.
11039 (gcov_magic): Use __builtin_bswap32.
11040 (gcov_write_counter): Use directly gcov_write_unsigned.
11041 (gcov_write_string): Use direct fwrite and do not round
11043 (gcov_seek): Use directly fseek.
11044 (gcov_write_tag): Use gcov_write_unsigned directly.
11045 (gcov_write_length): Likewise.
11046 (gcov_write_tag_length): Likewise.
11047 (gcov_read_bytes): Use directly fread.
11048 (gcov_read_unsigned): Use gcov_read_words.
11049 (gcov_read_counter): Likewise.
11050 (gcov_read_string): Use gcov_read_bytes.
11051 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
11052 that size is not in bytes, but words (4B).
11053 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
11054 (GCOV_TAG_ARCS_LENGTH): Likewise.
11055 (GCOV_TAG_ARCS_NUM): Likewise.
11056 (GCOV_TAG_COUNTER_LENGTH): Likewise.
11057 (GCOV_TAG_COUNTER_NUM): Likewise.
11058 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
11060 2021-05-13 liuhongt <hongtao.liu@intel.com>
11063 * config/i386/sse.md (ssedoublevecmode): Add attribute for
11064 V64QI/V32HI/V16SI/V4DI.
11065 (ssehalfvecmode): Add attribute for V2DI/V2DF.
11066 (*vec_concatv4si_0): Extend to VI124_128.
11067 (*vec_concat<mode>_0): New pre-reload splitter.
11068 * config/i386/predicates.md (movq_parallel): New predicate.
11070 2021-05-13 Alexandre Oliva <oliva@adacore.com>
11072 * targhooks.c (default_zero_call_used_regs): Retry using
11073 successfully-zeroed registers as sources.
11075 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
11077 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
11079 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
11082 * gimple-range.cc (range_of_builtin_call): Skip out on
11083 processing __builtin_clz when varying.
11085 2021-05-12 Tom de Vries <tdevries@suse.de>
11088 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
11089 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
11090 to ptx_version_option.
11091 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
11092 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
11093 (define_insn "nvptx_vote_ballot"): Use sync variant for
11095 * config/nvptx/nvptx.opt (ptx_version): Add enum.
11096 (mptx): Add option.
11097 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
11099 2021-05-12 Richard Biener <rguenther@suse.de>
11101 PR tree-optimization/100566
11102 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
11103 allow_back for all edge queries.
11105 2021-05-12 liuhongt <hongtao.liu@intel.com>
11108 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
11109 splitters for pblendvb of NOT mask register.
11111 2021-05-12 Richard Biener <rguenther@suse.de>
11113 PR tree-optimization/100519
11114 * tree-ssa-reassoc.c (can_associate_p): Split into...
11115 (can_associate_op_p): ... this
11116 (can_associate_type_p): ... and this.
11117 (is_reassociable_op): Call can_associate_op_p.
11118 (break_up_subtract_bb): Call the appropriate predicates.
11119 (reassociate_bb): Likewise.
11121 2021-05-12 Martin Liska <mliska@suse.cz>
11123 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
11124 (run_gcc): Use -flto argument detection for merged
11127 2021-05-12 Martin Liska <mliska@suse.cz>
11129 * lto-wrapper.c (print_lto_docs_link): New function.
11130 (run_gcc): Print warning about missing job server detection
11131 after we know NR of partitions. Do the same for -flto{,=1}.
11132 * opts.c (get_option_html_page): Support -flto option.
11134 2021-05-12 Martin Liska <mliska@suse.cz>
11136 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
11138 (append_option): Remove.
11139 (find_option): Rework to use the vector type.
11140 (remove_option): Remove.
11141 (merge_and_complain): Use vectors for cl_decoded_option data
11143 (append_compiler_options): Likewise.
11144 (append_diag_options): Likewise.
11145 (append_linker_options): Likewise.
11146 (append_offload_options): Likewise.
11147 (compile_offload_image): Likewise.
11148 (compile_images_for_offload_targets): Likewise.
11149 (find_and_merge_options): Likewise.
11150 (run_gcc): Likewise.
11152 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
11155 * dwarf2out.c (dwarf2out_finish): Set
11156 have_multiple_function_sections with multi-range text_section.
11158 2021-05-12 Martin Liska <mliska@suse.cz>
11160 PR bootstrap/100560
11161 * Makefile.in: Remove version.h from linker command line.
11163 2021-05-12 Richard Biener <rguenther@suse.de>
11165 PR middle-end/100547
11166 * rtl.h (rtvec_alloc): Make argument size_t.
11167 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
11169 2021-05-12 Jakub Jelinek <jakub@redhat.com>
11171 PR middle-end/100508
11172 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
11173 type, don't reuse DECL_RTL if it has different mode, instead force
11174 creation of a new DEBUG_EXPR.
11176 2021-05-12 Jakub Jelinek <jakub@redhat.com>
11177 Marc Glisse <marc.glisse@inria.fr>
11179 PR tree-optimization/94589
11180 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
11181 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
11183 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
11186 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
11187 * config/i386/mmx.md (MMXMODE124): New mode iterator.
11189 (mmxintvecmode): New mode attribute.
11190 (mmxintvecmodelower): Ditto.
11191 (*mmx_maskcmpv2sf3_comm): New insn pattern.
11192 (*mmx_maskcmpv2sf3): Ditto.
11193 (vec_cmpv2sfv2si): New expander.
11194 (vcond<V2FI:mode>v2si): Ditto.
11195 (mmx_vlendvps): New insn pattern.
11196 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
11197 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
11198 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
11200 2021-05-11 Martin Sebor <msebor@redhat.com>
11202 PR middle-end/21433
11203 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
11205 2021-05-11 Richard Biener <rguenther@suse.de>
11207 * gimple-fold.c (gimple_fold_call): Do not call
11208 maybe_fold_reference on call arguments or the static chain.
11209 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
11212 2021-05-11 Martin Liska <mliska@suse.cz>
11214 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
11215 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
11216 (DEF_HSAIL_SAT_BUILTIN): Likewise.
11217 (DEF_HSAIL_INTR_BUILTIN): Likewise.
11218 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
11219 * doc/frontends.texi: Remove BRIG.
11220 * doc/install.texi: Likewise.
11221 * doc/invoke.texi: Likewise.
11222 * doc/standards.texi: Likewise.
11223 * brig-builtins.def: Removed.
11224 * brig/ChangeLog: Removed.
11225 * brig/Make-lang.in: Removed.
11226 * brig/brig-builtins.h: Removed.
11227 * brig/brig-c.h: Removed.
11228 * brig/brig-lang.c: Removed.
11229 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
11230 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
11231 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
11232 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
11233 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
11234 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
11235 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
11236 * brig/brigfrontend/brig-comment-handler.cc: Removed.
11237 * brig/brigfrontend/brig-control-handler.cc: Removed.
11238 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
11239 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
11240 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
11241 * brig/brigfrontend/brig-function-handler.cc: Removed.
11242 * brig/brigfrontend/brig-function.cc: Removed.
11243 * brig/brigfrontend/brig-function.h: Removed.
11244 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
11245 * brig/brigfrontend/brig-label-handler.cc: Removed.
11246 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
11247 * brig/brigfrontend/brig-machine.c: Removed.
11248 * brig/brigfrontend/brig-machine.h: Removed.
11249 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
11250 * brig/brigfrontend/brig-module-handler.cc: Removed.
11251 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
11252 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
11253 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
11254 * brig/brigfrontend/brig-to-generic.cc: Removed.
11255 * brig/brigfrontend/brig-to-generic.h: Removed.
11256 * brig/brigfrontend/brig-util.cc: Removed.
11257 * brig/brigfrontend/brig-util.h: Removed.
11258 * brig/brigfrontend/brig-variable-handler.cc: Removed.
11259 * brig/brigfrontend/hsa-brig-format.h: Removed.
11260 * brig/brigfrontend/phsa.h: Removed.
11261 * brig/brigspec.c: Removed.
11262 * brig/config-lang.in: Removed.
11263 * brig/gccbrig.texi: Removed.
11264 * brig/lang-specs.h: Removed.
11265 * brig/lang.opt: Removed.
11267 2021-05-11 Richard Biener <rguenther@suse.de>
11270 * ipa-param-manipulation.c
11271 (ipa_param_body_adjustments::modify_call_stmt): Avoid
11272 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
11273 via gimple_call_lhs_ptr.
11275 2021-05-11 Alex Coplan <alex.coplan@arm.com>
11278 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
11279 Avoid emitting CFA adjusts on the sp if we have the fp.
11281 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
11283 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
11284 (VMULD): New iterator.
11285 (VCOND): Handle V4HF and V8HF.
11286 (VCONQ): Fix entry for V2SF.
11287 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
11288 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
11289 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
11290 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
11291 Use a 128-bit vector mode for the indexed operand. Use stype for
11292 the scheduling type.
11294 2021-05-11 Richard Biener <rguenther@suse.de>
11296 * gimple-fold.c (maybe_fold_reference): Only return
11297 is_gimple_min_invariant values.
11299 2021-05-11 Richard Biener <rguenther@suse.de>
11301 PR middle-end/100509
11302 * gimple-fold.c (fold_gimple_assign): Only call
11303 get_symbol_constant_value on register type symbols.
11305 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
11306 Joe Ramsay <joe.ramsay@arm.com>
11309 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
11310 (__arm_vcmpneq): Remove duplicate definition.
11311 (__arm_vstrwq_scatter_offset_p): Likewise.
11312 (__arm_vmaxq_x): Likewise.
11313 (__arm_vmlsdavaq): Likewise.
11314 (__arm_vmlsdavaxq): Likewise.
11315 (__arm_vmlsdavq_p): Likewise.
11316 (__arm_vmlsdavxq_p): Likewise.
11317 (__arm_vrmlaldavhaq): Likewise.
11318 (__arm_vstrbq_p): Likewise.
11319 (__arm_vstrbq_scatter_offset): Likewise.
11320 (__arm_vstrbq_scatter_offset_p): Likewise.
11321 (__arm_vstrdq_scatter_offset): Likewise.
11322 (__arm_vstrdq_scatter_offset_p): Likewise.
11323 (__arm_vstrdq_scatter_shifted_offset): Likewise.
11324 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
11326 2021-05-11 Jakub Jelinek <jakub@redhat.com>
11328 PR middle-end/100471
11329 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
11330 is 0, bypass the reduction loop including
11331 GOMP_taskgroup_reduction_unregister call.
11333 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
11335 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
11336 costing_for_scalar.
11337 (rs6000_density_test): Early return if costing_for_scalar is true.
11338 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
11340 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
11342 * doc/tm.texi: Regenerated.
11343 * target.def (init_cost): Add new parameter costing_for_scalar.
11344 * targhooks.c (default_init_cost): Adjust for new parameter.
11345 * targhooks.h (default_init_cost): Likewise.
11346 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
11347 (vect_compute_single_scalar_iteration_cost): Likewise.
11348 (vect_analyze_loop_2): Likewise.
11349 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
11350 (vect_bb_vectorization_profitable_p): Likewise.
11351 * tree-vectorizer.h (init_cost): Likewise.
11352 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
11353 * config/i386/i386.c (ix86_init_cost): Likewise.
11354 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
11356 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
11358 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
11359 vect_nonmem and moved into...
11360 (struct rs6000_cost_data): ...here.
11361 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
11362 (rs6000_add_stmt_cost): Likewise.
11363 (rs6000_finish_cost): Likewise.
11365 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
11367 * range-op.cc (get_bool_state): Adjust head comment.
11368 (operator_not_equal::op1_range): Fix comment.
11369 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
11371 2021-05-10 Martin Sebor <msebor@redhat.com>
11373 PR middle-end/100425
11374 PR middle-end/100510
11375 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
11376 (pass_walloca::xlimit_certain_p): ...to this.
11377 (pass_walloca::gate): Execute for any kind of handled warning.
11378 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
11379 warnings when xlimit_certain_p is set.
11381 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
11383 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
11384 Return ALTIVEC_REGS if that is best_class.
11385 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
11387 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
11389 * config/arm/arm.h (CPP_SPEC): Remove error message about
11392 2021-05-10 Martin Jambor <mjambor@suse.cz>
11394 * ipa-prop.h (IPA_NODE_REF): Removed.
11395 (IPA_NODE_REF_GET_CREATE): Likewise.
11396 (IPA_EDGE_REF): Likewise.
11397 (IPA_EDGE_REF_GET_CREATE): Likewise.
11398 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
11399 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
11400 use of ipa_node_params_sum.
11401 (ipcp_versionable_function_p): Likewise.
11402 (push_node_to_stack): Likewise.
11403 (pop_node_from_stack): Likewise.
11404 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
11405 direct use of ipa_node_params_sum.
11406 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
11407 ipa_node_params_sum.
11408 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
11410 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
11411 use of ipa_node_params_sum.
11412 (self_recursively_generated_p): Likewise.
11413 (propagate_scalar_across_jump_function): Likewise.
11414 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
11415 direct use of ipa_edge_args_sum, moved the lookup after the early
11416 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
11417 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
11418 direct uses of ipa_node_params_sum.
11419 (propagate_vr_across_jump_function): Likewise.
11420 (propagate_aggregate_lattice): Likewise.
11421 (propagate_aggs_across_jump_function): Likewise.
11422 (propagate_constants_across_call): Likewise, also replaced
11423 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
11424 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
11425 of ipa_node_params_sum.
11426 (estimate_local_effects): Likewise.
11427 (add_all_node_vals_to_toposort): Likewise.
11428 (propagate_constants_topo): Likewise.
11429 (ipcp_propagate_stage): Likewise.
11430 (ipcp_discover_new_direct_edges): Likewise.
11431 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
11432 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
11433 (get_info_about_necessary_edges): Likewise.
11434 (want_remove_some_param_p): Likewise.
11435 (create_specialized_node): Likewise.
11436 (self_recursive_pass_through_p): Likewise.
11437 (self_recursive_agg_pass_through_p): Likewise.
11438 (find_more_scalar_values_for_callers_subset): Likewise and also
11439 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
11440 case replacing two of those with a single query.
11441 (find_more_contexts_for_caller_subset): Likewise for the
11442 ipa_polymorphic_call_context overload.
11443 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
11444 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
11445 ipa_node_params_sum.
11446 (find_aggregate_values_for_callers_subset): Likewise, also reusing
11447 results of ipa_edge_args_sum->get.
11448 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
11449 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
11450 direct use of ipa_edge_args_sum.
11451 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
11452 summary query after the early exit and reused the result later.
11453 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
11454 ipa_node_params_sum.
11455 (decide_whether_version_node): Likewise. Removed re-querying for
11456 summaries after cloning.
11457 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
11458 ipa_node_params_sum.
11459 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
11461 (identify_dead_nodes): Likewise.
11462 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
11463 ipa_node_params_sum.
11464 (ipcp_store_vr_results): Likewise.
11465 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
11466 (ipa_fn_summary_t::duplicate): Likewise.
11467 (analyze_function_body): Likewise.
11468 (estimate_calls_size_and_time): Likewise.
11469 (ipa_cached_call_context::duplicate_from): Likewise.
11470 (ipa_call_context::equal_to): Likewise.
11471 (remap_edge_params): Likewise.
11472 (ipa_merge_fn_summary_after_inlining): Likewise.
11473 (inline_read_section): Likewise.
11474 * ipa-icf.c (sem_function::param_used_p): Likewise.
11475 * ipa-modref.c (compute_parm_map): Likewise.
11476 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
11478 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
11479 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
11481 * ipa-profile.c (check_argument_count): Likewise.
11482 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
11483 with a direct use of ipa_node_params_sum.
11484 (ipa_initialize_node_params): Likewise.
11485 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
11486 direct use of ipa_edge_args_sum and reused the query result.
11487 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
11488 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
11489 direct use of ipa_edge_args_sum.
11490 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
11491 ipa_node_params_sum and reused the result of the query.
11492 (ipa_analyze_node): Likewise.
11493 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
11494 of ipa_node_params_sum.
11495 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
11496 direct uses of ipa_edge_args_sum.
11497 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
11498 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
11499 direct use of ipa_edge_args_sum. Removed superficial re-querying the
11501 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
11502 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
11504 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
11505 direct use of ipa_edge_args_sum.
11506 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
11507 use of ipa_node_params_sum.
11508 (ipa_print_node_params): Likewise.
11509 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
11510 direct uses of ipa_edge_args_sum.
11511 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
11513 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
11514 ipa_node_params_sum.
11515 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
11516 scopes where it is used.
11518 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
11520 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
11521 <case E_V2SImode>: Force op_true to register.
11523 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
11525 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
11526 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
11527 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
11529 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
11530 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
11531 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
11532 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
11533 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
11534 (mve_vcmpneq_n_f<mode>): Remove.
11535 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
11536 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
11537 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
11539 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
11541 * config/arm/iterators.md (MVE_COMPARISONS): New.
11543 (mve_cmp_type): New.
11544 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
11546 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
11547 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
11548 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
11549 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
11550 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
11551 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
11552 (mve_vcmpneq_n_<mode>): Remove.
11554 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
11556 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
11557 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
11558 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
11561 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
11563 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
11564 (vcmpneq_n_u): Likewise.
11565 (vcmpeqq_u,): Likewise.
11566 (vcmpeqq_n_u): Likewise.
11567 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
11568 VCMPEQQ_N_U and VCMPNEQ_N_U.
11569 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
11570 (mve_vcmpeqq_n): Likewise.
11571 (mve_vcmpeqq): Likewise.
11572 (mve_vcmpneq_n): Likewise.
11574 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
11576 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
11577 the 's' version of the builtin.
11579 2021-05-10 Richard Biener <rguenther@suse.de>
11581 PR tree-optimization/100492
11582 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
11583 Find nothing when the loop contains an irreducible region.
11585 2021-05-10 Richard Biener <rguenther@suse.de>
11587 PR middle-end/100464
11589 * gimple-fold.c (canonicalize_constructor_val): Do not set
11592 2021-05-10 Richard Biener <rguenther@suse.de>
11594 PR tree-optimization/100434
11595 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
11597 (dse_optimize_stmt): Handle call LHS by dropping the
11598 LHS or the whole call if it doesn't have other
11600 (pass_dse::execute): Adjust.
11602 2021-05-10 Martin Liska <mliska@suse.cz>
11604 * Makefile.in: Add missing genversion rule.
11606 2021-05-10 Alex Coplan <alex.coplan@arm.com>
11609 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
11610 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
11612 2021-05-10 Martin Liska <mliska@suse.cz>
11614 * builtins.c (is_builtin_name): Use startswith
11615 function instead of strncmp.
11616 * collect2.c (main): Likewise.
11617 (has_lto_section): Likewise.
11618 (scan_libraries): Likewise.
11619 * coverage.c (coverage_checksum_string): Likewise.
11620 (coverage_init): Likewise.
11621 * dwarf2out.c (is_cxx): Likewise.
11622 (gen_compile_unit_die): Likewise.
11623 * gcc-ar.c (main): Likewise.
11624 * gcc.c (init_spec): Likewise.
11625 (read_specs): Likewise.
11626 (execute): Likewise.
11627 (check_live_switch): Likewise.
11628 * genattrtab.c (write_attr_case): Likewise.
11629 (IS_ATTR_GROUP): Likewise.
11630 * gencfn-macros.c (main): Likewise.
11631 * gengtype.c (type_for_name): Likewise.
11632 (gen_rtx_next): Likewise.
11633 (get_file_langdir): Likewise.
11634 (write_local): Likewise.
11635 * genmatch.c (get_operator): Likewise.
11636 (get_operand_type): Likewise.
11637 (expr::gen_transform): Likewise.
11638 * genoutput.c (validate_optab_operands): Likewise.
11639 * incpath.c (add_sysroot_to_chain): Likewise.
11640 * langhooks.c (lang_GNU_C): Likewise.
11641 (lang_GNU_CXX): Likewise.
11642 (lang_GNU_Fortran): Likewise.
11643 (lang_GNU_OBJC): Likewise.
11644 * lto-wrapper.c (run_gcc): Likewise.
11645 * omp-general.c (omp_max_simt_vf): Likewise.
11646 * omp-low.c (omp_runtime_api_call): Likewise.
11647 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
11648 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
11649 * real.c (real_from_string): Likewise.
11650 * selftest.c (assert_str_startswith): Likewise.
11651 * timevar.c (timer::validate_phases): Likewise.
11652 * tree.c (get_file_function_name): Likewise.
11653 * ubsan.c (ubsan_use_new_style_p): Likewise.
11654 * varasm.c (default_function_rodata_section): Likewise.
11655 (incorporeal_function_p): Likewise.
11656 (default_section_type_flags): Likewise.
11657 * system.h (startswith): Define startswith.
11659 2021-05-10 Martin Liska <mliska@suse.cz>
11661 * bitmap.h (class auto_bitmap): Remove
11662 __cplusplus >= 201103.
11663 * config/aarch64/aarch64.c: Likewise.
11664 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
11666 * sbitmap.h: Likewise.
11668 2021-05-10 Martin Liska <mliska@suse.cz>
11670 * Makefile.in: Rename gcov-iov to genversion and depend
11671 on version.h (instead of gcov-iov.h).
11672 * gcov-io.h: Include version.h instread of gcov-iov.h.
11673 * gengtype-state.c (read_state_version): Likewise.
11674 * gcov-iov.c: Moved to...
11675 * genversion.c: ...here.
11676 * lto-streamer.h (LTO_major_version): Define it with
11678 * version.c: Removed.
11679 * version.h: Removed.
11681 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
11683 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
11684 * config/arc/simdext.md (VCT): Add predicates for iterator
11687 (voptab): Likewise.
11688 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
11689 (<voptab>v2si3): New patterns.
11691 (reduc_plus_scal_v4hi): Likewise.
11692 (reduc_plus_scal_v2si): Likewise.
11693 (vec_duplicatev2si): Likewise.
11694 (vec_duplicatev4hi): Likewise.
11696 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
11698 * config/arc/simdext.md: Format and cleanup file.
11700 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
11702 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
11703 only when munaligned-access option is on.
11704 (movmisalign<mode>): Likewise.
11706 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
11708 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
11710 * config/arc/arc.c (arc_reorg): Remove underscore from string.
11712 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
11714 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
11715 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
11716 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
11717 (norm_f): Likewise.
11720 (clzsi2): Use fls instruction when available.
11721 (arc_clzsi2): Likewise.
11723 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
11725 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
11727 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
11729 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
11731 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
11733 PR middle-end/100467
11734 * toplev.c (compile_file): Call insn_locations_init before
11735 targetm.asm_out.code_end.
11737 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
11740 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
11742 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
11744 2021-05-07 Jakub Jelinek <jakub@redhat.com>
11745 Andrew Stubbs <amd@codesourcery.com>
11748 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
11749 emit_move_insn operands.
11751 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
11753 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
11754 location for the outgoing edges of an empty block.
11755 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
11756 type by means of the get_array_descr_info langhook, if it is set and
11757 returns true. Remove obsolete code dealing with unnamed subtypes.
11759 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
11761 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
11762 (sbr_vector): Renamed from ssa_block_cache.
11763 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
11764 (ssa_block_ranges::~ssa_block_ranges): Remove.
11765 (sbr_vector::set_bb_range): Use varying and undefined cached values.
11766 (ssa_block_ranges::set_bb_varying): Remove.
11767 (sbr_vector::get_bb_range): Adjust assert.
11768 (sbr_vector::bb_range_p): Adjust assert.
11769 (~block_range_cache): No freeing loop required.
11770 (block_range_cache::get_block_ranges): Remove.
11771 (block_range_cache::set_bb_range): Inline get_block_ranges.
11772 (block_range_cache::set_bb_varying): Remove.
11773 * gimple-range-cache.h (set_bb_varying): Remove prototype.
11774 * value-range.h (irange_allocator::get_memory): New.
11776 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
11778 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
11779 dominator tree is available and requested.
11780 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
11781 (ranger_cache::fill_block_cache): Don't search dom tree here either.
11782 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
11784 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
11786 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
11787 only PHI nodes better.
11789 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
11791 * gimple-range-edge.h (gimple_outgoing_range): Rename from
11793 (gcond_edge_range): Export prototype.
11794 * gimple-range-edge.cc (gcond_edge_range): New.
11795 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
11796 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
11798 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
11800 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
11801 default range into a temp and allocate only what is needed.
11803 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
11805 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
11807 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
11809 * gimple-range.h (gimple_range_global): Pick up parameter initial
11810 values, and use-before defined locals are UNDEFINED.
11812 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
11814 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
11816 * tree.h (reverse_storage_order_for_component_p): Return false if
11817 the type is a pointer.
11819 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
11821 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
11823 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
11826 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
11827 Handle V8QI, V4HI and V2SI modes.
11828 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
11829 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
11830 * config/i386/i386.md (unspec): ... here.
11832 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
11833 Tom de Vries <tdevries@suse.de>
11835 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
11836 a truth_value_p reduction variable is nonintegral.
11838 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
11841 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
11842 Return false for mode sizes < 16.
11844 2021-05-07 Jakub Jelinek <jakub@redhat.com>
11847 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
11849 2021-05-06 Martin Jambor <mjambor@suse.cz>
11851 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
11852 when there is no function summary.
11853 (ipa_sra_summarize_function): produce edge summaries even when
11856 2021-05-06 Tom Tromey <tom@tromey.com>
11858 * godump.c (string_hash_eq): Remove.
11859 (go_finish): Use htab_eq_string.
11861 2021-05-06 Tom Tromey <tom@tromey.com>
11863 * gengtype-state.c (read_state): Use htab_eq_string.
11864 (string_eq): Remove.
11866 2021-05-06 Tom Tromey <tom@tromey.com>
11868 * gensupport.c (htab_eq_string): Remove.
11870 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
11873 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
11874 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
11875 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
11876 set_ignored_loc callbacks.
11877 * debug.c (do_nothing_debug_hooks): Likewise.
11878 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11879 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
11880 (in_text_section_p, last_text_label, last_cold_label,
11881 switch_text_ranges, switch_cold_ranges): New data items.
11882 (dwarf2out_note_section_used): Remove.
11883 (dwarf2out_begin_prologue): Set fde->ignored_debug and
11885 (mark_ignored_debug_section): New helper function.
11886 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
11887 mark_ignored_debug_section.
11888 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
11889 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
11890 (size_of_aranges): Adjust formula for multi-part text ranges size.
11891 (output_aranges): Output multi-part text ranges.
11892 (dwarf2out_set_ignored_loc): New callback function.
11893 (dwarf2out_finish): Output multi-part text ranges.
11894 (dwarf2out_c_finalize): Clear new data items.
11895 * final.c (final_start_function_1): Call set_ignored_loc callback.
11896 (final_scan_insn_1): Likewise.
11897 * ggc-page.c (gt_ggc_mx): New helper function.
11898 * stringpool.c (gt_pch_nx): Likewise.
11900 2021-05-06 Richard Biener <rguenther@suse.de>
11902 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
11903 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
11904 (TV_TREE_INTO_SSA): New.
11905 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
11906 (rewrite_blocks): Likewise.
11907 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
11909 2021-05-06 Jakub Jelinek <jakub@redhat.com>
11911 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
11912 abs_replacement, xor_replacement,
11913 cond_removal_in_popcount_clz_ctz_pattern,
11914 replace_phi_edge_with_variable): Change type of phi argument from
11915 gimple * to gphi *.
11917 2021-05-06 Richard Biener <rguenther@suse.de>
11919 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
11920 Output an opt-info message.
11921 (do_split_loop_on_cond): Likewise.
11922 (tree_ssa_split_loops): Update SSA form here.
11924 2021-05-06 Richard Biener <rguenther@suse.de>
11926 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
11927 return variable removal.
11929 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
11931 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
11932 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
11933 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
11935 * config/s390/s390.c (s390_const_operand_ok): Remove unused
11938 2021-05-06 Jakub Jelinek <jakub@redhat.com>
11940 PR tree-optimization/94589
11941 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
11942 spaceship_replacement.
11943 (cond_only_block_p, spaceship_replacement): New functions.
11945 2021-05-06 Richard Biener <rguenther@suse.de>
11948 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
11949 dealing with a debug use and only query existing addresses
11951 (lower_emutls_1): Avoid splitting out addresses for debug
11952 stmts, reset the debug stmt when we fail to find existing
11954 (lower_emutls_phi_arg): Set wi.stmt.
11956 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
11959 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
11960 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
11961 (stack_protect_test): Use cbranch helper.
11963 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
11966 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
11967 always return the establisher frame for __builtin_frame_address (0).
11969 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
11972 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
11973 (ix86_cpu_model_var): Likewise.
11974 (ix86_cpu_features2_type_node): Likewise.
11975 (ix86_cpu_features2_var): Likewise.
11976 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
11979 2021-05-05 Martin Sebor <msebor@redhat.com>
11981 * passes.def (pass_warn_printf): Run after SSA.
11983 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11985 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
11986 * config/arm/predicates.md (minus_one_operand): New predicate.
11988 2021-05-05 Jeff Law <jlaw@tachyum.com>
11990 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
11992 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
11994 PR rtl-optimization/100263
11995 * postreload.c (move2add_valid_value_p): Ensure register can
11998 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
12000 PR rtl-optimization/100411
12001 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
12002 and beginning of function markers.
12004 2021-05-05 Jeff Law <jlaw@tachyum.com>
12006 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
12007 * config/cr16/cr16.c (notice_update_cc): Remove.
12008 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
12010 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
12013 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
12014 Handle V8QI, V4HI and V2SI modes.
12015 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
12016 (ix86_build_signbit_mask): Ditto.
12017 * config/i386/mmx.md (MMXMODE14): New mode iterator.
12018 (<smaxmin:code><MMXMODE14:mode>3): New expander.
12019 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
12020 (<umaxmin:code><MMXMODE24:mode>3): New expander.
12021 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
12022 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
12023 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
12024 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
12025 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
12026 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
12028 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
12030 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
12031 not expand the VALUE_EXPR of variables put in the non-local frame.
12032 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
12033 to be ignored for debug info, ensure its variable offsets are not.
12035 2021-05-05 Richard Biener <rguenther@suse.de>
12037 PR tree-optimization/79333
12038 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
12039 Fold stmt following SSA edges.
12041 2021-05-05 Richard Biener <rguenther@suse.de>
12043 PR middle-end/100394
12044 * calls.c (expand_call): Preserve possibly throwing calls.
12045 * cfgexpand.c (expand_call_stmt): When a call can throw signal
12046 RTL expansion there are side-effects.
12047 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
12048 mark all possibly throwing stmts necessary unless we can elide
12050 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
12051 -fdelete-dead-exceptions.
12052 * tree.h (DECL_PURE_P): Add note about exceptions.
12054 2021-05-05 Alexandre Oliva <oliva@adacore.com>
12056 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
12059 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
12061 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
12062 get_fnname_from_decl for name of thunk.
12063 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
12064 and ASM_OUTPUT_LABEL.
12065 (rs6000_xcoff_declare_function_name): Use assemble_name and
12067 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
12068 (rs6000_xcoff_encode_section_info): Don't add mapping class
12069 for aliases. Always add [DS] mapping class to primary
12071 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
12073 2021-05-04 Martin Sebor <msebor@redhat.com>
12075 PR middle-end/100307
12076 * builtins.c (compute_objsize_r): Clear base0 for pointers.
12078 2021-05-04 Jeff Law <jlaw@tachyum.com>
12080 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
12082 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
12084 * caller-save.c: Remove CC0.
12085 * cfgcleanup.c: Remove CC0.
12086 * cfgrtl.c: Remove CC0.
12087 * combine.c: Remove CC0.
12088 * compare-elim.c: Remove CC0.
12089 * conditions.h: Remove CC0.
12090 * config/h8300/h8300.h: Remove CC0.
12091 * config/h8300/h8300-protos.h: Remove CC0.
12092 * config/h8300/peepholes.md: Remove CC0.
12093 * config/i386/x86-tune-sched.c: Remove CC0.
12094 * config/m68k/m68k.c: Remove CC0.
12095 * config/rl78/rl78.c: Remove CC0.
12096 * config/sparc/sparc.c: Remove CC0.
12097 * config/xtensa/xtensa.c: Remove CC0.
12098 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
12099 RTL where that is used as a placeholder only.
12100 * cprop.c: Remove CC0.
12101 * cse.c: Remove CC0.
12102 * cselib.c: Remove CC0.
12103 * df-problems.c: Remove CC0.
12104 * df-scan.c: Remove CC0.
12105 * doc/md.texi: Remove CC0. Adjust an example.
12106 * doc/rtl.texi: Remove CC0. Adjust an example.
12107 * doc/tm.texi: Regenerate.
12108 * doc/tm.texi.in: Remove CC0.
12109 * emit-rtl.c: Remove CC0.
12110 * final.c: Remove CC0.
12111 * fwprop.c: Remove CC0.
12112 * gcse-common.c: Remove CC0.
12113 * gcse.c: Remove CC0.
12114 * genattrtab.c: Remove CC0.
12115 * genconfig.c: Remove CC0.
12116 * genemit.c: Remove CC0.
12117 * genextract.c: Remove CC0.
12118 * gengenrtl.c: Remove CC0.
12119 * genrecog.c: Remove CC0.
12120 * haifa-sched.c: Remove CC0.
12121 * ifcvt.c: Remove CC0.
12122 * ira-costs.c: Remove CC0.
12123 * ira.c: Remove CC0.
12124 * jump.c: Remove CC0.
12125 * loop-invariant.c: Remove CC0.
12126 * lra-constraints.c: Remove CC0.
12127 * lra-eliminations.c: Remove CC0.
12128 * optabs.c: Remove CC0.
12129 * postreload-gcse.c: Remove CC0.
12130 * postreload.c: Remove CC0.
12131 * print-rtl.c: Remove CC0.
12132 * read-rtl-function.c: Remove CC0.
12133 * reg-notes.def: Remove CC0.
12134 * reg-stack.c: Remove CC0.
12135 * reginfo.c: Remove CC0.
12136 * regrename.c: Remove CC0.
12137 * reload.c: Remove CC0.
12138 * reload1.c: Remove CC0.
12139 * reorg.c: Remove CC0.
12140 * resource.c: Remove CC0.
12141 * rtl.c: Remove CC0.
12142 * rtl.def: Remove CC0.
12143 * rtl.h: Remove CC0.
12144 * rtlanal.c: Remove CC0.
12145 * sched-deps.c: Remove CC0.
12146 * sched-rgn.c: Remove CC0.
12147 * shrink-wrap.c: Remove CC0.
12148 * simplify-rtx.c: Remove CC0.
12149 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
12150 CC_STATUS_MDEP, and CC_STATUS.
12151 * target.def: Remove CC0.
12152 * valtrack.c: Remove CC0.
12153 * var-tracking.c: Remove CC0.
12155 2021-05-04 Richard Biener <rguenther@suse.de>
12157 PR tree-optimization/100414
12158 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
12160 (tree_ssa_phiopt_worker): But unconditionally here.
12162 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
12164 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
12165 && and || with floating-point and complex arguments.
12167 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
12169 * tree-inline.c (insert_debug_decl_map): Delete.
12170 (copy_debug_stmt): Minor tweak.
12171 (setup_one_parameter): Do not use a variable if the value is either
12172 a read-only DECL or a non-addressable local variable in the caller.
12173 In this case, insert the debug-only variable in the map manually.
12174 (expand_call_inline): Do not generate a CLOBBER for these values.
12175 * tree-inline.h (debug_map): Minor tweak.
12177 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
12179 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
12180 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
12182 2021-05-04 Richard Biener <rguenther@suse.de>
12184 PR tree-optimization/100329
12185 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
12187 (insert_stmt_after): Assert we're not running into asm goto.
12189 2021-05-04 Richard Biener <rguenther@suse.de>
12191 PR tree-optimization/100398
12192 * tree-ssa-dse.c (pass_dse::execute): Preserve control
12195 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12197 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
12199 2021-05-04 Alexandre Oliva <oliva@adacore.com>
12201 * builtins.c (try_store_by_multiple_pieces): New.
12202 (expand_builtin_memset_args): Use it. If target_char_cast
12203 fails, proceed as for non-constant val. Pass len's ctz to...
12204 * expr.c (clear_storage_hints): ... this. Try store by
12205 multiple pieces after setmem.
12206 (clear_storage): Adjust.
12207 * expr.h (clear_storage_hints): Likewise.
12208 (try_store_by_multiple_pieces): Declare.
12209 * passes.def: Replace the last copy_prop with ccp.
12211 2021-05-03 Tom de Vries <tdevries@suse.de>
12214 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
12217 2021-05-03 Richard Biener <rguenther@suse.de>
12219 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
12221 2021-05-03 Richard Biener <rguenther@suse.de>
12223 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
12224 (dse_dom_walker): Remove.
12225 (dse_dom_walker::dse_optimize_stmt): Rename...
12226 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
12227 (dse_dom_walker::before_dom_children): Inline ...
12228 (pass_dse::execute): ... here. Perform a reverse program
12231 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
12234 * configure: Regenerated.
12236 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
12239 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
12240 (s390_md_asm_adjust): Handle hard registers.
12242 2021-05-03 Jakub Jelinek <jakub@redhat.com>
12244 PR tree-optimization/100382
12245 * tree-ssa-dse.c: Include tree-eh.h.
12246 (dse_dom_walker::before_dom_children): Don't remove stmts if
12247 stmt_unremovable_because_of_non_call_eh_p is true.
12249 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
12251 * varasm.c (compute_reloc_for_var): Split out from...
12252 (get_variable_section): Use it.
12253 * output.h (compute_reloc_for_var): Declare.
12254 * config/rs6000/rs6000-protos.h
12255 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
12257 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
12258 Don't append storage mapping class to symbol.
12259 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
12260 Don't convert TLS BSS to common.
12261 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
12262 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
12264 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
12266 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
12267 If align is 0 from TLS class, use the same rules as varasm.c
12268 If not common, switch to BSS section manually.
12269 If common, emit appropriate comm or lcomm directive.
12270 (rs6000_xcoff_encode_section_info): Add logic to append all
12271 storage mapping classes.
12272 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
12273 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
12274 rs6000_xcoff_asm_output_aligned_decl_common.
12275 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
12276 rs6000_xcoff_asm_output_aligned_decl_common.
12277 (ASM_OUTPUT_TLS_COMMON): Use
12278 rs6000_xcoff_asm_output_aligned_decl_common.
12280 2021-05-02 Jakub Jelinek <jakub@redhat.com>
12283 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
12284 as first argument of pseudo_node_t constructors.
12286 2021-05-02 Jakub Jelinek <jakub@redhat.com>
12289 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
12291 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
12293 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
12294 (gt_pch_nx (int_range<1> *&)): New.
12295 (gt_ggc_mx (int_range<1> *&)): New.
12296 * value-range.h (class irange): Add GTY support for
12299 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
12301 * doc/options.texi (Negative): Change either or to both and.
12303 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
12305 * config/aarch64/aarch64-simd-builtins.def: Add
12306 float_ml[as][q]_laneq builtin generator macros.
12307 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
12308 (aarch64_float_mla_laneq<mode>): Define.
12309 (aarch64_float_mls_laneq<mode>): Define.
12310 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
12311 instead of GCC vector extensions.
12312 (vmlaq_laneq_f32): Likewise.
12313 (vmls_laneq_f32): Likewise.
12314 (vmlsq_laneq_f32): Likewise.
12316 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
12318 * config/aarch64/aarch64-simd-builtins.def: Add
12319 float_ml[as]_lane builtin generator macros.
12320 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
12322 (mul_lane<mode>3): This, and re-order arguments.
12323 (aarch64_float_mla_lane<mode>): Define.
12324 (aarch64_float_mls_lane<mode>): Define.
12325 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
12326 instead of GCC vector extensions.
12327 (vmlaq_lane_f32): Likewise.
12328 (vmls_lane_f32): Likewise.
12329 (vmlsq_lane_f32): Likewise.
12331 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
12333 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
12334 builtin generator macros.
12335 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
12337 (aarch64_float_mls<mode>): Define.
12338 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
12339 instead of relying on GCC vector extensions.
12340 (vmla_f64): Likewise.
12341 (vmlaq_f32): Likewise.
12342 (vmlaq_f64): Likewise.
12343 (vmls_f32): Likewise.
12344 (vmls_f64): Likewise.
12345 (vmlsq_f32): Likewise.
12346 (vmlsq_f64): Likewise.
12347 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
12349 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
12351 * config/aarch64/aarch64-simd-builtins.def: Add
12352 float_ml[as]_n_builtin generator macros.
12353 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
12355 (mul_n<mode>3): This, and re-order arguments.
12356 (aarch64_float_mla_n<mode>): Define.
12357 (aarch64_float_mls_n<mode>): Define.
12358 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
12359 instead of inline asm.
12360 (vmlaq_n_f32): Likewise.
12361 (vmls_n_f32): Likewise.
12362 (vmlsq_n_f32): Likewise.
12364 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
12366 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
12367 builtin generator macros.
12368 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
12369 (aarch64_pmull_hiv16qi_insn): Define.
12370 (aarch64_pmull_hiv16qi): Define.
12371 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
12372 instead of inline asm.
12373 (vmull_p8): Likewise.
12375 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
12377 * config/avr/avr.md: Adjust peepholes to match and
12378 generate parallels with clobber of REG_CC.
12379 (mov<mode>_insn): Rename to mov<mode>_insn_split.
12380 (*mov<mode>_insn): Rename to mov<mode>_insn.
12382 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
12384 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
12385 for VAR_DECLs if -fdata-sections enabled.
12387 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
12389 PR bootstrap/100327
12390 * config/rs6000/rs6000.c
12391 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
12392 (rs6000_libgcc_floating_mode_supported_p): New target hook.
12394 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
12396 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
12398 (class back_threader_registry): ...to here...
12399 (class back_threader_profitability): ...and here...
12400 (thread_jumps::thread_through_all_blocks): Remove argument.
12401 (back_threader_registry::back_threader_registry): New.
12402 (back_threader_registry::~back_threader_registry): New.
12403 (back_threader_registry::thread_through_all_blocks): New.
12404 (thread_jumps::profitable_jump_thread_path): Move from here...
12405 (back_threader_profitability::profitable_path_p): ...to here.
12406 (thread_jumps::find_taken_edge): New.
12407 (thread_jumps::convert_and_register_current_path): Move...
12408 (back_threader_registry::register_path): ...to here.
12409 (thread_jumps::register_jump_thread_path_if_profitable): Move...
12410 (thread_jumps::maybe_register_path): ...to here.
12411 (thread_jumps::handle_phi): Call find_taken_edge and
12412 maybe_register_path.
12413 (thread_jumps::handle_assignment): Same.
12414 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
12415 tree argument to handle_phi and handle_assignment.
12416 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
12417 set of m_speed_p and m_max_threaded_paths.
12418 (pass_thread_jumps::execute): Remove second argument from
12419 find_jump_threads_backwards.
12420 (pass_early_thread_jumps::execute): Same.
12422 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
12424 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
12425 (class dom_opt_dom_walker): Initialize some class variables.
12426 (pass_dominator::execute): Pass evrp_range_analyzer and
12427 dom_jump_threader_simplifier to dom_opt_dom_walker.
12428 Adjust for some functions moving into classes.
12429 (simplify_stmt_for_jump_threading): Adjust and move to...
12430 (jump_threader_simplifier::simplify): ...here.
12431 (dom_opt_dom_walker::before_dom_children): Adjust for
12432 m_evrp_range_analyzer.
12433 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
12434 (test_for_singularity): Place in dom_opt_dom_walker class.
12435 (dom_opt_dom_walker::optimize_stmt): The argument
12436 evrp_range_analyzer is now a class field.
12437 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
12438 (thread_jumps::thread_through_all_blocks): New.
12439 (thread_jumps::convert_and_register_current_path): Use m_registry.
12440 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
12441 being in the threader class.
12442 (pass_early_thread_jumps::execute): Same.
12443 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
12444 (jump_threader::jump_threader): ...here.
12445 (threadedge_finalize_values): Move...
12446 (jump_threader::~jump_threader): ...here.
12447 (jump_threader::remove_jump_threads_including): New.
12448 (jump_threader::thread_through_all_blocks): New.
12449 (record_temporary_equivalences_from_phis): Move...
12450 (jump_threader::record_temporary_equivalences_from_phis): ...here.
12451 (record_temporary_equivalences_from_stmts_at_dest): Move...
12452 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
12454 (simplify_control_stmt_condition_1): Move to jump_threader class.
12455 (simplify_control_stmt_condition): Move...
12456 (jump_threader::simplify_control_stmt_condition): ...here.
12457 (thread_around_empty_blocks): Move...
12458 (jump_threader::thread_around_empty_blocks): ...here.
12459 (thread_through_normal_block): Move...
12460 (jump_threader::thread_through_normal_block): ...here.
12461 (thread_across_edge): Move...
12462 (jump_threader::thread_across_edge): ...here.
12463 (thread_outgoing_edges): Move...
12464 (jump_threader::thread_outgoing_edges): ...here.
12465 * tree-ssa-threadedge.h: Move externally facing functings...
12466 (class jump_threader): ...here...
12467 (class jump_threader_simplifier): ...and here.
12468 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
12469 (jump_thread_path_allocator::jump_thread_path_allocator): New.
12470 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
12471 (jump_thread_path_allocator::allocate_thread_edge): New.
12472 (jump_thread_path_allocator::allocate_thread_path): New.
12473 (jump_thread_path_registry::jump_thread_path_registry): New.
12474 (jump_thread_path_registry::~jump_thread_path_registry): New.
12475 (jump_thread_path_registry::allocate_thread_edge): New.
12476 (jump_thread_path_registry::allocate_thread_path): New.
12477 (dump_jump_thread_path): Make extern.
12478 (debug (const vec<jump_thread_edge *> &path)): New.
12479 (struct removed_edges): Move to tree-ssa-threadupdate.h.
12480 (struct thread_stats_d): Remove.
12481 (remove_ctrl_stmt_and_useless_edges): Make static.
12482 (lookup_redirection_data): Move...
12483 (jump_thread_path_registry::lookup_redirection_data): ...here.
12484 (ssa_redirect_edges): Make static.
12485 (thread_block_1): Move...
12486 (jump_thread_path_registry::thread_block_1): ...here.
12487 (thread_block): Move...
12488 (jump_thread_path_registry::thread_block): ...here.
12489 (thread_through_loop_header): Move...
12490 (jump_thread_path_registry::thread_through_loop_header): ...here.
12491 (mark_threaded_blocks): Move...
12492 (jump_thread_path_registry::mark_threaded_blocks): ...here.
12493 (debug_path): Move...
12494 (jump_thread_path_registry::debug_path): ...here.
12495 (debug_all_paths): Move...
12496 (jump_thread_path_registry::dump): ..here.
12497 (rewire_first_differing_edge): Move...
12498 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
12499 (adjust_paths_after_duplication): Move...
12500 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
12501 (duplicate_thread_path): Move...
12502 (jump_thread_path_registry::duplicate_thread_path): ..here.
12503 (remove_jump_threads_including): Move...
12504 (jump_thread_path_registry::remove_jump_threads_including): ...here.
12505 (thread_through_all_blocks): Move to...
12506 (jump_thread_path_registry::thread_through_all_blocks): ...here.
12507 (delete_jump_thread_path): Remove.
12508 (register_jump_thread): Move...
12509 (jump_thread_path_registry::register_jump_thread): ...here.
12510 * tree-ssa-threadupdate.h: Move externally facing functions...
12511 (class jump_thread_path_allocator): ...here...
12512 (class jump_thread_path_registry): ...and here.
12513 (thread_through_all_blocks): Remove.
12514 (struct removed_edges): New.
12515 (register_jump_thread): Remove.
12516 (remove_jump_threads_including): Remove.
12517 (delete_jump_thread_path): Remove.
12518 (remove_ctrl_stmt_and_useless_edges): Remove.
12519 (free_dom_edge_info): New prototype.
12520 * tree-vrp.c: Remove x_vr_values hack.
12521 (class vrp_jump_threader_simplifier): New.
12522 (vrp_jump_threader_simplifier::simplify): New.
12523 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
12524 Remove m_dummy_cond.
12525 Instantiate m_simplifier and m_threader.
12526 (vrp_jump_threader::thread_through_all_blocks): New.
12527 (vrp_jump_threader::simplify_stmt): Remove.
12528 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
12529 Remove x_vr_values hack.
12530 (execute_vrp): Adjust for thread_through_all_blocks being in a
12533 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
12535 * genflags.c (gen_insn): Print failed expansion string.
12537 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
12539 * expr.c (alignment_for_piecewise_move): Call mode_for_size
12540 without limit to MAX_FIXED_MODE_SIZE.
12542 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
12544 PR middle-end/90773
12545 * builtins.c (builtin_memset_gen_str): Don't use return from
12546 simplify_gen_subreg.
12548 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
12551 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
12552 (*addsi3_carry_zext_0r): Ditto.
12553 (*sub<mode>3_carry_0): Ditto.
12554 (*subsi3_carry_zext_0r): Ditto.
12555 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
12557 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
12558 Also consider ix86_carry_flag_unset_operator to calculate
12559 the cost of adc/sbb insn.
12561 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
12563 PR rtl-optimization/100225
12564 PR rtl-optimization/84878
12565 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
12566 where we have an instruction which touches (writes) any hard
12567 register from df->regular_block_artificial_uses set.
12568 Allow not-single-set instruction only right before basic block
12571 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
12573 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
12575 2021-04-30 LevyHsu <admin@levyhsu.com>
12577 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
12578 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
12579 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
12580 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
12582 2021-04-29 Alexandre Oliva <oliva@adacore.com>
12584 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
12586 2021-04-29 Alexandre Oliva <oliva@adacore.com>
12588 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
12589 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
12590 * config/i386/i386.c: Adjust.
12591 * config/i386/i386.md: Adjust.
12592 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
12593 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12594 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12595 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12596 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12597 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12598 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12599 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12600 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12601 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12602 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
12604 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
12606 * config/i386/i386-expand.c (ix86_expand_int_compare):
12607 Swap operands of GTU and LEU comparison to emit carry flag comparison.
12608 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
12609 predicate to allow more combine opportunities with memory operands.
12610 (*sub<mode>3_carry_0): Ditto.
12612 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
12614 PR rtl-optimization/100303
12615 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
12616 boolean that indicates whether the use will only be used in
12617 debug instructions. Treat it in the same way that existing
12618 cross-EBB debug references would be handled if so.
12619 (function_info::make_uses_available): Likewise.
12620 * rtl-ssa/functions.h (function_info::make_uses_available): Update
12621 prototype accordingly.
12622 (function_info::make_uses_available): Likewise.
12623 * fwprop.c (try_fwprop_subst): Update call accordingly.
12625 2021-04-29 Jeff Law <jlaw@tachyum.com>
12627 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
12630 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
12631 Richard Biener <rguenther@suse.de>
12634 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
12635 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
12636 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
12637 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
12638 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
12639 to PURE_ARGS category.
12640 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
12641 Handle PURE_ARGS category.
12642 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
12644 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
12646 * configure.ac: Check for the presence of sys/locking.h header and
12647 for whether _LK_LOCK is supported by _locking.
12648 * configure: Regenerate.
12649 * config.in: Likewise.
12650 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
12651 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
12652 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
12654 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
12656 * config/i386/predicates.md (fcmov_comparison_operator):
12657 Do not check for trivial FP comparison operator.
12658 <case GEU, case LTU>: Allow CCGZmode.
12659 <case GTU, case LEU>: Do not allow CCCmode.
12660 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
12661 (ix86_carry_flag_operator): Match only LTU and UNLT code.
12662 Do not check for trivial FP comparison operator. Allow CCGZmode.
12664 2021-04-29 Tom de Vries <tdevries@suse.de>
12666 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
12667 fd->loop.step by either step or orig_step.
12669 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
12671 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
12672 (load_got_register): Do the PIC dance here.
12673 (sparc_legitimize_tls_address): Simplify.
12674 (sparc_emit_probe_stack_range): Likewise.
12675 (sparc32_initialize_trampoline): Likewise.
12676 (sparc64_initialize_trampoline): Likewise.
12677 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
12678 (probe_stack_range<P:mode>): Likewise.
12679 (flush<P:mode>): Likewise.
12680 (tgd_hi22<P:mode>): Likewise.
12681 (tgd_lo10<P:mode>): Likewise.
12682 (tgd_add<P:mode>): Likewise.
12683 (tgd_call<P:mode>): Likewise.
12684 (tldm_hi22<P:mode>): Likewise.
12685 (tldm_lo10<P:mode>): Likewise.
12686 (tldm_add<P:mode>): Likewise.
12687 (tldm_call<P:mode>): Likewise.
12688 (tldo_hix22<P:mode>): Likewise.
12689 (tldo_lox10<P:mode>): Likewise.
12690 (tldo_add<P:mode>): Likewise.
12691 (tie_hi22<P:mode>): Likewise.
12692 (tie_lo10<P:mode>): Likewise.
12693 (tie_add<P:mode>): Likewise.
12694 (tle_hix22<P:mode>): Likewise.
12695 (tle_lox10<P:mode>): Likewise.
12696 (stack_protect_setsi): Rename to...
12697 (stack_protect_set32): ...this.
12698 (stack_protect_setdi): Rename to...
12699 (stack_protect_set64): ...this.
12700 (stack_protect_set): Adjust calls to above.
12701 (stack_protect_testsi): Rename to...
12702 (stack_protect_test32): ...this.
12703 (stack_protect_testdi): Rename to...
12704 (stack_protect_test64): ...this.
12705 (stack_protect_test): Adjust calls to above.
12707 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
12709 PR middle-end/90773
12710 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
12711 (builtin_strncpy_read_str): Likewise.
12712 (builtin_memset_read_str): Add an argument for the previous RTL
12713 information and generate the new RTL from the previous RTL info.
12714 (builtin_memset_gen_str): Likewise.
12715 * builtins.h (builtin_strncpy_read_str): Update the prototype.
12716 (builtin_memset_read_str): Likewise.
12717 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
12718 returns true, round up size and alignment to the widest integer
12719 mode for maximum size.
12720 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
12721 and pass it to m_constfn.
12722 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
12723 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
12724 initialize m_push. Initialize m_overlap_op_by_pieces with
12725 targetm.overlap_op_by_pieces_p ().
12726 (op_by_pieces_d::run): Pass the previous RTL information to
12727 pieces_addr::adjust and generate overlapping operations if
12728 m_overlap_op_by_pieces is true.
12730 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
12732 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
12734 (can_store_by_pieces): Use by_pieces_constfn on constfun.
12735 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
12736 for op_by_pieces_d change.
12737 (clear_by_pieces_1): Add a dummy argument.
12738 (clear_by_pieces): Updated for op_by_pieces_d change.
12739 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
12740 (string_cst_read_str): Add a dummy argument.
12741 * expr.h (by_pieces_constfn): Add a dummy argument.
12742 (by_pieces_prev): New.
12743 * target.def (overlap_op_by_pieces_p): New target hook.
12744 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
12745 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
12746 * doc/tm.texi: Regenerated.
12748 2021-04-29 Richard Biener <rguenther@suse.de>
12750 PR tree-optimization/100253
12751 * tree-vect-stmts.c (vectorizable_load): Do not assume
12752 element alignment when DR_MISALIGNMENT is -1.
12753 (vectorizable_store): Likewise.
12755 2021-04-29 Jakub Jelinek <jakub@redhat.com>
12758 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
12759 absu_hwi instead of abs_hwi.
12761 2021-04-29 Richard Biener <rguenther@suse.de>
12763 PR middle-end/38474
12764 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
12765 forwarding when indirect forwarding through ESCAPED
12768 2021-04-29 Tom de Vries <tdevries@suse.de>
12771 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
12772 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
12773 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
12774 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
12776 2021-04-29 Richard Biener <rguenther@suse.de>
12778 PR tree-optimization/99912
12779 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
12780 (dse_dom_walker::todo): Likewise.
12781 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
12783 (dse_dom_walker::before_dom_children): Remove trivially
12784 dead SSA defs and schedule CFG cleanup if we removed all
12786 (pass_dse::execute): Get TODO as computed by the DOM walker
12787 and return it. Wipe dominator info earlier.
12789 2021-04-29 Richard Biener <rguenther@suse.de>
12792 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
12793 Track blocks to cleanup EH in new m_need_eh_cleanup.
12794 (ipcp_modif_dom_walker::cleanup_eh): New.
12795 (ipcp_transform_function): Release dominator info before
12798 2021-04-29 Martin Sebor <msebor@redhat.com>
12800 PR middle-end/100250
12801 * attribs.c (attr_access::array_as_string): Avoid dereferencing
12802 a pointer when it's null.
12804 2021-04-29 Martin Sebor <msebor@redhat.com>
12806 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
12807 * ipa-free-lang-data.cc: New file.
12808 * tree.c: Move pass free_lang_data to file above.
12809 (build_array_type_1): Declare extern.
12810 * tree.h (build_array_type_1): Declare.
12812 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12814 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
12815 make consistent with updated RTL pattern.
12816 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
12817 Implement using ss_truncate and us_truncate rather than
12819 * config/aarch64/iterators.md: Remove redundant unspecs and
12820 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
12822 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12824 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
12825 attributes consistent with those defined in arm_neon.h.
12827 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12829 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
12830 attributes consistent with those defined in arm_neon.h.
12832 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12834 * config/aarch64/aarch64-simd-builtins.def: Add
12835 float_trunc_rodd builtin generator macros.
12836 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
12838 (aarch64_float_trunc_rodd_lo_v2sf): Define.
12839 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
12840 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
12841 (aarch64_float_trunc_rodd_hi_v4sf): Define.
12842 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
12843 instead of inline asm.
12844 (vcvtx_high_f32_f64): Likewise.
12845 (vcvtxd_f32_f64): Likewise.
12846 * config/aarch64/iterators.md: Add FCVTXN unspec.
12848 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12850 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
12852 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
12854 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
12855 instead of inline asm.
12856 (vqtbx1_u8): Likewise.
12857 (vqtbx1_p8): Likewise.
12858 (vqtbx1q_s8): Likewise.
12859 (vqtbx1q_u8): Likewise.
12860 (vqtbx1q_p8): Likewise.
12861 (vtbx2_s8): Likewise.
12862 (vtbx2_u8): Likewise.
12863 (vtbx2_p8): Likewise.
12865 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12867 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
12869 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
12870 instead of inline asm.
12871 (vqtbl1_s8): Likewise.
12872 (vqtbl1_u8): Likewise.
12873 (vqtbl1q_p8): Likewise.
12874 (vqtbl1q_s8): Likewise.
12875 (vqtbl1q_u8): Likewise.
12876 (vtbl1_s8): Likewise.
12877 (vtbl1_u8): Likewise.
12878 (vtbl1_p8): Likewise.
12879 (vtbl2_s8): Likewise.
12880 (vtbl2_u8): Likewise.
12881 (vtbl2_p8): Likewise.
12883 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12885 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
12886 ssri_n buitin generator macro.
12887 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
12888 instead of inline asm.
12889 (vsri_n_p16): Likewise.
12890 (vsri_n_p64): Likewise.
12891 (vsriq_n_p8): Likewise.
12892 (vsriq_n_p16): Likewise.
12893 (vsriq_n_p64): Likewise.
12895 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12897 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
12898 iterator for polynomial ssli_n builtin generator macro.
12899 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
12900 instead of inline asm.
12901 (vsli_n_p16): Likewise.
12902 (vsliq_n_p8): Likewise.
12903 (vsliq_n_p16): Likewise.
12904 * config/aarch64/iterators.md: Define VALLP mode iterator.
12906 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12908 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
12909 iterator to generate [su]adalp RTL builtins.
12910 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
12911 [su]adalp RTL pattern.
12912 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
12913 instead of inline asm.
12914 (vpadal_u32): Likewise.
12916 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12918 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
12919 builtin generator macros.
12920 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
12922 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
12923 instead of inline asm.
12924 (vpaddl_s16): Likewise.
12925 (vpaddl_s32): Likewise.
12926 (vpaddl_u8): Likewise.
12927 (vpaddl_u16): Likewise.
12928 (vpaddl_u32): Likewise.
12929 (vpaddlq_s8): Likewise.
12930 (vpaddlq_s16): Likewise.
12931 (vpaddlq_s32): Likewise.
12932 (vpaddlq_u8): Likewise.
12933 (vpaddlq_u16): Likewise.
12934 (vpaddlq_u32): Liwewise.
12935 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
12936 appropriate attributes.
12938 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12940 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
12941 for aarch64_addp<mode> builtin macro generator.
12942 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
12943 aarch64_addp<mode> RTL pattern.
12944 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
12945 instead of inline asm.
12946 (vpaddq_s16): Likewise.
12947 (vpaddq_s32): Likewise.
12948 (vpaddq_s64): Likewise.
12949 (vpaddq_u8): Likewise.
12950 (vpaddq_u16): Likewise.
12951 (vpaddq_u32): Likewise.
12952 (vpaddq_u64): Likewise.
12954 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12956 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
12957 builtin generator macros.
12958 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
12960 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
12961 instead of inline asm.
12962 (vqdmulh_n_s32): Likewise.
12963 (vqdmulhq_n_s16): Likewise.
12964 (vqdmulhq_n_s32): Likewise.
12965 (vqrdmulh_n_s16): Likewise.
12966 (vqrdmulh_n_s32): Likewise.
12967 (vqrdmulhq_n_s16): Likewise.
12968 (vqrdmulhq_n_s32): Likewise.
12970 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
12972 * doc/install.texi (--enable-offload-defaulted): Document.
12974 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
12976 * config/avr/avr-dimode.md: Turn existing patterns into
12977 define_insn_and_split style patterns where the splitter
12978 adds a clobber of the condition code register. Drop "cc"
12979 attribute. Add new patterns to match output of
12981 * config/avr/avr-fixed.md: Likewise.
12982 * config/avr/avr.c (cc_reg_rtx): New.
12983 (avr_parallel_insn_from_insns): Adjust insn count
12984 for removal of set of cc0.
12985 (avr_is_casesi_sequence): Likewise.
12986 (avr_casei_sequence_check_operands): Likewise.
12987 (avr_optimize_casesi): Likewise. Also insert
12988 new insns after jump_insn.
12989 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
12990 for removal of set of cc0.
12991 (avr_init_expanders): Initialize cc_reg_rtx.
12992 (avr_regno_reg_class): Handle REG_CC.
12993 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
12994 (avr_notice_update_cc): Remove function.
12995 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
12996 (compare_condition): Adjust for PARALLEL with
12998 (out_shift_with_cnt): Likewise.
12999 (ashlhi3_out): Likewise.
13000 (ashrhi3_out): Likewise.
13001 (lshrhi3_out): Likewise.
13002 (avr_class_max_nregs): Return single reg for REG_CC.
13003 (avr_compare_pattern): Check for REG_CC instead
13005 (avr_reorg_remove_redundant_compare): Likewise.
13006 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
13007 (avr_hard_regno_nregs): Return single reg for REG_CC.
13008 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
13009 (avr_md_asm_adjust): Clobber REG_CC.
13010 (TARGET_HARD_REGNO_NREGS): Define.
13011 (TARGET_CLASS_MAX_NREGS): Define.
13012 (TARGET_MD_ASM_ADJUST): Define.
13013 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
13015 (enum reg_class): Add CC_REG class.
13016 (NOTICE_UPDATE_CC): Remove.
13017 (CC_OVERFLOW_UNUSABLE): Remove.
13018 (CC_NO_CARRY): Remove.
13019 * config/avr/avr.md: Turn existing patterns into
13020 define_insn_and_split style patterns where the splitter
13021 adds a clobber of the condition code register. Drop "cc"
13022 attribute. Add new patterns to match output of
13024 (sez): Remove unused pattern.
13026 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
13029 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
13032 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
13035 * config/aarch64/constraints.md (Utq): Require the address to
13036 be valid for both the element mode and for V2DImode.
13038 2021-04-28 Jakub Jelinek <jakub@redhat.com>
13039 Tobias Burnus <tobias@codesourcery.com>
13041 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
13042 * gcc.c (process_command): New variable.
13043 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
13044 set it if -foffload is defaulted.
13045 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
13046 (compile_offload_image): If OFFLOAD_DEFAULTED and
13047 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
13048 if corresponding mkoffload can't be found.
13049 (compile_images_for_offload_targets): Likewise. Free and clear
13050 offload_names if no valid offload is found.
13051 * config.in: Regenerate.
13052 * configure: Regenerate.
13054 2021-04-28 Richard Biener <rguenther@suse.de>
13056 PR tree-optimization/100292
13057 * tree-vect-generic.c (expand_vector_condition): Do not fold
13060 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
13062 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
13063 * config/rs6000/aix64.opt (m64): New.
13066 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
13068 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
13069 (index_term_p): Handle ASHIFT too.
13071 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
13073 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
13074 (sync_lock_test_and_set<mode>): Adjust accordingly.
13075 (sync_lock_release<mode>): Likewise.
13077 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
13079 * config/vax/vax-protos.h (adjacent_operands_p): Remove
13081 * config/vax/vax.c (adjacent_operands_p): Remove.
13083 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
13085 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
13086 through to the non-conditional execution case if getting the
13087 condition for conditional execution has failed.
13089 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
13091 PR middle-end/100284
13092 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
13093 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
13094 than asserting on it.
13096 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
13098 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
13099 with TARGET_AIX_OS.
13101 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
13104 * calls.c (precompute_register_parameters): Additionally test
13105 targetm.precompute_tls_p to pre-compute argument.
13106 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
13107 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
13108 * target.def (precompute_tls_p): New.
13109 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
13110 * doc/tm.texi: Regenerated.
13112 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13115 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
13116 back to HOST_WIDE_INT.
13118 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
13121 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
13122 memory alignment for the outer mode.
13124 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
13126 PR middle-end/90773
13127 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
13128 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
13130 2021-04-27 Alex Coplan <alex.coplan@arm.com>
13133 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
13134 with negative immediates: ensure we expand cbranchsi4_scratch
13135 correctly and ensure we satisfy its constraints.
13136 * config/arm/sync.md
13137 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
13138 attempt to tie two output operands together with constraints;
13139 collapse two alternatives.
13140 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
13141 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
13143 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13146 * config/aarch64/predicates.md (aarch64_sub_immediate,
13147 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
13148 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
13149 * config/aarch64/aarch64.c (aarch64_print_operand,
13150 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
13152 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13154 PR tree-optimization/100239
13155 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
13156 permutations with all indices from the first zero element as vec_shl.
13158 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13160 PR rtl-optimization/100254
13161 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
13162 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
13164 2021-04-27 Richard Biener <rguenther@suse.de>
13166 PR tree-optimization/99912
13167 * passes.def: Add comment about new TODO_remove_unused_locals.
13168 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
13171 2021-04-27 Richard Biener <rguenther@suse.de>
13173 PR tree-optimization/99912
13174 * passes.def (pass_all_optimizations): Add pass_dse before
13175 the first pass_dce, move the first pass_dse before the
13176 pass_dce following pass_pre.
13178 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13180 PR tree-optimization/95527
13181 * generic-match-head.c: Include tm.h.
13182 * gimple-match-head.c: Include tm.h.
13183 * match.pd (CLZ == INTEGER_CST): Don't use
13184 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
13185 if clz == CFN_CLZ. Add missing val declaration.
13186 (CTZ cmp CST): New simplifications.
13188 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13190 PR tree-optimization/96696
13191 * expr.c (expand_expr_divmod): New function.
13192 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
13193 divisions. Formatting fixes.
13194 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
13197 2021-04-27 Martin Jambor <mjambor@suse.cz>
13200 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
13201 If removing a call statement LHS SSA name, release it.
13203 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
13206 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
13207 is valid before including it in the mask.
13209 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
13212 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
13215 2021-04-27 Richard Biener <rguenther@suse.de>
13217 PR tree-optimization/100051
13218 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
13219 disambiguator based on access size vs. decl size.
13221 2021-04-27 Richard Biener <rguenther@suse.de>
13223 PR tree-optimization/100278
13224 * tree-ssa-pre.c (compute_avail): Give up when we cannot
13225 adjust TBAA beacuse of mismatching bases.
13227 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13230 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
13231 For any_rotate define_insn_split and following splitters, use
13232 SWI iterator instead of SWI48.
13234 2021-04-27 Richard Biener <rguenther@suse.de>
13236 PR tree-optimization/99776
13237 * match.pd (bit_field_ref (ctor)): Relax element extract
13238 type compatibility checks.
13240 2021-04-27 Cui,Lili <lili.cui@intel.com>
13242 * common/config/i386/i386-common.c (processor_names):
13243 Sync processor_names with processor_type.
13244 * config/i386/i386-options.c (processor_cost_table):
13245 Sync processor_cost_table with processor_type.
13247 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13249 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
13250 (irange::set): Call irange_set_1bit_anti_range for handling all
13251 1-bit ranges. Fall through on ~[MIN,MAX].
13253 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13255 * value-range.cc (irange::legacy_num_pairs): Remove.
13256 (irange::invert): Change gcc_assert to gcc_checking_assert.
13257 * value-range.h (irange::num_pairs): Adjust for a cached
13258 num_pairs(). Also, rename all gcc_assert's to
13259 gcc_checking_assert's.
13261 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13263 * value-range.cc (irange::operator=): Set m_kind.
13264 (irange::copy_to_legacy): Handle varying and undefined sources
13265 as a legacy copy since they can be easily copied.
13266 (irange::irange_set): Set m_kind.
13267 (irange::irange_set_anti_range): Same.
13268 (irange::set): Rename normalize_min_max to normalize_kind.
13269 (irange::verify_range): Adjust for multi-ranges having the
13271 (irange::irange_union): Set m_kind.
13272 (irange::irange_intersect): Same.
13273 (irange::invert): Same.
13274 * value-range.h (irange::kind): Always return m_kind.
13275 (irange::varying_p): Rename to...
13276 (irange::varying_comptaible_p): ...this.
13277 (irange::undefined_p): Only look at m_kind.
13278 (irange::irange): Always set VR_UNDEFINED if applicable.
13279 (irange::set_undefined): Always set VR_UNDEFINED.
13280 (irange::set_varying): Always set m_kind to VR_VARYING.
13281 (irange::normalize_min_max): Rename to...
13282 (irange::normalize_kind): ...this.
13284 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13286 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
13287 Adjust for constant_p including varying_p.
13288 * tree-vrp.c (vrp_prop::finalize): Same.
13289 (determine_value_range): Same.
13290 * vr-values.c (vr_values::range_of_expr): Same.
13291 * value-range.cc (irange::symbolic_p): Do not check varying_p.
13292 (irange::constant_p): Same.
13294 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13296 * value-range.cc (irange::legacy_lower_bound): Replace
13297 !undefined_p check with num_ranges > 0.
13298 (irange::legacy_upper_bound): Same.
13299 * value-range.h (irange::type): Same.
13300 (irange::lower_bound): Same.
13301 (irange::upper_bound): Same.
13303 2021-04-26 Richard Biener <rguenther@suse.de>
13305 PR tree-optimization/99956
13306 * gimple-loop-interchange.cc (compute_access_stride):
13307 Try instantiating the access in a shallower loop nest
13308 if instantiating failed.
13309 (compute_access_strides): Pass adjustable loop_nest
13310 to compute_access_stride.
13312 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
13314 * doc/sourcebuild.texi (arm_cmse_hw): Document.
13316 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13318 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
13320 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
13321 Nathan Sidwell <nathan@codesourcery.com>
13322 Tom de Vries <vries@codesourcery.com>
13323 Julian Brown <julian@codesourcery.com>
13324 Kwok Cheung Yeung <kcy@codesourcery.com>
13326 * omp-offload.c (oacc_validate_dims): Implement
13327 '-Wopenacc-parallelism'.
13328 * doc/invoke.texi (-Wopenacc-parallelism): Document.
13330 2021-04-26 Richard Biener <rguenther@suse.de>
13332 * tree-cfg.h (gimplify_build1): Remove.
13333 (gimplify_build2): Likewise.
13334 (gimplify_build3): Likewise.
13335 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
13336 (gimplify_build2): Likewise.
13337 (gimplify_build3): Likewise.
13338 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
13340 (gimplify_build2): Likewise.
13341 (gimplify_build3): Likewise.
13342 (tree_vec_extract): Use resimplify with following SSA edges.
13343 (expand_vector_parallel): Avoid passing NULL size/bitpos
13344 to tree_vec_extract.
13345 * expr.c (store_constructor): Deal with zero-element CTORs.
13346 * match.pd (bit_field_ref <vector CTOR>): Make sure to
13347 produce vector constants when possible.
13349 2021-04-26 Richard Biener <rguenther@suse.de>
13351 * tree-complex.c: Include gimple-fold.h.
13352 (expand_complex_addition): Use gimple_build.
13353 (expand_complex_multiplication_components): Likewise.
13354 (expand_complex_multiplication): Likewise.
13355 (expand_complex_div_straight): Likewise.
13356 (expand_complex_div_wide): Likewise.
13357 (expand_complex_division): Likewise.
13358 (expand_complex_conjugate): Likewise.
13359 (expand_complex_comparison): Likewise.
13361 2021-04-26 Richard Biener <rguenther@suse.de>
13363 * tree-ssa-phiopt.c (two_value_replacement): Remove use
13364 of legacy gimplify_buildN API.
13366 2021-04-26 Richard Biener <rguenther@suse.de>
13368 PR tree-optimization/99473
13369 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
13372 2021-04-26 Richard Biener <rguenther@suse.de>
13374 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
13375 Use replace_call_with_value.
13377 2021-04-26 Richard Biener <rguenther@suse.de>
13379 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
13380 (update_gimple_call): Likewise.
13381 (update_call_from_tree): Likewise.
13382 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
13383 (valid_gimple_call_p): Likewise.
13384 (move_ssa_defining_stmt_for_defs): Likewise.
13385 (finish_update_gimple_call): Likewise.
13386 (update_gimple_call): Likewise.
13387 (update_call_from_tree): Likewise.
13388 (propagate_tree_value_into_stmt): Use replace_call_with_value.
13389 * gimple-fold.h (update_gimple_call): Declare.
13390 * gimple-fold.c (valid_gimple_rhs_p): Move here from
13391 tree-ssa-propagate.c.
13392 (update_gimple_call): Likewise.
13393 (valid_gimple_call_p): Likewise.
13394 (finish_update_gimple_call): Likewise, and simplify.
13395 (gimplify_and_update_call_from_tree): Implement
13396 update_call_from_tree functionality, avoid excessive
13397 push/pop_gimplify_context.
13398 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
13399 (gimple_fold_call): Likewise.
13400 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
13401 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
13402 (pass_fold_builtins::execute): Likewise.
13403 (optimize_stack_restore): Use replace_call_with_value.
13404 * tree-cfg.c (fold_loop_internal_call): Likewise.
13405 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
13406 only gimplify_and_update_call_from_tree.
13407 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
13408 (handle_builtin_strchr): Likewise.
13409 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
13411 2021-04-26 Jakub Jelinek <jakub@redhat.com>
13414 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
13415 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
13418 2021-04-25 liuhongt <hongtao.liu@intel.com>
13421 * config/i386/i386-builtin.def (BDESC): Change the icode of
13422 the following builtins to CODE_FOR_nothing.
13423 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
13424 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
13425 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
13426 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
13427 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
13428 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
13429 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
13430 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
13431 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
13432 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
13433 (sse2_eq<mode>3): Ditto.
13434 (sse4_1_eqv2di3): Ditto.
13435 (sse2_gt<mode>3): Rename to ..
13436 (*sse2_gt<mode>3): .. this.
13438 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
13441 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
13444 * config/darwin.c (darwin_binds_local_p): Assume that any
13445 public symbol might be interposed for PIC code. Update function
13446 header comment to reflect current Darwin capability.
13448 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
13451 * config/darwin.c (darwin_binds_local_p): Assume that any
13452 public symbol might be interposed for PIC code. Update function
13453 header comment to reflect current Darwin capability.
13455 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
13457 * doc/sourcebuild.texi: Document no-opts and any-opts target
13460 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
13462 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
13464 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
13466 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
13468 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
13471 * config/i386/i386-options.c (ix86_option_override_internal):
13472 Error out when -m96bit-long-double is used with 64bit targets.
13473 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
13475 2021-04-23 Martin Liska <mliska@suse.cz>
13477 * lto-wrapper.c: Remove FIXME about usage of
13478 hardware_concurrency. The function is not on par with
13481 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
13484 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
13485 Copy operand 3 to operand 4. Use sse_reg_operand
13486 as operand 3 predicate.
13487 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
13488 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
13489 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
13490 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
13491 Copy operand 1 to operand 0.
13492 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
13493 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
13494 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
13496 2021-04-23 Alex Coplan <alex.coplan@arm.com>
13498 PR rtl-optimization/100230
13499 * early-remat.c (early_remat::sort_candidates): Use delete[]
13500 instead of delete for array allocated with new[].
13502 2021-04-23 Richard Biener <rguenther@suse.de>
13504 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
13505 (capture_info::capture_info): Likewise.
13506 (capture_info::walk_match): Likewise.
13507 (expr::gen_transform): Likewise.
13508 (dt_simplify::gen_1): Likewise.
13509 * gimple-match-head.c (maybe_resimplify_conditional_op):
13510 Remove VEC_COND_EXPR special-casing.
13511 (gimple_simplify): Likewise.
13512 * gimple.c (gimple_could_trap_p_1): Adjust.
13513 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
13514 to participate in PRE.
13516 2021-04-23 Richard Biener <rguenther@suse.de>
13518 * cfganal.c (connect_infinite_loops_to_exit): First call
13519 add_noreturn_fake_exit_edges.
13520 * ipa-sra.c (process_scan_results): Do not call the now redundant
13521 add_noreturn_fake_exit_edges.
13522 * predict.c (tree_estimate_probability): Likewise.
13523 (rebuild_frequencies): Likewise.
13524 * store-motion.c (one_store_motion_pass): Likewise.
13526 2021-04-23 Richard Biener <rguenther@suse.de>
13528 PR tree-optimization/100222
13529 * predict.c (pass_profile::execute): Remove redundant call to
13530 mark_irreducible_loops.
13531 (report_predictor_hitrates): Likewise.
13533 2021-04-23 Richard Biener <rguenther@suse.de>
13535 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
13536 valid_gimple_rhs_p by instead gimplifying to one.
13538 2021-04-23 Richard Biener <rguenther@suse.de>
13540 PR tree-optimization/99971
13541 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
13542 Always use TBAA for loads.
13544 2021-04-23 liuhongt <hongtao.liu@intel.com>
13547 * config/i386/i386-options.c (ix86_option_override_internal):
13548 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
13549 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
13550 by target attribute.
13552 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
13554 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
13556 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
13558 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
13560 * config.gcc (powerpc-ibm-aix6.*): Remove.
13561 * config/rs6000/aix61.h: Delete.
13563 2021-04-22 Martin Liska <mliska@suse.cz>
13565 PR testsuite/100159
13566 PR testsuite/100192
13567 * builtins.c (expand_builtin): Fix typos and missing comments.
13568 * dwarf2out.c (gen_subprogram_die): Likewise.
13569 (gen_struct_or_union_type_die): Likewise.
13571 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
13574 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
13575 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
13577 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
13579 * config/i386/darwin.h (TARGET_64BIT): Remove definition
13580 based on TARGET_ISA_64BIT.
13581 (TARGET_64BIT_P): Remove definition based on
13582 TARGET_ISA_64BIT_P().
13584 2021-04-21 Martin Liska <mliska@suse.cz>
13587 2021-04-21 Martin Liska <mliska@suse.cz>
13589 * lto-wrapper.c (cpuset_popcount): Remove.
13590 (init_num_threads): Remove and use hardware_concurrency.
13592 2021-04-21 Martin Liska <mliska@suse.cz>
13595 * main.c (main): Call toplev::finalize in CHECKING_P mode.
13596 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
13597 when incremental LTO linking happens.
13599 2021-04-21 Martin Liska <mliska@suse.cz>
13601 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
13602 makeserver cannot be detected, then use -flto=N fallback.
13604 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
13606 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
13607 default to yes for aarch64-linux-gnu.
13608 * configure: Regenerate.
13610 2021-04-21 Martin Liska <mliska@suse.cz>
13612 * lto-wrapper.c (cpuset_popcount): Remove.
13613 (init_num_threads): Remove and use hardware_concurrency.
13615 2021-04-21 Martin Liska <mliska@suse.cz>
13617 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
13618 which remains to be '(... || 0)' and clang complains about it.
13619 * dwarf2out.c (AT_vms_delta): Declare conditionally.
13620 (add_AT_vms_delta): Likewise.
13621 * tree.c (fld_simplified_type): Use rather more common pattern
13622 for disabling of something (#if 0).
13623 (get_tree_code_name): Likewise.
13624 (verify_type_variant): Likewise.
13626 2021-04-21 Martin Liska <mliska@suse.cz>
13628 * config/i386/i386-expand.c (decide_alignment): Use newly named
13629 macro TARGET_CPU_P.
13630 * config/i386/i386.c (ix86_decompose_address): Likewise.
13631 (ix86_address_cost): Likewise.
13632 (ix86_lea_outperforms): Likewise.
13633 (ix86_avoid_lea_for_addr): Likewise.
13634 (ix86_add_stmt_cost): Likewise.
13635 * config/i386/i386.h (TARGET_*): Remove.
13636 (TARGET_CPU_P): New macro.
13637 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
13638 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
13639 (swap_top_of_ready_list): Likewise.
13640 (ix86_atom_sched_reorder): Likewise.
13641 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
13642 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
13644 2021-04-21 Martin Liska <mliska@suse.cz>
13646 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
13648 (SET_TARGET_NO_SAHF): Likewise.
13649 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
13650 (SET_TARGET_PREFETCH_SSE): Likewise.
13651 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
13652 (SET_TARGET_NO_TUNE): Likewise.
13653 (TARGET_EXPLICIT_NO_80387_P): Likewise.
13654 (SET_TARGET_NO_80387): Likewise.
13656 * config/i386/i386.h (TARGET_*): Remove.
13657 * opth-gen.awk: Generate new used macros.
13659 2021-04-21 Martin Liska <mliska@suse.cz>
13661 * config/i386/i386.h (PTA_*): Remove.
13662 (enum pta_flag): New.
13663 (DEF_PTA): Generate PTA_* values from i386-isa.def.
13664 * config/i386/i386-isa.def: New file.
13666 2021-04-21 Alex Coplan <alex.coplan@arm.com>
13669 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
13670 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
13671 jump table targets.
13673 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
13675 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
13676 x86_64-*-* targets.
13677 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
13679 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
13680 (ix86_handle_option): Handle -mmwait.
13681 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
13682 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
13683 __builtin_ia32_monitor and __builtin_ia32_mwait.
13684 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
13685 (ix86_valid_target_attribute_inner_p): Likewise.
13686 (ix86_option_override_internal): Enable mwait/monitor
13687 instructions for -msse3.
13688 * config/i386/i386.h (TARGET_MWAIT): New.
13689 (TARGET_MWAIT_P): Likewise.
13690 * config/i386/i386.opt: Add -mmwait.
13691 * config/i386/mwaitintrin.h: New file.
13692 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
13693 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
13695 (@sse3_monitor_<mode>): Likewise.
13696 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
13697 * doc/extend.texi: Document mwait target attribute.
13698 * doc/invoke.texi: Document -mmwait.
13700 2021-04-21 Martin Liska <mliska@suse.cz>
13702 * config/i386/i386-options.c (DEF_ENUM): Remove it.
13703 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
13704 * config/i386/stringop.def (DEF_ENUM): Likewise.
13706 2021-04-21 Martin Liska <mliska@suse.cz>
13708 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
13709 of print_generic_expr.
13711 2021-04-21 Jakub Jelinek <jakub@redhat.com>
13713 PR rtl-optimization/100148
13714 * cprop.c (constprop_register): Use next_nondebug_insn instead of
13717 2021-04-21 Martin Liska <mliska@suse.cz>
13720 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
13721 free_dominance_info calls.
13723 2021-04-21 Richard Biener <rguenther@suse.de>
13725 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
13726 parameter (and assume it to be false).
13727 (fold_gimple_assign): Adjust, remove all callers of
13728 maybe_fold_reference calling it with is_lhs true.
13729 (gimple_fold_call): Likewise.
13730 (fold_stmt_1): Likewise.
13732 2021-04-21 Richard Biener <rguenther@suse.de>
13734 * fold-const.c (pedantic_non_lvalue_loc): Remove.
13735 (fold_binary_loc): Adjust.
13736 (fold_ternary_loc): Likewise.
13738 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
13740 PR middle-end/100130
13741 * varasm.c (get_block_for_decl): Make sure that any use of the
13742 retain attribute matches the section's retain flag.
13743 (switch_to_section): Check for retain mismatches even when
13744 changing sections, but do not warn if the given decl is the
13745 section's named.decl.
13746 (output_object_block): Pass the first decl in the block (if any)
13747 to switch_to_section.
13749 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
13751 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13752 __CRC32__ for -mcrc32.
13753 * config/i386/i386-options.c (ix86_option_override_internal):
13754 Enable crc32 instruction for -msse4.2.
13755 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
13757 (sse4_2_crc32di): Likewise.
13758 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
13761 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
13764 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
13767 2021-04-20 Martin Liska <mliska@suse.cz>
13769 * doc/invoke.texi: Fix typo.
13770 * params.opt: Likewise.
13772 2021-04-20 Martin Liska <mliska@suse.cz>
13774 * doc/invoke.texi: Document new param.
13776 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
13778 PR tree-optimization/100081
13779 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
13780 rather than gori_compute_cache.
13781 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
13782 (range_def_chain::m_logical_depth): New member.
13783 (range_def_chain::range_def_chain): Initialize m_logical_depth.
13784 (range_def_chain::get_def_chain): Don't build defchains through more
13785 than LOGICAL_LIMIT logical expressions.
13786 * params.opt (param_ranger_logical_depth): New.
13788 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
13791 * config/arm/arm.c (arm_configure_build_target): Do not strip
13792 extended FPU/SIMD feature bits from the target ISA when -mfpu
13793 is specified (partial revert of r11-8168).
13795 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
13797 * params.opt (-param=openacc-kernels=): Add.
13798 * omp-oacc-kernels-decompose.cc
13799 (pass_omp_oacc_kernels_decompose::gate): Use it.
13800 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
13801 (--param): ... here, 'openacc-kernels'.
13803 2021-04-19 Martin Liska <mliska@suse.cz>
13806 * gengtype.c (finish_root_table): Align function arguments
13807 in between declaration and definition.
13809 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
13811 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
13812 frames larger than the SEH maximum frame size.
13814 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
13816 PR rtl-optimization/99927
13817 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
13818 is dead, just drop it.
13820 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
13823 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
13824 * doc/tm.texi: Regenerate.
13825 * doc/tm.texi.in (D language and ABI): Add @hook for
13826 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
13828 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
13830 * config/darwin-d.c (darwin_d_handle_target_object_format): New
13832 (darwin_d_register_target_info): New function.
13833 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13834 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
13836 (dragonfly_d_register_target_info): New function.
13837 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13838 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
13840 (freebsd_d_register_target_info): New function.
13841 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13842 * config/glibc-d.c (glibc_d_handle_target_object_format): New
13844 (glibc_d_register_target_info): New function.
13845 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13846 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
13848 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
13849 as handler for objectFormat key.
13850 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
13852 (winnt_d_register_target_info): New function.
13853 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13854 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
13856 (netbsd_d_register_target_info): New function.
13857 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13858 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
13860 (openbsd_d_register_target_info): New function.
13861 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13862 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
13863 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
13864 handler for objectFormat key.
13865 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
13867 (rs6000_d_register_target_info): Add
13868 rs6000_d_handle_target_object_format as handler for objectFormat key.
13869 * config/sol2-d.c (solaris_d_handle_target_object_format): New
13871 (solaris_d_register_target_info): New function.
13872 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13874 2021-04-16 Jakub Jelinek <jakub@redhat.com>
13877 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
13878 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
13880 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
13881 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
13882 the old and new alignment after applying MIN/MAX to it is different.
13884 2021-04-16 Tamar Christina <tamar.christina@arm.com>
13887 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
13888 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
13890 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
13892 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
13894 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
13895 this section and its subsections.
13897 2021-04-16 Jakub Jelinek <jakub@redhat.com>
13900 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
13901 define_insn patterns.
13903 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
13905 PR rtl-optimization/98689
13906 * reg-notes.def (UNTYPED_CALL): New note.
13907 * combine.c (distribute_notes): Handle it.
13908 * emit-rtl.c (try_split): Likewise.
13909 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
13910 that calls with the note implicitly set all return value registers.
13911 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
13914 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
13916 PR rtl-optimization/99596
13917 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
13918 register accesses for const calls. Assume that pure functions
13919 can only read from global registers. Ignore cases in which
13920 the stack pointer has been marked global.
13922 2021-04-16 Jakub Jelinek <jakub@redhat.com>
13925 * tree-vect-loop.c (vect_transform_loop): Don't remove just
13926 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
13927 them by their last argument.
13929 2021-04-15 Martin Liska <mliska@suse.cz>
13931 * doc/invoke.texi: Other params don't use it, remove it.
13933 2021-04-15 Richard Biener <rguenther@suse.de>
13935 * gimple-builder.h: Add deprecation note.
13937 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
13940 * attribs.h (restrict_type_identity_attributes_to): Declare.
13941 * attribs.c (restrict_type_identity_attributes_to): New function.
13943 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
13946 * attribs.h (affects_type_identity_attributes): Declare.
13947 * attribs.c (remove_attributes_matching): New function.
13948 (affects_type_identity_attributes): Likewise.
13950 2021-04-15 Jakub Jelinek <jakub@redhat.com>
13953 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
13954 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
13955 ZERO_EXTEND, SIGN_EXTEND or AND.
13957 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
13959 PR rtl-optimization/99929
13960 * rtl.h (same_vector_encodings_p): New function.
13961 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
13962 * cselib.c (rtx_equal_for_cselib_1): Likewise.
13963 * jump.c (rtx_renumbered_equal_p): Likewise.
13964 * lra-constraints.c (operands_match_p): Likewise.
13965 * reload.c (operands_match_p): Likewise.
13966 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
13968 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
13970 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
13971 more information about variable-length CONST_VECTORs.
13973 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
13975 PR rtl-optimization/100066
13976 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
13977 ordered modes when choosing splitting mode for hard reg.
13979 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
13982 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
13984 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
13986 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
13988 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
13989 for mask operand types.
13990 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
13991 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
13993 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
13995 * config/s390/s390.c (s390_const_operand_ok): Check the new
13996 operand types and generate a list of valid values.
13998 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
14000 * doc/tm.texi: Regenerate.
14001 * doc/tm.texi.in (D language and ABI): Add @hook for
14002 TARGET_D_REGISTER_OS_TARGET_INFO.
14004 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
14006 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
14008 (aarch64_d_register_target_info): New function.
14009 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
14011 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
14013 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
14014 (arm_d_register_target_info): New function.
14015 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
14016 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14017 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
14018 (ix86_d_register_target_info): New function.
14019 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
14020 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14021 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
14022 (mips_d_register_target_info): New function.
14023 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
14024 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14025 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
14026 (pa_d_register_target_info): New function.
14027 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
14028 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14029 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
14031 (riscv_d_register_target_info): New function.
14032 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
14033 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14034 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
14036 (rs6000_d_register_target_info): New function.
14037 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
14039 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14040 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
14041 (s390_d_register_target_info): New function.
14042 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
14043 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14044 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
14046 (sparc_d_register_target_info): New function.
14047 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
14048 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14049 * doc/tm.texi: Regenerate.
14050 * doc/tm.texi.in (D language and ABI): Add @hook for
14051 TARGET_D_REGISTER_CPU_TARGET_INFO.
14053 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
14055 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
14056 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
14057 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
14058 * doc/tm.texi: Regenerate.
14059 * doc/tm.texi.in (D language and ABI): Add @hook for
14060 TARGET_D_HAS_STDCALL_CONVENTION.
14062 2021-04-14 Richard Biener <rguenther@suse.de>
14064 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
14065 VEC_COND_EXPRs have a gimple_val condition.
14066 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
14067 can no longer have a GENERIC condition.
14069 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
14072 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
14073 from the isa_delta when -mfpu has been used.
14074 (arm_options_perform_arch_sanity_checks): It's the architecture that
14075 lacks an FPU not the processor.
14077 2021-04-13 Richard Biener <rguenther@suse.de>
14079 PR tree-optimization/100053
14080 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
14081 not use optimistic dominance queries for backedges to validate
14083 (dominated_by_p_w_unex): Add parameter to ignore executable
14084 state on backedges.
14085 (rpo_elim::eliminate_avail): Adjust.
14087 2021-04-13 Jakub Jelinek <jakub@redhat.com>
14090 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
14091 *aarch64_bfxilsi_extrdi): New define_insn patterns.
14093 2021-04-13 Jakub Jelinek <jakub@redhat.com>
14096 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
14097 outermode, return NULL if the result doesn't encode back to the
14098 original byte sequence.
14099 (simplify_gen_subreg): Don't create SUBREGs from constants to
14100 MODE_COMPOSITE_P outermode.
14102 2021-04-12 Jakub Jelinek <jakub@redhat.com>
14104 PR rtl-optimization/99905
14105 * combine.c (expand_compound_operation): If pos + len > modewidth,
14106 perform the right shift by pos in inner_mode and then convert to mode,
14107 instead of trying to simplify a shift of rtx with inner_mode by pos
14108 as if it was a shift in mode.
14110 2021-04-12 Jakub Jelinek <jakub@redhat.com>
14113 * combine.c (simplify_and_const_int_1): Don't optimize varop
14114 away if it has side-effects.
14116 2021-04-12 Martin Liska <mliska@suse.cz>
14118 * doc/extend.texi: Escape @smallexample content.
14120 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
14122 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
14123 alternative in order to load a DFP zero.
14125 2021-04-12 Martin Liska <mliska@suse.cz>
14127 * doc/extend.texi: Be more precise in documentation
14128 of symver attribute.
14130 2021-04-12 Martin Liska <mliska@suse.cz>
14133 * gimplify.c (gimplify_expr): Right now, we unpoison all
14134 variables before a goto <dest>. We should not do it if we are
14137 2021-04-12 Cui,Lili <lili.cui@intel.com>
14139 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
14141 * common/config/i386/i386-common.c (processor_names): Add
14143 (processor_alias_table): Add rocketlake.
14144 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
14145 INTEL_COREI7_ROCKETLAKE.
14146 * config.gcc: Add -march=rocketlake.
14147 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14149 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
14150 (processor_cost_table): Add rocketlake cost.
14151 * config/i386/i386.h (ix86_size_cost) : Define
14153 (processor_type) : Add PROCESSOR_ROCKETLAKE.
14154 (PTA_ROCKETLAKE): Ditto.
14155 * doc/extend.texi: Add rocketlake.
14156 * doc/invoke.texi: Add rocketlake.
14158 2021-04-12 Cui,Lili <lili.cui@intel.com>
14160 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
14161 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
14162 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
14163 * doc/invoke.texi: Change alderlake ISA list.
14165 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
14167 PR middle-end/98088
14168 * omp-expand.c (expand_oacc_collapse_init): Update condition in
14171 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
14174 * config/i386/serializeintrin.h (_serialize): Defined as macro.
14176 2021-04-10 Jakub Jelinek <jakub@redhat.com>
14179 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
14180 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
14182 2021-04-10 Jakub Jelinek <jakub@redhat.com>
14184 PR middle-end/99989
14185 * gimple-ssa-warn-alloca.c
14186 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
14187 0 with integer precision unconditionally.
14189 2021-04-10 Jakub Jelinek <jakub@redhat.com>
14191 PR rtl-optimization/98601
14192 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
14193 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
14194 unaligned_mems handle VOIDmode like BLKmode.
14196 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
14199 * tree.c (free_lang_data_in_decl): Do not release body of
14200 declare_variant_alt.
14202 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
14204 * config/aarch64/aarch64.c (aarch64_option_restore): If the
14205 architecture was specified explicitly and the tuning wasn't,
14206 tune for the architecture rather than the configured default CPU.
14208 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
14210 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
14211 as the temporary register.
14213 2021-04-09 Martin Liska <mliska@suse.cz>
14215 * doc/extend.texi: Move non-target attributes on the top level.
14217 2021-04-09 Martin Liska <mliska@suse.cz>
14219 * doc/invoke.texi: Document minimum and maximum value of the
14220 argument for both supported compression algorithms.
14222 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
14224 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
14225 TLS BSS before TLS data.
14226 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
14228 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
14230 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
14232 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
14234 * match.pd: Extend vec_cond folds to handle shifts.
14236 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
14238 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
14241 2021-04-08 Alex Coplan <alex.coplan@arm.com>
14244 * config/arm/iterators.md (MVE_vecs): New.
14245 (V_elem): Also handle V2DF.
14246 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
14247 (*mve_vdup<mode>): ... this. Remove second alternative since
14248 vec_duplicate of const_int is not canonical RTL, and we don't
14249 want to match symbol_refs.
14250 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
14252 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
14254 * fold-const.c (fold_single_bit_test): Fix typo.
14255 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
14258 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
14260 PR tree-optimization/97513
14261 * tree-vect-slp.c (vect_add_slp_permutation): New function,
14263 (vectorizable_slp_permutation): ...here. Detect cases in which
14264 all VEC_PERM_EXPRs are guaranteed to have the same stepped
14265 permute vector and only generate one permute vector for that case.
14266 Extend that case to handle variable-length vectors.
14268 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
14270 PR tree-optimization/99873
14271 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
14272 (vect_build_slp_instance): Don't split store groups that could
14273 use IFN_STORE_LANES.
14275 2021-04-07 Jakub Jelinek <jakub@redhat.com>
14278 * varasm.c (output_constant_pool_contents): Don't strip name encoding
14279 from XSTR (desc->sym, 0) or from label before passing those to
14282 2021-04-07 Richard Biener <rguenther@suse.de>
14284 PR tree-optimization/99954
14285 * tree-loop-distribution.c: Include tree-affine.h.
14286 (generate_memcpy_builtin): Try using tree-affine to prove
14288 (loop_distribution::classify_builtin_ldst): Always classify
14291 2021-04-07 Richard Biener <rguenther@suse.de>
14293 PR tree-optimization/99947
14294 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
14295 steps vector to avoid pushing elements from the reallocated
14298 2021-04-07 Richard Biener <rguenther@suse.de>
14300 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
14301 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
14303 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
14305 (debug_vn_reference_ops): New.
14307 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
14309 PR tree-optimization/98736
14310 * tree-loop-distribution.c
14311 * (loop_distribution::bb_top_order_init):
14312 Compute RPO with programing order preserved by calling function
14313 rev_post_order_and_mark_dfs_back_seme.
14315 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
14318 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
14319 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
14321 (process_bb_lives): Don't update biggest mode of hard reg for
14322 implicit in multi-register group. Use the new functions for
14323 updating dead_set and unused_set by register notes.
14325 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
14327 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
14330 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
14332 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
14333 (skylake_memset): Likewise.
14334 (skylake_cost): Change CLEAR_RATIO to 17.
14335 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
14336 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
14337 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
14339 2021-04-06 Richard Biener <rguenther@suse.de>
14341 PR tree-optimization/99880
14342 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
14343 set vectorized defs of relevant PHIs.
14345 2021-04-06 Richard Biener <rguenther@suse.de>
14347 PR tree-optimization/99924
14348 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
14349 nodes w/o scalar stmts as visited.
14351 2021-04-06 Alex Coplan <alex.coplan@arm.com>
14354 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
14355 PCS for [su]fix_optab.
14357 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
14359 * config/darwin.c (machopic_legitimize_pic_address): Check
14360 that the current pic register is one of the hard reg set
14361 before setting liveness.
14363 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
14365 * config/darwin.c (machopic_legitimize_pic_address): Fix
14366 whitespace, remove unused code.
14368 2021-04-03 Jakub Jelinek <jakub@redhat.com>
14370 PR tree-optimization/99882
14371 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
14374 2021-04-03 Jakub Jelinek <jakub@redhat.com>
14376 PR rtl-optimization/99863
14377 * dse.c (replace_read): Drop regs_live argument. Instead of
14378 regs_live, use store_insn->fixed_regs_live if non-NULL,
14379 otherwise punt if insns sequence clobbers or sets any hard
14382 2021-04-03 Jakub Jelinek <jakub@redhat.com>
14385 * targhooks.h (default_print_patchable_function_entry_1): Declare.
14386 * targhooks.c (default_print_patchable_function_entry_1): New function,
14387 copied from default_print_patchable_function_entry with an added flags
14389 (default_print_patchable_function_entry): Rewritten into a small
14390 wrapper around default_print_patchable_function_entry_1.
14391 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
14393 (rs6000_print_patchable_function_entry): New function.
14395 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
14397 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
14399 2021-04-01 Jason Merrill <jason@redhat.com>
14402 * common.opt: Document v15 and v16.
14404 2021-04-01 Richard Biener <rguenther@suse.de>
14406 PR tree-optimization/99863
14407 * gimplify.c (gimplify_init_constructor): Recompute vector
14410 2021-04-01 Jakub Jelinek <jakub@redhat.com>
14412 * doc/extend.texi (symver attribute): Fix up syntax errors
14415 2021-04-01 Jakub Jelinek <jakub@redhat.com>
14417 PR tree-optimization/96573
14418 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
14419 also pointer types.
14421 2021-04-01 Richard Biener <rguenther@suse.de>
14423 PR tree-optimization/99856
14424 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
14425 precision to vector element precision.
14427 2021-04-01 Martin Jambor <mjambor@suse.cz>
14429 PR tree-optimization/97009
14430 * tree-sra.c (access_or_its_child_written): New function.
14431 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
14434 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
14437 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
14439 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
14442 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
14443 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
14444 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
14445 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
14446 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
14447 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
14449 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
14450 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
14451 (define_attr "prefixed"): Update initializer.
14453 2021-03-31 Jakub Jelinek <jakub@redhat.com>
14456 * dwarf2out.c (debug_ranges_dwo_section): New variable.
14457 (DW_RANGES_IDX_SKELETON): Define.
14458 (struct dw_ranges): Add begin_entry and end_entry members.
14459 (DEBUG_DWO_RNGLISTS_SECTION): Define.
14460 (add_ranges_num): Adjust r initializer for addition of *_entry
14462 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
14463 set idx to DW_RANGES_IDX_SKELETON.
14464 (use_distinct_base_address_for_range): New function.
14465 (index_rnglists): Don't set r->idx if it is equal to
14466 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
14467 r->end_entry for -gsplit-dwarf if those will be needed by
14469 (output_rnglists): Add DWO argument. If true, switch to
14470 debug_ranges_dwo_section rather than debug_ranges_section.
14471 Adjust l1/l2 label indexes. Only output the offset table when
14472 dwo is true and don't include in there the skeleton range
14473 entry if present. For -gsplit-dwarf, skip ranges that belong
14474 to the other rnglists section. Change return type from void
14475 to bool and return true if there are any range entries for
14476 the other section. For dwarf_split_debug_info use
14477 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
14478 entries instead of DW_RLE_start_end, DW_RLE_start_length and
14479 DW_RLE_base_address. Use use_distinct_base_address_for_range.
14480 (init_sections_and_labels): Initialize debug_ranges_dwo_section
14481 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
14482 and range_base_label indexes.
14483 (dwarf2out_finish): Call index_rnglists earlier before finalizing
14484 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
14485 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
14486 with different dwo arguments.
14487 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
14489 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
14491 PR tree-optimization/98268
14492 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
14493 recompute_tree_invariant_for_addr_expr after successfully
14494 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
14496 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
14498 PR tree-optimization/99726
14499 * tree-data-ref.c (create_intersect_range_checks_index): Bail
14500 out if there is more than one access function SCEV for the loop
14503 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
14505 PR rtl-optimization/97141
14506 PR rtl-optimization/98726
14507 * emit-rtl.c (valid_for_const_vector_p): Return true for
14509 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
14510 poly_wide_int instead of a wide_int.
14511 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
14513 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
14514 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
14515 false for CONST_VECTORs that cannot be forced to memory.
14516 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
14517 is too complex to force to memory, build it up from individual
14520 2021-03-31 Jan Hubicka <jh@suse.cz>
14523 * cgraph.c (cgraph_node::release_body): Fix overactive check.
14525 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
14528 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
14531 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
14533 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
14534 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
14536 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
14537 "rep movsb/stosb" only for known sizes.
14538 * config/i386/i386-options.c (processor_cost_table): Use Ice
14539 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
14540 Rapids and Alder Lake.
14541 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
14542 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
14543 (icelake_memset): Likewise.
14544 (icelake_cost): Likewise.
14545 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
14548 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
14551 * config/aarch64/aarch64.c
14552 (aarch64_vectorize_preferred_vector_alignment): Query the size
14553 of the provided SVE vector; do not assume that all SVE vectors
14554 have the same size.
14556 2021-03-31 Jan Hubicka <jh@suse.cz>
14559 * cgraph.c (cgraph_node::release_body): Remove all callers and
14561 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
14562 * cgraphunit.c (cgraph_node::expand): And here.
14564 2021-03-31 Martin Liska <mliska@suse.cz>
14566 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
14567 and one negated condition.
14569 2021-03-31 Jakub Jelinek <jakub@redhat.com>
14570 Richard Sandiford <richard.sandiford@arm.com>
14573 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
14574 constraints on operands[2] and similarly 0 and rk constraints
14575 on operands[1] corresponding to that.
14577 2021-03-31 Jakub Jelinek <jakub@redhat.com>
14580 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
14581 linker doesn't support DWARF sections new in DWARF5.
14582 * config/i386/i386-options.c (ix86_option_override_internal): Default
14583 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
14585 * config.in: Regenerated.
14586 * configure: Regenerated.
14588 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14591 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
14592 available issue_info before using it.
14594 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14597 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
14600 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
14603 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
14604 (altivec_lvsl_reg_<mode>): ... this.
14605 (altivec_lvsr_reg): Change to ...
14606 (altivec_lvsr_reg_<mode>): ... this.
14607 * config/rs6000/predicates.md (vec_set_index_operand): New.
14608 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14609 Enable 32bit variable vec_insert for all TARGET_VSX.
14610 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
14611 Enable 32bit variable vec_insert for p9 and above.
14612 (rs6000_expand_vector_set_var_p8): Rename to ...
14613 (rs6000_expand_vector_set_var_p7): ... this.
14614 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
14616 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
14617 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
14618 gen_altivec_lvsr_reg_di.
14620 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
14623 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
14624 (__rdtscp): Likewise.
14626 2021-03-30 Tamar Christina <tamar.christina@arm.com>
14628 PR tree-optimization/99825
14629 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
14630 Reject non-mult 2 lanes.
14632 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
14635 * config/arm/arm.c (arm_file_start): Fix emission of
14636 Tag_ABI_VFP_args attribute.
14638 2021-03-30 Richard Biener <rguenther@suse.de>
14640 PR tree-optimization/99824
14641 * stor-layout.c (set_min_and_max_values_for_integral_type):
14642 Assert the precision is within the bounds of
14643 WIDE_INT_MAX_PRECISION.
14644 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
14645 the outermost component ref only to lower the access size
14646 and initialize that from the access type.
14648 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
14651 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
14652 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
14654 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
14656 * config/aarch64/aarch64.md
14657 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
14658 attribute to disambiguate between SIMD and FP variants of the
14661 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
14663 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
14664 (analyze_ssa_name_flags): Fix typo in comment.
14666 2021-03-29 Alex Coplan <alex.coplan@arm.com>
14669 * config/aarch64/aarch64-sve-builtins.cc
14670 (function_builder::add_function): Add placeholder_p argument, use
14671 placeholder decls if this is set.
14672 (function_builder::add_unique_function): Instead of conditionally adding
14673 direct overloads, unconditionally add either a direct overload or a
14675 (function_builder::add_overloaded_function): Set placeholder_p if we're
14676 using C++ overloads. Use the obstack for string storage instead
14677 of relying on the tree nodes.
14678 (function_builder::add_overloaded_functions): Don't return early for
14679 m_direct_overloads: we need to add placeholders.
14680 * config/aarch64/aarch64-sve-builtins.h
14681 (function_builder::add_function): Add placeholder_p argument.
14683 2021-03-29 Richard Biener <rguenther@suse.de>
14685 PR tree-optimization/99807
14686 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
14687 assert below VEC_PERM handling.
14689 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14692 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
14693 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
14694 matching const_int 0.
14695 (move_lo_quad_internal_be_<mode>): Likewise.
14696 (move_lo_quad_<mode>): Update for the above.
14697 * config/aarch64/iterators.md (VQ_2E): Delete.
14699 2021-03-29 Jakub Jelinek <jakub@redhat.com>
14701 PR tree-optimization/99777
14702 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
14703 types other than scalar integral types.
14705 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
14707 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
14708 XCOFF TLS reloc decorations.
14710 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
14712 * doc/analyzer.texi (Analyzer Internals): Update link to
14713 "A Memory Model for Static Analysis of C Programs".
14715 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
14717 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
14718 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
14720 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
14721 (rs6000_special_round_type_align): Recursively check innermost first
14724 2021-03-26 Jakub Jelinek <jakub@redhat.com>
14727 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
14728 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
14729 assignment with drap_reg active, queue reg save for hfp with offset 0
14730 and flush queued reg saves. When handling a push with rule18,
14731 defer queueing reg save for hfp and just assert the offset is 0.
14732 (scan_trace): Assert that fde->rule18 is false.
14734 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
14737 * ira-costs.c (record_reg_classes): Put case with
14738 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
14739 * ira.c (ira_setup_alts): Ditto.
14740 * lra-constraints.c (process_alt_operands): Ditto.
14741 * recog.c (asm_operand_ok): Ditto.
14742 * reload.c (find_reloads): Ditto.
14744 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14746 * config/aarch64/aarch64-protos.h
14747 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
14748 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
14749 * config/aarch64/aarch64.c (generic_addrcost_table): Update
14750 accordingly, using the same costs as for post_modify.
14751 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
14752 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
14753 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
14754 (a64fx_addrcost_table): Likewise.
14755 (neoversev1_addrcost_table): New.
14756 (neoversev1_tunings): Use neoversev1_addrcost_table.
14757 (aarch64_address_cost): Use the new post_modify costs for CImode
14760 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14762 * config/aarch64/aarch64.opt
14763 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
14764 * doc/invoke.texi: Document it.
14765 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
14766 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
14767 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
14768 (aarch64_vec_issue_info): New structures.
14769 (cpu_vector_cost): Write comments above the variables rather
14771 (cpu_vector_cost::issue_info): New member variable.
14772 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
14773 and tree-ssa-loop-niter.h.
14774 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
14775 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
14776 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
14777 (thunderx3t110_vector_cost): Initialize issue_info to null.
14778 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
14779 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
14780 (neoversev1_vector_cost): Use them.
14781 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
14782 (aarch64_vector_costs::saw_sve_only_op): New member variable.
14783 (aarch64_vector_costs::num_vector_iterations): Likewise.
14784 (aarch64_vector_costs::scalar_ops): Likewise.
14785 (aarch64_vector_costs::advsimd_ops): Likewise.
14786 (aarch64_vector_costs::sve_ops): Likewise.
14787 (aarch64_vector_costs::seen_loads): Likewise.
14788 (aarch64_simd_vec_costs_for_flags): New function.
14789 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
14790 Count the number of predicate operations required by SVE WHILE
14792 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
14793 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
14794 (aarch64_count_ops): Likewise.
14795 (aarch64_add_stmt_cost): Record whether see an SVE operation
14796 that cannot currently be implementing using Advanced SIMD.
14797 Record issue information about the scalar, Advanced SIMD
14798 and (where relevant) SVE versions of a loop.
14799 (aarch64_vec_op_count::dump): New function.
14800 (aarch64_sve_op_count::dump): Likewise.
14801 (aarch64_estimate_min_cycles_per_iter): Likewise.
14802 (aarch64_adjust_body_cost): If issue information is available,
14803 try to compare the issue rates of the various loop implementations
14804 and increase or decrease the vector body cost accordingly.
14806 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14808 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
14809 Assume a zero cost for induction phis.
14811 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14813 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
14815 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
14816 vector comparisons.
14818 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14820 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
14822 (aarch64_add_stmt_cost): Call it.
14824 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14826 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
14827 New tuning parameter.
14828 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
14829 (aarch64_estimated_sve_vq): New function.
14830 (aarch64_vector_costs::analyzed_vinfo): New member variable.
14831 (aarch64_vector_costs::is_loop): Likewise.
14832 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
14833 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
14834 (aarch64_record_potential_advsimd_unrolling): New function.
14835 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
14836 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
14837 aarch64_analyze_bb_vinfo on the first use of a costs structure.
14838 Detect whether we're vectorizing a loop for SVE that might be
14839 completely unrolled if it used Advanced SIMD instead.
14840 (aarch64_adjust_body_cost_for_latency): New function.
14841 (aarch64_finish_cost): Call it.
14843 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14845 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
14846 (aarch64_init_cost): New function.
14847 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
14848 the default unsigned[3].
14849 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
14850 (TARGET_VECTORIZE_INIT_COST): Override.
14851 (TARGET_VECTORIZE_FINISH_COST): Likewise.
14852 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
14854 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14856 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
14857 (neoversev1_sve_vector_cost): New cost structures.
14858 (neoversev1_vector_cost): Likewise.
14859 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
14861 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14863 * config/aarch64/aarch64-protos.h
14864 (sve_vec_cost::scatter_store_elt_cost): New member variable.
14865 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
14866 accordingly, taking the cost from the cost of a scalar_store.
14867 (a64fx_sve_vector_cost): Likewise.
14868 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
14870 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14872 * config/aarch64/aarch64-protos.h
14873 (simd_vec_cost::store_elt_extra_cost): New member variable.
14874 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
14875 accordingly, using the vec_to_scalar cost for the new field.
14876 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
14877 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
14878 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
14879 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
14880 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
14881 (thunderx3t110_advsimd_vector_cost): Likewise.
14882 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
14884 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14886 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
14887 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
14888 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
14889 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
14890 accordingly, using zero for the new costs.
14891 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
14892 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
14893 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
14894 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
14895 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
14896 (thunderx3t110_advsimd_vector_cost): Likewise.
14897 (aarch64_ld234_st234_vectors): New function.
14898 (aarch64_adjust_stmt_cost): Likewise.
14899 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
14900 the new vector costs.
14902 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14904 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
14905 derived class of simd_vec_cost. Add information about CLAST[AB]
14906 and FADDA instructions.
14907 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
14908 accordingly, using the vec_to_scalar costs for the new fields.
14909 (a64fx_sve_vector_cost): Likewise.
14910 (aarch64_reduc_type): New function.
14911 (aarch64_sve_in_loop_reduction_latency): Likewise.
14912 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
14913 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
14914 that occur in the loop body.
14915 (aarch64_add_stmt_cost): Update call accordingly.
14917 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14919 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
14921 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
14922 above the fields rather than to the right.
14923 (simd_vec_cost::reduc_i8_cost): New member variable.
14924 (simd_vec_cost::reduc_i16_cost): Likewise.
14925 (simd_vec_cost::reduc_i32_cost): Likewise.
14926 (simd_vec_cost::reduc_i64_cost): Likewise.
14927 (simd_vec_cost::reduc_f16_cost): Likewise.
14928 (simd_vec_cost::reduc_f32_cost): Likewise.
14929 (simd_vec_cost::reduc_f64_cost): Likewise.
14930 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
14931 accordingly, using the vec_to_scalar_cost for the new fields.
14932 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
14933 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
14934 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
14935 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
14936 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
14937 (thunderx3t110_advsimd_vector_cost): Likewise.
14938 (aarch64_use_new_vector_costs_p): New function.
14939 (aarch64_simd_vec_costs): New function, split out from...
14940 (aarch64_builtin_vectorization_cost): ...here.
14941 (aarch64_is_reduction): New function.
14942 (aarch64_detect_vector_stmt_subtype): Likewise.
14943 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
14944 using the new vector costs.
14946 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
14949 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
14950 TLS declarations as public.
14952 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
14954 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
14955 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
14956 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
14957 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
14958 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
14959 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
14960 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
14961 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
14962 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
14964 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
14967 * config.gcc (*-*-cygwin*): Add winnt-d.o
14968 (*-*-mingw*): Likewise.
14969 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
14970 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
14971 * config/i386/t-cygming: Add winnt-d.o.
14972 * config/i386/winnt-d.c: New file.
14974 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
14976 * config/freebsd-d.c: Include memmodel.h.
14978 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
14981 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
14982 * config/t-openbsd: Add openbsd-d.o.
14983 * config/openbsd-d.c: New file.
14985 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
14987 PR tree-optimization/96974
14988 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
14989 with graceful exit.
14991 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
14994 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
14998 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
14999 always_inline in system headers.
15001 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
15003 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
15005 2021-03-25 Jakub Jelinek <jakub@redhat.com>
15008 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
15009 * fold-const.c (operand_compare::operand_equal_p): Don't compare
15010 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
15012 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
15016 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
15017 always_inline in system headers.
15019 2021-03-25 Richard Biener <rguenther@suse.de>
15021 PR tree-optimization/99746
15022 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
15023 the scalar stmt as patterned. Instead set up required things
15026 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
15028 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
15031 2021-03-24 Martin Liska <mliska@suse.cz>
15034 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
15036 * config/i386/i386-options.c (ix86_option_override_internal):
15037 Add run-time assert.
15039 2021-03-24 Martin Jambor <mjambor@suse.cz>
15042 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
15043 parameters with unknown type.
15044 (ipacp_value_safe_for_type): New function.
15045 (propagate_vals_across_arith_jfunc): Verify that the constant type
15046 can be used for a type of the formal parameter.
15047 (propagate_vals_across_ancestor): Likewise.
15048 (propagate_scalar_across_jump_function): Likewise. Pass the type
15049 also to propagate_vals_across_ancestor.
15051 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
15054 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
15056 (movmisalign<mode>_mve_load): Likewise.
15058 2021-03-24 Jakub Jelinek <jakub@redhat.com>
15061 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
15062 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
15064 2021-03-24 Alexandre Oliva <oliva@adacore.com>
15066 * doc/sourcebuild.texi (sysconf): New effective target.
15068 2021-03-24 Alexandre Oliva <oliva@adacore.com>
15070 * config/i386/predicates.md (reg_or_const_vec_operand): New.
15071 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
15072 the now *-prefixed insn_and_split, turn the splitter const vec
15073 into an input for the insn, making it an ignored immediate for
15074 non-split cases, and loaded into the scratch register
15077 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
15080 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
15081 Use define_relaxed_memory_constraint for them.
15083 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
15086 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
15087 colon to the diagnostic message.
15089 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
15091 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
15093 (try_fwprop_subst_note): Use set_info instead of insn_info.
15094 (try_fwprop_subst_pattern): Likewise.
15095 (try_fwprop_subst_notes): Likewise.
15096 (try_fwprop_subst): Likewise.
15097 (forward_propagate_subreg): Likewise.
15098 (forward_propagate_and_simplify): Likewise.
15099 (forward_propagate_into): Likewise.
15100 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
15102 (set_info::single_nondebug_insn_use): Likewise.
15103 (set_info::single_phi_use): Likewise.
15104 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
15106 (set_info::single_nondebug_insn_use): Likewise.
15107 (set_info::single_phi_use): Likewise.
15109 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
15111 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
15113 2021-03-23 Jakub Jelinek <jakub@redhat.com>
15116 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
15117 expand_mult to perform an unsigned rather than a signed
15120 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
15123 * config/i386/cpuid.h (__cpuid): Add __volatile__.
15124 (__cpuid_count): Likewise.
15126 2021-03-23 Richard Biener <rguenther@suse.de>
15128 PR tree-optimization/99721
15129 * tree-vect-slp.c (vect_slp_analyze_node_operations):
15130 Make sure we can schedule the node.
15132 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15134 * config/riscv/riscv.c (riscv_subword): Take endianness into
15135 account when calculating the byte offset.
15137 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15139 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
15140 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
15141 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
15142 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
15143 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
15144 new predicate "subreg_lowpart_operator"
15146 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15148 * config/riscv/riscv.c (riscv_swap_instruction): New function
15149 to byteswap an SImode rtx containing an instruction.
15150 (riscv_trampoline_init): Byteswap the generated instructions
15153 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15155 * common/config/riscv/riscv-common.c
15156 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
15157 * config.gcc (riscv32be-*, riscv64be-*): Set
15158 TARGET_BIG_ENDIAN_DEFAULT to 1.
15159 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
15160 depending on default endianness.
15161 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
15162 * config/riscv/linux.h (LINK_SPEC): Likewise.
15163 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
15164 default endianness.
15165 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
15167 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15169 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
15170 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
15171 * config/riscv/linux.h (LINK_SPEC): Likewise.
15172 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
15174 (BYTES_BIG_ENDIAN): Handle big endian.
15175 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
15176 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
15178 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
15180 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
15182 * regcprop.c (find_oldest_value_reg): Ask target whether
15183 different mode is fine for replacement register.
15185 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
15187 PR tree-optimization/99296
15188 * value-range.cc (irange::irange_set_1bit_anti_range): New.
15189 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
15190 * value-range.h (irange::irange_set_1bit_anti_range): New.
15192 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
15195 * config/aarch64/constraints.md (UtQ): Use
15196 define_relaxed_memory_constraint for it.
15197 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
15198 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
15199 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
15200 (have_relaxed_memory_constraints): New static var.
15201 (relaxed_memory_start, relaxed_memory_end): Ditto.
15202 (add_constraint): Add arg is_relaxed_memory. Check name for
15203 relaxed memory. Set up is_relaxed_memory in constraint_data and
15204 have_relaxed_memory_constraints. Adjust calls.
15205 (choose_enum_order): Process relaxed memory.
15206 (write_tm_preds_h): Ditto.
15207 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
15208 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
15209 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
15210 * ira-lives.c (single_reg_class): Use
15211 insn_extra_relaxed_memory_constraint.
15212 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
15213 * lra-constraints.c (valid_address_p): Use
15214 insn_extra_relaxed_memory_constraint instead of other memory
15216 (process_alt_operands): Process CT_RELAXED_MEMORY.
15217 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
15218 * recog.c (asm_operand_ok, preprocess_constraints): Process
15220 * reload.c (find_reloads): Ditto.
15221 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
15222 * stmt.c (parse_input_constraint): Use
15223 insn_extra_relaxed_memory_constraint.
15225 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
15228 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
15231 2021-03-22 Alex Coplan <alex.coplan@arm.com>
15234 * config/arm/arm-protos.h (neon_make_constant): Add generate
15235 argument to guard emitting insns, default to true.
15236 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
15237 CONST_VECTORs which neon_make_constant can't handle.
15238 (neon_vdup_constant): Add generate argument, avoid emitting
15239 insns if it's not set.
15240 (neon_make_constant): Plumb new generate argument through.
15241 * config/arm/constraints.md (Ui): New. Use it...
15242 * config/arm/mve.md (*mve_mov<mode>): ... here.
15243 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
15244 synthesize constants.
15246 2021-03-22 Richard Biener <rguenther@suse.de>
15248 * debug.h: Add deprecation warning.
15250 2021-03-22 Richard Biener <rguenther@suse.de>
15252 PR tree-optimization/99694
15253 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
15256 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
15259 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
15260 after type checking.
15262 2021-03-22 Jakub Jelinek <jakub@redhat.com>
15266 * dwarf2out.c (get_full_len): Use get_precision rather than
15268 (add_const_value_attribute): Make sure add_AT_wide argument has
15269 precision prec rather than some very wide one.
15271 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
15273 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
15274 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
15275 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
15276 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
15277 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
15278 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
15279 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
15280 *fix_trunc<mode>si2_internal): Fix empty split condition.
15281 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
15282 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
15283 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
15284 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
15286 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
15289 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
15290 Convert idx to DImode.
15291 (rs6000_expand_vector_set_var_p8): Likewise.
15293 2021-03-21 Jakub Jelinek <jakub@redhat.com>
15296 * dwarf2out.c (insert_float): Change return type from void to
15297 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
15298 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
15301 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
15304 * config/i386/i386.c (construct_container): Check cfun != NULL
15305 before accessing silent_p.
15307 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
15309 * asan.c: Fix typos in comments.
15311 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
15313 PR rtl-optimization/99680
15314 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
15315 (process_address_1): Check empty constraint before using
15318 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
15320 * config/rs6000/rs6000.c (power10_cost): New.
15321 (rs6000_option_override_internal): Set Power10 costs.
15322 (rs6000_issue_rate): Set Power10 issue rate.
15323 * config/rs6000/power10.md: Rewrite for Power10.
15325 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
15328 * lra-constraints.c (process_address_1): Don't use unknown
15329 constraint for address constraint.
15331 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
15334 * config.gcc (powerpc-*-darwin8): Delete the reference to
15335 the now removed darwin8.h.
15337 2021-03-19 Olivier Hainque <hainque@adacore.com>
15340 * config/vxworksae.h (VX_CPU_PREFIX): Define.
15342 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
15344 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
15346 2021-03-19 Tamar Christina <tamar.christina@arm.com>
15348 PR tree-optimization/99656
15349 * tree-vect-slp-patterns.c (linear_loads_p,
15350 complex_add_pattern::matches, is_eq_or_top,
15351 vect_validate_multiplication, complex_mul_pattern::matches,
15352 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
15353 * tree-vectorizer.h: (complex_load_perm_t): Removed.
15354 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
15355 complex_load_perm_t.
15357 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
15360 * config/i386/i386-options.c (ix86_init_machine_status): Set
15362 * config/i386/i386.c (init_cumulative_args): Set silent_p to
15364 (construct_container): Return early for return and argument
15365 errors if silent_p is true.
15366 * config/i386/i386.h (machine_function): Add silent_p.
15368 2021-03-19 Jakub Jelinek <jakub@redhat.com>
15371 * config/arm/constraints.md (Ds): New constraint.
15372 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
15373 constraint instead of w,Dm.
15375 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
15377 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
15380 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
15382 PR middle-end/99641
15383 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
15384 array type, do the computation of the current position in sizetype.
15386 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
15389 * lra-constraints.c (process_address_1): Use lookup_constraint
15390 only for a single constraint.
15392 2021-03-18 Martin Sebor <msebor@redhat.com>
15394 PR middle-end/99502
15395 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
15396 (inbounds_memaccess_p): ...to this. Check the ending offset of
15397 the accessed member.
15399 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
15401 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
15402 %> quote markers to error messages.
15403 (gcn_goacc_validate_dims): Likewise.
15404 (gcn_conditional_register_usage): Remove exclaimation mark from error
15406 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
15408 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
15410 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
15413 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
15414 Kito Cheng <kito.cheng@sifive.com>
15416 * config/riscv/riscv.c (riscv_block_move_straight): Change type
15417 to unsigned HOST_WIDE_INT for parameter and local variable with
15418 HOST_WIDE_INT type.
15419 (riscv_adjust_block_mem): Ditto.
15420 (riscv_block_move_loop): Ditto.
15421 (riscv_expand_block_move): Ditto.
15423 2021-03-18 Nick Clifton <nickc@redhat.com>
15425 * config/v850/v850.c (construct_restore_jr): Increase static
15427 (construct_save_jarl): Likewise.
15428 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
15430 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15432 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
15433 (aarch64_override_options_internal): Use it.
15434 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
15437 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
15439 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
15440 error message format issues.
15441 (nios2_option_override): Likewise.
15442 (nios2_expand_fpu_builtin): Likewise.
15443 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
15444 truncation warning.
15445 (nios2_expand_custom_builtin): More error message format fixes.
15446 (nios2_expand_rdwrctl_builtin): Likewise.
15447 (nios2_expand_rdprs_builtin): Likewise.
15448 (nios2_expand_eni_builtin): Likewise.
15449 (nios2_expand_builtin): Likewise.
15450 (nios2_register_custom_code): Likewise.
15451 (nios2_valid_target_attribute_rec): Likewise.
15452 (nios2_add_insn_asm): Fix uninitialized variable warning.
15454 2021-03-17 Jan Hubicka <jh@suse.cz>
15456 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
15457 of gather to match reality.
15458 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
15460 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15462 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
15463 to compare against CC_REG rather than NE.
15465 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
15468 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
15469 inline assembly statements.
15470 (ix86_print_operand): Update 'P' handling for -fno-plt.
15472 2021-03-17 Tamar Christina <tamar.christina@arm.com>
15475 * config/aarch64/aarch64.c
15476 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
15478 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
15481 * config/rs6000/predicates.md (branch_comparison_operator): Allow
15482 ordered and unordered for CCFPmode, if flag_finite_math_only.
15484 2021-03-16 Jakub Jelinek <jakub@redhat.com>
15487 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
15488 rather than ASHIFT.
15489 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
15491 2021-03-16 Martin Liska <mliska@suse.cz>
15494 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
15495 cl_optimization_compare function.
15497 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
15499 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
15502 2021-03-16 Jakub Jelinek <jakub@redhat.com>
15505 * config/i386/i386.h (struct machine_function): Add
15506 has_explicit_vzeroupper bitfield.
15507 * config/i386/i386-expand.c (ix86_expand_builtin): Set
15508 cfun->machine->has_explicit_vzeroupper when expanding
15509 IX86_BUILTIN_VZEROUPPER.
15510 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
15511 Do the mode switching only when TARGET_VZEROUPPER, expensive
15512 optimizations turned on and not optimizing for size.
15513 (pass_insert_vzeroupper::gate): Enable even when
15514 cfun->machine->has_explicit_vzeroupper is set.
15516 2021-03-16 Jakub Jelinek <jakub@redhat.com>
15519 * config/aarch64/aarch64.c
15520 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
15521 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
15522 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
15524 2021-03-15 Richard Biener <rguenther@suse.de>
15526 PR tree-optimization/98834
15527 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
15528 subsetting by truncating the access size.
15530 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
15532 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
15533 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
15536 2021-03-15 Martin Liska <mliska@suse.cz>
15538 * spellcheck.c: Add missing comma in initialization.
15540 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
15542 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
15543 alternative 2 and alternative 1 with alternative 3 using
15544 YW register constraint.
15545 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
15546 using YW register constraint.
15547 (*vec_extractv16qi_zext): Ditto.
15548 (*vec_extractv4si): Merge alternatives 4 and 5
15549 using Yw register constraint.
15550 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
15552 2021-03-13 Martin Sebor <msebor@redhat.com>
15554 PR tree-optimization/99489
15555 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
15556 is not a call statement.
15558 2021-03-13 Jakub Jelinek <jakub@redhat.com>
15560 PR tree-optimization/99544
15561 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
15562 if for vector types multiplication can't be done in type's mode.
15564 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
15567 * config/sparc/constraints.md (w): Rename to...
15568 (W): ... this and ditch previous implementation.
15569 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
15570 (*movdf_insn_sp64): Likewise.
15571 (*mov<VM64:mode>_insn_sp64): Likewise.
15572 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
15574 (atomic_compare_and_swap_leon3_1): Likewise.
15575 (*atomic_compare_and_swapdi_v8plus): Likewise.
15576 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
15577 architecture and add missing address validity check during LRA.
15579 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
15582 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
15583 occuring for assumed-size arrays in use_device_{ptr,addr}.
15585 2021-03-12 Jakub Jelinek <jakub@redhat.com>
15588 * config/i386/constraints.md (YW): New internal constraint.
15589 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
15590 (*<sse2_avx2>_<insn><mode>3<mask_name>,
15591 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
15592 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
15594 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
15595 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
15596 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
15597 into one, use Yw instead of former x,v.
15598 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
15599 the last alternative.
15600 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
15601 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
15602 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
15603 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
15604 into one, use <v_Yw> instead of former x,v.
15605 (avx2_interleave_highv32qi<mask_name>,
15606 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
15607 constraints. Add && <mask_avx512bw_condition> to condition.
15608 (avx2_interleave_lowv32qi<mask_name>,
15609 vec_interleave_lowv16qi<mask_name>,
15610 avx2_interleave_highv16hi<mask_name>,
15611 vec_interleave_highv8hi<mask_name>,
15612 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
15613 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
15614 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
15615 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
15616 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
15617 Yw instead of v in constraints.
15618 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
15619 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
15620 instead of Yv in constraints.
15621 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
15622 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
15623 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
15624 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
15625 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
15627 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
15628 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
15629 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
15630 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
15631 two, one with just x, another isa avx512vl with v.
15633 2021-03-12 Martin Liska <mliska@suse.cz>
15635 * doc/invoke.texi: Add missing param documentation.
15637 2021-03-11 David Malcolm <dmalcolm@redhat.com>
15640 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
15641 analyzer/trimmed-graph.o.
15642 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
15643 feasibility checking to reflect new implementation.
15644 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
15646 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
15648 2021-03-11 David Malcolm <dmalcolm@redhat.com>
15650 * digraph.cc (selftest::test_shortest_paths): Update
15651 shortest_paths init for new param. Add test of
15652 SPS_TO_GIVEN_TARGET.
15653 * shortest-paths.h (enum shortest_path_sense): New.
15654 (shortest_paths::shortest_paths): Add "sense" param.
15655 Update for renamings. Generalize to use "sense" param.
15656 (shortest_paths::get_shortest_path): Rename param.
15657 (shortest_paths::m_sense): New field.
15658 (shortest_paths::m_prev): Rename...
15659 (shortest_paths::m_best_edge): ...to this.
15660 (shortest_paths::get_shortest_path): Update for renamings.
15661 Conditionalize flipping of path on sense of traversal.
15663 2021-03-11 David Malcolm <dmalcolm@redhat.com>
15665 * digraph.cc (selftest::test_shortest_paths): Add test coverage
15666 for paths from B and C.
15667 * shortest-paths.h (shortest_paths::shortest_paths): Handle
15668 unreachable nodes, rather than asserting.
15670 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
15673 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
15674 xcoff_tbss_section_name.
15675 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
15676 * xcoffout.c (xcoff_tbss_section_name): Delete.
15677 * xcoffout.h (xcoff_tbss_section_name): Delete.
15679 2021-03-11 Richard Biener <rguenther@suse.de>
15681 PR tree-optimization/99523
15682 * tree-cfg.c (dump_function_to_file): Dump SSA names
15683 w/o identifier to the decls section as well, not only those
15684 without a VAR_DECL.
15686 2021-03-11 Jakub Jelinek <jakub@redhat.com>
15689 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
15690 function calls with lhs fail if the lhs don't have compatible types.
15692 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
15694 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
15695 Change FRAME_POINTER_REGNUM to correspond to a new faked
15696 register faked_fp, part of GENNONACR_REGS like faked_ap.
15697 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
15698 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
15699 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
15700 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
15701 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
15703 (CRIS_REAL_FP_REGNUM): New constant.
15704 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
15705 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
15706 (cris_initial_elimination_offset): Handle elimination changes
15707 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
15708 and add one from FRAME_POINTER_REGNUM to
15709 HARD_FRAME_POINTER_REGNUM.
15710 (cris_expand_prologue, cris_expand_epilogue): Emit code for
15711 hard_frame_pointer_rtx instead of frame_pointer_rtx.
15713 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
15716 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
15717 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
15719 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
15722 * lra-constraints.c (process_address_1): Don't check unknown
15723 constraint, use X for empty constraint.
15725 2021-03-10 Alex Coplan <alex.coplan@arm.com>
15727 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
15728 Fix typo in comment describing "is_ha" argument.
15730 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
15732 * doc/sourcebuild.texi: Document LRA target selector.
15734 2021-03-10 David Malcolm <dmalcolm@redhat.com>
15736 * doc/ux.texi: Add subsection contrasting interactive versus
15737 batch usage of GCC.
15739 2021-03-10 Joel Hutton <joel.hutton@arm.com>
15742 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
15744 (vectorizable_load): Fix gather load mask check condition.
15746 2021-03-10 Richard Biener <rguenther@suse.de>
15748 PR tree-optimization/99510
15749 * tree.c (check_aligned_type): Check that the candidate
15750 has TYPE_USER_ALIGN set instead of matching with the
15753 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
15755 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
15756 float and vector integer modes only if the mode is not larger.
15758 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
15760 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
15762 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
15764 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
15766 * ira-lives.c (single_reg_class): Ditto.
15768 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
15770 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
15771 the architecture-specific rtems.h.
15772 (aarch64-*-rtems*): Likewise.
15773 (arm*-*-rtems*): Likewise.
15774 (epiphany-*-rtems*): Likewise.
15775 (riscv*-*-rtems*): Likewise.
15777 2021-03-09 Jakub Jelinek <jakub@redhat.com>
15779 PR tree-optimization/99305
15780 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
15781 before integer_all_onesp instead of vice versa.
15783 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
15785 * common/config/arm/arm-common.c (arm_config_default): Change type
15786 of 'i' to unsigned.
15788 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
15791 * lra-constraints.c (process_address_1): Process constraint 'g'
15792 separately and digital constraints containing more one digit.
15794 2021-03-09 Nick Clifton <nickc@redhat.com>
15796 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
15797 (DWARF"_DEBUGGING_INFO): Define.
15799 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
15802 * calls.c (initialize_argument_information): When the argument
15803 is passed by reference, do not make a copy in a thunk only if
15804 the argument is already in memory. Remove redundant test for
15805 the case of callee copy.
15807 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
15810 * lra-constraints.c (process_address_1): Process 0..9 constraints
15811 in process_address_1.
15813 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
15815 * config/s390/s390.c (struct s390_processor processor_table):
15816 Binutils name string must not be empty.
15818 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
15820 * config/arc/arc.c (arc_attr_type): Remove function.
15822 2021-03-09 Martin Liska <mliska@suse.cz>
15825 * config/i386/i386-options.c (ix86_option_override_internal):
15826 Set isa_flags for OPTS argument and not for the global
15829 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
15831 * config/rs6000/predicates.md (ds_form_mem_operand): Check
15834 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
15837 * config/rs6000/predicates.md (ds_form_mem_operand) New
15839 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
15840 ds_form_mem_operand in ld/lwa patterns.
15841 * config/rs6000/fusion.md: Regenerate file.
15843 2021-03-08 Martin Sebor <msebor@redhat.com>
15845 PR middle-end/98266
15846 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
15847 (array_bounds_checker::check_array_bounds): Call it.
15849 2021-03-08 Martin Sebor <msebor@redhat.com>
15851 PR middle-end/97631
15852 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
15853 (handle_builtin_stxncpy_strncat): Rename locals. Determine
15854 destination size from allocation calls. Issue a more appropriate
15856 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
15857 (handle_builtin_memset): Same.
15859 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
15862 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
15863 to ensure we do not have an Altivec style address.
15864 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
15865 an Altivec style address.
15866 (*vsx_le_perm_store_<mode>): Likewise.
15867 (splitters after *vsx_le_perm_store_<mode>): Likewise.
15868 (vsx_load_<mode>): Disable special expander if passed an Altivec
15870 (vsx_store_<mode>): Likewise.
15872 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15875 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
15876 (aarch64_simd_shift_imm_vec_hi): Likewise.
15877 (aarch64_simd_shift_imm_vec_si): Likewise.
15878 (aarch64_simd_shift_imm_vec_di): Likewise.
15879 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
15880 predicate from above.
15881 (aarch64_shrn<mode>_insn_be): Likewise.
15882 (aarch64_rshrn<mode>_insn_le): Likewise.
15883 (aarch64_rshrn<mode>_insn_be): Likewise.
15884 (aarch64_shrn2<mode>_insn_le): Likewise.
15885 (aarch64_shrn2<mode>_insn_be): Likewise.
15886 (aarch64_rshrn2<mode>_insn_le): Likewise.
15887 (aarch64_rshrn2<mode>_insn_be): Likewise.
15889 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
15892 * lra-constraints.c (skip_contraint_modifiers): New function.
15893 (process_address_1): Use it before lookup_constraint call.
15895 2021-03-08 Martin Liska <mliska@suse.cz>
15898 * config/i386/i386-options.c (ix86_option_override_internal):
15899 Enable UINTR and HRESET for -march that supports it.
15901 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
15903 * config/s390/s390.c (f_constraint_p): New function.
15904 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
15905 (TARGET_MD_ASM_ADJUST): Likewise.
15907 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
15910 * tree-nested.c (convert_local_reference_stmt): Avoid calling
15911 lookup_field_for_decl for Fortran module (= namespace context).
15913 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
15915 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
15916 comparison with arithmetic right shift.
15917 (s390_expand_vcond): No need for a force_reg anymore.
15918 s390_vec_compare will do it.
15919 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
15920 immediate operands.
15922 2021-03-07 Jakub Jelinek <jakub@redhat.com>
15925 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
15926 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
15928 * config/i386/sse.md (v_Yw): New define_mode_attr.
15929 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
15930 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
15932 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
15933 xYw in constraints.
15935 2021-03-06 Julian Brown <julian@codesourcery.com>
15937 * tree-pretty-print.c (dump_generic_node): Emit non-generic
15938 address space info for aggregates.
15940 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
15942 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
15944 2021-03-05 Jakub Jelinek <jakub@redhat.com>
15946 PR middle-end/99322
15947 * tree-cfg.c (bb_to_omp_idx): New variable.
15948 (execute_build_cfg): Release the bb_to_omp_idx vector after
15949 cleanup_tree_cfg returns.
15950 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
15951 for bb_to_omp_idx being a vec<int> instead of pointer to array
15953 (make_edges): Remove bb_to_omp_idx local variable, don't pass
15954 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
15955 vec<int> instead of pointer to array of ints and don't free/release
15957 (remove_bb): When removing a bb and placing forced label somewhere
15958 else, ensure it is put into the same OpenMP region during cfg
15959 pass if possible or to entry successor as fallback. Unregister
15960 bb from bb_to_omp_idx.
15962 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
15965 * lra-constraints.c (process_address_1): Skip decomposing address
15966 for asm insn operand with unknown constraint.
15968 2021-03-05 Martin Jambor <mjambor@suse.cz>
15971 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
15972 corresponding speculative edges if we are about to resolve
15973 sepculation. Make edge direct (and so resolve speculations) before
15974 removing it from call_site_hash.
15975 (cgraph_edge::make_direct): Relax the initial assert to allow calling
15976 the function on speculative direct edges.
15978 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
15980 PR rtl-optimization/99376
15981 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
15982 of low-order zero bits is too large, set the result to 0 directly.
15984 2021-03-04 Jakub Jelinek <jakub@redhat.com>
15986 PR middle-end/93235
15987 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
15988 SUBREG and a SUBREG to op_mode can't be created.
15990 2021-03-04 Alex Coplan <alex.coplan@arm.com>
15993 * config/aarch64/aarch64-sve-builtins.cc
15994 (function_resolver::require_vector_type): Handle error_mark_node.
15996 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
15998 * cfgexpand.c (expand_asm_loc): Pass new parameter.
15999 (expand_asm_stmt): Likewise.
16000 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
16002 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
16003 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
16004 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
16005 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
16006 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
16007 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
16008 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
16009 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
16010 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
16011 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
16012 * doc/tm.texi (md_asm_adjust): Likewise.
16013 * target.def (md_asm_adjust): Likewise.
16015 2021-03-04 Richard Biener <rguenther@suse.de>
16017 PR middle-end/97855
16018 * tree-pretty-print.c: Poison pp_printf.
16019 (dump_decl_name): Avoid use of pp_printf.
16020 (dump_block_node): Likewise.
16021 (dump_generic_node): Likewise.
16023 2021-03-04 Martin Sebor <msebor@redhat.com>
16025 PR middle-end/96963
16026 PR middle-end/94655
16027 * builtins.c (handle_array_ref): New helper.
16028 (handle_mem_ref): New helper.
16029 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
16030 into new helper functions. Correct a workaround for vectorized
16033 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
16035 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
16036 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
16037 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
16038 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
16039 attribute for Power10.
16040 * config/rs6000/mma.md (*movoo): Likewise.
16041 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
16042 (define_mode_attr bits): Add DD/TD modes.
16043 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
16044 store_conditionalpti): Update size attribute for Power10.
16046 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16049 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
16050 -Wuninitialized, -Wmaybe-uninitialized.
16051 (wide-int.o-warn): Likewise.
16053 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
16055 * common/config/arm/arm-common.c: Include configargs.h.
16056 (arm_config_default): New function.
16057 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
16058 processors that do not support Thumb. Take into account the
16059 --with-mode configuration setting for selecting the default.
16060 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
16061 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
16063 2021-03-03 Martin Liska <mliska@suse.cz>
16065 PR gcov-profile/97461
16066 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
16068 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
16071 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
16072 point back the hard frame pointer to its default location when the
16073 frame is larger than SEH_MAX_FRAME_SIZE.
16075 2021-03-03 Jakub Jelinek <jakub@redhat.com>
16078 * config/i386/predicates.md (logic_operator): New define_predicate.
16079 * config/i386/i386.md (mov + mem using comm arith peephole2):
16080 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
16081 and the inner mode is [QH]Imode.
16083 2021-03-03 Jakub Jelinek <jakub@redhat.com>
16086 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
16087 (new_loc_list): Clear end_entry.
16088 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
16089 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
16091 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
16092 initialize also end_entry.
16094 2021-03-03 Jakub Jelinek <jakub@redhat.com>
16097 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
16098 partitions, if in non-layout mode after reorder_blocks also move
16099 affected blocks to ensure a single partition transition.
16101 2021-03-03 Jason Merrill <jason@redhat.com>
16104 * cgraphunit.c (process_function_and_variable_attributes): Don't
16105 warn about flatten on an alias if the target also has it.
16106 * cgraph.h (symtab_node::get_alias_target_tree): New.
16108 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
16110 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
16111 period to symbol name.
16112 (tls_get_addr_internal<mode>): Same.
16114 2021-03-02 David Malcolm <dmalcolm@redhat.com>
16117 * diagnostic-show-locus.c
16118 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
16121 2021-03-02 Martin Sebor <msebor@redhat.com>
16123 PR middle-end/99276
16124 * builtins.c (warn_for_access): Remove stray warning text.
16126 2021-03-02 Martin Sebor <msebor@redhat.com>
16128 PR middle-end/99295
16129 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
16132 2021-03-02 Jakub Jelinek <jakub@redhat.com>
16135 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
16136 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
16137 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
16138 DW_MACRO_define_strx and DW_MACRO_undef_strx.
16139 (save_macinfo_strings): Use DW_MACRO_*_str* even with
16140 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
16141 DW_MACRO_undef_strx.
16143 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
16145 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
16147 (BT_FN_V8HI_V8HI_UINT): Likewise.
16148 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
16149 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
16150 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
16151 New builtin definitions.
16152 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
16153 vector extension version.
16154 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
16155 available with current -march level.
16156 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
16157 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
16158 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
16159 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
16160 (vec_extend_to_fp32_lo): Likewise.
16161 (vec_round_from_fp32): Likewise.
16162 (vec_convert_to_fp16): Likewise.
16163 (vec_convert_from_fp16): Likewise.
16164 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
16165 (vclfnls_v8hi): Likewise.
16166 (vcrnfs_v8hi): Likewise.
16167 (vcfn_v8hi): Likewise.
16168 (vcnf_v8hi): Likewise.
16170 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
16172 * common/config/s390/s390-common.c (processor_flags_table): New entry.
16173 * config.gcc: Enable arch14 for --with-arch and --with-tune.
16174 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
16175 arch14 for unknown CPU models.
16176 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
16177 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
16178 (s390_get_sched_attrmask): Likewise.
16179 (s390_get_unit_mask): Likewise.
16180 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
16181 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
16182 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
16183 (TARGET_NNPA_P): New macro definitions.
16184 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
16185 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
16187 2021-03-02 Jakub Jelinek <jakub@redhat.com>
16189 PR middle-end/95757
16190 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
16191 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
16192 != 1 comparisons if name is lhs of a comparison.
16194 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
16198 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
16199 * config/darwin.c (darwin_should_restore_cfa_state): New.
16200 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
16201 * doc/tm.texi: Regenerated.
16202 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
16203 * dwarf2cfi.c (connect_traces): If the target requests, restore
16204 the CFA expression after a DW_CFA_restore.
16205 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
16207 2021-03-01 Martin Liska <mliska@suse.cz>
16210 * optc-save-gen.awk: Add 4 more exceptions.
16212 2021-03-01 Nathan Sidwell <nathan@acm.org>
16215 * tree.h (TYPE_ALIGN_RAW): New accessor.
16216 (TYPE_ALIGN): Use it.
16218 2021-03-01 Jan Hubicka <jh@suse.cz>
16221 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
16223 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
16226 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
16227 point the hard frame pointer to the SSE register save area instead
16228 of the general register save area. Perform only minimal adjustment
16229 for small frames if it is initially not correctly aligned.
16230 (ix86_expand_prologue): Remove early saves for a SEH target.
16231 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
16233 2021-02-28 Jakub Jelinek <jakub@redhat.com>
16236 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
16237 typo - referneced -> referenced.
16238 * tree.c (component_ref_size): Fix comment typo -
16239 refernce -> reference.
16240 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
16241 traling -> trailing.
16242 (aliasing_component_refs_p): Fix comment typos -
16243 refernce -> reference and refernece -> reference and
16244 traling -> trailing.
16245 (nonoverlapping_refs_since_match_p): Fix comment typo -
16246 referneces -> references.
16247 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
16248 referneces -> references.
16250 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
16252 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
16253 diagnostic message to avoid use of a contraction and format
16256 2021-02-27 Jakub Jelinek <jakub@redhat.com>
16259 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
16260 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
16261 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
16262 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
16265 2021-02-26 Richard Biener <rguenther@suse.de>
16267 PR middle-end/99281
16268 * expr.c (store_field): For calls with return-slot optimization
16269 and addressable return type expand the store directly.
16271 2021-02-26 Richard Biener <rguenther@suse.de>
16274 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
16276 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
16279 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
16282 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
16284 * config.gcc: Add rs6000-pcrel-opt.o.
16285 * config/rs6000/rs6000-pcrel-opt.c: New file.
16286 * config/rs6000/pcrel-opt.md: New file.
16287 * config/rs6000/predicates.md: Add d_form_memory predicate.
16288 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
16289 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
16290 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
16291 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
16292 and make_pass_pcrel_opt().
16293 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
16294 (rs6000_option_override_internal): Add pcrel-opt.
16295 (rs6000_delegitimize_address): Support pcrel-opt.
16296 (rs6000_opt_masks): Add pcrel-opt.
16297 (pcrel_opt_valid_mem_p): New function.
16298 (reg_to_non_prefixed): Make global.
16299 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
16300 (output_pcrel_opt_reloc): New function.
16301 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
16302 (pcrel_extern_addr): Set loads_extern_addr.
16303 Add include for pcrel-opt.md.
16304 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
16305 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
16308 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
16311 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
16312 If TARGET_64BIT and dest is SUBREG, we check the width, if it
16313 equal to SImode, we use SImode operation, just like what we are
16316 2021-02-26 Marek Polacek <polacek@redhat.com>
16318 * builtins.c (warn_for_access): Fix typos.
16320 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
16322 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
16323 mark in front of the immediate quantity.
16324 (<optab>_rolsi3_uxtw): Likewise.
16326 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
16329 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
16330 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
16331 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
16332 address and disable when the FPCXT is not available.
16333 (nonsecure_call_value_reg_thumb2): Likewise.
16335 2021-02-25 Nathan Sidwell <nathan@acm.org>
16338 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
16340 2021-02-25 Tamar Christina <tamar.christina@arm.com>
16342 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
16344 2021-02-25 Richard Biener <rguenther@suse.de>
16346 PR tree-optimization/99253
16347 * tree-vect-loop.c (check_reduction_path): First compute
16348 code, then verify out-of-loop uses.
16350 2021-02-25 Jakub Jelinek <jakub@redhat.com>
16353 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
16355 2021-02-25 Jakub Jelinek <jakub@redhat.com>
16357 PR tree-optimization/80635
16358 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
16359 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
16360 has mode precision.
16362 2021-02-25 Richard Biener <rguenther@suse.de>
16364 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
16365 load_map population.
16366 (vect_match_slp_patterns_2): Revert part of last change.
16367 (vect_analyze_slp): Do not interleave optimize_load_redistribution
16368 with pattern detection but do it afterwards. Dump the
16369 whole SLP graph after pattern recognition and load
16370 redistribution optimization finished.
16372 2021-02-24 Jakub Jelinek <jakub@redhat.com>
16375 * omp-low.c (struct omp_context): Add teams_nested_p and
16376 nonteams_nested_p members.
16377 (scan_omp_target): Diagnose teams nested inside of target with other
16378 directives strictly nested inside of the same target.
16379 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
16380 ctx->nonteams_nested_p as needed.
16382 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
16384 PR inline-asm/99123
16385 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
16387 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
16389 * config/cris/cris.c (cris_expand_prologue): Set
16390 current_function_static_stack_size, if flag_stack_usage_info.
16392 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
16394 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
16395 (rs6000_final_prescan_insn): Adjust.
16396 (rs6000_asm_output_opcode): Likewise.
16398 2021-02-24 Martin Sebor <msebor@redhat.com>
16400 PR middle-end/97172
16401 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
16402 from function arguments.
16404 2021-02-24 Tamar Christina <tamar.christina@arm.com>
16406 PR tree-optimization/99220
16407 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
16408 node from cache when it's about to be deleted.
16410 2021-02-24 Jakub Jelinek <jakub@redhat.com>
16412 PR tree-optimization/99225
16413 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
16414 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
16415 build_int_cst (..., 1). Formatting fixes.
16417 2021-02-24 Tamar Christina <tamar.christina@arm.com>
16419 PR tree-optimization/99149
16420 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
16422 (vect_slp_reset_pattern): Remove.
16423 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
16424 (complex_mul_pattern::build, complex_fma_pattern::build,
16425 complex_fms_pattern::build): Fix ref counts.
16426 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
16427 when node is being deleted.
16428 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
16429 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
16431 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
16433 2021-02-24 Matthias Klose <doko@ubuntu.com>
16436 2020-12-07 Matthias Klose <doko@ubuntu.com>
16438 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
16439 and ENABLE_RTL_FLAG_CHECKING.
16441 2021-02-24 Richard Biener <rguenther@suse.de>
16444 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
16446 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
16448 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
16449 (vsx_assemble_pair): ...to this.
16450 (*mma_assemble_pair): Rename from this...
16451 (*vsx_assemble_pair): ...to this.
16452 (mma_disassemble_pair): Rename from this...
16453 (vsx_disassemble_pair): ...to this.
16454 (*mma_disassemble_pair): Rename from this...
16455 (*vsx_disassemble_pair): ...to this.
16456 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
16457 BU_COMPAT): New macros.
16458 (mma_assemble_pair): Rename from this...
16459 (vsx_assemble_pair): ...to this.
16460 (mma_disassemble_pair): Rename from this...
16461 (vsx_disassemble_pair): ...to this.
16462 (mma_assemble_pair): New compatibility built-in.
16463 (mma_disassemble_pair): Likewise.
16464 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
16465 (RS6000_BUILTIN_COMPAT): Define.
16466 (bdesc_compat): New.
16467 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
16468 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
16469 and VSX_BUILTIN_ASSEMBLE_PAIR.
16470 (rs6000_init_builtins): Register compatibility built-ins.
16471 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
16472 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
16473 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
16474 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
16475 (__builtin_vsx_assemble_pair): ...to this.
16476 (__builtin_mma_disassemble_pair): Rename from this...
16477 (__builtin_vsx_disassemble_pair): ...to this.
16479 2021-02-23 Martin Liska <mliska@suse.cz>
16482 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
16483 with different alignment. That leads to an invalid red zone
16484 size allocated in runtime.
16486 2021-02-23 Jakub Jelinek <jakub@redhat.com>
16488 PR tree-optimization/99204
16489 * fold-const.c (fold_read_from_constant_string): Check that
16490 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
16492 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
16493 Kewen Lin <linkw@gcc.gnu.org>
16495 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
16496 (rotl<mode>3_insert_3): ...this.
16497 (plus_ior_xor): New code_iterator.
16498 (define_split for GPR rl*imi): New splitter.
16499 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
16500 for integer merging.
16502 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16504 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
16506 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
16507 into a register when the above is enabled.
16508 * config/aarch64/aarch64.c (neoversev1_tunings):
16509 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
16510 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
16512 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
16514 * config/cris/cris.c (cris_print_operand) <'T'>: Change
16515 valid operand from is now an addi mult-value to shift-value.
16516 * config/cris/cris.md (*addi): Change expression of scaled
16517 operand from mult to ashift.
16518 * config/cris/cris.md (*addi_reload): New insn_and_split.
16520 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
16523 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
16524 hook_bool_const_tree_hwi_hwi_const_tree_true.
16525 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
16527 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
16529 PR rtl-optimization/98791
16530 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
16531 for unordered modes.
16533 2021-02-22 Martin Liska <mliska@suse.cz>
16535 * tree-inline.c (inline_forbidden_p): Set
16536 inline_forbidden_reason.
16538 2021-02-22 Richard Biener <rguenther@suse.de>
16540 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
16543 2021-02-22 Richard Biener <rguenther@suse.de>
16545 PR tree-optimization/99165
16546 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
16547 Accumulate changed to ret.
16549 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
16552 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
16554 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
16556 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
16559 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
16561 (trunctf<DFP_ALL:mode>2): Likewise.
16562 (trunctdtf2_vr): Likewise.
16563 (trunctdtf2): Likewise.
16564 (extend<DFP_ALL:mode>tf2_vr): Likewise.
16565 (extend<DFP_ALL:mode>tf2): Likewise.
16566 (extendtftd2_vr): Likewise.
16567 (extendtftd2): Likewise.
16569 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
16571 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
16572 add memory alternative.
16573 (tf_to_fprx2): New pattern.
16575 2021-02-19 Martin Sebor <msebor@redhat.com>
16578 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
16579 (attr_access::free_lang_data): Remove a spurious test.
16581 2021-02-19 Nathan Sidwell <nathan@acm.org>
16583 * doc/invoke.texi (flang-info-module-read): Document.
16585 2021-02-19 Martin Liska <mliska@suse.cz>
16587 PR translation/99167
16588 * params.opt: Fix typo.
16590 2021-02-19 Richard Biener <rguenther@suse.de>
16592 PR middle-end/99122
16593 * tree-inline.c (inline_forbidden_p): Do not inline functions
16594 with VLA arguments or return value.
16596 2021-02-19 Jakub Jelinek <jakub@redhat.com>
16599 * config/arm/arm.md (*stack_protect_combined_set_insn,
16600 *stack_protect_combined_test_insn): If force_const_mem result
16601 is not valid general operand, force its address into the destination
16604 2021-02-19 Jakub Jelinek <jakub@redhat.com>
16607 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
16608 pad or non-local label, put FORCED_LABELs from bb b after that label
16609 rather than before it.
16611 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
16614 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
16615 expand_vector_broadcast' to emit the vec_duplicate operand.
16617 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
16619 PR rtl-optimization/96264
16620 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
16623 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
16626 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
16627 looking up the retain attribute.
16628 (resolve_unique_section): Likewise.
16629 (get_variable_section): Likewise.
16630 (switch_to_section): Likewise. Warn when a symbol without the
16631 retain attribute and a symbol with the retain attribute are
16632 placed in the section with the same name, instead of the used
16634 * doc/extend.texi: Document the "retain" attribute.
16636 2021-02-18 Nathan Sidwell <nathan@acm.org>
16639 * doc/invoke.texi (flang-info-include-translate): Document header
16642 2021-02-18 Richard Biener <rguenther@suse.de>
16644 PR middle-end/99122
16645 * ipa-fnsummary.c (analyze_function_body): Set
16646 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
16647 * tree-inline.c (insert_init_debug_bind): Pass NULL for
16648 error_mark_node values.
16649 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
16651 (setup_one_parameter): Delay force_value_to_type until when
16654 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
16656 PR tree-optimization/99142
16657 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
16659 2021-02-18 Jakub Jelinek <jakub@redhat.com>
16661 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
16662 wide_int_bitmask::wide_int_bitmask (uint64_t),
16663 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
16664 wide_int_bitmask::operator ~ () const,
16665 wide_int_bitmask::operator | (wide_int_bitmask) const,
16666 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
16668 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
16669 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
16670 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
16671 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
16672 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
16673 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
16674 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
16675 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
16676 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
16677 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
16678 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
16679 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
16680 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
16681 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
16682 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
16683 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
16684 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
16685 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
16686 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
16687 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
16688 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
16689 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
16690 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
16691 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
16693 2021-02-18 Jakub Jelinek <jakub@redhat.com>
16695 PR middle-end/99109
16696 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
16697 (build_printable_array_type): ... this. Add nelts argument. For
16698 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
16699 nelts, call build_array_type_nelts.
16700 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
16701 instead of build_zero_elt_array_type and build_array_type_nelts.
16703 2021-02-18 Jakub Jelinek <jakub@redhat.com>
16706 * config/i386/i386.c (distance_non_agu_define): Don't call
16707 extract_insn_cached here.
16708 (ix86_lea_outperforms): Save and restore recog_data around call
16709 to distance_non_agu_define and distance_agu_use.
16710 (ix86_ok_to_clobber_flags): Remove.
16711 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
16712 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
16713 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
16714 into define_insn. Move the splitting to define_peephole2 and
16715 check there using peep2_regno_dead_p if FLAGS_REG is dead.
16717 2021-02-17 Julian Brown <julian@codesourcery.com>
16719 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
16722 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
16725 * config/mips/mips.c (mips_symbol_insns): Do not use
16726 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
16728 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
16730 PR inline-asm/98096
16731 * stmt.c (resolve_operand_name_1): Take inout operands into account
16732 for access to labels by names.
16733 * doc/extend.texi: Describe counting operands for accessing labels.
16735 2021-02-16 Richard Biener <rguenther@suse.de>
16737 PR tree-optimization/38474
16738 * tree-ssa-structalias.c (variable_info::address_taken): New.
16739 (new_var_info): Initialize address_taken.
16740 (process_constraint): Set address_taken.
16741 (solve_constraints): Use the new address_taken flag rather
16742 than is_reg_var for sorting variables.
16743 (dump_constraint): Dump the variable number if the name
16746 2021-02-16 Jakub Jelinek <jakub@redhat.com>
16749 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
16750 multiply by 4096 and for inbranch by 8192.
16751 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
16752 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
16754 2021-02-15 Maya Rashish <coypu@sdf.org>
16756 * config/aarch64/aarch64.c (aarch64_init_builtins):
16757 Call SUBTARGET_INIT_BUILTINS.
16759 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
16761 PR rtl-optimization/98872
16762 * init-regs.c (initialize_uninitialized_regs): Skip initialization
16763 if CONST0_RTX is NULL.
16765 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
16767 PR rtl-optimization/98863
16768 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
16769 (function_info::build_info): Turn into a declaration, moving the
16770 definition to internals.h.
16771 (function_info::bb_walker): Declare.
16772 (function_info::create_reg_use): Likewise.
16773 (function_info::calculate_potential_phi_regs): Take a build_info
16775 (function_info::place_phis, function_info::create_ebbs): Declare.
16776 (function_info::calculate_ebb_live_in_for_debug): Likewise.
16777 (function_info::populate_backedge_phis): Delete.
16778 (function_info::start_block, function_info::end_block): Declare.
16779 (function_info::populate_phi_inputs): Delete.
16780 (function_info::m_potential_phi_regs): Move information to build_info.
16781 * rtl-ssa/internals.h: New file.
16782 (function_info::bb_phi_info): New class.
16783 (function_info::build_info): Moved from functions.h.
16784 Add a constructor and destructor.
16785 (function_info::build_info::ebb_use): Delete.
16786 (function_info::build_info::ebb_def): Likewise.
16787 (function_info::build_info::bb_live_out): Likewise.
16788 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
16789 (function_info::build_info::potential_phi_regs): Likewise.
16790 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
16791 (function_info::build_info::ebb_def_regs): Likewise.
16792 (function_info::build_info::bb_phis): Likewise.
16793 (function_info::build_info::bb_mem_live_out): Likewise.
16794 (function_info::build_info::bb_to_rpo): Likewise.
16795 (function_info::build_info::def_stack): Likewise.
16796 (function_info::build_info::old_def_stack_limit): Likewise.
16797 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
16798 Remove the regno argument. Push the previous definition onto the
16799 definition stack where necessary.
16800 * rtl-ssa/accesses.cc: Include internals.h.
16801 * rtl-ssa/changes.cc: Likewise.
16802 * rtl-ssa/blocks.cc: Likewise.
16803 (function_info::build_info::build_info): Define.
16804 (function_info::build_info::~build_info): Likewise.
16805 (function_info::bb_walker): New class.
16806 (function_info::bb_walker::bb_walker): Define.
16807 (function_info::add_live_out_use): Convert a logarithmic-complexity
16808 test into a linear one. Allow the same definition to be passed
16810 (function_info::calculate_potential_phi_regs): Moved from
16811 functions.cc. Take a build_info parameter and store the
16812 information there instead.
16813 (function_info::place_phis): New function.
16814 (function_info::add_entry_block_defs): Update call to record_reg_def.
16815 (function_info::calculate_ebb_live_in_for_debug): New function.
16816 (function_info::add_phi_nodes): Use bb_phis to decide which
16817 registers need phi nodes and initialize ebb_def_regs accordingly.
16818 Do not add degenerate phis here.
16819 (function_info::add_artificial_accesses): Use create_reg_use.
16820 Assert that all definitions are listed in the DF LR sets.
16821 Update call to record_reg_def.
16822 (function_info::record_block_live_out): Record live-out register
16823 values in the phis of successor blocks. Use the live-out set
16824 when processing the last block in an EBB, instead of always
16825 using the live-in sets of successor blocks. AND the live sets
16826 with the set of registers that have been defined in the EBB,
16827 rather than with all potential phi registers. Cope correctly
16828 with branches back to the start of the current EBB.
16829 (function_info::start_block): New function.
16830 (function_info::end_block): Likewise.
16831 (function_info::populate_phi_inputs): Likewise.
16832 (function_info::create_ebbs): Likewise.
16833 (function_info::process_all_blocks): Rewrite into a multi-phase
16835 * rtl-ssa/functions.cc: Include internals.h.
16836 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
16837 (function_info::init_function_data): Remove caller.
16838 * rtl-ssa/insns.cc: Include internals.h
16839 (function_info::create_reg_use): New function. Lazily any
16840 degenerate phis needed by the linear RPO view.
16841 (function_info::record_use): Use create_reg_use. When processing
16842 debug uses, use potential_phi_regs and test it before checking
16843 whether the register is live on entry to the current EBB. Lazily
16844 calculate ebb_live_in_for_debug.
16845 (function_info::record_call_clobbers): Update call to record_reg_def.
16846 (function_info::record_def): Likewise.
16848 2021-02-15 Martin Liska <mliska@suse.cz>
16850 * toplev.c (init_asm_output): Free output of
16851 gen_command_line_string function.
16852 (process_options): Likewise.
16854 2021-02-15 Martin Liska <mliska@suse.cz>
16856 * params.opt: Add 2 missing Param keywords.
16858 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
16860 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
16862 2021-02-15 Jakub Jelinek <jakub@redhat.com>
16864 PR tree-optimization/99079
16865 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
16866 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
16867 require both type and TREE_TYPE (@1) to be integral types and either
16868 type having smaller or equal precision, or TREE_TYPE (@1) being
16869 unsigned type, or type being signed type. If TREE_TYPE (@1)
16870 doesn't have wrapping overflow, perform the subtraction of one in
16873 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
16874 Richard Biener <rguether@suse.de>
16877 * ipa-reference.c (ipa_init): Only conditinally initialize
16878 reference_vars_to_consider.
16879 (propagate): Conditionally deninitialize reference_vars_to_consider.
16880 (ipa_reference_write_optimization_summary): Sanity check that
16881 reference_vars_to_consider is not allocated.
16883 2021-02-13 Levy Hsu <admin@levyhsu.com>
16886 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
16887 extend parameter to get_si_mem_base_reg declaration.
16888 (get_si_mem_base_reg): Add extend parameter. Set it.
16889 (analyze): Pass extend arg to get_si_mem_base_reg.
16890 (transform): Likewise. Use it when rewriting mems.
16891 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
16892 loads and emit sign/zero extending load followed by subreg move.
16894 2021-02-13 Jim Wilson <jimw@sifive.com>
16897 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
16898 exit when !reload_completed. Only perform check for compressed reg
16899 if reload_completed.
16900 (riscv_rtx_costs): In MEM case, when optimizing for size and
16901 shorten memrefs, if not compressible, then increase cost.
16903 2021-02-13 Jakub Jelinek <jakub@redhat.com>
16905 PR rtl-optimization/98439
16906 * recog.c (pass_split_before_regstack::gate): Enable even when
16907 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
16910 2021-02-13 Jakub Jelinek <jakub@redhat.com>
16913 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
16914 swap of V2SImode elements in memory into DImode memory rotate by 32.
16916 2021-02-12 Martin Sebor <msebor@redhat.com>
16918 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
16920 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
16922 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
16923 m_temp_obstack rather than m_obstack to allocate the temporary use.
16925 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
16927 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
16928 as read-modify operations.
16930 2021-02-12 Richard Biener <rguenther@suse.de>
16932 PR middle-end/38474
16933 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
16934 fbi->aa_walk_budget is bigger than zero. Update
16935 fbi->aa_walk_budget.
16936 (param_change_prob): Likewise.
16937 * ipa-prop.c (detect_type_change_from_memory_writes):
16938 Properly account walk_aliased_vdefs.
16939 (parm_preserved_before_stmt_p): Canonicalize updates.
16940 (parm_ref_data_preserved_p): Likewise.
16941 (parm_ref_data_pass_through_p): Likewise.
16942 (determine_known_aggregate_parts): Account own alias queries.
16944 2021-02-12 Martin Liska <mliska@suse.cz>
16946 * opts-common.c (decode_cmdline_option): Release werror_arg.
16947 * opts.c (gen_producer_string): Release output of
16948 gen_command_line_string.
16950 2021-02-12 Richard Biener <rguenther@suse.de>
16952 PR tree-optimization/38474
16953 * params.opt (-param=max-store-chains-to-track=): New param.
16954 (-param=max-stores-to-track=): Likewise.
16955 * doc/invoke.texi (max-store-chains-to-track): Document.
16956 (max-stores-to-track): Likewise.
16957 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
16959 (pass_store_merging::m_n_stores): Likewise.
16960 (pass_store_merging::terminate_and_process_chain): Update
16961 m_n_stores and m_n_chains.
16962 (pass_store_merging::process_store): Likewise. Terminate
16963 oldest chains if the number of stores or chains get too large.
16964 (imm_store_chain_info::terminate_and_process_chain): Dump
16967 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
16969 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
16970 the cold section, emit a nop before the directive if the previous
16971 active instruction can throw.
16973 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
16976 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
16977 memory addresses that are legal for quad word accesses.
16979 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
16982 * config/arm/thumb2.md (*doloop_end_internal): Generate
16983 alternative sequence to handle long range branches.
16985 2021-02-11 Joel Hutton <joel.hutton@arm.com>
16987 PR tree-optimization/98772
16988 * optabs-tree.c (supportable_half_widening_operation): New function
16989 to check for supportable V8QI->V8HI widening patterns.
16990 * optabs-tree.h (supportable_half_widening_operation): New function.
16991 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
16992 to create promotion stmts for V8QI->V8HI widening patterns.
16993 (vectorizable_conversion): Add case for V8QI->V8HI.
16995 2021-02-11 Richard Biener <rguenther@suse.de>
16997 * sparseset.h (SPARSESET_ELT_BITS): Remove.
16998 (SPARSESET_ELT_TYPE): Use unsigned int.
16999 * fwprop.c: Do not include sparseset.h.
17001 2021-02-10 Jakub Jelinek <jakub@redhat.com>
17004 * varasm.c (declare_weak): For -fsyntax-only, allow even
17005 TREE_ASM_WRITTEN function decls.
17007 2021-02-10 Jakub Jelinek <jakub@redhat.com>
17010 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
17011 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
17012 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
17013 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
17014 calling simplify_gen_subreg on it.
17016 2021-02-10 Martin Liska <mliska@suse.cz>
17018 * config/nvptx/nvptx.c (nvptx_option_override): Use
17019 flag_patchable_function_entry instead of the removed
17020 function_entry_patch_area_size.
17022 2021-02-10 Martin Liska <mliska@suse.cz>
17024 PR tree-optimization/99002
17025 PR tree-optimization/99026
17026 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
17027 leak when adjacent cases are merged.
17028 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
17030 (make_pass_lower_switch): Remove trailing whitespace.
17031 * tree-switch-conversion.h (release_clusters): New.
17033 2021-02-10 Richard Biener <rguenther@suse.de>
17035 PR rtl-optimization/99054
17036 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
17037 (fixup_partitions): Adjust.
17038 (rtl_verify_edges): Likewise.
17040 2021-02-10 Jakub Jelinek <jakub@redhat.com>
17042 PR middle-end/99007
17043 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
17044 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
17047 2021-02-10 Richard Biener <rguenther@suse.de>
17050 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
17053 2021-02-10 Richard Biener <rguenther@suse.de>
17055 PR tree-optimization/99024
17056 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
17057 clear loop->aux if it is associated with the destroyed loop_vinfo.
17059 2021-02-10 Martin Liska <mliska@suse.cz>
17061 PR tree-optimization/99002
17062 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
17065 2021-02-10 Martin Liska <mliska@suse.cz>
17068 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
17069 a reference exists.
17071 2021-02-10 Jakub Jelinek <jakub@redhat.com>
17074 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
17075 at class scope for DWARF5+.
17077 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
17079 PR rtl-optimization/96015
17080 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
17081 (relax_delay_slots): When deleting a jump to the next active
17082 instruction over a barrier, first delete the barrier if the
17083 jump is the only way to reach the target label.
17085 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
17087 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
17088 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
17089 vector multiplies and vect.alu for SSRA.
17090 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
17091 vect.mul cost field.
17092 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
17093 * config/arm/arm.c: Likewise.
17095 2021-02-09 Richard Biener <rguenther@suse.de>
17097 PR tree-optimization/98863
17098 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
17099 * tree-ssa-sccvn.c (last_pushed_avail): New global.
17100 (rpo_elim::eliminate_push_avail): Chain pushed avails.
17101 (unwind_state::avail_top): Add.
17102 (do_unwind): Rewrite unwinding of avail entries.
17103 (do_rpo_vn): Initialize last_pushed_avail and
17104 avail_top of the undo state.
17106 2021-02-09 Jakub Jelinek <jakub@redhat.com>
17108 PR middle-end/99004
17109 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
17110 const char * to char * and free those pointers after use.
17112 2021-02-09 Richard Biener <rguenther@suse.de>
17114 PR tree-optimization/99017
17115 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
17116 zero vector cost entries.
17118 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
17120 PR middle-end/98974
17121 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
17122 parameter in vectorizable_condition.
17124 2021-02-08 Richard Biener <rguenther@suse.de>
17127 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
17129 2021-02-08 Martin Liska <mliska@suse.cz>
17132 * cfgexpand.c (pass_expand::execute): Parse per-function option
17133 flag_patchable_function_entry and use it.
17134 * common.opt: Remove function_entry_patch_area_size and
17135 function_entry_patch_area_start global variables.
17136 * opts.c (parse_and_check_patch_area): New function.
17137 (common_handle_option): Use it.
17138 * opts.h (parse_and_check_patch_area): New function.
17139 * toplev.c (process_options): Parse and use
17140 function_entry_patch_area_size.
17142 2021-02-08 Martin Sebor <msebor@redhat.com>
17144 * doc/extend.texi (attribute malloc): Correct typos.
17146 2021-02-05 Nathan Sidwell <nathan@acm.org>
17149 * gcc.c (driver::maybe_run_linker): Check for input file
17150 accessibility if not linking.
17152 2021-02-05 Richard Biener <rguenther@suse.de>
17154 PR tree-optimization/98855
17155 * tree-vectorizer.h (add_stmt_cost): New overload.
17156 * tree-vect-slp.c (li_cost_vec_cmp): New.
17157 (vect_bb_slp_scalar_cost): Cost individual loop regions
17158 separately. Account for the scalar instance root stmt.
17160 2021-02-05 Tom de Vries <tdevries@suse.de>
17163 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
17165 (bit_test_cluster::emit): Reuse location_t for newly created
17167 (switch_decision_tree::try_switch_expansion): Preserve
17169 * tree-switch-conversion.h: Change function signatures.
17171 2021-02-05 Jakub Jelinek <jakub@redhat.com>
17174 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
17175 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
17176 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
17177 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
17179 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17181 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
17182 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
17183 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
17184 (vget_high_f16): Reimplement using new builtin.
17185 (vget_high_f32): Likewise.
17186 (vget_high_f64): Likewise.
17187 (vget_high_p8): Likewise.
17188 (vget_high_p16): Likewise.
17189 (vget_high_p64): Likewise.
17190 (vget_high_s8): Likewise.
17191 (vget_high_s16): Likewise.
17192 (vget_high_s32): Likewise.
17193 (vget_high_s64): Likewise.
17194 (vget_high_u8): Likewise.
17195 (vget_high_u16): Likewise.
17196 (vget_high_u32): Likewise.
17197 (vget_high_u64): Likewise.
17199 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17201 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
17202 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
17203 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
17204 (vget_low_f16): Reimplement using new builtin.
17205 (vget_low_f32): Likewise.
17206 (vget_low_f64): Likewise.
17207 (vget_low_p8): Likewise.
17208 (vget_low_p16): Likewise.
17209 (vget_low_p64): Likewise.
17210 (vget_low_s8): Likewise.
17211 (vget_low_s16): Likewise.
17212 (vget_low_s32): Likewise.
17213 (vget_low_s64): Likewise.
17214 (vget_low_u8): Likewise.
17215 (vget_low_u16): Likewise.
17216 (vget_low_u32): Likewise.
17217 (vget_low_u64): Likewise.
17219 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
17221 * gcc.c (print_multilib_info): Check all required argument is provided
17224 2021-02-05 liuhongt <hongtao.liu@intel.com>
17227 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
17228 generate integer mask comparison for 128/256-bits vector when
17229 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
17230 delete redundant !maskcmp condition.
17231 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
17233 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
17234 condition directly to if (maskcmp), add extra check for
17235 cmpmode, it should be MODE_INT.
17236 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
17237 parameters op_true/op_false.
17238 (ix86_use_mask_cmp_p): New.
17240 2021-02-05 liuhongt <hongtao.liu@intel.com>
17243 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
17244 Remove m_GENERIC from ~list.
17245 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
17247 2021-02-04 David Malcolm <dmalcolm@redhat.com>
17250 * diagnostic-show-locus.c (compatible_locations_p): Require
17251 locations in the same macro map to be either both from the
17252 macro definition, or both from the macro arguments.
17254 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
17256 * config/aarch64/aarch64-simd-builtins.def: Add
17257 [su]mull_hi_lane[q] builtin generator macros.
17258 * config/aarch64/aarch64-simd.md
17259 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
17260 (aarch64_<su>mull_hi_lane<mode>): Define.
17261 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
17262 (aarch64_<su>mull_hi_laneq<mode>): Define.
17263 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
17264 builtin instead of inline asm.
17265 (vmull_high_lane_s32): Likewise.
17266 (vmull_high_lane_u16): Likewise.
17267 (vmull_high_lane_u32): Likewise.
17268 (vmull_high_laneq_s16): Likewise.
17269 (vmull_high_laneq_s32): Likewise.
17270 (vmull_high_laneq_u16): Likewise.
17271 (vmull_high_laneq_u32): Liekwise.
17273 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
17275 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
17276 builtin generator macros.
17277 * config/aarch64/aarch64-simd.md
17278 (aarch64_<su>mull_hi_n<mode>_insn): Define.
17279 (aarch64_<su>mull_hi_n<mode>): Define.
17280 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
17281 instead of inline asm.
17282 (vmull_high_n_s32): Likewise.
17283 (vmull_high_n_u16): Likewise.
17284 (vmull_high_n_u32): Likewise.
17286 2021-02-04 Richard Biener <rguenther@suse.de>
17288 PR tree-optimization/98855
17289 * tree-vect-loop.c (vectorizable_phi): Do not cost
17290 single-argument PHIs.
17291 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
17292 * tree-vect-stmts.c (vectorizable_bswap): Also perform
17293 costing for SLP operation.
17295 2021-02-04 Martin Liska <mliska@suse.cz>
17297 * doc/extend.texi: Mention -mprefer-vector-width in target
17300 2021-02-03 Martin Sebor <msebor@redhat.com>
17302 PR tree-optimization/98937
17303 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
17304 Flush pointer_query cache.
17306 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
17308 * config/rs6000/genfusion.pl (gen_2logical): Add missing
17309 fixes based on patch review.
17310 * config/rs6000/fusion.md: Regenerate file.
17312 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
17314 * config/rs6000/t-rs6000: Comment out auto generation of
17317 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
17319 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
17320 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
17321 (output_file_start): Add gfx908.
17322 * config/gcn/gcn.opt (gpu_type): Add gfx908.
17323 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
17324 (MULTILIB_DIRNAMES): Add gfx908.
17325 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
17326 (main): Recognize gfx908.
17327 * config/gcn/t-omp-device: Add gfx908.
17329 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17331 * config/aarch64/aarch64-simd-builtins.def: Add
17332 [su]mlsl_hi_lane[q] builtin macro generators.
17333 * config/aarch64/aarch64-simd.md
17334 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
17335 (aarch64_<su>mlsl_hi_lane<mode>): Define.
17336 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
17337 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
17338 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
17339 builtin instead of inline asm.
17340 (vmlsl_high_lane_s32): Likewise.
17341 (vmlsl_high_lane_u16): Likewise.
17342 (vmlsl_high_lane_u32): Likewise.
17343 (vmlsl_high_laneq_s16): Likewise.
17344 (vmlsl_high_laneq_s32): Likewise.
17345 (vmlsl_high_laneq_u16): Likewise.
17346 (vmlsl_high_laneq_u32): Likewise.
17347 (vmlal_high_laneq_u32): Likewise.
17349 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17351 * config/aarch64/aarch64-simd-builtins.def: Add
17352 [su]mlal_hi_lane[q] builtin generator macros.
17353 * config/aarch64/aarch64-simd.md
17354 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
17355 (aarch64_<su>mlal_hi_lane<mode>): Define.
17356 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
17357 (aarch64_<su>mlal_hi_laneq<mode>): Define.
17358 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
17359 builtin instead of inline asm.
17360 (vmlal_high_lane_s32): Likewise.
17361 (vmlal_high_lane_u16): Likewise.
17362 (vmlal_high_lane_u32): Likewise.
17363 (vmlal_high_laneq_s16): Likewise.
17364 (vmlal_high_laneq_s32): Likewise.
17365 (vmlal_high_laneq_u16): Likewise.
17366 (vmlal_high_laneq_u32): Likewise.
17368 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17370 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
17371 builtin generator macros.
17372 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
17374 (aarch64_<su>mlsl_hi_n<mode>): Define.
17375 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
17376 instead of inline asm.
17377 (vmlsl_high_n_s32): Likewise.
17378 (vmlsl_high_n_u16): Likewise.
17379 (vmlsl_high_n_u32): Likewise.
17381 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17383 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
17384 builtin generator macros.
17385 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
17387 (aarch64_<su>mlal_hi_n<mode>): Define.
17388 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
17389 instead of inline asm.
17390 (vmlal_high_n_s32): Likewise.
17391 (vmlal_high_n_u16): Likewise.
17392 (vmlal_high_n_u32): Likewise.
17394 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17396 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
17398 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
17400 (aarch64_<su>mlal_hi<mode>_insn): This.
17401 (aarch64_<su>mlal_hi<mode>): Define.
17402 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
17403 instead of inline asm.
17404 (vmlal_high_s16): Likewise.
17405 (vmlal_high_s32): Likewise.
17406 (vmlal_high_u8): Likewise.
17407 (vmlal_high_u16): Likewise.
17408 (vmlal_high_u32): Likewise.
17410 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
17412 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
17413 after calling alter_subreg() on a (mem).
17415 2021-02-03 Martin Liska <mliska@suse.cz>
17418 * lto-streamer-out.c (produce_lto_section): Fill up missing
17420 * lto-streamer.h (struct lto_section): Add _padding field.
17422 2021-02-03 Richard Biener <rguenther@suse.de>
17424 * lto-streamer.c (lto_get_section_name): Free temporary
17426 * tree-loop-distribution.c
17427 (loop_distribution::merge_dep_scc_partitions): Free edge data.
17429 2021-02-03 Jakub Jelinek <jakub@redhat.com>
17431 PR middle-end/97487
17432 * ifcvt.c (noce_can_force_operand): New function.
17433 (noce_emit_move_insn): Use it.
17434 (noce_try_sign_mask): Likewise. Formatting fix.
17436 2021-02-03 Jakub Jelinek <jakub@redhat.com>
17438 PR middle-end/97971
17439 * lra-constraints.c (process_alt_operands): For inline asm, don't call
17440 fatal_insn, but instead return false.
17442 2021-02-03 Jakub Jelinek <jakub@redhat.com>
17444 PR tree-optimization/98287
17445 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
17448 2021-02-03 Tamar Christina <tamar.christina@arm.com>
17450 PR tree-optimization/98928
17451 * tree-vect-loop.c (vect_analyze_loop_2): Change
17452 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
17453 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
17454 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
17455 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
17457 2021-02-02 Richard Biener <rguenther@suse.de>
17459 * gimple-loop-interchange.cc (prepare_data_references):
17461 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
17462 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
17463 * tree-vect-stmts.c (vectorizable_condition): Do not
17465 (vectorizable_comparison): Likewise.
17467 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17469 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
17470 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
17471 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
17472 (vrsqrteq_u32): Likewise.
17474 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17476 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
17477 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
17478 (aarch64_sqxtun2<mode>_be): Likewise.
17479 (aarch64_sqxtun2<mode>): Likewise.
17480 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
17481 (vqmovun_high_s32): Likewise.
17482 (vqmovun_high_s64): Likewise.
17483 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
17485 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17487 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
17489 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
17491 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17493 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
17494 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
17495 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
17496 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
17497 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
17498 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
17499 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
17500 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
17502 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17504 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
17505 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
17506 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
17508 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17510 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
17511 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
17513 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17515 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
17516 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
17517 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
17518 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
17519 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
17520 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
17521 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
17522 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
17523 NONE builtin flags.
17525 2021-02-02 Jakub Jelinek <jakub@redhat.com>
17527 PR tree-optimization/98848
17528 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
17529 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
17531 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
17534 * expr.c: Check mode before calling store_expr.
17536 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
17538 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
17540 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
17541 instruction using expression ior.
17542 (mve_vornq_u<mode>): New expander.
17543 (mve_vornq_f<mode>): Use ior code instead of unspec.
17544 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
17546 2021-02-02 Alexandre Oliva <oliva@adacore.com>
17548 * tree-nested.c (convert_nonlocal_reference_op): Move
17549 current_function_decl restore after re-gimplification.
17550 (convert_local_reference_op): Likewise.
17552 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17554 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
17556 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
17558 (aarch64_rshrn<mode>_insn_be): Likewise.
17559 (aarch64_rshrn<mode>): Likewise.
17560 (aarch64_rshrn2<mode>_insn_le): Likewise.
17561 (aarch64_rshrn2<mode>_insn_be): Likewise.
17562 (aarch64_rshrn2<mode>): Likewise.
17563 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
17564 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
17566 (vrshrn_high_n_s32): Likewise.
17567 (vrshrn_high_n_s64): Likewise.
17568 (vrshrn_high_n_u16): Likewise.
17569 (vrshrn_high_n_u32): Likewise.
17570 (vrshrn_high_n_u64): Likewise.
17571 (vrshrn_n_s16): Likewise.
17572 (vrshrn_n_s32): Likewise.
17573 (vrshrn_n_s64): Likewise.
17574 (vrshrn_n_u16): Likewise.
17575 (vrshrn_n_u32): Likewise.
17576 (vrshrn_n_u64): Likewise.
17578 2021-02-01 Sergei Trofimovich <siarheit@google.com>
17580 PR tree-optimization/98499
17581 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
17582 conservatively and assume all possible side-effects.
17584 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17586 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
17587 vec_unpacku_hi_): Define builtins.
17588 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
17590 (vmovl_high_s16): Likewise.
17591 (vmovl_high_s32): Likewise.
17592 (vmovl_high_u8): Likewise.
17593 (vmovl_high_u16): Likewise.
17594 (vmovl_high_u32): Likewise.
17596 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17598 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
17600 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
17602 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
17604 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
17606 (vabdl_s16): Likewise.
17607 (vabdl_s32): Likewise.
17608 (vabdl_u8): Likewise.
17609 (vabdl_u16): Likewise.
17610 (vabdl_u32): Likewise.
17611 * config/aarch64/iterators.md (ABDL): New int iterator.
17612 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
17614 2021-02-01 Martin Sebor <msebor@redhat.com>
17616 * tree.h (BLOCK_VARS): Add comment.
17617 (BLOCK_SUBBLOCKS): Same.
17618 (BLOCK_SUPERCONTEXT): Same.
17619 (BLOCK_ABSTRACT_ORIGIN): Same.
17620 (inlined_function_outer_scope_p): Same.
17622 2021-02-01 Martin Sebor <msebor@redhat.com>
17624 PR middle-end/97172
17625 * attribs.c (attr_access::free_lang_data): Define new function.
17626 * attribs.h (attr_access::free_lang_data): Declare new function.
17628 2021-02-01 Richard Biener <rguenther@suse.de>
17630 * vec.h (auto_vec::auto_vec): Add memory stat parameters
17632 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
17634 2021-02-01 Tamar Christina <tamar.christina@arm.com>
17636 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
17637 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
17639 2021-02-01 Richard Biener <rguenther@suse.de>
17641 PR rtl-optimization/98863
17642 * config/i386/i386-features.c (convert_scalars_to_vector):
17643 Set DF_RD_PRUNE_DEAD_DEFS.
17645 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
17647 * system.h (SIZE_MAX): Define if not already defined.
17649 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
17651 * config/rs6000/genfusion.pl (gen_2logical): New function to
17652 generate patterns for logical-logical fusion.
17653 * config/rs6000/fusion.md: Regenerated patterns.
17654 * config/rs6000/rs6000-cpus.def: Add
17655 OPTION_MASK_P10_FUSION_2LOGICAL.
17656 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17657 Enable logical-logical fusion for p10.
17658 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
17660 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
17662 * config/rs6000/rs6000.opt: Add periods to new AIX options.
17664 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
17666 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
17667 (mabi=vec-default): New.
17668 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
17669 __EXTABI__ for AIX Vector extended ABI.
17670 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
17672 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
17674 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
17676 2021-01-30 Jakub Jelinek <jakub@redhat.com>
17678 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
17679 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
17681 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
17684 * lra-constraints.c (in_class_p): Don't narrow class only for REG
17687 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
17689 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
17690 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
17691 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
17693 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
17695 PR tree-optimization/98866
17696 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
17697 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
17698 (gori_map::m_maybe_invariant): Rename from all_outgoing.
17699 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
17700 (gori_map::is_export_p): Ditto.
17701 (gori_map::calculate_gori): Ditto.
17702 (gori_compute::set_range_invariant): New.
17703 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
17704 invariant for pointers evaluating to [1, +INF].
17706 2021-01-29 Richard Biener <rguenther@suse.de>
17708 PR rtl-optimization/98863
17709 * config/i386/i386-features.c (remove_partial_avx_dependency):
17710 Do not perform DF analysis.
17711 (pass_data_remove_partial_avx_dependency): Remove
17714 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
17716 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
17717 builtin generator macros.
17718 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
17720 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
17721 instead of inline asm.
17722 (vmull_n_s32): Likewise.
17723 (vmull_n_u16): Likewise.
17724 (vmull_n_u32): Likewise.
17726 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17728 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
17730 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
17732 (aarch64_<sur>abdl2<mode>): ... This.
17733 (<sur>sadv16qi): Adjust use of above.
17734 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
17736 (vabdl_high_s16): Likewise.
17737 (vabdl_high_s32): Likewise.
17738 (vabdl_high_u8): Likewise.
17739 (vabdl_high_u16): Likewise.
17740 (vabdl_high_u32): Likewise.
17742 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17744 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
17746 (uabal2): Likewise.
17747 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
17749 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
17751 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
17753 (vabal_high_s16): Likewise.
17754 (vabal_high_s32): Likewise.
17755 (vabal_high_u8): Likewise.
17756 (vabal_high_u16): Likewise.
17757 (vabal_high_u32): Likewise.
17758 * config/aarch64/iterators.md (ABAL2): New mode iterator.
17759 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
17761 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17763 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
17766 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
17768 (aarch64_<sur>abal<mode>): ... This
17769 (<sur>sadv16qi): Adust use of the above.
17770 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
17772 (vabal_s16): Likewise.
17773 (vabal_s32): Likewise.
17774 (vabal_u8): Likewise.
17775 (vabal_u16): Likewise.
17776 (vabal_u32): Likewise.
17778 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17780 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
17782 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
17784 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
17786 (vaddlv_s16): Likewise.
17787 (vaddlv_u8): Likewise.
17788 (vaddlv_u16): Likewise.
17789 (vaddlvq_s8): Likewise.
17790 (vaddlvq_s16): Likewise.
17791 (vaddlvq_s32): Likewise.
17792 (vaddlvq_u8): Likewise.
17793 (vaddlvq_u16): Likewise.
17794 (vaddlvq_u32): Likewise.
17795 (vaddlv_s32): Likewise.
17796 (vaddlv_u32): Likewise.
17797 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
17798 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
17799 (Vwstype): New mode attribute.
17801 (VWIDE_S): Likewise.
17802 (USADDLV): New int iterator.
17803 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
17805 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
17807 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
17808 builtin generator macros.
17809 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
17811 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
17812 instead of inline asm.
17813 (vmlsl_lane_s32): Likewise.
17814 (vmlsl_lane_u16): Likewise.
17815 (vmlsl_lane_u32): Likewise.
17816 (vmlsl_laneq_s16): Likewise.
17817 (vmlsl_laneq_s32): Likewise.
17818 (vmlsl_laneq_u16): Likewise.
17819 (vmlsl_laneq_u32): Likewise.
17821 2021-01-29 Richard Biener <rguenther@suse.de>
17823 * doc/invoke.texi (--param max-gcse-memory): Document unit
17825 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
17826 * params.opt (--param max-gcse-memory): Adjust default and
17827 document unit of size.
17829 2021-01-29 Richard Biener <rguenther@suse.de>
17831 PR rtl-optimization/98863
17832 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
17833 HOST_WIDE_INT for the memory estimate.
17835 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
17836 Richard Biener <rguenther@suse.de>
17838 PR tree-optimization/97627
17839 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
17840 Do not analyze fake edges.
17842 2021-01-29 Richard Biener <rguenther@suse.de>
17844 PR rtl-optimization/98144
17845 * df.h (df_mir_bb_info): Add con_visited member.
17846 * df-problems.c (df_mir_alloc): Initialize con_visited,
17847 do not fully populate IN and OUT.
17848 (df_mir_reset): Likewise.
17849 (df_mir_confluence_0): Set con_visited.
17850 (df_mir_confluence_n): Properly handle implicitely
17851 fully populated IN and OUT as designated by con_visited
17852 and update con_visited accordingly.
17854 2021-01-29 Jakub Jelinek <jakub@redhat.com>
17857 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
17858 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
17859 && !TARGET_REALLY_IWMMXT to conditions.
17861 2021-01-29 Jakub Jelinek <jakub@redhat.com>
17864 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
17867 2021-01-28 Marek Polacek <polacek@redhat.com>
17870 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
17871 the main variant, maybe reset it in its variants too.
17872 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
17873 (check_aligned_type): Check if TYPE_USER_ALIGN match.
17875 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
17878 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
17879 of constant zero for comparisons.
17881 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
17883 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
17884 support for mapping built-in function names for long double
17885 built-in functions if long double is IEEE 128-bit.
17887 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
17889 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
17890 builtin generator macros.
17891 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
17893 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
17894 instead of inline asm.
17895 (vmlsl_n_s32): Likewise.
17896 (vmlsl_n_u16): Likewise.
17897 (vmlsl_n_u32): Likewise.
17899 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
17901 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
17902 builtin generator macros.
17903 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
17905 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
17906 instead of inline asm.
17907 (vmlal_n_s32): Likewise.
17908 (vmlal_n_u16): Likewise.
17909 (vmlal_n_u32): Likewise.
17911 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17913 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
17915 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
17917 (aarch64_shrn2<mode>_insn_be): Likewise.
17918 (aarch64_shrn2<mode>): Likewise.
17919 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
17921 (vshrn_high_n_s32): Likewise.
17922 (vshrn_high_n_s64): Likewise.
17923 (vshrn_high_n_u16): Likewise.
17924 (vshrn_high_n_u32): Likewise.
17925 (vshrn_high_n_u64): Likewise.
17927 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17929 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
17931 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
17933 (aarch64_shrn<mode>_insn_be): Likewise.
17934 (aarch64_shrn<mode>): Likewise.
17935 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
17937 (vshrn_n_s32): Likewise.
17938 (vshrn_n_s64): Likewise.
17939 (vshrn_n_u16): Likewise.
17940 (vshrn_n_u32): Likewise.
17941 (vshrn_n_u64): Likewise.
17942 * config/aarch64/iterators.md (vn_mode): New mode attribute.
17944 2021-01-28 Richard Biener <rguenther@suse.de>
17946 PR rtl-optimization/80960
17947 * dse.c (check_mem_read_rtx): Call get_addr on the
17950 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
17951 David Edelsohn <dje.gcc@gmail.com>
17954 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17955 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
17957 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
17959 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
17960 wrapper call rs6000_expand_vector_set_var for cleanup. Call
17961 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
17963 (rs6000_expand_vector_set_var): Delete.
17964 (rs6000_expand_vector_set_var_p9): Make static.
17965 (rs6000_expand_vector_set_var_p8): Make static.
17967 2021-01-28 Xing GUO <higuoxing@gmail.com>
17969 * common/config/riscv/riscv-common.c
17970 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
17971 when `p` extension exists.
17973 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
17975 PR rtl-optimization/97684
17976 * ira.c (ira): Call ira_set_pseudo_classes before
17977 update_equiv_regs when it is necessary.
17979 2021-01-27 Jakub Jelinek <jakub@redhat.com>
17982 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
17983 %w0, %w1 and %2 instead of %0, %1 and %2.
17985 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
17987 * config/rs6000/genfusion.pl: New script to generate
17988 define_insn_and_split patterns so combine can arrange fused
17989 instructions next to each other.
17990 * config/rs6000/fusion.md: New file, generated fused instruction
17991 patterns for combine.
17992 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
17993 (non_update_memory_operand): New predicate.
17994 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
17995 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
17997 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
17999 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18000 Automatically set OPTION_MASK_P10_FUSION and
18001 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
18002 (rs600_opt_masks): Allow -mpower10-fusion
18003 in function attributes.
18004 (address_is_non_pfx_d_or_x): New function.
18005 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
18006 * config/rs6000/rs6000.md: Include fusion.md.
18007 * config/rs6000/rs6000.opt: Add -mpower10-fusion
18008 and -mpower10-fusion-ld-cmpi.
18009 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
18011 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
18013 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
18014 builtin generator macros.
18015 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
18017 (aarch64_<su>mlal<mode>): This.
18018 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
18019 instead of inline asm.
18020 (vmlal_s16): Likewise.
18021 (vmlal_s32): Likewise.
18022 (vmlal_u8): Likewise.
18023 (vmlal_u16): Likewise.
18024 (vmlal_u32): Likewise.
18026 2021-01-27 Richard Biener <rguenther@suse.de>
18028 PR tree-optimization/98854
18029 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
18030 PHIs from scalars when the number of CTORs matches the
18031 number of children.
18033 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
18035 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
18037 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
18039 (aarch64_mls_n<mode>): This.
18040 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
18042 (vmls_n_s32): Likewise.
18043 (vmls_n_u16): Likewise.
18044 (vmls_n_u32): Likewise.
18045 (vmlsq_n_s16): Likewise.
18046 (vmlsq_n_s32): Likewise.
18047 (vmlsq_n_u16): Likewise.
18048 (vmlsq_n_u32): Likewise.
18050 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
18052 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
18054 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
18056 (vmls_s16): Likewise.
18057 (vmls_s32): Likewise.
18058 (vmls_u8): Likewise.
18059 (vmls_u16): Likewise.
18060 (vmls_u32): Likewise.
18061 (vmlsq_s8): Likewise.
18062 (vmlsq_s16): Likewise.
18063 (vmlsq_s32): Likewise.
18064 (vmlsq_u8): Likewise.
18065 (vmlsq_u16): Likewise.
18066 (vmlsq_u32): Likewise.
18068 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
18070 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
18072 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
18074 (aarch64_mla_n<mode>): This.
18075 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
18077 (vmla_n_s32): Likewise.
18078 (vmla_n_u16): Likewise.
18079 (vmla_n_u32): Likewise.
18080 (vmlaq_n_s16): Likewise.
18081 (vmlaq_n_s32): Likewise.
18082 (vmlaq_n_u16): Likewise.
18083 (vmlaq_n_u32): Likewise.
18085 2021-01-27 liuhongt <hongtao.liu@intel.com>
18088 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
18089 (*sse2_eq<mode>3): Ditto.
18091 2021-01-27 Jakub Jelinek <jakub@redhat.com>
18093 * tree-pass.h (PROP_trees): Rename to ...
18094 (PROP_gimple): ... this.
18095 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
18096 * passes.c (execute_function_dump, execute_function_todo,
18097 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
18098 * varpool.c (ctor_for_folding): Likewise.
18100 2021-01-27 Jakub Jelinek <jakub@redhat.com>
18102 PR tree-optimization/97260
18103 * varpool.c: Include tree-pass.h.
18104 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
18105 non-TREE_SIDE_EFFECTS automatic variables.
18107 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
18109 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
18111 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
18112 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
18113 (gen_compile_unit_die): Recognise C++23.
18115 2021-01-26 Jakub Jelinek <jakub@redhat.com>
18118 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
18121 2021-01-26 Jakub Jelinek <jakub@redhat.com>
18124 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
18125 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
18126 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
18128 2021-01-26 Richard Biener <rguenther@suse.de>
18130 * gimple-pretty-print.c (dump_binary_rhs): Handle
18131 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
18133 2021-01-26 Richard Biener <rguenther@suse.de>
18135 PR middle-end/98726
18136 * tree.h (vector_cst_int_elt): Remove.
18137 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
18140 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
18142 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
18143 for V64DFmode min/max reductions.
18145 2021-01-26 Jakub Jelinek <jakub@redhat.com>
18147 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
18148 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
18149 two halves, one with x and the other with const0_rtx, ordered
18150 depending on endianity.
18152 2021-01-26 Alexandre Oliva <oliva@adacore.com>
18154 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
18155 temporaries not seen in binding block, and not about to be
18156 added as gimple variables.
18158 2021-01-25 Martin Sebor <msebor@redhat.com>
18161 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
18163 2021-01-25 Martin Liska <mliska@suse.cz>
18165 * value-prof.c (get_nth_most_common_value): Use %s instead
18168 2021-01-25 Jakub Jelinek <jakub@redhat.com>
18171 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
18172 readelf -wi is able to read the emitted .debug_info back.
18173 * configure: Regenerated.
18175 2021-01-25 Martin Liska <mliska@suse.cz>
18177 PR gcov-profile/98739
18178 * common.opt: Add missing sign symbol.
18179 * value-prof.c (get_nth_most_common_value): Restore handling
18180 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
18181 PROFILE_REPRODUCIBILITY_MULTITHREADED.
18183 2021-01-25 Richard Biener <rguenther@suse.de>
18185 PR middle-end/98807
18186 * tree.c (vector_element_bits): Always use precision of
18187 the element type for boolean vectors.
18189 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
18191 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
18192 (ENDFILE_SPEC): Evaluate qnolinkcmds.
18194 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
18196 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
18197 nostartfiles handling since this is already done by
18198 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
18199 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
18200 is already done by LINK_COMMAND_SPEC.
18201 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
18202 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
18205 2021-01-25 Jakub Jelinek <jakub@redhat.com>
18208 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
18209 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
18210 value rather than host size_t.
18211 (fold_const_call): Change type of s2 from size_t to
18212 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
18213 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
18214 instead of s2 as last argument.
18216 2021-01-25 Tamar Christina <tamar.christina@arm.com>
18218 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
18219 VCMLA_OP, VCMUL_OP): New.
18220 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
18221 * config/arm/neon.md (cmul<conj_op><mode>3): New.
18222 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
18223 UNSPEC_VCMUL_CONJ): New.
18224 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
18225 cml<fcmac1><conj_op><mode>4): New.
18227 2021-01-23 Jakub Jelinek <jakub@redhat.com>
18230 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
18232 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
18234 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
18236 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
18238 (vmla_s16): Likewise.
18239 (vmla_s32): Likewise.
18240 (vmla_u8): Likewise.
18241 (vmla_u16): Likewise.
18242 (vmla_u32): Likewise.
18243 (vmlaq_s8): Likewise.
18244 (vmlaq_s16): Likewise.
18245 (vmlaq_s32): Likewise.
18246 (vmlaq_u8): Likewise.
18247 (vmlaq_u16): Likewise.
18248 (vmlaq_u32): Likewise.
18250 2021-01-22 David Malcolm <dmalcolm@redhat.com>
18252 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
18255 2021-01-22 Jakub Jelinek <jakub@redhat.com>
18258 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
18259 filenames to emit, still emit the required 0 index directory and
18260 filename entries that match DW_AT_comp_dir and DW_AT_name of the
18263 2021-01-22 Marek Polacek <polacek@redhat.com>
18266 * doc/invoke.texi: Update C++ ABI Version 15 description.
18268 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18270 PR tree-optimization/98766
18271 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
18272 comparing against type size with param_avoid_fma_max_bits.
18274 2021-01-22 Richard Biener <rguenther@suse.de>
18276 PR middle-end/98793
18277 * tree.c (vector_element_bits): Key single-bit bool vector on
18278 integer mode rather than not vector mode.
18280 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
18283 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18284 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
18286 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
18287 to call different path for P8 and P9.
18288 (rs6000_expand_vector_set_var_p9): New function.
18289 (rs6000_expand_vector_set_var_p8): New function.
18291 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
18295 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18296 Ajdust variable index vec_insert from address dereference to
18297 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
18298 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
18300 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
18302 2021-01-22 Martin Liska <mliska@suse.cz>
18304 PR gcov-profile/98739
18305 * profile.c (compute_value_histograms): Drop time profile for
18306 -fprofile-reproducible=multithreaded.
18308 2021-01-22 Nathan Sidwell <nathan@acm.org>
18310 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
18313 2021-01-22 Richard Biener <rguenther@suse.de>
18315 PR middle-end/98773
18316 * tree-data-ref.c (initalize_matrix_A): Revert previous
18317 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
18319 2021-01-22 Jakub Jelinek <jakub@redhat.com>
18321 PR tree-optimization/90248
18322 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
18323 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
18325 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
18326 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
18328 2021-01-22 Jakub Jelinek <jakub@redhat.com>
18330 PR tree-optimization/98255
18331 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
18332 extend index - low_bound from sizetype's precision rather than index
18334 (get_addr_base_and_unit_offset_1): Likewise.
18335 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
18336 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
18338 2021-01-22 Richard Biener <rguenther@suse.de>
18340 PR tree-optimization/98786
18341 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
18342 adding new uses of abnormals. Verify we deal with a conditional
18345 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18348 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
18350 2021-01-22 liuhongt <hongtao.liu@intel.com>
18354 * config/i386/sse.md (VI_128_256): New mode iterator.
18355 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
18356 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
18357 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
18358 define_insn_and_split to lower avx512 vector comparison to avx
18359 version when dest is vector.
18360 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
18361 define_insn_and_split for negating the comparison result.
18362 * config/i386/predicates.md (float_vector_all_ones_operand):
18364 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
18365 general NOT operator without UNSPEC_MASKOP.
18367 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
18369 PR rtl-optimization/98777
18370 * lra-int.h (lra_pmode_pseudo): New extern.
18371 * lra.c (lra_pmode_pseudo): New global.
18373 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
18375 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
18377 * fwprop.c (fwprop_propagation::classify_result): Allow
18378 (subreg (mem)) simplifications.
18380 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18382 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
18384 (aarch64_sqdmlal<mode>): ... This...
18385 (aarch64_sqdmlsl<mode>): ... And this.
18386 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
18387 (aarch64_sqdmlal_lane<mode>): ... This...
18388 (aarch64_sqdmlsl_lane<mode>): ... And this.
18389 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
18390 (aarch64_sqdmlsl_laneq<mode>): ... This...
18391 (aarch64_sqdmlal_laneq<mode>): ... And this.
18392 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
18393 (aarch64_sqdmlsl_n<mode>): ... This...
18394 (aarch64_sqdmlal_n<mode>): ... And this.
18395 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
18396 (aarch64_sqdmlal2<mode>_internal): ... This...
18397 (aarch64_sqdmlsl2<mode>_internal): ... And this.
18399 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
18401 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
18403 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
18406 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
18408 2021-01-21 liuhongt <hongtao.liu@intel.com>
18410 PR rtl-optimization/98694
18411 * regcprop.c (copy_value): If SRC had been assigned a mode
18412 narrower than the copy, we can't link DEST into the chain even
18413 they have same hard_regno_nregs(i.e. HImode/SImode in i386
18416 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18418 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
18419 Convert to define_insn_and_split. Split into simple move when moving
18422 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
18424 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
18425 Adjust comment. Simplify code.
18427 2021-01-20 Jakub Jelinek <jakub@redhat.com>
18430 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
18431 with DW_FORM_line_strp form.
18432 (prune_unused_types_update_strings): Don't add into debug_str_hash
18433 indirect strings with DW_FORM_line_strp form.
18434 (adjust_name_comp_dir): New function.
18435 (dwarf2out_finish): Call it on CU DIEs after resetting
18436 debug_line_str_hash.
18438 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
18440 PR rtl-optimization/98722
18441 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
18442 has no 3-op add insn to transform insns containing two pluses.
18444 2021-01-20 Richard Biener <rguenther@suse.de>
18446 * hwint.h (add_hwi): New function.
18447 (mul_hwi): Likewise.
18448 * tree-data-ref.c (initialize_matrix_A): Properly translate
18449 tree constants and avoid HOST_WIDE_INT_MIN.
18450 (lambda_matrix_row_add): Avoid undefined integer overflow
18451 and return true on such overflow.
18452 (lambda_matrix_right_hermite): Handle overflow from
18453 lambda_matrix_row_add gracefully. Simplify previous fix.
18454 (analyze_subscript_affine_affine): Likewise.
18456 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
18458 PR tree-optimization/96674
18459 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
18460 x >= y && y != XXX_MIN --> x > y - 1
18462 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
18464 PR tree-optimization/98535
18465 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
18466 If the high and low permutes are the same, remove the high permutes
18467 from the working set and only continue with the low ones.
18469 2021-01-20 Jakub Jelinek <jakub@redhat.com>
18471 PR tree-optimization/98721
18472 * builtins.c (access_ref::inform_access): Don't assume
18473 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
18474 object whenever allocfn is NULL, rather than only when DECL_P
18475 is true. Use %qE instead of %qD for that. Formatting fixes.
18477 2021-01-20 Richard Biener <rguenther@suse.de>
18479 PR tree-optimization/98758
18480 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
18481 (lambda_matrix_right_hermite): Avoid undefinedness with
18482 signed integer abs and multiplication.
18483 (analyze_subscript_affine_affine): Use lambda_int.
18485 2021-01-20 David Malcolm <dmalcolm@redhat.com>
18488 * dwarf2out.c (output_line_info): Rename static variable
18489 "generation", moving it out of the function to...
18490 (output_line_info_generation): New.
18491 (init_sections_and_labels): Likewise, renaming the variable to...
18492 (init_sections_and_labels_generation): New.
18493 (dwarf2out_c_finalize): Reset the new variables.
18495 2021-01-19 Martin Sebor <msebor@redhat.com>
18497 PR middle-end/98664
18498 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
18499 all functions, even if they're not declared artificial or inline.
18500 * tree.c (tree_inlined_location): Use macro expansion location
18501 only if scope traversal fails to expose one.
18503 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
18505 PR rtl-optimization/92294
18506 * alias.c (compare_base_symbol_refs): Take an extra parameter
18507 and add the distance between two symbols to it. Enshrine in
18508 comments that -1 means "either 0 or 1, but we can't tell
18509 which at compile time".
18510 (memrefs_conflict_p): Update call accordingly.
18511 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
18514 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18516 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
18517 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
18518 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
18519 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
18520 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
18521 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
18522 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
18523 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
18524 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
18525 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
18526 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
18527 sqmovun): Use NONE flags.
18529 2021-01-19 Richard Biener <rguenther@suse.de>
18532 * ipa-modref.c (analyze_stmt): Only record a summary for a
18535 2021-01-19 Richard Biener <rguenther@suse.de>
18537 PR middle-end/98638
18538 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
18540 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
18542 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
18543 built-in define __FIX_LEON3FT_TN0018.
18545 2021-01-19 Richard Biener <rguenther@suse.de>
18548 * tree-inline.c (tree_function_versioning): Set input_location
18549 to UNKNOWN_LOCATION throughout the function.
18551 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
18554 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
18556 2021-01-19 Martin Jambor <mjambor@suse.cz>
18559 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
18560 whether non-call exceptions allow removal of a statement.
18561 (isra_analyze_call): Pass the appropriate function to
18562 ssa_name_only_returned_p.
18564 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
18566 * config/riscv/arch-canonicalize (longext_sort): New function for
18567 sorting 'multi-letter'.
18568 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
18569 'alts'. The 'arch' may not be the first of 'alts'.
18570 (_expand_combination): Add underline for the 'ext' without '*'.
18571 This is because, a single-letter extension can always be treated well
18572 with a '_' prefix, but it cannot be separated out if it is appended
18575 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
18578 * ira.c (ira): Skip abnormal critical edge splitting.
18580 2021-01-18 Jakub Jelinek <jakub@redhat.com>
18582 PR tree-optimization/98727
18583 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
18584 second .MUL_OVERFLOW operand for signed multiplication with overflow
18585 checking if the second operand of multiplication is not constant.
18587 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
18589 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
18590 defaults to version 4.
18592 2021-01-18 David Malcolm <dmalcolm@redhat.com>
18594 * attribs.h (fndecl_dealloc_argno): New decl.
18595 * builtins.c (call_dealloc_argno): Split out second half of
18597 (fndecl_dealloc_argno): New.
18598 * doc/extend.texi (Common Function Attributes): Document the
18599 interaction between the analyzer and the malloc attribute.
18600 * doc/invoke.texi (Static Analyzer Options): Likewise.
18602 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
18604 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
18605 dwarf_version to 4.
18606 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
18608 2021-01-17 Martin Jambor <mjambor@suse.cz>
18611 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
18614 2021-01-17 Mark Wielaard <mark@klomp.org>
18616 * common.opt (gdwarf-): Init(5).
18617 * doc/invoke.texi (-gdwarf): Document default to 5.
18619 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
18621 * builtin-types.def
18622 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
18624 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
18625 ...this. Add extra argument.
18626 * gimplify.c (omp_default_clause): Ensure that event handle is
18627 firstprivate in a task region.
18628 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
18629 (gimplify_adjust_omp_clauses): Likewise.
18630 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
18631 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
18632 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
18633 if detach clause specified. Add detach argument when generating
18635 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
18637 (finish_taskreg_scan): Move field for variable containing the event
18638 handle to the front of the struct.
18639 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
18641 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
18642 OMP_CLAUSE_DETACH clause.
18643 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
18644 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
18645 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
18647 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
18649 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
18651 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
18653 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
18654 multilib directory names. Use MULTILIB_REQUIRED instead of
18655 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
18656 -mcustom-fpu-cfg=fph2 multilib.
18658 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
18660 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
18661 (nios2_init_fpu_configs): Provide register values for new
18662 -mcustom-fpu-cfg=fph2 option variant.
18663 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
18666 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
18668 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
18669 custom instruction warnings.
18671 2021-01-16 Jakub Jelinek <jakub@redhat.com>
18673 PR tree-optimization/96669
18674 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
18676 2021-01-16 Jakub Jelinek <jakub@redhat.com>
18678 PR tree-optimization/96271
18679 * passes.def: Pass false argument to first two pass_cd_dce
18680 instances and true to last instance. Add comment that
18681 last instance rewrites no longer addressed locals.
18682 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
18684 (pass_cd_dce::set_pass_param): New method.
18685 (pass_cd_dce::execute): Return TODO_update_address_taken from
18686 last cd_dce instance.
18688 2021-01-15 Carl Love <cel@us.ibm.com>
18690 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
18692 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
18693 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
18694 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
18695 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
18696 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
18697 Add builtin define.
18698 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
18699 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
18700 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
18701 New overloaded definitions.
18702 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
18703 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
18704 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
18705 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
18706 P10V_BUILTIN_MULHU_V4SI]: Add case
18707 statement for builtins.
18708 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
18709 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
18710 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
18711 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
18712 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
18713 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
18714 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
18715 Add define_insn, mode is VIlong.
18716 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
18717 Add builtin descriptions.
18719 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
18721 * final.c (final_start_function_1): Reset force_source_line.
18723 2021-01-15 Jakub Jelinek <jakub@redhat.com>
18725 PR tree-optimization/96669
18726 * match.pd (((1 << A) & 1) != 0 -> A == 0,
18727 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
18728 possibly different power of two constants and to right shift too.
18730 2021-01-15 Jakub Jelinek <jakub@redhat.com>
18732 PR tree-optimization/96681
18733 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
18734 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
18735 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
18736 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
18738 2021-01-15 Alexandre Oliva <oliva@adacore.com>
18740 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
18742 2021-01-15 Tamar Christina <tamar.christina@arm.com>
18744 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
18745 cmul<conj_op><mode>3): New.
18746 * config/aarch64/iterators.md (UNSPEC_FCMUL,
18747 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
18748 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
18749 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
18750 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
18751 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
18752 (rot_op): Renamed to conj_op.
18753 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
18754 cmul<conj_op><mode>3): New.
18755 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
18756 cmul<conj_op><mode>3): New.
18758 2021-01-15 David Malcolm <dmalcolm@redhat.com>
18762 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
18763 Escape the tempfile name when constructing the expected output.
18765 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18767 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
18769 (aarch64_<su>mlsl_hi<mode>): ... This.
18770 (aarch64_<su>mlsl_hi<mode>): Define.
18771 (*aarch64_<su>mlsl<mode): Rename to...
18772 (aarch64_<su>mlsl<mode): ... This.
18773 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
18774 smlsl_hi, umlsl_hi): Define builtins.
18775 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
18776 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
18777 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
18778 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
18780 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
18782 * config/i386/i386-c.c (ix86_target_macros):
18783 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
18785 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
18788 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
18789 * Makefile.in (RTL_SSA_H): New variable.
18790 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
18791 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
18792 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
18794 * config/aarch64/aarch64-cc-fusion.cc: New file.
18796 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
18798 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
18799 calling cancel_changes for changes that no longer exist.
18801 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
18803 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
18804 (function_info::reg_defs): ...this.
18805 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
18806 (function_info::reg_defs): ...this.
18808 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18811 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
18813 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18816 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18819 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
18821 2021-01-15 Richard Biener <rguenther@suse.de>
18823 PR tree-optimization/96376
18824 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
18825 for VMAT_INVARIANT.
18827 2021-01-15 Martin Liska <mliska@suse.cz>
18829 * doc/install.texi: Document that some tests need pytest module.
18830 * doc/sourcebuild.texi: Likewise.
18832 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18835 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
18837 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18839 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
18840 (mve_vshrq_n_u<mode>_imm): Likewise.
18841 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
18842 * config/arm/vec-common.md: ... here.
18844 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18846 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
18848 * config/arm/neon.md (vashl<mode>3): Delete.
18849 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
18850 (vasl<mode>3): New expander.
18852 2021-01-15 Richard Biener <rguenther@suse.de>
18854 PR tree-optimization/98685
18855 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
18856 of vector extern defs.
18858 2021-01-14 David Malcolm <dmalcolm@redhat.com>
18861 * diagnostic.c (diagnostic_kind_text): Break out this array
18863 (diagnostic_build_prefix): ...here.
18864 (fancy_abort): Detect when diagnostic_initialize has not yet been
18865 called and fall back to a minimal implementation of printing the
18866 ICE, rather than segfaulting in internal_error.
18868 2021-01-14 David Malcolm <dmalcolm@redhat.com>
18870 * diagnostic.c (diagnostic_initialize): Eliminate
18871 parseable_fixits_p in favor of initializing extra_output_kind from
18872 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
18873 (convert_column_unit): New function, split out from...
18874 (diagnostic_converted_column): ...this.
18875 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
18876 Use them to call convert_column_unit on the column values.
18877 (diagnostic_report_diagnostic): Eliminate conditional on
18878 parseable_fixits_p in favor of a switch statement on
18879 extra_output_kind, passing the appropriate values to the new
18880 params of print_parseable_fixits.
18881 (selftest::test_print_parseable_fixits_none): Update for new
18882 params of print_parseable_fixits.
18883 (selftest::test_print_parseable_fixits_insert): Likewise.
18884 (selftest::test_print_parseable_fixits_remove): Likewise.
18885 (selftest::test_print_parseable_fixits_replace): Likewise.
18886 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
18888 (selftest::diagnostic_c_tests): Call it.
18889 * diagnostic.h (enum diagnostics_extra_output_kind): New.
18890 (diagnostic_context::parseable_fixits_p): Delete field in favor
18892 (diagnostic_context::extra_output_kind): ...this new field.
18893 * doc/invoke.texi (Environment Variables): Add
18894 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
18895 * opts.c (common_handle_option): Update handling of
18896 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
18899 2021-01-14 Tamar Christina <tamar.christina@arm.com>
18901 * tree-vect-slp-patterns.c (class complex_operations_pattern,
18902 complex_operations_pattern::matches,
18903 complex_operations_pattern::recognize,
18904 complex_operations_pattern::build): New.
18905 (slp_patterns): Use it.
18907 2021-01-14 Tamar Christina <tamar.christina@arm.com>
18909 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
18910 * optabs.def (cmls_optab, cmls_conj_optab): New.
18911 * doc/md.texi: Document them.
18912 * tree-vect-slp-patterns.c (class complex_fms_pattern,
18913 complex_fms_pattern::matches, complex_fms_pattern::recognize,
18914 complex_fms_pattern::build): New.
18916 2021-01-14 Tamar Christina <tamar.christina@arm.com>
18918 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
18919 * optabs.def (cmla_optab, cmla_conj_optab): New.
18920 * doc/md.texi: Document them.
18921 * tree-vect-slp-patterns.c (vect_match_call_p,
18922 class complex_fma_pattern, vect_slp_reset_pattern,
18923 complex_fma_pattern::matches, complex_fma_pattern::recognize,
18924 complex_fma_pattern::build): New.
18926 2021-01-14 Tamar Christina <tamar.christina@arm.com>
18928 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
18929 * optabs.def (cmul_optab, cmul_conj_optab): New.
18930 * doc/md.texi: Document them.
18931 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
18932 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
18933 vect_build_combine_node, class complex_mul_pattern,
18934 complex_mul_pattern::matches, complex_mul_pattern::recognize,
18935 complex_mul_pattern::build): New.
18937 2021-01-14 Tamar Christina <tamar.christina@arm.com>
18939 * tree-vect-slp.c (optimize_load_redistribution_1): New.
18940 (optimize_load_redistribution, vect_is_slp_load_node): New.
18941 (vect_match_slp_patterns): Use it.
18943 2021-01-14 Tamar Christina <tamar.christina@arm.com>
18945 * tree-vect-slp-patterns.c (complex_add_pattern::build):
18948 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
18950 * config/gcn/mkoffload.c (main): Create an offload image only in
18951 64-bit configurations.
18953 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
18956 * config/i386/i386-options.c (ix86_option_override_internal):
18957 Issue an error for -fcf-protection with CF_BRANCH when compiling
18958 for 32-bit non-TARGET_CMOV targets.
18960 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
18963 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
18964 Remove declaration and initialization of shadow variable "ret".
18965 (ix86_option_override_internal): Remove delcaration of
18966 shadow variable "i". Redeclare shadowed variable to unsigned.
18967 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
18968 * config/i386/i386-builtins.c (get_builtin_code_for_version):
18969 Update for redeclaration.
18970 * config/i386/i386.h (pta_size): Ditto.
18972 2021-01-14 Richard Biener <rguenther@suse.de>
18974 PR tree-optimization/98674
18975 * tree-data-ref.c (base_supports_access_fn_components_p): New.
18976 (initialize_data_dependence_relation): For two bases without
18977 possible access fns resort to type size equality when determining
18978 shape compatibility.
18980 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18983 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
18984 <=, >= operators in vcle and vcge intrinsics respectively.
18985 * config/arm/arm_neon_builtins.def: Remove entry for
18988 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
18991 * config/i386/i386-options.c (ix86_function_specific_save):
18992 Remove redundant assignment to opts->x_ix86_branch_cost.
18993 * config/i386/i386.c (ix86_prefetch_sse):
18994 Rename from x86_prefetch_sse. Update all uses.
18995 * config/i386/i386.h: Update for rename.
18996 * config/i386/i386-options.h: Ditto.
18998 2021-01-14 Jakub Jelinek <jakub@redhat.com>
19001 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
19002 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
19003 Use Bm instead of m for non-avx. Add isa attribute.
19005 2021-01-14 Jakub Jelinek <jakub@redhat.com>
19007 PR tree-optimization/96688
19008 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
19009 ~X can be simplified.
19011 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
19013 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
19014 IFN_LOAD_LANES results.
19016 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19018 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
19020 (aarch64_xtn<mode>): Likewise.
19021 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
19024 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
19026 (vmovl_s16): Likewise.
19027 (vmovl_s32): Likewise.
19028 (vmovl_u8): Likewise.
19029 (vmovl_u16): Likewise.
19030 (vmovl_u32): Likewise.
19031 (vmovn_s16): Likewise.
19032 (vmovn_s32): Likewise.
19033 (vmovn_s64): Likewise.
19034 (vmovn_u16): Likewise.
19035 (vmovn_u32): Likewise.
19036 (vmovn_u64): Likewise.
19038 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19040 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
19042 (aarch64_<su>qxtn2<mode>_be): Likewise.
19043 (aarch64_<su>qxtn2<mode>): Likewise.
19044 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
19046 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
19047 (su): Handle ss_truncate and us_truncate.
19048 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
19050 (vqmovn_high_s32): Likewise.
19051 (vqmovn_high_s64): Likewise.
19052 (vqmovn_high_u16): Likewise.
19053 (vqmovn_high_u32): Likewise.
19054 (vqmovn_high_u64): Likewise.
19056 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19058 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
19060 (aarch64_xtn2<mode>_be): Likewise.
19061 (aarch64_xtn2<mode>): Likewise.
19062 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
19064 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
19066 (vmovn_high_s32): Likewise.
19067 (vmovn_high_s64): Likewise.
19068 (vmovn_high_u16): Likewise.
19069 (vmovn_high_u32): Likewise.
19070 (vmovn_high_u64): Likewise.
19072 2021-01-13 Stafford Horne <shorne@gmail.com>
19074 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
19076 2021-01-13 Stafford Horne <shorne@gmail.com>
19078 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
19080 2021-01-13 Stafford Horne <shorne@gmail.com>
19082 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
19083 define for __or1k_hard_float__.
19085 2021-01-13 Stafford Horne <shorne@gmail.com>
19087 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
19088 (PROFILE_HOOK): Define to call _mcount.
19089 (FUNCTION_PROFILER): Change from abort to no-op.
19091 2021-01-13 Jakub Jelinek <jakub@redhat.com>
19093 PR tree-optimization/96691
19094 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
19095 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
19096 (~D ^ C) or (D ^ C) can be simplified.
19098 2021-01-13 Richard Biener <rguenther@suse.de>
19100 PR tree-optimization/92645
19101 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
19102 until after vector lowering.
19104 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
19106 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
19108 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
19109 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
19111 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
19113 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
19115 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
19116 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
19118 2021-01-13 Richard Biener <rguenther@suse.de>
19120 PR tree-optimization/92645
19121 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
19122 BIT_FIELD_REF argument.
19123 (vect_build_slp_tree_2): Record the desired vector type
19124 on the external vector def.
19125 (vectorizable_slp_permutation): Handle required punning
19126 of existing vector defs.
19128 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
19130 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
19132 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
19134 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
19136 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
19138 * config.gcc [$target == *-*-gnu*]: Enable
19139 'default_gnu_indirect_function'.
19141 2021-01-13 Jakub Jelinek <jakub@redhat.com>
19144 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
19145 registers before calling targetm.vectorize.vec_perm_const, only after
19147 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
19148 two argument permutation when one operand is zero vector and only
19149 after that force operands into registers.
19150 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
19151 define_insn_and_split pattern.
19152 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
19153 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
19154 (*avx2_zero_extendv8hiv8si2_1): Likewise.
19155 (*avx512f_zero_extendv8siv8di2_1): Likewise.
19156 (*avx2_zero_extendv4siv4di2_1): Likewise.
19157 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
19159 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
19160 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
19161 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
19162 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
19163 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
19164 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
19166 2021-01-13 Martin Liska <mliska@suse.cz>
19168 PR tree-optimization/98455
19169 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
19170 Record also virtual PHIs.
19171 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
19174 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
19176 * doc/invoke.texi (C++ Modules): Fix typos.
19178 2021-01-13 Richard Biener <rguenther@suse.de>
19180 PR tree-optimization/98640
19181 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
19182 handle plus or minus from a truncated operand to be
19185 2021-01-13 Jakub Jelinek <jakub@redhat.com>
19188 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
19189 define_insn_and_split patterns.
19190 (splitter after *btr<mode>_2): New splitter.
19192 2021-01-13 Martin Liska <mliska@suse.cz>
19195 * cgraphunit.c (analyze_functions): Remove dead code.
19197 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
19199 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
19200 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
19201 (a64fx_regmove_cost, a64fx_vector_cost): New.
19202 (a64fx_tunings): Use the new added cost tables.
19204 2021-01-13 Jakub Jelinek <jakub@redhat.com>
19207 * config/i386/predicates.md (pmovzx_parallel): New predicate.
19208 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
19209 define_insn_and_split pattern.
19210 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
19211 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
19213 2021-01-13 Julian Brown <julian@codesourcery.com>
19215 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
19216 to fix v0 register.
19218 2021-01-13 Julian Brown <julian@codesourcery.com>
19220 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
19223 2021-01-13 Julian Brown <julian@codesourcery.com>
19225 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
19226 for reciprocal-approximation instructions.
19227 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
19228 refinement and division result.
19229 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
19231 2021-01-13 Julian Brown <julian@codesourcery.com>
19233 * config/gcn/gcn-valu.md (subdf): Rename to...
19236 2021-01-12 Martin Liska <mliska@suse.cz>
19238 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
19240 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
19242 * function-abi.h: Fix typo.
19244 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
19248 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
19249 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
19250 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
19251 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
19252 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
19253 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
19254 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
19255 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
19256 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
19257 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
19258 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
19259 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
19260 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
19261 (ARM_HAVE_V2DI_LDST): Likewise.
19262 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
19263 (*movmisalign<mode>_mve_load): New pattern.
19264 * config/arm/neon.md (movmisalign<mode>): Move to ...
19265 * config/arm/vec-common.md: ... here.
19267 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
19270 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
19271 of pattern 'plus (plus (hard reg, const), pseudo)'.
19273 2021-01-12 Richard Biener <rguenther@suse.de>
19275 PR tree-optimization/98550
19276 * tree-vect-slp.c (vect_record_max_nunits): Check whether
19277 the group size is a multiple of the vector element count.
19278 (vect_build_slp_tree_1): When we need to fail because
19279 the vector type choosen causes unrolling do so lazily
19280 without affecting matches only at the end to guide group splitting.
19282 2021-01-12 Martin Liska <mliska@suse.cz>
19285 * optc-save-gen.awk: Compare also n_target_save vars with
19288 2021-01-12 Martin Liska <mliska@suse.cz>
19290 * gcov.c (source_info::debug): New.
19291 (print_usage): Add --debug (-D) option.
19292 (process_args): Likewise.
19293 (generate_results): Call src->debug after
19294 accumulate_line_counts.
19295 (read_graph_file): Properly assign id for EXIT_BLOCK.
19296 * profile.c (branch_prob): Dump function body before it is
19299 2021-01-12 Jakub Jelinek <jakub@redhat.com>
19301 PR tree-optimization/98629
19302 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
19303 unless returning non-zero.
19305 2021-01-12 Jakub Jelinek <jakub@redhat.com>
19307 PR tree-optimization/95731
19308 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
19309 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
19310 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
19311 only after optimize_range_tests_var_bound.
19313 2021-01-12 Jakub Jelinek <jakub@redhat.com>
19315 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
19316 * configure: Regenerated.
19318 2021-01-12 liuhongt <hongtao.liu@intel.com>
19321 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
19323 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
19326 2021-01-12 Alexandre Oliva <oliva@adacore.com>
19328 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
19330 (auto_end_imm_use_stmt_traverse): New struct.
19331 (FOR_EACH_IMM_USE_STMT): Use it.
19332 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
19334 * gimple-ssa-strength-reduction.c: ... here, ...
19335 * graphite-scop-detection.c: ... here, ...
19336 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
19337 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
19338 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
19339 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
19340 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
19341 * tree-vect-slp.c: ... and here, ...
19342 * doc/tree-ssa.texi: ... and the example here.
19344 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19346 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
19347 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
19348 (*sdiv_pow2<mode>3): New pattern.
19349 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
19350 Wrap the ASRD in an UNSPEC_PRED_X.
19351 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
19352 predicate with a constant PTRUE, if it isn't already.
19353 (*cond_<sve_int_op><mode>_z): Replace with...
19354 (*cond_<sve_int_op><mode>_any): ...this new pattern.
19356 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19358 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
19359 SVE_FULL_I to SVE_I.
19360 (*cond_bic<mode>_any): Likewise.
19362 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19364 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
19365 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
19368 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19370 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
19371 SVE_FULL_I to SVE_I.
19372 (*aarch64_cond_<su>abd<mode>_2): Likewise.
19373 (*aarch64_cond_<su>abd<mode>_any): Likewise.
19374 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
19375 for the max and min but not for the minus.
19376 (*aarch64_cond_<su>abd<mode>_3): New pattern.
19378 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19380 * config/aarch64/iterators.md (SVE_24I): New iterator.
19381 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
19382 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
19384 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19386 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
19387 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
19389 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
19390 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
19391 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
19392 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
19394 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19396 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
19397 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
19398 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
19401 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19403 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
19404 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
19405 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
19407 2021-01-11 Martin Liska <mliska@suse.cz>
19410 * symtab-clones.h (clone_info::release): Release
19411 symtab::m_clones with ggc_delete as it's a GGC memory.
19413 2021-01-11 Matthias Klose <doko@ubuntu.com>
19415 * Makefile.in (LINK_PROGRESS): Show the link target.
19417 2021-01-11 Richard Biener <rguenther@suse.de>
19419 PR tree-optimization/91403
19420 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
19421 single-element interleaving group size at 4096 elements.
19423 2021-01-11 Richard Biener <rguenther@suse.de>
19425 PR tree-optimization/98526
19426 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
19427 of the actual reduction op for the regular case.
19428 (vectorizable_reduction): Cost the stmts
19429 vect_transform_reduction produces here.
19431 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
19433 * tree-ssa-forwprop.c (simplify_vector_constructor): For
19434 big-endian, use UNPACK[_FLOAT]_HI.
19436 2021-01-11 Tamar Christina <tamar.christina@arm.com>
19438 * tree-vect-slp-patterns.c (class complex_pattern,
19439 class complex_add_pattern): Add parameters to matches.
19440 (complex_add_pattern::build): Free memory.
19441 (complex_add_pattern::matches): Move validation end of match.
19442 (complex_add_pattern::recognize): Likewise.
19444 2021-01-11 Tamar Christina <tamar.christina@arm.com>
19446 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
19448 2021-01-11 Tamar Christina <tamar.christina@arm.com>
19450 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
19452 2021-01-11 Jakub Jelinek <jakub@redhat.com>
19454 PR tree-optimization/95867
19455 * tree-ssa-math-opts.h: New header.
19456 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
19457 (powi_as_mults): No longer static. Use build_one_cst instead of
19458 build_real. Formatting fix.
19459 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
19460 (attempt_builtin_powi): Handle multiplication reassociation without
19461 powi_fndecl using powi_as_mults.
19462 (reassociate_bb): For integral types don't require
19463 -funsafe-math-optimizations to call attempt_builtin_powi.
19465 2021-01-11 Jakub Jelinek <jakub@redhat.com>
19467 PR tree-optimization/95852
19468 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
19469 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
19470 allow in the bb any of the stmts in that vector, div_stmt and
19471 up to 3 cast stmts.
19472 (arith_cast_equal_p): New function.
19473 (arith_overflow_check_p): Add cast_stmt argument, handle signed
19474 multiply overflow checks.
19475 (match_arith_overflow): Adjust caller. Handle signed multiply
19478 2021-01-11 Jakub Jelinek <jakub@redhat.com>
19480 PR tree-optimization/95852
19481 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
19482 (uaddsub_overflow_check_p): Renamed to ...
19483 (arith_overflow_check_p): ... this. Handle also multiplication
19484 with overflow check.
19485 (match_uaddsub_overflow): Renamed to ...
19486 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
19487 also multiplication with overflow check. Adjust function comment.
19488 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
19489 match_arith_overflow also for MULT_EXPR.
19491 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19493 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
19494 __builtin_convertvector.
19495 (vmovl_s16): Likewise.
19496 (vmovl_s32): Likewise.
19497 (vmovl_u8): Likewise.
19498 (vmovl_u16): Likewise.
19499 (vmovl_u32): Likewise.
19500 (vmovn_s16): Likewise.
19501 (vmovn_s32): Likewise.
19502 (vmovn_s64): Likewise.
19503 (vmovn_u16): Likewise.
19504 (vmovn_u32): Likewise.
19505 (vmovn_u64): Likewise.
19507 2021-01-11 Martin Liska <mliska@suse.cz>
19509 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
19510 (if_chain::is_beneficial): Delete clusters
19511 (find_conditions): Make second argument of conditions_in_bbs a
19512 pointer so that we control over it's lifetime.
19513 (pass_if_to_switch::execute): Delete them.
19515 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
19517 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
19520 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
19522 * config/vax/vax.md (cc): Remove mode attribute.
19523 (subst_<cc>, subst_f<cc>): Rename to...
19524 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
19525 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
19526 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
19527 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
19529 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
19531 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
19532 `const_double_zero'.
19534 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
19536 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
19537 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
19540 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
19542 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
19544 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
19545 with `const_double_zero'.
19546 * doc/rtl.texi (Constant Expression Types): Document it.
19548 2021-01-09 Jakub Jelinek <jakub@redhat.com>
19551 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
19552 POINTER_DIFF_EXPR to be any integral type.
19554 2021-01-09 Jakub Jelinek <jakub@redhat.com>
19556 PR rtl-optimization/98603
19557 * function.c (instantiate_virtual_regs_in_insn): For asm goto
19558 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
19559 if any, set ASM_OPERANDS mode to VOIDmode and change
19560 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
19562 2021-01-09 Alexandre Oliva <oliva@gnu.org>
19565 * final.c (notice_source_line): Narrow down the condition to
19566 skip a line-0 marker.
19568 2021-01-08 Sergei Trofimovich <siarheit@google.com>
19570 * ipa-modref.c (merge_call_side_effects): Fix
19571 linebreak split by reordering two print calls.
19573 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
19575 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
19576 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
19577 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
19578 consistency, fix constraint.
19580 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
19582 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
19583 callables instead of mask values.
19584 (struct target_flag_set_p): New predicate.
19585 (s390_cpu_cpp_builtins_internal): Define or undefine
19586 __LONG_DOUBLE_VX__ macro.
19588 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
19591 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
19592 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
19595 2021-01-08 Richard Biener <rguenther@suse.de>
19597 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
19599 2021-01-08 Richard Biener <rguenther@suse.de>
19601 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
19602 (vect_build_slp_tree): On cache hit release the matched
19603 scalar stmts vector.
19604 * tree-vect-stmts.c (vectorizable_store): Properly free
19605 vec_oprnds before possibly gathering them again.
19607 2021-01-08 Richard Biener <rguenther@suse.de>
19609 PR tree-optimization/98544
19610 * tree-vect-slp.c (vect_optimize_slp): Always materialize
19611 permutes at a permute node.
19613 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
19616 * config/i386/i386.c (x86_function_profiler): Use R10 to call
19617 mcount in large model. Sorry for large model with PIC.
19619 2021-01-08 Jakub Jelinek <jakub@redhat.com>
19622 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
19623 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
19624 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
19625 TargetSave and initialize for variables with enum types.
19626 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
19627 mstack-protector-guard-symbol=): Add Save.
19628 * config/i386/i386-options.c (ix86_function_specific_save,
19629 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
19630 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
19631 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
19632 x_ix86_veclibabi_type.
19634 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
19636 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
19637 SVE_FULL_I to SVE_I.
19638 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
19640 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
19642 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
19643 SVE_FULL_I to SVE_I.
19644 (*cond_uxt<mode>_any): Likewise.
19646 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19648 * config/aarch64/iterators.md (Vwhalf): New iterator.
19649 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
19651 (aarch64_<sur>adalp<mode>): ... This. Make more
19653 (<sur>sadv16qi): Adjust callsite of the above.
19654 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
19656 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
19658 (vpadal_s16): Likewise.
19659 (vpadal_u8): Likewise.
19660 (vpadal_u16): Likewise.
19661 (vpadalq_s8): Likewise.
19662 (vpadalq_s16): Likewise.
19663 (vpadalq_s32): Likewise.
19664 (vpadalq_u8): Likewise.
19665 (vpadalq_u16): Likewise.
19666 (vpadalq_u32): Likewise.
19668 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19670 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
19672 (aarch64_<su>abd<mode>): ... This.
19673 (<sur>sadv16qi): Adjust callsite of the above.
19674 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
19676 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
19678 (vabd_s16): Likewise.
19679 (vabd_s32): Likewise.
19680 (vabd_u8): Likewise.
19681 (vabd_u16): Likewise.
19682 (vabd_u32): Likewise.
19683 (vabdq_s8): Likewise.
19684 (vabdq_s16): Likewise.
19685 (vabdq_s32): Likewise.
19686 (vabdq_u8): Likewise.
19687 (vabdq_u16): Likewise.
19688 (vabdq_u32): Likewise.
19690 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19692 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
19694 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
19695 (vaba_s16): Likewise.
19696 (vaba_s32): Likewise.
19697 (vaba_u8): Likewise.
19698 (vaba_u16): Likewise.
19699 (vaba_u32): Likewise.
19700 (vabaq_s8): Likewise.
19701 (vabaq_s16): Likewise.
19702 (vabaq_s32): Likewise.
19703 (vabaq_u8): Likewise.
19704 (vabaq_u16): Likewise.
19705 (vabaq_u32): Likewise.
19707 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19709 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
19710 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
19711 Change RTL pattern to match.
19713 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
19715 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
19716 * config/riscv/riscv-c.c (riscv-subset.h): New.
19717 (INCLUDE_STRING): Define.
19718 (riscv_cpu_cpp_builtins): Add new style architecture extension
19720 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
19721 (riscv_subset_list::end): New.
19722 (riscv_current_subset_list): New.
19724 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
19726 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
19727 Move to riscv-subset.h.
19728 (struct riscv_subset_t): Ditto.
19729 (class riscv_subset_list): Ditto.
19730 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
19731 from riscv-common.c.
19732 (struct riscv_subset_t): Ditto.
19733 (class riscv_subset_list): Ditto.
19734 * config/riscv/t-riscv ($(common_out_file)): Add file
19737 2021-01-07 Jakub Jelinek <jakub@redhat.com>
19740 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
19741 New define_insn patterns.
19743 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
19745 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
19746 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
19747 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
19749 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
19751 PR tree-optimization/98560
19752 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
19753 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
19755 (vec_cond_direct): Likewise argument 2.
19756 (vec_condu_direct, vec_condeq_direct): Delete.
19757 (expand_vect_cond_optab_fn): Rename to...
19758 (expand_vec_cond_optab_fn): ...this, replacing old macro.
19759 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
19760 (expand_vect_cond_mask_optab_fn): Rename to...
19761 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
19762 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
19764 (direct_vec_cond_optab_supported_p): Likewise.
19765 (direct_vec_condu_optab_supported_p): Delete.
19766 (direct_vec_condeq_optab_supported_p): Delete.
19767 * gimple-isel.cc: Include internal-fn.h.
19768 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
19771 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
19773 PR tree-optimization/98560
19774 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
19775 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
19777 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
19779 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
19780 rotate_insn and optab code attributes.
19781 Update all uses to merged code attribute.
19782 * config/i386/sse.md: Update all uses to merged code attribute.
19783 * config/i386/mmx.md: Update all uses to merged code attribute.
19785 2021-01-07 Jakub Jelinek <jakub@redhat.com>
19787 PR tree-optimization/98568
19788 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
19789 (bswap_replace): Use it.
19791 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
19793 PR rtl-optimization/97978
19794 * lra-int.h (lra_hard_reg_split_p): New external.
19795 * lra.c (lra_hard_reg_split_p): New global.
19796 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
19797 * lra-assigns.c (lra_assign): Don't check allocation correctness
19798 after hard reg splitting.
19800 2021-01-06 Martin Sebor <msebor@redhat.com>
19803 * builtins.c (new_delete_mismatch_p): New overload.
19804 (new_delete_mismatch_p (tree, tree)): Call it.
19806 2021-01-06 Alexandre Oliva <oliva@adacore.com>
19808 * Makefile.in (T_GLIMITS_H): New.
19809 (stmp-int-hdrs): Depend on it, use it.
19810 * config/t-vxworks (T_GLIMITS_H): Override it.
19811 (vxw-glimits.h): New.
19813 2021-01-06 Richard Biener <rguenther@suse.de>
19815 PR tree-optimization/98513
19816 * value-range.cc (intersect_ranges): Compare the upper bounds
19817 for the expected relation.
19819 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19822 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
19824 * doc/standards.texi (HSAIL): Remove section.
19826 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
19828 * configure: Re-generate.
19830 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19832 * doc/invoke.texi (-std=c++20): Adjust for the publication of
19833 ISO 14882:2020 standard.
19834 * doc/standards.texi: Likewise.
19836 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19838 PR tree-optimization/94802
19839 * expr.h (maybe_optimize_sub_cmp_0): Declare.
19840 * expr.c: Include tree-pretty-print.h and flags.h.
19841 (maybe_optimize_sub_cmp_0): New function.
19842 (do_store_flag): Use it.
19843 * cfgexpand.c (expand_gimple_cond): Likewise.
19845 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
19847 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
19848 * rtlanal.c (simple_regno_set): Tweak description to clarify the
19851 2021-01-05 Richard Biener <rguenther@suse.de>
19853 PR tree-optimization/98516
19854 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
19855 lanes when materializing on a VEC_PERM node.
19856 (vectorizable_slp_permutation): Dump the permute properly.
19858 2021-01-05 Richard Biener <rguenther@suse.de>
19860 * tree-vect-slp.c (vect_slp_region): Move debug counter
19861 to cover individual subgraphs.
19863 2021-01-05 Richard Biener <rguenther@suse.de>
19865 PR tree-optimization/98428
19866 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
19867 vector lane extracts for loop vectorization.
19869 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19871 PR tree-optimization/98514
19872 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
19874 (operand_rank): Change type from hash_map<tree, long> to
19875 hash_map<tree, int64_t>.
19876 (phi_rank): Change return type from long to int64_t.
19877 (loop_carried_phi): Change block_rank variable type from long to
19879 (propagate_rank): Change return type, rank parameter type and
19880 op_rank variable type from long to int64_t.
19881 (find_operand_rank): Change return type from long to int64_t
19882 and change slot variable type from long * to int64_t *.
19883 (insert_operand_rank): Change rank parameter type from long to
19885 (get_rank): Change return type and rank variable type from long to
19886 int64_t. Use PRId64 instead of ld to print the rank.
19887 (init_reassoc): Change rank variable type from long to int64_t
19888 and adjust correspondingly bb_rank and operand_rank initialization.
19890 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19892 PR tree-optimization/96928
19893 * tree-ssa-phiopt.c (xor_replacement): New function.
19894 (tree_ssa_phiopt_worker): Call it.
19896 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19898 PR tree-optimization/96930
19899 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
19900 from narrower value which has the same type as 1 << B, perform
19901 the right shift on the narrower value followed by extension.
19903 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19905 PR tree-optimization/96239
19906 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
19908 (get_status_for_store_merging): Don't return BB_INVALID for blocks
19909 with potential bswap optimizable CONSTRUCTORs.
19910 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
19913 2021-01-05 Richard Biener <rguenther@suse.de>
19915 PR tree-optimization/98381
19916 * tree.c (vector_element_bits): Properly compute bool vector
19918 * tree-vect-loop.c (vectorizable_live_operation): Properly
19919 compute the last lane bit offset.
19921 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
19924 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
19925 Clear the top 64 bytes of the input XMM register.
19926 (sse_cvttps2pi): Ditto.
19928 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
19931 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
19933 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
19936 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
19939 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
19941 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
19942 (umaddsidi4_split): Likewise.
19944 2021-01-05 liuhongt <hongtao.liu@intel.com>
19947 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
19948 define_insn_and_split for zero_extend of subreg HI of pmovskb
19950 (*sse2_pmovskb_zexthisi): Add new combine splitters for
19951 zero_extend of not of subreg HI of pmovskb result.
19953 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
19956 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
19958 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
19959 convert_memory_address to convert symbolic immediates to ptr_mode
19960 before forcing them to memory.
19962 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
19964 PR rtl-optimization/97144
19965 * recog.c (constrain_operands): Initialize matching_operand
19966 for each alternative, rather than only doing it once.
19968 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
19970 PR rtl-optimization/98403
19971 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
19972 why we don't remove call clobbers.
19973 (function_info::apply_changes_to_insn): Don't attempt to add
19974 call clobbers here.
19976 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
19978 PR tree-optimization/98371
19979 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
19980 (vect_analyze_loop): If an epilogue loop appears to be cheaper
19981 than the main loop, re-analyze it as a main loop before adopting
19984 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19987 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
19988 * aclocal.m4, configure: Regenerate.
19989 * Makefile.in (NETLIBS): Define.
19990 (BACKEND): Remove $(CODYLIB).
19992 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19994 PR rtl-optimization/98334
19995 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
19996 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
19998 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
20000 * tree-inline.c (expand_call_inline): Restore input_location.
20001 Return result from recursive call.
20003 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
20005 PR tree-optimization/95401
20006 * config/aarch64/aarch64-sve-builtins.cc
20007 (gimple_folder::load_store_cookie): Use bits rather than bytes
20008 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
20009 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
20010 * tree-vect-stmts.c (vectorizable_store): Likewise.
20011 (vectorizable_load): Likewise.
20013 2021-01-04 Richard Biener <rguenther@suse.de>
20015 PR tree-optimization/98308
20016 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
20019 2021-01-04 Jakub Jelinek <jakub@redhat.com>
20021 PR tree-optimization/95771
20022 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
20023 with precision smaller than int's precision and types with precision
20024 twice as large as long long. Formatting fixes.
20026 2021-01-04 Richard Biener <rguenther@suse.de>
20028 PR tree-optimization/98464
20029 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
20030 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
20031 (process_bb): Adjust.
20033 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
20036 * doc/invoke.texi (-fsanitize=address): Fix wording describing
20037 clash with -fsanitize=hwaddress.
20039 2021-01-04 Richard Biener <rguenther@suse.de>
20041 PR tree-optimization/98282
20042 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
20043 invariants as VN_NARY.
20045 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
20048 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
20049 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
20050 to handle zero operands.
20052 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
20054 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
20055 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
20056 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
20059 2021-01-04 Richard Biener <rguenther@suse.de>
20061 PR tree-optimization/98393
20062 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
20063 when hitting the limit.
20065 2021-01-04 Richard Biener <rguenther@suse.de>
20067 PR tree-optimization/98291
20068 * tree-vect-loop.c (vectorizable_reduction): Bypass
20069 associativity check for SLP reductions with VF 1.
20071 2021-01-04 Jakub Jelinek <jakub@redhat.com>
20073 PR tree-optimization/96782
20074 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
20076 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
20078 * collect-utils.c (collect_execute): Check dumppfx.
20079 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
20080 to collect_execute.
20081 (do_link): Add new parameter atsuffix.
20082 (main): Handle -dumpdir option. Skip one argument for
20083 -o, -isystem and -B options.
20084 * gcc.c (make_at_file): New helper function.
20085 (close_at_file): Use it.
20087 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20089 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
20090 Amend handling for LD64_VERSION fallback defaults.
20092 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20094 * config.gcc: Compute default version information
20095 from the configured target. Likewise defaults for
20097 * config/darwin10.h: Removed.
20098 * config/darwin12.h: Removed.
20099 * config/darwin9.h: Removed.
20100 * config/rs6000/darwin8.h: Removed.
20102 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20104 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
20106 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20108 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
20109 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
20111 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20113 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
20115 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
20117 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20119 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
20120 for the Darwin10 unwinder stub from here ...
20121 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
20123 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20125 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
20126 (ASM_DEBUG_SPEC):Only define if the assembler supports
20128 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
20129 (DARWIN_PREFER_DWARF): Define.
20130 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
20131 (DARWIN_PREFER_DWARF): Likewise
20132 (DSYMUTIL_SPEC): Likewise.
20133 (COLLECT_RUN_DSYMUTIL): Likewise.
20134 (ASM_DEBUG_SPEC): Likewise.
20135 (ASM_DEBUG_OPTION_SPEC): Likewise.
20137 2021-01-02 Jan Hubicka <jh@suse.cz>
20139 * cfg.c (free_block): ggc_free bb.
20141 2021-01-01 Jakub Jelinek <jakub@redhat.com>
20143 * gcc.c (process_command): Update copyright notice dates.
20144 * gcov-dump.c (print_version): Ditto.
20145 * gcov.c (print_version): Ditto.
20146 * gcov-tool.c (print_version): Ditto.
20147 * gengtype.c (create_file): Ditto.
20148 * doc/cpp.texi: Bump @copying's copyright year.
20149 * doc/cppinternals.texi: Ditto.
20150 * doc/gcc.texi: Ditto.
20151 * doc/gccint.texi: Ditto.
20152 * doc/gcov.texi: Ditto.
20153 * doc/install.texi: Ditto.
20154 * doc/invoke.texi: Ditto.
20156 2021-01-01 Jakub Jelinek <jakub@redhat.com>
20158 * ChangeLog-2020: Rotate ChangeLog. New file.
20161 Copyright (C) 2021 Free Software Foundation, Inc.
20163 Copying and distribution of this file, with or without modification,
20164 are permitted in any medium without royalty provided the copyright
20165 notice and this notice are preserved.