1 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
3 * ipa-modref-tree.h (struct modref_access_node): Revert
5 (struct modref_ref_node): Likewise.
7 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
9 * ipa-modref-tree.h (modref_tree::global_access_p): New member
12 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
13 ignore_stores_eaf_flags): Move to ipa-modref.h
14 (remove_useless_eaf_flags): Remove early exit on NOCLOBBER.
15 (modref_summary::global_memory_read_p): New member function.
16 (modref_summary::global_memory_written_p): New member function.
17 * ipa-modref.h (modref_summary::global_memory_read_p,
18 modref_summary::global_memory_written_p): Declare.
19 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
20 ignore_stores_eaf_flags): move here.
21 * tree-ssa-structalias.c: Include ipa-modref-tree.h, ipa-modref.h
23 (handle_rhs_call): Rewrite.
24 (handle_call_arg): New function.
25 (determine_global_memory_access): New function.
26 (handle_const_call): Remove
27 (handle_pure_call): Remove
28 (find_func_aliases_for_call): Update use of handle_rhs_call.
29 (compute_points_to_sets): Handle global memory acccesses
32 2021-10-11 Diane Meirowitz <diane.meirowitz@oracle.com>
34 * doc/invoke.texi: Add link to UndefinedBehaviorSanitizer
35 documentation, mention UBSAN_OPTIONS, similar to what is done
38 2021-10-11 Richard Biener <rguenther@suse.de>
41 * internal-fn.c (expand_DEFERRED_INIT): Check for mode
42 availability before building an integer type for storage
45 2021-10-11 Richard Biener <rguenther@suse.de>
48 * gimple.c (gimple_call_fnspec): Do not mark operator new/delete
51 2021-10-11 Martin Liska <mliska@suse.cz>
53 * common.opt: Remove Init(2) for some options.
54 * toplev.c (process_options): Do not use AUTODETECT_VALUE, but
55 use rather OPTION_SET_P.
57 2021-10-11 Martin Liska <mliska@suse.cz>
59 * common.opt: Remove usage of IRA_REGION_AUTODETECT.
60 * flag-types.h (enum ira_region): Likewise.
61 * toplev.c (process_options): Use OPTION_SET_P instead of
62 IRA_REGION_AUTODETECT.
64 2021-10-11 Jakub Jelinek <jakub@redhat.com>
66 * omp-low.c (omp_runtime_api_call): Handle omp_get_max_teams,
67 omp_[sg]et_teams_thread_limit and omp_set_num_teams.
69 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
71 * config/s390/s390-protos.h (s390_rawmemchr): Add prototype.
72 * config/s390/s390.c (s390_rawmemchr): New function.
73 * config/s390/s390.md (rawmemchr<SINT:mode>): New expander.
74 * config/s390/vector.md (@vec_vfees<mode>): Basically a copy of
75 the pattern vfees<mode> from vx-builtins.md.
76 * config/s390/vx-builtins.md (*vfees<mode>): Remove.
78 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
80 * builtins.c (get_memory_rtx): Change to external linkage.
81 * builtins.h (get_memory_rtx): Add function prototype.
82 * doc/md.texi (rawmemchr<mode>): Document.
83 * internal-fn.c (expand_RAWMEMCHR): Define.
84 * internal-fn.def (RAWMEMCHR): Add.
85 * optabs.def (rawmemchr_optab): Add.
86 * tree-loop-distribution.c (find_single_drs): Change return code
87 behaviour by also returning true if no single store was found
89 (loop_distribution::classify_partition): Respect the new return
90 code behaviour of function find_single_drs.
91 (loop_distribution::execute): Call new function
92 transform_reduction_loop in order to replace rawmemchr or strlen
93 like loops by calls into builtins.
94 (generate_reduction_builtin_1): New function.
95 (generate_rawmemchr_builtin): New function.
96 (generate_strlen_builtin_1): New function.
97 (generate_strlen_builtin): New function.
98 (generate_strlen_builtin_using_rawmemchr): New function.
99 (reduction_var_overflows_first): New function.
100 (determine_reduction_stmt_1): New function.
101 (determine_reduction_stmt): New function.
102 (loop_distribution::transform_reduction_loop): New function.
104 2021-10-11 Martin Liska <mliska@suse.cz>
106 * tree.c (cl_option_hasher::hash): Use cl_optimization_hash
107 and remove legacy hashing code.
109 2021-10-11 Kito Cheng <kito.cheng@sifive.com>
112 * builtins.c (maybe_emit_call_builtin___clear_cache): Allow
113 CONST_INT for BEGIN and END, and use gcc_assert rather than
116 2021-10-10 Jakub Jelinek <jakub@redhat.com>
119 * var-tracking.c (add_stores): For cselib_sp_derived_value_p values
120 use MO_VAL_SET if loc is not sp.
122 2021-10-10 Andrew Pinski <apinski@marvell.com>
124 PR tree-optimization/102622
125 * match.pd: Swap the order of a?pow2cst:0 and a?-1:0 transformations.
126 Swap the order of a?0:pow2cst and a?0:-1 transformations.
128 2021-10-09 liuhongt <hongtao.liu@intel.com>
131 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Handle
133 (ix86_use_mask_cmp_p): Ditto.
134 (ix86_expand_sse_movcc): Ditto.
135 * config/i386/i386.md (setcc_hf_mask): New define_insn.
137 (UNSPEC_MOVCC_MASK): New unspec.
138 * config/i386/sse.md (UNSPEC_PCMP): Move to i386.md.
140 2021-10-08 Vladimir N. Makarov <vmakarov@redhat.com>
142 PR rtl-optimization/102627
143 * lra-constraints.c (split_reg): Use at least natural mode of hard reg.
145 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
147 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Grow
150 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
152 * value-range.cc (irange::debug): New.
153 * value-range.h (irange::debug): New.
155 2021-10-08 Richard Sandiford <richard.sandiford@arm.com>
157 PR tree-optimization/102385
158 * predict.h (change_edge_frequency): Declare.
159 * predict.c (change_edge_frequency): New function.
160 * tree-ssa-loop-manip.h (tree_transform_and_unroll_loop): Remove
162 (tree_unroll_loop): Likewise.
163 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Update accordingly.
164 * tree-predcom.c (pcom_worker::tree_predictive_commoning_loop):
166 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Likewise.
167 * tree-ssa-loop-manip.c (tree_unroll_loop): Likewise.
168 (tree_transform_and_unroll_loop): Likewise. Use single_dom_exit
169 to retrieve the exit edges. Make all the old profile update code
170 conditional on !single_loop_p -- the case it was written for --
171 and use a different approach for the single-loop case.
173 2021-10-08 Martin Liska <mliska@suse.cz>
175 * config/alpha/alpha.c (alpha_option_override): Use new macro
177 * config/arc/arc.c (arc_override_options): Likewise.
178 * config/arm/arm.c (arm_option_override): Likewise.
179 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
180 * config/c6x/c6x.c (c6x_option_override): Likewise.
181 * config/csky/csky.c: Likewise.
182 * config/darwin.c (darwin_override_options): Likewise.
183 * config/frv/frv.c (frv_option_override): Likewise.
184 * config/i386/djgpp.h: Likewise.
185 * config/i386/i386.c (ix86_stack_protect_guard): Likewise.
186 (ix86_max_noce_ifcvt_seq_cost): Likewise.
187 * config/ia64/ia64.c (ia64_option_override): Likewise.
188 (ia64_override_options_after_change): Likewise.
189 * config/m32c/m32c.c (m32c_option_override): Likewise.
190 * config/m32r/m32r.c (m32r_init): Likewise.
191 * config/m68k/m68k.c (m68k_option_override): Likewise.
192 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
193 * config/mips/mips.c (mips_option_override): Likewise.
194 * config/nios2/nios2.c (nios2_option_override): Likewise.
195 * config/nvptx/nvptx.c (nvptx_option_override): Likewise.
196 * config/pa/pa.c (pa_option_override): Likewise.
197 * config/riscv/riscv.c (riscv_option_override): Likewise.
198 * config/rs6000/aix71.h: Likewise.
199 * config/rs6000/aix72.h: Likewise.
200 * config/rs6000/aix73.h: Likewise.
201 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Likewise.
202 (rs6000_override_options_after_change): Likewise.
203 (rs6000_linux64_override_options): Likewise.
204 (glibc_supports_ieee_128bit): Likewise.
205 (rs6000_option_override_internal): Likewise.
206 (rs6000_file_start): Likewise.
207 (rs6000_darwin_file_start): Likewise.
208 * config/rs6000/rtems.h: Likewise.
209 * config/rs6000/sysv4.h: Likewise.
210 * config/rs6000/vxworks.h (SUB3TARGET_OVERRIDE_OPTIONS): Likewise.
211 * config/s390/s390.c (s390_option_override): Likewise.
212 * config/sh/linux.h: Likewise.
213 * config/sh/netbsd-elf.h (while): Likewise.
214 * config/sh/sh.c (sh_option_override): Likewise.
215 * config/sol2.c (solaris_override_options): Likewise.
216 * config/sparc/sparc.c (sparc_option_override): Likewise.
217 * config/tilegx/tilegx.c (tilegx_option_override): Likewise.
218 * config/visium/visium.c (visium_option_override): Likewise.
219 * config/vxworks.c (vxworks_override_options): Likewise.
220 * lto-opts.c (lto_write_options): Likewise.
221 * omp-expand.c (expand_omp_simd): Likewise.
222 * omp-general.c (omp_max_vf): Likewise.
223 * omp-offload.c (oacc_xform_loop): Likewise.
224 * opts.h (OPTION_SET_P): Likewise.
225 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
226 * toplev.c (process_options): Likewise.
227 * tree-predcom.c: Likewise.
228 * tree-sra.c (analyze_all_variable_accesses): Likewise.
230 2021-10-08 liuhongt <hongtao.liu@intel.com>
233 * config/i386/i386.c (ix86_optab_supported_p):
234 Return true for HFmode.
235 * match.pd: Simplify (_Float16) ceil ((double) x) to
236 __builtin_ceilf16 (a) when a is _Float16 type and
237 direct_internal_fn_supported_p.
239 2021-10-08 liuhongt <hongtao.liu@intel.com>
242 * config/i386/i386-expand.c (emit_reduc_half): Hanlde V4HImode.
243 * config/i386/mmx.md (reduc_plus_scal_v4hi): New.
244 (reduc_<code>_scal_v4hi): New.
246 2021-10-08 liuhongt <hongtao.liu@intel.com>
248 * common.opt (ftree-vectorize): Add Var(flag_tree_vectorize).
249 * doc/invoke.texi (Options That Control Optimization): Update
251 * opts.c (default_options_table): Enable auto-vectorization at
252 O2 with very-cheap cost model.
253 (finish_options): Use cheap cost model for
254 explicit -ftree{,-loop}-vectorize.
256 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
258 * ctfc.c (ctfc_delete_container): Free hash table contents.
260 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
262 * toplev.c (process_options): Do not warn for GNU GIMPLE.
264 2021-10-07 Siddhesh Poyarekar <siddhesh@gotplt.org>
266 * tree-object-size.c (addr_object_size,
267 compute_builtin_object_size): Drop PDECL and POFF arguments.
268 (addr_object_size): Adjust calls.
269 * tree-object-size.h (compute_builtin_object_size): Drop PDECL
272 2021-10-07 Roger Sayle <roger@nextmovesoftware.com>
274 * rtl.def (SMUL_HIGHPART, UMUL_HIGHPART): New RTX codes for
275 representing signed and unsigned high-part multiplication resp.
276 * simplify-rtx.c (simplify_binary_operation_1) [SMUL_HIGHPART,
277 UMUL_HIGHPART]: Simplify high-part multiplications by zero.
278 [SS_PLUS, US_PLUS, SS_MINUS, US_MINUS, SS_MULT, US_MULT,
279 SS_DIV, US_DIV]: Similar simplifications for saturating
281 (simplify_const_binary_operation) [SS_PLUS, US_PLUS, SS_MINUS,
282 US_MINUS, SS_MULT, US_MULT, SMUL_HIGHPART, UMUL_HIGHPART]:
283 Implement compile-time evaluation for constant operands.
284 * dwarf2out.c (mem_loc_descriptor): Skip SMUL_HIGHPART and
286 * doc/rtl.texi (smul_highpart, umul_highpart): Document RTX codes.
287 * doc/md.texi (smul@var{m}3_highpart, umul@var{m3}_highpart):
288 Mention the new smul_highpart and umul_highpart RTX codes.
289 * doc/invoke.texi: Silence @xref "compilation" warnings.
291 2021-10-07 Martin Jambor <mjambor@suse.cz>
294 * ipa-prop.c (ipa_edge_args_sum_t::duplicate): Also handle the
295 case when the source reference description corresponds to a
296 referance taken in a function src->caller is inlined to.
298 2021-10-07 Jan Hubicka <hubicka@ucw.cz>
301 * ipa-modref-tree.h (modref_access_node::contains_p): Handle offsets
303 (modref_access_node::try_merge_with): Add sanity check that there
304 are no redundant entries in the list.
306 2021-10-07 Richard Biener <rguenther@suse.de>
308 PR tree-optimization/102608
309 * tree-ssa-sccvn.c (visit_stmt): Drop .DEFERRED_INIT to
312 2021-10-07 Martin Liska <mliska@suse.cz>
314 * toplev.c (toplev::main): Make
315 save_opt_decoded_options a pointer type
316 * toplev.h: Likewise.
318 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
320 * config/gcn/gcn-valu.md (gather<mode>_insn_2offsets<exec>): Apply
321 HAVE_GCN_ASM_GLOBAL_LOAD_FIXED.
322 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
324 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
326 * config/gcn/gcn-hsa.h (SRAMOPT): Include the whole option string.
327 Adjust for new -msram-ecc=any behaviour.
328 (ASM_SPEC): Adjust -mxnack and -msram-ecc usage.
329 * config/gcn/gcn.c (output_file_start): Implement -msram-ecc=any.
330 * config/gcn/mkoffload.c (EF_AMDGPU_XNACK): Rename to ...
331 (EF_AMDGPU_XNACK_V3): ... this.
332 (EF_AMDGPU_SRAM_ECC): Rename to ...
333 (EF_AMDGPU_SRAM_ECC_V3): ... this.
334 (EF_AMDGPU_FEATURE_XNACK_V4): New.
335 (EF_AMDGPU_FEATURE_XNACK_UNSUPPORTED_V4): New.
336 (EF_AMDGPU_FEATURE_XNACK_ANY_V4): New.
337 (EF_AMDGPU_FEATURE_XNACK_OFF_V4): New.
338 (EF_AMDGPU_FEATURE_XNACK_ON_V4): New.
339 (EF_AMDGPU_FEATURE_SRAMECC_V4): New.
340 (EF_AMDGPU_FEATURE_SRAMECC_UNSUPPORTED_V4): New.
341 (EF_AMDGPU_FEATURE_SRAMECC_ANY_V4): New.
342 (EF_AMDGPU_FEATURE_SRAMECC_OFF_V4): New.
343 (EF_AMDGPU_FEATURE_SRAMECC_ON_V4): New.
345 (SET_XNACK_OFF): New.
347 (SET_SRAM_ECC_ON): New.
348 (SET_SRAM_ECC_ANY): New.
349 (SET_SRAM_ECC_OFF): New.
350 (TEST_SRAM_ECC_ANY): New.
351 (TEST_SRAM_ECC_ON): New.
352 (main): Implement HSACOv4 and -msram-ecc=any.
354 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
356 * config.in: Regenerate.
357 * config/gcn/gcn-hsa.h (X_FIJI): New macro.
361 (A_FIJI): Rename to ...
363 (A_900): Rename to ...
365 (A_906): Rename to ...
367 (A_908): Rename to ...
369 (SRAMOPT): New macro.
370 (ASM_SPEC): Adjust xnack option usage.
371 * config/gcn/gcn.c (output_file_start): Adjust amdgcn_target usage.
372 * configure: Regenerate.
373 * configure.ac: Detect LLVM assembler dialect.
375 2021-10-07 Richard Biener <rguenther@suse.de>
377 * tree-pretty-print.c (dump_generic_node): Do not elide
378 printing '&' when dumping with -gimple.
380 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
382 * gimple-range-cache.cc (non_null_ref::adjust_range): Call new
384 * gimple-range-fold.cc (adjust_pointer_diff_expr): Ditto.
385 (adjust_imagpart_expr): Ditto.
386 * value-range.cc (irange::irange_intersect): Call new routine if
387 RHS is a single pair.
388 (irange::intersect): New wide_int version.
389 * value-range.h (class irange): New prototype.
391 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
393 * gimple-range-edge.cc (gimple_outgoing_range::gimple_outgoing_range):
394 Add parameter to limit size when recognizing switches.
395 (gimple_outgoing_range::edge_range_p): Check size limit.
396 * gimple-range-edge.h (gimple_outgoing_range): Add size field.
397 * gimple-range-gori.cc (gori_map::calculate_gori): Ignore switches
398 that exceed the size limit.
399 (gori_compute::gori_compute): Add initializer.
400 * params.opt (evrp-switch-limit): New.
401 * doc/invoke.texi: Update docs.
403 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
405 * value-range.h (irange::set_varying): Use TYPE_MIN_VALUE and
406 TYPE_MAX_VALUE instead of creating new trees when possible.
408 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
410 * gimple-range-cache.cc (non_null_ref::adjust_range): Check for
411 zero and non-zero more efficently.
413 2021-10-06 Richard Biener <rguenther@suse.de>
416 * dumpfile.h (TDF_GIMPLE_VAL): New.
417 (dump_flag): Re-order and adjust TDF_* flags. Make
418 the enum uint32_t. Use std::underlying_type in the
420 (optgroup_flag): Likewise for the operator overloads.
421 * tree-pretty-print.c (dump_generic_node): Wrap ADDR_EXPR
422 in _Literal if TDF_GIMPLE_VAL.
423 * gimple-pretty-print.c (dump_gimple_assign): Add
424 TDF_GIMPLE_VAL to flags when dumping operands where only
425 is_gimple_val are allowed.
426 (dump_gimple_cond): Likewise.
428 2021-10-06 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
430 * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove redundant if
433 2021-10-05 qing zhao <qing.zhao@oracle.com>
436 * gimplify.c (gimplify_decl_expr): Not add initialization for an
437 auto variable when it has been initialized by frontend.
439 2021-10-05 Aldy Hernandez <aldyh@redhat.com>
441 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
444 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
446 * common/config/avr/avr-common.c (avr_handle_option): Mark
447 argument as ATTRIBUTE_UNUSED.
449 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
451 * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC):
452 Undefine before redefinition.
454 2021-10-05 Richard Biener <rguenther@suse.de>
456 * toplev.c (no_backend): Remove global var.
457 (process_options): Pass in no_backend, move post_options
458 langhook call to toplev::main.
459 (do_compile): Pass in no_backend, move process_options call
461 (toplev::run_self_tests): Check no_backend at the caller.
462 (toplev::main): Call post_options and process_options
463 split out from do_compile, do self-tests only if
464 no_backend is initialized.
466 2021-10-05 Richard Biener <rguenther@suse.de>
468 * tree-cfg.c (dump_function_to_file): Dump the UID of the
469 function as part of the name when requested.
470 * tree-pretty-print.c (dump_function_name): Dump the UID when
471 requested and the langhook produced the actual name.
473 2021-10-05 Richard Biener <rguenther@suse.de>
477 * internal-fn.c (expand_DEFERRED_INIT): Fall back to
478 zero-initialization as last resort, use the constant
479 size as given by the DEFERRED_INIT argument to build
482 2021-10-04 Marek Polacek <polacek@redhat.com>
485 * doc/invoke.texi: Document -Warray-compare.
487 2021-10-04 Richard Biener <rguenther@suse.de>
489 * gimplify.c (is_var_need_auto_init): DECL_HARD_REGISTER
490 variables are not to be initialized.
492 2021-10-04 Richard Biener <rguenther@suse.de>
494 * expr.h (non_mem_decl_p): Declare.
495 (mem_ref_refers_to_non_mem_p): Likewise.
496 * expr.c (non_mem_decl_p): Export.
497 (mem_ref_refers_to_non_mem_p): Likewise.
498 * internal-fn.c (expand_DEFERRED_INIT): Do not expand the LHS
499 but check the base with mem_ref_refers_to_non_mem_p
502 2021-10-04 Richard Biener <rguenther@suse.de>
504 PR tree-optimization/102570
505 * tree-ssa-sccvn.h (vn_reference_op_struct): Document
506 we are using clique for the internal function code.
507 * tree-ssa-sccvn.c (vn_reference_op_eq): Compare the
508 internal function code.
509 (print_vn_reference_ops): Print the internal function code.
510 (vn_reference_op_compute_hash): Hash it.
511 (copy_reference_ops_from_call): Record it.
512 (visit_stmt): Remove the restriction around internal function
514 (fully_constant_vn_reference_p): Use fold_const_call and handle
516 (vn_reference_eq): Compare call return types.
517 * tree-ssa-pre.c (create_expression_by_pieces): Handle
518 generating calls to internal functions.
519 (compute_avail): Remove the restriction around internal function
522 2021-10-04 Aldy Hernandez <aldyh@redhat.com>
524 PR tree-optimization/102560
525 * gimple-ssa-warn-alloca.c (alloca_call_type): Remove static
526 marker for invalid_range.
528 2021-10-04 Richard Biener <rguenther@suse.de>
531 * internal-fn.c (expand_DEFERRED_INIT): Guard register
532 initialization path an avoid initializing VLA registers
535 2021-10-04 Eric Botcazou <ebotcazou@adacore.com>
537 * config/rs6000/vxworks.h (TARGET_INIT_LIBFUNCS): Delete.
539 2021-10-03 Martin Liska <mliska@suse.cz>
541 * toplev.c (toplev::main): Check opt_index if it is a part
544 2021-10-02 Aldy Hernandez <aldyh@redhat.com>
546 PR tree-optimization/102563
547 * range-op.cc (operator_lshift::op1_range): Do not clobber
550 2021-10-02 Martin Liska <mliska@suse.cz>
552 * toplev.c (toplev::main): save_decoded_options[0] is program
553 name and so it should be skipped.
555 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
557 PR tree-optimization/102546
558 * range-op.cc (operator_lshift::op1_range): Teach range-ops that
559 X << Y is non-zero implies X is also non-zero.
561 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
563 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
565 * config/aarch64/aarch64-tune.md: Regenerate.
566 * doc/invoke.texi: Update docs.
568 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
570 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
572 * config/aarch64/aarch64-tune.md: Regenerate.
573 * doc/invoke.texi: Update docs.
575 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
577 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
579 * config/aarch64/aarch64-tune.md: Regenerate.
580 * doc/invoke.texi: Update docs.
582 2021-10-01 Martin Sebor <msebor@redhat.com>
585 * doc/invoke.texi (-Waddress): Update.
586 * gengtype.c (write_types): Avoid -Waddress.
587 * poly-int.h (POLY_SET_COEFF): Avoid using null.
589 2021-10-01 John David Anglin <danglin@gcc.gnu.org>
592 * config/pa/pa.c (pa_option_override): Default to dwarf version 4
595 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
597 * config/aarch64/aarch64.h (AARCH64_FL_V9): Update value.
599 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
601 * gimple-range-path.cc (path_range_query::compute_ranges): Use
603 * gimple-range-path.h (class path_range_query): Remove shadowed
605 (path_range_query::get_path_oracle): New.
607 2021-10-01 Jakub Jelinek <jakub@redhat.com>
608 Richard Biener <rguenther@suse.de>
611 * doc/invoke.texi (-fsanitize=integer-divide-by-zero): Remove
612 INT_MIN / -1 division detection from here ...
613 (-fsanitize=signed-integer-overflow): ... and add it here.
615 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
617 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): Added
619 * config/aarch64/aarch64.h (AARCH64_FL_V9): New.
620 (AARCH64_FL_FOR_ARCH9): New flags for Armv9-A.
621 (AARCH64_ISA_V9): New ISA flag.
622 * doc/invoke.texi: Update docs.
624 2021-10-01 Martin Liska <mliska@suse.cz>
626 * toplev.c (toplev::main): Save decoded optimization options.
627 * toplev.h (save_opt_decoded_options): New.
628 * doc/extend.texi: Be more clear about optimize and target
631 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
633 * explow.c: Include langhooks.h.
634 (set_stack_check_libfunc): Build a proper function type.
636 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
639 * config/i386/i386.c (legitimate_pic_address_disp_p): For PE-COFF do
640 not return true for external weak function symbols in medium model.
642 2021-10-01 Jakub Jelinek <jakub@redhat.com>
644 * tree.h (OMP_CLAUSE_ORDER_REPRODUCIBLE): Define.
645 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_ORDER>: Print
646 reproducible: for OMP_CLAUSE_ORDER_REPRODUCIBLE.
647 * omp-general.c (omp_extract_for_data): If OMP_CLAUSE_ORDER is seen
648 without OMP_CLAUSE_ORDER_UNCONSTRAINED, overwrite sched_kind to
649 OMP_CLAUSE_SCHEDULE_STATIC.
651 2021-10-01 Richard Biener <rguenther@suse.de>
654 * tree-inline.c (setup_one_parameter): Avoid substituting
655 an invariant into contexts where a GIMPLE register is not valid.
657 2021-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
659 * config/arm/arm-cpus.in: Add Cortex-R52+ CPU.
660 * config/arm/arm-tables.opt: Regenerate.
661 * config/arm/arm-tune.md: Regenerate.
662 * doc/invoke.texi: Update docs.
664 2021-09-30 Uroš Bizjak <ubizjak@gmail.com>
667 * config/i386/i386.md
668 (sign_extend:WIDE (any_logic:NARROW (memory, immediate)) splitters):
671 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
673 * omp-low.c (omp_runtime_api_call): Add omp_aligned_{,c}alloc and
674 omp_{c,re}alloc, fix omp_alloc/omp_free.
676 2021-09-30 Martin Liska <mliska@suse.cz>
678 * defaults.h (ASM_OUTPUT_ASCII): Do not hide global variable
679 asm_out_file and stream directly to MYFILE.
681 2021-09-30 Richard Biener <rguenther@suse.de>
683 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
684 Restore and fix condition under which we apply npeel to
685 the DRs misalignment value.
687 2021-09-30 Richard Biener <rguenther@suse.de>
689 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
690 Fix npeel check for variable amount of peeling.
692 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
694 * lto-wrapper.c (run_gcc): Plug snprintf overflow.
696 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
698 * gimple-range.cc (gimple_ranger::debug): New.
699 * gimple-range.h (class gimple_ranger): Add debug.
701 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
704 * tree-vrp.c (hybrid_threader::~hybrid_threader): Free m_query.
706 2021-09-29 Indu Bhagat <indu.bhagat@oracle.com>
709 * btfout.c (GTY): Add GTY (()) albeit for cosmetic only purpose.
710 (btf_finalize): Empty the hash_map btf_var_ids.
712 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
714 * tree-vrp.c (thread_through_all_blocks): Return bool.
715 (execute_vrp_threader): Return TODO_* flags.
716 (pass_data_vrp_threader): Set todo_flags_finish to 0.
718 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
720 * timevar.def (TV_TREE_VRP_THREADER): New.
721 * tree-vrp.c: Use TV_TREE_VRP_THREADER for VRP threader pass.
723 2021-09-29 David Faust <david.faust@oracle.com>
725 * config.gcc (bpf-*-*): Do not overwrite extra_headers.
727 2021-09-29 Jonathan Wright <jonathan.wright@arm.com>
729 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_PPU): Define
730 new type qualifier enum.
731 (TYPES_TERNOP_SSSU): Likewise.
732 (TYPES_TERNOP_PPPU): Likewise.
733 * config/aarch64/aarch64-simd-builtins.def: Define PPU, SSU,
734 PPPU and SSSU builtin generator macros for qtbl1 and qtbx1
736 * config/aarch64/arm_neon.h (vqtbl1_p8): Use type-qualified
737 builtin and remove casts.
738 (vqtbl1_s8): Likewise.
739 (vqtbl1q_p8): Likewise.
740 (vqtbl1q_s8): Likewise.
741 (vqtbx1_s8): Likewise.
742 (vqtbx1_p8): Likewise.
743 (vqtbx1q_s8): Likewise.
744 (vqtbx1q_p8): Likewise.
745 (vtbl1_p8): Likewise.
746 (vtbl2_p8): Likewise.
747 (vtbx2_p8): Likewise.
749 2021-09-29 Richard Biener <rguenther@suse.de>
751 * tree-vect-data-refs.c (vect_dr_misalign_for_aligned_access):
753 (vect_update_misalignment_for_peel): Use it to update
754 misaligned to the value necessary for an aligned access.
755 (vect_get_peeling_costs_all_drs): Likewise.
756 (vect_enhance_data_refs_alignment): Likewise.
758 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
760 * config/aarch64/aarch64.c (aarch64_expand_cpymem): Count number of
761 emitted operations and adjust heuristic for code size.
763 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
765 * config/aarch64/aarch64.c (aarch64_expand_setmem): Count number of
766 emitted operations and adjust heuristic for code size.
768 2021-09-29 Jakub Jelinek <jakub@redhat.com>
771 * gimplify.c (gimplify_scan_omp_clauses): Use omp_check_private even
772 in OMP_SCOPE clauses, not just on worksharing construct clauses.
774 2021-09-28 Geng Qi <gengqi@linux.alibaba.com>
776 * config/riscv/riscv.md (mulv<mode>4): Call gen_smul<mode>3_highpart.
777 (<u>mulditi3): Call <su>muldi3_highpart.
778 (<u>muldi3_highpart): Rename to <su>muldi3_highpart.
779 (<u>mulsidi3): Call <su>mulsi3_highpart.
780 (<u>mulsi3_highpart): Rename to <su>mulsi3_highpart.
782 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
784 * config/darwin.h (DSYMUTIL_SPEC): Recognize D sources.
786 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
788 * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
789 (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
792 2021-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
794 * config/aarch64/aarch64.h (AARCH64_FL_LS64): Define
795 (AARCH64_FL_V8_7): Likewise.
796 (AARCH64_FL_FOR_ARCH8_7): Likewise.
797 * config/aarch64/aarch64-arches.def (armv8.7-a): Define.
798 * config/aarch64/aarch64-option-extensions.def (ls64): Define.
799 * doc/invoke.texi: Document the above.
801 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
803 * dbgcnt.c (dbg_cnt_counter): New.
804 * dbgcnt.h (dbg_cnt_counter): New.
805 * dumpfile.c (dump_options): Add entry for TDF_THREADING.
806 * dumpfile.h (enum dump_flag): Add TDF_THREADING.
807 * gimple-range-path.cc (DEBUG_SOLVER): Use TDF_THREADING.
808 * tree-ssa-threadupdate.c (dump_jump_thread_path): Dump out
811 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
813 * cfgcleanup.c (pass_jump::execute): Check
814 flag_expensive_optimizations.
815 (pass_jump_after_combine::gate): Same.
816 * doc/invoke.texi (-fthread-jumps): Enable for -O1.
817 * opts.c (default_options_table): Enable -fthread-jumps at -O1.
818 * tree-ssa-threadupdate.c
819 (fwd_jt_path_registry::remove_jump_threads_including): Bail unless
822 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
824 * tree-ssa-reassoc.c (biased_names): New global.
825 (propagate_bias_p): New function.
826 (loop_carried_phi): Remove.
827 (propagate_rank): Propagate bias along single uses.
828 (get_rank): Update biased_names when needed.
830 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
832 * passes.def (pass_reassoc): Rename parameter to early_p.
833 * tree-ssa-reassoc.c (reassoc_bias_loop_carried_phi_ranks_p):
835 (phi_rank): Don't bias loop-carried phi ranks
836 before vectorization pass.
837 (execute_reassoc): Add bias_loop_carried_phi_ranks_p parameter.
838 (pass_reassoc::pass_reassoc): Add bias_loop_carried_phi_ranks_p
840 (pass_reassoc::set_param): Set bias_loop_carried_phi_ranks_p
842 (pass_reassoc::execute): Pass bias_loop_carried_phi_ranks_p to
844 (pass_reassoc::bias_loop_carried_phi_ranks_p): New member.
846 2021-09-28 Jakub Jelinek <jakub@redhat.com>
849 * config/i386/i386.c (standard_80387_constant_p): Don't recognize
850 special 80387 instruction XFmode constants if flag_rounding_math.
852 2021-09-28 Richard Biener <rguenther@suse.de>
854 PR tree-optimization/100112
855 * tree-ssa-sccvn.c (visit_reference_op_load): Record the
856 referece into the hashtable twice in case last_vuse is
857 different from the original vuse on the stmt.
859 2021-09-28 Jakub Jelinek <jakub@redhat.com>
862 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't call the
863 omp_finish_clause langhook on implicitly added OMP_CLAUSE_PRIVATE
864 clauses on SIMD constructs.
866 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
868 PR tree-optimization/102511
869 * gimple-range-path.cc (path_range_query::range_on_path_entry):
870 Return VARYING when nothing found.
872 2021-09-28 Hongyu Wang <hongyu.wang@intel.com>
875 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): Add
877 (VALID_SSE2_REG_VHF_MODE): Add V4HFmode and V2HFmode.
878 (VALID_MMX_REG_MODE): Add V4HFmode.
879 (SSE_REG_MODE_P): Replace VALID_AVX512FP16_REG_MODE with
880 vector mode condition.
881 * config/i386/i386.c (classify_argument): Parse V4HF/V2HF
883 (function_arg_32): Add V4HFmode.
884 (function_arg_advance_32): Likewise.
885 * config/i386/i386.md (mode): Add V4HF/V2HF.
886 (MODE_SIZE): Likewise.
887 * config/i386/mmx.md (MMXMODE): Add V4HF mode.
888 (V_32): Add V2HF mode.
889 (VHF_32_64): New mode iterator.
890 (*mov<mode>_internal): Adjust sse alternatives to support
892 (*mov<mode>_internal): Adjust sse alternatives to support
894 (<insn><mode>3): New define_insn for add/sub/mul/div.
896 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
898 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Check
900 (pass_early_thread_jumps::gate): Same.
901 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
902 Return if !flag_thread_jumps.
903 * tree-ssa-threadupdate.c
904 (jt_path_registry::register_jump_thread): Assert that
905 flag_thread_jumps is true.
907 2021-09-28 liuhongt <hongtao.liu@intel.com>
910 (simplify_context::simplify_binary_operation_1): Relax
911 condition of simplifying (vec_concat:M (vec_select op0
912 index0)(vec_select op1 index1)) to allow different modes
913 between op0 and M, but have same inner mode.
915 2021-09-28 liuhongt <hongtao.liu@intel.com>
917 * config/i386/i386-expand.c (emit_reduc_half): Handle
918 V8HF/V16HF/V32HFmode.
919 * config/i386/sse.md (REDUC_SSE_PLUS_MODE): Add V8HF.
920 (REDUC_SSE_SMINMAX_MODE): Ditto.
921 (REDUC_PLUS_MODE): Add V16HF and V32HF.
922 (REDUC_SMINMAX_MODE): Ditto.
924 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
926 * gimple-range-path.cc
927 (path_range_query::precompute_ranges_in_block): Rename to...
928 (path_range_query::compute_ranges_in_block): ...this.
929 (path_range_query::precompute_ranges): Rename to...
930 (path_range_query::compute_ranges): ...this.
931 (path_range_query::precompute_relations): Rename to...
932 (path_range_query::compute_relations): ...this.
933 (path_range_query::precompute_phi_relations): Rename to...
934 (path_range_query::compute_phi_relations): ...this.
935 * gimple-range-path.h: Rename precompute* to compute*.
936 * tree-ssa-threadbackward.c
937 (back_threader::find_taken_edge_switch): Same.
938 (back_threader::find_taken_edge_cond): Same.
939 * tree-ssa-threadedge.c
940 (hybrid_jt_simplifier::compute_ranges_from_state): Same.
941 (hybrid_jt_state::register_equivs_stmt): Inline...
942 * tree-ssa-threadedge.h: ...here.
944 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
946 * tree-vrp.c (lhs_of_dominating_assert): Remove.
947 (class vrp_jt_state): Remove.
948 (class vrp_jt_simplifier): Remove.
949 (vrp_jt_simplifier::simplify): Remove.
950 (class vrp_jump_threader): Remove.
951 (vrp_jump_threader::vrp_jump_threader): Remove.
952 (vrp_jump_threader::~vrp_jump_threader): Remove.
953 (vrp_jump_threader::before_dom_children): Remove.
954 (vrp_jump_threader::after_dom_children): Remove.
956 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
958 * passes.def (pass_vrp_threader): New.
959 * tree-pass.h (make_pass_vrp_threader): Add make_pass_vrp_threader.
960 * tree-ssa-threadedge.c (hybrid_jt_state::register_equivs_stmt): New.
961 (hybrid_jt_simplifier::hybrid_jt_simplifier): New.
962 (hybrid_jt_simplifier::simplify): New.
963 (hybrid_jt_simplifier::compute_ranges_from_state): New.
964 * tree-ssa-threadedge.h (class hybrid_jt_state): New.
965 (class hybrid_jt_simplifier): New.
966 * tree-vrp.c (execute_vrp): Remove ASSERT_EXPR based jump
968 (class hybrid_threader): New.
969 (hybrid_threader::hybrid_threader): New.
970 (hybrid_threader::~hybrid_threader): New.
971 (hybrid_threader::before_dom_children): New.
972 (hybrid_threader::after_dom_children): New.
973 (execute_vrp_threader): New.
974 (class pass_vrp_threader): New.
975 (make_pass_vrp_threader): New.
977 2021-09-27 Martin Liska <mliska@suse.cz>
979 * output.h (enum section_flag): New.
980 (SECTION_FORGET): Remove.
981 (SECTION_ENTSIZE): Make it (1UL << 8) - 1.
982 (SECTION_STYLE_MASK): Define it based on other enum
984 * varasm.c (switch_to_section): Remove unused handling of
987 2021-09-27 Martin Liska <mliska@suse.cz>
989 * common.opt: Add new variable flag_default_complex_method.
990 * opts.c (finish_options): Handle flags related to
991 x_flag_complex_method.
992 * toplev.c (process_options): Remove option handling related
993 to flag_complex_method.
995 2021-09-27 Richard Biener <rguenther@suse.de>
998 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid using
999 type_for_size, instead use int_mode_for_size.
1001 2021-09-27 Andrew Pinski <apinski@marvell.com>
1004 * gimplify.c (gimplify_save_expr): Return early
1005 if the type of val is error_mark_node.
1007 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
1009 * tree-ssanames.c (ssa_name_has_boolean_range): Use
1012 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
1014 * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Remove
1015 vrp_visit_cond_stmt.
1016 * tree-ssa-dom.c (cprop_operand): Convert to range_query API.
1017 (cprop_into_stmt): Same.
1018 (dom_opt_dom_walker::optimize_stmt): Same.
1020 2021-09-27 Richard Biener <rguenther@suse.de>
1022 PR tree-optimization/97351
1023 PR tree-optimization/97352
1024 PR tree-optimization/82426
1025 * tree-vectorizer.h (dr_misalignment): Add vector type
1027 (aligned_access_p): Likewise.
1028 (known_alignment_for_access_p): Likewise.
1029 (vect_supportable_dr_alignment): Likewise.
1030 (vect_known_alignment_in_bytes): Likewise. Refactor.
1031 (DR_MISALIGNMENT): Remove.
1032 (vect_update_shared_vectype): Likewise.
1033 * tree-vect-data-refs.c (dr_misalignment): Refactor, handle
1034 a vector type with larger alignment requirement and apply
1035 the negative step adjustment here.
1036 (vect_calculate_target_alignment): Remove.
1037 (vect_compute_data_ref_alignment): Get explicit vector type
1038 argument, do not apply a negative step alignment adjustment
1040 (vect_slp_analyze_node_alignment): Re-analyze alignment
1041 when we re-visit the DR with a bigger desired alignment but
1042 keep more precise results from smaller alignments.
1043 * tree-vect-slp.c (vect_update_shared_vectype): Remove.
1044 (vect_slp_analyze_node_operations_1): Do not update the
1045 shared vector type on stmts.
1046 * tree-vect-stmts.c (vect_analyze_stmt): Push/pop the
1047 vector type of an SLP node to the representative stmt-info.
1048 (vect_transform_stmt): Likewise.
1050 2021-09-27 liuhongt <hongtao.liu@intel.com>
1053 2021-09-09 liuhongt <hongtao.liu@intel.com>
1056 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
1057 (reduc_plus_scal_v4sf): .. this, New define_expand.
1058 (reduc_plus_scal_v2df): .. and this, New define_expand.
1060 2021-09-26 liuhongt <hongtao.liu@intel.com>
1062 * doc/extend.texi (Half-Precision): Remove storage only
1063 description for _Float16 w/o avx512fp16.
1065 2021-09-25 Dimitar Dimitrov <dimitar@dinux.eu>
1067 * config/pru/constraints.md (Rrio): New constraint.
1068 * config/pru/predicates.md (regio_operand): New predicate.
1069 * config/pru/pru-pragma.c (pru_register_pragmas): Register
1070 the __regio_symbol address space.
1071 * config/pru/pru-protos.h (pru_symref2ioregno): Declaration.
1072 * config/pru/pru.c (pru_symref2ioregno): New helper function.
1073 (pru_legitimate_address_p): Remove.
1074 (pru_addr_space_legitimate_address_p): Use the address space
1076 (pru_nongeneric_pointer_addrspace): New helper function.
1077 (pru_insert_attributes): New function to validate __regio_symbol
1079 (TARGET_INSERT_ATTRIBUTES): New macro.
1080 (TARGET_LEGITIMATE_ADDRESS_P): Remove.
1081 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): New macro.
1082 * config/pru/pru.h (enum reg_class): Add REGIO_REGS class.
1083 * config/pru/pru.md (*regio_readsi): New pattern to read I/O
1085 (*regio_nozext_writesi): New pattern to write to I/O registers.
1086 (*regio_zext_write_r30<EQS0:mode>): Ditto.
1087 * doc/extend.texi: Document the new PRU Named Address Space.
1089 2021-09-24 Patrick Palka <ppalka@redhat.com>
1093 * real.c (encode_ieee_double): Avoid unwanted sign extension.
1094 (encode_ieee_quad): Likewise.
1096 2021-09-24 Vladimir Makarov <vmakarov@redhat.com>
1098 PR rtl-optimization/102147
1099 * ira-build.c (ira_conflict_vector_profitable_p): Make
1100 profitability calculation independent of host compiler pointer and
1103 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
1105 * gimple-range-path.cc (path_range_query::path_range_query):
1106 Move debugging header...
1107 (path_range_query::precompute_ranges): ...here.
1108 (path_range_query::internal_range_of_expr): Do not call
1109 range_on_path_entry if NAME is defined in the current block.
1111 2021-09-24 Richard Biener <rguenther@suse.de>
1113 * cfghooks.c (verify_flow_info): Verify unallocated BB and
1114 edge flags are not set.
1116 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
1118 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
1120 (jt_path_registry::register_jump_thread): Call
1121 cancel_invalid_paths.
1122 * tree-ssa-threadupdate.h (class jt_path_registry): Add
1123 cancel_invalid_paths.
1125 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
1127 PR tree-optimization/102400
1128 * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize
1129 result_vdef to zero value.
1131 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
1133 PR tree-optimization/102451
1134 * tree-ssa-dse.c (delete_dead_or_redundant_call): Record bb of stmt
1137 2021-09-24 Hongyu Wang <hongyu.wang@intel.com>
1139 * config/i386/sse.md (cond_<insn><mode>): Extend to support
1141 (cond_mul<mode>): Likewise.
1142 (cond_div<mode>): Likewise.
1143 (cond_<code><mode>): Likewise.
1144 (cond_fma<mode>): Likewise.
1145 (cond_fms<mode>): Likewise.
1146 (cond_fnma<mode>): Likewise.
1147 (cond_fnms<mode>): Likewise.
1149 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
1151 PR tree-optimization/102463
1152 * gimple-range-fold.cc (fold_using_range::relation_fold_and_or): If
1153 there is no range-ops handler, don't look for a relation.
1155 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
1157 * gimple-range-cache.cc (ranger_cache::ranger_cache): Take
1158 non-executable_edge flag as parameter.
1159 * gimple-range-cache.h (ranger_cache): Adjust prototype.
1160 * gimple-range-gori.cc (gori_compute::gori_compute): Take
1161 non-executable_edge flag as parameter.
1162 (gori_compute::outgoing_edge_range_p): Check new flag.
1163 * gimple-range-gori.h (gori_compute): Adjust prototype.
1164 * gimple-range.cc (gimple_ranger::gimple_ranger): Create new flag.
1165 (gimple_ranger::range_on_edge): Check new flag.
1166 * gimple-range.h (gimple_ranger::non_executable_edge_flag): New.
1167 * gimple-ssa-evrp.c (rvrp_folder): Pass ranger flag to simplifer.
1168 (hybrid_folder::hybrid_folder): Set ranger non-executable flag value.
1169 (hybrid_folder::fold_stmt): Set flag value in the simplifer.
1170 * vr-values.c (simplify_using_ranges::set_and_propagate_unexecutable):
1171 Use not_executable flag if provided inmstead of EDGE_EXECUTABLE.
1172 (simplify_using_ranges::simplify_switch_using_ranges): Clear
1173 EDGE_EXECUTABLE like it originally did.
1174 (simplify_using_ranges::cleanup_edges_and_switches): Clear any
1175 NON_EXECUTABLE flags.
1176 (simplify_using_ranges::simplify_using_ranges): Adjust.
1177 * vr-values.h (class simplify_using_ranges): Adjust.
1178 (simplify_using_ranges::set_range_query): Add non-executable flag param.
1180 2021-09-23 Bill Schmidt <wschmidt@linux.ibm.com>
1183 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Detect
1184 zero-width bit fields and return indicator.
1185 (rs6000_discover_homogeneous_aggregate): Diagnose when the
1186 presence of a zero-width bit field changes parameter passing in
1189 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
1191 * gimple-range-fold.cc (fold_using_range::range_of_phi):
1192 Remove dominator check.
1194 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
1196 * gimple-range-path.cc (path_range_query::precompute_relations):
1197 Hoist edge calculations before using EDGE_SUCC.
1199 2021-09-23 Jonathan Wakely <jwakely@redhat.com>
1201 * configure.ac: Fix --with-multilib-list description.
1202 * configure: Regenerate.
1204 2021-09-23 Richard Biener <rguenther@suse.de>
1206 PR tree-optimization/102448
1207 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
1208 Clear alignment info copied from DR_PTR_INFO.
1210 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
1212 * config/i386/i386-expand.c (ix86_use_mask_cmp_p): Enable
1214 * config/i386/sse.md (sseintvecmodelower): Add HF vector modes.
1215 (<avx512>_store<mode>_mask): Extend to support HF vector modes.
1216 (vec_cmp<mode><avx512fmaskmodelower>): Likewise.
1217 (vcond_mask_<mode><avx512fmaskmodelower>): Likewise.
1218 (vcond<mode><mode>): New expander.
1219 (vcond<mode><sseintvecmodelower>): Likewise.
1220 (vcond<sseintvecmodelower><mode>): Likewise.
1221 (vcondu<mode><sseintvecmodelower>): Likewise.
1223 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
1225 * config/i386/sse.md (extend<ssePHmodelower><mode>2):
1227 (extendv4hf<mode>2): Likewise.
1228 (extendv2hfv2df2): Likewise.
1229 (trunc<mode><ssePHmodelower>2): Likewise.
1230 (avx512fp16_vcvt<castmode>2ph_<mode>): Rename to ...
1231 (trunc<mode>v4hf2): ... this, and drop constraints.
1232 (avx512fp16_vcvtpd2ph_v2df): Rename to ...
1233 (truncv2dfv2hf2): ... this, and likewise.
1235 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
1237 * config/i386/sse.md (float<floatunssuffix><mode><ssePHmodelower>2):
1239 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>):
1241 (float<floatunssuffix><mode>v4hf2): ... this, and drop constraints.
1242 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Rename to ...
1243 (float<floatunssuffix>v2div2hf2): ... this, and likewise.
1245 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
1247 * config/i386/i386.md (fix<fixunssuffix>_trunchf<mode>2): New expander.
1248 (fixuns_trunchfhi2): Likewise.
1249 (*fixuns_trunchfsi2zext): New define_insn.
1250 * config/i386/sse.md (ssePHmodelower): New mode_attr.
1251 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
1252 New expander for same element vector fix_truncate.
1253 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
1254 Likewise for V4HF to V4SI/V4DI fix_truncate.
1255 (fix<fixunssuffix>_truncv2hfv2di2):
1256 Likeise for V2HF to V2DI fix_truncate.
1258 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
1260 * config/i386/i386.md (<code>hf3): New expander.
1262 2021-09-23 liuhongt <hongtao.liu@intel.com>
1264 * config/i386/sse.md (FMAMODEM): extend to handle FP16.
1265 (VFH_SF_AVX512VL): Extend to handle HFmode.
1266 (VF_SF_AVX512VL): Deleted.
1268 2021-09-23 liuhongt <hongtao.liu@intel.com>
1270 * config/i386/i386.md (rinthf2): New expander.
1271 (nearbyinthf2): New expander.
1273 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
1275 * tree-ssa-dom.c (class dom_jump_threader_simplifier): Rename...
1276 (class dom_jt_state): ...this and provide virtual overrides.
1277 (dom_jt_state::register_equiv): New.
1278 (class dom_jt_simplifier): Rename from
1279 dom_jump_threader_simplifier.
1280 (dom_jump_threader_simplifier::simplify): Rename...
1281 (dom_jt_simplifier::simplify): ...to this.
1282 (pass_dominator::execute): Use dom_jt_simplifier and
1284 * tree-ssa-threadedge.c (jump_threader::jump_threader):
1286 (jt_state::register_equivs_stmt): Abstract out...
1287 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
1289 (jump_threader::thread_around_empty_blocks): Update state.
1290 (jump_threader::thread_through_normal_block): Same.
1291 (jt_state::jt_state): Remove.
1292 (jt_state::push): Remove pass specific bits. Keep block vector
1294 (jt_state::append_path): New.
1295 (jt_state::pop): Remove pass specific bits.
1296 (jt_state::register_equiv): Same.
1297 (jt_state::record_ranges_from_stmt): Same.
1298 (jt_state::register_equivs_on_edge): Same. Rename...
1299 (jt_state::register_equivs_edge): ...to this.
1300 (jt_state::dump): New.
1301 (jt_state::debug): New.
1302 (jump_threader_simplifier::simplify): Remove.
1303 (jt_state::get_path): New.
1304 * tree-ssa-threadedge.h (class jt_simplifier): Make into a base
1305 class. Expose common functionality as virtual methods.
1306 (class jump_threader_simplifier): Same. Rename...
1307 (class jt_simplifier): ...to this.
1308 * tree-vrp.c (class vrp_jump_threader_simplifier): Rename...
1309 (class vrp_jt_simplifier): ...to this. Provide pass specific
1311 (class vrp_jt_state): New.
1312 (vrp_jump_threader_simplifier::simplify): Rename...
1313 (vrp_jt_simplifier::simplify): ...to this. Inline code from
1314 what used to be the base class.
1315 (vrp_jump_threader::vrp_jump_threader): Use vrp_jt_state and
1318 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
1321 * doc/invoke.texi (-Wno-missing-include-dirs.): Document Fortran
1324 2021-09-22 Roger Sayle <roger@nextmovesoftware.com>
1325 Richard Biener <rguenther@suse.de>
1327 * match.pd (negation simplifications): Implement some negation
1328 folding transformations from fold-const.c's fold_negate_expr.
1329 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Add a SIMPLIFY
1330 argument, to control whether the op should be simplified prior
1331 to looking up/assigning a value number.
1332 (vn_nary_build_or_lookup): Update call to vn_nary_build_or_lookup_1.
1333 (vn_nary_simplify): Likewise.
1334 (visit_nary_op): Likewise, but when constructing a NEGATE_EXPR
1335 now call vn_nary_build_or_lookup_1 disabling simplification.
1337 2021-09-22 Jiufu Guo <guojiufu@linux.ibm.com>
1339 PR tree-optimization/102087
1340 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
1341 Update bound/cmp/control for niter.
1343 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
1345 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
1346 Move check for non-empty BB here.
1347 (fur_source::register_outgoing_edges): ...from here.
1349 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
1351 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
1352 Remove call to improve_range_with_equivs.
1353 (path_range_query::improve_range_with_equivs): Remove
1354 * gimple-range-path.h: Remove improve_range_with_equivs.
1356 2021-09-22 dianhong xu <dianhong.xu@intel.com>
1358 * config/i386/avx512fp16intrin.h:
1359 (_mm512_mask_blend_ph): New intrinsic.
1360 (_mm512_permutex2var_ph): Ditto.
1361 (_mm512_permutexvar_ph): Ditto.
1362 * config/i386/avx512fp16vlintrin.h:
1363 (_mm256_mask_blend_ph): New intrinsic.
1364 (_mm256_permutex2var_ph): Ditto.
1365 (_mm256_permutexvar_ph): Ditto.
1366 (_mm_mask_blend_ph): Ditto.
1367 (_mm_permutex2var_ph): Ditto.
1368 (_mm_permutexvar_ph): Ditto.
1370 2021-09-22 dianhong xu <dianhong.xu@intel.com>
1372 * config/i386/avx512fp16intrin.h: Add new intrinsics.
1373 (_mm512_conj_pch): New intrinsic.
1374 (_mm512_mask_conj_pch): Ditto.
1375 (_mm512_maskz_conj_pch): Ditto.
1376 * config/i386/avx512fp16vlintrin.h: Add new intrinsics.
1377 (_mm256_conj_pch): New intrinsic.
1378 (_mm256_mask_conj_pch): Ditto.
1379 (_mm256_maskz_conj_pch): Ditto.
1380 (_mm_conj_pch): Ditto.
1381 (_mm_mask_conj_pch): Ditto.
1382 (_mm_maskz_conj_pch): Ditto.
1384 2021-09-22 dianhong xu <dianhong.xu@intel.com>
1386 * config/i386/avx512fp16intrin.h (_MM512_REDUCE_OP): New macro
1387 (_mm512_reduce_add_ph): New intrinsic.
1388 (_mm512_reduce_mul_ph): Ditto.
1389 (_mm512_reduce_min_ph): Ditto.
1390 (_mm512_reduce_max_ph): Ditto.
1391 * config/i386/avx512fp16vlintrin.h
1392 (_MM256_REDUCE_OP/_MM_REDUCE_OP): New macro.
1393 (_mm256_reduce_add_ph): New intrinsic.
1394 (_mm256_reduce_mul_ph): Ditto.
1395 (_mm256_reduce_min_ph): Ditto.
1396 (_mm256_reduce_max_ph): Ditto.
1397 (_mm_reduce_add_ph): Ditto.
1398 (_mm_reduce_mul_ph): Ditto.
1399 (_mm_reduce_min_ph): Ditto.
1400 (_mm_reduce_max_ph): Ditto.
1402 2021-09-22 dianhong xu <dianhong.xu@intel.com>
1404 * config/i386/avx512fp16intrin.h (__m512h_u, __m256h_u,
1405 __m128h_u): New typedef.
1406 (_mm512_load_ph): New intrinsic.
1407 (_mm256_load_ph): Ditto.
1408 (_mm_load_ph): Ditto.
1409 (_mm512_loadu_ph): Ditto.
1410 (_mm256_loadu_ph): Ditto.
1411 (_mm_loadu_ph): Ditto.
1412 (_mm512_store_ph): Ditto.
1413 (_mm256_store_ph): Ditto.
1414 (_mm_store_ph): Ditto.
1415 (_mm512_storeu_ph): Ditto.
1416 (_mm256_storeu_ph): Ditto.
1417 (_mm_storeu_ph): Ditto.
1418 (_mm512_abs_ph): Ditto.
1419 * config/i386/avx512fp16vlintrin.h
1420 (_mm_abs_ph): Ditto.
1421 (_mm256_abs_ph): Ditto.
1423 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
1425 * config/s390/tpf.md (prologue_tpf, epilogue_tpf): Add cc clobber.
1427 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
1430 * config/s390/s390.c (s390_expand_insv): Emit a normal move if it
1431 is actually a full copy of the source operand into the target.
1432 Don't emit a strict low part move if source and target mode match.
1434 2021-09-22 Jakub Jelinek <jakub@redhat.com>
1436 PR middle-end/102415
1437 * omp-expand.c (expand_omp_single): If region->exit is NULL,
1438 assert region->entry is GIMPLE_OMP_SCOPE region and return.
1440 2021-09-22 Jakub Jelinek <jakub@redhat.com>
1442 * tree.h (OMP_CLAUSE_ALLOCATE_ALIGN): Define.
1443 * tree.c (omp_clause_num_ops): Change number of OMP_CLAUSE_ALLOCATE
1444 arguments from 2 to 3.
1445 * tree-pretty-print.c (dump_omp_clause): Print allocator() around
1446 allocate clause allocator and print align if present.
1447 * omp-low.c (scan_sharing_clauses): Force allocate_map entry even
1448 for omp_default_mem_alloc if align modifier is present. If align
1449 modifier is present, use TREE_LIST to encode both allocator and
1451 (lower_private_allocate, lower_rec_input_clauses, create_task_copyfn):
1452 Handle align modifier on allocator clause if present.
1454 2021-09-22 liuhongt <hongtao.liu@intel.com>
1456 * config/i386/i386.md (define_attr "isa"): Add
1458 (define_attr "enabled"): Correspond fma_or_avx512vl to
1459 TARGET_FMA || TARGET_AVX512VL.
1460 * config/i386/mmx.md (fmav2sf4): Extend to AVX512 fma.
1465 2021-09-22 liuhongt <hongtao.liu@intel.com>
1467 * config/i386/i386.md (cstorehf3): New define_expand.
1469 2021-09-22 liuhongt <hongtao.liu@intel.com>
1471 * config/i386/i386.md (<rounding_insn>hf2): New expander.
1472 (sse4_1_round<mode>2): Extend from MODEF to MODEFH.
1473 * config/i386/sse.md (*sse4_1_round<ssescalarmodesuffix>):
1474 Extend from VF_128 to VFH_128.
1476 2021-09-22 liuhongt <hongtao.liu@intel.com>
1478 * config/i386/i386-features.c (i386-features.c): Handle
1480 * config/i386/i386.md (sqrthf2): New expander.
1481 (*sqrthf2): New define_insn.
1482 * config/i386/sse.md
1483 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
1486 2021-09-22 liuhongt <hongtao.liu@intel.com>
1488 * config/i386/avx512fp16intrin.h (_mm_mask_fcmadd_sch):
1490 (_mm_mask3_fcmadd_sch): Likewise.
1491 (_mm_maskz_fcmadd_sch): Likewise.
1492 (_mm_fcmadd_sch): Likewise.
1493 (_mm_mask_fmadd_sch): Likewise.
1494 (_mm_mask3_fmadd_sch): Likewise.
1495 (_mm_maskz_fmadd_sch): Likewise.
1496 (_mm_fmadd_sch): Likewise.
1497 (_mm_mask_fcmadd_round_sch): Likewise.
1498 (_mm_mask3_fcmadd_round_sch): Likewise.
1499 (_mm_maskz_fcmadd_round_sch): Likewise.
1500 (_mm_fcmadd_round_sch): Likewise.
1501 (_mm_mask_fmadd_round_sch): Likewise.
1502 (_mm_mask3_fmadd_round_sch): Likewise.
1503 (_mm_maskz_fmadd_round_sch): Likewise.
1504 (_mm_fmadd_round_sch): Likewise.
1505 (_mm_fcmul_sch): Likewise.
1506 (_mm_mask_fcmul_sch): Likewise.
1507 (_mm_maskz_fcmul_sch): Likewise.
1508 (_mm_fmul_sch): Likewise.
1509 (_mm_mask_fmul_sch): Likewise.
1510 (_mm_maskz_fmul_sch): Likewise.
1511 (_mm_fcmul_round_sch): Likewise.
1512 (_mm_mask_fcmul_round_sch): Likewise.
1513 (_mm_maskz_fcmul_round_sch): Likewise.
1514 (_mm_fmul_round_sch): Likewise.
1515 (_mm_mask_fmul_round_sch): Likewise.
1516 (_mm_maskz_fmul_round_sch): Likewise.
1517 * config/i386/i386-builtin.def: Add corresponding new builtins.
1518 * config/i386/sse.md
1519 (avx512fp16_fmaddcsh_v8hf_maskz<round_expand_name>): New expander.
1520 (avx512fp16_fcmaddcsh_v8hf_maskz<round_expand_name>): Ditto.
1521 (avx512fp16_fma_<complexopname>sh_v8hf<mask_scalarcz_name><round_scalarcz_name>):
1523 (avx512fp16_<complexopname>sh_v8hf_mask<round_name>): Ditto.
1524 (avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>):
1526 * config/i386/subst.md (mask_scalarcz_name): New.
1527 (mask_scalarc_name): Ditto.
1528 (mask_scalarc_operand3): Ditto.
1529 (mask_scalarcz_operand4): Ditto.
1530 (round_scalarcz_name): Ditto.
1531 (round_scalarc_mask_operand3): Ditto.
1532 (round_scalarcz_mask_operand4): Ditto.
1533 (round_scalarc_mask_op3): Ditto.
1534 (round_scalarcz_mask_op4): Ditto.
1535 (round_scalarcz_constraint): Ditto.
1536 (round_scalarcz_nimm_predicate): Ditto.
1537 (mask_scalarcz): Ditto.
1538 (mask_scalarc): Ditto.
1539 (round_scalarcz): Ditto.
1541 2021-09-22 liuhongt <hongtao.liu@intel.com>
1543 * config/i386/avx512fp16intrin.h (_mm512_fcmadd_pch):
1545 (_mm512_mask_fcmadd_pch): Likewise.
1546 (_mm512_mask3_fcmadd_pch): Likewise.
1547 (_mm512_maskz_fcmadd_pch): Likewise.
1548 (_mm512_fmadd_pch): Likewise.
1549 (_mm512_mask_fmadd_pch): Likewise.
1550 (_mm512_mask3_fmadd_pch): Likewise.
1551 (_mm512_maskz_fmadd_pch): Likewise.
1552 (_mm512_fcmadd_round_pch): Likewise.
1553 (_mm512_mask_fcmadd_round_pch): Likewise.
1554 (_mm512_mask3_fcmadd_round_pch): Likewise.
1555 (_mm512_maskz_fcmadd_round_pch): Likewise.
1556 (_mm512_fmadd_round_pch): Likewise.
1557 (_mm512_mask_fmadd_round_pch): Likewise.
1558 (_mm512_mask3_fmadd_round_pch): Likewise.
1559 (_mm512_maskz_fmadd_round_pch): Likewise.
1560 (_mm512_fcmul_pch): Likewise.
1561 (_mm512_mask_fcmul_pch): Likewise.
1562 (_mm512_maskz_fcmul_pch): Likewise.
1563 (_mm512_fmul_pch): Likewise.
1564 (_mm512_mask_fmul_pch): Likewise.
1565 (_mm512_maskz_fmul_pch): Likewise.
1566 (_mm512_fcmul_round_pch): Likewise.
1567 (_mm512_mask_fcmul_round_pch): Likewise.
1568 (_mm512_maskz_fcmul_round_pch): Likewise.
1569 (_mm512_fmul_round_pch): Likewise.
1570 (_mm512_mask_fmul_round_pch): Likewise.
1571 (_mm512_maskz_fmul_round_pch): Likewise.
1572 * config/i386/avx512fp16vlintrin.h (_mm_fmadd_pch):
1574 (_mm_mask_fmadd_pch): Likewise.
1575 (_mm_mask3_fmadd_pch): Likewise.
1576 (_mm_maskz_fmadd_pch): Likewise.
1577 (_mm256_fmadd_pch): Likewise.
1578 (_mm256_mask_fmadd_pch): Likewise.
1579 (_mm256_mask3_fmadd_pch): Likewise.
1580 (_mm256_maskz_fmadd_pch): Likewise.
1581 (_mm_fcmadd_pch): Likewise.
1582 (_mm_mask_fcmadd_pch): Likewise.
1583 (_mm_mask3_fcmadd_pch): Likewise.
1584 (_mm_maskz_fcmadd_pch): Likewise.
1585 (_mm256_fcmadd_pch): Likewise.
1586 (_mm256_mask_fcmadd_pch): Likewise.
1587 (_mm256_mask3_fcmadd_pch): Likewise.
1588 (_mm256_maskz_fcmadd_pch): Likewise.
1589 (_mm_fmul_pch): Likewise.
1590 (_mm_mask_fmul_pch): Likewise.
1591 (_mm_maskz_fmul_pch): Likewise.
1592 (_mm256_fmul_pch): Likewise.
1593 (_mm256_mask_fmul_pch): Likewise.
1594 (_mm256_maskz_fmul_pch): Likewise.
1595 (_mm_fcmul_pch): Likewise.
1596 (_mm_mask_fcmul_pch): Likewise.
1597 (_mm_maskz_fcmul_pch): Likewise.
1598 (_mm256_fcmul_pch): Likewise.
1599 (_mm256_mask_fcmul_pch): Likewise.
1600 (_mm256_maskz_fcmul_pch): Likewise.
1601 * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF_V8HF_V8HF,
1602 V8HF_FTYPE_V16HF_V16HF_V16HF, V16HF_FTYPE_V16HF_V16HF_V16HF_UQI,
1603 V32HF_FTYPE_V32HF_V32HF_V32HF_INT,
1604 V32HF_FTYPE_V32HF_V32HF_V32HF_UHI_INT): Add new builtin types.
1605 * config/i386/i386-builtin.def: Add new builtins.
1606 * config/i386/i386-expand.c: Handle new builtin types.
1607 * config/i386/subst.md (SUBST_CV): New.
1608 (maskc_name): Ditto.
1609 (maskc_operand3): Ditto.
1611 (sdc_maskz_name): Ditto.
1612 (sdc_mask_op4): Ditto.
1613 (sdc_mask_op5): Ditto.
1614 (sdc_mask_mode512bit_condition): Ditto.
1616 (round_maskc_operand3): Ditto.
1617 (round_sdc_mask_operand4): Ditto.
1618 (round_maskc_op3): Ditto.
1619 (round_sdc_mask_op4): Ditto.
1620 (round_saeonly_sdc_mask_operand5): Ditto.
1621 * config/i386/sse.md (unspec): Add complex fma unspecs.
1622 (avx512fmaskcmode): New.
1623 (UNSPEC_COMPLEX_F_C_MA): Ditto.
1624 (UNSPEC_COMPLEX_F_C_MUL): Ditto.
1625 (complexopname): Ditto.
1626 (<avx512>_fmaddc_<mode>_maskz<round_expand_name>): New expander.
1627 (<avx512>_fcmaddc_<mode>_maskz<round_expand_name>): Ditto.
1628 (fma_<complexopname>_<mode><sdc_maskz_name><round_name>): New
1630 (<avx512>_<complexopname>_<mode>_mask<round_name>): Ditto.
1631 (<avx512>_<complexopname>_<mode><maskc_name><round_name>): Ditto.
1633 2021-09-22 Kewen Lin <linkw@linux.ibm.com>
1635 * config/rs6000/rs6000.opt (rs6000-density-pct-threshold,
1636 rs6000-density-size-threshold, rs6000-density-penalty,
1637 rs6000-density-load-pct-threshold,
1638 rs6000-density-load-num-threshold): New parameter.
1639 * config/rs6000/rs6000.c (rs6000_density_test): Adjust with
1640 corresponding parameters.
1642 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
1644 * gimple-range-path.cc (path_range_query::defined_outside_path):
1646 (path_range_query::range_on_path_entry): New.
1647 (path_range_query::internal_range_of_expr): Resolve unknowns
1649 (path_range_query::improve_range_with_equivs): New.
1650 (path_range_query::ssa_range_in_phi): Resolve unknowns with
1652 * gimple-range-path.h (class path_range_query): Add
1653 defined_outside_path, range_on_path_entry, and
1654 improve_range_with_equivs.
1656 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
1658 * gimple-range-path.cc (path_range_query::add_to_imports): New.
1659 (path_range_query::add_copies_to_imports): New.
1660 (path_range_query::precompute_ranges): Call
1661 add_copies_to_imports.
1662 * gimple-range-path.h (class path_range_query): Add prototypes
1663 for add_copies_to_imports and add_to_imports.
1665 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
1667 * gimple-range-path.cc (path_range_query::range_defined_in_block):
1668 Remove useless code.
1670 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
1672 * gimple-range-fold.h (class fur_source): Make oracle protected.
1673 * gimple-range-path.cc (path_range_query::path_range_query): Add
1674 resolve argument. Initialize oracle.
1675 (path_range_query::~path_range_query): Delete oracle.
1676 (path_range_query::range_of_stmt): Adapt to use relations.
1677 (path_range_query::precompute_ranges): Pre-compute relations.
1678 (class jt_fur_source): New
1679 (jt_fur_source::jt_fur_source): New.
1680 (jt_fur_source::register_relation): New.
1681 (jt_fur_source::query_relation): New.
1682 (path_range_query::precompute_relations): New.
1683 (path_range_query::precompute_phi_relations): New.
1684 * gimple-range-path.h (path_range_query): Add resolve argument.
1685 Add oracle, precompute_relations, precompute_phi_relations.
1686 * tree-ssa-threadbackward.c (back_threader::back_threader): Pass
1687 resolve argument to solver.
1689 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
1691 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
1692 Rename postfold_gcond_edges to register_outgoing_edges and
1694 (fold_using_range::postfold_gcond_edges): Rename...
1695 (fur_source::register_outgoing_edges): ...to this.
1696 * gimple-range-fold.h (postfold_gcond_edges): Rename to
1697 register_outgoing_edges and move to fur_source.
1699 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
1701 * gimple-range-fold.cc (fold_using_range::range_of_phi): Check
1702 dom_info_available_p.
1704 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
1706 * gimple-range-cache.cc (non_null_ref::non_null_ref): Use create
1707 and quick_grow_cleared instead of safe_grow_cleared.
1709 2021-09-21 Thomas Schwinge <thomas@codesourcery.com>
1712 * omp-oacc-neuter-broadcast.cc (oacc_do_neutering): Evaluate
1715 2021-09-21 Richard Earnshaw <rearnsha@arm.com>
1717 * configure.ac: Detect when the assembler supports new-style
1718 architecture extensions.
1719 * common/config/arm/arm-common.c (arm_rewrite_mcpu): Return
1720 the full CPU string if the assembler can grok it.
1721 (arm_rewrite_march): Likewise but for the architecture.
1722 * config.in: Regenerate.
1723 * configure: Regenerate.
1725 2021-09-21 Richard Biener <rguenther@suse.de>
1727 PR tree-optimization/102421
1728 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Copy and
1729 adjust alignment info.
1731 2021-09-21 Kewen Lin <linkw@linux.ibm.com>
1733 * ipa-fnsummary.c (ipa_fn_summary_write): Remove inconsistent
1734 bitfield stream out.
1736 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
1738 * gimple-range-fold.cc (fold_using_range::range_of_phi): Ignore
1739 undefined edges, apply an equivalence if appropriate.
1740 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Return
1741 UNDEFINED if EDGE_EXECUTABLE is not set.
1742 * gimple-range.cc (gimple_ranger::gimple_ranger): Set all edges
1743 as EXECUTABLE upon startup.
1744 (gimple_ranger::range_on_edge): Return UNDEFINED for edges without
1745 EDGE_EXECUTABLE set.
1746 * vr-values.c (set_and_propagate_unexecutable): New.
1747 (simplify_using_ranges::fold_cond): Call set_and_propagate.
1748 (simplify_using_ranges::simplify_switch_using_ranges): Ditto.
1749 * vr-values.h: Add prototype.
1751 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
1753 * value-relation.cc (equiv_oracle::register_initial_def): New.
1754 (equiv_oracle::register_relation): Call register_initial_def.
1755 (equiv_oracle::add_equiv_to_block): New. Split register_relation.
1756 (relation_oracle::register_stmt): Check def block of PHI arguments.
1757 * value-relation.h (equiv_oracle): Add new prototypes.
1759 2021-09-20 Matthias Kretz <m.kretz@gsi.de>
1761 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
1762 Define __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
1763 __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
1764 __ROUNDING_MATH__ according to their corresponding flags.
1765 * doc/cpp.texi: Document __RECIPROCAL_MATH__,
1766 __NO_SIGNED_ZEROS__, __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__,
1767 and __ROUNDING_MATH__.
1769 2021-09-20 Richard Biener <rguenther@suse.de>
1771 * tree-vect-stmts.c (vectorizable_load): Use the vectype
1774 2021-09-20 Richard Biener <rguenther@suse.de>
1776 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
1777 Do not compute alignment of the vectorized access here.
1779 2021-09-20 Richard Biener <rguenther@suse.de>
1781 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1782 Store -1 for runtime alias peeling iterations.
1784 2021-09-20 Richard Biener <rguenther@suse.de>
1786 * config.gcc: Obsolete hppa[12]*-*-hpux10* and hppa[12]*-*-hpux11*.
1788 2021-09-20 Thomas Schwinge <thomas@codesourcery.com>
1790 * input.c (string_concat_db::record_string_concatenation)
1791 (string_concat_db::get_string_concatenation): Skip for
1792 'RESERVED_LOCATION_P'.
1794 2021-09-20 Richard Biener <rguenther@suse.de>
1796 PR tree-optimization/65206
1797 * tree-data-ref.h (struct data_reference): Add alt_indices,
1799 * tree-data-ref.c (free_data_ref): Release alt_indices.
1800 (dr_analyze_indices): Work on struct indices and get DR_REF as tree.
1801 (create_data_ref): Adjust.
1802 (initialize_data_dependence_relation): Split into head
1803 and tail. When the base objects fail to match up try
1804 again with pointer-based analysis of indices.
1805 * tree-vectorizer.c (vec_info_shared::check_datarefs): Do
1806 not compare the lazily computed alternate set of indices.
1808 2021-09-20 Iain Sandoe <iain@sandoe.co.uk>
1810 * gcc.c: Test for execute OK when we find the
1811 programs for assembler linker and dsymutil and those
1812 were specified at configure-time.
1814 2021-09-19 Martin Sebor <msebor@redhat.com>
1816 PR middle-end/102403
1817 * gimple-predicate-analysis.cc (predicate::init_from_control_deps):
1818 Correct a function pre/postcondition.
1820 2021-09-19 Martin Sebor <msebor@redhat.com>
1822 PR middle-end/102243
1823 * tree-ssa-strlen.c (get_range): Handle null cfun.
1825 2021-09-19 Iain Sandoe <iain@sandoe.co.uk>
1827 * config/darwin.h (LINK_COMMAND_SPEC_A): Use Darwin10
1828 unwinder shim as a convenience library.
1830 2021-09-19 Andrew Pinski <apinski@marvell.com>
1832 * doc/install.texi: Add note about
1833 binutils 2.35 is required for LTO usage.
1835 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
1837 * tree-ssa-threadbackward.c
1838 (back_threader_registry::register_path): Use push_edge.
1839 * tree-ssa-threadedge.c
1840 (jump_threader::thread_around_empty_blocks): Same.
1841 (jump_threader::thread_through_normal_block): Same.
1842 (jump_threader::thread_across_edge): Same. Also, use auto_bitmap.
1844 * tree-ssa-threadupdate.c
1845 (jt_path_registry::allocate_thread_edge): Remove.
1846 (jt_path_registry::push_edge): New.
1847 (dump_jump_thread_path): Make static.
1848 * tree-ssa-threadupdate.h (allocate_thread_edge): Remove.
1851 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
1853 * gimple-range-path.cc (path_range_query::path_range_query): Add
1855 (path_range_query::dump): Remove extern declaration of dump_ranger.
1856 * gimple-range-trace.cc (dump_ranger): Add DEBUG_FUNCTION marker.
1857 * gimple-range-trace.h (dump_ranger): Add prototype.
1859 2021-09-19 John Ericson <git@JohnEricson.me>
1861 * gcc.c (find_a_program): New function, factored out of...
1862 (find_a_file): Here.
1863 (execute): Use find_a_program when looking for programs rather
1866 2021-09-19 Matwey V. Kornilov <matwey.kornilov@gmail.com>
1868 * config/avr/avr-mcus.def: Add atmega324pb.
1869 * doc/avr-mmcu.texi: Corresponding changes.
1871 2021-09-19 Roger Sayle <roger@nextmovesoftware.com>
1874 * match.pd (cmp @0 REAL_CST@1): When @0 is also REAL_CST, apply
1875 the same transformations as to @1. For comparisons against NaN,
1876 don't check HONOR_SNANS but confirm that neither operand is a
1879 2021-09-19 Benjamin Peterson <benjamin@locrian.net>
1881 * attribs.c (make_unique_name): Delete.
1882 * attribs.h (make_unique_name): Delete.
1884 2021-09-19 Andrew Pinski <apinski@marvell.com>
1886 * lra-constraints.c (check_and_process_move): Assert
1887 that dclass and sclass are greater than or equal to NO_REGS.
1889 2021-09-18 Jakub Jelinek <jakub@redhat.com>
1891 * tree.h (OMP_CLAUSE_ORDER_UNCONSTRAINED): Define.
1892 * tree-pretty-print.c (dump_omp_clause): Print unconstrained:
1893 for OMP_CLAUSE_ORDER_UNCONSTRAINED.
1895 2021-09-18 liuhongt <hongtao.liu@intel.com>
1897 * config/i386/i386-features.c (remove_partial_avx_dependency):
1898 Restrict TARGET_USE_VECTOR_FP_CONVERTS and
1899 TARGET_USE_VECTOR_CONVERTS to conversion instructions only.
1901 2021-09-18 Jakub Jelinek <jakub@redhat.com>
1903 * gimplify.c (omp_default_clause): For C/C++ default({,first}private),
1904 if file/namespace scope variable doesn't have predetermined sharing,
1905 treat it as if there was default(none).
1907 2021-09-18 liuhongt <hongtao.liu@intel.com>
1909 * config/i386/avx512fp16intrin.h (_mm_fmadd_sh):
1911 (_mm_mask_fmadd_sh): Likewise.
1912 (_mm_mask3_fmadd_sh): Likewise.
1913 (_mm_maskz_fmadd_sh): Likewise.
1914 (_mm_fmadd_round_sh): Likewise.
1915 (_mm_mask_fmadd_round_sh): Likewise.
1916 (_mm_mask3_fmadd_round_sh): Likewise.
1917 (_mm_maskz_fmadd_round_sh): Likewise.
1918 (_mm_fnmadd_sh): Likewise.
1919 (_mm_mask_fnmadd_sh): Likewise.
1920 (_mm_mask3_fnmadd_sh): Likewise.
1921 (_mm_maskz_fnmadd_sh): Likewise.
1922 (_mm_fnmadd_round_sh): Likewise.
1923 (_mm_mask_fnmadd_round_sh): Likewise.
1924 (_mm_mask3_fnmadd_round_sh): Likewise.
1925 (_mm_maskz_fnmadd_round_sh): Likewise.
1926 (_mm_fmsub_sh): Likewise.
1927 (_mm_mask_fmsub_sh): Likewise.
1928 (_mm_mask3_fmsub_sh): Likewise.
1929 (_mm_maskz_fmsub_sh): Likewise.
1930 (_mm_fmsub_round_sh): Likewise.
1931 (_mm_mask_fmsub_round_sh): Likewise.
1932 (_mm_mask3_fmsub_round_sh): Likewise.
1933 (_mm_maskz_fmsub_round_sh): Likewise.
1934 (_mm_fnmsub_sh): Likewise.
1935 (_mm_mask_fnmsub_sh): Likewise.
1936 (_mm_mask3_fnmsub_sh): Likewise.
1937 (_mm_maskz_fnmsub_sh): Likewise.
1938 (_mm_fnmsub_round_sh): Likewise.
1939 (_mm_mask_fnmsub_round_sh): Likewise.
1940 (_mm_mask3_fnmsub_round_sh): Likewise.
1941 (_mm_maskz_fnmsub_round_sh): Likewise.
1942 * config/i386/i386-builtin-types.def
1943 (V8HF_FTYPE_V8HF_V8HF_V8HF_UQI_INT): New builtin type.
1944 * config/i386/i386-builtin.def: Add new builtins.
1945 * config/i386/i386-expand.c: Handle new builtin type.
1946 * config/i386/sse.md (fmai_vmfmadd_<mode><round_name>):
1947 Ajdust to support FP16.
1948 (fmai_vmfmsub_<mode><round_name>): Ditto.
1949 (fmai_vmfnmadd_<mode><round_name>): Ditto.
1950 (fmai_vmfnmsub_<mode><round_name>): Ditto.
1951 (*fmai_fmadd_<mode>): Ditto.
1952 (*fmai_fmsub_<mode>): Ditto.
1953 (*fmai_fnmadd_<mode><round_name>): Ditto.
1954 (*fmai_fnmsub_<mode><round_name>): Ditto.
1955 (avx512f_vmfmadd_<mode>_mask<round_name>): Ditto.
1956 (avx512f_vmfmadd_<mode>_mask3<round_name>): Ditto.
1957 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): Ditto.
1958 (avx512f_vmfmadd_<mode>_maskz_1<round_name>): Ditto.
1959 (*avx512f_vmfmsub_<mode>_mask<round_name>): Ditto.
1960 (avx512f_vmfmsub_<mode>_mask3<round_name>): Ditto.
1961 (*avx512f_vmfmsub_<mode>_maskz_1<round_name>): Ditto.
1962 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
1963 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): Ditto.
1964 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
1965 (*avx512f_vmfnmadd_<mode>_mask<round_name>): Renamed to ...
1966 (avx512f_vmfnmadd_<mode>_mask<round_name>) ... this, and
1967 adjust to support FP16.
1968 (avx512f_vmfnmadd_<mode>_mask3<round_name>): Ditto.
1969 (avx512f_vmfnmadd_<mode>_maskz_1<round_name>): Ditto.
1970 (avx512f_vmfnmadd_<mode>_maskz<round_expand_name>): New
1973 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
1975 * config/i386/sse.md (avx512fmaskmodelower): Extend to support
1977 (maskload<mode><avx512fmaskmodelower>): Ditto.
1978 (maskstore<mode><avx512fmaskmodelower>): Ditto.
1980 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
1982 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
1984 (ix86_expand_copysign): Ditto.
1985 (ix86_expand_xorsign): Ditto.
1986 * config/i386/i386.c (ix86_build_const_vector): Handle HF vector
1988 (ix86_build_signbit_mask): Ditto.
1989 (ix86_can_change_mode_class): Ditto.
1990 * config/i386/i386.md
1991 (SSEMODEF): Add HFmode.
1992 (ssevecmodef): Ditto.
1993 (<code>hf2): New define_expand.
1994 (*<code>hf2_1): New define_insn_and_split.
1995 (copysign<mode>): Extend to support HFmode under AVX512FP16.
1996 (xorsign<mode>): Ditto.
1997 * config/i386/sse.md (VFB): New mode iterator.
1998 (VFB_128_256): Ditto.
2000 (sseintvecmode2): Support HF vector mode.
2001 (<code><mode>2): Use new mode iterator.
2002 (*<code><mode>2): Ditto.
2003 (copysign<mode>3): Ditto.
2004 (xorsign<mode>3): Ditto.
2005 (<code><mode>3<mask_name>): Ditto.
2006 (<code><mode>3<mask_name>): Ditto.
2007 (<sse>_andnot<mode>3<mask_name>): Adjust for HF vector mode.
2008 (<sse>_andnot<mode>3<mask_name>): Ditto.
2009 (*<code><mode>3<mask_name>): Ditto.
2010 (*<code><mode>3<mask_name>): Ditto.
2012 2021-09-18 liuhongt <hongtao.liu@intel.com>
2014 * config/i386/avx512fp16intrin.h (_mm512_mask_fmadd_ph):
2016 (_mm512_mask3_fmadd_ph): Likewise.
2017 (_mm512_maskz_fmadd_ph): Likewise.
2018 (_mm512_fmadd_round_ph): Likewise.
2019 (_mm512_mask_fmadd_round_ph): Likewise.
2020 (_mm512_mask3_fmadd_round_ph): Likewise.
2021 (_mm512_maskz_fmadd_round_ph): Likewise.
2022 (_mm512_fnmadd_ph): Likewise.
2023 (_mm512_mask_fnmadd_ph): Likewise.
2024 (_mm512_mask3_fnmadd_ph): Likewise.
2025 (_mm512_maskz_fnmadd_ph): Likewise.
2026 (_mm512_fnmadd_round_ph): Likewise.
2027 (_mm512_mask_fnmadd_round_ph): Likewise.
2028 (_mm512_mask3_fnmadd_round_ph): Likewise.
2029 (_mm512_maskz_fnmadd_round_ph): Likewise.
2030 (_mm512_fmsub_ph): Likewise.
2031 (_mm512_mask_fmsub_ph): Likewise.
2032 (_mm512_mask3_fmsub_ph): Likewise.
2033 (_mm512_maskz_fmsub_ph): Likewise.
2034 (_mm512_fmsub_round_ph): Likewise.
2035 (_mm512_mask_fmsub_round_ph): Likewise.
2036 (_mm512_mask3_fmsub_round_ph): Likewise.
2037 (_mm512_maskz_fmsub_round_ph): Likewise.
2038 (_mm512_fnmsub_ph): Likewise.
2039 (_mm512_mask_fnmsub_ph): Likewise.
2040 (_mm512_mask3_fnmsub_ph): Likewise.
2041 (_mm512_maskz_fnmsub_ph): Likewise.
2042 (_mm512_fnmsub_round_ph): Likewise.
2043 (_mm512_mask_fnmsub_round_ph): Likewise.
2044 (_mm512_mask3_fnmsub_round_ph): Likewise.
2045 (_mm512_maskz_fnmsub_round_ph): Likewise.
2046 * config/i386/avx512fp16vlintrin.h (_mm256_fmadd_ph):
2048 (_mm256_mask_fmadd_ph): Likewise.
2049 (_mm256_mask3_fmadd_ph): Likewise.
2050 (_mm256_maskz_fmadd_ph): Likewise.
2051 (_mm_fmadd_ph): Likewise.
2052 (_mm_mask_fmadd_ph): Likewise.
2053 (_mm_mask3_fmadd_ph): Likewise.
2054 (_mm_maskz_fmadd_ph): Likewise.
2055 (_mm256_fnmadd_ph): Likewise.
2056 (_mm256_mask_fnmadd_ph): Likewise.
2057 (_mm256_mask3_fnmadd_ph): Likewise.
2058 (_mm256_maskz_fnmadd_ph): Likewise.
2059 (_mm_fnmadd_ph): Likewise.
2060 (_mm_mask_fnmadd_ph): Likewise.
2061 (_mm_mask3_fnmadd_ph): Likewise.
2062 (_mm_maskz_fnmadd_ph): Likewise.
2063 (_mm256_fmsub_ph): Likewise.
2064 (_mm256_mask_fmsub_ph): Likewise.
2065 (_mm256_mask3_fmsub_ph): Likewise.
2066 (_mm256_maskz_fmsub_ph): Likewise.
2067 (_mm_fmsub_ph): Likewise.
2068 (_mm_mask_fmsub_ph): Likewise.
2069 (_mm_mask3_fmsub_ph): Likewise.
2070 (_mm_maskz_fmsub_ph): Likewise.
2071 (_mm256_fnmsub_ph): Likewise.
2072 (_mm256_mask_fnmsub_ph): Likewise.
2073 (_mm256_mask3_fnmsub_ph): Likewise.
2074 (_mm256_maskz_fnmsub_ph): Likewise.
2075 (_mm_fnmsub_ph): Likewise.
2076 (_mm_mask_fnmsub_ph): Likewise.
2077 (_mm_mask3_fnmsub_ph): Likewise.
2078 (_mm_maskz_fnmsub_ph): Likewise.
2079 * config/i386/i386-builtin.def: Add corresponding new builtins.
2080 * config/i386/sse.md
2081 (<avx512>_fmadd_<mode>_maskz<round_expand_name>): Adjust to
2082 support HF vector modes.
2083 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
2085 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
2086 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
2087 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
2088 (<avx512>_fmadd_<mode>_mask<round_name>): Ditto.
2089 (<avx512>_fmadd_<mode>_mask3<round_name>): Ditto.
2090 (<avx512>_fmsub_<mode>_maskz<round_expand_name>): Ditto.
2091 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
2093 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
2094 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
2095 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
2096 (<avx512>_fmsub_<mode>_mask<round_name>): Ditto.
2097 (<avx512>_fmsub_<mode>_mask3<round_name>): Ditto.
2098 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
2100 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
2101 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
2102 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
2103 (<avx512>_fnmadd_<mode>_mask<round_name>): Ditto.
2104 (<avx512>_fnmadd_<mode>_mask3<round_name>): Ditto.
2105 (<avx512>_fnmsub_<mode>_maskz<round_expand_name>): Ditto.
2106 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
2108 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
2109 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
2110 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
2111 (<avx512>_fnmsub_<mode>_mask<round_name>): Ditto.
2112 (<avx512>_fnmsub_<mode>_mask3<round_name>): Ditto.
2114 2021-09-18 liuhongt <hongtao.liu@intel.com>
2116 * config/i386/avx512fp16intrin.h (_mm512_fmaddsub_ph):
2118 (_mm512_mask_fmaddsub_ph): Likewise.
2119 (_mm512_mask3_fmaddsub_ph): Likewise.
2120 (_mm512_maskz_fmaddsub_ph): Likewise.
2121 (_mm512_fmaddsub_round_ph): Likewise.
2122 (_mm512_mask_fmaddsub_round_ph): Likewise.
2123 (_mm512_mask3_fmaddsub_round_ph): Likewise.
2124 (_mm512_maskz_fmaddsub_round_ph): Likewise.
2125 (_mm512_mask_fmsubadd_ph): Likewise.
2126 (_mm512_mask3_fmsubadd_ph): Likewise.
2127 (_mm512_maskz_fmsubadd_ph): Likewise.
2128 (_mm512_fmsubadd_round_ph): Likewise.
2129 (_mm512_mask_fmsubadd_round_ph): Likewise.
2130 (_mm512_mask3_fmsubadd_round_ph): Likewise.
2131 (_mm512_maskz_fmsubadd_round_ph): Likewise.
2132 * config/i386/avx512fp16vlintrin.h (_mm256_fmaddsub_ph):
2134 (_mm256_mask_fmaddsub_ph): Likewise.
2135 (_mm256_mask3_fmaddsub_ph): Likewise.
2136 (_mm256_maskz_fmaddsub_ph): Likewise.
2137 (_mm_fmaddsub_ph): Likewise.
2138 (_mm_mask_fmaddsub_ph): Likewise.
2139 (_mm_mask3_fmaddsub_ph): Likewise.
2140 (_mm_maskz_fmaddsub_ph): Likewise.
2141 (_mm256_fmsubadd_ph): Likewise.
2142 (_mm256_mask_fmsubadd_ph): Likewise.
2143 (_mm256_mask3_fmsubadd_ph): Likewise.
2144 (_mm256_maskz_fmsubadd_ph): Likewise.
2145 (_mm_fmsubadd_ph): Likewise.
2146 (_mm_mask_fmsubadd_ph): Likewise.
2147 (_mm_mask3_fmsubadd_ph): Likewise.
2148 (_mm_maskz_fmsubadd_ph): Likewise.
2149 * config/i386/i386-builtin.def: Add corresponding new builtins.
2150 * config/i386/sse.md (VFH_SF_AVX512VL): New mode iterator.
2151 * (<avx512>_fmsubadd_<mode>_maskz<round_expand_name>): New expander.
2152 * (<avx512>_fmaddsub_<mode>_maskz<round_expand_name>): Use
2154 * (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
2156 * (<avx512>_fmaddsub_<mode>_mask<round_name>): Ditto.
2157 * (<avx512>_fmaddsub_<mode>_mask3<round_name>): Ditto.
2158 * (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
2160 * (<avx512>_fmsubadd_<mode>_mask<round_name>): Ditto.
2161 * (<avx512>_fmsubadd_<mode>_mask3<round_name>): Ditto.
2163 2021-09-18 liuhongt <hongtao.liu@intel.com>
2166 * config/i386/i386.c (ix86_print_operand): Handle
2167 V8HF/V16HF/V32HFmode.
2168 * config/i386/i386.h (VALID_BCST_MODE_P): Add HFmode.
2169 * config/i386/sse.md (avx512bcst): Remove.
2171 2021-09-17 Martin Sebor <msebor@redhat.com>
2173 * Makefile.in (OBJS): Add gimple-predicate-analysis.o.
2174 * tree-ssa-uninit.c (max_phi_args): Move to gimple-predicate-analysis.
2175 (MASK_SET_BIT, MASK_TEST_BIT, MASK_EMPTY): Same.
2176 (check_defs): Add comment.
2177 (can_skip_redundant_opnd): Update comment.
2178 (compute_uninit_opnds_pos): Adjust to namespace change.
2179 (find_pdom): Move to gimple-predicate-analysis.cc.
2181 (struct uninit_undef_val_t): New.
2182 (is_non_loop_exit_postdominating): Move to gimple-predicate-analysis.cc.
2183 (find_control_equiv_block): Same.
2184 (MAX_NUM_CHAINS, MAX_CHAIN_LEN, MAX_POSTDOM_CHECK): Same.
2185 (MAX_SWITCH_CASES): Same.
2186 (compute_control_dep_chain): Same.
2187 (find_uninit_use): Use predicate analyzer.
2188 (struct pred_info): Move to gimple-predicate-analysis.
2189 (convert_control_dep_chain_into_preds): Same.
2190 (find_predicates): Same.
2191 (collect_phi_def_edges): Same.
2192 (warn_uninitialized_phi): Use predicate analyzer.
2193 (find_def_preds): Move to gimple-predicate-analysis.
2194 (dump_pred_info): Same.
2195 (dump_pred_chain): Same.
2196 (dump_predicates): Same.
2197 (destroy_predicate_vecs): Remove.
2198 (execute_late_warn_uninitialized): New.
2199 (get_cmp_code): Move to gimple-predicate-analysis.
2200 (is_value_included_in): Same.
2201 (value_sat_pred_p): Same.
2202 (find_matching_predicate_in_rest_chains): Same.
2203 (is_use_properly_guarded): Same.
2204 (prune_uninit_phi_opnds): Same.
2205 (find_var_cmp_const): Same.
2206 (use_pred_not_overlap_with_undef_path_pred): Same.
2207 (pred_equal_p): Same.
2208 (is_neq_relop_p): Same.
2209 (is_neq_zero_form_p): Same.
2210 (pred_expr_equal_p): Same.
2211 (is_pred_expr_subset_of): Same.
2212 (is_pred_chain_subset_of): Same.
2213 (is_included_in): Same.
2214 (is_superset_of): Same.
2216 (simplify_pred): Same.
2217 (simplify_preds_2): Same.
2218 (simplify_preds_3): Same.
2219 (simplify_preds_4): Same.
2220 (simplify_preds): Same.
2222 (push_to_worklist): Same.
2223 (get_pred_info_from_cmp): Same.
2224 (is_degenerated_phi): Same.
2225 (normalize_one_pred_1): Same.
2226 (normalize_one_pred): Same.
2227 (normalize_one_pred_chain): Same.
2228 (normalize_preds): Same.
2229 (can_one_predicate_be_invalidated_p): Same.
2230 (can_chain_union_be_invalidated_p): Same.
2231 (uninit_uses_cannot_happen): Same.
2232 (pass_late_warn_uninitialized::execute): Define.
2233 * gimple-predicate-analysis.cc: New file.
2234 * gimple-predicate-analysis.h: New file.
2236 2021-09-17 Julian Brown <julian@codesourcery.com>
2238 * config/gcn/gcn.c (gimple.h): Include.
2239 (gcn_fork_join): Emit barrier for worker-level joins.
2240 * omp-oacc-neuter-broadcast.cc (find_local_vars_to_propagate): Add
2241 writes_gang_private bitmap parameter. Set bit for blocks
2242 containing gang-private variable writes.
2243 (worker_single_simple): Don't emit barrier after predicated block.
2244 (worker_single_copy): Don't emit barrier if we're not broadcasting
2245 anything and the block contains no gang-private writes.
2246 (neuter_worker_single): Don't predicate blocks that only contain
2247 NOPs or internal marker functions. Pass has_gang_private_write
2248 argument to worker_single_copy.
2249 (oacc_do_neutering): Add writes_gang_private bitmap handling.
2251 2021-09-17 Julian Brown <julian@codesourcery.com>
2253 * config/gcn/gcn-protos.h
2254 (gcn_goacc_create_worker_broadcast_record): Update prototype.
2255 * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Use
2256 preallocated block of LDS memory. Do not cache/share decls for
2257 reduction temporaries between invocations.
2258 (gcn_goacc_reduction_teardown): Unshare VAR on second use.
2259 (gcn_goacc_create_worker_broadcast_record): Add OFFSET parameter
2260 and return temporary LDS space at that offset. Return pointer in
2262 * config/gcn/gcn.c (acc_lds_size, gang_private_hwm, lds_allocs):
2264 (ACC_LDS_SIZE): Define as acc_lds_size.
2265 (gcn_init_machine_status): Don't initialise lds_allocated,
2266 lds_allocs, reduc_decls fields of machine function struct.
2267 (gcn_option_override): Handle default size for gang-private
2268 variables and -mgang-private-size option.
2269 (gcn_expand_prologue): Use LDS_SIZE instead of LDS_SIZE-1 when
2270 initialising M0_REG.
2271 (gcn_shared_mem_layout): New function.
2272 (gcn_print_lds_decl): Update comment. Use global lds_allocs map and
2273 gang_private_hwm variable.
2274 (TARGET_GOACC_SHARED_MEM_LAYOUT): Define target hook.
2275 * config/gcn/gcn.h (machine_function): Remove lds_allocated,
2276 lds_allocs, reduc_decls. Add reduction_base, reduction_limit.
2277 * config/gcn/gcn.opt (gang_private_size_opt): New global.
2278 (mgang-private-size=): New option.
2279 * doc/tm.texi.in (TARGET_GOACC_SHARED_MEM_LAYOUT): Place
2281 * doc/tm.texi: Regenerate.
2282 * omp-oacc-neuter-broadcast.cc (targhooks.h, diagnostic-core.h):
2284 (build_sender_ref): Handle sender_decl being pointer.
2285 (worker_single_copy): Add PLACEMENT and ISOLATE_BROADCASTS
2286 parameters. Pass placement argument to
2287 create_worker_broadcast_record hook invocations. Handle
2288 sender_decl being pointer and isolate_broadcasts inserting extra
2290 (blk_offset_map_t): Add typedef.
2291 (neuter_worker_single): Add BLK_OFFSET_MAP parameter. Pass
2292 preallocated range to worker_single_copy call.
2293 (dfs_broadcast_reachable_1): New function.
2294 (idx_decl_pair_t, used_range_vec_t): New typedefs.
2295 (sort_size_descending): New function.
2296 (addr_range): New class.
2297 (splay_tree_compare_addr_range, splay_tree_free_key)
2298 (first_fit_range, merge_ranges_1, merge_ranges): New functions.
2299 (execute_omp_oacc_neuter_broadcast): Rename to...
2300 (oacc_do_neutering): ... this. Add BOUNDS_LO, BOUNDS_HI
2301 parameters. Arrange layout of shared memory for broadcast
2303 (execute_omp_oacc_neuter_broadcast): New function.
2304 (pass_omp_oacc_neuter_broadcast::gate): Remove num_workers==1
2305 handling from here. Enable pass for all OpenACC routines in order
2306 to call shared memory-layout hook.
2307 * target.def (create_worker_broadcast_record): Add OFFSET
2309 (shared_mem_layout): New hook.
2311 2021-09-17 Julian Brown <julian@codesourcery.com>
2312 Thomas Schwinge <thomas@codesourcery.com>
2314 * omp-oacc-neuter-broadcast.cc
2315 (pass_omp_oacc_neuter_broadcast::gate): Disable if num_workers is
2317 (execute_omp_oacc_neuter_broadcast): Adjust.
2319 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
2321 * value-relation.cc (class equiv_chain): Move to header file.
2322 (path_oracle::path_oracle): New.
2323 (path_oracle::~path_oracle): New.
2324 (path_oracle::register_relation): New.
2325 (path_oracle::query_relation): New.
2326 (path_oracle::reset_path): New.
2327 (path_oracle::dump): New.
2328 * value-relation.h (class equiv_chain): Move to here.
2329 (class path_oracle): New.
2331 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
2333 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a DOM
2335 * gimple-range-fold.cc (fur_depend::register_relation): Use
2336 register_stmt/edge routines.
2337 * value-relation.cc (equiv_chain::find): Relocate from equiv_oracle.
2338 (equiv_oracle::equiv_oracle): Create self equivalence cache.
2339 (equiv_oracle::~equiv_oracle): Release same.
2340 (equiv_oracle::equiv_set): Return entry from self equiv cache if there
2341 are no equivalences.
2342 (equiv_oracle::find_equiv_block): Move list find to equiv_chain.
2343 (equiv_oracle::register_relation): Rename from register_equiv.
2344 (relation_chain_head::find_relation): Relocate from dom_oracle.
2345 (relation_oracle::register_stmt): New.
2346 (relation_oracle::register_edge): New.
2347 (dom_oracle::*): Rename from relation_oracle.
2348 (dom_oracle::register_relation): Adjust to call equiv_oracle.
2349 (dom_oracle::set_one_relation): Split from register_relation.
2350 (dom_oracle::register_transitives): Consolidate 2 methods.
2351 (dom_oracle::find_relation_block): Move core to relation_chain.
2352 (dom_oracle::query_relation): Rename from find_relation_dom and adjust.
2353 * value-relation.h (class relation_oracle): New pure virtual base.
2354 (class equiv_oracle): Inherit from relation_oracle and adjust.
2355 (class dom_oracle): Rename from old relation_oracle and adjust.
2357 2021-09-17 Martin Sebor <msebor@redhat.com>
2359 PR middle-end/102200
2360 * pointer-query.cc (access_ref::inform_access): Handle MIN/MAX_EXPR.
2361 (handle_min_max_size): Change argument. Store original SSA_NAME for
2362 operands to potentially distinct (sub)objects.
2363 (compute_objsize_r): Adjust call to the above.
2365 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
2367 * config/rs6000/rs6000.c (rs6000-builtins.h): New include.
2368 (rs6000_new_builtin_vectorized_function): New function.
2369 (rs6000_new_builtin_md_vectorized_function): Likewise.
2370 (rs6000_builtin_vectorized_function): Call
2371 rs6000_new_builtin_vectorized_function.
2372 (rs6000_builtin_md_vectorized_function): Call
2373 rs6000_new_builtin_md_vectorized_function.
2375 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
2377 * config/rs6000/rs6000-builtin-new.def (ASSEMBLE_ACC): Add mmaint flag.
2378 (ASSEMBLE_PAIR): Likewise.
2379 (BUILD_ACC): Likewise.
2380 (DISASSEMBLE_ACC): Likewise.
2381 (DISASSEMBLE_PAIR): Likewise.
2382 (PMXVBF16GER2): Likewise.
2383 (PMXVBF16GER2NN): Likewise.
2384 (PMXVBF16GER2NP): Likewise.
2385 (PMXVBF16GER2PN): Likewise.
2386 (PMXVBF16GER2PP): Likewise.
2387 (PMXVF16GER2): Likewise.
2388 (PMXVF16GER2NN): Likewise.
2389 (PMXVF16GER2NP): Likewise.
2390 (PMXVF16GER2PN): Likewise.
2391 (PMXVF16GER2PP): Likewise.
2392 (PMXVF32GER): Likewise.
2393 (PMXVF32GERNN): Likewise.
2394 (PMXVF32GERNP): Likewise.
2395 (PMXVF32GERPN): Likewise.
2396 (PMXVF32GERPP): Likewise.
2397 (PMXVF64GER): Likewise.
2398 (PMXVF64GERNN): Likewise.
2399 (PMXVF64GERNP): Likewise.
2400 (PMXVF64GERPN): Likewise.
2401 (PMXVF64GERPP): Likewise.
2402 (PMXVI16GER2): Likewise.
2403 (PMXVI16GER2PP): Likewise.
2404 (PMXVI16GER2S): Likewise.
2405 (PMXVI16GER2SPP): Likewise.
2406 (PMXVI4GER8): Likewise.
2407 (PMXVI4GER8PP): Likewise.
2408 (PMXVI8GER4): Likewise.
2409 (PMXVI8GER4PP): Likewise.
2410 (PMXVI8GER4SPP): Likewise.
2411 (XVBF16GER2): Likewise.
2412 (XVBF16GER2NN): Likewise.
2413 (XVBF16GER2NP): Likewise.
2414 (XVBF16GER2PN): Likewise.
2415 (XVBF16GER2PP): Likewise.
2416 (XVF16GER2): Likewise.
2417 (XVF16GER2NN): Likewise.
2418 (XVF16GER2NP): Likewise.
2419 (XVF16GER2PN): Likewise.
2420 (XVF16GER2PP): Likewise.
2421 (XVF32GER): Likewise.
2422 (XVF32GERNN): Likewise.
2423 (XVF32GERNP): Likewise.
2424 (XVF32GERPN): Likewise.
2425 (XVF32GERPP): Likewise.
2426 (XVF64GER): Likewise.
2427 (XVF64GERNN): Likewise.
2428 (XVF64GERNP): Likewise.
2429 (XVF64GERPN): Likewise.
2430 (XVF64GERPP): Likewise.
2431 (XVI16GER2): Likewise.
2432 (XVI16GER2PP): Likewise.
2433 (XVI16GER2S): Likewise.
2434 (XVI16GER2SPP): Likewise.
2435 (XVI4GER8): Likewise.
2436 (XVI4GER8PP): Likewise.
2437 (XVI8GER4): Likewise.
2438 (XVI8GER4PP): Likewise.
2439 (XVI8GER4SPP): Likewise.
2440 (XXMFACC): Likewise.
2441 (XXMTACC): Likewise.
2442 (XXSETACCZ): Likewise.
2443 (ASSEMBLE_PAIR_V): Likewise.
2444 (BUILD_PAIR): Likewise.
2445 (DISASSEMBLE_PAIR_V): Likewise.
2448 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_mma_builtin):
2449 Handle RS6000_BIF_LXVP and RS6000_BIF_STXVP.
2450 * config/rs6000/rs6000-gen-builtins.c (attrinfo): Add ismmaint.
2451 (parse_bif_attrs): Handle ismmaint.
2452 (write_decls): Add bif_mmaint_bit and bif_is_mmaint.
2453 (write_bif_static_init): Handle ismmaint.
2455 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
2457 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin): New
2459 (rs6000_gimple_fold_builtin): Call rs6000_gimple_fold_new_builtin.
2460 (rs6000_new_builtin_valid_without_lhs): New function.
2461 (rs6000_gimple_fold_new_mma_builtin): Likewise.
2462 (rs6000_gimple_fold_new_builtin): Likewise.
2464 2021-09-17 Thomas Schwinge <thomas@codesourcery.com>
2466 * hash-table.h (hash_table<Descriptor, Lazy, Allocator>::expand):
2467 Destruct stale Value objects.
2468 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
2471 2021-09-17 Roger Sayle <roger@nextmovesoftware.com>
2474 * match.pd (shift optimizations): Disable recent sign-changing
2475 optimization for shifts by zero, these will be folded later.
2477 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
2479 * config/rs6000/rs6000-builtin-new.def (__builtin_mffsl): Move from
2480 [power9] to [always].
2482 2021-09-17 Richard Biener <rguenther@suse.de>
2484 * tree-vect-stmts.c (vectorizable_load): Do not frob
2487 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
2489 * config/i386/i386-features.c (remove_partial_avx_dependency):
2490 Also check TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY and
2491 and TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY before generating
2493 * config/i386/i386.h (TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY):
2495 (TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
2496 * config/i386/i386.md (SSE FP to FP splitters): Replace
2497 TARGET_SSE_PARTIAL_REG_DEPENDENCY with
2498 TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY.
2499 (SSE INT to FP splitter): Replace TARGET_SSE_PARTIAL_REG_DEPENDENCY
2500 with TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY.
2501 * config/i386/x86-tune.def
2502 (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): New.
2503 (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
2505 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
2508 * config/i386/i386-features.c (remove_partial_avx_dependency):
2509 Check TARGET_USE_VECTOR_FP_CONVERTS and TARGET_USE_VECTOR_CONVERTS
2510 before generating vxorps.
2512 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
2514 * config/i386/i386-options.c (processor_cost_table): Use
2515 tremont_cost for Tremont.
2516 * config/i386/x86-tune-costs.h (tremont_memcpy): New.
2517 (tremont_memset): Likewise.
2518 (tremont_cost): Likewise.
2519 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
2522 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
2524 * common/config/i386/i386-common.c: Use Haswell scheduling model
2526 * config/i386/i386.c (ix86_sched_init_global): Prepare for Tremont
2528 * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Tremont
2530 (ix86_adjust_cost): Handle Tremont.
2531 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2533 (X86_TUNE_USE_LEAVE): Likewise.
2534 (X86_TUNE_PUSH_MEMORY): Likewise.
2535 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
2536 (X86_TUNE_USE_CLTD): Likewise.
2537 (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
2538 (X86_TUNE_AVOID_MFENCE): Likewise.
2539 (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
2540 (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
2541 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS): Disable for Tremont.
2542 (X86_TUNE_FOUR_JUMP_LIMIT): Likewise.
2543 (X86_TUNE_OPT_AGU): Likewise.
2544 (X86_TUNE_AVOID_LEA_FOR_ADDR): Likewise.
2545 (X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE): Likewise.
2546 (X86_TUNE_EXPAND_ABS): Likewise.
2547 (X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS): Likewise.
2548 (X86_TUNE_SLOW_PSHUFB): Likewise.
2550 2021-09-17 Eric Botcazou <ebotcazou@adacore.com>
2552 PR rtl-optimization/102306
2553 * combine.c (try_combine): Abort the combination if we are about to
2554 duplicate volatile references.
2556 2021-09-17 liuhongt <hongtao.liu@intel.com>
2558 * config/i386/avx512fp16intrin.h (_mm_undefined_ph):
2560 (_mm256_undefined_ph): Likewise.
2561 (_mm512_undefined_ph): Likewise.
2562 (_mm_cvtsh_h): Likewise.
2563 (_mm256_cvtsh_h): Likewise.
2564 (_mm512_cvtsh_h): Likewise.
2565 (_mm512_castph_ps): Likewise.
2566 (_mm512_castph_pd): Likewise.
2567 (_mm512_castph_si512): Likewise.
2568 (_mm512_castph512_ph128): Likewise.
2569 (_mm512_castph512_ph256): Likewise.
2570 (_mm512_castph128_ph512): Likewise.
2571 (_mm512_castph256_ph512): Likewise.
2572 (_mm512_zextph128_ph512): Likewise.
2573 (_mm512_zextph256_ph512): Likewise.
2574 (_mm512_castps_ph): Likewise.
2575 (_mm512_castpd_ph): Likewise.
2576 (_mm512_castsi512_ph): Likewise.
2577 * config/i386/avx512fp16vlintrin.h (_mm_castph_ps):
2579 (_mm256_castph_ps): Likewise.
2580 (_mm_castph_pd): Likewise.
2581 (_mm256_castph_pd): Likewise.
2582 (_mm_castph_si128): Likewise.
2583 (_mm256_castph_si256): Likewise.
2584 (_mm_castps_ph): Likewise.
2585 (_mm256_castps_ph): Likewise.
2586 (_mm_castpd_ph): Likewise.
2587 (_mm256_castpd_ph): Likewise.
2588 (_mm_castsi128_ph): Likewise.
2589 (_mm256_castsi256_ph): Likewise.
2590 (_mm256_castph256_ph128): Likewise.
2591 (_mm256_castph128_ph256): Likewise.
2592 (_mm256_zextph128_ph256): Likewise.
2594 2021-09-17 liuhongt <hongtao.liu@intel.com>
2596 * config/i386/avx512fp16intrin.h (_mm_cvtsh_ss):
2598 (_mm_mask_cvtsh_ss): Likewise.
2599 (_mm_maskz_cvtsh_ss): Likewise.
2600 (_mm_cvtsh_sd): Likewise.
2601 (_mm_mask_cvtsh_sd): Likewise.
2602 (_mm_maskz_cvtsh_sd): Likewise.
2603 (_mm_cvt_roundsh_ss): Likewise.
2604 (_mm_mask_cvt_roundsh_ss): Likewise.
2605 (_mm_maskz_cvt_roundsh_ss): Likewise.
2606 (_mm_cvt_roundsh_sd): Likewise.
2607 (_mm_mask_cvt_roundsh_sd): Likewise.
2608 (_mm_maskz_cvt_roundsh_sd): Likewise.
2609 (_mm_cvtss_sh): Likewise.
2610 (_mm_mask_cvtss_sh): Likewise.
2611 (_mm_maskz_cvtss_sh): Likewise.
2612 (_mm_cvtsd_sh): Likewise.
2613 (_mm_mask_cvtsd_sh): Likewise.
2614 (_mm_maskz_cvtsd_sh): Likewise.
2615 (_mm_cvt_roundss_sh): Likewise.
2616 (_mm_mask_cvt_roundss_sh): Likewise.
2617 (_mm_maskz_cvt_roundss_sh): Likewise.
2618 (_mm_cvt_roundsd_sh): Likewise.
2619 (_mm_mask_cvt_roundsd_sh): Likewise.
2620 (_mm_maskz_cvt_roundsd_sh): Likewise.
2621 * config/i386/i386-builtin-types.def
2622 (V8HF_FTYPE_V2DF_V8HF_V8HF_UQI_INT,
2623 V8HF_FTYPE_V4SF_V8HF_V8HF_UQI_INT,
2624 V2DF_FTYPE_V8HF_V2DF_V2DF_UQI_INT,
2625 V4SF_FTYPE_V8HF_V4SF_V4SF_UQI_INT): Add new builtin types.
2626 * config/i386/i386-builtin.def: Add corrresponding new builtins.
2627 * config/i386/i386-expand.c: Handle new builtin types.
2628 * config/i386/sse.md (VF48_128): New mode iterator.
2629 (avx512fp16_vcvtsh2<ssescalarmodesuffix><mask_scalar_name><round_saeonly_scalar_name>):
2631 (avx512fp16_vcvt<ssescalarmodesuffix>2sh<mask_scalar_name><round_scalar_name>):
2634 2021-09-17 liuhongt <hongtao.liu@intel.com>
2636 * config/i386/avx512fp16intrin.h (_mm512_cvtph_pd):
2638 (_mm512_mask_cvtph_pd): Likewise.
2639 (_mm512_maskz_cvtph_pd): Likewise.
2640 (_mm512_cvt_roundph_pd): Likewise.
2641 (_mm512_mask_cvt_roundph_pd): Likewise.
2642 (_mm512_maskz_cvt_roundph_pd): Likewise.
2643 (_mm512_cvtxph_ps): Likewise.
2644 (_mm512_mask_cvtxph_ps): Likewise.
2645 (_mm512_maskz_cvtxph_ps): Likewise.
2646 (_mm512_cvtx_roundph_ps): Likewise.
2647 (_mm512_mask_cvtx_roundph_ps): Likewise.
2648 (_mm512_maskz_cvtx_roundph_ps): Likewise.
2649 (_mm512_cvtxps_ph): Likewise.
2650 (_mm512_mask_cvtxps_ph): Likewise.
2651 (_mm512_maskz_cvtxps_ph): Likewise.
2652 (_mm512_cvtx_roundps_ph): Likewise.
2653 (_mm512_mask_cvtx_roundps_ph): Likewise.
2654 (_mm512_maskz_cvtx_roundps_ph): Likewise.
2655 (_mm512_cvtpd_ph): Likewise.
2656 (_mm512_mask_cvtpd_ph): Likewise.
2657 (_mm512_maskz_cvtpd_ph): Likewise.
2658 (_mm512_cvt_roundpd_ph): Likewise.
2659 (_mm512_mask_cvt_roundpd_ph): Likewise.
2660 (_mm512_maskz_cvt_roundpd_ph): Likewise.
2661 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_pd):
2663 (_mm_mask_cvtph_pd): Likewise.
2664 (_mm_maskz_cvtph_pd): Likewise.
2665 (_mm256_cvtph_pd): Likewise.
2666 (_mm256_mask_cvtph_pd): Likewise.
2667 (_mm256_maskz_cvtph_pd): Likewise.
2668 (_mm_cvtxph_ps): Likewise.
2669 (_mm_mask_cvtxph_ps): Likewise.
2670 (_mm_maskz_cvtxph_ps): Likewise.
2671 (_mm256_cvtxph_ps): Likewise.
2672 (_mm256_mask_cvtxph_ps): Likewise.
2673 (_mm256_maskz_cvtxph_ps): Likewise.
2674 (_mm_cvtxps_ph): Likewise.
2675 (_mm_mask_cvtxps_ph): Likewise.
2676 (_mm_maskz_cvtxps_ph): Likewise.
2677 (_mm256_cvtxps_ph): Likewise.
2678 (_mm256_mask_cvtxps_ph): Likewise.
2679 (_mm256_maskz_cvtxps_ph): Likewise.
2680 (_mm_cvtpd_ph): Likewise.
2681 (_mm_mask_cvtpd_ph): Likewise.
2682 (_mm_maskz_cvtpd_ph): Likewise.
2683 (_mm256_cvtpd_ph): Likewise.
2684 (_mm256_mask_cvtpd_ph): Likewise.
2685 (_mm256_maskz_cvtpd_ph): Likewise.
2686 * config/i386/i386-builtin.def: Add corresponding new builtins.
2687 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
2688 * config/i386/i386-expand.c: Handle new builtin types.
2689 * config/i386/sse.md
2690 (VF4_128_8_256): New.
2691 (VF48H_AVX512VL): Ditto.
2692 (ssePHmode): Add HF vector modes.
2693 (castmode): Add new convertable modes.
2696 (avx512fp16_vcvt<castmode>2ph_<mode><mask_name><round_name>): Ditto.
2697 (avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
2698 (*avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
2699 (avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
2700 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
2701 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask_1): Ditto.
2702 (avx512fp16_float_extend_ph<mode>2<mask_name><round_saeonly_name>):
2704 (avx512fp16_float_extend_ph<mode>2<mask_name>): Ditto.
2705 (*avx512fp16_float_extend_ph<mode>2_load<mask_name>): Ditto.
2706 (avx512fp16_float_extend_phv2df2<mask_name>): Ditto.
2707 (*avx512fp16_float_extend_phv2df2_load<mask_name>): Ditto.
2709 2021-09-17 liuhongt <hongtao.liu@intel.com>
2711 * config/i386/avx512fp16intrin.h (_mm_cvttsh_i32):
2713 (_mm_cvttsh_u32): Likewise.
2714 (_mm_cvtt_roundsh_i32): Likewise.
2715 (_mm_cvtt_roundsh_u32): Likewise.
2716 (_mm_cvttsh_i64): Likewise.
2717 (_mm_cvttsh_u64): Likewise.
2718 (_mm_cvtt_roundsh_i64): Likewise.
2719 (_mm_cvtt_roundsh_u64): Likewise.
2720 * config/i386/i386-builtin.def: Add corresponding new builtins.
2721 * config/i386/sse.md
2722 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<round_saeonly_name>):
2725 2021-09-17 liuhongt <hongtao.liu@intel.com>
2727 * config/i386/avx512fp16intrin.h (_mm512_cvttph_epi32):
2729 (_mm512_mask_cvttph_epi32): Likewise.
2730 (_mm512_maskz_cvttph_epi32): Likewise.
2731 (_mm512_cvtt_roundph_epi32): Likewise.
2732 (_mm512_mask_cvtt_roundph_epi32): Likewise.
2733 (_mm512_maskz_cvtt_roundph_epi32): Likewise.
2734 (_mm512_cvttph_epu32): Likewise.
2735 (_mm512_mask_cvttph_epu32): Likewise.
2736 (_mm512_maskz_cvttph_epu32): Likewise.
2737 (_mm512_cvtt_roundph_epu32): Likewise.
2738 (_mm512_mask_cvtt_roundph_epu32): Likewise.
2739 (_mm512_maskz_cvtt_roundph_epu32): Likewise.
2740 (_mm512_cvttph_epi64): Likewise.
2741 (_mm512_mask_cvttph_epi64): Likewise.
2742 (_mm512_maskz_cvttph_epi64): Likewise.
2743 (_mm512_cvtt_roundph_epi64): Likewise.
2744 (_mm512_mask_cvtt_roundph_epi64): Likewise.
2745 (_mm512_maskz_cvtt_roundph_epi64): Likewise.
2746 (_mm512_cvttph_epu64): Likewise.
2747 (_mm512_mask_cvttph_epu64): Likewise.
2748 (_mm512_maskz_cvttph_epu64): Likewise.
2749 (_mm512_cvtt_roundph_epu64): Likewise.
2750 (_mm512_mask_cvtt_roundph_epu64): Likewise.
2751 (_mm512_maskz_cvtt_roundph_epu64): Likewise.
2752 (_mm512_cvttph_epi16): Likewise.
2753 (_mm512_mask_cvttph_epi16): Likewise.
2754 (_mm512_maskz_cvttph_epi16): Likewise.
2755 (_mm512_cvtt_roundph_epi16): Likewise.
2756 (_mm512_mask_cvtt_roundph_epi16): Likewise.
2757 (_mm512_maskz_cvtt_roundph_epi16): Likewise.
2758 (_mm512_cvttph_epu16): Likewise.
2759 (_mm512_mask_cvttph_epu16): Likewise.
2760 (_mm512_maskz_cvttph_epu16): Likewise.
2761 (_mm512_cvtt_roundph_epu16): Likewise.
2762 (_mm512_mask_cvtt_roundph_epu16): Likewise.
2763 (_mm512_maskz_cvtt_roundph_epu16): Likewise.
2764 * config/i386/avx512fp16vlintrin.h (_mm_cvttph_epi32):
2766 (_mm_mask_cvttph_epi32): Likewise.
2767 (_mm_maskz_cvttph_epi32): Likewise.
2768 (_mm256_cvttph_epi32): Likewise.
2769 (_mm256_mask_cvttph_epi32): Likewise.
2770 (_mm256_maskz_cvttph_epi32): Likewise.
2771 (_mm_cvttph_epu32): Likewise.
2772 (_mm_mask_cvttph_epu32): Likewise.
2773 (_mm_maskz_cvttph_epu32): Likewise.
2774 (_mm256_cvttph_epu32): Likewise.
2775 (_mm256_mask_cvttph_epu32): Likewise.
2776 (_mm256_maskz_cvttph_epu32): Likewise.
2777 (_mm_cvttph_epi64): Likewise.
2778 (_mm_mask_cvttph_epi64): Likewise.
2779 (_mm_maskz_cvttph_epi64): Likewise.
2780 (_mm256_cvttph_epi64): Likewise.
2781 (_mm256_mask_cvttph_epi64): Likewise.
2782 (_mm256_maskz_cvttph_epi64): Likewise.
2783 (_mm_cvttph_epu64): Likewise.
2784 (_mm_mask_cvttph_epu64): Likewise.
2785 (_mm_maskz_cvttph_epu64): Likewise.
2786 (_mm256_cvttph_epu64): Likewise.
2787 (_mm256_mask_cvttph_epu64): Likewise.
2788 (_mm256_maskz_cvttph_epu64): Likewise.
2789 (_mm_cvttph_epi16): Likewise.
2790 (_mm_mask_cvttph_epi16): Likewise.
2791 (_mm_maskz_cvttph_epi16): Likewise.
2792 (_mm256_cvttph_epi16): Likewise.
2793 (_mm256_mask_cvttph_epi16): Likewise.
2794 (_mm256_maskz_cvttph_epi16): Likewise.
2795 (_mm_cvttph_epu16): Likewise.
2796 (_mm_mask_cvttph_epu16): Likewise.
2797 (_mm_maskz_cvttph_epu16): Likewise.
2798 (_mm256_cvttph_epu16): Likewise.
2799 (_mm256_mask_cvttph_epu16): Likewise.
2800 (_mm256_maskz_cvttph_epu16): Likewise.
2801 * config/i386/i386-builtin.def: Add new builtins.
2802 * config/i386/sse.md
2803 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name><round_saeonly_name>):
2805 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name>): Ditto.
2806 (*avx512fp16_fix<fixunssuffix>_trunc<mode>2_load<mask_name>): Ditto.
2807 (avx512fp16_fix<fixunssuffix>_truncv2di2<mask_name>): Ditto.
2808 (avx512fp16_fix<fixunssuffix>_truncv2di2_load<mask_name>): Ditto.
2810 2021-09-17 liuhongt <hongtao.liu@intel.com>
2812 * config/i386/avx512fp16intrin.h (_mm_cvtsh_i32): New intrinsic.
2813 (_mm_cvtsh_u32): Likewise.
2814 (_mm_cvt_roundsh_i32): Likewise.
2815 (_mm_cvt_roundsh_u32): Likewise.
2816 (_mm_cvtsh_i64): Likewise.
2817 (_mm_cvtsh_u64): Likewise.
2818 (_mm_cvt_roundsh_i64): Likewise.
2819 (_mm_cvt_roundsh_u64): Likewise.
2820 (_mm_cvti32_sh): Likewise.
2821 (_mm_cvtu32_sh): Likewise.
2822 (_mm_cvt_roundi32_sh): Likewise.
2823 (_mm_cvt_roundu32_sh): Likewise.
2824 (_mm_cvti64_sh): Likewise.
2825 (_mm_cvtu64_sh): Likewise.
2826 (_mm_cvt_roundi64_sh): Likewise.
2827 (_mm_cvt_roundu64_sh): Likewise.
2828 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
2829 * config/i386/i386-builtin.def: Add corresponding new builtins.
2830 * config/i386/i386-expand.c (ix86_expand_round_builtin):
2831 Handle new builtin types.
2832 * config/i386/sse.md
2833 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix><round_name>):
2835 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix>_2): Likewise.
2836 (avx512fp16_vcvt<floatsuffix>si2sh<rex64namesuffix><round_name>): Likewise.
2838 2021-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
2840 * config/rs6000/rs6000-c.c (rs6000-builtins.h): New include.
2841 (altivec_resolve_new_overloaded_builtin): New forward decl.
2842 (rs6000_new_builtin_type_compatible): New function.
2843 (altivec_resolve_overloaded_builtin): Call
2844 altivec_resolve_new_overloaded_builtin.
2845 (altivec_build_new_resolved_builtin): New function.
2846 (altivec_resolve_new_overloaded_builtin): Likewise.
2847 * config/rs6000/rs6000-call.c (rs6000_new_builtin_is_supported):
2849 * config/rs6000/rs6000-gen-builtins.c (write_decls): Remove _p from
2850 name of rs6000_new_builtin_is_supported.
2852 2021-09-16 Uroš Bizjak <ubizjak@gmail.com>
2854 * config/i386/i386-protos.h (ix86_decompose_address):
2855 Change return type to bool.
2856 * config/i386/i386.c (ix86_decompose_address): Ditto.
2858 2021-09-16 Tobias Burnus <tobias@codesourcery.com>
2861 * config/rs6000/t-rs6000 (build/rs6000-gen-builtins.o, build/rbtree.o):
2862 Added 'build/' to target, use build/%.o rule.
2863 (build/rs6000-gen-builtins$(build_exeext)): Add 'build/' and
2864 '$(build_exeext)' to target and 'build/' for the *.o files.
2865 (rs6000-builtins.c): Update for those changes; run rs6000-gen-builtins
2868 2021-09-16 Martin Jambor <mjambor@suse.cz>
2870 * cgraph.c (cgraph_node::dump): Do not check caller count sums if
2871 the body has been removed. Remove trailing whitespace.
2873 2021-09-16 Richard Biener <rguenther@suse.de>
2875 PR middle-end/102360
2876 * internal-fn.c (expand_DEFERRED_INIT): Make pattern-init
2877 of non-memory more robust.
2879 2021-09-16 Daniel Cederman <cederman@gaisler.com>
2881 * config/sparc/sparc-opts.h (enum sparc_processor_type): Add LEON5
2882 * config/sparc/sparc.c (struct processor_costs): Add LEON5 costs
2883 (leon5_adjust_cost): Increase cost of store with data dependency
2884 on ALU instruction and FPU anti-dependencies.
2885 (sparc_option_override): Add LEON5 costs
2886 (sparc_adjust_cost): Add LEON5 cost adjustments
2887 * config/sparc/sparc.h: Add LEON5
2888 * config/sparc/sparc.md: Include LEON5 scheduling information
2889 * config/sparc/sparc.opt: Add LEON5
2890 * doc/invoke.texi: Add LEON5
2891 * config/sparc/leon5.md: New file.
2893 2021-09-16 Daniel Cederman <cederman@gaisler.com>
2895 * config/sparc/sparc.md (stack_protect_set32): Add NOP to prevent
2896 sensitive sequence for B2BST errata workaround.
2898 2021-09-16 Daniel Cederman <cederman@gaisler.com>
2900 * config/sparc/sparc.c (sparc_do_work_around_errata): Do not begin
2901 functions with atomic instruction in the UT700 errata workaround.
2903 2021-09-16 Daniel Cederman <cederman@gaisler.com>
2905 * config/sparc/sparc.c (next_active_non_empty_insn): New function
2906 that returns next active non empty assembly instruction.
2907 (sparc_do_work_around_errata): Use new function.
2909 2021-09-16 Daniel Cederman <cederman@gaisler.com>
2911 * config/sparc/sparc.c (store_insn_p): Add predicate for store
2913 (load_insn_p): Add predicate for load attributes.
2914 (sparc_do_work_around_errata): Use new predicates.
2916 2021-09-16 Andreas Larsson <andreas@gaisler.com>
2918 * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
2921 2021-09-16 Martin Liska <mliska@suse.cz>
2923 * config/mips/netbsd.h: Fix typo in name of a macro.
2925 2021-09-16 liuhongt <hongtao.liu@intel.com>
2927 PR middle-end/102080
2928 * match.pd: Check mask type when doing cond_op related gimple
2930 * tree.c (is_truth_type_for): New function.
2931 * tree.h (is_truth_type_for): New declaration.
2933 2021-09-16 liuhongt <hongtao.liu@intel.com>
2935 * config/i386/avx512fp16intrin.h (_mm512_cvtepi32_ph): New
2937 (_mm512_mask_cvtepi32_ph): Likewise.
2938 (_mm512_maskz_cvtepi32_ph): Likewise.
2939 (_mm512_cvt_roundepi32_ph): Likewise.
2940 (_mm512_mask_cvt_roundepi32_ph): Likewise.
2941 (_mm512_maskz_cvt_roundepi32_ph): Likewise.
2942 (_mm512_cvtepu32_ph): Likewise.
2943 (_mm512_mask_cvtepu32_ph): Likewise.
2944 (_mm512_maskz_cvtepu32_ph): Likewise.
2945 (_mm512_cvt_roundepu32_ph): Likewise.
2946 (_mm512_mask_cvt_roundepu32_ph): Likewise.
2947 (_mm512_maskz_cvt_roundepu32_ph): Likewise.
2948 (_mm512_cvtepi64_ph): Likewise.
2949 (_mm512_mask_cvtepi64_ph): Likewise.
2950 (_mm512_maskz_cvtepi64_ph): Likewise.
2951 (_mm512_cvt_roundepi64_ph): Likewise.
2952 (_mm512_mask_cvt_roundepi64_ph): Likewise.
2953 (_mm512_maskz_cvt_roundepi64_ph): Likewise.
2954 (_mm512_cvtepu64_ph): Likewise.
2955 (_mm512_mask_cvtepu64_ph): Likewise.
2956 (_mm512_maskz_cvtepu64_ph): Likewise.
2957 (_mm512_cvt_roundepu64_ph): Likewise.
2958 (_mm512_mask_cvt_roundepu64_ph): Likewise.
2959 (_mm512_maskz_cvt_roundepu64_ph): Likewise.
2960 (_mm512_cvtepi16_ph): Likewise.
2961 (_mm512_mask_cvtepi16_ph): Likewise.
2962 (_mm512_maskz_cvtepi16_ph): Likewise.
2963 (_mm512_cvt_roundepi16_ph): Likewise.
2964 (_mm512_mask_cvt_roundepi16_ph): Likewise.
2965 (_mm512_maskz_cvt_roundepi16_ph): Likewise.
2966 (_mm512_cvtepu16_ph): Likewise.
2967 (_mm512_mask_cvtepu16_ph): Likewise.
2968 (_mm512_maskz_cvtepu16_ph): Likewise.
2969 (_mm512_cvt_roundepu16_ph): Likewise.
2970 (_mm512_mask_cvt_roundepu16_ph): Likewise.
2971 (_mm512_maskz_cvt_roundepu16_ph): Likewise.
2972 * config/i386/avx512fp16vlintrin.h (_mm_cvtepi32_ph): New
2974 (_mm_mask_cvtepi32_ph): Likewise.
2975 (_mm_maskz_cvtepi32_ph): Likewise.
2976 (_mm256_cvtepi32_ph): Likewise.
2977 (_mm256_mask_cvtepi32_ph): Likewise.
2978 (_mm256_maskz_cvtepi32_ph): Likewise.
2979 (_mm_cvtepu32_ph): Likewise.
2980 (_mm_mask_cvtepu32_ph): Likewise.
2981 (_mm_maskz_cvtepu32_ph): Likewise.
2982 (_mm256_cvtepu32_ph): Likewise.
2983 (_mm256_mask_cvtepu32_ph): Likewise.
2984 (_mm256_maskz_cvtepu32_ph): Likewise.
2985 (_mm_cvtepi64_ph): Likewise.
2986 (_mm_mask_cvtepi64_ph): Likewise.
2987 (_mm_maskz_cvtepi64_ph): Likewise.
2988 (_mm256_cvtepi64_ph): Likewise.
2989 (_mm256_mask_cvtepi64_ph): Likewise.
2990 (_mm256_maskz_cvtepi64_ph): Likewise.
2991 (_mm_cvtepu64_ph): Likewise.
2992 (_mm_mask_cvtepu64_ph): Likewise.
2993 (_mm_maskz_cvtepu64_ph): Likewise.
2994 (_mm256_cvtepu64_ph): Likewise.
2995 (_mm256_mask_cvtepu64_ph): Likewise.
2996 (_mm256_maskz_cvtepu64_ph): Likewise.
2997 (_mm_cvtepi16_ph): Likewise.
2998 (_mm_mask_cvtepi16_ph): Likewise.
2999 (_mm_maskz_cvtepi16_ph): Likewise.
3000 (_mm256_cvtepi16_ph): Likewise.
3001 (_mm256_mask_cvtepi16_ph): Likewise.
3002 (_mm256_maskz_cvtepi16_ph): Likewise.
3003 (_mm_cvtepu16_ph): Likewise.
3004 (_mm_mask_cvtepu16_ph): Likewise.
3005 (_mm_maskz_cvtepu16_ph): Likewise.
3006 (_mm256_cvtepu16_ph): Likewise.
3007 (_mm256_mask_cvtepu16_ph): Likewise.
3008 (_mm256_maskz_cvtepu16_ph): Likewise.
3009 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
3010 * config/i386/i386-builtin.def: Add corresponding new builtins.
3011 * config/i386/i386-expand.c
3012 (ix86_expand_args_builtin): Handle new builtin types.
3013 (ix86_expand_round_builtin): Ditto.
3014 * config/i386/i386-modes.def: Declare V2HF and V6HF.
3015 * config/i386/sse.md (VI2H_AVX512VL): New.
3017 (sseintvecmode): Add HF vector modes.
3018 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode><mask_name><round_name>):
3020 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
3021 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
3022 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
3023 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
3024 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask_1): Ditto.
3025 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
3026 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
3027 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
3028 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
3029 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask_1): Ditto.
3030 * config/i386/subst.md (round_qq2phsuff): New subst_attr.
3032 2021-09-16 liuhongt <hongtao.liu@intel.com>
3034 * config/i386/avx512fp16intrin.h (_mm512_cvtph_epi32):
3036 (_mm512_mask_cvtph_epi32): Likewise.
3037 (_mm512_maskz_cvtph_epi32): Likewise.
3038 (_mm512_cvt_roundph_epi32): Likewise.
3039 (_mm512_mask_cvt_roundph_epi32): Likewise.
3040 (_mm512_maskz_cvt_roundph_epi32): Likewise.
3041 (_mm512_cvtph_epu32): Likewise.
3042 (_mm512_mask_cvtph_epu32): Likewise.
3043 (_mm512_maskz_cvtph_epu32): Likewise.
3044 (_mm512_cvt_roundph_epu32): Likewise.
3045 (_mm512_mask_cvt_roundph_epu32): Likewise.
3046 (_mm512_maskz_cvt_roundph_epu32): Likewise.
3047 (_mm512_cvtph_epi64): Likewise.
3048 (_mm512_mask_cvtph_epi64): Likewise.
3049 (_mm512_maskz_cvtph_epi64): Likewise.
3050 (_mm512_cvt_roundph_epi64): Likewise.
3051 (_mm512_mask_cvt_roundph_epi64): Likewise.
3052 (_mm512_maskz_cvt_roundph_epi64): Likewise.
3053 (_mm512_cvtph_epu64): Likewise.
3054 (_mm512_mask_cvtph_epu64): Likewise.
3055 (_mm512_maskz_cvtph_epu64): Likewise.
3056 (_mm512_cvt_roundph_epu64): Likewise.
3057 (_mm512_mask_cvt_roundph_epu64): Likewise.
3058 (_mm512_maskz_cvt_roundph_epu64): Likewise.
3059 (_mm512_cvtph_epi16): Likewise.
3060 (_mm512_mask_cvtph_epi16): Likewise.
3061 (_mm512_maskz_cvtph_epi16): Likewise.
3062 (_mm512_cvt_roundph_epi16): Likewise.
3063 (_mm512_mask_cvt_roundph_epi16): Likewise.
3064 (_mm512_maskz_cvt_roundph_epi16): Likewise.
3065 (_mm512_cvtph_epu16): Likewise.
3066 (_mm512_mask_cvtph_epu16): Likewise.
3067 (_mm512_maskz_cvtph_epu16): Likewise.
3068 (_mm512_cvt_roundph_epu16): Likewise.
3069 (_mm512_mask_cvt_roundph_epu16): Likewise.
3070 (_mm512_maskz_cvt_roundph_epu16): Likewise.
3071 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_epi32):
3073 (_mm_mask_cvtph_epi32): Likewise.
3074 (_mm_maskz_cvtph_epi32): Likewise.
3075 (_mm256_cvtph_epi32): Likewise.
3076 (_mm256_mask_cvtph_epi32): Likewise.
3077 (_mm256_maskz_cvtph_epi32): Likewise.
3078 (_mm_cvtph_epu32): Likewise.
3079 (_mm_mask_cvtph_epu32): Likewise.
3080 (_mm_maskz_cvtph_epu32): Likewise.
3081 (_mm256_cvtph_epu32): Likewise.
3082 (_mm256_mask_cvtph_epu32): Likewise.
3083 (_mm256_maskz_cvtph_epu32): Likewise.
3084 (_mm_cvtph_epi64): Likewise.
3085 (_mm_mask_cvtph_epi64): Likewise.
3086 (_mm_maskz_cvtph_epi64): Likewise.
3087 (_mm256_cvtph_epi64): Likewise.
3088 (_mm256_mask_cvtph_epi64): Likewise.
3089 (_mm256_maskz_cvtph_epi64): Likewise.
3090 (_mm_cvtph_epu64): Likewise.
3091 (_mm_mask_cvtph_epu64): Likewise.
3092 (_mm_maskz_cvtph_epu64): Likewise.
3093 (_mm256_cvtph_epu64): Likewise.
3094 (_mm256_mask_cvtph_epu64): Likewise.
3095 (_mm256_maskz_cvtph_epu64): Likewise.
3096 (_mm_cvtph_epi16): Likewise.
3097 (_mm_mask_cvtph_epi16): Likewise.
3098 (_mm_maskz_cvtph_epi16): Likewise.
3099 (_mm256_cvtph_epi16): Likewise.
3100 (_mm256_mask_cvtph_epi16): Likewise.
3101 (_mm256_maskz_cvtph_epi16): Likewise.
3102 (_mm_cvtph_epu16): Likewise.
3103 (_mm_mask_cvtph_epu16): Likewise.
3104 (_mm_maskz_cvtph_epu16): Likewise.
3105 (_mm256_cvtph_epu16): Likewise.
3106 (_mm256_mask_cvtph_epu16): Likewise.
3107 (_mm256_maskz_cvtph_epu16): Likewise.
3108 * config/i386/i386-builtin-types.def: Add new builtin types.
3109 * config/i386/i386-builtin.def: Add new builtins.
3110 * config/i386/i386-expand.c
3111 (ix86_expand_args_builtin): Handle new builtin types.
3112 (ix86_expand_round_builtin): Ditto.
3113 * config/i386/sse.md (sseintconvert): New.
3115 (UNSPEC_US_FIX_NOTRUNC): Ditto.
3116 (sseintconvertsignprefix): Ditto.
3117 (avx512fp16_vcvtph2<sseintconvertsignprefix><sseintconvert>_<mode><mask_name><round_name>):
3120 2021-09-16 liuhongt <hongtao.liu@intel.com>
3122 * config/i386/avx512fp16intrin.h: (_mm_cvtsi16_si128):
3124 (_mm_cvtsi128_si16): Likewise.
3125 (_mm_mask_load_sh): Likewise.
3126 (_mm_maskz_load_sh): Likewise.
3127 (_mm_mask_store_sh): Likewise.
3128 (_mm_move_sh): Likewise.
3129 (_mm_mask_move_sh): Likewise.
3130 (_mm_maskz_move_sh): Likewise.
3131 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
3132 * config/i386/i386-builtin.def: Add corresponding new builtins.
3133 * config/i386/i386-expand.c
3134 (ix86_expand_special_args_builtin): Handle new builtin types.
3135 (ix86_expand_vector_init_one_nonzero): Adjust for FP16 target.
3136 * config/i386/sse.md (VI2F): New mode iterator.
3137 (vec_set<mode>_0): Use new mode iterator.
3138 (avx512f_mov<ssescalarmodelower>_mask): Adjust for HF vector mode.
3139 (avx512f_store<mode>_mask): Ditto.
3141 2021-09-16 Kewen Lin <linkw@linux.ibm.com>
3143 * config/rs6000/rs6000.opt (-mtoc-fusion): Remove.
3145 2021-09-15 David Edelsohn <dje.gcc@gmail.com>
3147 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
3148 Proceed if no symbol summary or the symbol alias flag is false.
3150 2021-09-15 Jakub Jelinek <jakub@redhat.com>
3154 * varasm.c (output_constructor_regular_field): Instead of assertion
3155 that array_size_for_constructor result is equal to size of
3156 TREE_TYPE (local->val) in bytes, assert that the type size is greater
3157 or equal to array_size_for_constructor result and use type size as
3160 2021-09-15 Martin Liska <mliska@suse.cz>
3163 * config/i386/vxworks.h: Use new macro TARGET_CPU_P.
3165 2021-09-15 Martin Liska <mliska@suse.cz>
3168 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
3169 Check that we have a symbol summary for a symbol.
3171 2021-09-15 Richard Biener <rguenther@suse.de>
3174 * config/rs6000/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
3175 to inherit from elfos.h
3177 2021-09-15 liuhongt <hongtao.liu@intel.com>
3180 * config/i386/i386-expand.c
3181 (ix86_expand_vector_init_interleave): Use puncklwd to pack 2
3183 (ix86_expand_vector_set): Use blendw instead of pinsrw.
3184 * config/i386/i386.c (ix86_can_change_mode_class): Adjust for
3185 AVX512FP16 which supports 16bit vector load.
3186 * config/i386/sse.md (avx512bw_interleave_highv32hi<mask_name>):
3188 (avx512bw_interleave_high<mode><mask_name>): .. this, and
3189 extend to V32HFmode.
3190 (avx2_interleave_highv16hi<mask_name>): Rename to ..
3191 (avx2_interleave_high<mode><mask_name>): .. this, and extend
3193 (vec_interleave_highv8hi<mask_name>): Rename to ..
3194 (vec_interleave_high<mode><mask_name>): .. this, and extend to V8HFmode.
3195 (<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>):
3197 (<mask_codefor>avx512bw_interleave_low<mode><mask_name>):
3198 this, and extend to V32HFmode.
3199 (avx2_interleave_lowv16hi<mask_name>): Rename to ..
3200 (avx2_interleave_low<mode><mask_name>): .. this, and extend to V16HFmode.
3201 (vec_interleave_lowv8hi<mask_name>): Rename to ..
3202 (vec_interleave_low<mode><mask_name>): .. this, and extend to V8HFmode.
3203 (sse4_1_pblendw): Rename to ..
3204 (sse4_1_pblend<blendsuf>): .. this, and extend to V8HFmode.
3205 (avx2_pblendph): New define_expand.
3206 (<sse2p4_1>_pinsr<ssemodesuffix>): Refactor, use
3207 sseintmodesuffix instead of ssemodesuffix.
3208 (blendsuf): New mode attr.
3210 2021-09-15 Richard Biener <rguenther@suse.de>
3212 * tree-vectorizer.h (dr_misalignment): Move out of line.
3213 (dr_target_alignment): New.
3214 (DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
3215 (set_dr_target_alignment): New.
3216 (SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
3217 * tree-vect-data-refs.c (dr_misalignment): Compute and
3218 return the group members misalignment.
3219 (vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
3220 (vect_analyze_data_refs_alignment): Compute alignment only
3221 for the first element of a DR group.
3222 (vect_slp_analyze_node_alignment): Likewise.
3224 2021-09-15 Hongyu Wang <hongyu.wang@intel.com>
3226 * config/i386/avx512fp16intrin.h: Adjust all builtin calls.
3227 * config/i386/avx512fp16vlintrin.h: Likewise.
3228 * config/i386/i386-builtin.def: Adjust builtin name and
3229 enumeration to match AVX512F style.
3231 2021-09-15 Richard Biener <rguenther@suse.de>
3233 PR tree-optimization/102318
3234 * tree-vect-loop.c (vect_transform_cycle_phi): Revert
3235 previous change and do the mode conversion separately from
3236 the sign conversion.
3238 2021-09-15 Hongtao Liu <hongtao.liu@intel.com>
3239 Peter Cordes <peter@cordes.ca>
3242 * config/i386/sse.md (extract_suf): Add V8SF/V8SI/V4DF/V4DI.
3243 (*vec_extract<mode><ssescalarmodelower>_valign): Output
3244 vextract{i,f}{32x4,64x2} instruction when byte_offset % 16 ==
3247 2021-09-15 Richard Biener <rguenther@suse.de>
3249 * config.gcc: Remove vax-*-openbsd* configuration.
3251 2021-09-15 Richard Biener <rguenther@suse.de>
3253 * config.gcc: Remove m68k-openbsd.
3255 2021-09-15 Max Filippov <jcmvbkbc@gmail.com>
3258 * config/xtensa/t-xtensa (TM_H): Add include/xtensa-config.h.
3260 2021-09-14 Peter Bergner <bergner@linux.ibm.com>
3262 * config/rs6000/mma.md (unspec): Delete UNSPEC_MMA_XXSETACCZ.
3263 (unspecv): Add UNSPECV_MMA_XXSETACCZ.
3264 (*mma_xxsetaccz): Delete.
3265 (mma_xxsetaccz): Change to define_insn. Remove operand 1.
3266 Use UNSPECV_MMA_XXSETACCZ. Update comment.
3267 * config/rs6000/rs6000.c (rs6000_rtx_costs): Use UNSPECV_MMA_XXSETACCZ.
3269 2021-09-14 Iain Sandoe <iain@sandoe.co.uk>
3271 * Makefile.in: Remove variables related to applying no-PIE
3272 to the exes on $build.
3273 * configure: Regenerate.
3274 * configure.ac: Remove configuration related to applying
3275 no-PIE to the exes on $build.
3277 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
3279 * config/arc/arc.md (doloop_end): Add missing mode.
3280 (loop_end): Likewise.
3282 2021-09-14 Jakub Jelinek <jakub@redhat.com>
3284 * gimplify.c (goa_stabilize_expr): Add depth argument, propagate
3285 it to recursive calls, for depth above 7 just gimplify or return.
3286 Perform a test even for MODIFY_EXPR, ADDR_EXPR, COMPOUND_EXPR with
3287 __builtin_clear_padding and TARGET_EXPR.
3288 (gimplify_omp_atomic): Adjust goa_stabilize_expr callers.
3290 2021-09-14 liuhongt <hongtao.liu@intel.com>
3292 * config/i386/avx512fp16intrin.h (_mm_fpclass_sh_mask):
3294 (_mm_mask_fpclass_sh_mask): Likewise.
3295 (_mm512_mask_fpclass_ph_mask): Likewise.
3296 (_mm512_fpclass_ph_mask): Likewise.
3297 (_mm_getexp_sh): Likewise.
3298 (_mm_mask_getexp_sh): Likewise.
3299 (_mm_maskz_getexp_sh): Likewise.
3300 (_mm512_getexp_ph): Likewise.
3301 (_mm512_mask_getexp_ph): Likewise.
3302 (_mm512_maskz_getexp_ph): Likewise.
3303 (_mm_getexp_round_sh): Likewise.
3304 (_mm_mask_getexp_round_sh): Likewise.
3305 (_mm_maskz_getexp_round_sh): Likewise.
3306 (_mm512_getexp_round_ph): Likewise.
3307 (_mm512_mask_getexp_round_ph): Likewise.
3308 (_mm512_maskz_getexp_round_ph): Likewise.
3309 (_mm_getmant_sh): Likewise.
3310 (_mm_mask_getmant_sh): Likewise.
3311 (_mm_maskz_getmant_sh): Likewise.
3312 (_mm512_getmant_ph): Likewise.
3313 (_mm512_mask_getmant_ph): Likewise.
3314 (_mm512_maskz_getmant_ph): Likewise.
3315 (_mm_getmant_round_sh): Likewise.
3316 (_mm_mask_getmant_round_sh): Likewise.
3317 (_mm_maskz_getmant_round_sh): Likewise.
3318 (_mm512_getmant_round_ph): Likewise.
3319 (_mm512_mask_getmant_round_ph): Likewise.
3320 (_mm512_maskz_getmant_round_ph): Likewise.
3321 * config/i386/avx512fp16vlintrin.h (_mm_mask_fpclass_ph_mask):
3323 (_mm_fpclass_ph_mask): Likewise.
3324 (_mm256_mask_fpclass_ph_mask): Likewise.
3325 (_mm256_fpclass_ph_mask): Likewise.
3326 (_mm256_getexp_ph): Likewise.
3327 (_mm256_mask_getexp_ph): Likewise.
3328 (_mm256_maskz_getexp_ph): Likewise.
3329 (_mm_getexp_ph): Likewise.
3330 (_mm_mask_getexp_ph): Likewise.
3331 (_mm_maskz_getexp_ph): Likewise.
3332 (_mm256_getmant_ph): Likewise.
3333 (_mm256_mask_getmant_ph): Likewise.
3334 (_mm256_maskz_getmant_ph): Likewise.
3335 (_mm_getmant_ph): Likewise.
3336 (_mm_mask_getmant_ph): Likewise.
3337 (_mm_maskz_getmant_ph): Likewise.
3338 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
3339 * config/i386/i386-builtin.def: Add corresponding new builtins.
3340 * config/i386/i386-expand.c
3341 (ix86_expand_args_builtin): Handle new builtin types.
3342 (ix86_expand_round_builtin): Ditto.
3343 * config/i386/sse.md (vecmemsuffix): Add HF vector modes.
3344 (<avx512>_getexp<mode><mask_name><round_saeonly_name>): Adjust
3345 to support HF vector modes.
3346 (avx512f_sgetexp<mode><mask_scalar_name><round_saeonly_scalar_name):
3348 (avx512dq_fpclass<mode><mask_scalar_merge_name>): Ditto.
3349 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Ditto.
3350 (<avx512>_getmant<mode><mask_name><round_saeonly_name>): Ditto.
3351 (avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
3354 2021-09-14 liuhongt <hongtao.liu@intel.com>
3356 * config/i386/avx512fp16intrin.h (_mm512_reduce_ph):
3358 (_mm512_mask_reduce_ph): Likewise.
3359 (_mm512_maskz_reduce_ph): Likewise.
3360 (_mm512_reduce_round_ph): Likewise.
3361 (_mm512_mask_reduce_round_ph): Likewise.
3362 (_mm512_maskz_reduce_round_ph): Likewise.
3363 (_mm_reduce_sh): Likewise.
3364 (_mm_mask_reduce_sh): Likewise.
3365 (_mm_maskz_reduce_sh): Likewise.
3366 (_mm_reduce_round_sh): Likewise.
3367 (_mm_mask_reduce_round_sh): Likewise.
3368 (_mm_maskz_reduce_round_sh): Likewise.
3369 (_mm512_roundscale_ph): Likewise.
3370 (_mm512_mask_roundscale_ph): Likewise.
3371 (_mm512_maskz_roundscale_ph): Likewise.
3372 (_mm512_roundscale_round_ph): Likewise.
3373 (_mm512_mask_roundscale_round_ph): Likewise.
3374 (_mm512_maskz_roundscale_round_ph): Likewise.
3375 (_mm_roundscale_sh): Likewise.
3376 (_mm_mask_roundscale_sh): Likewise.
3377 (_mm_maskz_roundscale_sh): Likewise.
3378 (_mm_roundscale_round_sh): Likewise.
3379 (_mm_mask_roundscale_round_sh): Likewise.
3380 (_mm_maskz_roundscale_round_sh): Likewise.
3381 * config/i386/avx512fp16vlintrin.h: (_mm_reduce_ph):
3383 (_mm_mask_reduce_ph): Likewise.
3384 (_mm_maskz_reduce_ph): Likewise.
3385 (_mm256_reduce_ph): Likewise.
3386 (_mm256_mask_reduce_ph): Likewise.
3387 (_mm256_maskz_reduce_ph): Likewise.
3388 (_mm_roundscale_ph): Likewise.
3389 (_mm_mask_roundscale_ph): Likewise.
3390 (_mm_maskz_roundscale_ph): Likewise.
3391 (_mm256_roundscale_ph): Likewise.
3392 (_mm256_mask_roundscale_ph): Likewise.
3393 (_mm256_maskz_roundscale_ph): Likewise.
3394 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
3395 * config/i386/i386-builtin.def: Add corresponding new builtins.
3396 * config/i386/i386-expand.c
3397 (ix86_expand_args_builtin): Handle new builtin types.
3398 (ix86_expand_round_builtin): Ditto.
3399 * config/i386/sse.md (<mask_codefor>reducep<mode><mask_name>):
3401 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
3402 ... this, and adjust for round operands.
3403 (reduces<mode><mask_scalar_name>): Likewise, with ...
3404 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name):
3406 (<avx512>_rndscale<mode><mask_name><round_saeonly_name>):
3407 Adjust for HF vector modes.
3408 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
3410 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
3412 2021-09-14 liuhongt <hongtao.liu@intel.com>
3414 * config/i386/avx512fp16intrin.h: (_mm512_rcp_ph):
3416 (_mm512_mask_rcp_ph): Likewise.
3417 (_mm512_maskz_rcp_ph): Likewise.
3418 (_mm_rcp_sh): Likewise.
3419 (_mm_mask_rcp_sh): Likewise.
3420 (_mm_maskz_rcp_sh): Likewise.
3421 (_mm512_scalef_ph): Likewise.
3422 (_mm512_mask_scalef_ph): Likewise.
3423 (_mm512_maskz_scalef_ph): Likewise.
3424 (_mm512_scalef_round_ph): Likewise.
3425 (_mm512_mask_scalef_round_ph): Likewise.
3426 (_mm512_maskz_scalef_round_ph): Likewise.
3427 (_mm_scalef_sh): Likewise.
3428 (_mm_mask_scalef_sh): Likewise.
3429 (_mm_maskz_scalef_sh): Likewise.
3430 (_mm_scalef_round_sh): Likewise.
3431 (_mm_mask_scalef_round_sh): Likewise.
3432 (_mm_maskz_scalef_round_sh): Likewise.
3433 * config/i386/avx512fp16vlintrin.h (_mm_rcp_ph):
3435 (_mm256_rcp_ph): Likewise.
3436 (_mm_mask_rcp_ph): Likewise.
3437 (_mm256_mask_rcp_ph): Likewise.
3438 (_mm_maskz_rcp_ph): Likewise.
3439 (_mm256_maskz_rcp_ph): Likewise.
3440 (_mm_scalef_ph): Likewise.
3441 (_mm256_scalef_ph): Likewise.
3442 (_mm_mask_scalef_ph): Likewise.
3443 (_mm256_mask_scalef_ph): Likewise.
3444 (_mm_maskz_scalef_ph): Likewise.
3445 (_mm256_maskz_scalef_ph): Likewise.
3446 * config/i386/i386-builtin.def: Add new builtins.
3447 * config/i386/sse.md (VFH_AVX512VL): New.
3448 (avx512fp16_rcp<mode>2<mask_name>): Ditto.
3449 (avx512fp16_vmrcpv8hf2<mask_scalar_name>): Ditto.
3450 (avx512f_vmscalef<mode><mask_scalar_name><round_scalar_name>):
3451 Adjust to support HF vector modes.
3452 (<avx512>_scalef<mode><mask_name><round_name>): Ditto.
3454 2021-09-14 liuhongt <hongtao.liu@intel.com>
3456 * config/i386/avx512fp16intrin.h: (_mm512_sqrt_ph):
3458 (_mm512_mask_sqrt_ph): Likewise.
3459 (_mm512_maskz_sqrt_ph): Likewise.
3460 (_mm512_sqrt_round_ph): Likewise.
3461 (_mm512_mask_sqrt_round_ph): Likewise.
3462 (_mm512_maskz_sqrt_round_ph): Likewise.
3463 (_mm512_rsqrt_ph): Likewise.
3464 (_mm512_mask_rsqrt_ph): Likewise.
3465 (_mm512_maskz_rsqrt_ph): Likewise.
3466 (_mm_rsqrt_sh): Likewise.
3467 (_mm_mask_rsqrt_sh): Likewise.
3468 (_mm_maskz_rsqrt_sh): Likewise.
3469 (_mm_sqrt_sh): Likewise.
3470 (_mm_mask_sqrt_sh): Likewise.
3471 (_mm_maskz_sqrt_sh): Likewise.
3472 (_mm_sqrt_round_sh): Likewise.
3473 (_mm_mask_sqrt_round_sh): Likewise.
3474 (_mm_maskz_sqrt_round_sh): Likewise.
3475 * config/i386/avx512fp16vlintrin.h (_mm_sqrt_ph): New intrinsic.
3476 (_mm256_sqrt_ph): Likewise.
3477 (_mm_mask_sqrt_ph): Likewise.
3478 (_mm256_mask_sqrt_ph): Likewise.
3479 (_mm_maskz_sqrt_ph): Likewise.
3480 (_mm256_maskz_sqrt_ph): Likewise.
3481 (_mm_rsqrt_ph): Likewise.
3482 (_mm256_rsqrt_ph): Likewise.
3483 (_mm_mask_rsqrt_ph): Likewise.
3484 (_mm256_mask_rsqrt_ph): Likewise.
3485 (_mm_maskz_rsqrt_ph): Likewise.
3486 (_mm256_maskz_rsqrt_ph): Likewise.
3487 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
3488 * config/i386/i386-builtin.def: Add corresponding new builtins.
3489 * config/i386/i386-expand.c
3490 (ix86_expand_args_builtin): Handle new builtins.
3491 (ix86_expand_round_builtin): Ditto.
3492 * config/i386/sse.md (VF_AVX512FP16VL): New.
3493 (sqrt<mode>2): Adjust for HF vector modes.
3494 (<sse>_sqrt<mode>2<mask_name><round_name>): Likewise.
3495 (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
3497 (<sse>_rsqrt<mode>2<mask_name>): New.
3498 (avx512fp16_vmrsqrtv8hf2<mask_scalar_name>): Likewise.
3500 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
3503 * diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
3504 'RESERVED_LOCATION_P' locations.
3505 * warning-control.cc (get_nowarn_spec, suppress_warning)
3506 (copy_warning): Likewise.
3508 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
3510 * diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
3511 (typedef key_type_t): ... this. Remove.
3512 (nowarn_map): Document.
3513 * diagnostic-spec.c (nowarn_map): Likewise.
3514 * warning-control.cc (convert_to_key): Evolve functions into...
3515 (get_location): ... these. Adjust all users.
3517 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
3519 * warning-control.cc (copy_warning): Remove 'nowarn_map' setup.
3521 2021-09-13 Jason Merrill <jason@redhat.com>
3523 * params.opt: Add destructive-interference-size and
3524 constructive-interference-size.
3525 * doc/invoke.texi: Document them.
3526 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3528 * config/arm/arm.c (arm_option_override): Set them.
3529 * config/i386/i386-options.c (ix86_option_override_internal):
3532 2021-09-13 Martin Liska <mliska@suse.cz>
3533 H.J. Lu <hjl.tools@gmail.com>
3536 * common/config/i386/cpuinfo.h (cpu_indicator_init): Add support
3537 for x86-64 micro levels for __builtin_cpu_supports.
3538 * common/config/i386/i386-cpuinfo.h (enum feature_priority):
3539 Add priorities for the micro-arch levels.
3540 (enum processor_features): Add new features.
3541 * common/config/i386/i386-isas.h: Add micro-arch features.
3542 * config/i386/i386-builtins.c (get_builtin_code_for_version):
3543 Support the micro-arch levels by callsing
3544 __builtin_cpu_supports.
3545 * doc/extend.texi: Document that the levels are support by
3546 __builtin_cpu_supports.
3548 2021-09-13 Andrew Pinski <apinski@marvell.com>
3551 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
3553 (aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
3554 (aarch64_general_gimple_fold_builtin): Likewise.
3556 2021-09-13 Andrew Pinski <apinski@marvell.com>
3558 * config.gcc: Add m32r-*-linux* and m32rle-*-linux*
3559 to the Unsupported targets list.
3560 Remove support for m32r-*-linux* and m32rle-*-linux*.
3561 * config/m32r/linux.h: Removed.
3562 * config/m32r/t-linux: Removed.
3564 2021-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3567 * config/aarch64/aarch64.c (aarch64_classify_address): Don't allow
3568 register index for SVE predicate modes.
3570 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
3572 * tree-ssa-threadbackward.c
3573 (back_threader_profitability::profitable_path_p): Remove FSM
3575 (back_threader_registry::register_path): Same.
3576 * tree-ssa-threadedge.c
3577 (jump_threader::simplify_control_stmt_condition): Same.
3578 * tree-ssa-threadupdate.c (jt_path_registry::jt_path_registry):
3579 Add backedge_threads argument.
3580 (fwd_jt_path_registry::fwd_jt_path_registry): Pass
3581 backedge_threads argument.
3582 (back_jt_path_registry::back_jt_path_registry): Same.
3583 (dump_jump_thread_path): Adjust for FSM removal.
3584 (back_jt_path_registry::rewire_first_differing_edge): Same.
3585 (back_jt_path_registry::adjust_paths_after_duplication): Same.
3586 (back_jt_path_registry::update_cfg): Same.
3587 (jt_path_registry::register_jump_thread): Same.
3588 * tree-ssa-threadupdate.h (enum jump_thread_edge_type): Remove
3590 (class back_jt_path_registry): Add backedge_threads to
3593 2021-09-13 Martin Liska <mliska@suse.cz>
3596 * asan.h (sanitize_coverage_p): Handle when fn == NULL.
3598 2021-09-13 H.J. Lu <hjl.tools@gmail.com>
3601 * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): New.
3602 (TARGET_AVX256_STORE_BY_PIECES): Likewise.
3603 (MOVE_MAX): Check TARGET_AVX256_MOVE_BY_PIECES and
3604 TARGET_AVX256_STORE_BY_PIECES instead of
3605 TARGET_AVX256_SPLIT_UNALIGNED_LOAD and
3606 TARGET_AVX256_SPLIT_UNALIGNED_STORE.
3607 (STORE_MAX_PIECES): Check TARGET_AVX256_STORE_BY_PIECES instead
3608 of TARGET_AVX256_SPLIT_UNALIGNED_STORE.
3609 * config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES): New.
3610 (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
3612 2021-09-13 liuhongt <hongtao.liu@intel.com>
3615 * expmed.c (extract_bit_field_using_extv): Use
3616 gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
3618 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
3620 * Makefile.in (OBJS): Add value-pointer-equiv.o.
3621 * gimple-ssa-evrp.c (class ssa_equiv_stack): Move to
3622 value-pointer-equiv.*.
3623 (ssa_equiv_stack::ssa_equiv_stack): Same.
3624 (ssa_equiv_stack::enter): Same.
3625 (ssa_equiv_stack::leave): Same.
3626 (ssa_equiv_stack::push_replacement): Same.
3627 (ssa_equiv_stack::get_replacement): Same.
3628 (is_pointer_ssa): Same.
3629 (class pointer_equiv_analyzer): Same.
3630 (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
3631 (pointer_equiv_analyzer::~pointer_equiv_analyzer): Same.
3632 (pointer_equiv_analyzer::set_global_equiv): Same.
3633 (pointer_equiv_analyzer::set_cond_equiv): Same.
3634 (pointer_equiv_analyzer::get_equiv): Same.
3635 (pointer_equiv_analyzer::enter): Same.
3636 (pointer_equiv_analyzer::leave): Same.
3637 (pointer_equiv_analyzer::get_equiv_expr): Same.
3638 (pta_valueize): Same.
3639 (pointer_equiv_analyzer::visit_stmt): Same.
3640 (pointer_equiv_analyzer::visit_edge): Same.
3641 (hybrid_folder::value_of_expr): Same.
3642 (hybrid_folder::value_on_edge): Same.
3643 * value-pointer-equiv.cc: New file.
3644 * value-pointer-equiv.h: New file.
3646 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
3649 * gimple-fold.c (gimple_fold_builtin_memory_op): Allow folding
3650 memcpy if the size is not more than MOVE_MAX * MOVE_RATIO.
3652 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
3655 * config/arm/arm.md (movmisaligndi): New define_expand.
3656 * config/arm/vec-common.md (movmisalign<mode>): Iterate over VDQ mode.
3658 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
3661 * emit-rtl.c (gen_highpart): Use adjust_address to handle
3662 MEM rather than calling simplify_gen_subreg.
3664 2021-09-13 Jan-Benedict Glaw <jbglaw@ług-owl.de>
3666 * config/alpha/vms.h (INIT_CUMULATIVE_ARGS): Wrap multi-statment
3667 define into a block.
3669 2021-09-13 Richard Biener <rguenther@suse.de>
3671 * config/darwin.h (DARWIN_PREFER_DWARF): Do not define.
3672 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Do not
3673 change based on DARWIN_PREFER_DWARF not being defined.
3675 2021-09-13 Richard Biener <rguenther@suse.de>
3677 * config/i386/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
3678 to inherit from elfos.h
3680 2021-09-13 Richard Biener <rguenther@suse.de>
3682 * config.gcc: Add cr16-*-* to the list of obsoleted targets.
3684 2021-09-13 Richard Biener <rguenther@suse.de>
3686 * config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
3687 override, pick up DWARF2_DEBUG define from elfos.h
3689 2021-09-13 Richard Biener <rguenther@suse.de>
3691 * config/rx/rx.h (PREFERRED_DEBUGGING_TYPE): Always define to
3694 2021-09-13 Richard Biener <rguenther@suse.de>
3696 * config/alpha/vms.h (PREFERRED_DEBUGGING_TYPE): Define to
3699 2021-09-13 Richard Biener <rguenther@suse.de>
3701 * config/i386/cygming.h: Always default to DWARF2 debugging.
3702 Do not define DBX_DEBUGGING_INFO, that's done via dbxcoff.h
3704 * doc/install.texi: Document binutils 2.16 as minimum
3705 requirement for mingw.
3707 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
3709 * config/rs6000/rs6000.c (struct rs6000_cost_data): New members
3710 nstmts, nloads and extra_ctor_cost.
3711 (rs6000_density_test): Add load density related heuristics. Do
3712 extra costing on vector construction statements if need.
3713 (rs6000_init_cost): Init new members.
3714 (rs6000_update_target_cost_per_stmt): New function.
3715 (rs6000_add_stmt_cost): Factor vect_nonmem hunk out to function
3716 rs6000_update_target_cost_per_stmt and call it.
3718 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
3720 * config/rs6000/rs6000.c (struct rs6000_cost_data): Remove typedef.
3721 (rs6000_init_cost): Adjust.
3723 2021-09-13 liuhongt <hongtao.liu@intel.com>
3725 * config/i386/i386.md: (UNSPEC_COPYSIGN): Remove.
3726 (UNSPEC_XORSIGN): Ditto.
3728 2021-09-12 Roger Sayle <roger@nextmovesoftware.com>
3730 * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when
3731 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
3734 2021-09-11 Aldy Hernandez <aldyh@redhat.com>
3736 * tree-ssa-threadbackward.c (class back_threader_registry): Use
3737 back_jt_path_registry.
3738 * tree-ssa-threadedge.c (jump_threader::jump_threader): Use
3739 fwd_jt_path_registry.
3740 * tree-ssa-threadedge.h (class jump_threader): Same..
3741 * tree-ssa-threadupdate.c
3742 (jump_thread_path_registry::jump_thread_path_registry): Rename...
3743 (jt_path_registry::jt_path_registry): ...to this.
3744 (jump_thread_path_registry::~jump_thread_path_registry): Rename...
3745 (jt_path_registry::~jt_path_registry): ...this.
3746 (fwd_jt_path_registry::fwd_jt_path_registry): New.
3747 (fwd_jt_path_registry::~fwd_jt_path_registry): New.
3748 (jump_thread_path_registry::allocate_thread_edge): Rename...
3749 (jt_path_registry::allocate_thread_edge): ...to this.
3750 (jump_thread_path_registry::allocate_thread_path): Rename...
3751 (jt_path_registry::allocate_thread_path): ...to this.
3752 (jump_thread_path_registry::lookup_redirection_data): Rename...
3753 (fwd_jt_path_registry::lookup_redirection_data): ...to this.
3754 (jump_thread_path_registry::thread_block_1): Rename...
3755 (fwd_jt_path_registry::thread_block_1): ...to this.
3756 (jump_thread_path_registry::thread_block): Rename...
3757 (fwd_jt_path_registry::thread_block): ...to this.
3758 (jt_path_registry::thread_through_loop_header): Rename...
3759 (fwd_jt_path_registry::thread_through_loop_header): ...to this.
3760 (jump_thread_path_registry::mark_threaded_blocks): Rename...
3761 (fwd_jt_path_registry::mark_threaded_blocks): ...to this.
3762 (jump_thread_path_registry::debug_path): Rename...
3763 (jt_path_registry::debug_path): ...to this.
3764 (jump_thread_path_registry::dump): Rename...
3765 (jt_path_registry::debug): ...to this.
3766 (jump_thread_path_registry::rewire_first_differing_edge): Rename...
3767 (back_jt_path_registry::rewire_first_differing_edge): ...to this.
3768 (jump_thread_path_registry::adjust_paths_after_duplication): Rename...
3769 (back_jt_path_registry::adjust_paths_after_duplication): ...to this.
3770 (jump_thread_path_registry::duplicate_thread_path): Rename...
3771 (back_jt_path_registry::duplicate_thread_path): ...to this. Also,
3772 drop ill-formed candidates.
3773 (jump_thread_path_registry::remove_jump_threads_including): Rename...
3774 (fwd_jt_path_registry::remove_jump_threads_including): ...to this.
3775 (jt_path_registry::thread_through_all_blocks): New.
3776 (back_jt_path_registry::update_cfg): New.
3777 (fwd_jt_path_registry::update_cfg): New.
3778 (jump_thread_path_registry::register_jump_thread): Rename...
3779 (jt_path_registry::register_jump_thread): ...to this.
3780 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
3782 (class jt_path_registry): ...here.
3783 (class fwd_jt_path_registry): New.
3784 (class back_jt_path_registry): New.
3786 2021-09-10 liuhongt <hongtao.liu@intel.com>
3789 2021-09-01 liuhongt <hongtao.liu@intel.com>
3791 * emit-rtl.c (validate_subreg): Get rid of all float-int
3794 2021-09-10 Jakub Jelinek <jakub@redhat.com>
3796 * tree-core.h (enum omp_memory_order): Add OMP_MEMORY_ORDER_MASK,
3797 OMP_FAIL_MEMORY_ORDER_UNSPECIFIED, OMP_FAIL_MEMORY_ORDER_RELAXED,
3798 OMP_FAIL_MEMORY_ORDER_ACQUIRE, OMP_FAIL_MEMORY_ORDER_RELEASE,
3799 OMP_FAIL_MEMORY_ORDER_ACQ_REL, OMP_FAIL_MEMORY_ORDER_SEQ_CST and
3800 OMP_FAIL_MEMORY_ORDER_MASK enumerators.
3801 (OMP_FAIL_MEMORY_ORDER_SHIFT): Define.
3802 * gimple-pretty-print.c (dump_gimple_omp_atomic_load,
3803 dump_gimple_omp_atomic_store): Print [weak] for weak atomic
3805 * gimple.h (enum gf_mask): Change GF_OMP_ATOMIC_MEMORY_ORDER
3806 to 6-bit mask, adjust GF_OMP_ATOMIC_NEED_VALUE value and add
3808 (gimple_omp_atomic_weak_p, gimple_omp_atomic_set_weak): New inline
3810 * tree.h (OMP_ATOMIC_WEAK): Define.
3811 * tree-pretty-print.c (dump_omp_atomic_memory_order): Adjust for
3812 fail memory order being encoded in the same enum and also print
3813 fail clause if present.
3814 (dump_generic_node): Print weak clause if OMP_ATOMIC_WEAK.
3815 * gimplify.c (goa_stabilize_expr): Add target_expr and rhs arguments,
3816 handle pre_p == NULL case as a test mode that only returns value
3817 but doesn't change gimplify nor change anything otherwise, adjust
3818 recursive calls, add MODIFY_EXPR, ADDR_EXPR, COND_EXPR, TARGET_EXPR
3819 and CALL_EXPR handling, adjust COMPOUND_EXPR handling for
3820 __builtin_clear_padding calls, for !rhs gimplify as lvalue rather
3822 (gimplify_omp_atomic): Adjust goa_stabilize_expr caller. Handle
3823 COND_EXPR rhs. Set weak flag on gimple load/store for
3825 * omp-expand.c (omp_memory_order_to_fail_memmodel): New function.
3826 (omp_memory_order_to_memmodel): Adjust for fail clause encoded
3828 (expand_omp_atomic_cas): New function.
3829 (expand_omp_atomic_pipeline): Use omp_memory_order_to_fail_memmodel
3831 (expand_omp_atomic): Attempt to optimize atomic compare and exchange
3832 using expand_omp_atomic_cas.
3834 2021-09-10 Aldy Hernandez <aldyh@redhat.com>
3835 Michael Matz <matz@suse.de>
3837 * tree-pass.h (PROP_loop_opts_done): New.
3838 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
3839 Intersect with global range.
3840 * tree-ssa-loop.c (tree_ssa_loop_done): Set PROP_loop_opts_done.
3841 * tree-ssa-threadbackward.c
3842 (back_threader_profitability::profitable_path_p): Disable
3843 threading through latches until after loop optimizations have run.
3845 2021-09-10 David Faust <david.faust@oracle.com>
3847 * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32
3850 2021-09-10 David Faust <david.faust@oracle.com>
3852 * config/bpf/bpf-opts.h (bpf_isa_version): New enum.
3853 * config/bpf/bpf-protos.h (bpf_expand_cbranch): New.
3854 * config/bpf/bpf.c (bpf_option_override): Handle -mcpu option.
3855 (bpf_expand_cbranch): New function.
3856 * config/bpf/bpf.md (AM mode iterator): Conditionalize support for SI
3858 (zero_extendsidi2): Only use mov32 instruction if it is available.
3859 (SIM mode iterator): Conditionalize support for SI mode.
3860 (JM mode iterator): New.
3861 (cbranchdi4): Update name, use new JM iterator. Use bpf_expand_cbranch.
3862 (*branch_on_di): Update name, use new JM iterator.
3863 * config/bpf/bpf.opt: (mjmpext): New option.
3867 (bpf_isa): New enum.
3869 2021-09-10 David Faust <david.faust@oracle.com>
3871 * config/bpf/bpf.md (zero_extendhidi2): Add new output template
3872 for register-to-register extensions.
3873 (zero_extendqidi2): Likewise.
3875 2021-09-10 Richard Biener <rguenther@suse.de>
3877 PR middle-end/102273
3878 * internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.
3880 2021-09-10 Richard Biener <rguenther@suse.de>
3882 PR middle-end/102269
3883 * gimplify.c (is_var_need_auto_init): Empty types do not need
3886 2021-09-10 Richard Biener <rguenther@suse.de>
3888 * configure.ac (--with-stabs): Remove.
3889 * configure: Regenerate.
3890 * doc/install.texi: Remove --with-stabs documentation.
3892 2021-09-10 liuhongt <hongtao.liu@intel.com>
3894 * config/i386/avx512fp16intrin.h: (_mm512_cmp_ph_mask):
3896 (_mm512_mask_cmp_ph_mask): Likewise.
3897 (_mm512_cmp_round_ph_mask): Likewise.
3898 (_mm512_mask_cmp_round_ph_mask): Likewise.
3899 (_mm_cmp_sh_mask): Likewise.
3900 (_mm_mask_cmp_sh_mask): Likewise.
3901 (_mm_cmp_round_sh_mask): Likewise.
3902 (_mm_mask_cmp_round_sh_mask): Likewise.
3903 (_mm_comieq_sh): Likewise.
3904 (_mm_comilt_sh): Likewise.
3905 (_mm_comile_sh): Likewise.
3906 (_mm_comigt_sh): Likewise.
3907 (_mm_comige_sh): Likewise.
3908 (_mm_comineq_sh): Likewise.
3909 (_mm_ucomieq_sh): Likewise.
3910 (_mm_ucomilt_sh): Likewise.
3911 (_mm_ucomile_sh): Likewise.
3912 (_mm_ucomigt_sh): Likewise.
3913 (_mm_ucomige_sh): Likewise.
3914 (_mm_ucomineq_sh): Likewise.
3915 (_mm_comi_round_sh): Likewise.
3916 (_mm_comi_sh): Likewise.
3917 * config/i386/avx512fp16vlintrin.h (_mm_cmp_ph_mask): New intrinsic.
3918 (_mm_mask_cmp_ph_mask): Likewise.
3919 (_mm256_cmp_ph_mask): Likewise.
3920 (_mm256_mask_cmp_ph_mask): Likewise.
3921 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
3922 * config/i386/i386-builtin.def: Add corresponding new builtins.
3923 * config/i386/i386-expand.c
3924 (ix86_expand_args_builtin): Handle new builtin types.
3925 (ix86_expand_round_builtin): Ditto.
3926 * config/i386/i386.md (ssevecmode): Add HF mode.
3927 (MODEFH): New mode iterator.
3928 * config/i386/sse.md
3929 (V48H_AVX512VL): New mode iterator to support HF vector modes.
3930 Ajdust corresponding description.
3931 (ssecmpintprefix): New.
3932 (VI12_AVX512VL): Adjust to support HF vector modes.
3933 (cmp_imm_predicate): Likewise.
3934 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
3936 (avx512f_vmcmp<mode>3<round_saeonly_name>): Likewise.
3937 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Likewise.
3938 (<sse>_<unord>comi<round_saeonly_name>): Likewise.
3940 2021-09-10 liuhongt <hongtao.liu@intel.com>
3942 * config/i386/avx512fp16intrin.h: (_mm512_max_ph): New intrinsic.
3943 (_mm512_mask_max_ph): Likewise.
3944 (_mm512_maskz_max_ph): Likewise.
3945 (_mm512_min_ph): Likewise.
3946 (_mm512_mask_min_ph): Likewise.
3947 (_mm512_maskz_min_ph): Likewise.
3948 (_mm512_max_round_ph): Likewise.
3949 (_mm512_mask_max_round_ph): Likewise.
3950 (_mm512_maskz_max_round_ph): Likewise.
3951 (_mm512_min_round_ph): Likewise.
3952 (_mm512_mask_min_round_ph): Likewise.
3953 (_mm512_maskz_min_round_ph): Likewise.
3954 (_mm_max_sh): Likewise.
3955 (_mm_mask_max_sh): Likewise.
3956 (_mm_maskz_max_sh): Likewise.
3957 (_mm_min_sh): Likewise.
3958 (_mm_mask_min_sh): Likewise.
3959 (_mm_maskz_min_sh): Likewise.
3960 (_mm_max_round_sh): Likewise.
3961 (_mm_mask_max_round_sh): Likewise.
3962 (_mm_maskz_max_round_sh): Likewise.
3963 (_mm_min_round_sh): Likewise.
3964 (_mm_mask_min_round_sh): Likewise.
3965 (_mm_maskz_min_round_sh): Likewise.
3966 * config/i386/avx512fp16vlintrin.h (_mm_max_ph): New intrinsic.
3967 (_mm256_max_ph): Likewise.
3968 (_mm_mask_max_ph): Likewise.
3969 (_mm256_mask_max_ph): Likewise.
3970 (_mm_maskz_max_ph): Likewise.
3971 (_mm256_maskz_max_ph): Likewise.
3972 (_mm_min_ph): Likewise.
3973 (_mm256_min_ph): Likewise.
3974 (_mm_mask_min_ph): Likewise.
3975 (_mm256_mask_min_ph): Likewise.
3976 (_mm_maskz_min_ph): Likewise.
3977 (_mm256_maskz_min_ph): Likewise.
3978 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
3979 * config/i386/i386-builtin.def: Add corresponding new builtins.
3980 * config/i386/i386-expand.c
3981 (ix86_expand_args_builtin): Handle new builtin types.
3982 * config/i386/sse.md
3983 (<code><mode>3<mask_name><round_saeonly_name>): Adjust to
3984 support HF vector modes.
3985 (*<code><mode>3<mask_name><round_saeonly_name>): Likewise.
3986 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
3988 (<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
3990 * config/i386/subst.md (round_saeonly_mode512bit_condition):
3991 Adjust for HF vector modes.
3993 2021-09-10 Liu, Hongtao <hongtao.liu@intel.com>
3995 * config/i386/avx512fp16intrin.h (_mm_add_sh): New intrinsic.
3996 (_mm_mask_add_sh): Likewise.
3997 (_mm_maskz_add_sh): Likewise.
3998 (_mm_sub_sh): Likewise.
3999 (_mm_mask_sub_sh): Likewise.
4000 (_mm_maskz_sub_sh): Likewise.
4001 (_mm_mul_sh): Likewise.
4002 (_mm_mask_mul_sh): Likewise.
4003 (_mm_maskz_mul_sh): Likewise.
4004 (_mm_div_sh): Likewise.
4005 (_mm_mask_div_sh): Likewise.
4006 (_mm_maskz_div_sh): Likewise.
4007 (_mm_add_round_sh): Likewise.
4008 (_mm_mask_add_round_sh): Likewise.
4009 (_mm_maskz_add_round_sh): Likewise.
4010 (_mm_sub_round_sh): Likewise.
4011 (_mm_mask_sub_round_sh): Likewise.
4012 (_mm_maskz_sub_round_sh): Likewise.
4013 (_mm_mul_round_sh): Likewise.
4014 (_mm_mask_mul_round_sh): Likewise.
4015 (_mm_maskz_mul_round_sh): Likewise.
4016 (_mm_div_round_sh): Likewise.
4017 (_mm_mask_div_round_sh): Likewise.
4018 (_mm_maskz_div_round_sh): Likewise.
4019 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4020 * config/i386/i386-builtin.def: Add corresponding new builtins.
4021 * config/i386/i386-expand.c
4022 (ix86_expand_round_builtin): Handle new builtins.
4023 * config/i386/sse.md (VF_128): Change description.
4024 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>):
4025 Adjust to support HF vector modes.
4026 (<sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>):
4029 2021-09-10 H.J. Lu <hjl.tools@gmail.com>
4031 * config/i386/i386-expand.c
4032 (ix86_avx256_split_vector_move_misalign): Handle V16HF mode.
4033 * config/i386/i386.c
4034 (ix86_preferred_simd_mode): Handle HF mode.
4035 * config/i386/sse.md (V_256H): New mode iterator.
4036 (avx_vextractf128<mode>): Use it.
4037 (VEC_INIT_MODE): Align vector HFmode condition to vector
4038 HImodes since there're no real HF instruction used.
4039 (VEC_INIT_HALF_MODE): Ditto.
4041 (VIHF_AVX512BW): Ditto.
4042 (*vec_extracthf): Ditto.
4043 (VEC_EXTRACT_MODE): Ditto.
4045 2021-09-10 Richard Biener <rguenther@suse.de>
4048 * config/dbx.h: Remove.
4049 * config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
4050 * config/lynx.h: Likewise.
4052 2021-09-10 liuhongt <hongtao.liu@intel.com>
4054 * config/i386/i386-expand.c (ix86_expand_copysign): Expand
4055 right into ANDNOT + AND + IOR, using paradoxical subregs.
4056 (ix86_split_copysign_const): Remove.
4057 (ix86_split_copysign_var): Ditto.
4058 * config/i386/i386-protos.h (ix86_split_copysign_const): Dotto.
4059 (ix86_split_copysign_var): Ditto.
4060 * config/i386/i386.md (@copysign<mode>3_const): Ditto.
4061 (@copysign<mode>3_var): Ditto.
4063 2021-09-09 qing zhao <qing.zhao@oracle.com>
4065 * builtins.c (expand_builtin_memset): Make external visible.
4066 * builtins.h (expand_builtin_memset): Declare extern.
4067 * common.opt (ftrivial-auto-var-init=): New option.
4068 * doc/extend.texi: Document the uninitialized attribute.
4069 * doc/invoke.texi: Document -ftrivial-auto-var-init.
4070 * flag-types.h (enum auto_init_type): New enumerated type
4072 * gimple-fold.c (clear_padding_type): Add one new parameter.
4073 (clear_padding_union): Likewise.
4074 (clear_padding_emit_loop): Likewise.
4075 (clear_type_padding_in_mask): Likewise.
4076 (gimple_fold_builtin_clear_padding): Handle this new parameter.
4077 * gimplify.c (gimple_add_init_for_auto_var): New function.
4078 (gimple_add_padding_init_for_auto_var): New function.
4079 (is_var_need_auto_init): New function.
4080 (gimplify_decl_expr): Add initialization to automatic variables per
4082 (gimplify_call_expr): Add one new parameter for call to
4083 __builtin_clear_padding.
4084 (gimplify_init_constructor): Add padding initialization in the end.
4085 * internal-fn.c (INIT_PATTERN_VALUE): New macro.
4086 (expand_DEFERRED_INIT): New function.
4087 * internal-fn.def (DEFERRED_INIT): New internal function.
4088 * tree-cfg.c (verify_gimple_call): Verify calls to .DEFERRED_INIT.
4089 * tree-sra.c (generate_subtree_deferred_init): New function.
4090 (scan_function): Avoid setting cannot_scalarize_away_bitmap for
4091 calls to .DEFERRED_INIT.
4092 (sra_modify_deferred_init): New function.
4093 (sra_modify_function_body): Handle calls to DEFERRED_INIT specially.
4094 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
4095 * tree-ssa-uninit.c (warn_uninit): Handle calls to DEFERRED_INIT
4097 (check_defs): Likewise.
4098 (warn_uninitialized_vars): Likewise.
4099 * tree-ssa.c (ssa_undefined_value_p): Likewise.
4100 * tree.c (build_common_builtin_nodes): Build tree node for
4101 BUILT_IN_CLEAR_PADDING when needed.
4103 2021-09-09 Richard Biener <rguenther@suse.de>
4105 * tree-ssa-loop-im.c (fill_always_executed_in_1): Walk
4108 2021-09-09 Richard Biener <rguenther@suse.de>
4110 * tree-ssa-loop-im.c (fill_always_executed_in_1): Integrate
4111 DOM walk from get_loop_body_in_dom_order using a worklist
4114 2021-09-09 liuhongt <hongtao.liu@intel.com>
4116 * config.gcc: Add avx512fp16vlintrin.h.
4117 * config/i386/avx512fp16intrin.h: (_mm512_add_ph): New intrinsic.
4118 (_mm512_mask_add_ph): Likewise.
4119 (_mm512_maskz_add_ph): Likewise.
4120 (_mm512_sub_ph): Likewise.
4121 (_mm512_mask_sub_ph): Likewise.
4122 (_mm512_maskz_sub_ph): Likewise.
4123 (_mm512_mul_ph): Likewise.
4124 (_mm512_mask_mul_ph): Likewise.
4125 (_mm512_maskz_mul_ph): Likewise.
4126 (_mm512_div_ph): Likewise.
4127 (_mm512_mask_div_ph): Likewise.
4128 (_mm512_maskz_div_ph): Likewise.
4129 (_mm512_add_round_ph): Likewise.
4130 (_mm512_mask_add_round_ph): Likewise.
4131 (_mm512_maskz_add_round_ph): Likewise.
4132 (_mm512_sub_round_ph): Likewise.
4133 (_mm512_mask_sub_round_ph): Likewise.
4134 (_mm512_maskz_sub_round_ph): Likewise.
4135 (_mm512_mul_round_ph): Likewise.
4136 (_mm512_mask_mul_round_ph): Likewise.
4137 (_mm512_maskz_mul_round_ph): Likewise.
4138 (_mm512_div_round_ph): Likewise.
4139 (_mm512_mask_div_round_ph): Likewise.
4140 (_mm512_maskz_div_round_ph): Likewise.
4141 * config/i386/avx512fp16vlintrin.h: New header.
4142 * config/i386/i386-builtin-types.def (V16HF, V8HF, V32HF):
4143 Add new builtin types.
4144 * config/i386/i386-builtin.def: Add corresponding builtins.
4145 * config/i386/i386-expand.c
4146 (ix86_expand_args_builtin): Handle new builtin types.
4147 (ix86_expand_round_builtin): Likewise.
4148 * config/i386/immintrin.h: Include avx512fp16vlintrin.h
4149 * config/i386/sse.md (VFH): New mode_iterator.
4151 (avx512fmaskmode): Add HF vector modes.
4152 (avx512fmaskhalfmode): Likewise.
4153 (<plusminus_insn><mode>3<mask_name><round_name>): Adjust to for
4155 (*<plusminus_insn><mode>3<mask_name><round_name>): Likewise.
4156 (mul<mode>3<mask_name><round_name>): Likewise.
4157 (*mul<mode>3<mask_name><round_name>): Likewise.
4158 (div<mode>3): Likewise.
4159 (<sse>_div<mode>3<mask_name><round_name>): Likewise.
4160 * config/i386/subst.md (SUBST_V): Add HF vector modes.
4161 (SUBST_A): Likewise.
4162 (round_mode512bit_condition): Adjust for V32HFmode.
4164 2021-09-09 liuhongt <hongtao.liu@intel.com>
4167 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
4168 (reduc_plus_scal_v4sf): .. this, New define_expand.
4169 (reduc_plus_scal_v2df): .. and this, New define_expand.
4171 2021-09-09 liuhongt <hongtao.liu@intel.com>
4174 * config/i386/sse.md (*vec_extract<mode><ssescalarmodelower>_valign):
4177 2021-09-08 Jonathan Wakely <jwakely@redhat.com>
4180 * doc/trouble.texi (Copy Assignment): Fix description of
4181 behaviour and fix code in example.
4183 2021-09-08 Segher Boessenkool <segher@kernel.crashing.org>
4186 * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use
4187 r11 instead of r12 for restoring CR.
4189 2021-09-08 Jakub Jelinek <jakub@redhat.com>
4190 liuhongt <hongtao.liu@intel.com>
4193 * config/i386/i386.md (@xorsign<mode>3_1): Remove.
4194 * config/i386/i386-expand.c (ix86_expand_xorsign): Expand right away
4195 into AND with mask and XOR, using paradoxical subregs.
4196 (ix86_split_xorsign): Remove.
4197 * config/i386/i386-protos.h (ix86_split_xorsign): Remove.
4199 2021-09-08 Di Zhao <dizhao@os.amperecomputing.com>
4201 * tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
4203 2021-09-08 Jakub Jelinek <jakub@redhat.com>
4206 * config/i386/i386.md (xorsign<mode>3): If operands[1] is equal to
4207 operands[2], emit abs<mode>2 instead.
4208 (@xorsign<mode>3_1): Add early-clobbers for output operand, enable
4209 first alternative even for avx, add another alternative with
4210 =&Yv <- 0, Yv, Yvm constraints.
4211 * config/i386/i386-expand.c (ix86_split_xorsign): If op0 is equal
4212 to op1, emit vpandn instead.
4214 2021-09-08 liuhongt <hongtao.liu@intel.com>
4216 * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic.
4217 (_mm256_set_ph): Likewise.
4218 (_mm512_set_ph): Likewise.
4219 (_mm_setr_ph): Likewise.
4220 (_mm256_setr_ph): Likewise.
4221 (_mm512_setr_ph): Likewise.
4222 (_mm_set1_ph): Likewise.
4223 (_mm256_set1_ph): Likewise.
4224 (_mm512_set1_ph): Likewise.
4225 (_mm_setzero_ph): Likewise.
4226 (_mm256_setzero_ph): Likewise.
4227 (_mm512_setzero_ph): Likewise.
4228 (_mm_set_sh): Likewise.
4229 (_mm_load_sh): Likewise.
4230 (_mm_store_sh): Likewise.
4231 * config/i386/i386-builtin-types.def (V8HF): New type.
4232 (DEF_FUNCTION_TYPE (V8HF, V8HI)): New builtin function type
4233 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
4234 Support vector HFmodes.
4235 (ix86_expand_vector_init_one_nonzero): Likewise.
4236 (ix86_expand_vector_init_one_var): Likewise.
4237 (ix86_expand_vector_init_interleave): Likewise.
4238 (ix86_expand_vector_init_general): Likewise.
4239 (ix86_expand_vector_set): Likewise.
4240 (ix86_expand_vector_extract): Likewise.
4241 (ix86_expand_vector_init_concat): Likewise.
4242 (ix86_expand_sse_movcc): Handle vector HFmodes.
4243 (ix86_expand_vector_set_var): Ditto.
4244 * config/i386/i386-modes.def: Add HF vector modes in comment.
4245 * config/i386/i386.c (classify_argument): Add HF vector modes.
4246 (ix86_hard_regno_mode_ok): Allow HF vector modes for AVX512FP16.
4247 (ix86_vector_mode_supported_p): Likewise.
4248 (ix86_set_reg_reg_cost): Handle vector HFmode.
4249 (ix86_get_ssemov): Handle vector HFmode.
4250 (function_arg_advance_64): Pass unamed V16HFmode and V32HFmode
4252 (function_arg_advance_32): Pass V8HF/V16HF/V32HF by sse reg for 32bit
4254 (function_arg_advance_32): Ditto.
4255 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): New.
4256 (VALID_AVX256_REG_OR_OI_MODE): Rename to ..
4257 (VALID_AVX256_REG_OR_OI_VHF_MODE): .. this, and add V16HF.
4258 (VALID_SSE2_REG_VHF_MODE): New.
4259 (VALID_AVX512VL_128_REG_MODE): Add V8HF and TImode.
4260 (SSE_REG_MODE_P): Add vector HFmode.
4261 * config/i386/i386.md (mode): Add HF vector modes.
4262 (MODE_SIZE): Likewise.
4263 (ssemodesuffix): Add ph suffix for HF vector modes.
4264 * config/i386/sse.md (VFH_128): New mode iterator.
4265 (VMOVE): Adjust for HF vector modes.
4267 (V_256_512): Likewise.
4269 (avx512fmaskmode): Likewise.
4270 (shuffletype): Likewise.
4271 (sseinsnmode): Likewise.
4272 (ssedoublevecmode): Likewise.
4273 (ssehalfvecmode): Likewise.
4274 (ssehalfvecmodelower): Likewise.
4275 (ssePScmode): Likewise.
4276 (ssescalarmode): Likewise.
4277 (ssescalarmodelower): Likewise.
4278 (sseintprefix): Likewise.
4280 (bcstscalarsuff): Likewise.
4281 (xtg_mode): Likewise.
4282 (VI12HF_AVX512VL): New mode_iterator.
4283 (VF_AVX512FP16): Likewise.
4285 (VIHF_256): Likewise.
4286 (VIHF_AVX512BW): Likewise.
4287 (V16_256): Likewise.
4288 (V32_512): Likewise.
4289 (sseintmodesuffix): New mode_attr.
4290 (sse): Add scalar and vector HFmodes.
4291 (ssescalarmode): Add vector HFmode mapping.
4292 (ssescalarmodesuffix): Add sh suffix for HFmode.
4293 (*<sse>_vm<insn><mode>3): Use VFH_128.
4294 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
4295 (*ieee_<ieee_maxmin><mode>3): Likewise.
4296 (<avx512>_blendm<mode>): New define_insn.
4297 (vec_setv8hf): New define_expand.
4298 (vec_set<mode>_0): New define_insn for HF vector set.
4299 (*avx512fp16_movsh): Likewise.
4300 (avx512fp16_movsh): Likewise.
4301 (vec_extract_lo_v32hi): Rename to ...
4302 (vec_extract_lo_<mode>): ... this, and adjust to allow HF
4304 (vec_extract_hi_v32hi): Likewise.
4305 (vec_extract_hi_<mode>): Likewise.
4306 (vec_extract_lo_v16hi): Likewise.
4307 (vec_extract_lo_<mode>): Likewise.
4308 (vec_extract_hi_v16hi): Likewise.
4309 (vec_extract_hi_<mode>): Likewise.
4310 (vec_set_hi_v16hi): Likewise.
4311 (vec_set_hi_<mode>): Likewise.
4312 (vec_set_lo_v16hi): Likewise.
4313 (vec_set_lo_<mode>): Likewise.
4314 (*vec_extract<mode>_0): New define_insn_and_split for HF
4316 (*vec_extracthf): New define_insn.
4317 (VEC_EXTRACT_MODE): Add HF vector modes.
4318 (PINSR_MODE): Add V8HF.
4319 (sse2p4_1): Likewise.
4320 (pinsr_evex_isa): Likewise.
4321 (<sse2p4_1>_pinsr<ssemodesuffix>): Adjust to support
4322 insert for V8HFmode.
4323 (pbroadcast_evex_isa): Add HF vector modes.
4324 (AVX2_VEC_DUP_MODE): Likewise.
4325 (VEC_INIT_MODE): Likewise.
4326 (VEC_INIT_HALF_MODE): Likewise.
4327 (avx2_pbroadcast<mode>): Adjust to support HF vector mode
4329 (avx2_pbroadcast<mode>_1): Likewise.
4330 (<avx512>_vec_dup<mode>_1): Likewise.
4331 (<avx512>_vec_dup<mode><mask_name>): Likewise.
4332 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>):
4335 2021-09-08 Guo, Xuepeng <xuepeng.guo@intel.com>
4336 H.J. Lu <hongjiu.lu@intel.com>
4337 Liu Hongtao <hongtao.liu@intel.com>
4338 Wang Hongyu <hongyu.wang@intel.com>
4339 Xu Dianhong <dianhong.xu@intel.com>
4341 * common/config/i386/cpuinfo.h (get_available_features):
4342 Detect FEATURE_AVX512FP16.
4343 * common/config/i386/i386-common.c
4344 (OPTION_MASK_ISA_AVX512FP16_SET,
4345 OPTION_MASK_ISA_AVX512FP16_UNSET,
4346 OPTION_MASK_ISA2_AVX512FP16_SET,
4347 OPTION_MASK_ISA2_AVX512FP16_UNSET): New.
4348 (OPTION_MASK_ISA2_AVX512BW_UNSET,
4349 OPTION_MASK_ISA2_AVX512BF16_UNSET): Add AVX512FP16.
4350 (ix86_handle_option): Handle -mavx512fp16.
4351 * common/config/i386/i386-cpuinfo.h (enum processor_features):
4352 Add FEATURE_AVX512FP16.
4353 * common/config/i386/i386-isas.h: Add entry for AVX512FP16.
4354 * config.gcc: Add avx512fp16intrin.h.
4355 * config/i386/avx512fp16intrin.h: New intrinsic header.
4356 * config/i386/cpuid.h: Add bit_AVX512FP16.
4357 * config/i386/i386-builtin-types.def: (FLOAT16): New primitive type.
4358 * config/i386/i386-builtins.c: Support _Float16 type for i386
4360 (ix86_register_float16_builtin_type): New function.
4361 (ix86_float16_type_node): New.
4362 * config/i386/i386-c.c (ix86_target_macros_internal): Define
4364 * config/i386/i386-expand.c (ix86_expand_branch): Support
4366 (ix86_prepare_fp_compare_args): Adjust TARGET_SSE_MATH &&
4367 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
4368 (ix86_expand_fp_movcc): Ditto.
4369 * config/i386/i386-isa.def: Add PTA define for AVX512FP16.
4370 * config/i386/i386-options.c (isa2_opts): Add -mavx512fp16.
4371 (ix86_valid_target_attribute_inner_p): Add avx512fp16 attribute.
4372 * config/i386/i386.c (ix86_get_ssemov): Use
4373 vmovdqu16/vmovw/vmovsh for HFmode/HImode scalar or vector.
4374 (ix86_get_excess_precision): Use
4375 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when TARGET_AVX512FP16
4377 (sse_store_index): Use SFmode cost for HFmode cost.
4378 (inline_memory_move_cost): Add HFmode, and perfer SSE cost over
4379 GPR cost for HFmode.
4380 (ix86_hard_regno_mode_ok): Allow HImode in sse register.
4381 (ix86_mangle_type): Add manlging for _Float16 type.
4382 (inline_secondary_memory_needed): No memory is needed for
4383 16bit movement between gpr and sse reg under
4385 (ix86_multiplication_cost): Adjust TARGET_SSE_MATH &&
4386 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
4387 (ix86_division_cost): Ditto.
4388 (ix86_rtx_costs): Ditto.
4389 (ix86_add_stmt_cost): Ditto.
4390 (ix86_optab_supported_p): Ditto.
4391 * config/i386/i386.h (VALID_AVX512F_SCALAR_MODE): Add HFmode.
4392 (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Add HFmode.
4393 (PTA_SAPPHIRERAPIDS): Add PTA_AVX512FP16.
4394 * config/i386/i386.md (mode): Add HFmode.
4395 (MODE_SIZE): Add HFmode.
4396 (isa): Add avx512fp16.
4397 (enabled): Handle avx512fp16.
4398 (ssemodesuffix): Add sh suffix for HFmode.
4399 (comm): Add mult, div.
4400 (plusminusmultdiv): New code iterator.
4401 (insn): Add mult, div.
4402 (*movhf_internal): Adjust for avx512fp16 instruction.
4403 (*movhi_internal): Ditto.
4404 (*cmpi<unord>hf): New define_insn for HFmode.
4405 (*ieee_s<ieee_maxmin>hf3): Likewise.
4406 (extendhf<mode>2): Likewise.
4407 (trunc<mode>hf2): Likewise.
4408 (float<floatunssuffix><mode>hf2): Likewise.
4409 (*<insn>hf): Likewise.
4410 (cbranchhf4): New expander.
4411 (movhfcc): Likewise.
4412 (<insn>hf3): Likewise.
4415 * config/i386/i386.opt: Add mavx512fp16.
4416 * config/i386/immintrin.h: Include avx512fp16intrin.h.
4417 * doc/invoke.texi: Add mavx512fp16.
4418 * doc/extend.texi: Add avx512fp16 Usage Notes.
4420 2021-09-08 liuhongt <hongtao.liu@intel.com>
4422 * common.opt: Support -fexcess-precision=16.
4423 * config/aarch64/aarch64.c (aarch64_excess_precision): Return
4424 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when
4425 EXCESS_PRECISION_TYPE_FLOAT16.
4426 * config/arm/arm.c (arm_excess_precision): Ditto.
4427 * config/i386/i386.c (ix86_get_excess_precision): Ditto.
4428 * config/m68k/m68k.c (m68k_excess_precision): Issue an error
4429 when EXCESS_PRECISION_TYPE_FLOAT16.
4430 * config/s390/s390.c (s390_excess_precision): Ditto.
4431 * coretypes.h (enum excess_precision_type): Add
4432 EXCESS_PRECISION_TYPE_FLOAT16.
4433 * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Update documents.
4434 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): Ditto.
4435 * doc/extend.texi (Half-Precision): Document
4436 -fexcess-precision=16.
4437 * flag-types.h (enum excess_precision): Add
4438 EXCESS_PRECISION_FLOAT16.
4439 * target.def (excess_precision): Update document.
4440 * tree.c (excess_precision_type): Set excess_precision_type to
4441 EXCESS_PRECISION_FLOAT16 when -fexcess-precision=16.
4443 2021-09-08 liuhongt <hongtao.liu@intel.com>
4445 * doc/extend.texi: (@node Floating Types): Adjust the wording.
4446 (@node Half-Precision): Ditto.
4448 2021-09-07 Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
4451 * config/xtensa/xtensa.c (xtensa_emit_move_sequence): Add
4452 'CONST_INT_P (src)' to the condition of the block that tries to
4453 eliminate literal when loading integer contant.
4455 2021-09-07 David Faust <david.faust@oracle.com>
4457 * doc/extend.texi (BPF Type Attributes) New node.
4458 Document new preserve_access_index attribute.
4459 Document new preserve_access_index builtin.
4460 * doc/invoke.texi: Document -mco-re and -mno-co-re options.
4462 2021-09-07 David Faust <david.faust@oracle.com>
4464 * config/bpf/bpf.c: Adjust includes.
4465 (bpf_handle_preserve_access_index_attribute): New function.
4466 (bpf_attribute_table): Use it here.
4467 (bpf_builtins): Add BPF_BUILTIN_PRESERVE_ACCESS_INDEX.
4468 (bpf_option_override): Handle "-mco-re" option.
4469 (bpf_asm_init_sections): New.
4470 (TARGET_ASM_INIT_SECTIONS): Redefine.
4471 (bpf_file_end): New.
4472 (TARGET_ASM_FILE_END): Redefine.
4473 (bpf_init_builtins): Add "__builtin_preserve_access_index".
4474 (bpf_core_compute, bpf_core_get_index): New.
4475 (is_attr_preserve_access): New.
4476 (bpf_expand_builtin): Handle new builtins.
4477 (bpf_core_newdecl, bpf_core_is_maybe_aggregate_access): New.
4478 (bpf_core_walk): New.
4479 (bpf_resolve_overloaded_builtin): New.
4480 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Redefine.
4482 (pass_bpf_core_attr): New RTL pass.
4483 * config/bpf/bpf-passes.def: New file.
4484 * config/bpf/bpf-protos.h (make_pass_bpf_core_attr): New.
4485 * config/bpf/coreout.c: New file.
4486 * config/bpf/coreout.h: Likewise.
4487 * config/bpf/t-bpf (TM_H): Add $(srcdir)/config/bpf/coreout.h.
4488 (coreout.o): New rule.
4489 (PASSES_EXTRA): Add $(srcdir)/config/bpf/bpf-passes.def.
4490 * config.gcc (bpf): Add coreout.h to extra_headers.
4491 Add coreout.o to extra_objs.
4492 Add $(srcdir)/config/bpf/coreout.c to target_gtfiles.
4494 2021-09-07 David Faust <david.faust@oracle.com>
4496 * btfout.c (get_btf_id): Function is no longer static.
4497 * ctfc.h: Expose it here.
4499 2021-09-07 David Faust <david.faust@oracle.com>
4501 * ctfc.c (ctf_lookup_tree_type): New function.
4504 2021-09-07 David Faust <david.faust@oracle.com>
4506 * ctfc.c (ctf_dtd_lookup): Function is no longer static.
4507 * ctfc.h: Analogous change.
4509 2021-09-07 David Faust <david.faust@oracle.com>
4511 * dwarf2out.c (lookup_type_die): Function is no longer static.
4512 * dwarf2out.h: Expose it here.
4514 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
4516 * dwarf2ctf.c (ctf_debug_finalize): Make it static.
4517 (ctf_debug_early_finish): New definition.
4518 (ctf_debug_finish): Likewise.
4519 * dwarf2ctf.h (ctf_debug_finalize): Remove declaration.
4520 (ctf_debug_early_finish): New declaration.
4521 (ctf_debug_finish): Likewise.
4522 * dwarf2out.c (dwarf2out_finish): Invoke ctf_debug_finish.
4523 (dwarf2out_early_finish): Invoke ctf_debug_early_finish.
4525 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
4527 * config/bpf/bpf.c (bpf_option_override): For BPF backend, disable LTO
4528 support when compiling for CO-RE.
4529 * config/bpf/bpf.opt: Add new command line option -mco-re.
4531 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
4533 * flag-types.h (enum debug_info_type): Add new enum
4534 DINFO_TYPE_BTF_WITH_CORE.
4535 (BTF_WITH_CORE_DEBUG): New bitmask.
4536 * flags.h (btf_with_core_debuginfo_p): New declaration.
4537 * opts.c (btf_with_core_debuginfo_p): New definition.
4539 2021-09-07 Jason Merrill <jason@redhat.com>
4541 * tree.h (error_operand_p): Change to inline function.
4543 2021-09-07 Aldy Hernandez <aldyh@redhat.com>
4545 * tree-ssa-threadedge.c (forwarder_block_p): Rename to...
4546 (empty_block_with_phis_p): ...this.
4547 (potentially_threadable_block): Same.
4548 (jump_threader::thread_through_normal_block): Same.
4550 2021-09-07 Eric Botcazou <ebotcazou@adacore.com>
4553 * dwarf2out.c (mark_base_types): New overloaded function.
4554 (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
4555 as the compilation unit, and call move_marked_base_types afterward.
4557 2021-09-07 H.J. Lu <hjl.tools@gmail.com>
4560 * config/i386/i386-expand.c (ix86_expand_convert_uns_sisf_sse):
4562 (ix86_expand_vector_convert_uns_vsivsf): Likewise.
4564 2021-09-07 Richard Biener <rguenther@suse.de>
4566 PR tree-optimization/102226
4567 * tree-vect-loop.c (vect_transform_cycle_phi): Record
4568 the converted value for the epilogue PHI use.
4570 2021-09-07 Martin Liska <mliska@suse.cz>
4572 PR gcov-profile/80223
4573 * ipa-inline.c (can_inline_edge_p): Similarly to sanitizer
4574 options, do not inline when no_profile_instrument_function
4575 attributes are different in early inliner. It's fine to inline
4576 it after PGO instrumentation.
4578 2021-09-07 Richard Biener <rguenther@suse.de>
4580 PR tree-optimization/101555
4581 * tree-ssa-pre.c (translate_vuse_through_block): Do not
4582 perform an alias walk to determine the validity of the
4583 mem at the start of the block which is already guaranteed
4584 by means of prune_clobbered_mems.
4585 (phi_translate_1): Pass edge to translate_vuse_through_block.
4587 2021-09-07 Xionghu Luo <luoxhu@linux.ibm.com>
4590 * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
4591 (remainder<mode>3): Likewise.
4593 2021-09-07 YunQiang Su <yunqiang.su@cipunited.com>
4595 * config/mips/mips.c (mips_file_start): add .module for
4598 2021-09-06 Roger Sayle <roger@nextmovesoftware.com>
4600 * wide-int.cc (wi::clz): Reorder tests to ensure the result
4601 is zero for all negative values.
4603 2021-09-06 Tobias Burnus <tobias@codesourcery.com>
4605 * doc/invoke.texi (-foffload-options): Fix @opindex.
4607 2021-09-06 H.J. Lu <hjl.tools@gmail.com>
4610 * config/i386/i386-expand.c (ix86_split_xorsign): Use operands[2].
4611 * config/i386/i386.md (@xorsign<mode>3_1): Add non-destructive
4612 source alternative for AVX.
4614 2021-09-06 liuhongt <hongtao.liu@intel.com>
4616 PR middle-end/102182
4617 * optabs.c (expand_fix): Add from1 to avoid from being
4620 2021-09-06 Eric Botcazou <ebotcazou@adacore.com>
4622 * dwarf2out.c (modified_type_die): Deal with all array types earlier
4623 and use local variable consistently throughout the function.
4625 2021-09-06 Jakub Jelinek <jakub@redhat.com>
4627 PR tree-optimization/102207
4628 * match.pd: Don't demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
4629 were promoted from signed to wider unsigned type.
4631 2021-09-06 Andrew Pinski <apinski@marvell.com>
4633 PR tree-optimization/63184
4634 * match.pd: Add simplification of pointer_diff of two pointer_plus
4635 with addr_expr in the first operand of each pointer_plus.
4636 Add simplificatoin of ne/eq of two pointer_plus with addr_expr
4637 in the first operand of each pointer_plus.
4639 2021-09-06 Richard Biener <rguenther@suse.de>
4641 PR tree-optimization/102176
4642 * tree-vect-slp.c (vect_slp_gather_vectorized_scalar_stmts):
4644 (vect_bb_slp_scalar_cost): Use the computed set of
4645 vectorized scalar stmts instead of relying on the out-of-date
4646 and not accurate PURE_SLP_STMT.
4647 (vect_bb_vectorization_profitable_p): Compute the set
4648 of vectorized scalar stmts.
4650 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
4652 * gimple-range-path.cc (path_range_query::range_of_stmt): Remove
4653 GIMPLE_COND special casing.
4654 (path_range_query::range_defined_in_block): Use range_of_stmt
4655 instead of calling fold_range directly.
4657 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
4659 * gimple-range-path.cc (path_range_query::range_of_expr): Set
4660 m_undefined_path when appropriate.
4661 (path_range_query::internal_range_of_expr): Copy from range_of_expr.
4662 (path_range_query::unreachable_path_p): New.
4663 (path_range_query::precompute_ranges): Set m_undefined_path.
4664 * gimple-range-path.h (path_range_query::unreachable_path_p): New.
4665 (path_range_query::internal_range_of_expr): New.
4666 * tree-ssa-threadbackward.c (back_threader::find_taken_edge_cond):
4667 Use unreachable_path_p.
4669 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
4671 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
4672 Remove argument and call find_taken_edge.
4673 (back_threader::resolve_phi): Do not calculate taken edge before
4674 calling maybe_register_path.
4675 (back_threader::find_paths_to_names): Same.
4677 2021-09-05 Jeff Law <jlaw@localhost.localdomain>
4679 * config/h8300/h8300.md (QHSI2 mode iterator): New mode iterator.
4680 * config/h8300/testcompare.md (store_c): Update name, use new
4682 (store_neg_c, store_shifted_c): New patterns.
4684 2021-09-03 Segher Boessenkool <segher@kernel.crashing.org>
4687 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): On ELFv2 use r11
4688 instead of r12 for CR save, in all cases.
4690 2021-09-03 Andrew Pinski <apinski@marvell.com>
4692 * config/aarch64/aarch64-sve-builtins.cc (register_vector_type):
4693 Handle error_mark_node as the type of the type_decl.
4695 2021-09-03 Andrew Pinski <apinski@marvell.com>
4697 * config/aarch64/aarch64-builtins.c (struct aarch64_simd_type_info):
4699 (aarch64_simd_types): Likewise.
4700 (aarch64_simd_intOI_type_node): Likewise.
4701 (aarch64_simd_intCI_type_node): Likewise.
4702 (aarch64_simd_intXI_type_node): Likewise.
4703 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Likewise.
4704 (aarch64_fp16_ptr_type_node): Likewise.
4705 (aarch64_bf16_type_node): Likewise.
4706 (aarch64_bf16_ptr_type_node): Likewise.
4708 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4710 * range-op.cc (operator_minus::op1_op2_relation_effect): Abstract
4712 (minus_op1_op2_relation_effect): ...here.
4713 (class operator_pointer_diff): New.
4714 (operator_pointer_diff::op1_op2_relation_effect): Call
4715 minus_op1_op2_relation_effect.
4716 (integral_table::integral_table): Add entry for POINTER_DIFF_EXPR.
4718 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4720 * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
4721 Add may_peel_loop_headers.
4722 (back_threader_registry::thread_through_all_blocks): Same.
4723 (try_thread_blocks): Pass may_peel_loop_headers argument.
4724 (pass_early_thread_jumps::execute): Same.
4726 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4728 * tree-ssa-threadedge.c (has_phis_p): New.
4729 (forwarder_block_p): New.
4730 (potentially_threadable_block): Call forwarder_block_p.
4731 (jump_threader::thread_around_empty_blocks): Call has_phis_p.
4732 (jump_threader::thread_through_normal_block): Call
4735 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4737 * tree-ssa-threadbackward.c (back_threader::dump): New.
4738 (back_threader::debug): New.
4739 (back_threader_profitability::profitable_path_p): Dump blocks
4740 even if we are bailing early.
4742 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4744 * tree-ssa-threadupdate.c (cancel_thread): New.
4745 (jump_thread_path_registry::thread_block_1): Use cancel_thread.
4746 (jump_thread_path_registry::mark_threaded_blocks): Same.
4747 (jump_thread_path_registry::register_jump_thread): Same.
4749 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4751 * tree-ssa-threadedge.c (jt_state::push): Only call methods for
4752 which objects are available.
4753 (jt_state::pop): Same.
4754 (jt_state::register_equiv): Same.
4755 (jt_state::register_equivs_on_edge): Same.
4757 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4759 * tree-ssa-threadedge.c (jump_threader::thread_across_edge):
4760 Move pop until after a thread is registered.
4762 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4764 * tree-ssa-threadupdate.c (debug): New.
4766 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4768 * gimple-range-trace.cc (push_dump_file::push_dump_file): New.
4769 (push_dump_file::~push_dump_file): New.
4770 (dump_ranger): Change dump_file temporarily while dumping
4772 * gimple-range-trace.h (class push_dump_file): New.
4774 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4776 * gimple-range-trace.cc (debug_seed_ranger): Remove static.
4777 (dump_ranger): Dump function name.
4779 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4781 * gimple-range-path.cc (path_range_query::range_defined_in_block):
4782 Adjust for non-null.
4783 (path_range_query::adjust_for_non_null_uses): New.
4784 (path_range_query::precompute_ranges): Call
4785 adjust_for_non_null_uses.
4786 * gimple-range-path.h: Add m_non_null and
4787 adjust_for_non_null_uses.
4789 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4791 * gimple-range-path.cc (path_range_query::dump): Dump path
4793 (path_range_query::precompute_ranges): Dump entire path.
4795 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4797 * value-relation.cc (relation_oracle::debug): New.
4798 * value-relation.h (relation_oracle::debug): New.
4800 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4802 * tree-ssa-loop-ch.c: Remove unnecessary include file.
4804 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4806 * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges):
4807 Skip statements with no defining BB.
4808 * gimple-range-path.cc (path_range_query::range_defined_in_block):
4809 Do not get confused by statements with no defining BB.
4811 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
4813 * gimple-range-fold.cc (adjust_imagpart_expr): Move from
4814 gimple_range_adjustment. Add support for constants.
4815 (adjust_realpart_expr): New.
4816 (gimple_range_adjustment): Move IMAGPART_EXPR code to
4817 adjust_imagpart_expr.
4818 * range-op.cc (integral_table::integral_table): Add entry for
4821 2021-09-03 Jakub Jelinek <jakub@redhat.com>
4823 * omp-expand.c (expand_omp_atomic_pipeline): Use
4824 IFN_ATOMIC_COMPARE_EXCHANGE instead of
4825 BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_? so that memory order
4828 2021-09-03 Jakub Jelinek <jakub@redhat.com>
4831 * tree.h (DECL_FIELD_ABI_IGNORED): Changed into rvalue only macro
4832 that is false if DECL_BIT_FIELD.
4833 (SET_DECL_FIELD_ABI_IGNORED, DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD,
4834 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD): Define.
4835 * tree-streamer-out.c (pack_ts_decl_common_value_fields): For
4836 DECL_BIT_FIELD stream DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead
4837 of DECL_FIELD_ABI_IGNORED.
4838 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
4839 SET_DECL_FIELD_ABI_IGNORED instead of writing to
4840 DECL_FIELD_ABI_IGNORED and for DECL_BIT_FIELD use
4841 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead.
4842 * lto-streamer-out.c (hash_tree): For DECL_BIT_FIELD hash
4843 DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead of DECL_FIELD_ABI_IGNORED.
4845 2021-09-03 liuhongt <hongtao.liu@intel.com>
4848 * config/i386/amxbf16intrin.h : Remove macro check for __AMX_BF16__.
4849 * config/i386/amxint8intrin.h : Remove macro check for __AMX_INT8__.
4850 * config/i386/amxtileintrin.h : Remove macro check for __AMX_TILE__.
4852 2021-09-02 Martin Sebor <msebor@redhat.com>
4854 PR tree-optimization/17506
4856 * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
4858 2021-09-02 Richard Biener <rguenther@suse.de>
4860 * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
4861 fix for PR78185 and continue processing when leaving
4864 2021-09-02 Jakub Jelinek <jakub@redhat.com>
4866 PR tree-optimization/99591
4867 * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
4870 2021-09-02 Richard Biener <rguenther@suse.de>
4873 2021-09-02 Richard Biener <rguenther@suse.de>
4875 PR tree-optimization/102155
4876 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
4877 over a part of the RPO array and do not recurse here.
4878 Dump blocks marked as always executed.
4879 (fill_always_executed_in): Walk over the RPO array and
4880 process loops whose header we run into.
4881 (loop_invariant_motion_in_fun): Compute the first RPO
4882 using rev_post_order_and_mark_dfs_back_seme in iteration
4883 order and pass that to fill_always_executed_in.
4885 2021-09-02 liuhongt <hongtao.liu@intel.com>
4887 * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
4888 * config/i386/i386.c (enum x86_64_reg_class): Add
4890 (merge_classes): Handle X86_64_SSEHF_CLASS.
4891 (examine_argument): Ditto.
4892 (construct_container): Ditto.
4893 (classify_argument): Ditto, and set HFmode/HCmode to
4895 (function_value_32): Return _FLoat16/Complex Float16 by
4897 (function_value_64): Return _Float16/Complex Float16 by SSE
4899 (ix86_print_operand): Handle CONST_DOUBLE HFmode.
4900 (ix86_secondary_reload): Require gpr as intermediate register
4901 to store _Float16 from sse register when sse4 is not
4903 (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
4905 (ix86_scalar_mode_supported_p): Ditto.
4906 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
4907 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
4908 (VALID_INT_MODE_P): Add HFmode and HCmode.
4909 * config/i386/i386.md (*pushhf_rex64): New define_insn.
4911 (*movhf_internal): Ditto.
4912 * doc/extend.texi (Half-Precision Floating Point): Documemt
4915 2021-09-02 Richard Biener <rguenther@suse.de>
4917 PR tree-optimization/102155
4918 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
4919 over a part of the RPO array and do not recurse here.
4920 Dump blocks marked as always executed.
4921 (fill_always_executed_in): Walk over the RPO array and
4922 process loops whose header we run into.
4923 (loop_invariant_motion_in_fun): Compute the first RPO
4924 using rev_post_order_and_mark_dfs_back_seme in iteration
4925 order and pass that to fill_always_executed_in.
4927 2021-09-02 YunQiang Su <syq@debian.org>
4930 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
4932 * config/mips/mips.c (mips_module_isa_name): New.
4933 mips_file_start: add .module mipsREV to all asm output
4935 2021-09-01 Jeff Law <jlaw@localhost.localdomain>
4937 PR tree-optimization/102152
4938 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
4939 comparison to a scalar comparison before calling
4940 update_stmt_if_modified.
4942 2021-09-01 Andrew Pinski <apinski@marvell.com>
4945 * config/aarch64/aarch64.c (aarch64_expand_setmem):
4946 Check STRICT_ALIGNMENT before creating an overlapping
4949 2021-09-01 Martin Sebor <msebor@redhat.com>
4951 * gimple-ssa-warn-access.cc (get_size_range): Add argument.
4952 (check_access): Pass additional argument.
4953 (check_memop_access): Remove template and make a member function.
4954 (maybe_check_dealloc_call): Make a pass_waccess member function.
4955 (class pass_waccess): Add, rename, and remove members.
4956 (pass_waccess::pass_waccess): Adjust to name change.
4957 (pass_waccess::~pass_waccess): Same.
4958 (check_alloca): Make a member function.
4959 (check_alloc_size_call): Same.
4960 (check_strcat): Same.
4961 (check_strncat): Same.
4962 (check_stxcpy): Same.
4963 (check_stxncpy): Same.
4964 (check_strncmp): Same.
4965 (maybe_warn_rdwr_sizes): Rename...
4966 (pass_waccess::maybe_check_access_sizes): ...to this.
4967 (pass_waccess::check_call): Adjust to name changes.
4968 (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
4970 (pass_waccess::execute): Adjust to name changes.
4971 * gimple-ssa-warn-access.h (check_memop_access): Remove.
4972 * pointer-query.cc (access_ref::phi): Handle null pointer.
4973 (access_ref::inform_access): Same.
4974 (pointer_query::put_ref): Modify a cached value, not a copy of it.
4975 (pointer_query::dump): New function.
4976 (compute_objsize_r): Avoid overwriting access_ref::bndrng. Cache
4978 * pointer-query.h (pointer_query::dump): Declare.
4979 * tree-ssa-strlen.c (get_range): Simplify. Use function query.
4980 (dump_strlen_info): Use function query.
4981 (printf_strlen_execute): Factor code out into pointer_query::put_ref.
4983 2021-09-01 Thomas Schwinge <thomas@codesourcery.com>
4985 * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
4987 2021-09-01 Iain Sandoe <iain@sandoe.co.uk>
4989 * doc/extend.texi: Document unavailable attribute.
4990 * print-tree.c (print_node): Handle unavailable attribute.
4991 * tree-core.h (struct tree_base): Add a bit to carry unavailability.
4992 * tree.c (error_unavailable_use): New.
4993 * tree.h (TREE_UNAVAILABLE): New.
4994 (error_unavailable_use): New.
4996 2021-09-01 Jakub Jelinek <jakub@redhat.com>
4998 PR tree-optimization/102124
4999 * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
5000 MINUS_EXPR, if itype is unsigned with smaller precision than type,
5001 add an extra cast to signed variant of itype to ensure sign-extension.
5003 2021-09-01 Martin Liska <mliska@suse.cz>
5005 * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
5006 edges and rather use colors for TRUE and FALSE edges.
5008 2021-09-01 Richard Biener <rguenther@suse.de>
5010 PR tree-optimization/93491
5011 * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
5012 after processing the stmt itself. Do not consider
5013 pure functions possibly not returning. Properly avoid
5014 adding possibly trapping calls to EXP_GEN when there's
5015 a preceeding possibly not returning call.
5016 * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
5019 2021-09-01 Richard Biener <rguenther@suse.de>
5021 PR tree-optimization/102139
5022 * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
5023 type to record a std::pair of the stmt-info and the innermost
5025 (dr_vec_info::group): New member.
5026 * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
5027 (vect_compute_data_ref_alignment): Verify the recorded
5028 base alignment can be used.
5029 (data_ref_pair): Remove.
5030 (dr_group_sort_cmp): Adjust.
5031 (vect_analyze_data_ref_accesses): Store the group-ID in the
5032 dr_vec_info and operate on a vector of dr_vec_infos.
5034 2021-09-01 YunQiang Su <yunqiang.su@cipunited.com>
5036 * read-md.c (md_reader::handle_enum): support value assignation.
5037 * doc/md.texi: record define_c_enum value assignation support.
5039 2021-09-01 Jakub Jelinek <jakub@redhat.com>
5041 PR tree-optimization/102141
5042 * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
5043 argument. If false, emit stmts after gsi instead of before, and
5045 (bswap_replace): Adjust callers. When converting output of bswap,
5046 emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
5049 2021-09-01 liuhongt <hongtao.liu@intel.com>
5051 * emit-rtl.c (validate_subreg): Get rid of all float-int
5054 2021-09-01 liuhongt <hongtao.liu@intel.com>
5057 2021-08-30 liuhongt <hongtao.liu@intel.com>
5059 * expmed.c (extract_bit_field_1): Make sure we're playing with
5060 integral modes before call extract_integral_bit_field.
5061 (extract_integral_bit_field): Add a parameter of type
5062 scalar_int_mode which corresponds to of tmode.
5063 And call extract_and_convert_fixed_bit_field instead of
5064 extract_fixed_bit_field and convert_extracted_bit_field.
5065 (extract_and_convert_fixed_bit_field): New function, it's a
5066 combination of extract_fixed_bit_field and
5067 convert_extracted_bit_field.
5069 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
5071 * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
5073 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
5075 * omp-general.h (omp_is_reference): Rename to...
5076 (omp_privatize_by_reference): ... this. Adjust all users...
5077 * omp-general.c: ... here, ...
5078 * gimplify.c: ... here, ...
5079 * omp-expand.c: ... here, ...
5080 * omp-low.c: ... here.
5082 2021-08-31 Martin Sebor <msebor@redhat.com>
5084 * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
5085 pointer element for equality to zero, not that of the cotaining
5088 2021-08-31 Martin Sebor <msebor@redhat.com>
5090 * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
5092 2021-08-31 Martin Sebor <msebor@redhat.com>
5094 * function.h (function): Add comments.
5095 (get_range_query): Same. Add attribute returns nonnull.
5097 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
5099 * expr.c (convert_modes): Don't use subreg_promoted_mode on a
5100 SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
5101 Instead use the standard (safer) is_a <scalar_int_mode> idiom.
5103 2021-08-31 Jeff Law <jlaw@localhost.localdomain>
5105 * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
5107 (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
5108 (mn10300-*-*, am33_2.0-*-linux*): Likewise.
5109 (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
5110 (m32c-*-elf*, m32c-*-rtems*): Likewise.
5111 * config/cris/cris.h (DBX_NO_XREFS): Remove.
5112 (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
5113 * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
5114 (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
5115 * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
5116 * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
5118 2021-08-31 Marcel Vollweiler <marcel@codesourcery.com>
5120 * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
5121 allowed on target constructs and only with particular other clauses.
5122 * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
5124 * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
5125 structs when 'ancestor' is used.
5126 (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
5128 * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
5129 * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
5131 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
5133 * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
5134 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
5136 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
5137 Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
5138 partial subreg from a SUBREG_PROMOTED_VAR_P subreg. Generate
5139 SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
5140 [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
5141 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
5142 subreg. Generate ZERO_EXTEND of the SUBREG_REG when a subreg
5143 would be paradoxical.
5145 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
5147 * combine.c (combine_simplify_rtx): Avoid converting an explicit
5148 TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
5149 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5151 2021-08-31 Richard Biener <rguenther@suse.de>
5153 PR tree-optimization/102142
5154 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
5155 condition under which to unset the visited flag.
5157 2021-08-31 Richard Biener <rguenther@suse.de>
5159 PR middle-end/102129
5160 * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
5161 possibly trapping expressions across calls.
5163 2021-08-31 Jakub Jelinek <jakub@redhat.com>
5165 PR tree-optimization/102134
5166 * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
5167 UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
5170 2021-08-31 Andrew Pinski <apinski@marvell.com>
5173 * collect-utils.c (setup_signals): New declaration.
5174 * collect-utils.h (setup_signals): New function.
5175 * collect2.c (handler): Delete.
5176 (main): Instead of manually setting up the signals,
5177 just call setup_signals.
5178 * lto-wrapper.c (main): Likewise.
5180 2021-08-31 Andrew Pinski <apinski@marvell.com>
5183 * config/i386/i386-protos.h (x86_output_aligned_bss):
5184 Change align argument to unsigned type.
5185 (x86_elf_aligned_decl_common): Likewise.
5186 * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
5187 (x86_output_aligned_bss): Likewise.
5189 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
5191 * config/mips/mips.c (mips_module_isa_name): New.
5192 mips_file_start: add .module mipsREV to all asm output
5194 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
5196 * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
5197 use enum instead of int for 'isa' member.
5198 * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
5199 config/mips/netbsd.h: replace hardcoded numbers with enum.
5201 2021-08-31 liuhongt <hongtao.liu@intel.com>
5203 * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
5204 define_split to define_insn_and_split.
5205 (*avx2_eq<mode>3): Removed.
5206 (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
5207 (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
5208 (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
5210 (*avx2_gt<mode>3): Removed.
5211 (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
5212 define_insn to define_expand, and adjust pattern.
5213 (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
5215 2021-08-30 David Malcolm <dmalcolm@redhat.com>
5218 * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
5220 2021-08-30 Jason Merrill <jason@redhat.com>
5222 * doc/invoke.texi: Document -Wmissing-requires.
5224 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
5226 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
5227 TARGET_EXTRA_BUILTINS guard.
5229 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
5231 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
5232 initialization of V2DI_type_node and unsigned_V2DI_type_node.
5234 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
5236 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
5237 decl when new_builtins_are_live.
5238 * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
5241 2021-08-30 Pat Haugen <pthaugen@linux.ibm.com>
5243 * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
5244 OPTION_MASK_P10_FUSION_2STORE.
5245 (POWERPC_MASKS): Likewise.
5246 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
5247 store fusion for Power10.
5248 (is_fusable_store): New.
5249 (power10_sched_reorder): Likewise.
5250 (rs6000_sched_reorder): Do Power10 specific reordering.
5251 (rs6000_sched_reorder2): Likewise.
5252 * config/rs6000/rs6000.opt: Add new option.
5254 2021-08-30 Richard Biener <rguenther@suse.de>
5256 PR tree-optimization/102128
5257 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
5258 Move scanning for if-converted scalar code to the caller
5259 and instead delay clearing the visited flag for profitable
5261 (vect_slp_region): Cost all subgraphs before scheduling.
5262 For if-converted BB vectorization scan for scalar COND_EXPRs
5263 and do not vectorize if any found and the cost model is
5266 2021-08-30 Richard Biener <rguenther@suse.de>
5268 * common.opt (fexceptions): Mark
5269 EnabledBy(fnon-call-exceptions).
5270 * doc/invoke.texi (fnon-call-exceptions): Document this
5271 enables -fexceptions.
5273 2021-08-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
5275 * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
5276 is not already defined.
5278 2021-08-30 liuhongt <hongtao.liu@intel.com>
5280 * expmed.c (extract_bit_field_1): Make sure we're playing with
5281 integral modes before call extract_integral_bit_field.
5282 (extract_integral_bit_field): Add a parameter of type
5283 scalar_int_mode which corresponds to of tmode.
5284 And call extract_and_convert_fixed_bit_field instead of
5285 extract_fixed_bit_field and convert_extracted_bit_field.
5286 (extract_and_convert_fixed_bit_field): New function, it's a
5287 combination of extract_fixed_bit_field and
5288 convert_extracted_bit_field.
5290 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
5292 * config/darwin.c (darwin_libc_has_function): Do not run
5293 the checks for x86 or modern Darwin. Make sure that there
5294 is a value set for darwin_macosx_version_min before testing.
5296 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
5298 * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
5300 2021-08-28 Jan Hubicka <hubicka@ucw.cz>
5302 * ipa-modref-tree.h (modref_access_node::merge): Break out
5303 logic combining offsets and logic merging ranges to ...
5304 (modref_access_node::combined_offsets): ... here
5305 (modref_access_node::update2): ... here
5306 (modref_access_node::closer_pair_p): New member function.
5307 (modref_access_node::forced_merge): New member function.
5308 (modre_ref_node::insert): Do merging when table is full.
5310 2021-08-28 YunQiang Su <yunqiang.su@cipunited.com>
5313 * config.gcc: MIPS: use N64 ABI by default if the triple end
5314 with -gnuabi64, which is used by Debian since 2013.
5316 2021-08-28 Alexandre Oliva <oliva@adacore.com>
5318 * ipa-modref.c (analyze_function): Skip debug stmts.
5319 * tree-inline.c (estimate_num_insn): Consider builtins even
5320 without a cgraph_node.
5322 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
5324 * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
5325 * config/h8300/h8300.c (h8300_expand_branch): Remove function.
5326 * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
5327 * config/h8300/h8300.md (eqne): New code iterator.
5328 (geultu, geultu_to_c): Similarly.
5329 * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
5330 (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
5331 (cmp<mode>_c): New pattern
5333 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
5335 * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
5337 (dom_opt_dom_walker::optimize_stmt): Use it.
5339 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
5341 * config/darwin.c (finalize_ctors): Add a section-start linker-
5343 (finalize_dtors): Likewise.
5344 * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
5346 2021-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
5348 * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
5349 (rs6000_init_builtins): Call rs6000_init_generated_builtins. Skip the
5350 old initialization logic when new builtins are enabled.
5351 * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
5352 rs6000_autoinit_builtins to rs6000_init_generated_builtins.
5353 (write_init_file): Likewise.
5355 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
5357 * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
5358 gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
5359 (amdgcn-* | gcn-*) Likewise.
5361 2021-08-27 Anthony Sharp <anthonysharp15@gmail.com>
5363 * symbol-summary.h: Added missing template keyword.
5365 2021-08-27 Richard Biener <rguenther@suse.de>
5367 PR tree-optimization/45178
5368 * tree-ssa-dce.c (find_obviously_necessary_stmts): For
5369 infinite loops without exit do not mark control dependent
5370 edges of the latch necessary.
5372 2021-08-27 konglin1 <lingling.kong@intel.com>
5375 * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
5377 (<avx512>scattersi<mode>): Likewise.
5378 (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
5379 (*avx512f_scatterdi<VI48F:mode>): Likewise
5381 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
5383 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
5384 support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
5385 MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
5386 P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
5387 P10_BUILTIN_PEXTD on Power10.
5389 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
5391 * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
5392 signedness for some Power10 bifs.
5394 2021-08-27 David Edelsohn <dje.gcc@gmail.com>
5397 * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
5398 computed alignment if the entire struct has attribute packed.
5400 2021-08-27 liuhongt <hongtao.liu@intel.com>
5404 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
5405 IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
5406 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
5407 IX86_BUILTIN_SHUFPS256.
5408 (ix86_masked_all_ones): New function.
5410 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
5412 * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
5413 (conditional moves with memory inputs splitters): Ditto.
5414 * config/i386/sse.md (one_cmpl<mode>2): Simplify.
5416 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
5418 * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
5419 search after merging.
5421 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
5423 * config/rs6000/rs6000-overload.def: Add remaining overloads.
5425 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
5427 * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
5429 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
5431 * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
5432 crypto, and htm stanzas.
5434 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
5436 * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
5438 2021-08-26 Martin Sebor <msebor@redhat.com>
5440 * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
5441 (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
5442 (warn_uninitialized_vars): Same. Reduce visibility of locals.
5443 (warn_uninitialized_phi): Same.
5445 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
5447 * tree-ssa-ccp.c (get_individual_bits): Helper function to
5448 extract the individual bits from a widest_int constant (mask).
5449 (gray_code_bit_flips): New read-only table for effiently
5450 enumerating permutations/combinations of bits.
5451 (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
5452 by unknown counts that are guaranteed less than the target
5453 precision and four or fewer unknown bits by enumeration.
5454 [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
5455 enumeration under the same conditions. Handle remaining
5456 shifts as a mask based upon the minimum possible shift value.
5458 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
5459 Richard Biener <rguenther@suse.de>
5461 * match.pd (shift transformations): Remove a redundant
5462 !POINTER_TYPE_P check.
5464 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
5467 * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
5468 Set all_regs to true in the call to replace_rtx.
5470 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
5472 * ipa-modref-tree.c (test_insert_search_collapse): Update test.
5473 * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
5474 hiting --param modref-max-refs limit.
5475 (modref_tree:insert_base): Be smarter when hitting
5476 --param modref-max-bases limit. Add new parameter REF.
5477 (modref_tree:insert): Update.
5478 (modref_tree:merge): Update.
5479 * ipa-modref.c (read_modref_records): Update.
5481 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
5483 * params.opt: (modref-max-adjustments): Add full stop.
5485 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
5487 * ipa-modref-tree.h (modref_ref_node::verify): New member
5489 (modref_ref_node::insert): Use it.
5490 (modref_ref_node::try_mere_with): Fix off by one error.
5492 2021-08-26 Martin Liska <mliska@suse.cz>
5493 Stefan Kneifel <stefan.kneifel@bluewin.ch>
5495 * cgraph.h (create_version_clone_with_body): Add new parameter.
5496 * cgraphclones.c: Likewise.
5497 * multiple_target.c (create_dispatcher_calls): Do not use
5499 (create_target_clone): Likewise here.
5501 2021-08-26 Jonathan Yong <10walls@gmail.com>
5503 * doc/extend.texi: Add note about reserved priorities
5504 to the constructor attribute.
5506 2021-08-25 Martin Sebor <msebor@redhat.com>
5508 * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
5509 range table header alone.
5510 * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
5512 2021-08-25 Jan Hubicka <hubicka@ucw.cz>
5514 * doc/invoke.texi: Document --param modref-max-adjustments.
5515 * ipa-modref-tree.c (test_insert_search_collapse): Update.
5516 (test_merge): Update.
5517 * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
5518 (modref_access_node::operator==): Fix handling of access ranges.
5519 (modref_access_node::contains): Constify parameter; handle also
5520 mismatched parm offsets.
5521 (modref_access_node::update): New function.
5522 (modref_access_node::merge): New function.
5523 (unspecified_modref_access_node): Update constructor.
5524 (modref_ref_node::insert_access): Add record_adjustments parameter;
5526 (modref_ref_node::try_merge_with): New private function.
5527 (modref_tree::insert): New record_adjustments parameter.
5528 (modref_tree::merge): New record_adjustments parameter.
5529 (modref_tree::copy_from): Update.
5530 * ipa-modref.c (dump_access): Dump adjustments field.
5531 (get_access): Update constructor.
5532 (record_access): Update call of insert.
5533 (record_access_lto): Update call of insert.
5534 (merge_call_side_effects): Add record_adjustments parameter.
5535 (get_access_for_fnspec): Update.
5536 (process_fnspec): Update.
5537 (analyze_call): Update.
5538 (analyze_function): Update.
5539 (read_modref_records): Update.
5540 (ipa_merge_modref_summary_after_inlining): Update.
5541 (propagate_unknown_call): Update.
5542 (modref_propagate_in_scc): Update.
5543 * params.opt (param-max-modref-adjustments=): New.
5545 2021-08-25 Michael Meissner <meissner@linux.ibm.com>
5547 * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
5549 (xxspltiw_v4si): Use vecperm type attribute.
5550 (xxspltiw_v4si_inst): Use vecperm type attribute.
5551 (xxspltiw_v4sf_inst): Likewise.
5552 (xxspltidp_v2df): Use vecperm type attribute. Use
5553 UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
5554 (xxspltidp_v2df_inst): Likewise.
5555 (xxsplti32dx_v4si): Use vecperm type attribute.
5556 (xxsplti32dx_v4si_inst): Likewise.
5557 (xxsplti32dx_v4sf_inst): Likewise.
5558 (xxblend_<mode>): Likewise.
5559 (xxpermx): Likewise.
5560 (xxpermx_inst): Likewise.
5563 2021-08-25 Lewis Hyatt <lhyatt@gmail.com>
5566 * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
5567 * diagnostic.c (diagnostic_initialize_input_context): New function.
5568 * diagnostic.h (diagnostic_initialize_input_context): Declare.
5569 * input.c (default_charset_callback): New function.
5570 (file_cache::initialize_input_context): New function.
5571 (file_cache_slot::create): Added ability to convert the input
5572 according to the input context.
5573 (file_cache::file_cache): Initialize the new input context.
5574 (class file_cache_slot): Added new m_alloc_offset member.
5575 (file_cache_slot::file_cache_slot): Initialize the new member.
5576 (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
5577 (file_cache_slot::maybe_grow): Likewise.
5578 (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
5579 (file_cache_slot::get_next_line): Likewise.
5580 * input.h (class file_cache): Added input context member.
5582 2021-08-25 Richard Biener <rguenther@suse.de>
5584 PR tree-optimization/102046
5585 * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
5586 update ->any_pattern when swapping operands.
5588 2021-08-25 Hongyu Wang <hongyu.wang@intel.com>
5591 * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
5592 (ix86_decompose_address): Remove retval check for ASHIFT,
5593 allow non-canonical zero extend if AND mask covers ASHIFT
5595 (ix86_legitimate_address_p): Adjust condition for decompose.
5596 (ix86_rtx_costs): Adjust cost for lea with non-canonical
5598 Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
5600 2021-08-25 Jiufu Guo <guojiufu@linux.ibm.com>
5602 PR tree-optimization/101145
5603 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
5605 (number_of_iterations_lt): Invoke above function.
5606 (adjust_cond_for_loop_until_wrap):
5607 Merge to number_of_iterations_until_wrap.
5608 (number_of_iterations_cond): Update invokes for
5609 adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
5611 2021-08-25 konglin1 <lingling.kong@intel.com>
5614 * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
5616 (_mm512_mask_fpclass_ps_mask): Ditto.
5618 2021-08-25 Kewen Lin <linkw@linux.ibm.com>
5620 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
5621 (vec_unpacku_hi_v8hi): Likewise.
5622 (vec_unpacku_lo_v16qi): Likewise.
5623 (vec_unpacku_lo_v8hi): Likewise.
5624 (vec_unpacku_hi_<VP_small_lc>): New define_expand.
5625 (vec_unpacku_lo_<VP_small_lc>): Likewise.
5627 2021-08-24 David Edelsohn <dje.gcc@gmail.com>
5629 * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
5630 * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
5631 * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
5632 * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
5634 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
5636 PR middle-end/102031
5637 * simplify-rtx.c (simplify_truncation): When comparing precisions
5638 use "subreg_prec" variable, not "subreg_mode".
5640 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
5642 * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
5645 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
5647 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
5648 various pointer type nodes.
5649 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
5650 values for various pointer types.
5651 (ptr_V16QI_type_node): New macro.
5652 (ptr_V1TI_type_node): New macro.
5653 (ptr_V2DI_type_node): New macro.
5654 (ptr_V2DF_type_node): New macro.
5655 (ptr_V4SI_type_node): New macro.
5656 (ptr_V4SF_type_node): New macro.
5657 (ptr_V8HI_type_node): New macro.
5658 (ptr_unsigned_V16QI_type_node): New macro.
5659 (ptr_unsigned_V1TI_type_node): New macro.
5660 (ptr_unsigned_V8HI_type_node): New macro.
5661 (ptr_unsigned_V4SI_type_node): New macro.
5662 (ptr_unsigned_V2DI_type_node): New macro.
5663 (ptr_bool_V16QI_type_node): New macro.
5664 (ptr_bool_V8HI_type_node): New macro.
5665 (ptr_bool_V4SI_type_node): New macro.
5666 (ptr_bool_V2DI_type_node): New macro.
5667 (ptr_bool_V1TI_type_node): New macro.
5668 (ptr_pixel_type_node): New macro.
5669 (ptr_intQI_type_node): New macro.
5670 (ptr_uintQI_type_node): New macro.
5671 (ptr_intHI_type_node): New macro.
5672 (ptr_uintHI_type_node): New macro.
5673 (ptr_intSI_type_node): New macro.
5674 (ptr_uintSI_type_node): New macro.
5675 (ptr_intDI_type_node): New macro.
5676 (ptr_uintDI_type_node): New macro.
5677 (ptr_intTI_type_node): New macro.
5678 (ptr_uintTI_type_node): New macro.
5679 (ptr_long_integer_type_node): New macro.
5680 (ptr_long_unsigned_type_node): New macro.
5681 (ptr_float_type_node): New macro.
5682 (ptr_double_type_node): New macro.
5683 (ptr_long_double_type_node): New macro.
5684 (ptr_dfloat64_type_node): New macro.
5685 (ptr_dfloat128_type_node): New macro.
5686 (ptr_ieee128_type_node): New macro.
5687 (ptr_ibm128_type_node): New macro.
5688 (ptr_vector_pair_type_node): New macro.
5689 (ptr_vector_quad_type_node): New macro.
5690 (ptr_long_long_integer_type_node): New macro.
5691 (ptr_long_long_unsigned_type_node): New macro.
5693 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
5695 * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
5696 and power9-64 stanzas.
5698 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
5699 Tom de Vries <tdevries@suse.de>
5701 * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
5702 * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
5703 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
5704 a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
5705 * config/nvptx/t-nvptx (nvptx-c.o): New rule.
5706 * config/nvptx/nvptx-c.c: New source file.
5707 (nvptx_cpu_cpp_builtins): Move implementation here.
5709 2021-08-24 Martin Sebor <msebor@redhat.com>
5711 PR middle-end/101600
5712 PR middle-end/101977
5713 * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
5714 the phrasing of a warning.
5715 (check_access): Use the remaining size after subtracting any offset
5716 rather than the whole object size.
5717 * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
5718 clear for any nonnull PHI argument.
5719 (compute_objsize): Clear argument.
5721 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
5723 * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
5725 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
5727 * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
5730 2021-08-24 Andrew MacLeod <amacleod@redhat.com>
5732 * value-relation.cc (rr_transitive_table): New.
5733 (relation_transitive): New.
5734 (value_relation::swap): Remove.
5735 (value_relation::apply_transitive): New.
5736 (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
5737 (relation_oracle::register_relation): Call register_transitives.
5738 (relation_oracle::register_transitives): New.
5739 * value-relation.h (relation_oracle): Add new temporary bitmap and
5742 2021-08-24 H.J. Lu <hjl.tools@gmail.com>
5745 * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
5746 from integer to a pseudo vector register.
5748 2021-08-24 Richard Biener <rguenther@suse.de>
5750 PR tree-optimization/100089
5751 * tree-vectorizer.h (vect_slp_bb): Rename to ...
5752 (vect_slp_if_converted_bb): ... this and get the original
5753 loop as new argument.
5754 * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
5755 pass original loop to vect_slp_if_converted_bb.
5756 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
5757 If orig_loop was passed scan the not vectorized stmts
5758 for COND_EXPRs and force not profitable if found.
5759 (vect_slp_region): Pass down all SLP instances to costing
5760 if orig_loop was specified.
5761 (vect_slp_bbs): Pass through orig_loop.
5762 (vect_slp_bb): Rename to ...
5763 (vect_slp_if_converted_bb): ... this and get the original
5764 loop as new argument.
5765 (vect_slp_function): Adjust.
5767 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
5770 * config/arm/arm.md (attribute arch): Add fix_vlldm.
5771 (arch_enabled): Use it.
5772 * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
5773 use when erratum mitigation is needed.
5775 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
5778 * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
5779 * doc/invoke.texi (Arm Options): Document it.
5780 * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
5781 (ALL_QUIRKS): Add quirk_vlldm.
5782 (cortex-m33): Add quirk_vlldm.
5783 (cortex-m35p, cortex-m55): Likewise.
5784 * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
5785 targetting an affected CPU and not explicitly controlled on
5788 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
5790 * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
5791 (lazy_load_multiple_insn): Likewise.
5793 2021-08-24 liuhongt <hongtao.liu@intel.com>
5796 * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
5797 Enable avx512 embedded broadcast.
5798 (*<avx512>_vternlog<mode>_all): Ditto.
5799 (<avx512>_vternlog<mode>_mask): Ditto.
5801 2021-08-24 liuhongt <hongtao.liu@intel.com>
5804 * config/i386/i386.c (ix86_rtx_costs): Define cost for
5806 * config/i386/i386.h (STRIP_UNARY): New macro.
5807 * config/i386/predicates.md (reg_or_notreg_operand): New
5809 * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
5810 (*<avx512>_vternlog<mode>_1): New pre_reload
5811 define_insn_and_split.
5812 (*<avx512>_vternlog<mode>_2): Ditto.
5813 (*<avx512>_vternlog<mode>_3): Ditto.
5814 (any_logic1,any_logic2): New code iterator.
5815 (logic_op): New code attribute.
5816 (ternlogsuffix): Extend to VNxDF and VNxSF.
5818 2021-08-24 Richard Biener <rguenther@suse.de>
5820 * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
5821 * params.opt (--param vect-inner-loop-cost-factor): Adjust
5823 * tree-vect-loop.c (vect_analyze_loop_form): Initialize
5824 inner_loop_cost_factor to the minimum of the estimated number
5825 of iterations of the inner loop and vect-inner-loop-cost-factor.
5827 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
5828 Richard Biener <rguenther@suse.de>
5830 * config/i386/i386-features.c (compute_convert_gain): Provide
5831 more accurate values for CONST_INT, when optimizing for size.
5832 * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
5833 * config/i386/i386.h (COSTS_N_BYTES): to here.
5835 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
5836 Jakub Jelinek <jakub@redhat.com>
5838 PR middle-end/102029
5839 * match.pd (shift transformations): Add an additional check for
5840 !POINTER_TYPE_P in the recently added left shift transformation.
5842 2021-08-24 liuhongt <hongtao.liu@intel.com>
5844 PR tree-optimization/100089
5845 * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
5846 loop vectorizer when cost model is very-cheap.
5848 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
5850 * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
5851 asprintf, which is not available on AIX.
5853 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
5855 * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
5856 * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
5858 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
5860 * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
5861 * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
5863 * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
5864 (rbtree.o): Likewise.
5865 (rs6000-gen-builtins): Likewise.
5866 (rs6000-builtins.c): Likewise.
5867 (rs6000-builtins.h): Likewise.
5868 (rs6000.o): Add dependency.
5869 (EXTRA_HEADERS): Add rs6000-vecdefines.h.
5870 (rs6000-vecdefines.h): New target.
5871 (rs6000-builtins.o): Likewise.
5872 (rs6000-call.o): Add rs6000-builtins.h as a dependency.
5873 (rs6000-c.o): Likewise.
5875 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
5878 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
5879 Diagnose buffer overrun.
5880 (safe_inc_pos): Fix overrun detection.
5881 (match_identifier): Diagnose buffer overrun.
5882 (match_integer): Likewise.
5883 (match_to_right_bracket): Likewise.
5885 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
5887 * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
5888 Improve range compare.
5889 (modref_access_node::contains): New member function.
5890 (modref_access_node::search): Remove.
5891 (modref_access_node::insert): Be smarter about subaccesses.
5893 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5895 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
5896 <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
5897 * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
5900 2021-08-23 Jeff Law <jlaw@localhost.localdomain>
5902 * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
5904 * config/h8300/jumpcall.md (call, call_value): Restrict to
5905 !SIBLING_CALL_P cases.
5906 (subcall, sibcall_value): New patterns & expanders.
5907 * config/h8300/proepi.md (epilogue): Pass new argument to
5908 h8300_expand_epilogue.
5909 (sibcall_epilogue): New expander.
5910 * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
5912 (h8300_ok_for_sibcall_p): New function.
5913 (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
5915 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
5917 * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
5918 Handle case where the operand is already the desired mode.
5920 2021-08-23 Richard Biener <rguenther@suse.de>
5923 * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
5924 in addition to has_gimple_body.
5926 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
5928 PR middle-end/101949
5929 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
5932 2021-08-23 Martin Liska <mliska@suse.cz>
5934 * doc/invoke.texi: Put the option out of -mxl-mode-app-model
5937 2021-08-23 Richard Biener <rguenther@suse.de>
5939 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
5940 Properly scale the inner loop cost only once.
5942 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
5944 * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
5945 Provide bounds for unsigned (and signed with non-negative operands)
5946 division and modulus.
5948 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
5950 * simplify-rtx.c (simplify_truncation): Generalize simplification
5951 of (truncate:A (subreg:B X)).
5952 (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
5953 SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
5954 already has the desired machine mode.
5955 (test_scalar_int_ops): Add tests that useless extensions and
5956 truncations are optimized away.
5957 (test_scalar_int_ext_ops): New self-test function to confirm
5958 that truncations of extensions are correctly simplified.
5959 (test_scalar_int_ext_ops2): New self-test function to check
5960 truncations of truncations, extensions of extensions, and
5961 truncations of extensions.
5962 (test_scalar_ops): Call the above two functions with a
5963 representative sampling of integer machine modes.
5965 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
5967 * match.pd (shift transformations): Change the sign of an
5968 LSHIFT_EXPR if it reduces the number of explicit conversions.
5970 2021-08-23 Jakub Jelinek <jakub@redhat.com>
5972 PR tree-optimization/86723
5973 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
5974 cast64_to_32 argument, set *cast64_to_32 to false, unless n is
5975 non-memory permutation of 64-bit src which only has bytes of
5976 0 or [5..8] and n->range is 4.
5977 (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
5978 find_bswap_or_nop_finalize caller, support bswap with some bytes
5979 zeroed, as long as at least two bytes are not zeroed.
5980 (bswap_replace): Add mask argument and handle masking of bswap
5982 (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
5983 caller, punt if cast64_to_32 or mask is not all ones.
5984 (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
5985 caller, for now punt if cast64_to_32.
5987 2021-08-23 Richard Biener <rguenther@suse.de>
5989 PR tree-optimization/79334
5990 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
5991 a type also for COMPONENT_REFs.
5992 (vn_reference_may_trap): Check ARRAY_REF with constant index
5993 against the array domain.
5995 2021-08-23 liuhongt <hongtao.liu@intel.com>
5998 * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
5999 TARGET_AVX512BW to condition.
6001 2021-08-23 Jakub Jelinek <jakub@redhat.com>
6004 * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
6005 register variables already during early_dwarf if possible.
6007 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
6009 * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
6011 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
6014 * config/arm/arm.opt: Fix typo.
6015 * config/arm/t-rmprofile: Fix typo.
6017 2021-08-23 Jakub Jelinek <jakub@redhat.com>
6019 * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
6020 (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
6021 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
6022 case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
6023 * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
6024 if either grainsize or num_tasks clause has the strict modifier.
6026 2021-08-23 Martin Liska <mliska@suse.cz>
6028 * dbgcnt.def (DEBUG_COUNTER): New counter.
6029 * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
6031 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
6033 * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
6035 2021-08-23 Xi Ruoyao <xry111@mengyan1223.wang>
6038 * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
6040 * config/mips/mips.c (mips_msa_output_shift_immediate): New
6042 * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
6043 vlshr<mode>3): Call it.
6045 2021-08-22 Jan Hubicka <hubicka@ucw.cz>
6046 Martin Liska <mliska@suse.cz>
6048 PR middle-end/101949
6049 * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
6052 2021-08-21 Dragan Mladjenovic <OT_Dragan.Mladjenovic@mediatek.com>
6054 * config/mips/mips.c (mips_function_rodata_section,
6055 TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
6057 2021-08-21 John David Anglin <danglin@gcc.gnu.org>
6059 * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
6061 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
6063 * configure.ac (thread-local storage support): Remove tls_first_major
6064 and tls_first_minor. Use "$conftest_s" to check support.
6065 * configure: Regenerate.
6067 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
6069 * configure.ac: Fixup formatting.
6071 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
6073 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
6074 * configure.ac: ... update all callers.
6076 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
6079 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
6080 (gcc_GAS_VERSION_GTE_IFELSE): Remove.
6081 (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
6082 * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
6083 Remove remaining checks for in-tree assembler.
6084 * configure: Regenerate.
6086 2021-08-20 Jeff Law <jlaw@localhost.localdomain>
6088 * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
6089 by 15 bits for H8/300H and H8/S. Improve logical shifts by 12
6091 (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
6092 H8/300H. Improve arithmetic shift right by 15 bits for H8/S.
6093 Improve logical shifts by 27 bits for H8/S.
6094 (get_shift_alg): Corresponding changes.
6095 (h8300_option_override): Revert to loops for -Os when profitable.
6097 2021-08-20 Richard Biener <rguenther@suse.de>
6099 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
6101 (vect_analyze_data_ref_accesses): Likewise. Assign the BB
6102 index as group_id when dataref_groups were not computed.
6103 * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
6104 we advace to the next BB.
6106 2021-08-20 Jakub Jelinek <jakub@redhat.com>
6108 * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
6111 2021-08-20 Martin Liska <mliska@suse.cz>
6113 PR gcov-profile/89961
6114 * gcov.c (make_gcov_file_name): Rewrite using std::string.
6115 (mangle_name): Simplify, do not used the second argument.
6116 (strip_extention): New function.
6117 (get_md5sum): Likewise.
6118 (get_gcov_intermediate_filename): Handle properly -p and -x
6120 (output_gcov_file): Use string type.
6121 (generate_results): Likewise.
6122 (md5sum_to_hex): Remove.
6124 2021-08-20 Michael Meissner <meissner@linux.ibm.com>
6126 * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
6127 (UNSPEC_XXSPLTIW): Move to vsx.md.
6128 (UNSPEC_XXSPLTID): Move to vsx.md.
6129 (UNSPEC_XXSPLTI32DX): Move to vsx.md.
6130 (UNSPEC_XXBLEND): Move to vsx.md.
6131 (UNSPEC_XXPERMX): Move to vsx.md.
6132 (VM3): Move to vsx.md.
6133 (VM3_char): Move to vsx.md.
6134 (xxspltiw_v4si): Move to vsx.md.
6135 (xxspltiw_v4sf): Move to vsx.md.
6136 (xxspltiw_v4sf_inst): Move to vsx.md.
6137 (xxspltidp_v2df): Move to vsx.md.
6138 (xxspltidp_v2df_inst): Move to vsx.md.
6139 (xxsplti32dx_v4si_inst): Move to vsx.md.
6140 (xxsplti32dx_v4sf): Move to vsx.md.
6141 (xxsplti32dx_v4sf_inst): Move to vsx.md.
6142 (xxblend_<mode>): Move to vsx.md.
6143 (xxpermx): Move to vsx.md.
6144 (xxpermx_inst): Move to vsx.md.
6145 * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
6146 (UNSPEC_XXSPLTIW): Move from altivec.md.
6147 (UNSPEC_XXSPLTID): Move from altivec.md.
6148 (UNSPEC_XXSPLTI32DX): Move from altivec.md.
6149 (UNSPEC_XXBLEND): Move from altivec.md.
6150 (UNSPEC_XXPERMX): Move from altivec.md.
6151 (VM3): Move from altivec.md.
6152 (VM3_char): Move from altivec.md.
6153 (xxspltiw_v4si): Move from altivec.md.
6154 (xxspltiw_v4sf): Move from altivec.md.
6155 (xxspltiw_v4sf_inst): Move from altivec.md.
6156 (xxspltidp_v2df): Move from altivec.md.
6157 (xxspltidp_v2df_inst): Move from altivec.md.
6158 (xxsplti32dx_v4si_inst): Move from altivec.md.
6159 (xxsplti32dx_v4sf): Move from altivec.md.
6160 (xxsplti32dx_v4sf_inst): Move from altivec.md.
6161 (xxblend_<mode>): Move from altivec.md.
6162 (xxpermx): Move from altivec.md.
6163 (xxpermx_inst): Move from altivec.md.
6165 2021-08-19 Roger Sayle <roger@nextmovesoftware.com>
6167 * tree-vect-generic.c (expand_vector_operations_1): Use either
6168 gimplify_build1 or gimplify_build2 instead of gimple_build_assign
6169 when constructing scalar splat expressions.
6171 2021-08-19 Peter Bergner <bergner@linux.ibm.com>
6174 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
6175 pointer to __vector_pair *.
6177 2021-08-19 Martin Sebor <msebor@redhat.com>
6179 * gimple-range.cc: Add comments.
6180 * gimple-range.h: Same.
6182 2021-08-19 Martin Sebor <msebor@redhat.com>
6184 PR middle-end/101984
6185 * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
6188 2021-08-19 Jeff Law <jlaw@localhost.localdomain>
6190 * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
6191 (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
6192 * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
6194 2021-08-19 Jakub Jelinek <jakub@redhat.com>
6196 PR middle-end/101950
6197 * optabs.c (expand_clrsb_using_clz): New function.
6198 (expand_unop): Use it as another clrsb expansion fallback.
6200 2021-08-19 liuhongt <hongtao.liu@intel.com>
6203 2021-07-28 liuhongt <hongtao.liu@intel.com>
6206 * config/i386/i386.h (processor_costs): Add new member
6208 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
6209 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
6210 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
6211 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
6212 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
6213 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
6214 generic_cost, core_cost): Initialize integer_to_sse same value
6216 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
6217 * config/i386/i386.c (ix86_builtin_vectorization_cost):
6218 Use integer_to_sse instead of sse_op to calculate the cost of
6221 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
6223 * config.gcc: Include rpath.opt for Darwin.
6224 * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
6226 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
6229 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
6232 2021-08-18 Jonathan Wright <jonathan.wright@arm.com>
6234 * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
6235 pattern and type cast.
6236 (vld4_lane_f32): Use float RTL pattern.
6237 (vld4q_lane_f64): Use float type cast.
6239 2021-08-18 Jan Hubicka <hubicka@ucw.cz>
6241 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
6244 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
6246 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
6247 (test_map_of_type_with_ctor_and_dtor_expand): Add function.
6248 (hash_map_tests_c_tests): Call it.
6250 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
6252 * ggc.h (enum ggc_collect): New.
6253 (ggc_collect): Use it.
6254 * ggc-page.c: Adjust.
6255 * ggc-common.c: Likewise.
6256 * ggc-tests.c: Likewise.
6257 * read-rtl-function.c: Likewise.
6258 * selftest-run-tests.c: Likewise.
6259 * doc/gty.texi (Invoking the garbage collector): Likewise.
6261 2021-08-18 liuhongt <hongtao.liu@intel.com>
6264 * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
6266 * config/i386/sse.md (*sse3_haddv2df3_low): Add
6267 TARGET_V2DF_REDUCTION_PREFER_HADDPD.
6268 (*sse3_hsubv2df3_low): Ditto.
6269 * config/i386/x86-tune.def
6270 (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
6272 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
6274 * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
6275 (gori_compute::compute_operand_range): Add tracing.
6276 (gori_compute::logical_combine): Ditto.
6277 (gori_compute::compute_logical_operands): Ditto.
6278 (gori_compute::compute_operand1_range): Ditto.
6279 (gori_compute::compute_operand2_range): Ditto.
6280 (gori_compute::outgoing_edge_range_p): Ditto.
6281 * gimple-range-gori.h (class gori_compute): Add range_tracer.
6283 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
6285 * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
6286 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
6287 * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
6288 * params.opt (--param=evrp-mode): Adjust options.
6290 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
6292 * Makefile.in (OBJS): Add gimple-range-trace.o.
6293 * gimple-range-cache.h (enable_new_values): Remove unused prototype.
6294 * gimple-range-fold.cc: Adjust headers.
6295 * gimple-range-trace.cc: New.
6296 * gimple-range-trace.h: New.
6297 * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
6298 (gimple_ranger::range_of_expr): Add tracing.
6299 (gimple_ranger::range_on_entry): Ditto.
6300 (gimple_ranger::range_on_exit): Ditto.
6301 (gimple_ranger::range_on_edge): Ditto.
6302 (gimple_ranger::fold_range_internal): Ditto.
6303 (gimple_ranger::dump_bb): Do not calculate edge range twice.
6304 (trace_ranger::*): Remove.
6305 (enable_ranger): Never create a trace_ranger.
6306 (debug_seed_ranger): Move to gimple-range-trace.cc.
6307 (dump_ranger): Ditto.
6308 (debug_ranger): Ditto.
6309 * gimple-range.h: Include gimple-range-trace.h.
6310 (range_on_entry, range_on_exit): No longer virtual.
6311 (class trace_ranger): Remove.
6312 (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
6314 2021-08-17 Martin Sebor <msebor@redhat.com>
6316 PR middle-end/101854
6317 * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
6318 in gimple-ssa-warn-access.cc.
6319 * calls.c (alloc_max_size): Move code to check_alloca.
6320 (get_size_range): Move to pointer-query.cc.
6321 (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
6322 (get_attr_nonstring_decl): Move to tree.c.
6323 (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
6324 (append_attrname): Same.
6325 (maybe_warn_rdwr_sizes): Same.
6326 (initialize_argument_information): Move code to
6327 gimple-ssa-warn-access.cc.
6328 * calls.h (maybe_warn_alloc_args_overflow): Move to
6329 gimple-ssa-warn-access.h.
6330 (get_attr_nonstring_decl): Move to tree.h.
6331 (maybe_warn_nonstring_arg): Move to gimple-ssa-warn-access.h.
6332 (enum size_range_flags): Move to pointer-query.h.
6333 (get_size_range): Same.
6334 * gimple-ssa-warn-access.cc (has_location): Remove unused overload
6335 to avoid Clang -Wunused-function.
6336 (get_size_range): Declare static.
6337 (maybe_emit_free_warning): Rename...
6338 (maybe_check_dealloc_call): ...to this for consistency.
6339 (class pass_waccess): Add members.
6340 (pass_waccess::~pass_waccess): Defined.
6341 (alloc_max_size): Move here from calls.c.
6342 (maybe_warn_alloc_args_overflow): Same.
6343 (check_alloca): New function.
6344 (check_alloc_size_call): New function.
6345 (check_strncat): Handle another warning flag.
6346 (pass_waccess::check_builtin): Handle alloca.
6347 (fntype_argno_type): Move here from calls.c.
6348 (append_attrname): Same.
6349 (maybe_warn_rdwr_sizes): Same.
6350 (pass_waccess::check_call): Define.
6351 (check_nonstring_args): New function.
6352 (pass_waccess::check): Call new member functions.
6353 (pass_waccess::execute): Enable ranger.
6354 * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
6355 (maybe_warn_nonstring_arg): Same.
6356 * gimple-ssa-warn-restrict.c: Remove #include.
6357 * pointer-query.cc (get_size_range): Move here from calls.c.
6358 * pointer-query.h (enum size_range_flags): Same.
6359 (get_size_range): Same.
6360 * tree.c (get_attr_nonstring_decl): Move here from calls.c.
6361 * tree.h (get_attr_nonstring_decl): Move here from calls.h.
6363 2021-08-17 Thomas Schwinge <thomas@codesourcery.com>
6365 * ggc.h (ggc_collect): Add 'force_collect' parameter.
6366 * ggc-page.c (ggc_collect): Use that one instead of global
6367 'ggc_force_collect'. Adjust all users.
6368 * doc/gty.texi (Invoking the garbage collector): Update.
6369 * ggc-internal.h (ggc_force_collect): Remove.
6370 * ggc-common.c (ggc_force_collect): Likewise.
6371 * selftest.h (forcibly_ggc_collect): Remove.
6372 * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
6373 * read-rtl-function.c (test_loading_labels): Adjust.
6374 * selftest-run-tests.c (run_tests): Likewise.
6376 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
6378 * config/darwin.c (darwin_file_end): Reset and reclaim the
6379 section names table at the end of compile.
6381 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
6384 * config.in: Regenerate.
6385 * config/i386/darwin.h (EXTRA_ASM_OPTS): New
6386 (ASM_SPEC): Pass options to disable branch shortening where
6388 * configure: Regenerate.
6389 * configure.ac: Detect versions of 'as' that support the
6390 optimisation which has the bug.
6392 2021-08-17 Richard Biener <rguenther@suse.de>
6394 * optabs-query.c (supports_vec_gather_load_p): Also check
6396 (supports_vec_scatter_store_p): Likewise.
6397 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
6398 back to masked variants if non-masked are not supported.
6399 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
6400 When we need to use masked gather/scatter but do not have
6401 a mask set up a constant true one.
6402 * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
6405 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
6407 * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
6408 algorithm as PLUS_EXPR to improve subtraction bit bounds.
6409 [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
6411 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
6413 * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
6414 calculate the mask-value pair result of a multiplication by an
6416 (bit_value_binop) [MULT_EXPR]: Call it from here for
6417 multiplications by (sparse) non-negative constants.
6419 2021-08-17 Christophe Lyon <christophe.lyon@foss.st.com>
6422 * config.gcc (gcc_cv_initfini_array): Leave undefined for
6423 uclinuxfdpiceabi targets.
6425 2021-08-17 Alexandre Oliva <oliva@adacore.com>
6427 * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
6428 reverse debug stmts.
6430 2021-08-17 Alexandre Oliva <oliva@adacore.com>
6432 * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
6434 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
6436 * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
6437 (__LD4Q_LANE_FUNC): Likewise.
6438 (vld4_lane_u8): Define without macro.
6439 (vld4_lane_u16): Likewise.
6440 (vld4_lane_u32): Likewise.
6441 (vld4_lane_u64): Likewise.
6442 (vld4_lane_s8): Likewise.
6443 (vld4_lane_s16): Likewise.
6444 (vld4_lane_s32): Likewise.
6445 (vld4_lane_s64): Likewise.
6446 (vld4_lane_f16): Likewise.
6447 (vld4_lane_f32): Likewise.
6448 (vld4_lane_f64): Likewise.
6449 (vld4_lane_p8): Likewise.
6450 (vld4_lane_p16): Likewise.
6451 (vld4_lane_p64): Likewise.
6452 (vld4q_lane_u8): Likewise.
6453 (vld4q_lane_u16): Likewise.
6454 (vld4q_lane_u32): Likewise.
6455 (vld4q_lane_u64): Likewise.
6456 (vld4q_lane_s8): Likewise.
6457 (vld4q_lane_s16): Likewise.
6458 (vld4q_lane_s32): Likewise.
6459 (vld4q_lane_s64): Likewise.
6460 (vld4q_lane_f16): Likewise.
6461 (vld4q_lane_f32): Likewise.
6462 (vld4q_lane_f64): Likewise.
6463 (vld4q_lane_p8): Likewise.
6464 (vld4q_lane_p16): Likewise.
6465 (vld4q_lane_p64): Likewise.
6466 (vld4_lane_bf16): Likewise.
6467 (vld4q_lane_bf16): Likewise.
6469 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
6471 * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
6472 (__LD3Q_LANE_FUNC): Delete.
6473 (vld3_lane_u8): Define without macro.
6474 (vld3_lane_u16): Likewise.
6475 (vld3_lane_u32): Likewise.
6476 (vld3_lane_u64): Likewise.
6477 (vld3_lane_s8): Likewise.
6478 (vld3_lane_s16): Likewise.
6479 (vld3_lane_s32): Likewise.
6480 (vld3_lane_s64): Likewise.
6481 (vld3_lane_f16): Likewise.
6482 (vld3_lane_f32): Likewise.
6483 (vld3_lane_f64): Likewise.
6484 (vld3_lane_p8): Likewise.
6485 (vld3_lane_p16): Likewise.
6486 (vld3_lane_p64): Likewise.
6487 (vld3q_lane_u8): Likewise.
6488 (vld3q_lane_u16): Likewise.
6489 (vld3q_lane_u32): Likewise.
6490 (vld3q_lane_u64): Likewise.
6491 (vld3q_lane_s8): Likewise.
6492 (vld3q_lane_s16): Likewise.
6493 (vld3q_lane_s32): Likewise.
6494 (vld3q_lane_s64): Likewise.
6495 (vld3q_lane_f16): Likewise.
6496 (vld3q_lane_f32): Likewise.
6497 (vld3q_lane_f64): Likewise.
6498 (vld3q_lane_p8): Likewise.
6499 (vld3q_lane_p16): Likewise.
6500 (vld3q_lane_p64): Likewise.
6501 (vld3_lane_bf16): Likewise.
6502 (vld3q_lane_bf16): Likewise.
6504 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
6506 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
6507 (__LD2Q_LANE_FUNC): Likewise.
6508 (vld2_lane_u8): Define without macro.
6509 (vld2_lane_u16): Likewise.
6510 (vld2_lane_u32): Likewise.
6511 (vld2_lane_u64): Likewise.
6512 (vld2_lane_s8): Likewise.
6513 (vld2_lane_s16): Likewise.
6514 (vld2_lane_s32): Likewise.
6515 (vld2_lane_s64): Likewise.
6516 (vld2_lane_f16): Likewise.
6517 (vld2_lane_f32): Likewise.
6518 (vld2_lane_f64): Likewise.
6519 (vld2_lane_p8): Likewise.
6520 (vld2_lane_p16): Likewise.
6521 (vld2_lane_p64): Likewise.
6522 (vld2q_lane_u8): Likewise.
6523 (vld2q_lane_u16): Likewise.
6524 (vld2q_lane_u32): Likewise.
6525 (vld2q_lane_u64): Likewise.
6526 (vld2q_lane_s8): Likewise.
6527 (vld2q_lane_s16): Likewise.
6528 (vld2q_lane_s32): Likewise.
6529 (vld2q_lane_s64): Likewise.
6530 (vld2q_lane_f16): Likewise.
6531 (vld2q_lane_f32): Likewise.
6532 (vld2q_lane_f64): Likewise.
6533 (vld2q_lane_p8): Likewise.
6534 (vld2q_lane_p16): Likewise.
6535 (vld2q_lane_p64): Likewise.
6536 (vld2_lane_bf16): Likewise.
6537 (vld2q_lane_bf16): Likewise.
6539 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6541 * haifa-sched.c (advance_one_cycle): Output more context-synchronization
6544 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6546 * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
6547 (rank_for_schedule): Use it.
6549 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6551 PR rtl-optimization/91598
6552 * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
6553 insns after memory reads and before memory writes.
6555 2021-08-17 Alistair_Lee <alistair.lee@arm.com>
6557 * rtl.h (CONST_VECTOR_P): New macro.
6558 * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
6559 code testing macros.
6560 (aarch64_ptrue_all_mode): Likewise.
6561 (aarch64_expand_mov_immediate): Likewise.
6562 (aarch64_const_vec_all_in_range_p): Likewise.
6563 (aarch64_rtx_costs): Likewise.
6564 (aarch64_legitimate_constant_p): Likewise.
6565 (aarch64_simd_valid_immediate): Likewise.
6566 (aarch64_simd_make_constant): Likewise.
6567 (aarch64_convert_mult_to_shift): Likewise.
6568 (aarch64_expand_sve_vec_perm): Likewise.
6569 (aarch64_vec_fpconst_pow_of_2): Likewise.
6571 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
6573 PR tree-optimization/101938
6574 * range-op.cc (operator_abs::op1_range): Special case
6575 -TYPE_MIN_VALUE for flag_wrapv.
6577 2021-08-17 Kewen Lin <linkw@linux.ibm.com>
6579 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
6582 2021-08-17 Jakub Jelinek <jakub@redhat.com>
6584 * tree.def (OMP_SCOPE): New tree code.
6585 * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
6586 * tree-nested.c (convert_nonlocal_reference_stmt,
6587 convert_local_reference_stmt, convert_gimple_call): Handle
6589 * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
6590 * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
6591 * gimple.c (gimple_build_omp_scope): New function.
6592 (gimple_copy): Handle GIMPLE_OMP_SCOPE.
6593 * gimple.h (gimple_build_omp_scope): Declare.
6594 (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
6595 (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
6596 gimple_omp_scope_set_clauses): New inline functions.
6597 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
6598 * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
6599 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
6600 * gimple-walk.c (walk_gimple_stmt): Likewise.
6601 * gimple-low.c (lower_stmt): Likewise.
6602 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
6603 (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
6604 like ORT_WORKSHARE constructs. Adjust diagnostics for %<scope%>
6605 allowing task reductions. Reject inscan reductions on scope.
6606 (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
6607 (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
6608 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
6609 (estimate_num_insns): Likewise.
6610 * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
6611 contexts if var isn't privatized there.
6612 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
6613 (scan_omp_1_stmt): Likewise.
6614 (maybe_add_implicit_barrier_cancel): Look through outer
6616 (lower_omp_scope): New function.
6617 (lower_omp_task_reductions): Handle OMP_SCOPE.
6618 (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
6619 (diagnose_sb_1, diagnose_sb_2): Likewise.
6620 * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
6621 (expand_omp): Handle GIMPLE_OMP_SCOPE.
6622 (omp_make_gimple_edges): Likewise.
6623 * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
6625 2021-08-17 Richard Biener <rguenther@suse.de>
6627 PR tree-optimization/101925
6628 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
6629 reverse on COMPONENT_REF and ARRAY_REF according to
6630 what reverse_storage_order_for_component_p does.
6631 (vn_reference_eq): Compare reversed on reference ops.
6632 (reverse_storage_order_for_component_p): New overload.
6633 (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
6634 on the reference looked up.
6636 2021-08-17 Jeff Law <jlaw@localhost.localdomain>
6638 * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
6640 (h8300_option_override): Use loops on H8/S more often when optimizing
6642 (get_shift_alg): Handle new "special" cases on H8/S. Simplify
6643 accordingly. Handle various arithmetic right shifts with special
6644 sequences that we couldn't handle before.
6646 2021-08-16 Jeff Law <jlaw@localhost.localdomain>
6648 * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
6650 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
6652 * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
6653 * config/sparc/sparc.c (sparc_gcov_type_size): New.
6654 (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
6655 * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
6656 * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
6657 * doc/tm.texi.in: Regenerate.
6658 * target.def (gcov_type_size): New target hook.
6659 * targhooks.c (default_gcov_type_size): New.
6660 * targhooks.h (default_gcov_type_size): Declare.
6661 * tree-profile.c (gimple_gen_edge_profiler): Use precision of
6663 (gimple_gen_time_profiler): Likewise.
6665 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
6667 * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
6669 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
6671 PR middle-end/101931
6672 * omp-low.c (omp_runtime_api_call): Update for routines
6673 added in the meanwhile.
6675 2021-08-16 Martin Liska <mliska@suse.cz>
6677 PR tree-optimization/100393
6678 * tree-switch-conversion.c (group_cluster::dump): Use
6679 get_comparison_count.
6680 (jump_table_cluster::find_jump_tables): Pre-compute number of
6681 comparisons and then decrement it. Cache also max_ratio.
6682 (jump_table_cluster::can_be_handled): Change signature.
6683 * tree-switch-conversion.h (get_comparison_count): New.
6685 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
6687 * dwarf2out.c (add_data_member_location_attribute): Use GNAT
6688 encodings only when -fgnat-encodings=all is specified.
6689 (add_bound_info): Likewise.
6690 (add_byte_size_attribute): Likewise.
6691 (gen_member_die): Likewise.
6693 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
6695 * omp-oacc-neuter-broadcast.cc
6696 (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
6698 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
6700 * omp-oacc-neuter-broadcast.cc
6701 (execute_omp_oacc_neuter_broadcast): Clarify memory management for
6704 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
6706 * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
6707 (execute_omp_oacc_neuter_broadcast): ... here.
6708 (install_var_field, build_receiver_ref, build_sender_ref): Take
6709 'field_map_t *' parameter. Adjust all users.
6710 (worker_single_copy, neuter_worker_single): Take a
6711 'record_field_map_t *' parameter. Adjust all users.
6713 2021-08-16 liuhongt <hongtao.liu@intel.com>
6716 * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
6719 2021-08-16 Martin Liska <mliska@suse.cz>
6722 * multiple_target.c (create_dispatcher_calls): Make default
6723 function local only if it is a definition.
6725 2021-08-16 Martin Liska <mliska@suse.cz>
6728 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
6729 consider equal SSA_NAMEs when one is a param.
6731 2021-08-16 liuhongt <hongtao.liu@intel.com>
6734 * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
6735 Support vpermi2b for V32QI/V16QImode.
6736 (ix86_extract_perm_from_pool_constant): New function.
6737 (ix86_expand_vec_one_operand_perm_avx512): Support
6738 vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
6739 (expand_vec_perm_1): Adjust comments for upper.
6740 * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
6742 * config/i386/predicates.md (permvar_truncate_operand): New predicate.
6743 (pshufb_truncv4siv4hi_operand): Ditto.
6744 (pshufb_truncv8hiv8qi_operand): Ditto.
6745 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
6746 New pre_reload define_insn_and_split.
6747 (*avx512f_permvar_truncv8siv8hi_1): Ditto.
6748 (*avx512f_vpermvar_truncv8div8si_1): Ditto.
6749 (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
6750 (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
6751 (*avx512f_permvar_truncv4div4si_1): Ditto.
6752 (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
6753 (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
6754 (*avx512f_pshufd_truncv2div2si_1): Ditto.
6756 2021-08-16 Kito Cheng <kito.cheng@sifive.com>
6758 * config/riscv/multilib-generator: Support code model option for
6760 * doc/install.texi: Add document of new option for
6761 --with-multilib-generator.
6763 2021-08-15 Clément Chigot <clement.chigot@atos.net>
6765 * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
6766 (rs6000_legitimize_tls_address_aix): Use it.
6767 (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
6768 xcoff_tls_exec_model_detected is true.
6770 2021-08-15 Jeff Law <jlaw@localhost.localdomain>
6772 * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
6773 to allow a bit more code growth, saving many dozens of cycles.
6774 (h8300_option_override): Adjus shift_alg_si if optimizing for
6776 (get_shift_alg): Use special + inline shifts for residuals
6779 2021-08-14 Stafford Horne <shorne@gmail.com>
6782 * config/or1k/or1k-opts.h: New file.
6783 * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
6784 Support generating gotha relocations if -mcmodel=large is
6786 * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
6788 * config/or1k/or1k.opt (mcmodel=): New option.
6789 * doc/invoke.texi (OpenRISC Options): Document mcmodel.
6791 2021-08-14 Martin Sebor <msebor@redhat.com>
6793 PR middle-end/101791
6794 * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
6795 to valid_new_delete_pair_p.
6796 * tree.c (valid_new_delete_pair_p): Add argument.
6797 * tree.h (valid_new_delete_pair_p): Same.
6799 2021-08-14 Jakub Jelinek <jakub@redhat.com>
6802 * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
6803 <case E_V64QImode>: For this mode assert
6804 !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
6806 2021-08-13 Michael Meissner <meissner@linux.ibm.com>
6809 * config/rs6000/altivec.md (xxeval): Use register_predicate
6810 instead of altivec_register_predicate.
6812 2021-08-13 Martin Sebor <msebor@redhat.com>
6814 PR middle-end/101734
6815 * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
6816 (maybe_warn_operand): Call it.
6818 2021-08-13 Martin Liska <mliska@suse.cz>
6821 * attribs.c (decl_attributes): Make naked functions "noipa"
6824 2021-08-13 Martin Liska <mliska@suse.cz>
6827 * symtab.c (symtab_node::noninterposable_alias): Do not create
6828 local aliases for target_clone functions as the clonning pass
6831 2021-08-13 Martin Liska <mliska@suse.cz>
6833 * opts.c (LIVE_PATCHING_OPTION): Define.
6834 (control_options_for_live_patching): Use it in error messages.
6836 2021-08-13 Jan Hubicka <hubicka@ucw.cz>
6838 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
6839 (implicit_const_eaf_flags, implicit_pure_eaf_flags,
6840 ignore_stores_eaf_flags): New constants.
6841 (remove_useless_eaf_flags): New function.
6842 (eaf_flags_useful_p): Use it.
6843 (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
6845 (modref_lattice::init): Add EAF_NOREAD.
6846 (modref_lattice::add_escape_point): Do not reacord escape point if
6848 (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
6849 use remove_useless_eaf_flags.
6850 (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
6851 (modref_lattice::merge_direct_load): Add EAF_NOREAD
6852 (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
6853 (analyze_parms): Use remove_useless_eaf_flags.
6854 (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
6855 (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
6856 use remove_useless_eaf_flags.
6857 (modref_propagate_flags_in_scc): Update.
6858 * ipa-modref.h: Turn eaf_flags_t back to char.
6859 * tree-core.h (EAF_NOT_RETURNED): Fix.
6860 (EAF_NOREAD): New constant
6861 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
6863 * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
6864 (handle_pure_call): Likewise.
6866 2021-08-12 Jakub Jelinek <jakub@redhat.com>
6868 * tree.def (OMP_MASKED): New tree code.
6869 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
6870 * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
6871 OMP_CLAUSE_FILTER_EXPR): Define.
6872 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
6873 (omp_clause_code_name): Likewise.
6874 (walk_tree_1): Handle OMP_CLAUSE_FILTER.
6875 * tree-nested.c (convert_nonlocal_omp_clauses,
6876 convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
6877 (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
6878 convert_gimple_call): Handle GIMPLE_OMP_MASTER.
6879 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
6880 (dump_generic_node): Handle OMP_MASTER.
6881 * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
6882 * gimple.c (gimple_build_omp_masked): New function.
6883 (gimple_copy): Handle GIMPLE_OMP_MASKED.
6884 * gimple.h (gimple_build_omp_masked): Declare.
6885 (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
6886 (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
6887 gimple_omp_masked_set_clauses): New inline functions.
6888 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
6889 * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
6890 (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
6891 * gimple-walk.c (walk_gimple_stmt): Likewise.
6892 * gimple-low.c (lower_stmt): Likewise.
6893 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
6894 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER. For clauses
6895 that take one expression rather than decl or constant, force
6896 gimplification of that into a SSA_NAME or temporary unless min
6898 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
6899 (gimplify_expr): Handle OMP_MASKED.
6900 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
6901 (estimate_num_insns): Likewise.
6902 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
6903 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED. Adjust
6904 diagnostics for existence of masked construct.
6905 (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
6906 diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
6907 * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
6910 2021-08-12 Uroš Bizjak <ubizjak@gmail.com>
6913 * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
6914 (ldexp<mode>3): Use avx512f_scalef<mode>2.
6915 (UNSPEC_SCALEF): Move from ...
6916 * config/i386/sse.md (UNSPEC_SCALEF): ... here.
6918 2021-08-12 Jan Hubicka <hubicka@ucw.cz>
6920 * ipa-split.c (consider_split): Fix condition testing void functions.
6922 2021-08-12 Aldy Hernandez <aldyh@redhat.com>
6924 * doc/invoke.texi: Remove docs for threader-mode param.
6925 * flag-types.h (enum threader_mode): Remove.
6926 * params.opt: Remove threader-mode param.
6927 * tree-ssa-threadbackward.c (class back_threader): Remove
6928 path_is_unreachable_p.
6929 Make find_paths private.
6930 Add maybe_thread and thread_through_all_blocks.
6931 Remove reference marker for m_registry.
6932 Remove reference marker for m_profit.
6933 (back_threader::back_threader): Adjust for registry and profit not
6935 (dump_path): Move down.
6937 (class thread_jumps): Remove.
6938 (class back_threader_registry): Remove m_all_paths.
6940 (thread_jumps::thread_through_all_blocks): Move to back_threader
6942 (fsm_find_thread_path): Remove
6943 (back_threader::maybe_thread): New.
6944 (back_threader::thread_through_all_blocks): Move from
6946 (back_threader_registry::back_threader_registry): Remove
6948 (back_threader_registry::~back_threader_registry): Remove.
6949 (thread_jumps::find_taken_edge): Remove.
6950 (thread_jumps::check_subpath_and_update_thread_path): Remove.
6951 (thread_jumps::maybe_register_path): Remove.
6952 (thread_jumps::handle_phi): Remove.
6953 (handle_assignment_p): Remove.
6954 (thread_jumps::handle_assignment): Remove.
6955 (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
6956 (thread_jumps::find_jump_threads_backwards): Remove.
6957 (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
6958 (try_thread_blocks): Rename find_jump_threads_backwards to
6960 (pass_early_thread_jumps::execute): Same.
6962 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
6964 * tree-core.h (omp_clause_proc_bind_kind): Add
6965 OMP_CLAUSE_PROC_BIND_PRIMARY.
6966 * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
6967 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
6969 2021-08-12 Claudiu Zissulescu <claziss@synopsys.com>
6971 * common/config/arc/arc-common.c (arc_option_init_struct): Remove
6972 fno-common reference.
6973 * config/arc/arc.c (arc_override_options): Remove overriding of
6976 2021-08-12 Jakub Jelinek <jakub@redhat.com>
6979 * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
6980 If d->testing_p, return true after performing checks instead of
6981 actually expanding the insn.
6982 (expand_vec_perm_broadcast_1): Handle V32HImode - assert
6983 !TARGET_AVX512BW and return false.
6985 2021-08-12 Eric Botcazou <ebotcazou@gcc.gnu.org>
6987 * configure.ac (PE linker --disable-dynamicbase support): New check.
6988 * configure: Regenerate.
6989 * config.in: Likewise.
6990 * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
6991 (LINK_SPEC): Use it.
6992 * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
6993 (LINK_SPEC): Likewise.
6995 2021-08-12 liuhongt <hongtao.liu@intel.com>
6998 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
6999 post_reload define_insn_and_split.
7000 (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
7001 (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
7002 (*avx512f_zero_extendv16hiv16si2_2): Ditto.
7003 (*avx2_zero_extendv8hiv8si2_2): Ditto.
7004 (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
7005 (*avx512f_zero_extendv8siv8di2_2): Ditto.
7006 (*avx2_zero_extendv4siv4di2_2): Ditto.
7007 (*sse4_1_zero_extendv2siv2di2_4): Ditto.
7008 (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
7011 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
7013 * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
7016 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
7018 * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
7020 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
7022 * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
7023 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
7024 initialization of pcvoid_type_node here...
7025 (altivec_init_builtins): ...from here.
7026 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
7027 RS6000_BTI_const_ptr_void.
7028 (pcvoid_type_node): New macro.
7030 2021-08-11 Richard Biener <rguenther@suse.de>
7033 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
7034 hard-register accesses.
7036 2021-08-11 Richard Biener <rguenther@suse.de>
7038 * tree-ssa-operands.c (operands_scanner::get_expr_operands):
7039 Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
7040 to determine has_volatile_ops.
7042 2021-08-11 Eric Botcazou <ebotcazou@gcc.gnu.org>
7044 * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
7046 2021-08-11 Jan Hubicka <hubicka@ucw.cz>
7047 Alexandre Oliva <oliva@adacore.com>
7049 * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
7051 (modref_lattice::merge_deref): Fix handling of indirect scape points.
7052 (update_escape_summary_1): Likewise.
7053 (update_escape_summary): Likewise.
7054 (ipa_merge_modref_summary_after_inlining): Likewise.
7056 2021-08-11 Richard Biener <rguenther@suse.de>
7058 PR middle-end/101858
7059 * fold-const.c (fold_binary_loc): Guard simplification
7060 of X < (cast) (1 << Y) to integer types.
7062 2021-08-11 Richard Biener <rguenther@suse.de>
7064 PR tree-optimization/101861
7065 * tree-vect-stmts.c (vectorizable_load): Fix error in
7066 previous change with regard to gather vectorization.
7068 2021-08-11 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
7071 * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
7073 (vdup_n_s16): Likewise.
7074 (vdup_n_s32): Likewise.
7075 (vdup_n_s64): Likewise.
7076 (vdup_n_u8): Likewise.
7077 (vdup_n_u16): Likewise.
7078 (vdup_n_u32): Likewise.
7079 (vdup_n_u64): Likewise.
7080 (vdup_n_p8): Likewise.
7081 (vdup_n_p16): Likewise.
7082 (vdup_n_p64): Likewise.
7083 (vdup_n_f16): Likewise.
7084 (vdup_n_f32): Likewise.
7085 (vdupq_n_s8): Likewise.
7086 (vdupq_n_s16): Likewise.
7087 (vdupq_n_s32): Likewise.
7088 (vdupq_n_s64): Likewise.
7089 (vdupq_n_u8): Likewise.
7090 (vdupq_n_u16): Likewise.
7091 (vdupq_n_u32): Likewise.
7092 (vdupq_n_u64): Likewise.
7093 (vdupq_n_p8): Likewise.
7094 (vdupq_n_p16): Likewise.
7095 (vdupq_n_p64): Likewise.
7096 (vdupq_n_f16): Likewise.
7097 (vdupq_n_f32): Likewise.
7098 (vmov_n_s8): Replace call to builtin with call to corresponding
7100 (vmov_n_s16): Likewise.
7101 (vmov_n_s32): Likewise.
7102 (vmov_n_s64): Likewise.
7103 (vmov_n_u8): Likewise.
7104 (vmov_n_u16): Likewise.
7105 (vmov_n_u32): Likewise.
7106 (vmov_n_u64): Likewise.
7107 (vmov_n_p8): Likewise.
7108 (vmov_n_p16): Likewise.
7109 (vmov_n_f16): Likewise.
7110 (vmov_n_f32): Likewise.
7111 (vmovq_n_s8): Likewise.
7112 (vmovq_n_s16): Likewise.
7113 (vmovq_n_s32): Likewise.
7114 (vmovq_n_s64): Likewise.
7115 (vmovq_n_u8): Likewise.
7116 (vmovq_n_u16): Likewise.
7117 (vmovq_n_u32): Likewise.
7118 (vmovq_n_u64): Likewise.
7119 (vmovq_n_p8): Likewise.
7120 (vmovq_n_p16): Likewise.
7121 (vmovq_n_f16): Likewise.
7122 (vmovq_n_f32): Likewise.
7123 * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
7125 2021-08-11 liuhongt <hongtao.liu@intel.com>
7128 * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
7129 when TARGET_AVX512F and TARGET_SSE_MATH.
7131 2021-08-10 Jakub Jelinek <jakub@redhat.com>
7134 * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
7135 for V32HImode if !TARGET_AVX512BW.
7136 (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
7137 If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
7138 early, but actually check the permutation.
7140 2021-08-10 Richard Biener <rguenther@suse.de>
7142 PR tree-optimization/101809
7143 * tree-vect-stmts.c (get_load_store_type): Allow emulated
7144 gathers with offset vector nunits being a constant multiple
7145 of the data vector nunits.
7146 (vect_get_gather_scatter_ops): Use the appropriate nunits
7147 for the offset vector defs.
7148 (vectorizable_store): Adjust call to
7149 vect_get_gather_scatter_ops.
7150 (vectorizable_load): Likewise. Handle the case of less
7151 offset vectors than data vectors.
7153 2021-08-10 Jakub Jelinek <jakub@redhat.com>
7156 * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
7157 *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
7160 2021-08-10 Richard Biener <rguenther@suse.de>
7162 PR tree-optimization/101801
7163 PR tree-optimization/101819
7164 * tree-vectorizer.h (vect_emulated_vector_p): Declare.
7165 * tree-vect-loop.c (vect_emulated_vector_p): New function.
7166 (vectorizable_reduction): Re-instantiate a check for emulated
7168 * tree-vect-stmts.c (vectorizable_shift): Likewise.
7169 (vectorizable_operation): Likewise. Cost emulated vector
7170 operations according to the scalar sequence synthesized by
7173 2021-08-10 Richard Biener <rguenther@suse.de>
7175 PR middle-end/101824
7176 * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
7177 volatile in case the variable was.
7179 2021-08-10 H.J. Lu <hjl.tools@gmail.com>
7182 * config/i386/constraints.md (BC): Document for integer SSE
7183 constant all bits set operand.
7184 (BF): New constraint for const floating-point all bits set
7186 * config/i386/i386.c (standard_sse_constant_p): Likewise.
7187 (standard_sse_constant_opcode): Likewise.
7188 * config/i386/sse.md (sseconstm1): New mode attribute.
7189 (mov<mode>_internal): Replace BC with <sseconstm1>.
7191 2021-08-10 liuhongt <hongtao.liu@intel.com>
7193 * config/i386/sse.md (cond_<insn><mode>): New expander.
7194 (VI248_AVX512VLBW): New mode iterator.
7195 * config/i386/predicates.md
7196 (nonimmediate_or_const_vec_dup_operand): New predicate.
7198 2021-08-09 Andrew MacLeod <amacleod@redhat.com>
7200 PR tree-optimization/101741
7201 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
7202 type of parameter for toupper/tolower.
7204 2021-08-09 Martin Jambor <mjambor@suse.cz>
7207 * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
7209 2021-08-09 Pat Haugen <pthaugen@linux.ibm.com>
7211 * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
7213 (is_store_insn1): Verify source is a register.
7215 2021-08-09 Uroš Bizjak <ubizjak@gmail.com>
7218 * config/i386/mmx.md (<any_logic:code>v2sf3):
7219 Rename from *mmx_<any_logic:code>v2sf3
7221 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
7223 * config/nvptx/nvptx.c: Cross-reference parts adapted in
7224 'gcc/omp-oacc-neuter-broadcast.cc'.
7225 * omp-low.c: Likewise.
7226 * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
7229 2021-08-09 Julian Brown <julian@codesourcery.com>
7230 Kwok Cheung Yeung <kcy@codesourcery.com>
7231 Thomas Schwinge <thomas@codesourcery.com>
7233 * config/gcn/gcn.c (gcn_init_builtins): Override decls for
7234 BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
7235 BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
7236 (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
7237 (gcn_fork_join): Update comment.
7238 * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
7239 (macc_experimental_workers): Remove unused option.
7241 2021-08-09 Julian Brown <julian@codesourcery.com>
7242 Nathan Sidwell <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
7243 Kwok Cheung Yeung <kcy@codesourcery.com>
7244 Thomas Schwinge <thomas@codesourcery.com>
7246 * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
7247 * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
7248 Add documentation hook.
7249 * doc/tm.texi: Regenerate.
7250 * omp-oacc-neuter-broadcast.cc: New file.
7251 * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
7252 (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
7253 (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
7254 * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
7255 * target.def (goacc.create_worker_broadcast_record): Add target
7257 * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
7259 * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
7260 Rename prototype to...
7261 (gcn_goacc_create_worker_broadcast_record): ... this.
7262 * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
7264 (gcn_goacc_create_worker_broadcast_record): ... this.
7265 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
7267 (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
7269 2021-08-09 Tejas Belagod <tejas.belagod@arm.com>
7272 * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
7275 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
7277 * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
7279 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
7281 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
7282 consider '-foffload-abi'.
7283 * common.opt (-foffload-abi): Remove 'Var', 'Init'.
7284 * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
7287 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
7289 * optc-gen.awk: Sanity check that 'Init' doesn't appear without
7292 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
7294 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
7296 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
7298 * doc/gty.texi (Files): Update.
7300 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
7302 * doc/gty.texi (Files): Fix GTY header file example.
7304 2021-08-09 Roger Sayle <roger@nextmovesoftware.com>
7306 * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
7307 determine the upper and lower bounds from a mask-value pair.
7308 (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
7309 absolute value and unsigned absolute value expressions.
7310 (bit_value_binop): Initialize *VAL's precision.
7311 [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
7312 upper and lower bounds of operands. Add LE_EXPR/GE_EXPR
7313 support when the operands are unknown but potentially equal.
7314 [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
7316 2021-08-09 Bin Cheng <bin.cheng@linux.alibaba.com>
7318 * config/aarch64/aarch64.md
7319 (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
7321 2021-08-08 Sergei Trofimovich <siarheit@google.com>
7323 * lra-constraints.c: Fix s/otput/output/ typo.
7325 2021-08-06 Martin Sebor <msebor@redhat.com>
7327 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
7328 (expand_builtin_strcat): Same.
7329 (expand_builtin_stpncpy): Same.
7330 (expand_builtin_strncat): Same.
7331 (check_read_access): Same.
7332 (check_memop_access): Same.
7333 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
7334 (expand_builtin_strnlen): Same.
7335 (expand_builtin_memcpy): Same.
7336 (expand_builtin_memmove): Same.
7337 (expand_builtin_mempcpy): Same.
7338 (expand_builtin_strcpy): Same.
7339 (expand_builtin_strcpy_args): Same.
7340 (expand_builtin_stpcpy_1): Same.
7341 (expand_builtin_strncpy): Same.
7342 (expand_builtin_memset): Same.
7343 (expand_builtin_bzero): Same.
7344 (expand_builtin_strcmp): Same.
7345 (expand_builtin_strncmp): Same.
7346 (expand_builtin): Remove handlers.
7347 (fold_builtin_strlen): Add a comment.
7348 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
7349 * calls.c (maybe_warn_nonstring_arg): Same.
7350 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
7351 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
7352 (gimple_fold_builtin_stpcpy): Same.
7353 * gimple-ssa-warn-access.cc (has_location): New function.
7354 (get_location): Same.
7355 (get_callee_fndecl): Same.
7358 (warn_string_no_nul): Define.
7359 (unterminated_array): Same.
7360 (check_nul_terminated_array): Same.
7361 (maybe_warn_nonstring_arg): Same.
7362 (maybe_warn_for_bound): Same.
7363 (warn_for_access): Same.
7364 (check_access): Same.
7365 (check_memop_access): Same.
7366 (check_read_access): Same.
7367 (warn_dealloc_offset): Use helper functions.
7368 (maybe_emit_free_warning): Same.
7369 (class pass_waccess): Add members.
7370 (check_strcat): New function.
7371 (check_strncat): New function.
7372 (check_stxcpy): New function.
7373 (check_stxncpy): New function.
7374 (check_strncmp): New function.
7375 (pass_waccess::check_builtin): New function.
7376 (pass_waccess::check): Call it.
7377 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
7379 (maybe_warn_for_bound): Same.
7380 (check_access): Same.
7381 (check_memop_access): Same.
7382 (check_read_access): Same.
7383 * pointer-query.h (struct access_data): Define a ctor overload.
7385 2021-08-06 Richard Biener <rguenther@suse.de>
7387 PR tree-optimization/101801
7388 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
7389 (vect_can_vectorize_without_simd_p): ... to this.
7390 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
7391 (vect_can_vectorize_without_simd_p): ... to this and fold
7392 in vect_min_worthwhile_factor.
7393 (vect_min_worthwhile_factor): Remove.
7394 (vectorizable_reduction): Adjust and remove the cost part.
7395 * tree-vect-stmts.c (vectorizable_shift): Likewise.
7396 (vectorizable_operation): Likewise.
7398 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
7401 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
7402 Add general_gr_operand predicate to operand 3.
7404 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
7406 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
7407 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
7409 2021-08-06 Tamar Christina <tamar.christina@arm.com>
7411 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
7412 register_svprfop): Pass vec<> by pointer.
7413 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
7414 * langhooks.c (lhd_simulate_enum_decl): Likewise.
7415 * langhooks.h (struct lang_hooks_for_types): Likewise.
7417 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
7419 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
7420 __builtin_memcpy instead of constructing an additional
7421 __builtin_aarch64_simd_oi one vector at a time.
7422 (vst1q_bf16_x2): Likewise.
7423 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
7424 an additional __builtin_aarch64_simd_ci one vector at a time.
7425 (vst1q_bf16_x3): Likewise.
7426 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
7427 (vst1q_bf16_x4): Likewise.
7428 (vst2_bf16): Use __builtin_memcpy instead of constructing an
7429 additional __builtin_aarch64_simd_oi one vector at a time.
7430 (vst2q_bf16): Likewise.
7431 (vst3_bf16): Use __builtin_memcpy instead of constructing an
7432 additional __builtin_aarch64_simd_ci mode one vector at a
7434 (vst3q_bf16): Likewise.
7435 (vst4_bf16): Use __builtin_memcpy instead of constructing an
7436 additional __builtin_aarch64_simd_xi one vector at a time.
7437 (vst4q_bf16): Likewise.
7439 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
7441 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
7442 (__ST2Q_LANE_FUNC): Delete.
7443 (vst2_lane_f16): Use __builtin_memcpy to copy vector
7444 structure instead of constructing __builtin_aarch64_simd_oi
7445 one vector at a time.
7446 (vst2_lane_f32): Likewise.
7447 (vst2_lane_f64): Likewise.
7448 (vst2_lane_p8): Likewise.
7449 (vst2_lane_p16): Likewise.
7450 (vst2_lane_p64): Likewise.
7451 (vst2_lane_s8): Likewise.
7452 (vst2_lane_s16): Likewise.
7453 (vst2_lane_s32): Likewise.
7454 (vst2_lane_s64): Likewise.
7455 (vst2_lane_u8): Likewise.
7456 (vst2_lane_u16): Likewise.
7457 (vst2_lane_u32): Likewise.
7458 (vst2_lane_u64): Likewise.
7459 (vst2_lane_bf16): Likewise.
7460 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
7461 structure instead of using a union.
7462 (vst2q_lane_f32): Likewise.
7463 (vst2q_lane_f64): Likewise.
7464 (vst2q_lane_p8): Likewise.
7465 (vst2q_lane_p16): Likewise.
7466 (vst2q_lane_p64): Likewise.
7467 (vst2q_lane_s8): Likewise.
7468 (vst2q_lane_s16): Likewise.
7469 (vst2q_lane_s32): Likewise.
7470 (vst2q_lane_s64): Likewise.
7471 (vst2q_lane_u8): Likewise.
7472 (vst2q_lane_u16): Likewise.
7473 (vst2q_lane_u32): Likewise.
7474 (vst2q_lane_u64): Likewise.
7475 (vst2q_lane_bf16): Likewise.
7477 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
7479 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
7480 (__ST3Q_LANE_FUNC): Delete.
7481 (vst3_lane_f16): Use __builtin_memcpy to copy vector
7482 structure instead of constructing __builtin_aarch64_simd_ci
7483 one vector at a time.
7484 (vst3_lane_f32): Likewise.
7485 (vst3_lane_f64): Likewise.
7486 (vst3_lane_p8): Likewise.
7487 (vst3_lane_p16): Likewise.
7488 (vst3_lane_p64): Likewise.
7489 (vst3_lane_s8): Likewise.
7490 (vst3_lane_s16): Likewise.
7491 (vst3_lane_s32): Likewise.
7492 (vst3_lane_s64): Likewise.
7493 (vst3_lane_u8): Likewise.
7494 (vst3_lane_u16): Likewise.
7495 (vst3_lane_u32): Likewise.
7496 (vst3_lane_u64): Likewise.
7497 (vst3_lane_bf16): Likewise.
7498 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
7499 structure instead of using a union.
7500 (vst3q_lane_f32): Likewise.
7501 (vst3q_lane_f64): Likewise.
7502 (vst3q_lane_p8): Likewise.
7503 (vst3q_lane_p16): Likewise.
7504 (vst3q_lane_p64): Likewise.
7505 (vst3q_lane_s8): Likewise.
7506 (vst3q_lane_s16): Likewise.
7507 (vst3q_lane_s32): Likewise.
7508 (vst3q_lane_s64): Likewise.
7509 (vst3q_lane_u8): Likewise.
7510 (vst3q_lane_u16): Likewise.
7511 (vst3q_lane_u32): Likewise.
7512 (vst3q_lane_u64): Likewise.
7513 (vst3q_lane_bf16): Likewise.
7515 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
7517 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
7518 (__ST4Q_LANE_FUNC): Delete.
7519 (vst4_lane_f16): Use __builtin_memcpy to copy vector
7520 structure instead of constructing __builtin_aarch64_simd_xi
7521 one vector at a time.
7522 (vst4_lane_f32): Likewise.
7523 (vst4_lane_f64): Likewise.
7524 (vst4_lane_p8): Likewise.
7525 (vst4_lane_p16): Likewise.
7526 (vst4_lane_p64): Likewise.
7527 (vst4_lane_s8): Likewise.
7528 (vst4_lane_s16): Likewise.
7529 (vst4_lane_s32): Likewise.
7530 (vst4_lane_s64): Likewise.
7531 (vst4_lane_u8): Likewise.
7532 (vst4_lane_u16): Likewise.
7533 (vst4_lane_u32): Likewise.
7534 (vst4_lane_u64): Likewise.
7535 (vst4_lane_bf16): Likewise.
7536 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
7537 structure instead of using a union.
7538 (vst4q_lane_f32): Likewise.
7539 (vst4q_lane_f64): Likewise.
7540 (vst4q_lane_p8): Likewise.
7541 (vst4q_lane_p16): Likewise.
7542 (vst4q_lane_p64): Likewise.
7543 (vst4q_lane_s8): Likewise.
7544 (vst4q_lane_s16): Likewise.
7545 (vst4q_lane_s32): Likewise.
7546 (vst4q_lane_s64): Likewise.
7547 (vst4q_lane_u8): Likewise.
7548 (vst4q_lane_u16): Likewise.
7549 (vst4q_lane_u32): Likewise.
7550 (vst4q_lane_u64): Likewise.
7551 (vst4q_lane_bf16): Likewise.
7553 2021-08-06 Martin Liska <mliska@suse.cz>
7555 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
7556 a target option is restored, it can have
7557 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
7558 and error should not be emitted.
7560 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7562 * gcov-io.h (gcov_write): Declare.
7563 * gcov-io.c (gcov_write): New.
7564 (gcov_write_counter): Remove.
7565 (gcov_write_tag_length): Likewise.
7566 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
7567 gcov_write_unsigned().
7568 * doc/invoke.texi (fprofile-info-section): Mention
7569 __gcov_info_to_gdca().
7571 2021-08-06 Martin Sebor <msebor@redhat.com>
7573 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
7574 arguments to by-reference.
7575 (iterate_fix_dominators): Same.
7576 * dominance.h (iterate_fix_dominators): Same.
7577 * ipa-prop.h: Call auto_vec::to_vec_legacy.
7578 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
7579 arguments to by-reference.
7580 (debug_data_dependence_relation): Same.
7581 (dump_data_dependence_relations): Same.
7582 * tree-data-ref.h (debug_data_dependence_relation): Same.
7583 (dump_data_dependence_relations): Same.
7584 * tree-predcom.c (dump_chains): Same.
7585 (initialize_root_vars_lm): Same.
7586 (determine_unroll_factor): Same.
7587 (replace_phis_by_defined_names): Same.
7588 (insert_init_seqs): Same.
7589 (pcom_worker::tree_predictive_commoning_loop): Call
7590 auto_vec::to_vec_legacy.
7591 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
7592 arguments to by-reference.
7593 * tree-ssa-threadbackward.c (populate_worklist): Same.
7594 (back_threader::resolve_def): Same.
7595 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
7596 (vect_enhance_data_refs_alignment): Same.
7597 (vect_check_lower_bound): Same.
7598 (vect_prune_runtime_alias_test_list): Same.
7599 (vect_permute_store_chain): Same.
7600 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
7601 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
7602 * tree-vectorizer.h (vect_permute_store_chain): Same.
7603 * vec.c (test_init): New function.
7604 (vec_c_tests): Call new function.
7605 * vec.h (vec): Declare ctors, dtor, and assignment.
7606 (auto_vec::vec_to_legacy): New function.
7607 (vec::copy): Adjust initialization.
7609 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
7612 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
7613 callee only uses GPRs.
7614 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
7615 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
7616 * config/i386/x86gprintrin.h: Add
7617 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
7618 to disable non-GPR ISAs.
7620 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
7622 PR middle-end/101787
7623 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
7625 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
7627 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
7628 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
7629 (vect_is_extending_load, vect_is_integer_truncation): New functions,
7630 moved from aarch64.c but given different names.
7631 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
7632 (aarch64_is_reduction, aarch64_reduc_type)
7633 (aarch64_embedded_comparison_type, aarch64_comparison_type)
7634 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
7635 in favor of the above. Update callers accordingly.
7637 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
7640 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
7641 writing .cpu directive in asm output.
7642 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
7643 (arm_last_printed_arch_string): Delete.
7644 (arm_last-printed_fpu_string): Delete.
7645 (arm_configure_build_target): If use of floating-point/SIMD is
7646 disabled, remove all fp/simd related features from the target ISA.
7647 (last_arm_targ_options): New variable.
7648 (arm_print_asm_arch_directives): Add new parameters. Change order
7649 of emitted directives and handle all cases here.
7650 (arm_file_start): Always call arm_print_asm_arch_directives, move
7651 all generation of .arch/.arch_extension here.
7652 (arm_file_end): Call arm_print_asm_arch.
7653 (arm_declare_function_name): Call arm_print_asm_arch_directives
7654 instead of printing .arch/.fpu directives directly.
7656 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
7658 * config/arm/arm.c (arm_configure_build_target): Don't call
7659 arm_option_reconfigure_globals.
7660 (arm_option_restore): Call arm_option_reconfigure_globals after
7661 reconfiguring the target.
7662 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
7664 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
7666 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
7667 arch_name is always set.
7669 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
7671 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
7672 of vec_select high-half from being added into Neon subtract
7675 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
7677 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
7678 of vec_select high-half from being added into Neon add cost.
7680 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
7682 * cfgloop.h (loops_list::loops_list): Add one optional argument
7683 root and adjust accordingly, update loop tree walking and factor
7685 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
7687 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
7689 PR tree-optimization/101626
7690 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
7691 reverse scalar storage order on a pointer or vector component.
7693 2021-08-05 liuhongt <hongtao.liu@intel.com>
7695 * config/i386/sse.md (cond_<code><mode>): New expander.
7697 2021-08-05 liuhongt <hongtao.liu@intel.com>
7699 * config/i386/sse.md (cond_<code><mode>): New expander.
7701 2021-08-05 liuhongt <hongtao.liu@intel.com>
7703 * config/i386/sse.md (cond_<code><mode>): New expander.
7705 2021-08-04 David Malcolm <dmalcolm@redhat.com>
7708 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
7710 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
7713 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
7714 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
7716 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
7719 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
7720 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
7721 data with SSE register from one memory location to another.
7723 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
7725 * config/s390/s390.c (expand_perm_with_vpdi): New function.
7726 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
7727 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
7728 parameterized expander.
7729 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
7731 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
7733 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
7734 (struct expand_vec_perm_d): Define struct.
7735 (expand_perm_with_merge): New function.
7736 (vectorize_vec_perm_const_1): New function.
7737 (s390_vectorize_vec_perm_const): New function.
7738 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
7740 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
7742 * config/s390/vector.md (V_HW_64): Remove mode iterator.
7743 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
7744 * config/s390/vx-builtins.md
7745 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
7748 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
7750 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
7752 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
7754 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
7755 instead of an unspec.
7757 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
7759 * config/s390/s390-modes.def: Add more vector modes to support
7760 concatenation of two vectors.
7761 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
7763 (s390_expand_merge): Likewise.
7764 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
7765 (s390_expand_merge): New function.
7766 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
7767 Remove constant definitions.
7768 * config/s390/vector.md (V_HW_2): Add mode iterators.
7769 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
7770 (vec_2x_nelts, vec_2x_wide): New mode attributes.
7771 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
7772 New pattern definitions.
7773 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
7774 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
7775 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
7776 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
7778 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
7780 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
7781 emit vec merge pattern.
7783 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
7785 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
7787 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
7788 vec_select high-half from being added into Neon multiply
7790 * rtlanal.c (vec_series_highpart_p): Define.
7791 * rtlanal.h (vec_series_highpart_p): Declare.
7793 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
7795 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
7797 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
7798 vec_select cost from being added into Neon multiply cost.
7800 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
7802 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
7803 which old_loop_vinfo is an epilogue loop that handles a constant
7804 number of iterations.
7806 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
7808 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
7809 when a reanalyzed loop fails to be cheaper than the current
7812 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
7814 * config/aarch64/aarch64.c: Fix a typo.
7816 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
7818 PR gcov-profile/101773
7819 * gcov-io.c (gcov_close): Check return code of a fclose.
7821 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7824 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
7825 .file statement when needed.
7827 2021-08-04 Richard Biener <rguenther@suse.de>
7829 * tree-vect-data-refs.c (vect_check_gather_scatter):
7830 Include widening conversions only when the result is
7831 still handed by native gather or the current offset
7832 size not already matches the data size.
7833 Also succeed analysis in case there's no native support,
7834 noted by a IFN_LAST ifn and a NULL decl.
7835 (vect_analyze_data_refs): Always consider gathers.
7836 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
7837 Test for no IFN gather rather than decl gather.
7838 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
7839 gather-scatter info and cost emulated gathers accordingly.
7840 (vect_truncate_gather_scatter_offset): Properly test for
7842 (vect_use_strided_gather_scatters_p): Likewise.
7843 (get_load_store_type): Handle emulated gathers and its
7845 (vectorizable_load): Likewise. Emulate them by extracting
7846 scalar offsets, doing scalar loads and a vector construct.
7848 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
7851 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
7852 argument to set m_max_size.
7853 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
7854 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
7855 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
7857 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
7858 Marc Glisse <marc.glisse@inria.fr>
7860 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
7861 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
7862 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
7864 2021-08-04 Richard Biener <rguenther@suse.de>
7866 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
7867 out code to decompose vector loads ...
7868 (optimize_vector_load): ... here. Generalize it to
7869 handle intermediate widening and TARGET_MEM_REF loads
7870 and apply it to loads with a supported vector mode as well.
7872 2021-08-04 Richard Biener <rguenther@suse.de>
7874 PR tree-optimization/101756
7875 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
7876 the result of the reduction epilogue is compatible to the original
7879 2021-08-04 liuhongt <hongtao.liu@intel.com>
7882 * config/i386/i386.md (peephole2): Refine predicate from
7883 register_operand to general_reg_operand.
7885 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
7887 * gimple-range-path.h (path_range_query::dump): Mark override.
7889 2021-08-04 Richard Biener <rguenther@suse.de>
7891 PR tree-optimization/101769
7892 * tree-tailcall.c (eliminate_tail_call): Add the created loop
7893 for the first recursion and return it via the new output parameter.
7894 (optimize_tail_call): Pass through new output param.
7895 (tree_optimize_tail_calls_1): After creating all latches,
7896 add the created loop to the loop tree. Do not mark loops for fixup.
7898 2021-08-04 Martin Liska <mliska@suse.cz>
7900 * doc/invoke.texi: Document threader-mode param.
7902 2021-08-04 liuhongt <hongtao.liu@intel.com>
7904 * config/i386/sse.md (cond_fma<mode>): New expander.
7905 (cond_fms<mode>): Ditto.
7906 (cond_fnma<mode>): Ditto.
7907 (cond_fnms<mode>): Ditto.
7909 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
7911 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
7913 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
7915 * config/rs6000/constraints.md: Remove "e" from the list of available
7916 constraint characters.
7918 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
7920 PR gcov-profile/71672
7921 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
7923 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
7925 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
7927 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
7929 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
7930 try XMM31 to avoid vzeroupper.
7932 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
7934 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
7935 -mcpu=neoverse-512tvb.
7936 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
7937 * config/aarch64/aarch64-tune.md: Regenerate.
7938 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
7939 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
7940 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
7941 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
7942 (aarch64_adjust_body_cost): Likewise.
7944 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
7946 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
7947 record issue information for operations that occur in the
7950 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
7952 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
7953 parameter. Detect cases in which an Advanced SIMD MLA would almost
7954 certainly require a MOV.
7955 (aarch64_count_ops): Update accordingly.
7957 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
7959 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
7960 function, split out from...
7961 (aarch64_detect_vector_stmt_subtype): ...here.
7962 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
7964 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
7966 * config/aarch64/aarch64-protos.h (sve_vec_cost):
7967 Add gather_load_x32_cost and gather_load_x64_cost.
7968 * config/aarch64/aarch64.c (generic_sve_vector_cost)
7969 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
7970 accordingly, using the values given by the scalar_load * number
7971 of elements calculation that we used previously.
7972 (aarch64_detect_vector_stmt_subtype): Use the new fields.
7974 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
7976 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
7977 function, split out from...
7978 (aarch64_adjust_body_cost): ...here.
7980 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
7982 * config/aarch64/fractional-cost.h: New file.
7983 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
7984 and cost_fraction.h.
7985 (vec_cost_fraction): New typedef.
7986 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
7987 (aarch64_detect_vector_stmt_subtype): Likewise.
7988 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
7989 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
7991 (aarch64_adjust_body_cost): Likewise.
7992 (aarch64_test_cost_fraction): New function.
7993 (aarch64_run_selftests): Call it.
7995 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
7997 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
7999 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
8001 (aarch64_estimated_poly_value): Likewise. Use the least significant
8002 set bit for the minimum and likely values. Use the most significant
8003 set bit for the maximum value.
8005 2021-08-03 liuhongt <hongtao.liu@intel.com>
8007 * config/i386/sse.md (cond_<insn><mode>): New expander.
8008 (cond_mul<mode>): Ditto.
8010 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
8012 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
8014 2021-08-03 liuhongt <hongtao.liu@intel.com>
8016 * config/i386/sse.md (cond_<insn><mode>):New expander.
8017 (cond_mul<mode>): Ditto.
8018 (cond_div<mode>): Ditto.
8020 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
8022 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
8023 check stack_realign_needed for stack realignment.
8024 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
8025 than the largest integer supported by vector register.
8026 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
8027 (MOVE_MAX): Set to bytes of the largest integer supported by
8029 (STORE_MAX_PIECES): New.
8031 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
8033 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
8034 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
8035 data from one memory location to another.
8037 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
8040 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
8042 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
8044 PR tree-optimization/101724
8045 * params.opt: Remove --param=threader-iterative.
8046 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
8049 2021-08-02 Tom de Vries <tdevries@suse.de>
8051 PR middle-end/101665
8052 * doc/extend.texi (nonnull attribute): Improve documentation.
8054 2021-08-02 Andrew Pinski <apinski@marvell.com>
8056 PR rtl-optimization/101683
8057 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
8059 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
8061 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
8062 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
8063 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
8064 (tree_ssa_phiop_worker): Update call to function above.
8066 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
8069 * config/i386/i386.md (bsr_rex64_1_zext): New.
8070 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
8071 with gen_bsr_rex64_1_zext.
8073 2021-07-31 Jakub Jelinek <jakub@redhat.com>
8076 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
8077 define_insn patterns.
8078 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
8079 Add combine splitters for constant - clz.
8080 (clz<mode>2): Use a temporary pseudo for bsr result.
8082 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
8084 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
8085 _mm_floor_sd, _mm_floor_ss): New.
8087 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
8089 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
8090 _mm_ceil_sd, _mm_ceil_ss): New.
8092 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
8094 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
8095 _mm_blend_ps, _mm_blendv_ps): New.
8097 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
8098 Uroš Bizjak <ubizjak@gmail.com>
8100 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
8101 to generate a conditional move using the carry flag after sub $1.
8102 (peephole2): Eliminate a register-to-register move by inverting
8103 the condition of a conditional move.
8105 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
8107 * config/mmix/mmix.md ("call", "call_value", "*call_real")
8108 ("*call_value_real"): Don't generate rtx mentioning the generic
8109 operands 1 and 2 to "call", and similarly for "call_value".
8110 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
8111 (mmix_print_operand): Use '!' instead of 'p'.
8113 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
8115 * doc/md.texi (call): Correct information about operand 2.
8116 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
8118 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
8120 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
8122 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
8124 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
8126 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
8128 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
8130 (*::get_bb_range): Ditto.
8131 (*::bb_range_p): Ditto.
8132 * gimple-range-cache.h: Change prototypes.
8134 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
8137 * builtins.c (builtin_memcpy_read_str): Change the mode argument
8138 from scalar_int_mode to fixed_size_mode.
8139 (builtin_strncpy_read_str): Likewise.
8140 (gen_memset_value_from_prev): New function.
8141 (builtin_memset_read_str): Change the mode argument from
8142 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
8143 and support CONST_VECTOR.
8144 (builtin_memset_gen_str): Likewise.
8145 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
8147 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
8148 with fixed_size_mode.
8149 (builtin_memset_read_str): Likewise.
8150 * expr.c (widest_int_mode_for_size): Renamed to ...
8151 (widest_fixed_size_mode_for_size): Add a bool argument to
8152 indicate if QI vector mode can be used.
8153 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
8154 instead of widest_int_mode_for_size.
8155 (pieces_addr::adjust): Change the mode argument from
8156 scalar_int_mode to fixed_size_mode.
8157 (op_by_pieces_d): Make m_len read-only. Add a bool member,
8158 m_qi_vector_mode, to indicate that QI vector mode can be used.
8159 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
8160 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
8161 instead of widest_int_mode_for_size.
8162 (op_by_pieces_d::get_usable_mode): Change the mode argument from
8163 scalar_int_mode to fixed_size_mode. Call
8164 widest_fixed_size_mode_for_size instead of
8165 widest_int_mode_for_size.
8166 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
8167 function to return the smallest integer or QI vector mode.
8168 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
8169 instead of widest_int_mode_for_size. Call
8170 smallest_fixed_size_mode_for_size instead of
8171 smallest_int_mode_for_size.
8172 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
8173 indicate that QI vector mode can be used and pass it to
8174 op_by_pieces_d::op_by_pieces_d.
8175 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
8176 instead of widest_int_mode_for_size. Pass memsetp to
8177 widest_fixed_size_mode_for_size to support QI vector mode.
8178 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
8179 (store_by_pieces): Pass memsetp to
8180 store_by_pieces_d::store_by_pieces_d.
8181 (clear_by_pieces_1): Removed.
8182 (clear_by_pieces): Replace clear_by_pieces_1 with
8183 builtin_memset_read_str and pass true to store_by_pieces_d to
8184 support vector mode broadcast.
8185 (string_cst_read_str): Change the mode argument from
8186 scalar_int_mode to fixed_size_mode.
8187 * expr.h (by_pieces_constfn): Change scalar_int_mode to
8189 (by_pieces_prev): Likewise.
8190 * rtl.h (lowpart_subreg_regno): New.
8191 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
8192 simplify_subreg_regno.
8193 * target.def (gen_memset_scratch_rtx): New hook.
8194 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
8195 * doc/tm.texi: Regenerated.
8197 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
8200 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
8201 TARGET_EXPR instead of MODIFY_EXPR.
8203 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
8206 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
8207 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
8208 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
8210 (vec_cmpu<IMSA:mode><mode_i>): New expander.
8212 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
8215 * config/i386/i386-options.c (ix86_option_override_internal):
8216 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
8218 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
8221 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
8222 explicitly dereferencing __a.
8223 (vld1_s64): Likewise.
8224 (vld1_u64): Likewise.
8225 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
8226 and change to VAR13.
8228 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
8230 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
8231 use of m_range_analyzer.
8232 (loop_versioning::lv_dom_walker::before_dom_children): Same.
8233 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
8234 (loop_versioning::prune_loop_conditions): Replace vr_values use
8235 with range_query interface.
8236 (pass_loop_versioning::execute): Use ranger.
8238 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
8241 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
8242 enum values, and emit a warning if they mismatch.
8244 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
8246 * cfgloop.h (as_const): New function.
8247 (class loop_iterator): Rename to ...
8248 (class loops_list): ... this.
8249 (loop_iterator::next): Rename to ...
8250 (loops_list::Iter::fill_curr_loop): ... this and adjust.
8251 (loop_iterator::loop_iterator): Rename to ...
8252 (loops_list::loops_list): ... this and adjust.
8253 (loops_list::Iter): New class.
8254 (loops_list::iterator): New type.
8255 (loops_list::const_iterator): New type.
8256 (loops_list::begin): New function.
8257 (loops_list::end): Likewise.
8258 (loops_list::begin const): Likewise.
8259 (loops_list::end const): Likewise.
8260 (FOR_EACH_LOOP): Remove.
8261 (FOR_EACH_LOOP_FN): Remove.
8262 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
8263 for loop with loops_list instance.
8264 (sort_sibling_loops): Likewise.
8265 (disambiguate_loops_with_multiple_latches): Likewise.
8266 (verify_loop_structure): Likewise.
8267 * cfgloopmanip.c (create_preheaders): Likewise.
8268 (force_single_succ_latches): Likewise.
8269 * config/aarch64/falkor-tag-collision-avoidance.c
8270 (execute_tag_collision_avoidance): Likewise.
8271 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
8272 * config/s390/s390.c (s390_adjust_loops): Likewise.
8273 * doc/loop.texi: Likewise.
8274 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
8275 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
8276 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
8277 (loop_versioning::make_versioning_decisions): Likewise.
8278 * gimple-ssa-split-paths.c (split_paths): Likewise.
8279 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
8280 * graphite.c (canonicalize_loop_form): Likewise.
8281 (graphite_transform_loops): Likewise.
8282 * ipa-fnsummary.c (analyze_function_body): Likewise.
8283 * ipa-pure-const.c (analyze_function): Likewise.
8284 * loop-doloop.c (doloop_optimize_loops): Likewise.
8285 * loop-init.c (loop_optimizer_finalize): Likewise.
8286 (fix_loop_structure): Likewise.
8287 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
8288 (move_loop_invariants): Likewise.
8289 * loop-unroll.c (decide_unrolling): Likewise.
8290 (unroll_loops): Likewise.
8291 * modulo-sched.c (sms_schedule): Likewise.
8292 * predict.c (predict_loops): Likewise.
8293 (pass_profile::execute): Likewise.
8294 * profile.c (branch_prob): Likewise.
8295 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
8296 (sel_find_rgns): Likewise.
8297 * tree-cfg.c (replace_loop_annotate): Likewise.
8298 (replace_uses_by): Likewise.
8299 (move_sese_region_to_fn): Likewise.
8300 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
8301 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
8302 * tree-parloops.c (parallelize_loops): Likewise.
8303 * tree-predcom.c (tree_predictive_commoning): Likewise.
8304 * tree-scalar-evolution.c (scev_initialize): Likewise.
8305 (scev_reset): Likewise.
8306 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
8307 * tree-ssa-live.c (remove_unused_locals): Likewise.
8308 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
8309 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
8310 (tree_ssa_lim_initialize): Likewise.
8311 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
8312 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
8313 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
8314 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
8315 (free_numbers_of_iterations_estimates): Likewise.
8316 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
8317 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
8318 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
8319 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
8320 (pass_scev_cprop::execute): Likewise.
8321 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
8322 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
8323 * tree-ssa-threadupdate.c
8324 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
8325 * tree-vectorizer.c (vectorize_loops): Likewise.
8326 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
8328 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
8330 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
8331 generating a VOIDmode register for e.g the
8332 function_arg_info::end_marker.
8334 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
8336 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
8337 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
8338 (cc mode_attr): Similarly.
8339 (ccz subst_attr): Similarly.
8340 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
8341 * config/h8300/testcompare.md: Remove various cc0 based patterns
8342 that had been commented out. Add pattern to set CCZ from a bit
8345 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
8346 Julian Brown <julian@codesourcery.com>
8347 Kwok Cheung Yeung <kcy@codesourcery.com>
8349 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
8350 'update_stmt' after modification.
8351 (pass_oacc_loop_designation): New function, extracted out of...
8352 (pass_oacc_device_lower): ... this.
8353 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
8354 (make_pass_oacc_loop_designation): New
8355 * passes.def: Add it.
8356 * tree-parloops.c (create_parallel_loop): Adjust.
8357 * tree-pass.h (make_pass_oacc_loop_designation): New.
8359 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
8361 * flag-types.h (enum threader_mode): New.
8362 * params.opt: Add entry for --param=threader-mode.
8363 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
8364 (class back_threader): New.
8365 (back_threader::back_threader): New.
8366 (back_threader::~back_threader): New.
8367 (back_threader::maybe_register_path): New.
8368 (back_threader::find_taken_edge): New.
8369 (back_threader::find_taken_edge_switch): New.
8370 (back_threader::find_taken_edge_cond): New.
8371 (back_threader::resolve_def): New.
8372 (back_threader::resolve_phi): New.
8373 (back_threader::find_paths_to_names): New.
8374 (back_threader::find_paths): New.
8377 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
8378 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
8379 (pass_thread_jumps::execute): Abstract out code...
8380 (try_thread_blocks): ...here.
8381 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
8382 Abstract out threading candidate code to...
8383 (single_succ_to_potentially_threadable_block): ...here.
8384 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
8386 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
8387 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
8388 Return bool from register_jump_thread.
8390 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
8392 * target.def: in0 and in1 do not need to be registers.
8393 * doc/tm.texi: Regenerate.
8395 2021-07-29 liuhongt <hongtao.liu@intel.com>
8398 * config/i386/i386.c (ix86_widen_mult_cost): New function.
8399 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
8402 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
8405 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
8406 (rs6000_preferred_doloop_mode): New hook.
8407 * doc/tm.texi: Regenerate.
8408 * doc/tm.texi.in: Add hook preferred_doloop_mode.
8409 * target.def (preferred_doloop_mode): New hook.
8410 * targhooks.c (default_preferred_doloop_mode): New hook.
8411 * targhooks.h (default_preferred_doloop_mode): New hook.
8412 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
8413 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
8414 and compute_doloop_base_on_mode.
8416 2021-07-28 Martin Sebor <msebor@redhat.com>
8418 PR middle-end/101494
8419 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
8420 and size computation.
8422 2021-07-28 Martin Sebor <msebor@redhat.com>
8424 PR middle-end/101601
8425 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
8427 Handle pointers to functions.
8429 2021-07-28 Martin Sebor <msebor@redhat.com>
8431 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
8432 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
8433 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
8434 (access_ref::access_ref): Same.
8435 (access_ref::phi): Same.
8436 (access_ref::get_ref): Same.
8437 (access_ref::size_remaining): Same.
8438 (access_ref::offset_in_range): Same.
8439 (access_ref::add_offset): Same.
8440 (access_ref::inform_access): Same.
8441 (ssa_name_limit_t::visit_phi): Same.
8442 (ssa_name_limit_t::leave_phi): Same.
8443 (ssa_name_limit_t::next): Same.
8444 (ssa_name_limit_t::next_phi): Same.
8445 (ssa_name_limit_t::~ssa_name_limit_t): Same.
8446 (pointer_query::pointer_query): Same.
8447 (pointer_query::get_ref): Same.
8448 (pointer_query::put_ref): Same.
8449 (pointer_query::flush_cache): Same.
8450 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
8451 (check_nul_terminated_array): Same.
8452 (unterminated_array): Same.
8453 (maybe_warn_for_bound): Same.
8454 (check_read_access): Same.
8455 (warn_for_access): Same.
8456 (get_size_range): Same.
8457 (check_access): Same.
8458 (gimple_call_alloc_size): Move to tree.c.
8459 (gimple_parm_array_size): Move to pointer-query.cc.
8460 (get_offset_range): Same.
8461 (gimple_call_return_array): Same.
8462 (handle_min_max_size): Same.
8463 (handle_array_ref): Same.
8464 (handle_mem_ref): Same.
8465 (compute_objsize): Same.
8466 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
8467 (call_dealloc_argno): Same.
8468 (fndecl_dealloc_argno): Same.
8469 (new_delete_mismatch_p): Same.
8470 (matching_alloc_calls_p): Same.
8471 (warn_dealloc_offset): Same.
8472 (maybe_emit_free_warning): Same.
8473 * builtins.h (check_nul_terminated_array): Move to
8474 gimple-ssa-warn-access.h.
8475 (check_nul_terminated_array): Same.
8476 (warn_string_no_nul): Same.
8477 (unterminated_array): Same.
8478 (class ssa_name_limit_t): Same.
8479 (class pointer_query): Same.
8480 (struct access_ref): Same.
8481 (class range_query): Same.
8482 (struct access_data): Same.
8483 (gimple_call_alloc_size): Same.
8484 (gimple_parm_array_size): Same.
8485 (compute_objsize): Same.
8486 (class access_data): Same.
8487 (maybe_emit_free_warning): Same.
8488 * calls.c (initialize_argument_information): Remove call to
8489 maybe_emit_free_warning.
8490 * gimple-array-bounds.cc: Include new header..
8491 * gimple-fold.c: Same.
8492 * gimple-ssa-sprintf.c: Same.
8493 * gimple-ssa-warn-restrict.c: Same.
8494 * passes.def: Add pass_warn_access.
8495 * tree-pass.h (make_pass_warn_access): Declare.
8496 * tree-ssa-strlen.c: Include new headers.
8497 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
8498 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
8499 * gimple-ssa-warn-access.cc: New file.
8500 * gimple-ssa-warn-access.h: New file.
8501 * pointer-query.cc: New file.
8502 * pointer-query.h: New file.
8504 2021-07-28 Jakub Jelinek <jakub@redhat.com>
8506 PR middle-end/101624
8507 * ubsan.c (maybe_instrument_pointer_overflow,
8508 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
8509 PARM_DECLs or RESULT_DECLs.
8510 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
8512 2021-07-28 Jakub Jelinek <jakub@redhat.com>
8514 PR middle-end/101642
8515 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
8516 to type of bswap16 for comparison.
8517 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
8519 2021-07-28 Richard Biener <rguenther@suse.de>
8521 PR tree-optimization/101615
8522 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
8523 at CTOR SLP graph entries.
8525 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8527 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
8528 Add "r,w" alternative.
8530 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
8533 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
8534 AVX_U128_DIRTY when all bits are zero.
8536 2021-07-28 Richard Biener <rguenther@suse.de>
8538 PR tree-optimization/101615
8539 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
8540 external nodes cannot be permuted so make them perm_out 0.
8542 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
8545 * config.in: Regenerate.
8546 * config/gcn/gcn-hsa.h (A_FIJI): New define.
8547 (A_900): New define.
8548 (A_906): New define.
8549 (A_908): New define.
8550 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
8551 * config/gcn/gcn.c (output_file_start): Adjust attributes according
8552 to the assembler capabilities.
8553 * config/gcn/mkoffload.c (main): Likewise.
8554 * configure: Regenerate.
8555 * configure.ac: Add tests for LLVM assembler attribute features.
8557 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
8559 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
8560 cond_false and cond_true on branches.
8562 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
8564 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
8567 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
8569 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
8571 2021-07-28 Jakub Jelinek <jakub@redhat.com>
8574 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
8575 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
8576 and has special !TARGET_AVX512VL expansion.
8577 (vashrv2di3<mask_name>): Rename to ...
8578 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
8579 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
8581 2021-07-28 Martin Uecker <muecker@gwdg.de>
8583 * calls.c (maybe_warn_rdwr_sizes): Correct argument
8584 numbers in warning that were switched.
8586 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
8588 PR tree-optimization/101596
8589 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
8590 by using new_type's precision instead.
8592 2021-07-28 liuhongt <hongtao.liu@intel.com>
8595 * config/i386/i386.h (processor_costs): Add new member
8597 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
8598 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
8599 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
8600 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
8601 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
8602 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
8603 generic_cost, core_cost): Initialize integer_to_sse same value
8605 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
8606 * config/i386/i386.c (ix86_builtin_vectorization_cost):
8607 Use integer_to_sse instead of sse_op to calculate the cost of
8610 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
8612 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
8614 (write_init_file): Call write_ovld_static_init.
8616 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
8618 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
8620 (write_init_file): Call write_bif_static_init.
8622 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
8624 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
8625 (TYPE_MAP_SIZE): New macro.
8626 (type_map): New initialized variable.
8627 (typemap_cmp): New function.
8628 (write_type_node): Likewise.
8629 (write_fntype_init): Implement.
8631 2021-07-27 Martin Sebor <msebor@redhat.com>
8633 PR tree-optimization/101584
8634 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
8635 (check_defs): Call it.
8637 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
8639 * tree-ssa-dom.c (dom_jump_threader_simplifier):
8640 Put avail_exprs_stack in the class, instead of passing it to
8641 jump_threader_simplifier.
8642 (dom_jump_threader_simplifier::simplify): Add state argument.
8643 (dom_opt_dom_walker): Add state.
8644 (pass_dominator::execute): Pass state to threader.
8645 (dom_opt_dom_walker::before_dom_children): Use state.
8646 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
8648 (jump_threader::record_temporary_equivalences_from_phis):
8649 Register equivalences through the state variable.
8650 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
8651 Record ranges in a statement through the state variable.
8652 (jump_threader::simplify_control_stmt_condition): Pass state to
8654 (jump_threader::simplify_control_stmt_condition_1): Same.
8655 (jump_threader::thread_around_empty_blocks): Remove obsolete
8657 (jump_threader::thread_through_normal_block): Record equivalences
8658 on edge through the state variable.
8659 (jump_threader::thread_across_edge): Abstract state pushing.
8660 (jt_state::jt_state): New.
8661 (jt_state::push): New.
8662 (jt_state::pop): New.
8663 (jt_state::register_equiv): New.
8664 (jt_state::record_ranges_from_stmt): New.
8665 (jt_state::register_equivs_on_edge): New.
8666 (jump_threader_simplifier::jump_threader_simplifier): Move from
8668 (jump_threader_simplifier::simplify): Add state argument.
8669 * tree-ssa-threadedge.h (class jt_state): New.
8670 (class jump_threader): Add state to constructor.
8671 (class jump_threader_simplifier): Add state to simplify. Remove
8672 avail_exprs_stack from class.
8673 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
8675 (vrp_jump_threader::vrp_jump_threader): Add state.
8676 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
8678 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
8680 * Makefile.in (OBJS): Add gimple-range-path.o.
8681 * gimple-range-path.cc: New file.
8682 * gimple-range-path.h: New file.
8684 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
8686 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
8687 inside vec_duplicate for all patterns.
8688 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
8689 Push sign/zero-extension inside vec_duplicate.
8691 2021-07-27 Richard Biener <rguenther@suse.de>
8693 PR tree-optimization/101573
8694 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
8695 looking at uninitialized PHI arg defs in some constrained cases.
8696 (warn_uninitialized_vars): Call it.
8697 (execute_early_warn_uninitialized): Calculate dominators.
8699 2021-07-27 Richard Biener <rguenther@suse.de>
8701 PR tree-optimization/39821
8702 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
8703 vector_stmt for widening arithmetic.
8704 (vectorizable_conversion): Adjust.
8706 2021-07-27 Martin Jambor <mjambor@suse.cz>
8708 * cgraph.h (ipa_replace_map): New field force_load_ref.
8709 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
8710 aded new flag load_dereferenced, adjusted comments.
8711 (ipa_get_param_dereferenced): New function.
8712 (ipa_set_param_dereferenced): Likewise.
8713 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
8714 * ipa-cp.c: Include gimple.h.
8715 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
8716 (get_replacement_map): New parameter force_load_ref, set the
8717 appropriate flag in ipa_replace_map if set.
8718 (struct symbol_and_index_together): New type.
8719 (adjust_refs_in_act_callers): New function.
8720 (adjust_references_in_caller): Likewise.
8721 (create_specialized_node): When appropriate, call
8722 adjust_references_in_caller and force only load references.
8723 * ipa-prop.c (load_from_dereferenced_name): New function.
8724 (ipa_analyze_controlled_uses): Also detect loads from a
8725 dereference, harden testing of call statements.
8726 (ipa_write_node_info): Stream the dereferenced flag.
8727 (ipa_read_node_info): Likewise.
8728 (ipa_set_jf_constant): Also create refdesc when jump function
8729 references a variable.
8730 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
8731 also on references of variables and return a symtab_node. Adjust
8733 (propagate_controlled_uses): Also remove references to VAR_DECLs.
8735 2021-07-27 Jakub Jelinek <jakub@redhat.com>
8737 PR middle-end/101586
8738 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
8739 positions above or equal to sz except for diagnostics of flexible
8742 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
8744 PR tree-optimization/78888
8745 * gimple-range-fold.cc (get_letter_range): New.
8746 (fold_using_range::range_of_builtin_call): Call get_letter_range.
8748 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
8750 PR tree-optimization/78888
8751 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
8752 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
8754 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
8755 Marc Glisse <marc.glisse@inria.fr>
8757 * match.pd (rotate): Simplify equality/inequality of rotations.
8758 (bswap): Simplify equality/inequality tests of byte swapping.
8760 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
8762 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
8765 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
8767 * range-op.cc (operator_lshift::fold_range): Pass rel to
8768 base class fold_range.
8769 (operator_rshift::fold_range): Same.
8771 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
8774 * toplev.h (min_align_loops_log): Remove declaration.
8775 (min_align_jumps_log, min_align_labels_log): Likewise.
8776 (min_align_functions_log): Likewise.
8778 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
8780 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
8782 (execute_vrp): Abstract out simplification of conditionals...
8783 (simplify_casted_conds): ...here.
8785 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
8787 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
8788 Add gimple argument.
8789 (array_bounds_checker::check_array_ref): Same.
8790 (array_bounds_checker::check_addr_expr): Same.
8791 (array_bounds_checker::check_array_bounds): Pass statement to
8792 check_array_bounds and check_addr_expr.
8793 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
8794 (check_addr_expr): Same.
8795 (get_value_range): Same.
8797 2021-07-26 Tamar Christina <tamar.christina@arm.com>
8799 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
8800 (sdot_prod, udot_prod): ... This.
8801 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
8803 (<sur>dot_prod<vsi2qi>): ... this.
8804 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
8805 Change operands order.
8806 (<sur>sadv16qi): Use new operands order.
8807 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
8808 vdotq_s32): Use new RTL ordering.
8810 2021-07-26 Tamar Christina <tamar.christina@arm.com>
8812 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
8813 aarch64_types_ternop_suss_qualifiers): New.
8814 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
8815 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
8816 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
8818 2021-07-23 Jakub Jelinek <jakub@redhat.com>
8820 PR rtl-optimization/101562
8821 * expmed.c (store_integral_bit_field): Only use movstrict_optab
8822 if the operand isn't paradoxical.
8824 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
8826 * gimple-array-bounds.h (class array_bounds_checker): Change
8827 ranges type to range_query.
8829 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
8831 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
8832 __builtin_memcpy instead of constructing
8833 __builtin_aarch64_simd_oi one vector at a time.
8834 (vst1_u64_x2): Likewise.
8835 (vst1_f64_x2): Likewise.
8836 (vst1_s8_x2): Likewise.
8837 (vst1_p8_x2): Likewise.
8838 (vst1_s16_x2): Likewise.
8839 (vst1_p16_x2): Likewise.
8840 (vst1_s32_x2): Likewise.
8841 (vst1_u8_x2): Likewise.
8842 (vst1_u16_x2): Likewise.
8843 (vst1_u32_x2): Likewise.
8844 (vst1_f16_x2): Likewise.
8845 (vst1_f32_x2): Likewise.
8846 (vst1_p64_x2): Likewise.
8847 (vst1q_s8_x2): Likewise.
8848 (vst1q_p8_x2): Likewise.
8849 (vst1q_s16_x2): Likewise.
8850 (vst1q_p16_x2): Likewise.
8851 (vst1q_s32_x2): Likewise.
8852 (vst1q_s64_x2): Likewise.
8853 (vst1q_u8_x2): Likewise.
8854 (vst1q_u16_x2): Likewise.
8855 (vst1q_u32_x2): Likewise.
8856 (vst1q_u64_x2): Likewise.
8857 (vst1q_f16_x2): Likewise.
8858 (vst1q_f32_x2): Likewise.
8859 (vst1q_f64_x2): Likewise.
8860 (vst1q_p64_x2): Likewise.
8862 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
8864 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
8865 __builtin_memcpy instead of constructing
8866 __builtin_aarch64_simd_ci one vector at a time.
8867 (vst1_u64_x3): Likewise.
8868 (vst1_f64_x3): Likewise.
8869 (vst1_s8_x3): Likewise.
8870 (vst1_p8_x3): Likewise.
8871 (vst1_s16_x3): Likewise.
8872 (vst1_p16_x3): Likewise.
8873 (vst1_s32_x3): Likewise.
8874 (vst1_u8_x3): Likewise.
8875 (vst1_u16_x3): Likewise.
8876 (vst1_u32_x3): Likewise.
8877 (vst1_f16_x3): Likewise.
8878 (vst1_f32_x3): Likewise.
8879 (vst1_p64_x3): Likewise.
8880 (vst1q_s8_x3): Likewise.
8881 (vst1q_p8_x3): Likewise.
8882 (vst1q_s16_x3): Likewise.
8883 (vst1q_p16_x3): Likewise.
8884 (vst1q_s32_x3): Likewise.
8885 (vst1q_s64_x3): Likewise.
8886 (vst1q_u8_x3): Likewise.
8887 (vst1q_u16_x3): Likewise.
8888 (vst1q_u32_x3): Likewise.
8889 (vst1q_u64_x3): Likewise.
8890 (vst1q_f16_x3): Likewise.
8891 (vst1q_f32_x3): Likewise.
8892 (vst1q_f64_x3): Likewise.
8893 (vst1q_p64_x3): Likewise.
8895 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
8898 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
8899 hard register when LRA is in progress.
8901 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
8903 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
8904 __builtin_memcpy instead of using a union.
8905 (vst1q_s8_x4): Likewise.
8906 (vst1_s16_x4): Likewise.
8907 (vst1q_s16_x4): Likewise.
8908 (vst1_s32_x4): Likewise.
8909 (vst1q_s32_x4): Likewise.
8910 (vst1_u8_x4): Likewise.
8911 (vst1q_u8_x4): Likewise.
8912 (vst1_u16_x4): Likewise.
8913 (vst1q_u16_x4): Likewise.
8914 (vst1_u32_x4): Likewise.
8915 (vst1q_u32_x4): Likewise.
8916 (vst1_f16_x4): Likewise.
8917 (vst1q_f16_x4): Likewise.
8918 (vst1_f32_x4): Likewise.
8919 (vst1q_f32_x4): Likewise.
8920 (vst1_p8_x4): Likewise.
8921 (vst1q_p8_x4): Likewise.
8922 (vst1_p16_x4): Likewise.
8923 (vst1q_p16_x4): Likewise.
8924 (vst1_s64_x4): Likewise.
8925 (vst1_u64_x4): Likewise.
8926 (vst1_p64_x4): Likewise.
8927 (vst1q_s64_x4): Likewise.
8928 (vst1q_u64_x4): Likewise.
8929 (vst1q_p64_x4): Likewise.
8930 (vst1_f64_x4): Likewise.
8931 (vst1q_f64_x4): Likewise.
8933 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
8935 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
8936 instead of constructing __builtin_aarch64_simd_oi one vector
8938 (vst2_u64): Likewise.
8939 (vst2_f64): Likewise.
8940 (vst2_s8): Likewise.
8941 (vst2_p8): Likewise.
8942 (vst2_s16): Likewise.
8943 (vst2_p16): Likewise.
8944 (vst2_s32): Likewise.
8945 (vst2_u8): Likewise.
8946 (vst2_u16): Likewise.
8947 (vst2_u32): Likewise.
8948 (vst2_f16): Likewise.
8949 (vst2_f32): Likewise.
8950 (vst2_p64): Likewise.
8951 (vst2q_s8): Likewise.
8952 (vst2q_p8): Likewise.
8953 (vst2q_s16): Likewise.
8954 (vst2q_p16): Likewise.
8955 (vst2q_s32): Likewise.
8956 (vst2q_s64): Likewise.
8957 (vst2q_u8): Likewise.
8958 (vst2q_u16): Likewise.
8959 (vst2q_u32): Likewise.
8960 (vst2q_u64): Likewise.
8961 (vst2q_f16): Likewise.
8962 (vst2q_f32): Likewise.
8963 (vst2q_f64): Likewise.
8964 (vst2q_p64): Likewise.
8966 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
8968 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
8969 instead of constructing __builtin_aarch64_simd_ci one vector
8971 (vst3_u64): Likewise.
8972 (vst3_f64): Likewise.
8973 (vst3_s8): Likewise.
8974 (vst3_p8): Likewise.
8975 (vst3_s16): Likewise.
8976 (vst3_p16): Likewise.
8977 (vst3_s32): Likewise.
8978 (vst3_u8): Likewise.
8979 (vst3_u16): Likewise.
8980 (vst3_u32): Likewise.
8981 (vst3_f16): Likewise.
8982 (vst3_f32): Likewise.
8983 (vst3_p64): Likewise.
8984 (vst3q_s8): Likewise.
8985 (vst3q_p8): Likewise.
8986 (vst3q_s16): Likewise.
8987 (vst3q_p16): Likewise.
8988 (vst3q_s32): Likewise.
8989 (vst3q_s64): Likewise.
8990 (vst3q_u8): Likewise.
8991 (vst3q_u16): Likewise.
8992 (vst3q_u32): Likewise.
8993 (vst3q_u64): Likewise.
8994 (vst3q_f16): Likewise.
8995 (vst3q_f32): Likewise.
8996 (vst3q_f64): Likewise.
8997 (vst3q_p64): Likewise.
8999 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
9001 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
9002 instead of constructing __builtin_aarch64_simd_xi one vector
9004 (vst4_u64): Likewise.
9005 (vst4_f64): Likewise.
9006 (vst4_s8): Likewise.
9007 (vst4_p8): Likewise.
9008 (vst4_s16): Likewise.
9009 (vst4_p16): Likewise.
9010 (vst4_s32): Likewise.
9011 (vst4_u8): Likewise.
9012 (vst4_u16): Likewise.
9013 (vst4_u32): Likewise.
9014 (vst4_f16): Likewise.
9015 (vst4_f32): Likewise.
9016 (vst4_p64): Likewise.
9017 (vst4q_s8): Likewise.
9018 (vst4q_p8): Likewise.
9019 (vst4q_s16): Likewise.
9020 (vst4q_p16): Likewise.
9021 (vst4q_s32): Likewise.
9022 (vst4q_s64): Likewise.
9023 (vst4q_u8): Likewise.
9024 (vst4q_u16): Likewise.
9025 (vst4q_u32): Likewise.
9026 (vst4q_u64): Likewise.
9027 (vst4q_f16): Likewise.
9028 (vst4q_f32): Likewise.
9029 (vst4q_f64): Likewise.
9030 (vst4q_p64): Likewise.
9032 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
9034 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
9035 instead of constructing __builtin_aarch64_simd_oi one vector
9037 (vtbx4_u8): Likewise.
9038 (vtbx4_p8): Likewise.
9040 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
9042 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
9043 instead of constructing __builtin_aarch64_simd_oi one vector
9045 (vtbl3_u8): Likewise.
9046 (vtbl3_p8): Likewise.
9047 (vtbl4_s8): Likewise.
9048 (vtbl4_u8): Likewise.
9049 (vtbl4_p8): Likewise.
9051 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
9053 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
9054 instead of constructing __builtin_aarch64_simd_oi one vector
9056 (vqtbx2_u8): Likewise.
9057 (vqtbx2_p8): Likewise.
9058 (vqtbx2q_s8): Likewise.
9059 (vqtbx2q_u8): Likewise.
9060 (vqtbx2q_p8): Likewise.
9061 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
9062 __builtin_aarch64_simd_ci one vector at a time.
9063 (vqtbx3_u8): Likewise.
9064 (vqtbx3_p8): Likewise.
9065 (vqtbx3q_s8): Likewise.
9066 (vqtbx3q_u8): Likewise.
9067 (vqtbx3q_p8): Likewise.
9068 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
9069 __builtin_aarch64_simd_xi one vector at a time.
9070 (vqtbx4_u8): Likewise.
9071 (vqtbx4_p8): Likewise.
9072 (vqtbx4q_s8): Likewise.
9073 (vqtbx4q_u8): Likewise.
9074 (vqtbx4q_p8): Likewise.
9076 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
9078 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
9079 instead of constructing __builtin_aarch64_simd_oi one vector
9081 (vqtbl2_u8): Likewise.
9082 (vqtbl2_p8): Likewise.
9083 (vqtbl2q_s8): Likewise.
9084 (vqtbl2q_u8): Likewise.
9085 (vqtbl2q_p8): Likewise.
9086 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
9087 __builtin_aarch64_simd_ci one vector at a time.
9088 (vqtbl3_u8): Likewise.
9089 (vqtbl3_p8): Likewise.
9090 (vqtbl3q_s8): Likewise.
9091 (vqtbl3q_u8): Likewise.
9092 (vqtbl3q_p8): Likewise.
9093 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
9094 __builtin_aarch64_simd_xi one vector at a time.
9095 (vqtbl4_u8): Likewise.
9096 (vqtbl4_p8): Likewise.
9097 (vqtbl4q_s8): Likewise.
9098 (vqtbl4q_u8): Likewise.
9099 (vqtbl4q_p8): Likewise.
9101 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
9104 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
9106 2021-07-22 Andrew Pinski <apinski@marvell.com>
9108 PR tree-optimization/10153
9109 * tree-tailcall.c (create_tailcall_accumulator):
9110 Don't call fold_convert as the type should be correct already.
9111 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
9112 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
9114 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
9116 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
9117 varying_p check for null/non-null check.
9119 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
9121 PR tree-optimization/101511
9122 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
9123 is in ssa2's equiv set, and don't trap if so.
9125 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
9127 PR tree-optimization/101497
9128 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
9131 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
9133 PR tree-optimization/101496
9134 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
9135 first, then vrp_visit_cond_Stmt.
9137 2021-07-22 liuhongt <hongtao.liu@intel.com>
9139 * config/i386/i386-expand.c
9140 (ix86_broadcast_from_integer_constant): Rename to ..
9141 (ix86_broadcast_from_constant): .. this, and extend it to
9143 (ix86_expand_vector_move): Extend to float mode.
9144 * config/i386/i386-features.c
9145 (replace_constant_pool_with_broadcast): Remove.
9146 (remove_partial_avx_dependency_gate): Ditto.
9147 (constant_pool_broadcast): Ditto.
9148 (class pass_constant_pool_broadcast): Ditto.
9149 (make_pass_constant_pool_broadcast): Ditto.
9150 (remove_partial_avx_dependency): Adjust gate.
9151 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
9152 * config/i386/i386-protos.h
9153 (make_pass_constant_pool_broadcast): Remove.
9155 2021-07-22 liuhongt <hongtao.liu@intel.com>
9157 * config/i386/constraints.md (Wb): New constraint.
9159 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
9161 (*ashlqi3_1): Ditto.
9162 (*<insn><mode>3_1): Split to ..
9163 (*ashr<mode>3_1): this, ...
9164 (*lshr<mode>3_1): and this, also extend this pattern to avx512
9166 (*<insn><mode>3_1): Split to ..
9167 (*ashr<mode>3_1): this, ...
9168 (*lshrqi3_1): and this, also extend this pattern to avx512
9170 (*lshrhi3_1): And this, also extend this pattern to avx512
9172 * config/i386/sse.md (k<code><mode>): New define_split after
9173 it to convert generic shift pattern to mask shift ones.
9175 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
9176 Joseph Myers <joseph@codesourcery.com>
9177 Cesar Philippidis <cesar@codesourcery.com>
9179 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
9180 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
9182 * tree-pretty-print.c (dump_omp_clause): Likewise.
9183 * omp-general.c (oacc_verify_routine_clauses): Likewise.
9184 * gimplify.c (gimplify_scan_omp_clauses)
9185 (gimplify_adjust_omp_clauses): Likewise.
9186 * tree-nested.c (convert_nonlocal_omp_clauses)
9187 (convert_local_omp_clauses): Likewise.
9188 * omp-low.c (scan_sharing_clauses): Likewise.
9189 * omp-offload.c (execute_oacc_device_lower): Update.
9191 2021-07-21 Martin Sebor <msebor@redhat.com>
9193 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
9195 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
9197 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
9200 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
9202 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
9204 (write_fntype_init): New stub function.
9205 (write_init_bif_table): Likewise.
9206 (write_init_ovld_table): New function.
9207 (write_init_file): Implement.
9209 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
9211 * config/rs6000/rs6000-gen-builtins.c
9212 (write_autogenerated_header): New function.
9213 (write_decls): Likewise.
9214 (write_extern_fntype): New callback function.
9215 (write_header_file): Implement.
9217 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
9219 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
9222 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
9224 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
9226 (complete_base_type): Likewise.
9227 (construct_fntype_id): Likewise.
9228 (parse_bif_entry): Call contruct_fntype_id.
9229 (parse_ovld_entry): Likewise.
9231 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
9233 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
9234 (MAXOVLDSTANZAS): New macro.
9235 (ovld_stanzas): New variable.
9236 (curr_ovld_stanza): Likewise.
9237 (MAXOVLDS): New macro.
9238 (ovlddata): New struct.
9239 (ovlds): New variable.
9240 (curr_ovld): Likewise.
9241 (max_ovld_args): Likewise.
9242 (parse_ovld_entry): New function.
9243 (parse_ovld_stanza): Likewise.
9244 (parse_ovld): Implement.
9246 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
9248 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
9251 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
9253 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
9254 (parse_prototype): Implement.
9256 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
9258 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
9259 (curr_bif_stanza): New variable.
9260 (stanza_entry): New struct.
9261 (stanza_map): New initialized variable.
9262 (enable_string): Likewise.
9263 (fnkinds): New enum.
9264 (typelist): New struct.
9265 (attrinfo): Likewise.
9266 (MAXRESTROPNDS): New macro.
9267 (prototype): New struct.
9268 (MAXBIFS): New macro.
9269 (bifdata): New struct.
9270 (bifs): New variable.
9271 (curr_bif): Likewise.
9272 (bif_order): Likewise.
9273 (bif_index): Likewise.
9274 (fatal): New function.
9275 (stanza_name_to_stanza): Likewise.
9276 (parse_bif_attrs): New stub function.
9277 (parse_prototype): Likewise.
9278 (parse_bif_entry): New function.
9279 (parse_bif_stanza): Likewise.
9280 (parse_bif): Implement.
9281 (set_bif_order): New function.
9282 (create_bif_order): Implement.
9284 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
9286 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
9287 (num_bifs): New variable.
9288 (num_ovld_stanzas): Likewise.
9289 (num_ovlds): Likewise.
9290 (parse_codes): New enum.
9291 (bif_rbt): New variable.
9292 (ovld_rbt): Likewise.
9293 (fntype_rbt): Likewise.
9294 (bifo_rbt): Likewise.
9295 (parse_bif): New stub function.
9296 (create_bif_order): Likewise.
9297 (parse_ovld): Likewise.
9298 (write_header_file): Likewise.
9299 (write_init_file): Likewise.
9300 (write_defines_file): Likewise.
9301 (delete_output_files): New function.
9304 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
9307 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
9308 from CRC32 _builtin functions.
9310 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
9312 * coverage.c (build_gcov_info_var_registration): Mark the object placed
9313 in the linker set as referenced so that it does not get optimized away.
9315 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
9318 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
9320 * config.gcc (riscv*-*-*): Detect which python is available.
9322 2021-07-21 Jakub Jelinek <jakub@redhat.com>
9324 PR middle-end/101535
9325 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
9326 contexts in which decl isn't privatized and for ORT_TARGET return
9327 false if decl is mapped.
9329 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
9331 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
9332 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
9333 has been successfully unrolled.
9335 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
9337 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
9338 exit condition if no tail loop is needed, and if the original exit
9339 condition should therefore be kept as-is.
9340 (tree_transform_and_unroll_loop): Handle that case here too.
9342 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
9344 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
9346 (free_data_refs): Likewise.
9347 * tree-data-ref.h (free_dependence_relations): Likewise.
9348 (free_data_refs): Likewise.
9349 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
9351 (struct component): Likewise.
9352 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
9353 (pcom_worker::~pcom_worker): Likewise.
9354 (pcom_worker::release_chain): Adjust as auto_vec changes.
9355 (pcom_worker::loop): Rename to ...
9356 (pcom_worker::m_loop): ... this.
9357 (pcom_worker::datarefs): Rename to ...
9358 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
9359 (pcom_worker::dependences): Rename to ...
9360 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
9361 (pcom_worker::chains): Rename to ...
9362 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
9363 (pcom_worker::looparound_phis): Rename to ...
9364 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
9366 (pcom_worker::cache): Rename to ...
9367 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
9368 (pcom_worker::release_chain): Adjust for auto_vec changes.
9369 (pcom_worker::release_chains): Adjust for auto_vec and renaming
9371 (release_component): Remove.
9372 (release_components): Adjust for release_component removal.
9373 (component_of): Adjust to use vec.
9374 (merge_comps): Likewise.
9375 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
9376 (pcom_worker::determine_offset): Likewise.
9377 (class comp_ptrs): Remove.
9378 (pcom_worker::split_data_refs_to_components): Adjust for renaming
9379 changes, for comp_ptrs removal with auto_vec.
9380 (pcom_worker::suitable_component_p): Adjust for renaming changes.
9381 (pcom_worker::filter_suitable_components): Adjust for release_component
9383 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
9384 (pcom_worker::find_looparound_phi): Likewise.
9385 (pcom_worker::add_looparound_copies): Likewise.
9386 (pcom_worker::determine_roots_comp): Likewise.
9387 (pcom_worker::single_nonlooparound_use): Likewise.
9388 (pcom_worker::execute_pred_commoning_chain): Likewise.
9389 (pcom_worker::execute_pred_commoning): Likewise.
9390 (pcom_worker::try_combine_chains): Likewise.
9391 (pcom_worker::prepare_initializers_chain): Likewise.
9392 (pcom_worker::prepare_initializers): Likewise.
9393 (pcom_worker::prepare_finalizers_chain): Likewise.
9394 (pcom_worker::prepare_finalizers): Likewise.
9395 (pcom_worker::tree_predictive_commoning_loop): Likewise.
9397 2021-07-20 Martin Sebor <msebor@redhat.com>
9399 PR middle-end/101397
9400 * builtins.c (gimple_call_return_array): Add argument. Correct
9401 offsets for memchr, mempcpy, stpcpy, and stpncpy.
9402 (compute_objsize_r): Adjust offset computation for argument returning
9405 2021-07-20 Martin Sebor <msebor@redhat.com>
9407 PR middle-end/101300
9408 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
9410 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
9412 * function.c (assign_parm_setup_block): Use adjust_address instead
9413 of change_address to preserve MEM_EXPR and friends.
9415 2021-07-20 Martin Sebor <msebor@redhat.com>
9417 * cfgloop.h (single_likely_exit): Adjust by-value argument to
9419 * cfgloopanal.c (single_likely_exit): Same.
9420 * cgraph.h (struct cgraph_node): Same.
9421 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
9422 * genautomata.c (merge_states): Same.
9423 * genextract.c (VEC_char_to_string): Same.
9424 * genmatch.c (dt_node::gen_kids_1): Same.
9425 (walk_captures): Adjust by-value argument to by-reference.
9426 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
9427 to by-const-reference.
9428 * gimple.c (gimple_build_call_vec): Same.
9429 (gimple_build_call_internal_vec): Same.
9430 (gimple_build_switch): Same.
9431 (sort_case_labels): Same.
9432 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
9434 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
9436 (gimple_build_call_internal_vec): Same.
9437 (gimple_build_switch): Same.
9438 (sort_case_labels): Same.
9439 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
9441 * haifa-sched.c (calc_priorities): Adjust by-value argument to
9443 (sched_init_luids): Same.
9444 (haifa_init_h_i_d): Same.
9445 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
9446 (adjust_callers_for_value_intersection): Adjust by-value argument to
9448 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
9450 (find_more_contexts_for_caller_subset): Same.
9451 (find_aggregate_values_for_callers_subset): Same.
9452 (copy_useful_known_contexts): Same.
9453 * ipa-fnsummary.c (remap_edge_summaries): Same.
9454 (remap_freqcounting_predicate): Same.
9455 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
9457 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
9458 to by-const-reference.
9459 * ipa-predicate.h (predicate::remap_after_inlining): Same.
9460 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
9461 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
9462 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
9463 * read-rtl.c (add_overload_instance): Same.
9464 * rtl.h (native_decode_rtx): Same.
9465 (native_decode_vector_rtx): Same.
9466 * sched-int.h (sched_init_luids): Same.
9467 (haifa_init_h_i_d): Same.
9468 * simplify-rtx.c (native_decode_vector_rtx): Same.
9469 (native_decode_rtx): Same.
9470 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
9471 (shrink_wrap_one_built_in_call_with_conds): Same.
9472 (shrink_wrap_conditional_dead_built_in_calls): Same.
9473 * tree-data-ref.c (create_runtime_alias_checks): Same.
9474 (compute_all_dependences): Same.
9475 * tree-data-ref.h (compute_all_dependences): Same.
9476 (create_runtime_alias_checks): Same.
9477 (index_in_loop_nest): Same.
9478 * tree-if-conv.c (mask_exists): Same.
9479 * tree-loop-distribution.c (class loop_distribution): Same.
9480 (loop_distribution::create_rdg_vertices): Same.
9481 (dump_rdg_partitions): Same.
9482 (debug_rdg_partitions): Same.
9483 (partition_contains_all_rw): Same.
9484 (loop_distribution::distribute_loop): Same.
9485 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
9486 (oacc_entry_exit_single_gang): Same.
9487 * tree-ssa-loop-im.c (hoist_memory_references): Same.
9488 (loop_suitable_for_sm): Same.
9489 * tree-ssa-loop-niter.c (bound_index): Same.
9490 * tree-ssa-reassoc.c (update_ops): Same.
9491 (swap_ops_for_binary_stmt): Same.
9492 (rewrite_expr_tree): Same.
9493 (rewrite_expr_tree_parallel): Same.
9494 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
9495 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
9496 * tree-ssa-structalias.c (process_all_all_constraints): Same.
9497 (make_constraints_to): Same.
9498 (handle_lhs_call): Same.
9499 (find_func_aliases_for_builtin_call): Same.
9500 (sort_fieldstack): Same.
9501 (check_for_overlaps): Same.
9502 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
9503 (vect_create_cond_for_unequal_addrs): Same.
9504 (vect_create_cond_for_lower_bounds): Same.
9505 (vect_create_cond_for_alias_checks): Same.
9506 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
9507 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
9508 (vect_make_slp_decision): Same.
9509 (vect_slp_bbs): Same.
9510 (duplicate_and_interleave): Same.
9511 (vect_transform_slp_perm_load): Same.
9512 (vect_schedule_slp): Same.
9513 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
9514 (vect_schedule_slp): Same.
9515 (duplicate_and_interleave): Same.
9516 * tree.c (build_vector_from_ctor): Same.
9517 (build_vector): Same.
9518 (check_vector_cst): Same.
9519 (check_vector_cst_duplicate): Same.
9520 (check_vector_cst_fill): Same.
9521 (check_vector_cst_stepped): Same.
9522 * tree.h (build_vector_from_ctor): Same.
9524 2021-07-20 Jakub Jelinek <jakub@redhat.com>
9527 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
9528 type from bool to int.
9529 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
9530 EASY_VECTOR_MSB case if either step or copies is not 1.
9531 (vspltis_shifted): Fix comment typo.
9532 (easy_altivec_constant): Change return type from bool to int, instead
9533 of returning true return byte size of the element mode that should be
9534 used to synthetize the constant.
9535 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
9536 that vspltis_shifted is 0, handle the case where easy_altivec_constant
9537 assumes using different vector mode from CONST_VECTOR's mode.
9538 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
9539 easy_altivec_constant to determine mode in which -1 >> -1 should be
9540 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
9542 2021-07-20 Richard Biener <rguenther@suse.de>
9545 * dwarf2out.h (dwarf_file_data): Add key member.
9546 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
9547 (dwarf_file_hasher::hash): Hash key.
9548 (lookup_filename): Remap the filename and store it in the
9549 filename member of dwarf_file_data when creating a new
9551 (file_name_acquire): Do not remap the filename again.
9552 (maybe_emit_file): Likewise.
9554 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
9556 * config/aarch64/aarch64-simd-builtins.def: Use two variant
9557 generators for all TBL/TBX intrinsics and rename to
9558 consistent forms: qtbl[1234] or qtbx[1234].
9559 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
9561 (aarch64_qtbl1<mode>): This.
9562 (aarch64_tbx1<mode>): Rename to...
9563 (aarch64_qtbx1<mode>): This.
9564 (aarch64_tbl2v16qi): Delete.
9565 (aarch64_tbl3<mode>): Rename to...
9566 (aarch64_qtbl2<mode>): This.
9567 (aarch64_tbx4<mode>): Rename to...
9568 (aarch64_qtbx2<mode>): This.
9569 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
9570 renamed qtbl1 and qtbl2 RTL patterns.
9571 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
9573 (vqtbl1_s8): Likewise.
9574 (vqtbl1_u8): Likewise.
9575 (vqtbl1q_p8): Likewise.
9576 (vqtbl1q_s8): Likewise.
9577 (vqtbl1q_u8): Likewise.
9578 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
9579 (vqtbx1_u8): Likewise.
9580 (vqtbx1_p8): Likewise.
9581 (vqtbx1q_s8): Likewise.
9582 (vqtbx1q_u8): Likewise.
9583 (vqtbx1q_p8): Likewise.
9584 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
9585 (vtbl1_u8): Likewise.
9586 (vtbl1_p8): Likewise.
9587 (vtbl2_s8): Likewise
9588 (vtbl2_u8): Likewise.
9589 (vtbl2_p8): Likewise.
9590 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
9591 (vtbl3_u8): Likewise.
9592 (vtbl3_p8): Likewise.
9593 (vtbl4_s8): Likewise.
9594 (vtbl4_u8): Likewise.
9595 (vtbl4_p8): Likewise.
9596 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
9597 (vtbx2_u8): Likewise.
9598 (vtbx2_p8): Likewise.
9599 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
9600 (vqtbl2_u8): Likewise.
9601 (vqtbl2_p8): Likewise.
9602 (vqtbl2q_s8): Likewise.
9603 (vqtbl2q_u8): Likewise.
9604 (vqtbl2q_p8): Likewise.
9605 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
9606 (vqtbx2_u8): Likewise.
9607 (vqtbx2_p8): Likewise.
9608 (vqtbx2q_s8): Likewise.
9609 (vqtbx2q_u8): Likewise.
9610 (vqtbx2q_p8): Likewise.
9611 (vtbx4_s8): Likewise.
9612 (vtbx4_u8): Likewise.
9613 (vtbx4_p8): Likewise.
9615 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
9618 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
9620 (define_peephole2 atomic_loaddi_fpu): Ditto.
9622 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
9624 * config.gcc (riscv*-*-*): Detect which python is available.
9626 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
9628 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
9629 (smul<mode>3_highpart): ... this.
9630 (mulhu_<mode>): Rename to...
9631 (umul<mode>3_highpart): ... this.
9632 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
9633 MULHU_V2DI, MULHU_V4SI): Adjust.
9635 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
9637 PR tree-optimization/100696
9638 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
9639 * internal-fn.def (IFN_MULH): New internal function.
9640 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
9641 recog normal multiply highpart as IFN_MULH.
9642 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
9645 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
9647 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
9648 (BTF_DEBUGGING_INFO): Likewise.
9649 * doc/tm.texi.in: Document the new macros.
9650 * doc/tm.texi: Regenerated.
9651 * toplev.c: Guard initialization of debug hooks.
9653 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
9655 * flags.h (ctf_debuginfo_p): New function declaration.
9656 * opts.c (ctf_debuginfo_p): New function definition.
9658 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
9661 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
9662 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
9663 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
9664 * config/gcn/gcn-valu.md: Add a warning comment.
9665 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
9666 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
9667 * config/gcn/gcn.md: Add a warning comment.
9668 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
9669 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
9671 (EF_AMDGPU_XNACK): New.
9672 (EF_AMDGPU_SRAM_ECC): New.
9674 (copy_early_debug_info): Use elf_flags.
9675 (main): Handle -mxnack and -msram-ecc options.
9676 * doc/invoke.texi: Document -mxnack and -msram-ecc.
9678 2021-07-19 Andrew Pinski <apinski@marvell.com>
9681 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
9682 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
9684 2021-07-19 Richard Biener <rguenther@suse.de>
9686 PR tree-optimization/101505
9687 * tree-vect-patterns.c (vect_determine_precisions): Walk
9688 PHIs also for loop vectorization.
9690 2021-07-19 Richard Biener <rguenther@suse.de>
9692 * gimple.h (gimple_expr_type): Remove.
9693 * doc/gimple.texi: Remove gimple_expr_type documentation.
9695 2021-07-19 Richard Biener <rguenther@suse.de>
9697 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
9698 (ao_ref_init_from_vn_reference): Likewise.
9699 (fully_constant_reference): Likewise.
9700 (vn_reference_lookup_call): Do not set vr->type to random
9702 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
9704 * tree-vect-generic.c (expand_vector_piecewise): Pass in
9705 whether we expanded parallel.
9706 (expand_vector_parallel): Adjust.
9707 (expand_vector_addition): Likewise.
9708 (expand_vector_comparison): Likewise.
9709 (expand_vector_operation): Likewise.
9710 (expand_vector_scalar_condition): Likewise.
9711 (expand_vector_conversion): Likewise.
9713 2021-07-19 Richard Biener <rguenther@suse.de>
9715 * tree-vrp.c (register_edge_assert_for_2): Use the
9717 (vrp_folder::fold_predicate_in): Likewise.
9718 * vr-values.c (gimple_assign_nonzero_p): Likewise.
9719 (vr_values::extract_range_from_comparison): Likewise.
9720 (vr_values::extract_range_from_ubsan_builtin): Use the
9721 type of the first operand.
9722 (vr_values::extract_range_basic): Push down type
9723 computation, use the appropriate LHS.
9724 (vr_values::extract_range_from_assignment): Use the
9727 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
9730 * common/config/i386/i386-common.c (ix86_handle_option): For
9731 -mgeneral-regs-only, enable the GPR only instructions which are
9732 enabled implicitly by SSE ISAs unless they have been disabled
9735 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
9738 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
9739 ix86_avx_u128_mode_needed.
9740 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
9741 returns AVX register.
9743 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
9745 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
9746 (handle_const_call): Liekise
9747 (handle_pure_call): Liekise
9749 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
9751 PR tree-optimization/96542
9752 * range-op.cc (range_operator::wi_fold_in_parts): New.
9753 (range_operator::fold_range): Call wi_fold_in_parts.
9754 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
9755 * range-op.h (wi_fold_in_parts): Add prototype.
9757 2021-07-16 David Malcolm <dmalcolm@redhat.com>
9759 * doc/analyzer.texi: Add __analyzer_dump_state.
9761 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
9763 * config/rs6000/rbtree.c: New file.
9764 * config/rs6000/rbtree.h: New file.
9766 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
9768 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
9769 (typeinfo): Add restr field.
9770 (match_bracketed_pair): New function.
9771 (match_const_restriction): Implement.
9773 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
9775 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
9777 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
9779 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
9780 (basetype): Likewise.
9781 (typeinfo): Likewise.
9782 (handle_pointer): New function.
9783 (match_basetype): New stub function.
9784 (match_const_restriction): Likewise.
9785 (match_type): New function.
9787 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
9789 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
9791 (advance_line): Likewise.
9792 (safe_inc_pos): Likewise.
9793 (match_identifier): Likewise.
9794 (match_integer): Likewise.
9795 (match_to_right_bracket): Likewise.
9797 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
9799 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
9800 (ovld_file): Likewise.
9801 (header_file): Likewise.
9802 (init_file): Likewise.
9803 (defines_file): Likewise.
9804 (pgm_path): Likewise.
9805 (bif_path): Likewise.
9806 (ovld_path): Likewise.
9807 (header_path): Likewise.
9808 (init_path): Likewise.
9809 (defines_path): Likewise.
9810 (LINELEN): New macro.
9811 (linebuf): New variable.
9815 (bif_diag): New function.
9816 (ovld_diag): Likewise.
9818 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
9820 * config/rs6000/rs6000-builtin-new.def: New.
9821 * config/rs6000/rs6000-overload.def: New.
9823 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
9825 * config/rs6000/rs6000-gen-builtins.c: New.
9827 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
9829 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
9830 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
9831 * gengtype-state.c (state_writer::write_state_file_list): Add a
9832 parameter to the fileslist expression for the number of build
9834 (read_state_files_list): Detect build headers and strip the
9835 initial "./" or ".\" from their names.
9836 * gengtype.c (build_headers): New global variable.
9837 (num_build_headers): Likewise.
9838 (open_base_files): Emit #include for each build header.
9839 (main): Detect and count build headers.
9840 * gengtype.h (build_headers): New extern variable.
9841 (num_build_headers): Likewise.
9843 2021-07-16 Richard Biener <rguenther@suse.de>
9845 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
9846 the type of the LHS.
9847 (find_bswap_or_nop_1): Likewise.
9848 (find_bswap_or_nop): Likewise.
9849 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
9851 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
9852 Remove unused parameters, pass in the scalar type. Fix
9853 internal store function handling.
9854 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
9855 (vect_get_vector_types_for_stmt): Move down check for
9856 existing vector stmt after we've determined a scalar type.
9857 Pass down the used scalar type to vect_get_smallest_scalar_type.
9858 * tree-vect-generic.c (expand_vector_condition): Use
9859 the type of the LHS.
9860 (expand_vector_scalar_condition): Likewise.
9861 (expand_vector_operations_1): Likewise.
9862 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
9863 (vect_recog_dot_prod_pattern): Likewise.
9864 (vect_recog_sad_pattern): Likewise.
9865 (vect_recog_widen_op_pattern): Likewise.
9866 (vect_recog_widen_sum_pattern): Likewise.
9867 (vect_recog_mixed_size_cond_pattern): Likewise.
9869 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
9871 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
9872 (dump_eaf_flags): Dump EAF_NOT_RETURNED
9873 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
9874 and EAF_NOT_RETURNED.
9875 (modref_summary::useful_p): Likewise.
9876 (modref_summary_lto::useful_p): Likewise.
9877 (struct) modref_summary_lto: Use eaf_fleags_t.
9878 (deref_flags): Handle EAF_NOT_RETURNED.
9879 (struct escape_point): Use min_flags.
9880 (modref_lattice::init): Add EAF_NOT_RETURNED.
9881 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
9882 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
9884 (analyze_parms): Also analyze const functions; update conition on
9886 (modref_write): Update streaming.
9887 (read_section): Update streaming.
9888 (remap_arg_flags): Use eaf_flags_t.
9889 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
9890 * ipa-modref.h: (eaf_flags_t): New typedef.
9891 (struct modref_summary): Use eaf_flags_t.
9892 * tree-core.h (EAF_NOT_RETURNED): New constant.
9894 2021-07-16 Richard Biener <rguenther@suse.de>
9896 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
9897 the type of the LHS.
9898 (gimple_assign_nonnegative_warnv_p): Likewise.
9899 (gimple_call_nonnegative_warnv_p): Likewise. Return false
9900 if the call has no LHS.
9901 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
9902 * tree-eh.c (stmt_could_throw_1_p): Likewise.
9903 * tree-inline.c (insert_init_stmt): Likewise.
9904 * tree-ssa-loop-niter.c (get_val_for): Likewise.
9905 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
9907 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
9908 gassign *. Use the type of the lhs.
9909 (vn_nary_op_lookup_stmt): Adjust.
9910 (vn_nary_op_insert_stmt): Likewise.
9912 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
9914 * config/s390/predicates.md (bras_sym_operand): Accept all
9915 functions in 64-bit mode, use UNSPEC_PLT31.
9916 (larl_operand): Use UNSPEC_PLT31.
9917 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
9918 (legitimize_pic_address): Likewise.
9919 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
9921 (s390_delegitimize_address): Use UNSPEC_PLT31.
9922 (s390_output_addr_const_extra): Likewise.
9923 (print_operand): Add @PLT to TLS calls, handle %K.
9924 (s390_function_profiler): Mark __fentry__/_mcount as function,
9925 use %K, use UNSPEC_PLT31.
9926 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
9927 (s390_emit_call): Use UNSPEC_PLT31.
9928 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
9929 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
9930 (*movdi_64): Use %K.
9931 (reload_base_64): Likewise.
9932 (*sibcall_brc): Likewise.
9933 (*sibcall_brcl): Likewise.
9934 (*sibcall_value_brc): Likewise.
9935 (*sibcall_value_brcl): Likewise.
9938 (*bras_r): Likewise.
9939 (*brasl_r): Likewise.
9940 (*bras_tls): Likewise.
9941 (*brasl_tls): Likewise.
9942 (main_base_64): Likewise.
9943 (reload_base_64): Likewise.
9944 (@split_stack_call<mode>): Likewise.
9946 2021-07-16 Richard Biener <rguenther@suse.de>
9948 PR tree-optimization/101467
9949 * tree-vect-stmts.c (vect_gen_while): Properly guard
9950 make_temp_ssa_name usage.
9952 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
9954 * config.gcc: Don't use forked print-sysroot-suffix.sh and
9955 t-sysroot-suffix for C-SKY.
9956 * config/csky/print-sysroot-suffix.sh: Delete.
9957 * config/csky/t-csky-linux: Delete.
9958 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
9959 instead of CSKY_MULTILIB_DIRNAMES.
9961 2021-07-16 Richard Biener <rguenther@suse.de>
9963 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
9964 conversion issues with the partial reduction of the reused
9967 2021-07-16 Richard Biener <rguenther@suse.de>
9969 * config/i386/i386-options.c (ix86_option_override_internal): Set
9970 param_vect_partial_vector_usage to zero if not set.
9972 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
9975 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
9976 (VALID_INT_MODE_P): Add SDmode and DDmode.
9977 Add TDmode for TARGET_64BIT.
9978 (VALID_DFP_MODE_P): Remove.
9979 * config/i386/i386.c (ix86_hard_regno_mode_ok):
9980 Do not use VALID_DFP_MODE_P.
9982 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
9984 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
9986 (fold_using_range::fold_stmt): Ditto.
9987 (fold_using_range::range_of_range_op): Ditto.
9988 (fold_using_range::range_of_phi): Ditto.
9989 (fold_using_range::range_of_call): Ditto.
9990 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
9991 (fold_using_range::range_of_builtin_call): Ditto.
9992 (fold_using_range::range_of_cond_expr): Ditto.
9993 * gimple-range-fold.h (gimple_range_type): New.
9995 2021-07-15 Martin Sebor <msebor@redhat.com>
9998 * tree-ssa-strlen.c (handle_assign): New function.
9999 (maybe_warn_overflow): Add argument.
10000 (nonzero_bytes_for_type): New function.
10001 (count_nonzero_bytes): Handle more tree types. Call
10002 nonzero_bytes_for_tye.
10003 (count_nonzero_bytes): Handle types.
10004 (handle_store): Handle stores from function calls.
10005 (strlen_check_and_optimize_call): Move code to handle_assign. Call
10006 it for assignments from function calls.
10008 2021-07-15 David Malcolm <dmalcolm@redhat.com>
10013 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
10015 2021-07-15 David Malcolm <dmalcolm@redhat.com>
10017 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
10019 2021-07-15 Martin Sebor <msebor@redhat.com>
10023 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
10024 (operand_compare::verify_hash_value): Same.
10025 * tree-core.h (OEP_DECL_NAME): New.
10027 2021-07-15 Martin Jambor <mjambor@suse.cz>
10029 * profile-count.h (profile_count::value): Change the return type to
10031 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
10033 * tree-cfg.c (dump_function_to_file): Likewise.
10035 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
10038 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
10039 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
10042 2021-07-15 Richard Biener <rguenther@suse.de>
10044 * tree-vectorizer.h (vect_gen_while): Match up with
10045 vect_gen_while_not.
10046 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
10047 of vect_gen_while_not.
10048 (vect_gen_while_not): Adjust.
10049 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
10051 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
10053 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
10054 (ranger_cache::range_of_def): Call adjust_range.
10055 (ranger_cache::entry_range): Same.
10056 * gimple-range-cache.h (non_null_ref::adjust_range): New.
10057 * gimple-range.cc (gimple_ranger::range_of_expr): Call
10059 (gimple_ranger::range_on_entry): Same.
10061 2021-07-15 Tamar Christina <tamar.christina@arm.com>
10064 2021-07-14 Tamar Christina <tamar.christina@arm.com>
10066 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
10068 2021-07-15 Tamar Christina <tamar.christina@arm.com>
10071 2021-07-14 Tamar Christina <tamar.christina@arm.com>
10073 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
10074 (sdot_prod, udot_prod): ...These.
10075 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
10076 (aarch64_<sur>dot<vsi2qi>): Rename to...
10077 (<sur>dot_prod<vsi2qi>): ...This.
10078 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
10081 2021-07-15 Jakub Jelinek <jakub@redhat.com>
10083 PR middle-end/101437
10084 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
10085 types even if they have non-BLKmode TYPE_MODE.
10087 2021-07-15 Richard Biener <rguenther@suse.de>
10090 * gcc.c (process_command): Process -gtoggle like process_options
10091 would after parsing options.
10093 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
10095 * cfgexpand.c (expand_asm_loc): Adjust.
10096 (expand_asm_stmt): Likewise.
10097 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
10098 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
10099 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
10100 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
10101 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
10102 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
10103 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
10104 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
10105 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
10106 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
10107 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
10108 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
10109 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
10110 * doc/tm.texi: Regenerate.
10111 * target.def: Add location argument to md_asm_adjust.
10113 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
10115 * tree-diagnostic.c (diagnostic_report_current_function): Use the
10116 diagnostic's location, not input_location.
10118 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
10120 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
10122 (expand_asm_stmt): Likewise.
10124 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
10126 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
10127 addressed memory rtx, if any.
10128 (rs6000_split_multireg_move): Fix code formatting.
10129 Handle MMA build built-ins with operands in adjacent memory locations.
10131 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
10133 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
10136 2021-07-14 Jason Merrill <jason@redhat.com>
10138 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
10140 2021-07-14 Jason Merrill <jason@redhat.com>
10142 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
10145 2021-07-14 Tamar Christina <tamar.christina@arm.com>
10147 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
10148 Remove erroneous line.
10150 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
10152 * params.opt (param_evrp_mode): Change default.
10154 2021-07-14 Tamar Christina <tamar.christina@arm.com>
10156 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
10157 (sdot_prod, udot_prod): ...These.
10158 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
10159 (aarch64_<sur>dot<vsi2qi>): Rename to...
10160 (<sur>dot_prod<vsi2qi>): ...This.
10161 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
10164 2021-07-14 Tamar Christina <tamar.christina@arm.com>
10166 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
10168 2021-07-14 Tamar Christina <tamar.christina@arm.com>
10170 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
10172 2021-07-14 Tamar Christina <tamar.christina@arm.com>
10174 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
10176 2021-07-14 Tamar Christina <tamar.christina@arm.com>
10178 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
10179 (usdot_prod<vsi2qi>): ... This.
10180 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
10181 (usdot_prod): ...This.
10182 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
10183 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
10185 (@<sur>dot_prod<vsi2qi>): ...This.
10186 * config/aarch64/aarch64-sve-builtins-base.cc
10187 (svusdot_impl::expand): Use it.
10189 2021-07-14 Tamar Christina <tamar.christina@arm.com>
10191 * optabs.def (usdot_prod_optab): New.
10192 * doc/md.texi: Document it and clarify other dot prod optabs.
10193 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
10194 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
10195 * optabs.c (expand_widen_pattern_expr): Likewise.
10196 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
10197 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
10198 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
10200 (vect_widened_op_tree): Optionally ignore
10202 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
10204 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
10207 * config/i386/driver-i386.c (host_detect_local_cpu): Check
10208 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
10209 Enable UINTR only for 64-bit codegen.
10210 * config/i386/i386-options.c
10211 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
10213 * config/i386/i386.h (ARCH_ARG): New.
10214 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
10215 "[arch|tune] 64" for 64-bit codegen.
10217 2021-07-14 Richard Biener <rguenther@suse.de>
10219 PR tree-optimization/101445
10220 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
10221 of the IV in the correct direction for negative stride
10224 2021-07-14 Jakub Jelinek <jakub@redhat.com>
10227 * godump.c (godump_str_hash): New type.
10228 (godump_container::pot_dummy_types): Use string_hash instead of
10229 ptr_hash in the hash_set.
10231 2021-07-14 Richard Biener <rguenther@suse.de>
10233 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
10234 vector types where the old vector type has a multiple of
10235 the new vector type elements.
10236 (vect_create_partial_epilog): New function, split out from...
10237 (vect_create_epilog_for_reduction): ... here.
10238 (vect_transform_cycle_phi): Reduce the re-used accumulator
10239 to the new vector type.
10241 2021-07-14 Alexandre Oliva <oliva@adacore.com>
10243 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
10244 non-'t'-sized arg check.
10246 2021-07-14 Alexandre Oliva <oliva@adacore.com>
10248 * tree-cfg.c (cleanup_dead_labels_eh): Update
10249 post_landing_pad label upon change of landing pad block's
10251 (cleanup_dead_labels): Check that a removed label is not that
10254 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
10256 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
10258 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
10259 Add Neon to general purpose register case for zero-extend
10261 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
10262 case to prevent some cases opting to go through memory.
10263 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
10264 * rtl.c (rtvec_series_p): Define predicate to determine
10265 whether a vector contains a linear series of integers.
10266 * rtl.h (rtvec_series_p): Define.
10267 * rtlanal.c (vec_series_lowpart_p): Define predicate to
10268 determine if a vector selection is equivalent to the low part
10270 * rtlanal.h (vec_series_lowpart_p): Define.
10271 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
10272 Add vec_select -> subreg simplification.
10274 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
10276 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
10277 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
10278 _mm_test_mix_ones_zeros): New.
10280 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
10281 Richard Biener <rguenther@suse.de>
10283 * gimple.c (gimple_could_trap_p_1): Make S argument a
10284 "const gimple*". Preserve constness in call to
10285 gimple_asm_volatile_p.
10286 (gimple_could_trap_p): Make S argument a "const gimple*".
10287 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
10288 Update function prototypes.
10290 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
10292 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
10293 (_loop_vec_info::main_loop_edge): New field.
10294 (_loop_vec_info::skip_main_loop_edge): Likewise.
10295 (_loop_vec_info::skip_this_loop_edge): Likewise.
10296 (_loop_vec_info::reusable_accumulators): Likewise.
10297 (_stmt_vec_info::reduc_scalar_results): Likewise.
10298 (_stmt_vec_info::reused_accumulator): Likewise.
10299 (vect_get_main_loop_result): Declare.
10300 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10301 reduc_scalar_inputs.
10302 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
10303 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
10304 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
10305 skip_main_loop_edge and skip_this_loop_edge fields.
10306 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
10307 (vect_emit_reduction_init_stmts): New function.
10308 (get_initial_def_for_reduction): Use it.
10309 (get_initial_defs_for_reduction): Likewise. Change the vinfo
10310 parameter to a loop_vec_info.
10311 (vect_create_epilog_for_reduction): Store the scalar results
10312 in the reduc_info. If an epilogue loop is reusing an accumulator
10313 from the main loop, and if the epilogue loop can also be skipped,
10314 try to place the reduction code in the join block. Record
10315 accumulators that could potentially be reused by epilogue loops.
10316 (vect_transform_cycle_phi): When vectorizing epilogue loops,
10317 try to reuse accumulators from the main loop. Record the initial
10318 value in reduc_info for non-SLP reductions too.
10320 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
10322 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
10323 adjustment handling. Take the neutral value as an argument,
10324 in place of the code argument.
10325 (vect_transform_cycle_phi): Update accordingly. Handle the
10326 initial values of cond reductions separately from code reductions.
10327 Choose the adjustment here rather than in
10328 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
10330 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
10332 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
10333 (neutral_op_for_reduction): ...this, providing a more general
10335 (vect_create_epilog_for_reduction): Update accordingly.
10336 (vectorizable_reduction): Likewise.
10337 (vect_transform_cycle_phi): Likewise.
10339 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
10341 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
10342 reduc_info instead of the original stmt_vec_info.
10343 (vect_transform_cycle_phi): Update accordingly.
10345 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
10347 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
10348 reduc_info as an additional parameter.
10349 (vect_transform_cycle_phi): Update accordingly.
10351 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
10353 * tree-vectorizer.h: Include tree-ssa-operands.h.
10354 (vect_phi_initial_value): New function.
10355 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
10356 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
10357 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
10358 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
10360 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
10362 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
10363 the phi results to vectype after creating them. Remove later
10364 conversion code that thus becomes redundant.
10366 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
10368 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
10369 the new_phis vector with a reduc_inputs vector. Combine handling
10370 of reduction chains and ncopies > 1.
10372 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
10374 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
10375 scalar_results to group_size elements after reducing down from
10376 N*group_size elements. Construct an array_slice of the live-out
10377 stmts and assert that there is one stmt per scalar result.
10379 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
10381 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
10382 nested_in_vect_loop and use double_reduc everywhere. Remove dead
10383 assignment to "loop".
10385 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
10387 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
10388 vector types first. For scalar types, consider both the preferred
10389 vector mode and the alternative vector modes.
10390 * optabs-query.c (can_vec_mask_load_store_p): Use the same
10391 structure as above, in particular using related_vector_mode
10392 for modes provided by autovectorize_vector_modes.
10394 2021-07-13 Jakub Jelinek <jakub@redhat.com>
10395 Richard Biener <rguenther@suse.de>
10397 PR tree-optimization/101419
10398 * tree-pass.h (PROP_objsz): Define.
10399 (make_pass_early_object_sizes): Declare.
10400 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
10401 there to pass_early_object_sizes, drop parameter.
10402 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
10403 drop parameter, move pass_post_ipa_warn right after that.
10404 * tree-object-size.c (pass_object_sizes::execute): Rename to...
10405 (object_sizes_execute): ... this. Add insert_min_max_p argument.
10406 (pass_data_object_sizes): Move after object_sizes_execute.
10407 (pass_object_sizes): Likewise. In execute method call
10408 object_sizes_execute, drop set_pass_param method and insert_min_max_p
10409 non-static data member and its initializer in the ctor.
10410 (pass_data_early_object_sizes, pass_early_object_sizes,
10411 make_pass_early_object_sizes): New.
10412 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
10413 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
10415 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
10418 * config/riscv/constraints.md ("S"): Update description and remove
10420 * doc/md.texi (Machine Constraints): Document the 'S' constraints
10423 2021-07-13 Richard Biener <rguenther@suse.de>
10426 2021-07-12 Richard Biener <rguenther@suse.de>
10428 * tree-vect-slp.c (vect_slp_region): Show the number of
10429 SLP graph entries in the optimization message.
10431 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
10433 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
10435 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
10436 return type to long.
10437 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
10440 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
10442 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
10443 Query relation between the 2 operands and use it.
10445 2021-07-12 Sergei Trofimovich <siarheit@google.com>
10447 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
10449 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
10452 * config/i386/predicates.md (vec_setm_sse41_operand):
10453 Rename from vec_setm_operand.
10454 (vec_setm_avx2_operand): New predicate.
10455 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
10456 Use vec_setm_sse41_operand as operand 2 predicate.
10457 (vec_set<V_256_512:mode): New expander.
10458 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
10459 as operand 2 predicate.
10461 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
10463 PR tree-optimization/101335
10464 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
10466 2021-07-12 Andrew Pinski <apinski@marvell.com>
10468 * tree-ssa-phiopt.c (match_simplify_replacement): Move
10469 insert of the sequence before the movement of the
10470 statement. Check if to see if the statement is used
10471 outside of the original phi to see if we should move it.
10473 2021-07-12 Richard Biener <rguenther@suse.de>
10475 * dump-context.h (debug_dump_context::debug_dump_context):
10476 Add FILE * parameter defaulted to stderr.
10477 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
10478 * tree-vect-slp.c (dot_slp_tree): New functions.
10480 2021-07-12 Richard Biener <rguenther@suse.de>
10482 PR tree-optimization/101373
10483 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
10484 references when the BB may not return.
10485 (compute_avail): Pass in the function we're working on and
10486 replace cfun references with it. Externally throwing
10487 const calls also possibly terminate the function.
10488 (pass_pre::execute): Pass down the function we're working on.
10489 * gcse.c (compute_hash_table_work): Externally throwing
10490 const/pure calls also need record_last_mem_set_info.
10491 * postreload-gcse.c (record_opr_changes): Looping or externally
10492 throwing const/pure calls also need record_last_mem_set_info.
10494 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
10496 * recog.c (memory_address_addr_space_p): Change the type to bool.
10497 Return true/false instead of 1/0.
10498 (offsettable_memref_p): Ditto.
10499 (offsettable_nonstrict_memref_p): Ditto.
10500 (offsettable_address_addr_space_p): Ditto.
10501 Change the type of addressp indirect function to bool.
10502 * recog.h (memory_address_addr_space_p): Change the type to bool.
10503 (strict_memory_address_addr_space_p): Ditto.
10504 (offsettable_memref_p): Ditto.
10505 (offsettable_nonstrict_memref_p): Ditto.
10506 (offsettable_address_addr_space_p): Ditto.
10507 * reload.c (maybe_memory_address_addr_space_p): Ditto.
10508 (strict_memory_address_addr_space_p): Change the type to bool.
10509 Return true/false instead of 1/0.
10510 (maybe_memory_address_addr_space_p): Change the type to bool.
10512 2021-07-12 Richard Biener <rguenther@suse.de>
10514 * tree-vect-slp.c (vect_slp_region): Show the number of
10515 SLP graph entries in the optimization message.
10517 2021-07-12 Richard Biener <rguenther@suse.de>
10519 PR tree-optimization/101394
10520 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
10521 copies from abnormals for a full redundancy.
10523 2021-07-12 Richard Biener <rguenther@suse.de>
10525 PR middle-end/101423
10526 * gimple.c (gimple_could_trap_p_1): Internal function calls
10528 * tree-eh.c (tree_could_trap_p): Likewise.
10530 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
10533 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
10535 (vmulq_n_u32): Likewise.
10536 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
10537 (vmulq_n_f32): Likewise.
10538 (vmul_n_f16): Likewise.
10539 (vmulq_n_f16): Likewise.
10541 2021-07-12 Martin Liska <mliska@suse.cz>
10543 PR sanitizer/101425
10544 * gcc.c (check_offload_target_name): Call
10545 candidates_list_and_hint only if we have a candidate.
10547 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
10550 * config/arm/neon.md (vec_init): Move to ...
10551 * config/arm/vec-common.md (vec_init): ... here.
10552 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
10554 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
10556 PR tree-optimization/101403
10557 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
10558 signedness of the shift is not the same as the signedness of
10559 the type extension.
10561 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
10562 Uroš Bizjak <ubizjak@gmail.com>
10564 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
10565 divmod of a constant numerator with new define_insn_and_split.
10567 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
10570 * config/i386/i386-expand.c (ix86_expand_call): If a call is
10571 to a non-local-binding, or local but to a public symbol, then
10572 assume that it might be indirected via the lazy symbol binder.
10573 Mark R10 and R10 as clobbered in that case.
10575 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
10578 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
10579 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
10580 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
10582 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
10584 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
10585 log2 range of operands[3] to [1,31].
10586 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
10588 2021-07-09 Sergei Trofimovich <siarheit@google.com>
10590 * doc/md.texi: Don't split @smallexample in multiple @groups.
10592 2021-07-09 Sergei Trofimovich <siarheit@google.com>
10594 * doc/md.texi: Add missing 'see' word.
10596 2021-07-09 Andrew Pinski <apinski@marvell.com>
10598 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
10599 to take sequence and gimple_match_op. Accept the case where
10600 op is a SSA_NAME and one statement in the sequence.
10601 Also allow constants.
10602 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
10603 Update call to phiopt_early_allow. Discard the sequence if not
10606 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
10611 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
10612 instead of ISA_HAS_MSA.
10613 (mips_expand_vec_unpack): Likewise.
10614 (mips_expand_vector_init): Likewise.
10616 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
10618 * config/rs6000/vsx.md (mods_<mode>): Rename to...
10619 (mod<mode>3): ... this.
10620 (modu_<mode>): Rename to...
10621 (umod<mode>3): ... this.
10622 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
10623 MODU_V4SI): Adjust.
10625 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
10627 * config/h8300/shiftrotate.md (variable shifts): Expose condition
10628 code handling for the test before the loop.
10630 2021-07-08 Martin Jambor <mjambor@suse.cz>
10633 * ipa-sra.c (class isra_call_summary): New member
10634 m_before_any_store, initialize it in the constructor.
10635 (isra_call_summary::dump): Dump the new field.
10636 (ipa_sra_call_summaries::duplicate): Copy it.
10637 (process_scan_results): Set it.
10638 (isra_write_edge_summary): Stream it.
10639 (isra_read_edge_summary): Likewise.
10640 (param_splitting_across_edge): Only override
10641 safe_to_import_accesses if m_before_any_store is set.
10643 2021-07-08 Martin Sebor <msebor@redhat.com>
10645 PR bootstrap/101374
10646 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
10647 Use Object Size Type 0 instead of 1.
10649 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
10651 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
10654 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
10656 * match.pd: Simplify an extend-operate-truncate sequence involving
10659 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
10660 Richard Biener <rguenther@suse.de>
10662 PR tree-optimization/40210
10663 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
10664 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
10665 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
10667 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
10670 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
10672 * config/i386/mmx.md (V_32): New mode iterator.
10673 (mov<V_32:mode>): Use V_32 mode iterator.
10674 (*mov<V_32:mode>_internal): Ditto.
10675 (*push<V_32:mode>2_rex64): Ditto.
10676 (*push<V_32:mode>2): Ditto.
10677 (movmisalign<V_32:mode>): Ditto.
10678 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
10679 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
10680 (vec_unpacks_lo_v4qi): New expander.
10681 (vec_unpacks_hi_v4qi): Ditto.
10682 (vec_unpacku_lo_v4qi): Ditto.
10683 (vec_unpacku_hi_v4qi): Ditto.
10684 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
10685 (VALID_INT_MODE_P): Ditto.
10687 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
10690 * config/rs6000/rs6000.md (udivti3): New insn.
10691 (divti3): New insn.
10692 (umodti3): New insn.
10693 (modti3): New insn.
10695 2021-07-07 Martin Sebor <msebor@redhat.com>
10697 PR tree-optimization/100137
10698 PR tree-optimization/99121
10699 PR tree-optimization/97027
10700 * builtins.c (access_ref::access_ref): Also set offmax.
10701 (access_ref::offset_in_range): Define new function.
10702 (access_ref::add_offset): Set offmax.
10703 (access_ref::inform_access): Handle access_none.
10704 (handle_mem_ref): Clear ostype.
10705 (compute_objsize_r): Handle ASSERT_EXPR.
10706 * builtins.h (struct access_ref): Add offmax member.
10707 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
10708 compute_objsize() and simplify.
10710 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
10712 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
10713 and VSX_BUILTIN_STXVP.
10715 2021-07-07 Martin Sebor <msebor@redhat.com>
10718 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
10719 a stray %K from error_at() missed in r12-2088.
10721 2021-07-07 Richard Biener <rguenther@suse.de>
10723 PR tree-optimization/99728
10724 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
10726 (mem_refs_may_alias_p): Add assert we handled aggregate
10728 (sm_seq_valid_bb): Give up when running into aggregate copies.
10729 (ref_indep_loop_p): Handle aggregate copies as never
10730 being invariant themselves but allow other refs to be
10731 disambiguated against them.
10732 (can_sm_ref_p): Do not try to apply store-motion to aggregate
10735 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
10738 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
10741 2021-07-06 Martin Sebor <msebor@redhat.com>
10743 * gimple-pretty-print.c (percent_G_format): Remove.
10744 * tree-diagnostic.c (default_tree_printer): Remove calls.
10745 * tree-pretty-print.c (percent_K_format): Remove.
10746 * tree-pretty-print.h (percent_K_format): Remove.
10748 2021-07-06 Martin Sebor <msebor@redhat.com>
10750 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
10751 Remove %K and use error_at.
10752 (aarch64_expand_fcmla_builtin): Same.
10753 (aarch64_expand_builtin_tme): Same.
10754 (aarch64_expand_builtin_memtag): Same.
10755 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
10756 (arm_expand_builtin): Same.
10757 * config/arm/arm.c (bounds_check): Same.
10759 2021-07-06 Martin Sebor <msebor@redhat.com>
10761 * builtins.c (warn_string_no_nul): Remove %G.
10762 (maybe_warn_for_bound): Same.
10763 (warn_for_access): Same.
10764 (check_access): Same.
10765 (check_strncat_sizes): Same.
10766 (expand_builtin_strncat): Same.
10767 (expand_builtin_strncmp): Same.
10768 (expand_builtin): Same.
10769 (expand_builtin_object_size): Same.
10770 (warn_dealloc_offset): Same.
10771 (maybe_emit_free_warning): Same.
10772 * calls.c (maybe_warn_alloc_args_overflow): Same.
10773 (maybe_warn_nonstring_arg): Same.
10774 (maybe_warn_rdwr_sizes): Same.
10775 * expr.c (expand_expr_real_1): Remove %K.
10776 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
10777 (gimple_fold_builtin_strncat): Same.
10778 * gimple-ssa-sprintf.c (format_directive): Same.
10779 (handle_printf_call): Same.
10780 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
10781 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
10782 (maybe_diag_access_bounds): Same. Call gimple_location.
10783 (check_bounds_or_overlap): Same.
10784 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
10785 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
10786 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
10787 (maybe_diag_stxncpy_trunc): Same.
10788 (handle_builtin_stxncpy_strncat): Same.
10789 (maybe_warn_pointless_strcmp): Same.
10790 * tree-ssa-uninit.c (maybe_warn_operand): Same.
10792 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
10795 * config/i386/predicates.md (vec_setm_operand): Enable
10796 register_operand for TARGET_SSE4_1.
10797 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
10798 as operand 2 predicate. Call ix86_expand_vector_set_var
10799 for non-constant index operand.
10800 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
10801 Call ix86_expand_vector_set_var for non-constant index operand.
10803 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
10805 * config/h8300/jumpcall.md (*branch): When possible, generate
10806 the comparison in CCZN mode.
10807 * config/h8300/predicates.md (simple_memory_operand): Reject all
10808 auto-increment addressing modes.
10810 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
10812 PR bootstrap/100246
10813 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
10816 2021-07-06 Richard Biener <rguenther@suse.de>
10818 * doc/md.texi (vec_fmaddsub<mode>4): Document.
10819 (vec_fmsubadd<mode>4): Likewise.
10820 * optabs.def (vec_fmaddsub$a4): Add.
10821 (vec_fmsubadd$a4): Likewise.
10822 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
10823 (IFN_VEC_FMSUBADD): Likewise.
10824 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
10825 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
10826 (addsub_pattern::build): Likewise.
10827 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
10828 and CFN_VEC_FMSUBADD are not transparent for permutes.
10829 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
10830 (vec_fmsubadd<mode>4): Likewise.
10832 2021-07-06 Richard Biener <rguenther@suse.de>
10834 * doc/invoke.texi (fmove-loop-stores): Document.
10835 * common.opt (fmove-loop-stores): New option.
10836 * opts.c (default_options_table): Enable -fmove-loop-stores
10837 at -O1 but not -Og.
10838 * tree-ssa-loop-im.c (pass_lim::execute): Pass
10839 flag_move_loop_stores instead of true to
10840 loop_invariant_motion_in_fun.
10842 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
10844 * doc/install.texi: Document --with-dsymutil.
10846 2021-07-06 Andrew Pinski <apinski@marvell.com>
10848 PR tree-optimization/101256
10849 * dbgcnt.def (phiopt_edge_range): New counter.
10850 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
10851 Check to make sure the new name is defined in the same
10852 bb as the conditional before duplicating range info.
10853 Also add debug counter.
10855 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
10857 PR rtl-optimization/100328
10858 * config/i386/i386-options.c (ix86_option_override_internal):
10859 Set param_ira_consider_dup_in_all_alts to 0.
10861 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
10863 PR rtl-optimization/100328
10864 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
10866 * ira.c (ira_get_dup_out_num): Adjust as parameter
10867 param_ira_consider_dup_in_all_alts.
10868 * params.opt (ira-consider-dup-in-all-alts): New.
10869 * ira-conflicts.c (process_regs_for_copy): Add one parameter
10870 single_input_op_has_cstr_p.
10871 (get_freq_for_shuffle_copy): New function.
10872 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
10873 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
10875 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
10877 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
10878 generate condition code aware RTL directly.
10880 2021-07-05 Andrew Pinski <apinski@marvell.com>
10882 PR tree-optimization/101039
10883 * match.pd (A CMP 0 ? A : -A): New patterns.
10884 * tree-ssa-phiopt.c (abs_replacement): Delete function.
10885 (tree_ssa_phiopt_worker): Don't call abs_replacement.
10886 Update comment about abs_replacement.
10888 2021-07-05 Andrew Pinski <apinski@marvell.com>
10890 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
10891 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
10893 2021-07-05 Andrew Pinski <apinski@marvell.com>
10895 * tree-ssa-phiopt.c (match_simplify_replacement):
10896 Add early_p argument. Call gimple_simplify_phiopt
10897 instead of gimple_simplify.
10898 (tree_ssa_phiopt_worker): Update call to
10899 match_simplify_replacement and allow unconditionally.
10900 (phiopt_early_allow): New function.
10901 (gimple_simplify_phiopt): New function.
10903 2021-07-05 Andrew Pinski <apinski@marvell.com>
10905 PR middle-end/101237
10906 * fold-const.c (negate_expr_p): Remove call to element_mode
10907 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
10908 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
10909 (fold_negate_expr_1): Likewise.
10910 (const_unop): Likewise.
10911 (fold_cond_expr_with_comparison): Likewise.
10912 (fold_binary_loc): Likewise.
10913 (fold_ternary_loc): Likewise.
10914 (tree_call_nonnegative_warnv_p): Likewise.
10915 * match.pd (-(A + B) -> (-B) - A): Likewise.
10917 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
10919 * configure.ac: Handle --with-dsymutil in the same way as we
10920 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
10921 Extract the type and version for the dsymutil configured or
10922 found by the default searches.
10923 * config.in: Regenerated.
10924 * configure: Regenerated.
10925 * collect2.c (do_dsymutil): Handle locating dsymutil in the
10926 same way as for the assembler and linker.
10927 * config/darwin.h (DSYMUTIL): Delete.
10928 * gcc.c: Report a configured dsymutil correctly.
10929 * exec-tool.in: Allow for dsymutil.
10931 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
10933 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
10934 Handle V4QI and V2HI modes.
10935 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
10936 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
10937 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
10938 Handle 4-byte dual operands with TARGET_XOP and single operands
10939 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
10940 mmx_pshufbv4qi3 for TARGET_SSSE3.
10941 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
10942 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
10943 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
10944 (expand_vec_perm_even_odd_1): Handle V4QI mode.
10945 (expand_vec_perm_broadcast_1): Handle V4QI mode.
10946 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
10947 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
10948 (mmx_pshufbv4qi3): Ditto.
10949 (*mmx_pblendw32): Ditto.
10950 (*mmx_pblendw64): Rename from *mmx_pblendw.
10951 (mmx_punpckhbw_low): New insn_and_split pattern.
10952 (mmx_punpcklbw_low): Ditto.
10954 2021-07-05 Richard Biener <rguenther@suse.de>
10956 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
10957 set LOOP_C_INFINITE on the vectorized loop.
10959 2021-07-05 Richard Biener <rguenther@suse.de>
10961 PR middle-end/101291
10962 * cfgloopmanip.c (loop_version): Set the loop copy of the
10963 versioned loop to the new loop.
10965 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
10968 * config.gcc: Ensure that Darwin biarch definitions are
10969 added before i386.h.
10970 * config/i386/darwin.h (TARGET_64BIT): Remove.
10971 (PR80556_WORKAROUND): New.
10972 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
10973 (DARWIN_SUBARCH_SPEC): New.
10974 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
10975 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
10976 (REAL_LIBGCC_SPEC): Remove.
10977 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
10978 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
10979 (REAL_LIBGCC_SPEC): Remove.
10981 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
10983 PR middle-end/101294
10984 * expr.c (store_constructor): Don't use vec_duplicate on vector.
10986 2021-07-02 Martin Sebor <msebor@redhat.com>
10988 PR middle-end/98871
10989 PR middle-end/98512
10990 * diagnostic.c (get_any_inlining_info): New.
10991 (update_effective_level_from_pragmas): Handle inlining context.
10992 (diagnostic_enabled): Same.
10993 (diagnostic_report_diagnostic): Same.
10994 * diagnostic.h (struct diagnostic_info): Add ctor.
10995 (struct diagnostic_context): Add new member.
10996 * tree-diagnostic.c (set_inlining_locations): New.
10997 (tree_diagnostics_defaults): Set new callback pointer.
10999 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
11001 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
11003 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
11004 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
11005 lxvp and stxvp built-ins.
11006 (mma_init_builtins): Handle lxvp and stxvp built-ins.
11007 (builtin_function_type): Likewise.
11008 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
11010 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
11012 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
11013 additional argument for the code.
11014 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
11015 argument for the code. Just return if the ZN bits are useful or
11016 not rather than the old style CC_* enums.
11017 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
11018 more generic shiftqi patterns.
11019 (shifthi_noscratch, shiftsi_noscratch): Similarly.
11020 (shiftqi_noscratch_set_flags): New pattern.
11021 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
11023 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
11025 PR tree-optimization/101223
11026 * range-op.cc (build_lt): Add -1 for signed values.
11027 (built_gt): Subtract -1 for signed values.
11029 2021-07-02 David Faust <david.faust@oracle.com>
11031 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
11032 (btf_asm_type): Likewise.
11034 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
11036 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
11037 an array of rtx rather than a pointer to rtx. Add code argument.
11038 (compute_a_shift_length): Similarly.
11039 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
11040 shift itself isn't an operand. Create dummy operand[0] to carry
11041 a mode and pass a suitable rtx code to compute_a_shift_length.
11042 (get_shift_alg): Adjust operand number of clobber in output templates.
11043 (output_a_shift): Make first argument an array of rtx rather than
11044 a pointer to rtx. Add code argument for the type of shift.
11045 Adjust now that the shift itself is no longer an operand.
11046 (compute_a_shift_length): Similarly.
11047 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
11048 iterator rather than nshift_operator.
11049 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
11050 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
11051 and compute_a_shift_length.
11052 (shiftqi_noscratch_clobber_flags): Likewise.
11053 (shifthi_noscratch_clobber_flags): Likewise.
11054 (shiftsi_noscratch_clobber_flags): Likewise.
11056 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
11059 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
11060 dsymutil for BTF/CTF.
11062 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
11065 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
11066 segment to include BTF.
11067 (BTF_INFO_SECTION_NAME): New.
11069 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
11071 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
11072 (small_data_operand, memreg_operand, small_insn_p): Likewise.
11073 * config/m32r/m32r.c (call_operand): Adjust return type.
11074 (small_data_operand, memreg_operand): Likewise.
11076 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
11078 * config/frv/frv-protos.h (integer_register_operand): Adjust return
11080 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
11081 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
11082 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
11083 (move_source_operand, move_destination_operand): Likewise.
11084 (condexec_source_operand, condexec_dest_operand): Likewise.
11085 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
11086 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
11087 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
11088 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
11089 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
11090 (even_fpr_operand, odd_fpr_operand): Likewise.
11091 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
11092 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
11093 (uint4_operand, uint1_operand, int_2word_operand): Likewise
11094 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
11095 (relational_operator, float_relational_operator): Likewise.
11096 (ccr_eqne_operator, minmax_operator): Likewise.
11097 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
11098 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
11099 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
11100 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
11101 (quad_acc_operand, accg_operand): Likewise.
11103 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
11105 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
11106 return type to a bool.
11107 (nonimmediate_nonstack_operand): Likewise.
11108 (xstormy16_splittable_below100_operand): Likewise.
11109 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
11111 (xstormy16_splittable_below100_operand): Likewise.
11113 2021-07-02 Richard Biener <rguenther@suse.de>
11115 PR tree-optimization/101293
11116 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
11117 with combined offsets.
11118 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
11119 combined with the rest of the offset.
11121 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
11123 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
11124 PIC encodings for PE-COFF targets.
11126 2021-07-02 Jakub Jelinek <jakub@redhat.com>
11129 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
11130 Return nullptr for TImode inner mode.
11132 2021-07-02 Richard Biener <rguenther@suse.de>
11134 PR tree-optimization/101280
11135 PR tree-optimization/101173
11136 * gimple-loop-interchange.cc
11137 (tree_loop_interchange::valid_data_dependences): Properly
11138 guard all dependence checks with DDR_REVERSED_P or its
11141 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
11143 * config/i386/i386-expand.c (ix86_expand_builtin):
11144 Add branch to clear odata when ZF is set for asedecenc_expand
11145 and wideaesdecenc_expand.
11147 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
11149 * config/i386/gcc-auto-profile: regenerate
11151 2021-07-02 liuhongt <hongtao.liu@intel.com>
11153 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
11154 (trunc<mode><pmov_dst_4_lower>2): this.
11156 2021-07-01 David Malcolm <dmalcolm@redhat.com>
11158 * diagnostic.h (diagnostic_context::m_file_cache): New field.
11159 * input.c (class fcache): Rename to...
11160 (class file_cache_slot): ...this, making most members private and
11161 prefixing fields with "m_".
11162 (file_cache_slot::get_file_path): New accessor.
11163 (file_cache_slot::get_use_count): New accessor.
11164 (file_cache_slot::missing_trailing_newline_p): New accessor.
11165 (file_cache_slot::inc_use_count): New.
11166 (fcache_buffer_size): Move to...
11167 (file_cache_slot::buffer_size): ...here.
11168 (fcache_line_record_size): Move to...
11169 (file_cache_slot::line_record_size): ...here.
11170 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
11171 (fcache_tab_size): Move to file_cache::num_file_slots.
11172 (diagnostic_file_cache_init): Update for move of fcache_tab
11173 to global_dc->m_file_cache.
11174 (diagnostic_file_cache_fini): Likewise.
11175 (lookup_file_in_cache_tab): Convert to...
11176 (file_cache::lookup_file): ...this.
11177 (diagnostics_file_cache_forcibly_evict_file): Update for move of
11178 fcache_tab to global_dc->m_file_cache, moving most of
11179 implementation to...
11180 (file_cache::forcibly_evict_file): ...this new function and...
11181 (file_cache_slot::evict): ...this new function.
11182 (evicted_cache_tab_entry): Convert to...
11183 (file_cache::evicted_cache_tab_entry): ...this.
11184 (add_file_to_cache_tab): Convert to...
11185 (file_cache::add_file): ...this, moving bulk of implementation
11187 (file_cache_slot::create): ..this new function.
11188 (file_cache::file_cache): New.
11189 (file_cache::~file_cache): New.
11190 (lookup_or_add_file_to_cache_tab): Convert to...
11191 (file_cache::lookup_or_add_file): ..this new function.
11192 (fcache::fcache): Rename to...
11193 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
11195 (fcache::~fcache): Rename to...
11196 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
11198 (needs_read): Convert to...
11199 (file_cache_slot::needs_read_p): ...this.
11200 (needs_grow): Convert to...
11201 (file_cache_slot::needs_grow_p): ...this.
11202 (maybe_grow): Convert to...
11203 (file_cache_slot::maybe_grow): ...this.
11204 (read_data): Convert to...
11205 (file_cache_slot::read_data): ...this.
11206 (maybe_read_data): Convert to...
11207 (file_cache_slot::maybe_read_data): ...this.
11208 (get_next_line): Convert to...
11209 (file_cache_slot::get_next_line): ...this.
11210 (goto_next_line): Convert to...
11211 (file_cache_slot::goto_next_line): ...this.
11212 (read_line_num): Convert to...
11213 (file_cache_slot::read_line_num): ...this.
11214 (location_get_source_line): Update for moving of globals to
11215 global_dc->m_file_cache.
11216 (location_missing_trailing_newline): Likewise.
11217 * input.h (class file_cache_slot): New forward decl.
11218 (class file_cache): New.
11220 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
11222 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
11223 128-bit floating point conditional move support.
11224 (have_compare_and_set_mask): Add IEEE 128-bit floating point
11226 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
11227 (mov<mode>cc_p10, IEEE128 iterator): New insn.
11228 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
11229 (fpmask<mode>, IEEE128 iterator): New insn.
11230 (xxsel<mode>, IEEE128 iterator): New insn.
11232 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
11235 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
11237 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
11239 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
11241 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
11243 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
11244 (vec_duplicate<mode>): New expander.
11246 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
11249 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
11251 (ix86_byte_broadcast): New function.
11252 (ix86_convert_const_wide_int_to_broadcast): Likewise.
11253 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
11254 size is 16 bytes or bigger.
11255 (ix86_broadcast_from_integer_constant): New function.
11256 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
11257 to broadcast if mode size is 16 bytes or bigger.
11258 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
11260 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
11262 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
11264 * config/i386/predicates.md (ix86_endbr_immediate_operand):
11265 Return true/false instead of 1/0.
11266 (movq_parallel): Ditto.
11268 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
11270 * recog.c (general_operand): Return true/false instead of 1/0.
11271 (register_operand): Ditto.
11272 (immediate_operand): Ditto.
11273 (const_int_operand): Ditto.
11274 (const_scalar_int_operand): Ditto.
11275 (const_double_operand): Ditto.
11276 (push_operand): Ditto.
11277 (pop_operand): Ditto.
11278 (memory_operand): Ditto.
11279 (indirect_operand): Ditto.
11281 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
11283 * genpreds.c (write_predicate_subfunction):
11284 Change the type of written subfunction to bool.
11285 (write_one_predicate_function):
11286 Change the type of written function to bool.
11287 (write_tm_preds_h): Ditto.
11288 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
11289 * recog.c (general_operand): Change the type to bool.
11290 (address_operand): Ditto.
11291 (register_operand): Ditto.
11292 (pmode_register_operand): Ditto.
11293 (scratch_operand): Ditto.
11294 (immediate_operand): Ditto.
11295 (const_int_operand): Ditto.
11296 (const_scalar_int_operand): Ditto.
11297 (const_double_operand): Ditto.
11298 (nonimmediate_operand): Ditto.
11299 (nonmemory_operand): Ditto.
11300 (push_operand): Ditto.
11301 (pop_operand): Ditto.
11302 (memory_operand): Ditto.
11303 (indirect_operand): Ditto.
11304 (ordered_comparison_operator): Ditto.
11305 (comparison_operator): Ditto.
11306 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
11307 Change the type of indirect predicate function to bool.
11308 * config/rs6000/rs6000.c (easy_vector_constant):
11309 Change the type to bool.
11310 * config/mips/mips-protos.h (m16_based_address_p):
11311 Change the type of operand 3 to bool.
11313 2021-07-01 Richard Biener <rguenther@suse.de>
11315 PR tree-optimization/101280
11316 PR tree-optimization/101173
11317 * gimple-loop-interchange.cc
11318 (tree_loop_interchange::valid_data_dependences): Revert
11319 previous change and instead correctly handle DDR_REVERSED_P
11322 2021-07-01 Richard Biener <rguenther@suse.de>
11324 PR tree-optimization/101278
11325 * tree-ssa-dse.c (dse_classify_store): First check for
11326 uses, then ignore stmt for chaining purposes.
11328 2021-07-01 Richard Biener <rguenther@suse.de>
11330 PR tree-optimization/100778
11331 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
11332 vectorized ops ahead of their scalar BB.
11334 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
11337 * config/i386/i386.md (*nabs<dwi>2_doubleword):
11338 New insn_and_split pattern.
11339 (*nabs<dwi>2_1): Ditto.
11340 * config/i386/i386-features.c
11341 (general_scalar_chain::compute_convert_gain):
11342 Handle (NEG (ABS (...))) RTX. Rewrite src code
11343 scanner as switch statement.
11344 (general_scalar_chain::convert_insn):
11345 Handle (NEG (ABS (...))) RTX.
11346 (general_scalar_to_vector_candidate_p):
11347 Detect (NEG (ABS (...))) RTX. Reorder case statements
11348 for (AND (NOT (...) ...)) fallthrough.
11350 2021-07-01 Richard Biener <rguenther@suse.de>
11352 PR tree-optimization/101178
11353 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
11354 (slpg::perm_in): Add.
11355 (slpg::get_perm_in): Remove.
11356 (slpg::get_perm_materialized): Add.
11357 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
11358 during permute propagation and materialization.
11360 2021-07-01 Jakub Jelinek <jakub@redhat.com>
11363 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
11365 2021-07-01 Jakub Jelinek <jakub@redhat.com>
11367 PR middle-end/94366
11368 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
11369 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
11370 use boolean_type_node instead of integer_type_node as NE_EXPR type.
11371 (lower_reduction_clauses): Likewise.
11373 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
11375 * config/gcn/gcn.c: Include dwarf2.h.
11376 (gcn_addr_space_debug): New function.
11377 (TARGET_ADDR_SPACE_DEBUG): New hook.
11379 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
11381 * common/config/gcn/gcn-common.c
11382 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
11383 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
11385 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
11386 (gcn_frame_pointer_rqd): New function.
11387 (TARGET_FRAME_POINTER_REQUIRED): New hook.
11389 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
11391 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
11392 prologue register saves.
11393 (gcn_debug_unwind_info): Use UI_DWARF2.
11394 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
11395 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
11396 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
11397 (DWARF_LINK_REGISTER): New define.
11398 (FIRST_PSEUDO_REGISTER): Increment.
11399 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
11400 (CALL_USED_REGISTERS): Likewise.
11401 (REGISTER_NAMES): Likewise.
11403 2021-06-30 Richard Biener <rguenther@suse.de>
11405 PR tree-optimization/101267
11406 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
11407 API and use SLP compatible interface of vect_is_simple_use.
11408 Reject not vectorized SLP defs for callers that do not support
11410 (vect_check_store_rhs): Handle masked stores and pass down
11411 the appropriate operator index.
11412 (vectorizable_call): Adjust.
11413 (vectorizable_store): Likewise.
11414 (vectorizable_load): Likewise. Handle SLP pecularity of
11416 (vect_is_simple_use): Remove special-casing of masked stores.
11418 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
11420 * common.opt (foffload): Remove help as Driver only.
11421 * gcc.c (display_help): Add -foffload.
11423 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
11425 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
11426 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
11427 a candidate list; better inform no offload target is configured
11428 and fix hint extraction when passed target is not '\0' at [len].
11429 * common.opt (foffload): Add tailing '.'.
11430 (foffload-options): Likewise; fix flag name in the help string.
11432 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
11435 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
11436 (vcage_f32): Gate comparison on __FAST_MATH__.
11437 (vcageq_f32): Likewise.
11438 (vcale_f32): Likewise.
11439 (vcaleq_f32): Likewise.
11440 (vcagt_f32): Likewise.
11441 (vcagtq_f32): Likewise.
11442 (vcalt_f32): Likewise.
11443 (vcaltq_f32): Likewise.
11444 (vcage_f16): Likewise.
11445 (vcageq_f16): Likewise.
11446 (vcale_f16): Likewise.
11447 (vcaleq_f16): Likewise.
11448 (vcagt_f16): Likewise.
11449 (vcagtq_f16): Likewise.
11450 (vcalt_f16): Likewise.
11451 (vcaltq_f16): Likewise.
11453 2021-06-30 Richard Biener <rguenther@suse.de>
11455 PR tree-optimization/101264
11456 * tree-vect-slp.c (vect_optimize_slp): Propagate the
11457 computed perm_in to all "any" permute successors
11458 we cannot de-duplicate immediately.
11460 2021-06-30 liuhongt <hongtao.liu@intel.com>
11463 * config/i386/sse.md
11464 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
11466 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
11468 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
11469 * config/i386/subst.md (maskz_scalar): New define_subst.
11470 (maskz_scalar_name): New subst_attr.
11471 (maskz_scalar_op5): Ditto.
11472 (round_saeonly_maskz_scalar_op5): Ditto.
11473 (round_saeonly_maskz_scalar_operand5): Ditto.
11475 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
11477 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
11478 Increase code CSECT alignment to at least 32 bytes.
11479 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
11480 alignment designation.
11482 2021-06-29 Sergei Trofimovich <siarheit@google.com>
11484 * doc/generic.texi: Fix s/net yet/not yet/ typo.
11486 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
11488 PR tree-optimization/101254
11489 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
11490 wrapping/non-wrapping when setting the result range.
11492 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
11494 * value-query.cc (gimple_range_global): Allow phis.
11496 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
11498 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
11499 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
11500 statement for location context.
11501 (check_for_binary_op_overflow): Ditto.
11502 (simplify_using_ranges::get_vr_for_comparison): Ditto.
11503 (simplify_using_ranges::compare_name_with_value): Ditto.
11504 (simplify_using_ranges::compare_names): Ditto.
11505 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
11506 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
11507 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
11508 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
11509 (simplify_using_ranges::two_valued_val_range_p): Ditto.
11510 (simplify_using_ranges::simplify): Ditto.
11511 * vr-values.h: Adjust prototypes.
11513 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
11516 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
11518 2021-06-29 Julian Brown <julian@codesourcery.com>
11520 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
11521 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
11522 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
11524 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
11525 (MAX_FIXED_MODE_SIZE): Change to 128.
11527 2021-06-29 Julian Brown <julian@codesourcery.com>
11529 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
11530 (s_mnemonic): Add clrsb.
11531 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
11532 (clrsb<mode>2): Add expander for SImode/DImode.
11534 2021-06-29 Julian Brown <julian@codesourcery.com>
11536 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
11537 muldi3): Add patterns.
11539 2021-06-29 Julian Brown <julian@codesourcery.com>
11541 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
11542 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
11544 2021-06-29 Julian Brown <julian@codesourcery.com>
11546 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
11548 2021-06-29 Joseph Myers <joseph@codesourcery.com>
11550 * btfout.c, ctfout.c: Include "memmodel.h".
11552 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
11554 * gcc.c (check_offload_target_name): Cast len argument to
11555 %q.*s to 'int'; avoid -Wstringop-truncation warning.
11557 2021-06-29 Richard Biener <rguenther@suse.de>
11559 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
11560 to "any" permute nodes and relax "any" permute proapgation
11561 during iterative backward propagation.
11563 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
11566 * common.opt (-foffload=): Update description.
11567 (-foffload-options=): New.
11568 * doc/invoke.texi (C Language Options): Document
11569 -foffload and -foffload-options.
11570 * gcc.c (check_offload_target_name): New, split off from
11571 handle_foffload_option.
11572 (check_foffload_target_names): New.
11573 (handle_foffload_option): Handle -foffload=default.
11574 (driver_handle_option): Update for -foffload-options.
11575 * lto-opts.c (lto_write_options): Use -foffload-options
11576 instead of -foffload.
11577 * lto-wrapper.c (merge_and_complain, append_offload_options):
11579 * opts.c (common_handle_option): Likewise.
11581 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
11583 * doc/invoke.texi (C Language Options): Sort options
11584 alphabetically in optlist and also the description itself.
11585 Remove leftover -fallow-single-precision from and add missing
11586 -fgnu-tm to the optlist.
11588 2021-06-29 Richard Biener <rguenther@suse.de>
11590 * tree-vect-slp.c (slpg_vertex::visited): Remove.
11591 (vect_slp_perms_eq): Handle -1 permutes.
11592 (vect_optimize_slp): Rewrite permute propagation.
11594 2021-06-29 Jakub Jelinek <jakub@redhat.com>
11597 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
11598 perform the optimization in GENERIC when sanitizing and x has a
11601 2021-06-29 Richard Biener <rguenther@suse.de>
11603 PR tree-optimization/101242
11604 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
11605 PHIs with not represented initial values as leafs.
11607 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
11609 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
11610 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
11611 "register" keyword.
11612 (pdp11_initial_elimination_offset) Remove unused variable.
11613 (pdp11_cmp_length) Ditto.
11614 (pdp11_insn_cost): Ditto, and fix signedness warning.
11616 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
11618 * btfout.c: Include tm_p.h.
11621 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
11623 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
11625 (bpf_expand_epilogue): Likewise.
11626 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
11627 Do not define DBX_DEBUGGING_INFO.
11629 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
11631 * doc/invoke.texi: Document the CTF and BTF debug info options.
11633 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
11634 David Faust <david.faust@oracle.com>
11635 Jose E. Marchesi <jose.marchesi@oracle.com>
11636 Weimin Pan <weimin.pan@oracle.com>
11638 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
11639 GTFILES. Add new object files.
11640 * common.opt: Add CTF and BTF debug info options.
11641 * btfout.c: New file.
11642 * ctfc.c: Likewise.
11643 * ctfc.h: Likewise.
11644 * ctfout.c: Likewise.
11645 * dwarf2ctf.c: Likewise.
11646 * dwarf2ctf.h: Likewise.
11647 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
11649 * dwarf2out.c (dwarf2out_source_line): Likewise.
11650 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
11652 (debug_format_do_cu): New function.
11653 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
11655 Include dwarf2ctf.c.
11656 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
11658 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
11659 (CTF_DEBUG): New bitmask.
11660 (BTF_DEBUG): Likewise.
11661 (enum ctf_debug_info_levels): New enum.
11662 * gengtype.c (open_base_files): Handle ctfc.h.
11663 (main): Handle uint32_t type.
11664 * flags.h (btf_debuginfo_p): New definition.
11665 (dwarf_based_debuginfo_p): Likewise.
11666 * opts.c (debug_type_names): Add entries for CTF and BTF.
11667 (btf_debuginfo_p): New function.
11668 (dwarf_based_debuginfo_p): Likewise.
11669 (common_handle_option): Handle -gctfN and -gbtf options.
11670 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
11671 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
11674 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
11676 * dwarf2out.c (AT_class): Function is no longer static.
11677 (AT_int): Likewise.
11678 (AT_unsigned): Likewise.
11679 (AT_loc): Likewise.
11680 (get_AT): Likewise.
11681 (get_AT_string): Likewise.
11682 (get_AT_flag): Likewise.
11683 (get_AT_unsigned): Likewise.
11684 (get_AT_ref): Likewise.
11685 (new_die_raw): Likewise.
11686 (lookup_decl_die): Likewise.
11687 (base_type_die): Likewise.
11688 (add_name_attribute): Likewise.
11689 (add_AT_int): Likewise.
11690 (add_AT_unsigned): Likewise.
11691 (add_AT_loc): Likewise.
11692 (dw_get_die_tag): New function.
11693 (dw_get_die_child): Likewise.
11694 (dw_get_die_sib): Likewise.
11695 (struct dwarf_file_data): Move from here to dwarf2out.h
11696 (struct dw_attr_struct): Likewise.
11697 * dwarf2out.h: Analogous changes.
11699 2021-06-28 Martin Jambor <mjambor@suse.cz>
11702 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
11703 members m_dead_stmts and m_dead_ssas.
11704 * ipa-param-manipulation.c
11705 (ipa_param_body_adjustments::mark_dead_statements): New function.
11706 (ipa_param_body_adjustments::common_initialization): Call it on
11707 all removed but not split parameters.
11708 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
11710 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
11712 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
11713 dead debug statements.
11714 (copy_phis_for_bb): Do not copy dead PHI nodes.
11716 2021-06-28 Martin Jambor <mjambor@suse.cz>
11719 * symtab-clones.h (clone_info): Removed member param_adjustments.
11720 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
11721 deal with pass-through splits now.
11722 (ipa_param_performed_split): Removed.
11723 (ipa_param_adjustments::modify_call): Adjusted parameters.
11724 (class ipa_param_body_adjustments): Adjusted parameters of
11725 register_replacement, modify_gimple_stmt and modify_call_stmt.
11726 (ipa_verify_edge_has_no_modifications): Declare.
11727 (ipa_edge_modifications_finalize): Declare.
11728 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
11729 performed_splits processing, pas only edge to padjs->modify_call,
11730 check that call arguments were not modified if they should not have
11732 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
11734 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
11735 (ipa_edge_modification_info): Likewise.
11736 (ipa_edge_modification_sum): Likewise.
11737 (ipa_edge_modifications): New edge summary.
11738 (ipa_verify_edge_has_no_modifications): New function.
11739 (transitive_split_p): Removed.
11740 (transitive_split_map): Likewise.
11741 (init_transitive_splits): Likewise.
11742 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
11743 summary instead of performed_splits.
11744 (ipa_param_body_adjustments::register_replacement): Drop dummy
11745 parameter, set base_index of the created ipa_param_body_replacement.
11746 (phi_arg_will_live_p): New function.
11747 (ipa_param_body_adjustments::common_initialization): Do not create
11748 IPA_SRA dummy decls.
11749 (simple_tree_swap_info): Removed.
11750 (remap_split_decl_to_dummy): Likewise.
11751 (record_argument_state_1): New function.
11752 (record_argument_state): Likewise.
11753 (ipa_param_body_adjustments::modify_call_stmt): New parameter
11754 orig_stmt. Do not work with dummy decls, save necessary info about
11755 changes to ipa_edge_modifications.
11756 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
11757 orig_stmt, pass it to modify_call_stmt.
11758 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
11759 modify_gimple_stmt.
11760 (ipa_edge_modifications_finalize): New function.
11761 * tree-inline.c (remap_gimple_stmt): Pass original statement to
11762 modify_gimple_stmt.
11763 (copy_phis_for_bb): Do not copy dead PHI nodes.
11764 (expand_call_inline): Do not remap performed_splits.
11765 (update_clone_info): Likewise.
11766 * toplev.c: Include ipa-param-manipulation.h.
11767 (toplev::finalize): Call ipa_edge_modifications_finalize.
11769 2021-06-28 Andrew Pinski <apinski@marvell.com>
11771 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
11772 info if we're the only things setting the target PHI.
11773 (value_replacement): Don't duplicate range here.
11774 (minmax_replacement): Likewise.
11776 2021-06-28 Richard Biener <rguenther@suse.de>
11778 PR tree-optimization/101229
11779 * gimple-walk.c (gimple_walk_op): Handle PHIs.
11781 2021-06-28 Martin Liska <mliska@suse.cz>
11783 * config/v850/v850.c (construct_dispose_instruction): Allocate
11785 (construct_prepare_instruction): Likewise.
11787 2021-06-28 Martin Liska <mliska@suse.cz>
11789 * config/v850/v850.c (v850_option_override): Build default
11791 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
11792 ignored for inlining.
11793 (TARGET_CAN_INLINE_P): New.
11795 2021-06-28 Richard Biener <rguenther@suse.de>
11797 PR tree-optimization/101207
11798 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
11799 permute eliding for load permutations properly.
11801 2021-06-28 Richard Biener <rguenther@suse.de>
11803 PR tree-optimization/101173
11804 * gimple-loop-interchange.cc
11805 (tree_loop_interchange::valid_data_dependences): Disallow outer
11806 loop dependence distance of zero.
11808 2021-06-28 liuhongt <hongtao.liu@intel.com>
11811 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
11812 define_insn_and_split.
11813 (*avx_cmp<mode>3_ltint): Ditto.
11814 (*avx2_pcmp<mode>3_3): Ditto.
11815 (*avx2_pcmp<mode>3_4): Ditto.
11816 (*avx2_pcmp<mode>3_5): Ditto.
11818 2021-06-28 liuhongt <hongtao.liu@intel.com>
11820 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
11821 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
11822 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
11823 IX86_BUILTIN_PBLENDVB128): Replace icode with
11825 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
11827 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
11828 New pre_reload splitter.
11830 2021-06-27 Andrew Pinski <apinski@marvell.com>
11832 PR middle-end/101230
11833 * fold-const.c (fold_ternary_loc): Check
11834 the return value of invert_tree_comparison.
11836 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
11838 * config.gcc: Add SPDX License Identifier.
11839 (powerpc-ibm-aix789): Default to aix73.h.
11840 (powerpc-ibm-aix7.2.*.*): New stanza.
11841 * config/rs6000/aix72.h: Add SPDX License Identifier.
11842 * config/rs6000/aix73.h: New file.
11844 2021-06-26 Jason Merrill <jason@redhat.com>
11846 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
11848 2021-06-26 Andrew Pinski <apinski@marvell.com>
11850 * genmatch.c (lower_cond): Copy for_subst_vec
11851 for the simplify also.
11852 (lower): Swap the order for lower_for and lower_cond.
11854 2021-06-26 Andrew Pinski <apinski@marvell.com>
11856 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
11857 flow senatitive info on the moved ssa set.
11859 2021-06-26 Andrew Pinski <apinski@marvell.com>
11861 * fold-const.c (fold_cond_expr_with_comparison):
11862 Exand arg0 into comp_code, arg00, and arg01.
11863 (fold_ternary_loc): Use invert_tree_comparison
11864 instead of fold_invert_truthvalue for the case
11865 where we have A CMP B ? C : A.
11867 2021-06-25 Martin Sebor <msebor@redhat.com>
11869 PR middle-end/101216
11870 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
11872 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
11874 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
11876 2021-06-25 Richard Biener <rguenther@suse.de>
11878 PR tree-optimization/101202
11879 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
11882 2021-06-25 Richard Biener <rguenther@suse.de>
11884 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
11885 STMT_VINFO_REDUC_DEF from the original representative.
11887 2021-06-25 Martin Sebor <msebor@redhat.com>
11889 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
11890 gimple_no_warning_p and gimple_set_no_warning with
11891 warning_suppressed_p, and suppress_warning.
11893 (maybe_warn_for_bound): Same.
11894 (warn_for_access): Same.
11895 (check_access): Same.
11896 (expand_builtin_strncmp): Same.
11897 (fold_builtin_varargs): Same.
11898 * calls.c (maybe_warn_nonstring_arg): Same.
11899 (maybe_warn_rdwr_sizes): Same.
11900 * cfgexpand.c (expand_call_stmt): Same.
11901 * cgraphunit.c (check_global_declaration): Same.
11902 * fold-const.c (fold_undefer_overflow_warnings): Same.
11903 (fold_truth_not_expr): Same.
11904 (fold_unary_loc): Same.
11905 (fold_checksum_tree): Same.
11906 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
11907 (array_bounds_checker::check_mem_ref): Same.
11908 (array_bounds_checker::check_addr_expr): Same.
11909 (array_bounds_checker::check_array_bounds): Same.
11910 * gimple-expr.c (copy_var_decl): Same.
11911 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
11912 (gimple_fold_builtin_strncat): Same.
11913 (gimple_fold_builtin_stxcpy_chk): Same.
11914 (gimple_fold_builtin_stpcpy): Same.
11915 (gimple_fold_builtin_sprintf): Same.
11916 (fold_stmt_1): Same.
11917 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
11918 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
11919 * gimple-ssa-sprintf.c (handle_printf_call): Same.
11920 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
11921 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
11922 * gimple-ssa-warn-restrict.h: Adjust declarations.
11923 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
11924 gimple_no_warning_p and gimple_set_no_warning with
11925 warning_suppressed_p, and suppress_warning.
11926 (check_call): Same.
11927 (check_bounds_or_overlap): Same.
11928 * gimple.c (gimple_build_call_from_tree): Same.
11929 * gimplify.c (gimplify_return_expr): Same.
11930 (gimplify_cond_expr): Same.
11931 (gimplify_modify_expr_complex_part): Same.
11932 (gimplify_modify_expr): Same.
11933 (gimple_push_cleanup): Same.
11934 (gimplify_expr): Same.
11935 * omp-expand.c (expand_omp_for_generic): Same.
11936 (expand_omp_taskloop_for_outer): Same.
11937 * omp-low.c (lower_rec_input_clauses): Same.
11938 (lower_lastprivate_clauses): Same.
11939 (lower_send_clauses): Same.
11940 (lower_omp_target): Same.
11941 * tree-cfg.c (pass_warn_function_return::execute): Same.
11942 * tree-complex.c (create_one_component_var): Same.
11943 * tree-inline.c (remap_gimple_op_r): Same.
11944 (copy_tree_body_r): Same.
11945 (declare_return_variable): Same.
11946 (expand_call_inline): Same.
11947 * tree-nested.c (lookup_field_for_decl): Same.
11948 * tree-sra.c (create_access_replacement): Same.
11949 (generate_subtree_copies): Same.
11950 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
11951 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
11952 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
11953 * tree-ssa-loop-im.c (execute_sm): Same.
11954 * tree-ssa-phiopt.c (cond_store_replacement): Same.
11955 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
11956 (handle_builtin_strcpy): Same.
11957 (maybe_diag_stxncpy_trunc): Same.
11958 (handle_builtin_stxncpy_strncat): Same.
11959 (handle_builtin_strcat): Same.
11960 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
11961 (set_no_uninit_warning): Same.
11962 (uninit_undefined_value_p): Same.
11963 (warn_uninit): Same.
11964 (maybe_warn_operand): Same.
11965 * tree-vrp.c (compare_values_warnv): Same.
11966 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
11967 (test_for_singularity): Same.
11968 * gimple.h (warning_suppressed_p): New function.
11969 (suppress_warning): Same.
11970 (copy_no_warning): Same.
11971 (gimple_set_block): Call gimple_set_location.
11972 (gimple_set_location): Call copy_warning.
11974 2021-06-25 Martin Sebor <msebor@redhat.com>
11976 * tree.h (warning_suppressed_at, copy_warning,
11977 warning_suppressed_p, suppress_warning): New functions.
11979 2021-06-25 Martin Sebor <msebor@redhat.com>
11981 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
11982 * gengtype.c (open_base_files): Add diagnostic-spec.h.
11983 * diagnostic-spec.c: New file.
11984 * diagnostic-spec.h: New file.
11985 * tree.h (no_warning, all_warnings, suppress_warning_at): New
11987 * warning-control.cc: New file.
11989 2021-06-25 liuhongt <hongtao.liu@intel.com>
11992 * config/i386/i386.c (x86_order_regs_for_local_alloc):
11995 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
11997 PR tree-optimization/101189
11998 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
11999 LHS range of condition to postfold routine.
12000 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
12001 FALSE edge if the LHS range supports it being taken.
12002 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
12004 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
12006 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
12007 (relation_oracle::find_relation_block): Check correct bitmap.
12008 (relation_oracle::dump): Do not dump NULL blocks.
12010 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
12012 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
12013 range_on_edge instead of manually calculating.
12015 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
12017 * range-op.cc: Fix comment.
12019 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
12022 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
12023 Handle V8QI and V4HI modes.
12024 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
12026 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
12027 (mmxpackmode): New mode attribute.
12028 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
12029 (mmxunpackmode): New mode attribute.
12030 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
12031 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
12032 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
12033 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
12034 * config/i386/i386.md (extsuffix): Move from ...
12035 * config/i386/sse.md: ... here.
12037 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
12039 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
12040 (dwarf2out_finish): ...instead of here.
12042 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
12044 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
12045 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
12046 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
12047 * configure: Regenerate.
12049 2021-06-24 Richard Biener <rguenther@suse.de>
12051 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
12052 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
12053 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
12055 2021-06-24 Richard Biener <rguenther@suse.de>
12057 * config/i386/sse.md (avx_addsubv4df3): Rename to
12059 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
12060 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
12061 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
12062 * config/i386/i386-builtin.def: Adjust.
12063 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
12064 * optabs.def (vec_addsub_optab): New optab.
12065 * tree-vect-slp-patterns.c (class addsub_pattern): New.
12066 (slp_patterns): Add addsub_pattern.
12067 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
12068 across CFN_VEC_ADDSUB.
12069 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
12071 * doc/md.texi (vec_addsub<mode>3): Document.
12073 2021-06-24 Jakub Jelinek <jakub@redhat.com>
12075 PR middle-end/101170
12076 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
12077 where regno + subreg_regno_offset wraps around use 0 as starting
12080 2021-06-24 Jakub Jelinek <jakub@redhat.com>
12082 PR middle-end/101172
12083 * stor-layout.c (finish_bitfield_representative): If nextf has
12084 error_mark_node type, set repr type to error_mark_node too.
12086 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
12088 * config/s390/s390.c (s390_function_profiler): Ignore labelno
12090 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
12092 2021-06-24 Richard Biener <rguenther@suse.de>
12094 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
12095 across operations that have different semantics on different
12098 2021-06-24 Jakub Jelinek <jakub@redhat.com>
12100 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
12101 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
12102 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
12103 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
12104 OMP_TARGET user outer_ctx instead of ctx for placeholders and
12105 initializer/combiner gimplification.
12106 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
12107 on target constructs.
12108 (lower_rec_input_clauses): Likewise.
12109 (lower_omp_target): Likewise.
12110 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
12111 on target if in_reduction is present.
12113 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
12115 * tree-predcom.c (class pcom_worker): New class.
12116 (release_chain): Renamed to...
12117 (pcom_worker::release_chain): ...this.
12118 (release_chains): Renamed to...
12119 (pcom_worker::release_chains): ...this.
12120 (aff_combination_dr_offset): Renamed to...
12121 (pcom_worker::aff_combination_dr_offset): ...this.
12122 (determine_offset): Renamed to...
12123 (pcom_worker::determine_offset): ...this.
12124 (class comp_ptrs): New class.
12125 (split_data_refs_to_components): Renamed to...
12126 (pcom_worker::split_data_refs_to_components): ...this,
12127 and update with class comp_ptrs.
12128 (suitable_component_p): Renamed to...
12129 (pcom_worker::suitable_component_p): ...this.
12130 (filter_suitable_components): Renamed to...
12131 (pcom_worker::filter_suitable_components): ...this.
12132 (valid_initializer_p): Renamed to...
12133 (pcom_worker::valid_initializer_p): ...this.
12134 (find_looparound_phi): Renamed to...
12135 (pcom_worker::find_looparound_phi): ...this.
12136 (add_looparound_copies): Renamed to...
12137 (pcom_worker::add_looparound_copies): ...this.
12138 (determine_roots_comp): Renamed to...
12139 (pcom_worker::determine_roots_comp): ...this.
12140 (determine_roots): Renamed to...
12141 (pcom_worker::determine_roots): ...this.
12142 (single_nonlooparound_use): Renamed to...
12143 (pcom_worker::single_nonlooparound_use): ...this.
12144 (remove_stmt): Renamed to...
12145 (pcom_worker::remove_stmt): ...this.
12146 (execute_pred_commoning_chain): Renamed to...
12147 (pcom_worker::execute_pred_commoning_chain): ...this.
12148 (execute_pred_commoning): Renamed to...
12149 (pcom_worker::execute_pred_commoning): ...this.
12150 (struct epcc_data): New member worker.
12151 (execute_pred_commoning_cbck): Call execute_pred_commoning
12152 with pcom_worker pointer.
12153 (find_use_stmt): Renamed to...
12154 (pcom_worker::find_use_stmt): ...this.
12155 (find_associative_operation_root): Renamed to...
12156 (pcom_worker::find_associative_operation_root): ...this.
12157 (find_common_use_stmt): Renamed to...
12158 (pcom_worker::find_common_use_stmt): ...this.
12159 (combinable_refs_p): Renamed to...
12160 (pcom_worker::combinable_refs_p): ...this.
12161 (reassociate_to_the_same_stmt): Renamed to...
12162 (pcom_worker::reassociate_to_the_same_stmt): ...this.
12163 (stmt_combining_refs): Renamed to...
12164 (pcom_worker::stmt_combining_refs): ...this.
12165 (combine_chains): Renamed to...
12166 (pcom_worker::combine_chains): ...this.
12167 (try_combine_chains): Renamed to...
12168 (pcom_worker::try_combine_chains): ...this.
12169 (prepare_initializers_chain): Renamed to...
12170 (pcom_worker::prepare_initializers_chain): ...this.
12171 (prepare_initializers): Renamed to...
12172 (pcom_worker::prepare_initializers): ...this.
12173 (prepare_finalizers_chain): Renamed to...
12174 (pcom_worker::prepare_finalizers_chain): ...this.
12175 (prepare_finalizers): Renamed to...
12176 (pcom_worker::prepare_finalizers): ...this.
12177 (tree_predictive_commoning_loop): Renamed to...
12178 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
12179 some calls and remove some cleanup code.
12180 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
12181 (static variable looparound_phis): Remove.
12182 (static variable name_expansions): Remove.
12184 2021-06-24 Richard Biener <rguenther@suse.de>
12186 * tree-vect-slp.c (slpg_vertex): New struct.
12187 (vect_slp_build_vertices): Adjust.
12188 (vect_optimize_slp): Likewise. Maintain an outgoing permute
12189 and a materialized one.
12191 2021-06-24 Richard Biener <rguenther@suse.de>
12193 PR tree-optimization/101105
12194 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12195 Only ignore steps when they are equal or scalar order is preserved.
12197 2021-06-24 liuhongt <hongtao.liu@intel.com>
12200 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
12201 Adjust comments for ix86_expand_vecop_qihi2.
12202 (ix86_expand_vecmul_qihi): Renamed to ..
12203 (ix86_expand_vecop_qihi2): Adjust function prototype to
12204 support shift operation, add static to definition.
12205 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
12206 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
12207 ix86_expand_vec_shift_qihi_constant.
12208 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
12209 (ix86_expand_vec_shift_qihi_constant): Deleted.
12210 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
12212 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
12213 condition TARGET_64BIT.
12214 (mul<mode>3): Ditto.
12215 (<insn><mode>3): Ditto.
12216 (vlshr<mode>3): Extend to support avx512 vlshr.
12217 (v<insn><mode>3): New expander for
12219 (v<insn>v8qi3): Ditto.
12220 (vashrv8hi3<mask_name>): Renamed to ..
12221 (vashr<mode>3): And extend to support V16QImode for avx512.
12222 (vashrv16qi3): Deleted.
12223 (vashrv2di3<mask_name>): Extend expander to support avx512
12226 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
12228 * doc/lto.texi (Design Overview): Update that slim objects are
12231 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
12233 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
12234 of OTHER_POWER10_MASKS so it will not be enabled by default.
12236 2021-06-23 Richard Biener <rguenther@suse.de>
12237 Martin Jambor <mjambor@suse.cz>
12239 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
12240 param replacement unconditionally. Adjust comment.
12242 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
12244 * Makefile.in (OBJS): Add gimple-range-fold.o
12245 * gimple-range-fold.cc: New.
12246 * gimple-range-fold.h: New.
12247 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
12248 (gimple_range_calc_op2): Ditto.
12249 * gimple-range-gori.h: Move prototypes to here.
12250 * gimple-range.cc: Adjust include files.
12251 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
12252 (fur_source::get_operand): Ditto.
12253 (fur_source::get_phi_operand): Ditto.
12254 (fur_source::query_relation): Ditto.
12255 (fur_source::register_relation): Ditto.
12256 (class fur_edge): Ditto.
12257 (fur_edge::fur_edge): Ditto.
12258 (fur_edge::get_operand): Ditto.
12259 (fur_edge::get_phi_operand): Ditto.
12260 (fur_stmt::fur_stmt): Ditto.
12261 (fur_stmt::get_operand): Ditto.
12262 (fur_stmt::get_phi_operand): Ditto.
12263 (fur_stmt::query_relation): Ditto.
12264 (class fur_depend): Relocate to gimple-range-fold.h.
12265 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
12266 (fur_depend::register_relation): Ditto.
12267 (fur_depend::register_relation): Ditto.
12268 (class fur_list): Ditto.
12269 (fur_list::fur_list): Ditto.
12270 (fur_list::get_operand): Ditto.
12271 (fur_list::get_phi_operand): Ditto.
12272 (fold_range): Ditto.
12273 (adjust_pointer_diff_expr): Ditto.
12274 (gimple_range_adjustment): Ditto.
12275 (gimple_range_base_of_assignment): Ditto.
12276 (gimple_range_operand1): Ditto.
12277 (gimple_range_operand2): Ditto.
12278 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
12279 (gimple_range_calc_op2): Ditto.
12280 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
12281 (fold_using_range::range_of_range_op): Ditto.
12282 (fold_using_range::range_of_address): Ditto.
12283 (fold_using_range::range_of_phi): Ditto.
12284 (fold_using_range::range_of_call): Ditto.
12285 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
12286 (fold_using_range::range_of_builtin_call): Ditto.
12287 (fold_using_range::range_of_cond_expr): Ditto.
12288 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
12289 (fold_using_range::relation_fold_and_or): Ditto.
12290 (fold_using_range::postfold_gcond_edges): Ditto.
12291 * gimple-range.h: Add gimple-range-fold.h to include files. Change
12292 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
12293 (gimple_range_handler): Relocate to gimple-range-fold.h.
12294 (gimple_range_ssa_p): Ditto.
12295 (range_compatible_p): Ditto.
12296 (class fur_source): Ditto.
12297 (class fur_stmt): Ditto.
12298 (class fold_using_range): Ditto.
12299 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
12300 (gimple_range_calc_op2): Ditto.
12302 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
12304 PR tree-optimization/101148
12305 PR tree-optimization/101014
12306 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
12307 (ranger_cache::~ranger_cache): Adjust.
12308 (ranger_cache::block_range): Check if propagation disallowed.
12309 (ranger_cache::propagate_cache): Disallow propagation if new value
12310 can't be stored properly.
12311 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
12313 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
12315 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
12316 (sbr_vector::set_bb_range): Return true.
12317 (class sbr_sparse_bitmap): Adjust.
12318 (sbr_sparse_bitmap::set_bb_range): Return value.
12319 (block_range_cache::set_bb_range): Return value.
12320 (ranger_cache::propagate_cache): Use return value to print msg.
12321 * gimple-range-cache.h (class block_range_cache): Adjust.
12323 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
12325 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
12327 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
12329 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
12330 so this pattern can be used for test/compare removal. Pass
12331 current insn to compute_logical_op_length and output_logical_op.
12332 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
12333 (h8300_and_costs): Add argument to compute_logical_op_length.
12334 (output_logical_op): Add new argument. Use it to determine if the
12335 condition codes are used and adjust the output accordingly.
12336 (compute_logical_op_length): Add new argument and update length
12337 computations when condition codes are used.
12338 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
12340 (output_logical_op): Likewise.
12342 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
12345 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
12346 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
12347 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
12348 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
12349 * config/i386/sse.md (unspec): ... here.
12351 2021-06-23 Martin Liska <mliska@suse.cz>
12354 * optc-save-gen.awk: Put back arm_fp16_format to
12357 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
12360 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
12363 (clz<mode>2): Update RTX pattern for additions.
12365 2021-06-23 Jakub Jelinek <jakub@redhat.com>
12367 PR middle-end/101167
12368 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
12369 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
12371 2021-06-22 Sergei Trofimovich <siarheit@google.com>
12373 * doc/rtl.texi: drop unbalanced parenthesis.
12375 2021-06-22 Richard Biener <rguenther@suse.de>
12377 PR middle-end/101156
12378 * gimplify.c (gimplify_expr): Remove premature incorrect
12381 2021-06-22 Jakub Jelinek <jakub@redhat.com>
12383 PR tree-optimization/101159
12384 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
12387 2021-06-22 Jakub Jelinek <jakub@redhat.com>
12389 PR middle-end/101160
12390 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
12391 clear crtl->return_rtx instead of keeping it referencing a pseudo.
12393 2021-06-22 Jakub Jelinek <jakub@redhat.com>
12394 Andrew Pinski <apinski@marvell.com>
12396 PR tree-optimization/101162
12397 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
12400 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
12402 * range-op.cc (range_relational_tests): New.
12403 (range_op_tests): Call range_relational_tests.
12405 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
12407 * range-op.cc (operator_cast::lhs_op1_relation): New.
12408 (operator_identity::lhs_op1_relation): Mew.
12410 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
12412 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
12414 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
12416 * range-op.cc (operator_plus::lhs_op1_relation): New.
12417 (operator_plus::lhs_op2_relation): New.
12419 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
12421 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
12422 relation_oracle if dominators exist.
12423 (ranger_cache::~ranger_cache): Dispose of oracle.
12424 (ranger_cache::dump_bb): Dump oracle.
12425 * gimple-range.cc (fur_source::fur_source): New.
12426 (fur_source::get_operand): Use mmeber query.
12427 (fur_source::get_phi_operand): Use member_query.
12428 (fur_source::query_relation): New.
12429 (fur_source::register_dependency): Delete.
12430 (fur_source::register_relation): New.
12431 (fur_edge::fur_edge): Adjust.
12432 (fur_edge::get_phi_operand): Fix comment.
12433 (fur_edge::query): Delete.
12434 (fur_stmt::fur_stmt): Adjust.
12435 (fur_stmt::query): Delete.
12436 (fur_depend::fur_depend): Adjust.
12437 (fur_depend::register_relation): New.
12438 (fur_depend::register_relation): New.
12439 (fur_list::fur_list): Adjust.
12440 (fur_list::get_operand): Use member query.
12441 (fold_using_range::range_of_range_op): Process and query relations.
12442 (fold_using_range::range_of_address): Adjust dependency call.
12443 (fold_using_range::range_of_phi): Ditto.
12444 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
12445 (fold_using_range::relation_fold_and_or): New.
12446 (fold_using_range::postfold_gcond_edges): New.
12447 * gimple-range.h (class gimple_ranger): Adjust.
12448 (class fur_source): Adjust members.
12449 (class fur_stmt): Ditto.
12450 (class fold_using_range): Ditto.
12452 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
12454 * range-op.cc (range_operator::wi_fold): Apply relation effect.
12455 (range_operator::fold_range): Adjust and apply relation effect.
12456 (*::fold_range): Add relation parameters.
12457 (*::op1_range): Ditto.
12458 (*::op2_range): Ditto.
12459 (range_operator::lhs_op1_relation): New.
12460 (range_operator::lhs_op2_relation): New.
12461 (range_operator::op1_op2_relation): New.
12462 (range_operator::op1_op2_relation_effect): New.
12463 (relop_early_resolve): New.
12464 (operator_equal::op1_op2_relation): New.
12465 (operator_equal::fold_range): Call relop_early_resolve.
12466 (operator_not_equal::op1_op2_relation): New.
12467 (operator_not_equal::fold_range): Call relop_early_resolve.
12468 (operator_lt::op1_op2_relation): New.
12469 (operator_lt::fold_range): Call relop_early_resolve.
12470 (operator_le::op1_op2_relation): New.
12471 (operator_le::fold_range): Call relop_early_resolve.
12472 (operator_gt::op1_op2_relation): New.
12473 (operator_gt::fold_range): Call relop_early_resolve.
12474 (operator_ge::op1_op2_relation): New.
12475 (operator_ge::fold_range): Call relop_early_resolve.
12476 * range-op.h (class range_operator): Adjust parameters and methods.
12478 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
12480 * Makefile.in (OBJS): Add value-relation.o.
12481 * gimple-range.h: Adjust include files.
12482 * tree-data-ref.c: Adjust include file order.
12483 * value-query.cc (range_query::get_value_range): Default to no oracle.
12484 (range_query::query_relation): New.
12485 (range_query::query_relation): New.
12486 * value-query.h (class range_query): Adjust.
12487 * value-relation.cc: New.
12488 * value-relation.h: New.
12490 2021-06-22 Richard Biener <rguenther@suse.de>
12492 PR tree-optimization/101151
12493 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
12496 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
12498 * config/riscv/riscv.c (thead_c906_tune_info): New.
12499 (riscv_tune_info_table): Use new tune.
12501 2021-06-22 Richard Biener <rguenther@suse.de>
12503 PR tree-optimization/101158
12504 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
12505 checking after checking for matching operation.
12507 2021-06-22 Richard Biener <rguenther@suse.de>
12509 PR tree-optimization/101159
12510 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
12511 missing NULL vectype check.
12513 2021-06-22 Richard Biener <rguenther@suse.de>
12515 PR tree-optimization/101154
12516 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
12518 2021-06-22 Jakub Jelinek <jakub@redhat.com>
12521 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
12522 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
12523 * config/i386/i386.c (ix86_expand_prologue): Clear it.
12524 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
12525 Remove "" from match_operand. Emit new insns using emit_move_insn and
12526 set ix86_last_zero_store_uid to INSN_UID of the last store.
12527 Add peephole2s for 1/2/4 stores of const0_rtx following previous
12530 2021-06-22 Martin Liska <mliska@suse.cz>
12532 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
12535 2021-06-22 Martin Liska <mliska@suse.cz>
12537 * gcov-io.h: Remove padding entries.
12539 2021-06-22 liuhongt <hongtao.liu@intel.com>
12541 PR tree-optimization/97770
12542 * tree-vect-patterns.c (vect_recog_popcount_pattern):
12544 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
12546 2021-06-22 liuhongt <hongtao.liu@intel.com>
12549 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
12550 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
12551 (expand<mode>_mask): this ..
12552 (*expand<mode>_mask): New pre_reload splitter to transform
12553 v{,p}expand* to vmov* when mask is zero, all ones, or has all
12554 ones in it's lower part, otherwise still generate
12557 2021-06-22 liuhongt <hongtao.liu@intel.com>
12560 * config/i386/i386-expand.c
12561 (ix86_expand_special_args_builtin): Keep constm1_operand only
12562 if it satisfies insn's operand predicate.
12564 2021-06-21 Jason Merrill <jason@redhat.com>
12567 * df-scan.c (df_ref_record): Check that regno < endregno.
12568 * function.c (assign_parms, expand_function_end): Do nothing with a
12569 TYPE_EMPTY_P result.
12571 2021-06-21 Richard Biener <rguenther@suse.de>
12573 PR tree-optimization/101120
12574 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
12576 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
12577 DR chain DCE capability.
12578 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
12579 * tree-vect-stmts.c (vectorizable_load): Remove unused
12580 loads in the DR chain for SLP.
12582 2021-06-21 Jakub Jelinek <jakub@redhat.com>
12584 PR inline-asm/100785
12585 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
12586 output or input operands were already error_mark_node.
12587 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
12588 remove all inputs, outputs and clobbers from the asm and
12589 set template to "".
12591 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
12593 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
12594 (vceq_s16): Likewise.
12595 (vceq_s32): Likewise.
12596 (vceq_u8): Likewise.
12597 (vceq_u16): Likewise.
12598 (vceq_u32): Likewise.
12599 (vceq_p8): Likewise.
12600 (vceqq_s8): Likewise.
12601 (vceqq_s16): Likewise.
12602 (vceqq_s32): Likewise.
12603 (vceqq_u8): Likewise.
12604 (vceqq_u16): Likewise.
12605 (vceqq_u32): Likewise.
12606 (vceqq_p8): Likewise.
12607 (vceq_f32): Gate __a == __b on __FAST_MATH__.
12608 (vceqq_f32): Likewise.
12609 (vceq_f16): Likewise.
12610 (vceqq_f16): Likewise.
12612 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
12615 * config/arm/iterators.md (NEON_VACMP): Remove.
12616 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
12618 (neon_vca<cmp_op><mode>_insn): Likewise.
12619 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
12622 2021-06-21 Richard Biener <rguenther@suse.de>
12624 PR tree-optimization/101121
12625 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
12626 when we just lack a stmt with the desired op when doing permutation.
12627 (vect_build_slp_tree): When caching a failed SLP build attempt
12628 assert that at least one lane is marked as not matching.
12630 2021-06-21 liuhongt <hongtao.liu@intel.com>
12633 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
12634 register alternative.
12635 (*and<mode>_1): Ditto.
12637 (*andn<mode>_1): Ditto.
12638 (*<code><mode>_1): Ditto.
12639 (*<code>qi_1): Ditto.
12640 (*one_cmpl<mode>2_1): Ditto.
12641 (*one_cmplsi2_1_zext): Ditto.
12642 (*one_cmplqi2_1): Ditto.
12643 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
12644 the order of mask registers to be before general registers.
12646 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
12649 * config/i386/i386.md: New define_peephole2s to shrink writing
12650 1, 2 or 4 consecutive zeros to memory when optimizing for size.
12652 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
12654 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
12655 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
12656 more efficient code when the source can be trivially simplified.
12658 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
12660 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
12661 a range if global is not available.
12662 (ranger_cache::entry_range): Fallback to range_of_def.
12663 * gimple-range-cache.h (range_of_def): Adjust prototype.
12665 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
12667 PR tree-optimization/101014
12668 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
12670 (ranger_cache::~ranger_cache): Ditto.
12671 (ranger_cache::enable_new_values): Delete.
12672 (ranger_cache::push_poor_value): Delete.
12673 (ranger_cache::range_of_def): Remove poor value processing.
12674 (ranger_cache::entry_range): Ditto.
12675 (ranger_cache::fill_block_cache): Ditto.
12676 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
12677 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
12678 * gimple-range.h (class gimple_ranger): Adjust.
12680 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
12683 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
12684 derived from arm_canon_arch.
12685 (arm_canon_arch_option): Call it.
12686 (arm_canon_arch_multilib_option): New function.
12687 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
12688 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
12689 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
12690 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
12691 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
12692 * config/arm/arm.opt (mlibarch): New option.
12693 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
12694 of march on RHS with mlibarch.
12696 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
12698 * config.in: Regenerate.
12699 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
12701 * configure: Regenerate.
12702 * configure.ac: Fix for global_load assembler functions.
12704 2021-06-18 Richard Biener <rguenther@suse.de>
12706 PR tree-optimization/101112
12707 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
12708 to lookup a pattern stmt def.
12710 2021-06-18 Jakub Jelinek <jakub@redhat.com>
12712 PR middle-end/101062
12713 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
12714 representatives in QUAL_UNION_TYPE.
12716 2021-06-18 Andrew Pinski <apinski@marvell.com>
12718 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
12719 Add counting of how many times it is done.
12720 (factor_out_conditional_conversion): Likewise.
12721 (match_simplify_replacement): Likewise.
12722 (value_replacement): Likewise.
12723 (spaceship_replacement): Likewise.
12724 (cond_store_replacement): Likewise.
12725 (cond_if_else_store_replacement_1): Likewise.
12726 (hoist_adjacent_loads): Likewise.
12728 2021-06-18 Andrew Pinski <apinski@marvell.com>
12730 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
12731 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
12732 (verify_gimple_assign_binary): Reject point and offset types on
12733 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
12734 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
12735 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
12737 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
12739 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
12740 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
12741 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
12744 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
12746 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
12747 earlyclobber to alts 0/1.
12748 (gen_addadd): Add earlyclobber to alts 0/1.
12749 * config/rs6000/fusion.md: Regenerate file.
12751 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
12753 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
12755 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
12757 * gimple-range-cache.cc: Comment cleanups.
12758 * gimple-range-gori.cc: Comment cleanups.
12759 * gimple-range.cc: Comment/spacing cleanups
12760 * value-range.h: Comment cleanups.
12762 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
12765 * calls.c (expand_call): Replace PUSH_ARGS with
12766 targetm.calls.push_argument (0).
12767 (emit_library_call_value_1): Likewise.
12768 * defaults.h (PUSH_ARGS): Removed.
12769 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
12770 targetm.calls.push_argument (0).
12771 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12772 (emit_push_insn): Pass the number bytes to push to
12773 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
12774 * hooks.c (hook_bool_uint_true): New.
12775 * hooks.h (hook_bool_uint_true): Likewise.
12776 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
12777 targetm.calls.push_argument (0).
12778 * target.def (push_argument): Add a targetm.calls hook.
12779 * targhooks.c (default_push_argument): New.
12780 * targhooks.h (default_push_argument): Likewise.
12781 * config/bpf/bpf.h (PUSH_ARGS): Removed.
12782 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
12783 * config/cr16/cr16.h (PUSH_ARGS): Removed.
12784 * config/i386/i386.c (ix86_push_argument): New.
12785 (TARGET_PUSH_ARGUMENT): Likewise.
12786 * config/i386/i386.h (PUSH_ARGS): Removed.
12787 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
12788 * config/m32c/m32c.h (PUSH_ARGS): Removed.
12789 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
12790 * config/pru/pru.h (PUSH_ARGS): Likewise.
12791 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
12792 TARGET_PUSH_ARGUMENT hook.
12793 * doc/tm.texi: Regenerated.
12795 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
12798 * config/i386/i386-expand.c (expand_vector_set_var):
12799 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
12800 ix86_expand_vector_init_duplicate.
12801 (ix86_expand_vector_init_duplicate): Emit insv_1 for
12802 QImode for !TARGET_PARTIAL_REG_STALL.
12803 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
12804 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
12805 as operand 2 predicate. Call ix86_expand_vector_set_var
12806 for non-constant index operand.
12807 (vec_setv2si): Ditto.
12808 (vec_setv4hi): Ditto.
12809 (vec_setv8qi): ditto.
12811 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
12813 PR tree-optimization/100790
12814 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
12817 2021-06-17 Martin Liska <mliska@suse.cz>
12819 * doc/invoke.texi: Use consistently -O1 instead of -O.
12821 2021-06-17 Martin Liska <mliska@suse.cz>
12823 * gcov-io.h: Update documentation entry about string format.
12825 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
12828 * config/s390/vecintrin.h (vec_doublee): Fix to use
12829 __builtin_s390_vflls.
12830 (vec_floate): Fix to use __builtin_s390_vflrd.
12832 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
12834 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
12835 * dominance.h (get_dominated_to_depth): Likewise.
12836 (get_all_dominated_blocks): Likewise.
12837 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
12838 * gcse.c (hoist_code): Likewise.
12839 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
12840 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
12841 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
12842 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
12844 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
12846 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
12847 * dominance.h (get_dominated_by_region): Likewise.
12848 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
12849 (gimple_duplicate_sese_tail): Likewise.
12850 (move_sese_region_to_fn): Likewise.
12852 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
12854 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
12855 * dominance.h (get_dominated_by): Likewise.
12856 * auto-profile.c (afdo_find_equiv_class): Adjust.
12857 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
12858 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
12859 * tree-cfg.c (test_linear_chain): Likewise.
12860 (test_diamond): Likewise.
12862 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
12864 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
12865 * cfgloopanal.c (get_loop_hot_path): Likewise.
12866 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
12868 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
12870 * cgraph.c (cgraph_node::collect_callers): Return
12871 auto_vec<cgraph_edge *>.
12872 * cgraph.h (cgraph_node::collect_callers): Likewise.
12873 * ipa-cp.c (create_specialized_node): Adjust.
12874 (decide_about_value): Likewise.
12875 (decide_whether_version_node): Likewise.
12876 * ipa-sra.c (process_isra_node_results): Likewise.
12878 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
12880 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
12881 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
12883 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
12886 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
12888 * gimple-range.cc (debug_seed_ranger): New.
12889 (dump_ranger): New.
12890 (debug_ranger): New.
12892 2021-06-17 Richard Biener <rguenther@suse.de>
12894 PR tree-optimization/54400
12895 * tree-vectorizer.h (enum slp_instance_kind): Add
12896 slp_inst_kind_bb_reduc.
12897 (reduction_fn_for_scalar_code): Declare.
12898 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
12899 Check SLP_INSTANCE_KIND instead of looking at the
12901 (vect_slp_analyze_instance_alignment): Likewise.
12902 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
12903 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
12904 chain linearization from vect_build_slp_tree_2 and generalize
12905 for the use of BB reduction vectorization.
12906 (vect_build_slp_tree_2): Adjust accordingly.
12907 (vect_optimize_slp): Elide permutes at the root of BB reduction
12909 (vectorizable_bb_reduc_epilogue): New function.
12910 (vect_slp_prune_covered_roots): Likewise.
12911 (vect_slp_analyze_operations): Use them.
12912 (vect_slp_check_for_constructors): Recognize associatable
12913 chains for BB reduction vectorization.
12914 (vectorize_slp_instance_root_stmt): Generate code for the
12915 BB reduction epilogue.
12917 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
12919 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
12921 (gori_compute::may_recompute_p): New.
12922 (gori_compute::outgoing_edge_range_p): Perform recomputations.
12923 * gimple-range-gori.h (class gori_compute): Add prototype.
12925 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
12927 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
12928 true when a range can be calculated.
12929 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
12931 2021-06-16 Martin Sebor <msebor@redhat.com>
12933 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
12934 Correct documented defaults.
12936 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
12938 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
12939 m_new_value_p directly.
12941 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
12944 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
12945 Handle 64bit modes for TARGET_SSE4_1.
12946 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
12947 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
12948 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
12949 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
12950 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
12951 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
12953 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
12955 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
12956 Change to an expander that emits the correct instruction
12957 depending on endianness.
12958 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
12959 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
12961 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
12963 * config/aarch64/aarch64-simd-builtins.def: Split generator
12964 for aarch64_<su>qmovn builtins into scalar and vector
12966 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
12968 (aarch64_<su>qmovn<mode>_insn_be): Define.
12969 (aarch64_<su>qmovn<mode>): Split into scalar and vector
12970 variants. Change vector variant to an expander that emits the
12971 correct instruction depending on endianness.
12973 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
12975 * config/aarch64/aarch64-simd-builtins.def: Split generator
12976 for aarch64_sqmovun builtins into scalar and vector variants.
12977 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
12978 Split into scalar and vector variants. Change vector variant
12979 to an expander that emits the correct instruction depending
12981 (aarch64_sqmovun<mode>_insn_le): Define.
12982 (aarch64_sqmovun<mode>_insn_be): Define.
12984 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
12986 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
12987 Define - modeling zero-high-half semantics.
12988 (aarch64_xtn<mode>): Change to an expander that emits the
12989 appropriate instruction depending on endianness.
12990 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
12992 (aarch64_xtn2<mode>_le): Rename to...
12993 (aarch64_xtn2<mode>_insn_le): This.
12994 (aarch64_xtn2<mode>_be): Rename to...
12995 (aarch64_xtn2<mode>_insn_be): This.
12996 (vec_pack_trunc_<mode>): Emit truncation instruction instead
12998 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
12999 attribute iterator.
13001 2021-06-16 Martin Jambor <mjambor@suse.cz>
13003 PR tree-optimization/100453
13004 * tree-sra.c (create_access): Disqualify any const candidates
13005 which are written to.
13006 (sra_modify_expr): Do not store sub-replacements back to a const base.
13007 (handle_unscalarized_data_in_subtree): Likewise.
13008 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
13009 instead of constant_decl_p.
13011 2021-06-16 Jakub Jelinek <jakub@redhat.com>
13013 PR middle-end/101062
13014 * stor-layout.c (finish_bitfield_representative): For fields in unions
13015 assume nextf is always NULL.
13016 (finish_bitfield_layout): Compute bit field representatives also in
13017 unions, but handle it as if each bitfield was the only field in the
13020 2021-06-16 Richard Biener <rguenther@suse.de>
13022 PR tree-optimization/101088
13023 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
13024 supported refs on edges. Do not assert same ref but
13025 different kind stores are unsuported but mark them so.
13026 (hoist_memory_references): Only look for supported refs
13029 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
13031 PR rtl-optimization/46235
13032 * config/i386/i386.md: New define_split for bt followed by cmov.
13033 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
13034 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
13035 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
13036 by setnc with zero extension.
13038 2021-06-16 Richard Biener <rguenther@suse.de>
13040 PR tree-optimization/101083
13041 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
13042 vectype as argument.
13043 (vect_build_slp_tree_2): Adjust.
13045 2021-06-15 Martin Sebor <msebor@redhat.com>
13047 PR middle-end/100876
13048 * builtins.c: (gimple_call_return_array): Account for size_t
13049 mangling as either unsigned int or unsigned long
13051 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
13053 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
13054 up before eliminating comparisons.
13056 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
13058 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
13059 nonzero|X is nonzero.
13060 (range_op_bitwise_and_tests): Add tests for above.
13062 2021-06-15 Carl Love <cel@us.ibm.com>
13065 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
13067 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
13070 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
13073 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
13074 (struct gimplify_omp_ctx): Extend defaultmap array by one.
13075 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
13076 (omp_notice_variable): Update type classification for Fortran.
13077 (gimplify_scan_omp_clauses): Update calls for new argument; handle
13078 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
13079 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
13080 * langhooks.c (lhd_omp_scalar_p): Likewise.
13081 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
13082 (LANG_HOOKS_DECLS): Add them.
13083 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
13084 omp_scalar_p pointer type to include the new bool argument.
13086 2021-06-15 David Malcolm <dmalcolm@redhat.com>
13088 * doc/analyzer.texi
13089 (Special Functions for Debugging the Analyzer): Add
13090 __analyzer_dump_capacity.
13092 2021-06-15 Jakub Jelinek <jakub@redhat.com>
13095 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
13096 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
13098 2021-06-15 Richard Biener <rguenther@suse.de>
13100 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
13101 check to identify loop latches.
13102 * cfgloop.c (verify_loop_structure): Likewise.
13103 * loop-init.c (apply_loop_flags): Allow marked irreducible
13104 regions even with multiple latches.
13105 * predict.c (rebuild_frequencies): Simplify.
13107 2021-06-15 Richard Biener <rguenther@suse.de>
13109 * tree-ssa-threadupdate.c
13110 (jump_thread_path_registry::mark_threaded_blocks): Assert we
13111 have marked irreducible regions.
13113 2021-06-14 Martin Sebor <msebor@redhat.com>
13116 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
13117 Handle calls to placement new.
13118 (ndecl_dealloc_argno): Avoid placement delete.
13120 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
13123 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
13124 create_tmp_reg_or_ssa_name().
13126 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
13128 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
13129 (ranger_cache::enable_new_values): Set to specified value and
13130 return the old value.
13131 (ranger_cache::disable_new_values): Delete.
13132 (ranger_cache::fill_block_cache): Disable non 1st order derived
13134 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
13135 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
13137 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
13140 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
13141 Return true early when testing with V2HImode.
13142 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
13144 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
13146 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
13147 (mve_vec_unpack<US>_hi_<mode>): New pattern.
13148 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
13149 (mve_vmovntq_<supf><mode>): Prefix with '@'.
13150 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
13152 (vec_unpack<US>_lo_<mode>): Likewise.
13153 (vec_pack_trunc_<mode>): Rename to
13154 neon_quad_vec_pack_trunc_<mode>.
13155 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
13157 (vec_unpack<US>_lo_<mode>): New.
13158 (vec_pack_trunc_<mode>): New.
13160 2021-06-14 Richard Biener <rguenther@suse.de>
13162 PR tree-optimization/100934
13163 * tree-ssa-dom.c (pass_dominator::execute): Properly
13164 mark irreducible regions.
13166 2021-06-14 Martin Liska <mliska@suse.cz>
13168 * doc/invoke.texi: Put r{...} on the same line as @item.
13170 2021-06-14 Martin Liska <mliska@suse.cz>
13172 * doc/invoke.texi: Add missing newline.
13174 2021-06-14 Martin Liska <mliska@suse.cz>
13176 * doc/invoke.texi: Remove '+' charasters.
13178 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
13180 * config.gcc (arc): Add support for with_cpu option.
13181 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
13183 2021-06-14 Richard Biener <rguenther@suse.de>
13185 PR tree-optimization/101031
13186 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
13187 instead of size when accounting for a possibly string
13190 2021-06-14 Martin Liska <mliska@suse.cz>
13192 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
13194 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
13196 * value-query.cc (gimple_range_global): Call get_range_global
13197 if called after inlining.
13199 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
13202 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
13203 Emit constant permutation insn directly from here.
13205 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
13207 * attribs.c (find_attribute_namespace): Iterate over vec<> with
13209 * auto-profile.c (afdo_find_equiv_class): Likewise.
13210 * gcc.c (do_specs_vec): Likewise.
13211 (do_spec_1): Likewise.
13212 (driver::set_up_specs): Likewise.
13213 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
13214 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
13215 (imm_store_chain_info::try_coalesce_bswap): Likewise.
13216 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
13217 (get_location_for_stmts): Likewise.
13218 * graphite-poly.c (print_iteration_domains): Likewise.
13219 (free_poly_bb): Likewise.
13220 (remove_gbbs_in_scop): Likewise.
13221 (free_scop): Likewise.
13222 (dump_gbb_cases): Likewise.
13223 (dump_gbb_conditions): Likewise.
13224 (print_pdrs): Likewise.
13225 (print_scop): Likewise.
13226 * ifcvt.c (cond_move_process_if_block): Likewise.
13227 * lower-subreg.c (decompose_multiword_subregs): Likewise.
13228 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
13229 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
13230 * sel-sched-dump.c (dump_insn_vector): Likewise.
13231 * store-motion.c (store_ops_ok): Likewise.
13232 (store_killed_in_insn): Likewise.
13233 * timevar.c (timer::named_items::print): Likewise.
13234 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
13235 (cleanup_tree_cfg_noloop): Likewise.
13236 * tree-data-ref.c (dump_data_references): Likewise.
13237 (print_dir_vectors): Likewise.
13238 (print_dist_vectors): Likewise.
13239 (dump_data_dependence_relations): Likewise.
13240 (dump_dist_dir_vectors): Likewise.
13241 (dump_ddrs): Likewise.
13242 (create_runtime_alias_checks): Likewise.
13243 (free_subscripts): Likewise.
13244 (save_dist_v): Likewise.
13245 (save_dir_v): Likewise.
13246 (invariant_access_functions): Likewise.
13247 (same_access_functions): Likewise.
13248 (access_functions_are_affine_or_constant_p): Likewise.
13249 (find_data_references_in_stmt): Likewise.
13250 (graphite_find_data_references_in_stmt): Likewise.
13251 (free_dependence_relations): Likewise.
13252 (free_data_refs): Likewise.
13253 * tree-inline.c (copy_debug_stmts): Likewise.
13254 * tree-into-ssa.c (dump_currdefs): Likewise.
13255 (rewrite_update_phi_arguments): Likewise.
13256 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
13257 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
13259 (vect_slp_analyze_node_dependences): Likewise.
13260 (vect_slp_analyze_instance_dependence): Likewise.
13261 (vect_record_base_alignments): Likewise.
13262 (vect_get_peeling_costs_all_drs): Likewise.
13263 (vect_peeling_supportable): Likewise.
13264 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
13265 (vec_info::free_stmt_vec_infos): Likewise.
13267 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
13269 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
13270 (andqi3_1<cczn>): Removed.
13271 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
13272 (H8/SX bit logicals): Split out from other patterns.
13273 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
13274 mulqihi3_const_clobber_flags.
13275 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
13277 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
13280 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
13281 to true if red zone is used.
13282 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
13283 ix86_red_zone_used.
13284 * config/i386/i386.h (machine_function): Add red_zone_used.
13285 (ix86_red_zone_size): Removed.
13286 (ix86_red_zone_used): New.
13287 * config/i386/i386.md (peephole2 patterns): Replace
13288 ix86_red_zone_size with ix86_red_zone_used.
13290 2021-06-12 Jason Merrill <jason@redhat.com>
13292 * doc/extend.texi (unused variable attribute): Applies to
13293 structure fields as well.
13295 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
13297 * auto-profile.c (read_profile): fix a typo in an error string
13299 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
13301 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
13303 * tree-pretty-print.c (dump_omp_clauses): Update.
13304 (dump_generic_node) <OMP_CLAUSE>: Use it.
13306 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
13309 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
13310 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
13311 the polymorphic variants matching code.
13312 (__arm_vld1q_z): Likewise.
13313 (__arm_vld2q): Likewise.
13314 (__arm_vld4q): Likewise.
13315 (__arm_vldrbq_gather_offset): Likewise.
13316 (__arm_vldrbq_gather_offset_z): Likewise.
13318 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
13320 PR tree-optimization/96392
13321 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
13323 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
13325 PR tree-optimization/96392
13326 * fold-const.c (fold_real_zero_addition_p): Take both arguments
13327 of the addition or subtraction, not just the zero. Use this
13328 other argument in tests for signaling NaNs and signed zeros.
13329 (tree_expr_maybe_real_minus_zero_p): New predicate.
13330 * fold-const.h (fold_real_zero_addition_p): Update prototype.
13331 (tree_expr_maybe_real_minus_zero_p): New function prototype.
13332 * match.pd: Update calls to fold_real_zero_addition_p.
13333 Replace HONOR_NANS with tree_expr_maybe_nan_p.
13334 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
13335 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
13336 * tree-ssa-reassoc.c (eliminate_using_constants): Update
13337 call to fold_real_zero_addition_p.
13339 2021-06-11 Richard Biener <rguenther@suse.de>
13341 PR tree-optimization/101025
13342 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
13343 all refs that require dependence checking.
13345 2021-06-11 Richard Biener <rguenther@suse.de>
13347 PR tree-optimization/101028
13348 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
13349 reassoc discovery fails fatally, mark appropriate lanes
13352 2021-06-11 Richard Biener <rguenther@suse.de>
13354 PR tree-optimization/101026
13355 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
13356 have a representative for the associated chain nodes.
13358 2021-06-11 Jakub Jelinek <jakub@redhat.com>
13360 PR rtl-optimization/101008
13361 * simplify-rtx.c (relational_result): New function.
13362 (simplify_logical_relational_operation,
13363 simplify_relational_operation): Use it.
13365 2021-06-11 Jakub Jelinek <jakub@redhat.com>
13368 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
13370 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
13373 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
13374 false if the permutation can be implemented with constant
13375 permutation instruction in wider mode.
13376 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
13377 Handle V8QImode and V4HImode.
13379 2021-06-11 Martin Liska <mliska@suse.cz>
13381 PR gcov-profile/100788
13382 * common.opt: Add new option.
13383 * coverage.c (coverage_begin_function): Emit warning instead on
13384 the internal compiler error.
13385 * doc/invoke.texi: Document the option.
13386 * toplev.c (process_options): Enable it by default.
13388 2021-06-11 Richard Biener <rguenther@suse.de>
13390 PR middle-end/101009
13391 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
13392 to set *init_b to true when we encounter a constant equal
13394 (compute_affine_dependence): Also dump the actual DR_REF.
13396 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
13398 PR tree-optimization/100984
13399 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
13400 replacements table.
13401 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
13403 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
13405 * config/rs6000/rs6000.md
13406 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
13407 define_insn_and_split.
13409 2021-06-11 Richard Biener <rguenther@suse.de>
13411 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
13412 to sort operands of the associative chain.
13414 2021-06-11 Richard Biener <rguenther@suse.de>
13416 * system.h (gcc_stablesort_r): Declare.
13417 * sort.cc (gcc_sort_r): Support stable sort.
13418 (gcc_stablesort_r): Define.
13419 * vec.h (vec<>::stablesort): Add.
13421 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
13424 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
13425 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
13426 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
13427 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
13428 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
13429 (expand_vec_perm_interleave2): Handle 64bit modes.
13430 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
13431 (expand_vec_perm_even_odd_1): Ditto.
13432 (ix86_vectorize_vec_perm_const): Ditto.
13433 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
13434 * config/i386/sse.md: ... here.
13435 * config/i386/mmx.md (*vec_interleave_lowv2sf):
13436 New insn_and_split pattern.
13437 (*vec_interleave_highv2sf): Ditto.
13438 (mmx_pshufbv8qi3): New insn pattern.
13439 (*mmx_pblendw): Ditto.
13441 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
13443 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
13444 (build_acc): Likewise.
13445 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
13446 source operands in little-endian mode.
13447 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
13448 (mma_init_builtins): Likewise.
13449 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
13450 ordering for the MMA assemble and build source operands.
13451 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
13453 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
13456 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
13458 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
13460 * config/h8300/extensions.md: Replace _clobber_flags patterns
13463 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
13465 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
13466 (vcond_mask_<mode><tointvec>): this.
13468 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
13469 Thomas Schwinge <thomas@codesourcery.com>
13471 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
13472 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
13473 * gimple.h (enum gf_mask): Split
13474 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
13475 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
13476 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
13477 (is_gimple_omp_oacc): Update.
13478 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
13479 * gimplify.c (gimplify_omp_target_update): Likewise.
13480 * omp-expand.c (expand_omp_target, build_omp_regions_1)
13481 (omp_make_gimple_edges): Likewise.
13482 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
13485 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
13487 * value-query.cc (value_query::value_on_edge): Rename name to
13489 (range_query::range_on_edge): Same.
13490 (range_query::value_of_expr): Same.
13491 (range_query::value_on_edge): Same.
13492 * value-query.h (class value_query): Same.
13493 (class range_query): Same.
13495 2021-06-10 Richard Biener <rguenther@suse.de>
13497 PR tree-optimization/101003
13498 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
13499 use the pattern stmt defs when linearizing a chain.
13501 2021-06-10 Jakub Jelinek <jakub@redhat.com>
13504 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
13505 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
13507 2021-06-10 Clement Chigot <clement.chigot@atos.net>
13509 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
13510 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
13512 2021-06-09 Andrew Pinski <apinski@marvell.com>
13514 PR tree-optimization/100925
13515 * match.pd (a ? CST1 : CST2): Limit transformations
13516 that would produce a negative to integeral types only.
13517 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
13519 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
13522 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
13524 * doc/tm.texi: Correctly update.
13526 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
13528 * doc/tm.texi: Correctly update.
13530 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
13533 * doc/tm.texi.in (Trampolines): Add a missing blank line.
13535 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
13538 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
13539 and -ftrampolines work only with Ada.
13540 * doc/tm.texi.in (Trampolines): Likewise.
13541 * doc/tm.texi: Regenerated.
13543 2021-06-09 Carl Love <cel@us.ibm.com>
13545 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
13546 Add define for new builtins.
13547 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
13548 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
13549 overloaded builtin definitions.
13550 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
13551 VSIGNEXTSD2Q): Add builtin expansions.
13552 (SIGNEXT): Add P10 overload definition.
13553 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
13554 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
13555 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
13556 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
13557 vsignextend_si_v2di)[VIlong]: Add define_expand.
13558 Make define_insn vsx_sign_extend_si_v2di visible.
13559 * doc/extend.texi: Add documentation for the vec_signexti,
13560 vec_signextll builtins and vec_signextq.
13562 2021-06-09 Carl Love <cel@us.ibm.com>
13564 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
13565 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
13566 __floattikf_sw, __floatuntikf_sw respectively.
13567 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
13568 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
13569 define_insn for mode IEEE 128.
13571 2021-06-09 Carl Love <cel@us.ibm.com>
13573 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
13574 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
13575 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
13576 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
13577 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
13578 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
13579 uses of VSX_TI to VEC_TI.
13581 2021-06-09 Carl Love <cel@us.ibm.com>
13583 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
13585 2021-06-09 Carl Love <cel@us.ibm.com>
13587 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
13589 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
13590 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
13591 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
13592 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
13593 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
13594 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
13595 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
13597 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
13598 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
13599 altivec_vrlqnm): New define_expands.
13600 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
13601 VCMPGTUT_P): Add macro expansions.
13602 (BU_P10V_AV_P): Add builtin predicate definition.
13603 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
13604 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
13605 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
13606 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
13607 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
13608 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
13609 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
13610 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
13611 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
13612 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
13613 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
13614 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
13615 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
13616 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
13617 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
13618 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
13619 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
13620 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
13621 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
13622 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
13623 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
13624 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
13625 P10V_BUILTIN_MODU_V1TI):
13626 New overloaded definitions.
13627 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
13628 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
13629 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
13630 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
13631 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
13632 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
13634 (altivec_init_builtins): New E_V1TImode case statement.
13635 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
13636 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
13637 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
13638 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
13639 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
13640 E_V1TImode]: New case statements.
13641 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
13642 value RS6000_BTI_bool_V1TI.
13643 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
13644 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
13645 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
13646 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
13647 vlshrv1ti3, vashrv1ti3): New define_expands.
13648 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
13649 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
13650 UNSPEC_VSX_MODUQ): New unspecs.
13651 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
13652 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
13654 (vcmpnet): New define_expand.
13655 * doc/extend.texi: Add documentation for the new builtins vec_rl,
13656 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
13657 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
13658 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
13659 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
13660 vec_any_ge, vec_any_le.
13662 2021-06-09 Carl Love <cel@us.ibm.com>
13664 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
13665 bug in argument generation.
13667 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
13669 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
13671 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
13672 remove <supf> iterator.
13673 (mve_vclzq_u<mode>): New.
13674 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
13675 (neon_vclz<mode): Move to ...
13676 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
13677 * config/arm/vec-common.md: ... here. Add support for MVE.
13679 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
13681 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
13682 (@mve_vrhaddq_<supf><mode): Likewise.
13683 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
13684 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
13685 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
13687 2021-06-09 imba-tjd <109224573@qq.com>
13689 * doc/invoke.texi: Fix typo.
13691 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
13693 PR middle-end/53267
13694 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
13695 Support evaluation of fmod/fmodf/fmodl at compile-time.
13697 2021-06-09 Richard Biener <rguenther@suse.de>
13699 PR tree-optimization/100981
13700 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
13701 gimple_get_lhs to also handle calls.
13702 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
13705 2021-06-09 Richard Biener <rguenther@suse.de>
13707 PR tree-optimization/97832
13708 * tree-vectorizer.h (_slp_tree::failed): New.
13709 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
13711 (_slp_tree::~_slp_tree): Free failed.
13712 (vect_build_slp_tree): Retain failed nodes and record
13713 matches in them, copying that back out when running
13714 into a cached fail. Dump start and end of discovery.
13715 (dt_sort_cmp): New.
13716 (vect_build_slp_tree_2): Handle associatable chains
13717 together doing more aggressive operand swapping.
13719 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
13722 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
13724 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
13725 Linux and GNU targets.
13727 2021-06-09 Richard Biener <rguenther@suse.de>
13729 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
13732 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
13734 * config/arc/arc.md (loop_end): Change it to
13735 define_insn_and_split.
13737 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
13739 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
13740 (machi): New pattern.
13741 (umaddhisi4): Use VMAC2HU instruction.
13742 (umachi): New pattern.
13744 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
13746 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
13747 * config/arc/arc.c (arc_split_move_p): New function.
13748 (arc_split_move): Clean up.
13749 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
13750 (movdf_insn): Likewise.
13751 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
13753 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
13756 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
13757 argument to "raw". Do not emit segment overrides when "raw" is true.
13759 2021-06-09 Martin Liska <mliska@suse.cz>
13761 * doc/gcov.texi: Create a proper JSON files.
13762 * doc/invoke.texi: Remove dots in order to make it a valid
13765 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
13767 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
13768 (insn_is_load_p): Use pattern_is_rotate64.
13769 (insn_is_swap_p): Likewise.
13770 (quad_aligned_load_p): Likewise.
13771 (const_load_sequence_p): Likewise.
13772 (replace_swapped_aligned_load): Likewise.
13773 (recombine_lvx_pattern): Likewise.
13774 (recombine_stvx_pattern): Likewise.
13776 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
13778 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
13779 fur_stmt source record.
13780 * gimple-range.cc (fur_source::get_operand): Generic range query.
13781 (fur_source::get_phi_operand): New.
13782 (fur_source::register_dependency): New.
13783 (fur_source::query): New.
13784 (class fur_edge): New. Edge source for operands.
13785 (fur_edge::fur_edge): New.
13786 (fur_edge::get_operand): New.
13787 (fur_edge::get_phi_operand): New.
13788 (fur_edge::query): New.
13789 (fur_stmt::fur_stmt): New.
13790 (fur_stmt::get_operand): New.
13791 (fur_stmt::get_phi_operand): New.
13792 (fur_stmt::query): New.
13793 (class fur_depend): New. Statement source and process dependencies.
13794 (fur_depend::fur_depend): New.
13795 (fur_depend::register_dependency): New.
13796 (class fur_list): New. List source for operands.
13797 (fur_list::fur_list): New.
13798 (fur_list::get_operand): New.
13799 (fur_list::get_phi_operand): New.
13800 (fold_range): New. Instantiate appropriate fur_source class and fold.
13801 (fold_using_range::range_of_range_op): Use new API.
13802 (fold_using_range::range_of_address): Ditto.
13803 (fold_using_range::range_of_phi): Ditto.
13804 (imple_ranger::fold_range_internal): Use fur_depend class.
13805 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
13806 * gimple-range.h (class fur_source): Now a base class.
13807 (class fur_stmt): New.
13808 (fold_range): New prototypes.
13809 (fur_source::fur_source): Delete.
13811 2021-06-08 Andrew Pinski <apinski@marvell.com>
13813 PR tree-optimization/25290
13814 * tree-ssa-phiopt.c (xor_replacement): Delete.
13815 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
13816 (match_simplify_replacement): Allow one cheap preparation
13817 statement that can be moved to before the if.
13819 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
13821 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
13822 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
13824 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
13826 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
13827 Create length attribute on define_insn_and_split. Only split for cases which we
13829 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
13830 fix length computation.
13831 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
13833 2021-06-08 Richard Biener <rguenther@suse.de>
13835 PR tree-optimization/100923
13836 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
13837 the operand vector to be valueized.
13838 (valueize_refs): Likewise.
13839 (valueize_shared_reference_ops_from_ref): Adjust.
13840 (valueize_shared_reference_ops_from_call): Likewise.
13841 (vn_reference_lookup_3): Likewise.
13842 (vn_reference_lookup_pieces): Likewise. Re-valueize
13843 with honoring availability when we are about to create
13844 the ao_ref and valueized before.
13845 (vn_reference_lookup): Likewise.
13846 (vn_reference_insert_pieces): Adjust.
13848 2021-06-08 Richard Biener <rguenther@suse.de>
13850 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
13851 (_slp_instance::root_stmts): ... a vector.
13852 (SLP_INSTANCE_ROOT_STMT): Rename to ...
13853 (SLP_INSTANCE_ROOT_STMTS): ... this.
13854 (slp_root::root): Change to...
13855 (slp_root::roots): ... a vector.
13856 (slp_root::slp_root): Adjust.
13857 * tree-vect-slp.c (_slp_instance::location): Adjust.
13858 (vect_free_slp_instance): Release the root stmt vector.
13859 (vect_build_slp_instance): Adjust.
13860 (vect_analyze_slp): Likewise.
13861 (_bb_vec_info::~_bb_vec_info): Likewise.
13862 (vect_slp_analyze_operations): Likewise.
13863 (vect_bb_vectorization_profitable_p): Likewise. Adjust
13864 costs for the root stmt.
13865 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
13867 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
13869 (vectorize_slp_instance_root_stmt): Adjust.
13870 (vect_schedule_slp): Likewise.
13872 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
13874 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
13875 (ssa_equiv_stack::ssa_equiv_stack): New.
13876 (ssa_equiv_stack::~ssa_equiv_stack): New.
13877 (ssa_equiv_stack::enter): New.
13878 (ssa_equiv_stack::leave): New.
13879 (ssa_equiv_stack::push_replacement): New.
13880 (ssa_equiv_stack::get_replacement): New.
13881 (is_pointer_ssa): New.
13882 (class pointer_equiv_analyzer): New.
13883 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
13884 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
13885 (pointer_equiv_analyzer::set_global_equiv): New.
13886 (pointer_equiv_analyzer::set_cond_equiv): New.
13887 (pointer_equiv_analyzer::get_equiv): New.
13888 (pointer_equiv_analyzer::enter): New.
13889 (pointer_equiv_analyzer::leave): New.
13890 (pointer_equiv_analyzer::get_equiv_expr): New.
13891 (pta_valueize): New.
13892 (pointer_equiv_analyzer::visit_stmt): New.
13893 (pointer_equiv_analyzer::visit_edge): New.
13894 (hybrid_folder::value_of_expr): Call PTA.
13895 (hybrid_folder::value_on_edge): Same.
13896 (hybrid_folder::pre_fold_bb): New.
13897 (hybrid_folder::post_fold_bb): New.
13898 (hybrid_folder::pre_fold_stmt): New.
13899 (rvrp_folder::pre_fold_bb): New.
13900 (rvrp_folder::post_fold_bb): New.
13901 (rvrp_folder::pre_fold_stmt): New.
13902 (rvrp_folder::value_of_expr): Call PTA.
13903 (rvrp_folder::value_on_edge): Same.
13905 2021-06-08 Jakub Jelinek <jakub@redhat.com>
13908 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
13909 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
13911 2021-06-08 Richard Biener <rguenther@suse.de>
13913 PR middle-end/100951
13914 * tree-vect-generic.c (expand_vector_piecewise): Build a
13915 VECTOR_CST if all elements are constant.
13916 (expand_vector_condition): Likewise.
13917 (lower_vec_perm): Likewise.
13918 (expand_vector_conversion): Likewise.
13920 2021-06-08 Martin Liska <mliska@suse.cz>
13922 * doc/invoke.texi: Document new param evrp-sparse-threshold.
13924 2021-06-08 Martin Liska <mliska@suse.cz>
13926 * genautomata.c (create_automata): Fix typo.
13928 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
13930 PR tree-optimization/100794
13931 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
13932 allow_unroll_p and only allow unrolling when it's true.
13933 (tree_predictive_commoning): Add parameter allow_unroll_p and
13935 (run_tree_predictive_commoning): Likewise.
13936 (pass_predcom::gate): Check flag_tree_loop_vectorize and
13937 global_options_set.x_flag_predictive_commoning.
13938 (pass_predcom::execute): Adjust for allow_unroll_p.
13940 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
13942 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
13943 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
13944 lambda function cleanup, remove scev_reset call, and adjust return
13946 (tree_predictive_commoning): Adjust for different changed values,
13947 only set flag TODO_update_ssa_only_virtuals if changed.
13948 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
13949 from todo_flags_finish.
13951 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
13953 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
13954 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
13955 (sbr_sparse_bitmap::bitmap_set_quad): New.
13956 (sbr_sparse_bitmap::bitmap_get_quad): New.
13957 (sbr_sparse_bitmap::set_bb_range): New.
13958 (sbr_sparse_bitmap::get_bb_range): New.
13959 (sbr_sparse_bitmap::bb_range_p): New.
13960 (block_range_cache::block_range_cache): initialize bitmap obstack.
13961 (block_range_cache::~block_range_cache): Destruct obstack.
13962 (block_range_cache::set_bb_range): Decide when to utilze the
13963 sparse on entry cache.
13964 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
13965 * params.opt (-param=evrp-sparse-threshold): New.
13967 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
13969 * bitmap.c (bitmap_set_aligned_chunk): New.
13970 (bitmap_get_aligned_chunk): New.
13971 (test_aligned_chunk): New.
13972 (bitmap_c_tests): Call test_aligned_chunk.
13973 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
13975 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
13978 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
13980 (ix86_expand_vector_init_one_nonzero): Ditto.
13981 (ix86_expand_vector_init_one_var): Ditto.
13982 (ix86_expand_vector_init_general): Ditto.
13983 * config/i386/mmx.md (vec_initv4qiqi): New expander.
13985 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
13987 * config/h8300/movepush.md: Change most _clobber_flags
13988 patterns to instead use <cczn> subst.
13989 (movsi_cczn): New pattern with usable CC cases split out.
13990 (movsi_h8sx_cczn): Likewise.
13992 2021-06-07 Martin Liska <mliska@suse.cz>
13994 * common/common-target.def: Split long lines and replace them
13996 * target.def: Likewise.
13997 * doc/tm.texi: Re-generated.
13999 2021-06-07 Jakub Jelinek <jakub@redhat.com>
14002 * fold-const.c (fold_read_from_vector): Return NULL if trying to
14003 read from a CONSTRUCTOR with vector type elements.
14005 2021-06-07 Jakub Jelinek <jakub@redhat.com>
14007 PR middle-end/100898
14008 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
14009 should copy any arguments. Don't call gimple_call_num_args
14010 on id->call_stmt or call_stmt more than once.
14012 2021-06-07 liuhongt <hongtao.liu@intel.com>
14015 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
14017 (<insn>v4siv4di2): Delete constraints for define_expand.
14019 2021-06-07 liuhongt <hongtao.liu@intel.com>
14022 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
14023 assignment of cfun->machine->has_explicit_vzeroupper.
14024 * config/i386/i386-features.c
14025 (ix86_add_reg_usage_to_vzerouppers): Delete.
14026 (ix86_add_reg_usage_to_vzeroupper): Ditto.
14027 (rest_of_handle_insert_vzeroupper): Remove
14028 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
14030 (gate): Remove cfun->machine->has_explicit_vzeroupper.
14031 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
14033 * config/i386/i386.c (ix86_insn_callee_abi): New function.
14034 (ix86_initialize_callee_abi): Ditto.
14035 (ix86_expand_avx_vzeroupper): Ditto.
14036 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
14038 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
14039 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
14041 * config/i386/i386.h (struct GTY(()) machine_function): Delete
14042 has_explicit_vzeroupper.
14043 * config/i386/i386.md (enum unspec): New member
14045 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
14046 define_constants for insn callee abi index.
14047 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
14048 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
14049 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
14050 (*avx_vzeroupper): Rename to ..
14051 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
14052 call_insn which has a special vzeroupper ABI.
14053 (*avx_vzeroupper_1): Deleted.
14055 2021-06-07 liuhongt <hongtao.liu@intel.com>
14058 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
14059 it won't use stack pointer reg.
14060 * final.c (leaf_function_p): When call_insn is a fake call, it
14061 won't affect caller as a leaf function.
14062 * reg-stack.c (callee_clobbers_any_stack_reg): New.
14063 (subst_stack_regs): When call_insn doesn't clobber any stack
14064 reg, don't clear the arguments.
14065 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
14067 * shrink-wrap.c (requires_stack_frame_p): No need for stack
14068 frame for a fake call.
14069 * rtl.h (FAKE_CALL_P): New macro.
14071 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
14073 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
14075 (sparc_order_regs_for_local_alloc): ...this.
14076 (sparc_leaf_reg_remap): Declare.
14077 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
14078 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
14079 * config/sparc/sparc.c (leaf_reg_remap): Delete.
14080 (order_regs_for_local_alloc): Rename to...
14081 (sparc_order_regs_for_local_alloc): ...this.
14082 (sparc_leaf_reg_remap): New function.
14083 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
14085 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
14087 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
14088 Use assemble_name to output BSS section name.
14090 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
14092 * config/i386/constraints.md (Bs):
14093 Remove boolean operators from match_test RTX.
14096 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
14099 2021-06-06 Martin Liska <mliska@suse.cz>
14101 * doc/extend.texi: Add missing @headitem.
14102 * doc/invoke.texi: Likewise.
14103 * doc/objc.texi: Likewise.
14105 2021-06-06 Martin Liska <mliska@suse.cz>
14107 * genhooks.c (emit_findices): Remove unused function.
14108 (emit_documentation): Do not call emit_findices
14109 and do not search for @Fcode directives.
14111 2021-06-06 Martin Liska <mliska@suse.cz>
14113 * doc/invoke.texi: Remove extra character.
14115 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
14117 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
14119 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
14121 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
14122 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
14123 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
14124 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
14126 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
14128 * config/or1k/or1k.md (*movdi): Fix empty split condition.
14130 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
14132 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
14135 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
14137 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
14138 *zero_extendsidi2): Fix empty split condition.
14140 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
14142 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
14144 * config/h8300/bitfield.md: Likewise.
14145 * config/h8300/combiner.md: Likewise.
14146 * config/h8300/divmod.md: Likewise.
14147 * config/h8300/extensions.md: Likewise.
14148 * config/h8300/jumpcall.md: Likewise.
14149 * config/h8300/movepush.md: Likewise.
14150 * config/h8300/multiply.md: Likewise.
14151 * config/h8300/other.md: Likewise.
14152 * config/h8300/shiftrotate.md: Likewise.
14153 * config/h8300/logical.md: Likewise. Fix split pattern to use
14154 code iterator that somehow slipped through.
14156 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
14158 PR middle-end/100905
14159 * tree-nested.c (convert_nonlocal_omp_clauses,
14160 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
14162 2021-06-04 Martin Sebor <msebor@redhat.com>
14164 PR middle-end/100732
14165 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
14166 with either source or destination argument of invalid type.
14167 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
14168 calls with arguments of invalid type.
14170 2021-06-04 Martin Sebor <msebor@redhat.com>
14172 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
14174 (attr_access::vla_bounds): Also handle VLA bounds.
14176 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
14178 * config/i386/predicates.md (GOT_memory_operand):
14179 Implement using match_code RTXes.
14180 (GOT32_symbol_operand): Ditto.
14182 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
14185 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
14187 (ix86_expand_vector_init_general): Ditto.
14188 Use SImode instead of word_mode for logic operations
14189 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
14190 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
14191 implemented by expand_vec_perm_1.
14192 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
14193 should be implemented using standard shuffle patterns.
14194 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
14195 V2HI modes to modes, implementable with shuffle for one operand.
14196 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
14197 (*pshufw_1): New insn pattern.
14198 (*vec_dupv2hi): Ditto.
14199 (vec_initv2hihi): New expander.
14201 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
14203 * config/arm/vfp.md (no_literal_pool_df_immediate,
14204 no_literal_pool_sf_immediate): Fix empty split condition.
14206 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
14208 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
14209 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
14210 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
14211 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
14212 *<sse4_1_avx2>_pblendvb_lt): Likewise.
14214 2021-06-04 Jakub Jelinek <jakub@redhat.com>
14217 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
14218 concatenation from half-sized modes with TImode elements.
14220 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
14222 * config/arc/arc.c (arc_override_options): Disable millicode
14223 thunks when RF16 is on.
14225 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
14227 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
14229 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
14231 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
14232 Replace PROMOTE_MODE marco with its content.
14234 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
14236 * config/cris/cris.md (*addi_reload): Fix empty split condition.
14238 2021-06-03 Jim Wilson <jimw@sifive.com>
14240 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
14241 turn it on for all riscv targets.
14243 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
14246 * config/i386/i386-expand.c (ix86_expand_vector_set):
14247 Handle V2HI and V4QI modes.
14248 (ix86_expand_vector_extract): Ditto.
14249 * config/i386/mmx.md (*pinsrw): New insn pattern.
14252 (*pextrw_zext): Ditto.
14254 (*pextrb_zext): Ditto.
14255 (vec_setv2hi): New expander.
14256 (vec_extractv2hihi): Ditto.
14257 (vec_setv4qi): Ditto.
14258 (vec_extractv4qiqi): Ditto.
14259 (vec_setv8qi): Enable only for TARGET_SSE4_1.
14260 (vec_extractv8qiqi): Ditto.
14262 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
14264 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
14265 order to subf instruction.
14266 * config/rs6000/fusion.md: Regenerate.
14268 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
14270 * calls.c (get_size_range): Use range_of_expr instead of
14271 determine_value_range.
14272 * tree-affine.c (expr_to_aff_combination): Same.
14273 * tree-data-ref.c (split_constant_offset): Same.
14274 * tree-vrp.c (determine_value_range_1): Remove.
14275 (determine_value_range): Remove.
14276 * tree-vrp.h (determine_value_range): Remove.
14278 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
14280 * function-tests.c (test_ranges): Call gimple_range_tests.
14281 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
14283 * gimple-range.cc (fur_source::get_operand): Do not call
14284 get_tree_range or gimple_range_global.
14286 (get_tree_range): Move to value-query.cc.
14287 Call get_arith_expr_range.
14288 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
14289 Include gimple-range-tests.cc.
14290 * gimple-range.h (fold_range): Add argument.
14291 (get_tree_range): Remove.
14292 * selftest.h (gimple_range_tests): New.
14293 * value-query.cc (global_range_query::range_of_expr): Add
14295 (range_query::get_tree_range): Move from gimple-range.cc.
14296 * value-query.h (class range_query): Add get_tree_range and
14297 get_arith_expr_range. Make fur_source a friend.
14298 * vr-values.c (vr_values::range_of_expr): Pass stmt to
14300 * gimple-range-tests.cc: New file.
14302 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
14304 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
14305 update_global_range.
14306 * value-query.cc (update_global_range): New.
14307 * value-query.h (update_global_range): New.
14309 2021-06-03 David Malcolm <dmalcolm@redhat.com>
14311 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
14312 printing the same location twice if there are fix-it hints,
14313 multiple locations, or a label.
14315 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
14317 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
14318 thresholds to narrow the upper bound on epilogue iterations.
14320 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
14322 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
14323 (mve_vabsq_s<mode>): Likewise.
14324 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
14325 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
14326 * config/arm/vec-common.md (neg<mode>2): Rename to
14327 <absneg_str><mode>2.
14329 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
14331 * common/config/arc/arc-common.c (arc_option_optimization_table):
14332 Remove malign-call.
14333 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
14334 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
14335 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
14336 * config/arc/arc.md (abssi2_mixed): Remove pattern.
14337 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
14338 (malign-call): Likewise.
14339 (mmixed-code): Likewise.
14340 * doc/invoke.texi (ARC): Update doc.
14342 2021-06-03 Martin Liska <mliska@suse.cz>
14344 * common.opt: Use proper Enum values.
14345 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
14346 (parse_sanitizer_options): Handle only sanitizer_opts.
14347 (common_handle_option): Just assign value.
14349 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
14352 * tree-inline.c (inline_forbidden_p): Remove test on return type.
14354 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
14356 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
14357 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
14358 (type_byte_size): Inline into...
14359 (add_byte_size_attribute): ...this and call add_scalar_info.
14361 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
14363 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
14364 (typed_binop_from_tree): New function.
14365 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
14366 turn a divide by a power of 2 into a shift.
14367 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
14368 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
14369 typed divide by calling typed_binop_from_tree.
14371 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
14373 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
14374 (is_handled_procedure_type): Likewise.
14375 (struct loc_descr_context): Add strict_signedness field.
14376 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
14377 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
14378 (resolve_args_picking): Minor tweak.
14379 (function_to_dwarf_procedure): Initialize strict_signedness field.
14380 (type_byte_size): Likewise.
14381 (field_byte_offset): Likewise.
14382 (gen_descr_array_type_die): Likewise.
14383 (gen_variant_part): Likewise.
14384 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
14385 to true when a context is present before evaluating the arguments.
14386 <COND_EXPR>: Do not generate a useless comparison with zero.
14387 When dereferencing an address, if strict_signedness is true and the
14388 type is small and signed, use DW_OP_deref_type to do the dereference
14389 and then DW_OP_convert to convert back to the generic type.
14391 2021-06-03 Jakub Jelinek <jakub@redhat.com>
14394 * tree-inline.c (copy_tree_body_r): Handle iterators on
14395 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
14397 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
14399 * config/arc/arc.md (*bbit_di): Remove.
14401 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
14403 PR rtl-optimization/100264
14404 * ree.c (get_sub_rtx): Ignore SET expressions without register
14405 destinations and remove assertion, as it is not valid anymore
14406 with this new behaviour.
14407 (merge_def_and_ext): Eliminate destination check for register
14408 as such SET expressions can't occur anymore.
14409 (combine_reaching_defs): Likewise.
14411 2021-06-02 Jakub Jelinek <jakub@redhat.com>
14414 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
14415 -Wtype-limits warnings.
14416 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
14417 in operands to avoid -Wsign-compare warnings.
14419 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
14421 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
14424 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
14426 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
14428 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
14430 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
14432 * config/s390/subst.md(cconly_subst): Use a single constraint
14433 in (match_scratch).
14435 2021-06-02 Martin Liska <mliska@suse.cz>
14437 * ipa-icf.h: Use auto_vec for memory_access_types.
14439 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
14441 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
14442 argument from prototype.
14443 (output_logical_op): Add rtx_code argument.
14444 (compute_logical_op_length): Likewise.
14445 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
14446 to compute_a_shift_length.
14447 (output_logical_op); New argument with the rtx code rather than
14448 extracting it from an operand. Handle QImode too.
14449 (compute_logical_op_length): Similary.
14450 (compute_a_shift_length): Drop unused argument.
14451 * config/h8300/h8300.md (logicals): New code iterator.
14452 * config/h8300/logical.md (<code><mode>3 expander): Combine
14453 the "and" expander with the "ior"/"xor" expander.
14454 (bclr<mode>msx): Combine the QI/HI mode patterns.
14455 (<logical><mode>3 insns): Use code iterator rather than match_operator.
14456 Handle QImode as well. Update call to output_logical_op and
14457 compute_logical_op_length to pass in rtx_code
14458 Fix split condition on all define_insn_and_split patterns.
14459 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
14460 the flags and setting ZN via existing define_subst.
14461 * config/h8300/shiftrotate.md: Drop unused argument from
14462 calls to compute_a_shift_length.
14463 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
14465 2021-06-01 Andrew Pinski <apinski@marvell.com>
14467 PR tree-optimization/25290
14468 * tree-ssa-phiopt.c (match_simplify_replacement):
14470 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
14471 (two_value_replacement): Change the comment about
14472 conditional_replacement.
14473 (conditional_replacement): Delete.
14475 2021-06-01 Andrew Pinski <apinski@marvell.com>
14477 PR tree-optimization/95481
14478 * tree-tailcall.c (find_tail_calls): Handle empty typed
14481 2021-06-01 Andrew Pinski <apinski@marvell.com>
14483 * gimplify.c (zero_sized_field_decl): Delete
14484 (zero_sized_type): Delete
14485 (gimplify_init_ctor_eval): Use is_empty_type instead
14486 of zero_sized_field_decl.
14487 (gimplify_modify_expr): Use is_empty_type instead of
14490 2021-06-01 Jason Merrill <jason@redhat.com>
14493 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
14495 2021-06-01 Jason Merrill <jason@redhat.com>
14498 * diagnostic.h (warning_enabled_at): Declare.
14499 * diagnostic.c (diagnostic_enabled): Factor out from...
14500 (diagnostic_report_diagnostic): ...here.
14501 (warning_enabled_at): New.
14503 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
14505 * gimple-ssa-evrp.c: Enable exporting of global ranges.
14507 2021-06-01 Martin Liska <mliska@suse.cz>
14510 * doc/invoke.texi: Mention that -fgcse-after-reload
14511 is enabled with -O3.
14513 2021-06-01 liuhongt <hongtao.liu@intel.com>
14515 PR tree-optimization/98365
14516 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
14517 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
14518 (convert_scalar_cond_reduction): Ditto.
14519 (predicate_scalar_phi): Ditto.
14521 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
14523 PR tree-optimization/100781
14524 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
14525 value calculation by default.
14526 (ranger_cache::enable_new_values): New.
14527 (ranger_cache::disable_new_values): New.
14528 (ranger_cache::push_poor_value): Check if new values are allowed.
14529 * gimple-range-cache.h (class ranger_cache): New member/methods.
14530 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
14531 statement, and disable/renable new value calculation.
14533 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
14535 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
14536 (ranger_cache::range_of_def): New.
14537 (ranger_cache::entry_range): New.
14538 (ranger_cache::exit_range): New.
14539 (ranger_cache::range_of_expr): Adjust.
14540 (ranger_cache::range_on_edge): Adjust.
14541 (ranger_cache::propagate_cache): Call exit_range directly.
14542 * gimple-range-cache.h (class ranger_cache): Adjust.
14544 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
14546 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
14547 gori_compute being a member rather than base class.
14548 dervied call to member call.
14549 (ranger_cache::dump): No longer dump gori_map.
14550 (ranger_cache::dump_bb): New.
14551 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
14552 being a member rather than base class.
14553 (ranger_cache::set_global_range): Ditto.
14554 (ranger_cache::ssa_range_in_bb): Ditto.
14555 (ranger_cache::range_of_expr): New.
14556 (ranger_cache::range_on_edge): New.
14557 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
14558 (ranger_cache::propagate_cache): Adjust debugging output.
14559 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
14561 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
14562 member, and inherit from range_query instead.
14563 (ranger_cache::dump_bb): New. split from dump.
14564 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
14565 (gori_compute::expr_range_at_stmt): Delete.
14566 (gori_compute::compute_name_range_op): Delete.
14567 (gori_compute::compute_operand_range_switch): Add fur_source.
14568 (gori_compute::compute_operand_range): Add fur_source param, inline
14569 old compute_name_range_op and optimize_logical_operands.
14570 (struct tf_range): Delete.
14571 (gori_compute::logical_combine): Adjust
14572 (gori_compute::optimize_logical_operands): Delete.
14573 (gori_compute::compute_logical_operands_in_chain): Delete.
14574 (gori_compute::compute_logical_operands): Adjust.
14575 (gori_compute::compute_operand1_range): Adjust to fur_source.
14576 (gori_compute::compute_operand2_range): Ditto.
14577 (gori_compute::compute_operand1_and_operand2_range): Ditto.
14578 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
14579 and adjust to fur_source.
14580 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
14581 range_query and fur_source.
14582 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
14583 from the ranger_cache..
14584 (gimple_ranger::fold_range_internal): Adjust to base class change of
14586 (gimple_ranger::dump_bb): Adjust dump.
14587 * gimple-range.h (gimple_ranger):export gori computes object.
14589 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
14591 PR tree-optimization/100774
14592 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
14593 Constant values are also not stale.
14594 (ranger_cache::set_global_range): Range invariant values should also
14595 have the correct timestamp.
14597 2021-05-31 Martin Liska <mliska@suse.cz>
14599 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
14600 Unpack FUNCTION_DECL_DECL_TYPE.
14601 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
14602 Stream FUNCTION_DECL_DECL_TYPE instead of
14603 DECL_IS_OPERATOR_NEW_P.
14604 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
14606 (DECL_IS_OPERATOR_NEW_P): Likewise.
14607 (DECL_IS_OPERATOR_DELETE_P): Likewise.
14608 (DECL_LAMBDA_FUNCTION_P): Likewise.
14610 2021-05-31 Richard Biener <rguenther@suse.de>
14613 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
14614 * internal-fn.def (SHUFFLEVECTOR): New.
14615 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
14616 * doc/extend.texi: Document __builtin_shufflevector.
14618 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
14621 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
14622 indexed form addresses.
14624 2021-05-29 Jeff Law <jlaw@tachyum.com>
14626 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
14627 parameter. Call callers fixed.
14629 (output_plussi): Add FALLTHRU markers.
14630 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
14632 2021-05-29 Jakub Jelinek <jakub@redhat.com>
14634 PR middle-end/99928
14635 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
14636 combined with parallel, make sure to add shared clause to
14637 parallel for explicit linear clause.
14639 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
14641 PR tree-optimization/100787
14642 * gimple-ssa-evrp.c: Disable exporting of global ranges.
14644 2021-05-28 Jason Merrill <jason@redhat.com>
14646 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
14647 operator--, operator*, operator==, and operator!=.
14648 (class tsi_range): New.
14650 2021-05-28 Richard Biener <rguenther@suse.de>
14652 PR tree-optimization/100778
14653 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
14654 trapping ops in different BBs.
14656 2021-05-28 Richard Biener <rguenther@suse.de>
14659 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
14660 copy fntype from original call.
14662 2021-05-28 Martin Liska <mliska@suse.cz>
14664 PR gcov-profile/100751
14665 * doc/gcov.texi: Revert partially a hunk that was wrong.
14667 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
14669 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
14671 (HAVE_sync_compare_and_swaphi): Likewise.
14672 (HAVE_sync_compare_and_swapsi): Likewise.
14674 2021-05-28 Jakub Jelinek <jakub@redhat.com>
14676 PR middle-end/99928
14677 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
14679 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
14681 * gimplify.c (gimplify_omp_affinity): New.
14682 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
14683 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
14684 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
14685 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
14686 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
14688 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
14689 Richard Biener <rguenther@suse.de>
14691 * match.pd <popcount & / + pattern matching>:
14692 When generating popcount directly fails, try doing it in two halves.
14694 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14696 * Makefile.in (generated_files): Add gimple-match.c and
14699 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
14701 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
14703 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
14705 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
14707 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
14709 PR tree-optimization/99398
14710 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
14711 where the fed operands are CTOR/CST and propagated through
14712 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
14713 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
14715 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
14718 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
14720 * config/i386/mmx.md (addv2sf3): Do not call
14721 ix86_fixup_binary_operands_no_copy.
14724 (<smaxmin:code>v2sf3): Ditto.
14725 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
14726 (<plusminus:insn><VI_32:mode>3): Remove expander.
14727 (<plusminus:insn><VI_32:mode>3): Rename from
14728 "*<plusminus:insn><VI_32:mode>3".
14729 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
14730 (mulv2hi3): Remove expander.
14731 (mulv2hi3): Rename from *mulv2hi3.
14732 (<s>mulv2hi3_highpart): Remove expander.
14733 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
14734 (<smaxmin:code><MMXMODE14:mode>3): Rename from
14735 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
14736 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
14737 (SMAXMIN_MMXMODEI): Remove mode iterator.
14738 (<smaxmin:code>v4hi3): New expander.
14739 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
14740 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
14741 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
14742 (SMAXMIN_VI_32): Remove mode iterator.
14743 (<umaxmin:code><MMXMODE24:mode>3): Rename from
14744 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
14745 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
14746 (UMAXMIN_MMXMODEI): Remove mode iterator.
14747 (<umaxmin:code>v8qi3): New expander.
14748 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
14749 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
14750 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
14751 (UMAXMIN_VI_32): Remove mode iterator.
14752 (<any_shift:insn>v2hi3): Remove expander.
14753 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
14754 (<any_logic:code><MMXMODEI:mode>3): Do not call
14755 ix86_fixup_binary_operands_no_copy.
14756 (<any_logic:code><VI_32:mode>3): Remove expander.
14757 (<any_logic:code><VI_32:mode>3): Rename from
14758 "*<any_logic:code><VI_32:mode>3".
14759 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
14760 * config/i386/sse.md (div<VF2:mode>3): Do not call
14761 ix86_fixup_binary_operands_no_copy.
14762 (div<VF1:mode>3): Ditto.
14763 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
14764 (smulhrsv4hi3): Ditto.
14765 (smulhrsv2hi3): Ditto.
14767 2021-05-27 Martin Sebor <msebor@redhat.com>
14769 * ggc.h (gt_ggc_mx): Add overloads for all integers.
14771 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
14773 (hash_map::operator==): New function.
14775 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
14778 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
14779 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
14780 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
14781 (*xop_maskcmp<VI_32:mode>3): Ditto.
14782 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
14783 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
14785 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
14788 * config/arm/arm.c (arm_configure_build_target): Remove parameter
14789 opts_set, directly check opts parameters for being non-null.
14790 (arm_option_restore): Update call to arm_configure_build_target.
14791 (arm_option_override): Likewise.
14792 (arm_can_inline_p): Likewise.
14793 (arm_valid_target_attribute_tree): Likewise.
14794 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
14795 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
14798 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
14800 * vr-values.c (simplify_conversion_using_ranges): Use
14801 get_range_query instead of get_global_range_query.
14803 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
14805 * gimple-range.cc (get_range_global): Move to value-query.cc.
14806 (gimple_range_global): Same.
14807 (get_global_range_query): Same.
14808 (global_range_query::range_of_expr): Same.
14809 * gimple-range.h (class global_range_query): Move to
14811 (gimple_range_global): Same.
14812 * tree-ssanames.c (get_range_info): Move to value-query.cc.
14813 (get_ptr_nonnull): Same.
14814 * tree-ssanames.h (get_range_info): Remove.
14815 (get_ptr_nonnull): Remove.
14816 * value-query.cc (get_ssa_name_range_info): Move from
14818 (get_ssa_name_ptr_info_nonnull): Same.
14819 (get_range_global): Move from gimple-range.cc.
14820 (gimple_range_global): Same.
14821 (get_global_range_query): Same.
14822 (global_range_query::range_of_expr): Same.
14823 * value-query.h (class global_range_query): Move from
14825 (gimple_range_global): Same.
14827 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
14830 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
14831 (uavgv2hi3_ceil): Ditto.
14833 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
14836 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
14838 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
14840 * tree-ssanames.c (get_range_info): Merge both copies of
14841 get_range_info into one that works with irange.
14842 * tree-ssanames.h (get_range_info): Remove version that works on
14845 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
14847 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
14848 (expand_builtin_strnlen): Same.
14849 (determine_block_size): Same.
14850 * fold-const.c (expr_not_equal_to): Same.
14851 * gimple-fold.c (size_must_be_zero_p): Same.
14852 * gimple-match-head.c: Include gimple-range.h.
14853 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
14854 * gimple-ssa-warn-restrict.c
14855 (builtin_memref::extend_offset_range): Same.
14856 * graphite-sese-to-poly.c (add_param_constraints): Same.
14857 * internal-fn.c (get_min_precision): Same.
14858 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
14859 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
14861 * tree-data-ref.c (split_constant_offset): Same.
14862 (dr_step_indicator): Same.
14863 * tree-dfa.c (get_ref_base_and_extent): Same.
14864 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
14865 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
14866 (determine_value_range): Same.
14867 (record_nonwrapping_iv): Same.
14868 (infer_loop_bounds_from_signedness): Same.
14869 (scev_var_range_cant_overflow): Same.
14870 * tree-ssa-phiopt.c (two_value_replacement): Same.
14871 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
14872 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
14873 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
14875 (dump_strlen_info): Same.
14876 (set_strlen_range): Same.
14877 (maybe_diag_stxncpy_trunc): Same.
14878 (get_len_or_size): Same.
14879 (handle_integral_assign): Same.
14880 * tree-ssa-structalias.c (find_what_p_points_to): Same.
14881 * tree-ssa-uninit.c (find_var_cmp_const): Same.
14882 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
14883 * tree-vect-patterns.c (vect_get_range_info): Same.
14884 (vect_recog_divmod_pattern): Same.
14885 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
14886 (register_edge_assert_for_2): Same.
14887 (determine_value_range_1): Same.
14888 * tree.c (get_range_pos_neg): Same.
14889 * vr-values.c (vr_values::get_lattice_entry): Same.
14890 (vr_values::update_value_range): Same.
14891 (simplify_conversion_using_ranges): Same.
14893 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
14895 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
14896 get_range_query instead of query argument.
14897 (pass_walloca::execute): Enable and disable global ranger.
14899 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
14901 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
14903 (rvrp_folder::~rvrp_folder): Call disable_ranger.
14904 (hybrid_folder::hybrid_folder): Call enable_ranger.
14905 (hybrid_folder::~hybrid_folder): Call disable_ranger.
14907 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
14909 * function.c (allocate_struct_function): Set cfun->x_range_query.
14910 * function.h (struct function): Declare x_range_query.
14911 (get_range_query): New.
14912 (get_global_range_query): New.
14913 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
14914 Remove call to safe_grow_cleared.
14915 * gimple-range.cc (get_range_global): New.
14916 (gimple_range_global): Move from gimple-range.h.
14917 (get_global_range_query): New.
14918 (global_range_query::range_of_expr): New.
14919 (enable_ranger): New.
14920 (disable_ranger): New.
14921 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
14922 (class global_range_query): New.
14923 (enable_ranger): New.
14924 (disable_ranger): New.
14925 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
14926 dump_all_value_ranges to dump.
14927 * tree-vrp.c (vrp_prop::finalize): Same.
14928 * value-query.cc (range_query::dump): New.
14929 * value-query.h (range_query::dump): New.
14930 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
14931 (vr_values::dump): ...this.
14932 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
14933 dump and make virtual.
14935 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
14937 * config/i386/i386.c (ix86_autovectorize_vector_modes):
14938 Add V4QImode and V16QImode for TARGET_SSE2.
14939 * doc/sourcebuild.texi (Vector-specific attributes):
14940 Add vect64 and vect32 description.
14942 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
14944 * gimple-range-gori.cc (range_def_chain::register_dependency):
14945 Resize m_def_chain when needed.
14947 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
14949 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
14950 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
14951 * config/arm/vec-common.md: .. here. Add support for MVE.
14953 2021-05-26 Jakub Jelinek <jakub@redhat.com>
14955 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
14957 * config/microblaze/microblaze.c (microblaze_legitimize_address,
14959 microblaze_option_override, print_operand): Likewise.
14960 * config/microblaze/microblaze.md (call_internal_plt,
14961 call_value_intern_plt, call_value_intern): Likewise.
14962 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
14963 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
14964 call_value_multiple_internal1): Likewise.
14965 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
14967 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14969 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
14970 arc_ccfsm_advance, symbolic_reference_mentioned_p,
14971 arc_raw_symbolic_reference_mentioned_p): Remove register
14974 2021-05-26 Jakub Jelinek <jakub@redhat.com>
14977 * omp-low.c: Include omp-offload.h.
14978 (create_omp_child_function): If current_function_decl has
14979 "omp declare target" attribute and is_gimple_omp_offloaded,
14980 remove that attribute from the copy of attribute list and
14981 add "omp target entrypoint" attribute instead.
14982 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
14983 variables for offloading if in omp_maybe_offloaded_ctx.
14984 * omp-offload.c (pass_omp_target_link::execute): Nullify second
14985 argument to GOMP_target_data_ext in offloaded code.
14987 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
14989 * config/csky/csky.c (csky_can_change_mode_class): Delete.
14990 For csky, HF/SF mode use the low bits of VREGS.
14992 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
14994 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
14995 DECL which is a reference for OMP.
14997 2021-05-26 Martin Liska <mliska@suse.cz>
14999 PR gcov-profile/100751
15000 * doc/gcov.texi: Document that __gcov_dump can be called just
15001 once and that __gcov_reset resets run-time counters.
15003 2021-05-26 Martin Liska <mliska@suse.cz>
15005 * doc/install.texi: Port relevant part from install-old.texi
15006 and re-generate list of CPUs and systems.
15008 2021-05-26 Martin Liska <mliska@suse.cz>
15010 * Makefile.in: Remove it.
15011 * doc/include/fdl.texi: Update next/previous chapters.
15012 * doc/install.texi: Likewise.
15013 * doc/install-old.texi: Removed.
15015 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
15017 * config/csky/csky.c (ck810_legitimate_index_p): Support
15018 "base + index" with DF mode.
15019 * config/csky/constraints.md ("Y"): New constraint for memory operands
15020 without index register.
15021 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
15022 when mov between memory and general registers, and lower their priority.
15023 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
15025 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
15027 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
15029 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
15031 * config/csky/csky.md (untyped_call): Emit clobber for return
15032 registers to mark them used.
15034 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
15036 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
15038 2021-05-26 Andrew Pinski <apinski@marvell.com>
15040 * match.pd (x < 0 ? ~y : y): New patterns.
15042 2021-05-26 Andrew Pinski <apinski@marvell.com>
15044 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
15045 A?POW2:0 and A?0:POW2.
15047 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
15049 * gimple-range-gori.cc (class logical_stmt_cache): Delete
15050 (logical_stmt_cache::logical_stmt_cache ): Delete.
15051 (logical_stmt_cache::~logical_stmt_cache): Delete.
15052 (logical_stmt_cache::cache_entry::dump): Delete.
15053 (logical_stmt_cache::get_range): Delete.
15054 (logical_stmt_cache::cached_name ): Delete.
15055 (logical_stmt_cache::same_cached_name): Delete.
15056 (logical_stmt_cache::cacheable_p): Delete.
15057 (logical_stmt_cache::slot_diagnostics ): Delete.
15058 (logical_stmt_cache::dump): Delete.
15059 (gori_compute_cache::gori_compute_cache): Delete.
15060 (gori_compute_cache::~gori_compute_cache): Delete.
15061 (gori_compute_cache::compute_operand_range): Delete.
15062 (gori_compute_cache::cache_stmt): Delete.
15063 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
15065 (class gori_compute_cache): Delete.
15067 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
15069 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
15071 (fold_using_range::range_of_address): Adjust.
15072 (fold_using_range::range_of_phi): Adjust.
15073 * gimple-range.h (class fur_source): Adjust.
15074 (fur_source::fur_source): Adjust.
15076 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
15078 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
15079 from expr_range_in_bb and adjust.
15080 (gori_compute::compute_name_range_op): Adjust.
15081 (gori_compute::optimize_logical_operands): Adjust.
15082 (gori_compute::compute_logical_operands_in_chain): Adjust.
15083 (gori_compute::compute_operand1_range): Adjust.
15084 (gori_compute::compute_operand2_range): Adjust.
15085 (ori_compute_cache::cache_stmt): Adjust.
15086 * gimple-range-gori.h (gori_compute): Rename prototype.
15088 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
15090 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
15091 checked only after range_of_stmt, not range_on_entry.
15092 (gimple_ranger::range_on_entry): Check for non-null in any
15093 predecessor block, if it is not already non-null.
15094 (gimple_ranger::range_on_exit): DOnt check for non-null after
15095 range on entry call.
15096 (gimple_ranger::dump_bb): New. Split from dump.
15097 (gimple_ranger::dump): Adjust.
15098 * gimple-range.h (class gimple_ranger): Adjust.
15100 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
15102 * gimple-range-cache.cc (struct range_timestamp): Delete.
15103 (class temporal_cache): Adjust.
15104 (temporal_cache::get_timestamp): Delete.
15105 (temporal_cache::set_dependency): Delete.
15106 (temporal_cache::temporal_value): Adjust.
15107 (temporal_cache::current_p): Take dependencies as params.
15108 (temporal_cache::set_timestamp): Adjust.
15109 (temporal_cache::set_always_current): Adjust.
15110 (ranger_cache::get_non_stale_global_range): Adjust.
15111 (ranger_cache::register_dependency): Delete.
15112 * gimple-range-cache.h (class range_cache): Adjust.
15114 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
15116 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
15118 (range_def_chain::~range_def_chain): Dispose of obstack rather than
15119 each individual bitmap.
15120 (range_def_chain::set_import): New.
15121 (range_def_chain::get_imports): New.
15122 (range_def_chain::chain_import_p): New.
15123 (range_def_chain::register_dependency): Rename from build_def_chain
15125 (range_def_chain::def_chain_in_bitmap_p): New.
15126 (range_def_chain::add_def_chain_to_bitmap): New.
15127 (range_def_chain::has_def_chain): Just check first depenedence.
15128 (range_def_chain::get_def_chain): Process imports, use generic
15129 register_dependency routine.
15130 (range_def_chain::dump): New.
15131 (gori_map::gori_map): Allocate import list.
15132 (gori_map::~gori_map): Release imports.
15133 (gori_map::exports): Check for past allocated block size.
15134 (gori_map::imports): New.
15135 (gori_map::def_chain_in_export_p): Delete.
15136 (gori_map::is_import_p): New.
15137 (gori_map::maybe_add_gori): Handle imports.
15138 (gori_map::dump): Adjust output, add imports.
15139 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
15140 (gori_export_iterator::gori_export_iterator): New.
15141 (gori_export_iterator::next): New.
15142 (gori_export_iterator::get_name): New.
15143 * gimple-range-gori.h (range_def_chain): Add imports and direct
15144 dependecies via struct rdc.
15145 (range_def_chain::depend1): New.
15146 (range_def_chain::depend2): New.
15147 (class gori_map): Adjust.
15148 (FOR_EACH_GORI_IMPORT_NAME): New.
15149 (FOR_EACH_GORI_EXPORT_NAME): New.
15150 (class gori_export_iterator): New.
15152 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
15154 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
15155 export cache filling to here.
15156 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
15158 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
15160 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
15161 (gori_map): Move to gimple-range-gori.h.
15162 (gori_compute::gori_compute): Adjust.
15163 (gori_compute::~gori_compute): Delete.
15164 (gori_compute::compute_operand_range_switch): Adjust.
15165 (gori_compute::compute_operand_range): Adjust.
15166 (gori_compute::compute_logical_operands): Adjust.
15167 (gori_compute::has_edge_range_p ): Adjust.
15168 (gori_compute::set_range_invariant): Delete.
15169 (gori_compute::dump): Adjust.
15170 (gori_compute::outgoing_edge_range_p): Adjust.
15171 * gimple-range-gori.h (class range_def_chain): Relocate here.
15172 (class gori_map): Relocate here.
15173 (class gori_compute): Inherit from gori_map, and adjust.
15175 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
15177 * value-range.cc (range_tests_legacy): Use
15178 build_nonstandard_integer_type instead of int and short.
15180 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
15182 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
15183 when really creating an initialization statement for it.
15185 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
15187 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
15189 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
15191 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
15193 2021-05-25 Martin Liska <mliska@suse.cz>
15195 PR tree-optimization/92860
15197 * optc-save-gen.awk: Remove exceptions.
15199 2021-05-25 Martin Liska <mliska@suse.cz>
15201 * asan.h (sanitize_coverage_p): New function.
15202 * doc/extend.texi: Document it.
15203 * fold-const.c (fold_range_test): Use sanitize_flags_p
15204 instead of flag_sanitize_coverage.
15205 (fold_truth_andor): Likewise.
15206 * sancov.c: Likewise.
15207 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
15208 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
15209 -fsanitize-coverage when inlining.
15211 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
15213 * config/csky/csky-modes.def : Fix copyright.
15215 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
15217 * config/csky/csky-modes.def : Amend copyright.
15218 * config/csky/csky_insn_fpuv2.md : Likewise.
15219 * config/csky/csky_insn_fpuv3.md : Likewise.
15221 2021-05-25 Richard Biener <rguenther@suse.de>
15223 PR middle-end/100727
15224 * calls.c (initialize_argument_information): Explicitely test
15225 for WITH_SIZE_EXPR.
15226 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
15228 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
15230 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
15231 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
15232 the signle definition. The signle definition may not work well
15233 at simplify_subreg_regno().
15234 (HARD_FRAME_POINTER_REGNUM): New.
15235 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
15236 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
15237 csky_initial_elimination_offset, csky_expand_prologue,
15238 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
15240 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
15242 * config/csky/csky.c (csky_option_override):
15243 Init csky_arch_isa_features[] in advance, so TARGET_DSP
15244 and TARGET_DIV can be set well.
15246 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
15248 * config/csky/constraints.md ("l", "h"): Delete.
15249 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
15250 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
15251 * config/csky/csky.c (regno_reg_classm,
15252 csky_secondary_reload, csky_register_move_cost):
15253 Use HILO_REGS instead of LO_REGS and HI_REGS.
15255 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
15257 * config/csky/constraints.md ("W"): New constriant for mem operand
15258 with base reg, index register.
15259 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
15260 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
15262 ("Dv"): New constraint for const double value that can be used at
15264 * config/csky/csky-modes.def (HFmode): New mode.
15265 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
15266 to "csky_valid_mem_constraint_operand" and support new constraint
15268 (csky_get_movedouble_length): New.
15269 (fpuv3_output_move): New.
15270 (fpuv3_const_double): New.
15271 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
15272 (decompose_csky_address): Refine.
15273 (csky_print_operand): New "CONST_DOUBLE" operand.
15274 (csky_output_move): Support fpv3 instructions.
15275 (csky_get_movedouble_length): New.
15276 (fpuv3_output_move): New.
15277 (fpuv3_const_double): New.
15278 (csky_emit_compare): Cover float comparsion.
15279 (csky_emit_compare_float): Refine.
15280 (csky_vaild_fpuv2_mem_operand): Rename to
15281 "csky_valid_mem_constraint_operand" and support new constraint "W".
15282 (ck860_rtx_costs): New.
15283 (csky_rtx_costs): Add the cost calculation of CK860.
15284 (regno_reg_class): New vregs for fpuv3.
15285 (csky_dbx_regno): Likewise.
15286 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
15287 (csky_conditional_register_usage): Suporrot fpuv3.
15288 (csky_dwarf_register_span): Suporrot fpuv3.
15289 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
15290 (ck810_legitimate_index_p): Support fp16.
15291 * config/csky/csky.h (TARGET_TLS): ADD CK860.
15292 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
15293 (TARGET_SINGLE_FPU): Support fpuv3.
15294 (TARGET_SUPPORT_FPV3): New.
15295 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
15296 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
15297 REG_CLASS_CONTENTS): Support fpuv3.
15298 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
15299 (csky_movsf_fpv2): Likewise.
15300 (ck801_movsf): Likewise.
15301 (csky_movsf): Likewise.
15303 (csky_movdf_fpv2): Likewise.
15304 (ck801_movdf): Likewise.
15305 (csky_movdf): Likewise.
15306 (movsicc): Refine. Use "comparison_operatior" instead of
15307 "ordered_comparison_operatior".
15308 (addsicc): Likewise.
15309 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
15310 (call_value_internal_vh): New.
15311 * config/csky/csky_cores.def (CK860): New arch and cpu.
15316 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
15317 into emit-patterns and match-patterns, remain the emit-patterns here,
15318 and move the match-patterns to csky_insn_fpuv2.md or
15319 csky_insn_fpuv3.md.
15320 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
15321 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
15323 * config/csky/csky_isa.def (fcr): New.
15328 (CK860): New definition for ck860.
15329 * config/csky/csky_tables.opt (ck860): New processors ck860,
15330 ck860f. And new arch ck860.
15335 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
15336 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
15337 * config/csky/t-csky-elf: Support 860.
15338 * config/csky/t-csky-linux: Likewise.
15339 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
15341 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
15343 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
15344 add generation of logical-add and add-logical fusion pairs.
15345 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
15347 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
15348 logical-add and add-logical fusion by default.
15349 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
15350 -mpower10-fusion-add-logical options.
15351 * config/rs6000/fusion.md: Regenerate file.
15353 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
15355 * value-range.cc (irange::legacy_equal_p): Check type when
15356 comparing VR_VARYING types.
15357 (range_tests_legacy): Test comparing VARYING ranges of different
15360 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
15362 * config/aarch64/aarch64.c (neoversen1_tunings):
15363 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
15365 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
15367 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
15368 extern weak symbols. Limit symbol offsets for non-GOT symbols with
15371 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
15373 * config/arm/neon.md (vec_load_lanesxi<mode>)
15374 (vec_store_lanexoi<mode>): Move ...
15375 * config/arm/vec-common.md: here.
15377 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
15379 * config/arm/neon.md (vec_load_lanesoi<mode>)
15380 (vec_store_lanesoi<mode>): Move ...
15381 * config/arm/vec-common.md: here.
15383 2021-05-24 liuhongt <hongtao.liu@intel.com>
15386 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
15387 stmt with GIMPLE_NOP when lhs doesn't exist.
15389 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
15392 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
15393 New instruction pattern.
15394 (*push<VI_32:mode>2): Ditto.
15395 (push splitter for SSE registers): New splitter.
15397 2021-05-23 Andrew Pinski <apinski@marvell.com>
15399 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
15401 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
15403 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
15404 * config/rs6000/fusion.md: Regenerate file.
15406 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
15408 * config/rs6000/genfusion.pl (gen_addadd): New function.
15409 * config/rs6000/fusion.md: Regenerate file.
15410 * config/rs6000/rs6000-cpus.def: Add
15411 OPTION_MASK_P10_FUSION_2ADD to masks.
15412 * config/rs6000/rs6000.c (rs6000_option_override_internal):
15413 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
15414 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
15416 2021-05-21 Jakub Jelinek <jakub@redhat.com>
15418 PR middle-end/99928
15419 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
15420 * gimplify.c (enum gimplify_omp_var_data): Fix up
15421 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
15422 (omp_lastprivate_for_combined_outer_constructs): If combined target
15423 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
15424 GOVD_MAP | GOVD_SEEN.
15425 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
15426 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
15427 (gimplify_adjust_omp_clauses): For firstprivate clauses with
15428 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
15429 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
15430 let it be replaced by implicit map clause.
15432 2021-05-21 Jakub Jelinek <jakub@redhat.com>
15434 PR middle-end/99928
15435 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
15437 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
15438 (gimplify_omp_for): Likewise.
15440 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
15442 PR middle-end/90115
15443 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
15444 'external' in blocks.
15446 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
15448 PR middle-end/90115
15449 * flag-types.h (enum openacc_privatization): New.
15450 * params.opt (-param=openacc-privatization): New.
15451 * doc/invoke.texi (openacc-privatization): Document it.
15452 * omp-general.h (get_openacc_privatization_dump_flags): New
15454 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
15455 * omp-offload.c (execute_oacc_device_lower)
15456 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
15457 * target.def (goacc.adjust_private_decl): Add 'location_t'
15459 * doc/tm.texi: Regenerate.
15460 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
15461 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
15462 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
15463 Likewise. Preserve it for...
15464 (nvptx_goacc_expand_var_decl): ... use here.
15466 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
15468 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
15471 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
15473 PR middle-end/90115
15474 * omp-low.c (oacc_privatization_candidate_p): New function.
15475 (oacc_privatization_scan_clause_chain)
15476 (oacc_privatization_scan_decl_chain): Use it. Also
15477 'gcc_checking_assert' that we're not seeing duplicates.
15479 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
15481 PR middle-end/90115
15482 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
15485 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
15487 PR middle-end/90115
15488 * omp-offload.c (execute_oacc_device_lower): Explain.
15490 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
15492 PR middle-end/90115
15493 * omp-offload.c (execute_oacc_device_lower)
15494 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
15496 * internal-fn.c (expand_UNIQUE): Don't expect
15497 'IFN_UNIQUE_OACC_PRIVATE'.
15499 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
15501 PR middle-end/90115
15502 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
15504 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
15506 PR middle-end/90115
15507 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
15508 (nvptx_goacc_expand_var_decl): Tighten.
15510 2021-05-21 Julian Brown <julian@codesourcery.com>
15511 Chung-Lin Tang <cltang@codesourcery.com>
15512 Thomas Schwinge <thomas@codesourcery.com>
15514 PR middle-end/90115
15515 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
15516 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
15517 * doc/tm.texi: Regenerate.
15518 * expr.c (expand_expr_real_1): Expand decls using the
15519 expand_var_decl OpenACC hook if defined.
15520 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
15521 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
15522 * omp-low.c (omp_context): Add oacc_privatization_candidates
15524 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
15526 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
15527 private marker's gimple call arguments, and pass it to
15528 lower_oacc_reductions.
15529 (oacc_privatization_scan_clause_chain)
15530 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
15532 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
15533 * omp-offload.c (convert.h): Include.
15534 (oacc_loop_xform_head_tail): Treat private-variable markers like
15535 fork/join when transforming head/tail sequences.
15536 (struct var_decl_rewrite_info): Add struct.
15537 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
15538 (execute_oacc_device_lower): Support rewriting gang-private
15539 variables using target hook, and fix up addr_expr and var_decl
15541 * target.def (adjust_private_decl, expand_var_decl): New hooks.
15542 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
15544 (gcn_goacc_adjust_private_decl): ...this.
15545 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
15547 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
15548 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
15549 definition using gcn_goacc_adjust_gangprivate_decl...
15550 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
15551 gcn_goacc_adjust_private_decl.
15552 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
15553 (gang_private_shared_size): New global variable.
15554 (gang_private_shared_align): Likewise.
15555 (gang_private_shared_sym): Likewise.
15556 (gang_private_shared_hmap): Likewise.
15557 (nvptx_option_override): Initialize these.
15558 (nvptx_file_end): Output gang_private_shared_sym.
15559 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
15561 (nvptx_set_current_function): Clear gang_private_shared_hmap.
15562 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
15563 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
15565 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
15567 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
15569 2021-05-21 Richard Biener <rguenther@suse.de>
15570 H.J. Lu <hjl.tools@gmail.com>
15572 PR middle-end/90773
15573 * expr.c (expand_constructor): Elide expand_constructor if
15574 move by pieces is preferred.
15576 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15578 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
15579 Take a flag and mode value as arguments.
15580 (aarch64_modifies_global_state_p): Likewise.
15581 (aarch64_reads_global_state_p): Likewise.
15582 (aarch64_could_trap_p): Likewise.
15583 (aarch64_get_attributes): Likewise.
15584 (aarch64_init_simd_builtins): Adjust callsite of above.
15585 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
15586 function attributes to apply to builtins.
15587 (aarch64_init_crc32_builtins): Likewise.
15588 (aarch64_init_builtin_rsqrt): Likewise.
15590 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
15592 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
15593 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
15594 (gen_2logical): Use new fusion types.
15595 * config/rs6000/fusion.md: Regenerate.
15597 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
15600 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
15601 Handle V4QI and V2HI modes.
15602 (ix86_expand_sse_movcc): Ditto.
15603 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
15604 New instruction pattern.
15605 (*eq<VI_32:mode>3): Ditto.
15606 (*gt<VI_32:mode>3): Ditto.
15607 (*xop_pcmov_<VI_32:mode>): Ditto.
15608 (mmx_pblendvb32): Ditto.
15609 (mmx_pblendvb64): Rename from mmx_pblendvb.
15610 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
15611 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
15612 (vcond<VI_32:mode><VI_32:mode>): Ditto.
15613 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
15614 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
15616 2021-05-21 Jakub Jelinek <jakub@redhat.com>
15618 PR tree-optimization/94589
15619 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
15620 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
15621 not the same as cmp3) treat <= the same as < and >= the same as >.
15622 Don't require that cond2_phi_edge is true edge, instead take
15623 false/true edges into account based on cmp1/cmp2 comparison kinds.
15625 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
15628 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
15629 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
15630 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
15631 using SMAXMIN_MMXMODEI mode iterator.
15632 (*<smaxmin:code>v4qi3): New insn pattern.
15633 (*<smaxmin:code>v2hi3): Ditto.
15634 (SMAXMIN_VI_32): New mode iterator.
15635 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
15636 (UMAXMIN_MMXMODEI): New mode iterator.
15637 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
15638 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
15639 using UMAXMIN_MMXMODEI mode iterator.
15640 (*<umaxmin:code>v4qi3): New insn pattern.
15641 (*<umaxmin:code>v2hi3): Ditto.
15642 (UMAXMIN_VI_32): New mode iterator.
15643 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
15644 (abs<VI_32:mode>2): New insn pattern.
15645 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
15646 * config/i386/sse.md: ... here.
15648 2021-05-20 Clement Chigot <clement.chigot@atos.net>
15649 David Edelsohn <dje.gcc@gmail.com>
15651 * collect2.c (scan_prog_file): Issue non-fatal warning for
15654 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
15656 * doc/invoke.texi (-Wno-c++11-extensions)
15657 (-Wno-c++14-extensions, -Wno-c++17-extensions)
15658 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
15661 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
15663 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
15664 * config/darwin.c (darwin_override_options): Likewise.
15665 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
15666 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
15667 (DWARF2_FRAME_REG_OUT): Likewise.
15668 * config/mips/mips.c (mips_output_filename): Likewise.
15669 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
15671 (rs6000_dbx_register_number): Likewise.
15672 * dbxout.c: Include flags.h.
15673 * dwarf2cfi.c (cfi_label_required_p): Likewise.
15674 (dwarf2out_do_frame): Likewise.
15675 * except.c: Include flags.h.
15676 * final.c (dwarf2_debug_info_emitted_p): Likewise.
15677 (final_scan_insn_1): Likewise.
15678 * flags.h (dwarf_debuginfo_p): New function declaration.
15679 * opts.c (dwarf_debuginfo_p): New function definition.
15680 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
15681 * toplev.c (process_options): Likewise.
15683 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
15685 * common.opt: Change type to support bitmasks.
15686 * flag-types.h (enum debug_info_type): Rename enumerator constants.
15687 (NO_DEBUG): New bitmask.
15688 (DBX_DEBUG): Likewise.
15689 (DWARF2_DEBUG): Likewise.
15690 (XCOFF_DEBUG): Likewise.
15691 (VMS_DEBUG): Likewise.
15692 (VMS_AND_DWARF2_DEBUG): Likewise.
15693 * flags.h (debug_set_to_format): New function declaration.
15694 (debug_set_count): Likewise.
15695 (debug_set_names): Likewise.
15696 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
15697 (debug_set_to_format): New function definition.
15698 (debug_set_count): Likewise.
15699 (debug_set_names): Likewise.
15700 (set_debug_level): Update access to debug_type_names.
15701 * toplev.c: Likewise.
15703 2021-05-20 Martin Sebor <msebor@redhat.com>
15705 PR middle-end/100684
15706 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
15708 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
15711 * config/i386/i386.md (isa): Remove x64_bmi.
15712 (enabled): Remove x64_bmi.
15713 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
15714 Remove general register alternative.
15715 (*andnot<VI_32:mode>3): Ditto.
15716 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
15717 (*<any_logic:code><VI_32:mode>3): Ditto.
15719 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
15721 * config/arm/arm.c: Include head files tree-vectorizer.h and
15724 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
15727 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
15728 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
15729 (<s>mulv4hi3_highpart): New expander.
15730 (*<s>mulv2hi3_highpart): New insn pattern.
15731 (<s>mulv2hi3_higpart): New expander.
15732 (*<any_shift:insn>v2hi3): New insn pattern.
15733 (<any_shift:insn>v2hi3): New expander.
15734 * config/i386/sse.md (smulhrsv2hi3): New expander.
15735 (*smulhrsv2hi3): New insn pattern.
15737 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
15739 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
15741 * params.opt (vect-inner-loop-cost-factor): New.
15742 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
15743 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
15744 tree-vectorizer.h and its required ones.
15745 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
15746 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
15747 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
15748 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
15749 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
15750 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
15752 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
15753 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
15754 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
15756 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
15757 Torbjörn Svensson <torbjorn.svensson@st.com>
15760 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
15762 2021-05-20 Jakub Jelinek <jakub@redhat.com>
15764 PR middle-end/99928
15765 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
15766 explicit linear clause when combined with target, make it map(tofrom:)
15767 instead of no clause or firstprivate.
15769 2021-05-20 Jakub Jelinek <jakub@redhat.com>
15771 PR tree-optimization/94589
15772 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
15773 of integral conversions.
15775 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
15777 * gimple-range.cc (fur_source::get_operand): New.
15778 (gimple_range_fold): Delete.
15779 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
15780 (fold_using_range::range_of_range_op): Move from gimple_ranger.
15781 (fold_using_range::range_of_address): Ditto.
15782 (fold_using_range::range_of_phi): Ditto.
15783 (fold_using_range::range_of_call): Ditto.
15784 (fold_using_range::range_of_builtin_ubsan_call): Move from
15785 range_of_builtin_ubsan_call.
15786 (fold_using_range::range_of_builtin_call): Move from
15787 range_of_builtin_call.
15788 (gimple_ranger::range_of_builtin_call): Delete.
15789 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
15790 (gimple_ranger::fold_range_internal): New.
15791 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
15792 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
15793 gimple_ranger. Improve ranges of SSA_NAMES when possible.
15794 * gimple-range.h (gimple_ranger): Remove various range_of routines.
15795 (class fur_source): New.
15796 (class fold_using_range): New.
15797 (fur_source::fur_source): New.
15799 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
15800 instead of range_of_builtin_call.
15802 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
15804 * doc/cpp.texi (Common Predefined Macros): Update documentation
15805 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
15807 2021-05-19 Alex Coplan <alex.coplan@arm.com>
15810 * config/arm/arm.md (nonsecure_call_internal): Always ensure
15811 callee's address is in a register.
15813 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
15815 * common/config/riscv/riscv-common.c
15816 (riscv_subset_list::parsing_subset_version): Properly parse the letter
15818 (riscv_subset_list::parse_std_ext,
15819 riscv_subset_list::parse_multiletter_ext): To handle errors generated
15820 in riscv_subset_list::parsing_subset_version.
15822 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
15824 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
15825 type attribute in patterns generating XTN(2).
15827 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
15829 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
15830 Remove as duplicate of...
15831 (aarch64_xtn<mode>): This.
15832 (aarch64_xtn2<mode>_le): Move position in file.
15833 (aarch64_xtn2<mode>_be): Move position in file.
15834 (aarch64_xtn2<mode>): Move position in file.
15835 (vec_pack_trunc_<mode>): Define as an expander.
15837 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
15839 * config/aarch64/aarch64-simd-builtins.def: Split builtin
15840 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
15841 separate scalar and vector generators.
15842 * config/aarch64/aarch64-simd.md
15843 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
15845 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
15846 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
15847 * config/aarch64/iterators.md: Define SD_HSDI iterator.
15849 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
15851 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
15853 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
15855 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
15857 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
15858 Implement as an expand emitting a big/little endian
15859 instruction pattern.
15860 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
15861 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
15863 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
15865 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
15866 Implement as an expand emitting a big/little endian
15867 instruction pattern.
15868 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
15869 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
15870 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
15871 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
15873 2021-05-19 Richard Biener <rguenther@suse.de>
15875 PR middle-end/100672
15876 * fold-const.c (fold_negate_expr_1): Use element_precision.
15877 (negate_expr_p): Likewise.
15879 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
15881 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
15882 (pred_load): New int attribute.
15883 * config/aarch64/aarch64-sve.md
15884 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
15885 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
15886 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
15887 code_for_aarch64_load.
15889 2021-05-19 Richard Biener <rguenther@suse.de>
15891 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
15892 sure TARGET_MEM_REF bases are expanded as memory.
15893 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
15894 Do not mark TARGET_MEM_REF bases addressable.
15895 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
15896 TARGET_MEM_REF bases as never rewritable.
15897 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
15898 walk TARGET_MEM_REF bases as address-takens.
15899 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
15901 2021-05-19 Richard Biener <rguenther@suse.de>
15903 * builtins.c (get_object_alignment_1): Strip outer
15905 * tree-dfa.c (get_ref_base_and_extent): Handle outer
15906 WITH_SIZE_EXPR for size processing and process the
15908 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
15909 outer WITH_SIZE_EXPR.
15910 (ao_ref_base_alias_ptr_type): Likewise.
15911 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
15912 and handle that accordingly, stripping it for the
15913 core alias workers.
15914 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
15915 looking through it instead of returning NULL.
15917 2021-05-19 Jakub Jelinek <jakub@redhat.com>
15919 PR middle-end/100576
15920 * builtins.c (check_read_access): Convert bound to size_type_node if
15923 2021-05-19 Richard Biener <rguenther@suse.de>
15925 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
15926 (verify_types_in_gimple_reference): ... here. Sanitize.
15927 (verify_gimple_call): Verify references in LHS and arguments.
15928 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
15930 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
15932 * config/i386/i386.h (VALID_INT_MODE_P):
15933 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
15934 * config/i386/i386.md (isa): Add x64_bmi.
15935 (enabled): Handle x64_bmi.
15936 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
15937 Add alternative using 64bit general registers.
15938 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
15940 2021-05-19 Jakub Jelinek <jakub@redhat.com>
15942 PR middle-end/99928
15943 * tree.h (OMP_MASTER_COMBINED): Define.
15944 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
15945 handling for outer combined/composite constructs to a loop.
15946 Handle lastprivate on combined target.
15947 (gimplify_expr): Formatting fix.
15949 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
15951 * passes.def: Add sink_code pass before store_merging.
15952 * tree-ssa-sink.c (pass_sink_code:clone): New.
15954 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
15956 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
15957 rs6000_special_adjust_field_align_p.
15958 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
15959 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
15960 Remove ABI warning.
15961 (rs6000_function_arg): Likewise.
15962 * config/rs6000/rs6000-protos.h
15963 (rs6000_special_adjust_field_align_p): Remove prototype.
15964 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
15966 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
15967 rs6000_special_adjust_field_align_p.
15969 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
15972 * config/i386/i386.h (VALID_SSE2_REG_MODE):
15973 Add V4QI and V2HI modes.
15974 (VALID_INT_MODE_P): Ditto.
15975 * config/i386/mmx.md (VI_32): New mode iterator.
15976 (mmxvecsize): Handle V4QI and V2HI.
15978 (mov<VI_32:mode>): New expander.
15979 (*mov<mode>_internal): New insn pattern.
15980 (movmisalign<VI_32:mode>): New expander.
15981 (neg<VI_32:mode>): New expander.
15982 (<plusminus:insn><VI_32:mode>3): New expander.
15983 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
15984 (mulv2hi3): New expander.
15985 (*mulv2hi3): New insn pattern.
15986 (one_cmpl<VI_32:mode>2): New expander.
15987 (*andnot<VI_32:mode>3): New insn pattern.
15988 (<any_logic:code><VI_32:mode>3): New expander.
15989 (*<any_logic:code><VI_32:mode>3): New insn pattern.
15991 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
15993 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
15994 Fix a mode mismatch with operand 1.
15996 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
15999 * config/i386/i386-expand.c (split_double_mode): Return
16000 temporary register when simplify_gen_subreg fails with
16001 the high half od the paradoxical subreg.
16003 2021-05-18 Richard Biener <rguenther@suse.de>
16005 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
16006 and honor it when expanding.
16007 (expand_used_vars_for_block): Pass through forced_stack_var.
16008 (expand_used_vars): Likewise.
16009 (discover_nonconstant_array_refs_r): Set bits in
16010 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
16011 (avoid_type_punning_on_regs): Likewise.
16012 (discover_nonconstant_array_refs): Likewise.
16013 (pass_expand::execute): Create and pass down forced_stack_var
16014 bitmap. For parameters and returns temporarily set
16015 TREE_ADDRESSABLE when expand_function_start.
16017 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
16019 * doc/sourcebuild.texi: Document 'dg-note'.
16021 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
16024 * configure: Regenerate.
16025 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
16027 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
16029 * gimple.h (is_gimple_omp_oacc): Tighten.
16030 * omp-low.c (check_omp_nesting_restrictions): Adjust.
16032 2021-05-18 Richard Biener <rguenther@suse.de>
16034 * tree-ssa-operands.c (mark_address_taken): Simplify.
16036 2021-05-18 Martin Liska <mliska@suse.cz>
16038 * config/gcn/mkoffload.c (STR): Redefine.
16039 * config/i386/intelmic-mkoffload.c (STR): Likewise.
16040 * config/nvptx/mkoffload.c (STR): Likewise.
16042 2021-05-18 Martin Liska <mliska@suse.cz>
16044 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
16045 Use startswith function instead of strncmp.
16046 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
16047 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
16048 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
16049 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
16050 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
16051 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
16052 * config/arm/arm.c (arm_file_start): Likewise.
16053 (arm_valid_target_attribute_rec): Likewise.
16054 (thumb1_md_asm_adjust): Likewise.
16055 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
16056 * config/avr/avr.c (STR_PREFIX_P): Likewise.
16057 (avr_set_current_function): Likewise.
16058 (avr_handle_addr_attribute): Likewise.
16059 (avr_asm_output_aligned_decl_common): Likewise.
16060 (avr_asm_named_section): Likewise.
16061 (avr_section_type_flags): Likewise.
16062 (avr_asm_select_section): Likewise.
16063 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
16064 (c6x_section_type_flags): Likewise.
16065 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
16066 (darwin_objc_declare_unresolved_class_reference): Likewise.
16067 (darwin_objc_declare_class_definition): Likewise.
16068 * config/darwin.c (indirect_data): Likewise.
16069 (darwin_encode_section_info): Likewise.
16070 (darwin_objc2_section): Likewise.
16071 (darwin_objc1_section): Likewise.
16072 (machopic_select_section): Likewise.
16073 (darwin_globalize_label): Likewise.
16074 (darwin_label_is_anonymous_local_objc_name): Likewise.
16075 (darwin_asm_named_section): Likewise.
16076 (darwin_asm_output_dwarf_offset): Likewise.
16077 * config/frv/frv.c (frv_string_begins_with): Likewise.
16078 (frv_in_small_data_p): Likewise.
16079 * config/gcn/mkoffload.c (STR): Likewise.
16081 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
16082 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
16083 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
16084 (ix86_md_asm_adjust): Likewise.
16085 * config/i386/intelmic-mkoffload.c (STR): Likewise.
16086 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
16087 (i386_pe_file_end): Likewise.
16088 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
16089 (ia64_section_type_flags): Likewise.
16090 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
16091 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
16092 (mips16_stub_function_p): Likewise.
16093 (mips_function_rodata_section): Likewise.
16094 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
16095 (msp430_function_section): Likewise.
16096 (msp430_section_type_flags): Likewise.
16097 (msp430_expand_helper): Likewise.
16098 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
16099 (nios2_valid_target_attribute_rec): Likewise.
16100 * config/nvptx/mkoffload.c (process): Likewise.
16102 * config/pa/som.h: Likewise.
16103 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
16104 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
16105 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
16106 (rs6000_inner_target_options): Likewise.
16107 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
16108 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
16109 * config/vax/vax.c (vax_output_int_move): Likewise.
16110 * config/vms/vms-ld.c (startswith): Likewise.
16111 (process_args): Likewise.
16113 * config/vms/vms.c: Likewise.
16115 2021-05-18 Jakub Jelinek <jakub@redhat.com>
16117 PR rtl-optimization/100590
16118 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
16119 they are NONJUMP_INSN_P.
16121 2021-05-18 Jakub Jelinek <jakub@redhat.com>
16124 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
16125 DECL_ASSEMBLER_NAME on the fn_decl.
16127 2021-05-18 Jakub Jelinek <jakub@redhat.com>
16129 PR tree-optimization/94589
16130 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
16131 phi result used in (res & ~1) == 0 comparison as res >= 0 as
16132 res == 2 would be UB with -ffinite-math-only.
16134 2021-05-18 Martin Liska <mliska@suse.cz>
16136 * Makefile.in: genversion.o should depend on DATESTAMP.
16138 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
16140 * config/arc/simdext.md (negv2si2): Remove round bracket.
16142 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
16144 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
16145 _Bool as macro expanding to _Bool.
16147 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
16150 * tree.c (build_reference_type_for_mode)
16151 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
16153 (build_reference_type, build_pointer_type): Invoke
16154 build_*_type_for_mode with VOIDmode.
16156 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
16158 PR tree-optimization/100512
16159 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
16160 and non-zero pointer ranges as invariant.
16161 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
16162 processing from here.
16164 2021-05-17 Tom de Vries <tdevries@suse.de>
16167 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
16168 * config/nvptx/nvptx.c (nvptx_output_barrier)
16169 (nvptx_output_atomic_insn): New function.
16170 (nvptx_print_operand): Add support for 'B'.
16171 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
16174 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
16176 PR tree-optimization/100349
16177 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
16180 2021-05-17 Tamar Christina <tamar.christina@arm.com>
16182 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
16183 (host_detect_local_cpu): Use it.
16185 2021-05-17 Martin Liska <mliska@suse.cz>
16187 * doc/invoke.texi: Add 2 missing dots.
16189 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
16191 PR bootstrap/100552
16192 * configure.ac: Replace pattern substitution with call to sed.
16193 * configure: Regenerate.
16195 2021-05-17 Richard Biener <rguenther@suse.de>
16197 PR middle-end/100582
16198 * tree.c (array_at_struct_end_p): Get to the base of the
16199 reference before looking for the underlying decl.
16201 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
16203 * genoutput.c (validate_insn_alternatives) Make "wrong number of
16204 alternatives" message more specific, and remove assumption on where
16207 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
16209 * config/arm/iterators.md (V16): New iterator.
16210 (VH_cvtto): New iterator.
16211 (v_cmp_result): Added V4HF and V8HF support.
16212 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
16213 (vcond<mode><mode>): Likewise.
16214 (vcond_mask_<mode><v_cmp_result>): Likewise.
16215 (vcond<VH_cvtto><mode>): New expander.
16217 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
16219 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
16221 * config/arm/arm.c (arm_expand_vector_compare): Add support for
16223 (arm_expand_vcond): Likewise.
16224 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
16225 VCMPEQQ_N_S, VCMPNEQ_N_S.
16226 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
16227 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
16228 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
16229 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
16230 (@mve_vpselq_<supf><mode>): Likewise.
16231 (@mve_vpselq_f<mode>"): Likewise.
16232 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
16233 and move to vec-common.md.
16234 (vec_cmpu<mode><mode>): Likewise.
16235 (vcond<mode><mode>): Likewise.
16236 (vcond<V_cvtto><mode>): Likewise.
16237 (vcondu<mode><v_cmp_result>): Likewise.
16238 (vcond_mask_<mode><v_cmp_result>): Likewise.
16239 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
16240 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
16241 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
16242 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
16243 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
16244 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
16246 (vec_cmpu<mode><mode>): Likewise.
16247 (vcond<mode><mode>): Likewise.
16248 (vcond<V_cvtto><mode>): Likewise.
16249 (vcondu<mode><v_cmp_result>): Likewise.
16250 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
16253 2021-05-17 liuhongt <hongtao.liu@intel.com>
16256 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
16257 gsi_insert_seq_before instead.
16259 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
16261 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
16262 (arm_sat_ok): ...this.
16264 2021-05-17 Martin Liska <mliska@suse.cz>
16266 * lto-wrapper.c (merge_flto_options): Factor out a new function.
16267 (merge_and_complain): Use it.
16268 (run_gcc): Merge also linker command line -flto=foo argument
16271 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
16273 * config/arm/arm.h (CPP_SPEC): Remove error message about
16274 -mlittle-endian/-mbig-endian conflict.
16276 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
16278 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
16279 __ROP_PROTECT__ if -mrop-protect is selected.
16281 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
16283 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
16284 rop_hash_save_offset and rop_hash_size.
16285 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
16286 rop_hash_size and rop_hash_save_offset.
16287 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
16288 (rs6000_emit_prologue): Emit hashst[p] in prologue.
16289 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
16290 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
16292 (hashst): New define_insn.
16293 (hashchk): Likewise.
16295 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
16297 * config/rs6000/rs6000.c (rs6000_option_override_internal):
16298 Disable shrink wrap when inserting ROP-protect instructions.
16299 * config/rs6000/rs6000.opt (mrop-protect): New option.
16300 (mprivileged): Likewise.
16301 * doc/invoke.texi: Document mrop-protect and mprivileged.
16303 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
16305 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
16308 2021-05-15 Martin Jambor <mjambor@suse.cz>
16311 2021-05-13 Martin Jambor <mjambor@suse.cz>
16313 PR tree-optimization/100453
16314 * tree-sra.c (sra_modify_assign): All const base accesses do not
16315 need refreshing, not just those from decl_pool.
16316 (sra_modify_assign): Do not refresh into a const base decl.
16318 2021-05-15 Jakub Jelinek <jakub@redhat.com>
16320 PR rtl-optimization/100342
16321 * regcprop.c (copy_value): When copying a source reg in a wider
16322 mode than it has recorded for the value, adjust recorded destination
16323 mode too or punt if !REG_CAN_CHANGE_MODE_P.
16325 2021-05-14 Jason Merrill <jason@redhat.com>
16327 * intl.h: Add comments.
16329 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16331 * config/aarch64/aarch64-simd.md
16332 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
16333 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
16334 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
16335 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
16336 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
16337 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
16338 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
16339 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
16340 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
16342 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16345 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
16346 boolean logic equivalent.
16347 (vtst_s16): Likewise.
16348 (vtst_s32): Likewise.
16349 (vtst_u8): Likewise.
16350 (vtst_u16): Likewise.
16351 (vtst_u32): Likewise.
16352 (vtst_p8): Likewise.
16353 (vtst_p16): Likewise.
16354 (vtstq_s8): Likewise.
16355 (vtstq_s16): Likewise.
16356 (vtstq_s32): Likewise.
16357 (vtstq_u8): Likewise.
16358 (vtstq_u16): Likewise.
16359 (vtstq_u32): Likewise.
16360 (vtstq_p8): Likewise.
16361 (vtstq_p16): Likewise.
16362 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
16363 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
16365 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16367 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
16368 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
16369 (aarch64_sqdmlsl2<mode>): Delete.
16370 (aarch64_sqdmlal2_lane<mode>): Merge this...
16371 (aarch64_sqdmlsl2_lane<mode>): ... And this...
16372 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
16373 (aarch64_sqdmlal2_laneq<mode>): Merge this...
16374 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
16375 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
16376 (aarch64_sqdmlal2_n<mode>): Merge this...
16377 (aarch64_sqdmlsl2_n<mode>): ... And this...
16378 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
16380 2021-05-13 Martin Sebor <msebor@redhat.com>
16382 PR middle-end/100574
16383 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
16384 all null arguments.
16386 2021-05-13 Martin Sebor <msebor@redhat.com>
16388 PR tree-optimization/93100
16389 PR middle-end/98583
16390 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
16391 don't modify referenced objects.
16393 2021-05-13 Martin Jambor <mjambor@suse.cz>
16395 PR tree-optimization/100453
16396 * tree-sra.c (sra_modify_assign): All const base accesses do not
16397 need refreshing, not just those from decl_pool.
16398 (sra_modify_assign): Do not refresh into a const base decl.
16400 2021-05-13 Martin Liska <mliska@suse.cz>
16402 * tree-ssa-dom.c: Remove m_simplifier.
16404 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
16407 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
16408 canonicalize DImode inequality comparisons against the
16409 maximum integral value.
16411 2021-05-13 Jakub Jelinek <jakub@redhat.com>
16413 PR tree-optimization/98856
16414 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
16415 Expect V2DI and V4DI arithmetic right shifts to be emulated.
16416 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
16418 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
16419 expand_vec_perm_2perm_pblendv): New functions.
16420 (ix86_expand_vec_perm_const_1): Use them.
16421 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
16422 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
16423 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
16424 (ashrv4di3): New define_expand.
16425 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
16426 and !TARGET_AVX512VL expansion.
16428 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
16431 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
16432 sizes < 16 to a register when constructing vpcmov pattern.
16433 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
16435 2021-05-13 Martin Liska <mliska@suse.cz>
16437 * gcov-io.c (gcov_write_block): Remove.
16438 (gcov_write_words): Likewise.
16439 (gcov_read_words): Re-implement using gcov_read_bytes.
16440 (gcov_allocate): Remove.
16441 (GCOV_BLOCK_SIZE): Likewise.
16442 (struct gcov_var): Remove most of the fields.
16443 (gcov_position): Implement with ftell.
16444 (gcov_rewrite): Remove setting of start and offset fields.
16445 (from_file): Re-format.
16446 (gcov_open): Remove setbuf call. It should not be needed.
16447 (gcov_close): Remove internal buffer handling.
16448 (gcov_magic): Use __builtin_bswap32.
16449 (gcov_write_counter): Use directly gcov_write_unsigned.
16450 (gcov_write_string): Use direct fwrite and do not round
16452 (gcov_seek): Use directly fseek.
16453 (gcov_write_tag): Use gcov_write_unsigned directly.
16454 (gcov_write_length): Likewise.
16455 (gcov_write_tag_length): Likewise.
16456 (gcov_read_bytes): Use directly fread.
16457 (gcov_read_unsigned): Use gcov_read_words.
16458 (gcov_read_counter): Likewise.
16459 (gcov_read_string): Use gcov_read_bytes.
16460 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
16461 that size is not in bytes, but words (4B).
16462 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
16463 (GCOV_TAG_ARCS_LENGTH): Likewise.
16464 (GCOV_TAG_ARCS_NUM): Likewise.
16465 (GCOV_TAG_COUNTER_LENGTH): Likewise.
16466 (GCOV_TAG_COUNTER_NUM): Likewise.
16467 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
16469 2021-05-13 liuhongt <hongtao.liu@intel.com>
16472 * config/i386/sse.md (ssedoublevecmode): Add attribute for
16473 V64QI/V32HI/V16SI/V4DI.
16474 (ssehalfvecmode): Add attribute for V2DI/V2DF.
16475 (*vec_concatv4si_0): Extend to VI124_128.
16476 (*vec_concat<mode>_0): New pre-reload splitter.
16477 * config/i386/predicates.md (movq_parallel): New predicate.
16479 2021-05-13 Alexandre Oliva <oliva@adacore.com>
16481 * targhooks.c (default_zero_call_used_regs): Retry using
16482 successfully-zeroed registers as sources.
16484 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
16486 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
16488 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
16491 * gimple-range.cc (range_of_builtin_call): Skip out on
16492 processing __builtin_clz when varying.
16494 2021-05-12 Tom de Vries <tdevries@suse.de>
16497 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
16498 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
16499 to ptx_version_option.
16500 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
16501 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
16502 (define_insn "nvptx_vote_ballot"): Use sync variant for
16504 * config/nvptx/nvptx.opt (ptx_version): Add enum.
16505 (mptx): Add option.
16506 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
16508 2021-05-12 Richard Biener <rguenther@suse.de>
16510 PR tree-optimization/100566
16511 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
16512 allow_back for all edge queries.
16514 2021-05-12 liuhongt <hongtao.liu@intel.com>
16517 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
16518 splitters for pblendvb of NOT mask register.
16520 2021-05-12 Richard Biener <rguenther@suse.de>
16522 PR tree-optimization/100519
16523 * tree-ssa-reassoc.c (can_associate_p): Split into...
16524 (can_associate_op_p): ... this
16525 (can_associate_type_p): ... and this.
16526 (is_reassociable_op): Call can_associate_op_p.
16527 (break_up_subtract_bb): Call the appropriate predicates.
16528 (reassociate_bb): Likewise.
16530 2021-05-12 Martin Liska <mliska@suse.cz>
16532 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
16533 (run_gcc): Use -flto argument detection for merged
16536 2021-05-12 Martin Liska <mliska@suse.cz>
16538 * lto-wrapper.c (print_lto_docs_link): New function.
16539 (run_gcc): Print warning about missing job server detection
16540 after we know NR of partitions. Do the same for -flto{,=1}.
16541 * opts.c (get_option_html_page): Support -flto option.
16543 2021-05-12 Martin Liska <mliska@suse.cz>
16545 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
16547 (append_option): Remove.
16548 (find_option): Rework to use the vector type.
16549 (remove_option): Remove.
16550 (merge_and_complain): Use vectors for cl_decoded_option data
16552 (append_compiler_options): Likewise.
16553 (append_diag_options): Likewise.
16554 (append_linker_options): Likewise.
16555 (append_offload_options): Likewise.
16556 (compile_offload_image): Likewise.
16557 (compile_images_for_offload_targets): Likewise.
16558 (find_and_merge_options): Likewise.
16559 (run_gcc): Likewise.
16561 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
16564 * dwarf2out.c (dwarf2out_finish): Set
16565 have_multiple_function_sections with multi-range text_section.
16567 2021-05-12 Martin Liska <mliska@suse.cz>
16569 PR bootstrap/100560
16570 * Makefile.in: Remove version.h from linker command line.
16572 2021-05-12 Richard Biener <rguenther@suse.de>
16574 PR middle-end/100547
16575 * rtl.h (rtvec_alloc): Make argument size_t.
16576 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
16578 2021-05-12 Jakub Jelinek <jakub@redhat.com>
16580 PR middle-end/100508
16581 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
16582 type, don't reuse DECL_RTL if it has different mode, instead force
16583 creation of a new DEBUG_EXPR.
16585 2021-05-12 Jakub Jelinek <jakub@redhat.com>
16586 Marc Glisse <marc.glisse@inria.fr>
16588 PR tree-optimization/94589
16589 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
16590 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
16592 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
16595 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
16596 * config/i386/mmx.md (MMXMODE124): New mode iterator.
16598 (mmxintvecmode): New mode attribute.
16599 (mmxintvecmodelower): Ditto.
16600 (*mmx_maskcmpv2sf3_comm): New insn pattern.
16601 (*mmx_maskcmpv2sf3): Ditto.
16602 (vec_cmpv2sfv2si): New expander.
16603 (vcond<V2FI:mode>v2si): Ditto.
16604 (mmx_vlendvps): New insn pattern.
16605 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
16606 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
16607 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
16609 2021-05-11 Martin Sebor <msebor@redhat.com>
16611 PR middle-end/21433
16612 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
16614 2021-05-11 Richard Biener <rguenther@suse.de>
16616 * gimple-fold.c (gimple_fold_call): Do not call
16617 maybe_fold_reference on call arguments or the static chain.
16618 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
16621 2021-05-11 Martin Liska <mliska@suse.cz>
16623 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
16624 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
16625 (DEF_HSAIL_SAT_BUILTIN): Likewise.
16626 (DEF_HSAIL_INTR_BUILTIN): Likewise.
16627 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
16628 * doc/frontends.texi: Remove BRIG.
16629 * doc/install.texi: Likewise.
16630 * doc/invoke.texi: Likewise.
16631 * doc/standards.texi: Likewise.
16632 * brig-builtins.def: Removed.
16633 * brig/ChangeLog: Removed.
16634 * brig/Make-lang.in: Removed.
16635 * brig/brig-builtins.h: Removed.
16636 * brig/brig-c.h: Removed.
16637 * brig/brig-lang.c: Removed.
16638 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
16639 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
16640 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
16641 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
16642 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
16643 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
16644 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
16645 * brig/brigfrontend/brig-comment-handler.cc: Removed.
16646 * brig/brigfrontend/brig-control-handler.cc: Removed.
16647 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
16648 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
16649 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
16650 * brig/brigfrontend/brig-function-handler.cc: Removed.
16651 * brig/brigfrontend/brig-function.cc: Removed.
16652 * brig/brigfrontend/brig-function.h: Removed.
16653 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
16654 * brig/brigfrontend/brig-label-handler.cc: Removed.
16655 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
16656 * brig/brigfrontend/brig-machine.c: Removed.
16657 * brig/brigfrontend/brig-machine.h: Removed.
16658 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
16659 * brig/brigfrontend/brig-module-handler.cc: Removed.
16660 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
16661 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
16662 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
16663 * brig/brigfrontend/brig-to-generic.cc: Removed.
16664 * brig/brigfrontend/brig-to-generic.h: Removed.
16665 * brig/brigfrontend/brig-util.cc: Removed.
16666 * brig/brigfrontend/brig-util.h: Removed.
16667 * brig/brigfrontend/brig-variable-handler.cc: Removed.
16668 * brig/brigfrontend/hsa-brig-format.h: Removed.
16669 * brig/brigfrontend/phsa.h: Removed.
16670 * brig/brigspec.c: Removed.
16671 * brig/config-lang.in: Removed.
16672 * brig/gccbrig.texi: Removed.
16673 * brig/lang-specs.h: Removed.
16674 * brig/lang.opt: Removed.
16676 2021-05-11 Richard Biener <rguenther@suse.de>
16679 * ipa-param-manipulation.c
16680 (ipa_param_body_adjustments::modify_call_stmt): Avoid
16681 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
16682 via gimple_call_lhs_ptr.
16684 2021-05-11 Alex Coplan <alex.coplan@arm.com>
16687 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
16688 Avoid emitting CFA adjusts on the sp if we have the fp.
16690 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
16692 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
16693 (VMULD): New iterator.
16694 (VCOND): Handle V4HF and V8HF.
16695 (VCONQ): Fix entry for V2SF.
16696 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
16697 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
16698 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
16699 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
16700 Use a 128-bit vector mode for the indexed operand. Use stype for
16701 the scheduling type.
16703 2021-05-11 Richard Biener <rguenther@suse.de>
16705 * gimple-fold.c (maybe_fold_reference): Only return
16706 is_gimple_min_invariant values.
16708 2021-05-11 Richard Biener <rguenther@suse.de>
16710 PR middle-end/100509
16711 * gimple-fold.c (fold_gimple_assign): Only call
16712 get_symbol_constant_value on register type symbols.
16714 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
16715 Joe Ramsay <joe.ramsay@arm.com>
16718 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
16719 (__arm_vcmpneq): Remove duplicate definition.
16720 (__arm_vstrwq_scatter_offset_p): Likewise.
16721 (__arm_vmaxq_x): Likewise.
16722 (__arm_vmlsdavaq): Likewise.
16723 (__arm_vmlsdavaxq): Likewise.
16724 (__arm_vmlsdavq_p): Likewise.
16725 (__arm_vmlsdavxq_p): Likewise.
16726 (__arm_vrmlaldavhaq): Likewise.
16727 (__arm_vstrbq_p): Likewise.
16728 (__arm_vstrbq_scatter_offset): Likewise.
16729 (__arm_vstrbq_scatter_offset_p): Likewise.
16730 (__arm_vstrdq_scatter_offset): Likewise.
16731 (__arm_vstrdq_scatter_offset_p): Likewise.
16732 (__arm_vstrdq_scatter_shifted_offset): Likewise.
16733 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
16735 2021-05-11 Jakub Jelinek <jakub@redhat.com>
16737 PR middle-end/100471
16738 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
16739 is 0, bypass the reduction loop including
16740 GOMP_taskgroup_reduction_unregister call.
16742 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
16744 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
16745 costing_for_scalar.
16746 (rs6000_density_test): Early return if costing_for_scalar is true.
16747 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
16749 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
16751 * doc/tm.texi: Regenerated.
16752 * target.def (init_cost): Add new parameter costing_for_scalar.
16753 * targhooks.c (default_init_cost): Adjust for new parameter.
16754 * targhooks.h (default_init_cost): Likewise.
16755 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
16756 (vect_compute_single_scalar_iteration_cost): Likewise.
16757 (vect_analyze_loop_2): Likewise.
16758 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
16759 (vect_bb_vectorization_profitable_p): Likewise.
16760 * tree-vectorizer.h (init_cost): Likewise.
16761 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
16762 * config/i386/i386.c (ix86_init_cost): Likewise.
16763 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
16765 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
16767 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
16768 vect_nonmem and moved into...
16769 (struct rs6000_cost_data): ...here.
16770 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
16771 (rs6000_add_stmt_cost): Likewise.
16772 (rs6000_finish_cost): Likewise.
16774 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
16776 * range-op.cc (get_bool_state): Adjust head comment.
16777 (operator_not_equal::op1_range): Fix comment.
16778 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
16780 2021-05-10 Martin Sebor <msebor@redhat.com>
16782 PR middle-end/100425
16783 PR middle-end/100510
16784 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
16785 (pass_walloca::xlimit_certain_p): ...to this.
16786 (pass_walloca::gate): Execute for any kind of handled warning.
16787 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
16788 warnings when xlimit_certain_p is set.
16790 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
16792 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
16793 Return ALTIVEC_REGS if that is best_class.
16794 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
16796 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
16798 * config/arm/arm.h (CPP_SPEC): Remove error message about
16801 2021-05-10 Martin Jambor <mjambor@suse.cz>
16803 * ipa-prop.h (IPA_NODE_REF): Removed.
16804 (IPA_NODE_REF_GET_CREATE): Likewise.
16805 (IPA_EDGE_REF): Likewise.
16806 (IPA_EDGE_REF_GET_CREATE): Likewise.
16807 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
16808 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
16809 use of ipa_node_params_sum.
16810 (ipcp_versionable_function_p): Likewise.
16811 (push_node_to_stack): Likewise.
16812 (pop_node_from_stack): Likewise.
16813 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
16814 direct use of ipa_node_params_sum.
16815 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
16816 ipa_node_params_sum.
16817 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
16819 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
16820 use of ipa_node_params_sum.
16821 (self_recursively_generated_p): Likewise.
16822 (propagate_scalar_across_jump_function): Likewise.
16823 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
16824 direct use of ipa_edge_args_sum, moved the lookup after the early
16825 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
16826 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
16827 direct uses of ipa_node_params_sum.
16828 (propagate_vr_across_jump_function): Likewise.
16829 (propagate_aggregate_lattice): Likewise.
16830 (propagate_aggs_across_jump_function): Likewise.
16831 (propagate_constants_across_call): Likewise, also replaced
16832 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
16833 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
16834 of ipa_node_params_sum.
16835 (estimate_local_effects): Likewise.
16836 (add_all_node_vals_to_toposort): Likewise.
16837 (propagate_constants_topo): Likewise.
16838 (ipcp_propagate_stage): Likewise.
16839 (ipcp_discover_new_direct_edges): Likewise.
16840 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
16841 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
16842 (get_info_about_necessary_edges): Likewise.
16843 (want_remove_some_param_p): Likewise.
16844 (create_specialized_node): Likewise.
16845 (self_recursive_pass_through_p): Likewise.
16846 (self_recursive_agg_pass_through_p): Likewise.
16847 (find_more_scalar_values_for_callers_subset): Likewise and also
16848 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
16849 case replacing two of those with a single query.
16850 (find_more_contexts_for_caller_subset): Likewise for the
16851 ipa_polymorphic_call_context overload.
16852 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
16853 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
16854 ipa_node_params_sum.
16855 (find_aggregate_values_for_callers_subset): Likewise, also reusing
16856 results of ipa_edge_args_sum->get.
16857 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
16858 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
16859 direct use of ipa_edge_args_sum.
16860 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
16861 summary query after the early exit and reused the result later.
16862 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
16863 ipa_node_params_sum.
16864 (decide_whether_version_node): Likewise. Removed re-querying for
16865 summaries after cloning.
16866 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
16867 ipa_node_params_sum.
16868 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
16870 (identify_dead_nodes): Likewise.
16871 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
16872 ipa_node_params_sum.
16873 (ipcp_store_vr_results): Likewise.
16874 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
16875 (ipa_fn_summary_t::duplicate): Likewise.
16876 (analyze_function_body): Likewise.
16877 (estimate_calls_size_and_time): Likewise.
16878 (ipa_cached_call_context::duplicate_from): Likewise.
16879 (ipa_call_context::equal_to): Likewise.
16880 (remap_edge_params): Likewise.
16881 (ipa_merge_fn_summary_after_inlining): Likewise.
16882 (inline_read_section): Likewise.
16883 * ipa-icf.c (sem_function::param_used_p): Likewise.
16884 * ipa-modref.c (compute_parm_map): Likewise.
16885 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
16887 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
16888 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
16890 * ipa-profile.c (check_argument_count): Likewise.
16891 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
16892 with a direct use of ipa_node_params_sum.
16893 (ipa_initialize_node_params): Likewise.
16894 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
16895 direct use of ipa_edge_args_sum and reused the query result.
16896 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
16897 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
16898 direct use of ipa_edge_args_sum.
16899 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
16900 ipa_node_params_sum and reused the result of the query.
16901 (ipa_analyze_node): Likewise.
16902 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
16903 of ipa_node_params_sum.
16904 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
16905 direct uses of ipa_edge_args_sum.
16906 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
16907 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
16908 direct use of ipa_edge_args_sum. Removed superficial re-querying the
16910 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
16911 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
16913 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
16914 direct use of ipa_edge_args_sum.
16915 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
16916 use of ipa_node_params_sum.
16917 (ipa_print_node_params): Likewise.
16918 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
16919 direct uses of ipa_edge_args_sum.
16920 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
16922 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
16923 ipa_node_params_sum.
16924 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
16925 scopes where it is used.
16927 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
16929 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
16930 <case E_V2SImode>: Force op_true to register.
16932 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
16934 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
16935 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
16936 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
16938 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
16939 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
16940 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
16941 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
16942 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
16943 (mve_vcmpneq_n_f<mode>): Remove.
16944 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
16945 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
16946 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
16948 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
16950 * config/arm/iterators.md (MVE_COMPARISONS): New.
16952 (mve_cmp_type): New.
16953 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
16955 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
16956 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
16957 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
16958 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
16959 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
16960 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
16961 (mve_vcmpneq_n_<mode>): Remove.
16963 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
16965 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
16966 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
16967 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
16970 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
16972 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
16973 (vcmpneq_n_u): Likewise.
16974 (vcmpeqq_u,): Likewise.
16975 (vcmpeqq_n_u): Likewise.
16976 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
16977 VCMPEQQ_N_U and VCMPNEQ_N_U.
16978 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
16979 (mve_vcmpeqq_n): Likewise.
16980 (mve_vcmpeqq): Likewise.
16981 (mve_vcmpneq_n): Likewise.
16983 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
16985 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
16986 the 's' version of the builtin.
16988 2021-05-10 Richard Biener <rguenther@suse.de>
16990 PR tree-optimization/100492
16991 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
16992 Find nothing when the loop contains an irreducible region.
16994 2021-05-10 Richard Biener <rguenther@suse.de>
16996 PR middle-end/100464
16998 * gimple-fold.c (canonicalize_constructor_val): Do not set
17001 2021-05-10 Richard Biener <rguenther@suse.de>
17003 PR tree-optimization/100434
17004 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
17006 (dse_optimize_stmt): Handle call LHS by dropping the
17007 LHS or the whole call if it doesn't have other
17009 (pass_dse::execute): Adjust.
17011 2021-05-10 Martin Liska <mliska@suse.cz>
17013 * Makefile.in: Add missing genversion rule.
17015 2021-05-10 Alex Coplan <alex.coplan@arm.com>
17018 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
17019 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
17021 2021-05-10 Martin Liska <mliska@suse.cz>
17023 * builtins.c (is_builtin_name): Use startswith
17024 function instead of strncmp.
17025 * collect2.c (main): Likewise.
17026 (has_lto_section): Likewise.
17027 (scan_libraries): Likewise.
17028 * coverage.c (coverage_checksum_string): Likewise.
17029 (coverage_init): Likewise.
17030 * dwarf2out.c (is_cxx): Likewise.
17031 (gen_compile_unit_die): Likewise.
17032 * gcc-ar.c (main): Likewise.
17033 * gcc.c (init_spec): Likewise.
17034 (read_specs): Likewise.
17035 (execute): Likewise.
17036 (check_live_switch): Likewise.
17037 * genattrtab.c (write_attr_case): Likewise.
17038 (IS_ATTR_GROUP): Likewise.
17039 * gencfn-macros.c (main): Likewise.
17040 * gengtype.c (type_for_name): Likewise.
17041 (gen_rtx_next): Likewise.
17042 (get_file_langdir): Likewise.
17043 (write_local): Likewise.
17044 * genmatch.c (get_operator): Likewise.
17045 (get_operand_type): Likewise.
17046 (expr::gen_transform): Likewise.
17047 * genoutput.c (validate_optab_operands): Likewise.
17048 * incpath.c (add_sysroot_to_chain): Likewise.
17049 * langhooks.c (lang_GNU_C): Likewise.
17050 (lang_GNU_CXX): Likewise.
17051 (lang_GNU_Fortran): Likewise.
17052 (lang_GNU_OBJC): Likewise.
17053 * lto-wrapper.c (run_gcc): Likewise.
17054 * omp-general.c (omp_max_simt_vf): Likewise.
17055 * omp-low.c (omp_runtime_api_call): Likewise.
17056 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
17057 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
17058 * real.c (real_from_string): Likewise.
17059 * selftest.c (assert_str_startswith): Likewise.
17060 * timevar.c (timer::validate_phases): Likewise.
17061 * tree.c (get_file_function_name): Likewise.
17062 * ubsan.c (ubsan_use_new_style_p): Likewise.
17063 * varasm.c (default_function_rodata_section): Likewise.
17064 (incorporeal_function_p): Likewise.
17065 (default_section_type_flags): Likewise.
17066 * system.h (startswith): Define startswith.
17068 2021-05-10 Martin Liska <mliska@suse.cz>
17070 * bitmap.h (class auto_bitmap): Remove
17071 __cplusplus >= 201103.
17072 * config/aarch64/aarch64.c: Likewise.
17073 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
17075 * sbitmap.h: Likewise.
17077 2021-05-10 Martin Liska <mliska@suse.cz>
17079 * Makefile.in: Rename gcov-iov to genversion and depend
17080 on version.h (instead of gcov-iov.h).
17081 * gcov-io.h: Include version.h instread of gcov-iov.h.
17082 * gengtype-state.c (read_state_version): Likewise.
17083 * gcov-iov.c: Moved to...
17084 * genversion.c: ...here.
17085 * lto-streamer.h (LTO_major_version): Define it with
17087 * version.c: Removed.
17088 * version.h: Removed.
17090 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
17092 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
17093 * config/arc/simdext.md (VCT): Add predicates for iterator
17096 (voptab): Likewise.
17097 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
17098 (<voptab>v2si3): New patterns.
17100 (reduc_plus_scal_v4hi): Likewise.
17101 (reduc_plus_scal_v2si): Likewise.
17102 (vec_duplicatev2si): Likewise.
17103 (vec_duplicatev4hi): Likewise.
17105 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
17107 * config/arc/simdext.md: Format and cleanup file.
17109 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
17111 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
17112 only when munaligned-access option is on.
17113 (movmisalign<mode>): Likewise.
17115 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
17117 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
17119 * config/arc/arc.c (arc_reorg): Remove underscore from string.
17121 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
17123 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
17124 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
17125 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
17126 (norm_f): Likewise.
17129 (clzsi2): Use fls instruction when available.
17130 (arc_clzsi2): Likewise.
17132 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
17134 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
17136 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
17138 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
17140 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
17142 PR middle-end/100467
17143 * toplev.c (compile_file): Call insn_locations_init before
17144 targetm.asm_out.code_end.
17146 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
17149 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
17151 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
17153 2021-05-07 Jakub Jelinek <jakub@redhat.com>
17154 Andrew Stubbs <amd@codesourcery.com>
17157 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
17158 emit_move_insn operands.
17160 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
17162 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
17163 location for the outgoing edges of an empty block.
17164 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
17165 type by means of the get_array_descr_info langhook, if it is set and
17166 returns true. Remove obsolete code dealing with unnamed subtypes.
17168 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
17170 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
17171 (sbr_vector): Renamed from ssa_block_cache.
17172 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
17173 (ssa_block_ranges::~ssa_block_ranges): Remove.
17174 (sbr_vector::set_bb_range): Use varying and undefined cached values.
17175 (ssa_block_ranges::set_bb_varying): Remove.
17176 (sbr_vector::get_bb_range): Adjust assert.
17177 (sbr_vector::bb_range_p): Adjust assert.
17178 (~block_range_cache): No freeing loop required.
17179 (block_range_cache::get_block_ranges): Remove.
17180 (block_range_cache::set_bb_range): Inline get_block_ranges.
17181 (block_range_cache::set_bb_varying): Remove.
17182 * gimple-range-cache.h (set_bb_varying): Remove prototype.
17183 * value-range.h (irange_allocator::get_memory): New.
17185 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
17187 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
17188 dominator tree is available and requested.
17189 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
17190 (ranger_cache::fill_block_cache): Don't search dom tree here either.
17191 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
17193 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
17195 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
17196 only PHI nodes better.
17198 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
17200 * gimple-range-edge.h (gimple_outgoing_range): Rename from
17202 (gcond_edge_range): Export prototype.
17203 * gimple-range-edge.cc (gcond_edge_range): New.
17204 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
17205 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
17207 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
17209 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
17210 default range into a temp and allocate only what is needed.
17212 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
17214 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
17216 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
17218 * gimple-range.h (gimple_range_global): Pick up parameter initial
17219 values, and use-before defined locals are UNDEFINED.
17221 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
17223 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
17225 * tree.h (reverse_storage_order_for_component_p): Return false if
17226 the type is a pointer.
17228 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
17230 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
17232 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
17235 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
17236 Handle V8QI, V4HI and V2SI modes.
17237 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
17238 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
17239 * config/i386/i386.md (unspec): ... here.
17241 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
17242 Tom de Vries <tdevries@suse.de>
17244 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
17245 a truth_value_p reduction variable is nonintegral.
17247 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
17250 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
17251 Return false for mode sizes < 16.
17253 2021-05-07 Jakub Jelinek <jakub@redhat.com>
17256 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
17258 2021-05-06 Martin Jambor <mjambor@suse.cz>
17260 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
17261 when there is no function summary.
17262 (ipa_sra_summarize_function): produce edge summaries even when
17265 2021-05-06 Tom Tromey <tom@tromey.com>
17267 * godump.c (string_hash_eq): Remove.
17268 (go_finish): Use htab_eq_string.
17270 2021-05-06 Tom Tromey <tom@tromey.com>
17272 * gengtype-state.c (read_state): Use htab_eq_string.
17273 (string_eq): Remove.
17275 2021-05-06 Tom Tromey <tom@tromey.com>
17277 * gensupport.c (htab_eq_string): Remove.
17279 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
17282 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
17283 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
17284 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
17285 set_ignored_loc callbacks.
17286 * debug.c (do_nothing_debug_hooks): Likewise.
17287 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17288 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
17289 (in_text_section_p, last_text_label, last_cold_label,
17290 switch_text_ranges, switch_cold_ranges): New data items.
17291 (dwarf2out_note_section_used): Remove.
17292 (dwarf2out_begin_prologue): Set fde->ignored_debug and
17294 (mark_ignored_debug_section): New helper function.
17295 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
17296 mark_ignored_debug_section.
17297 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
17298 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
17299 (size_of_aranges): Adjust formula for multi-part text ranges size.
17300 (output_aranges): Output multi-part text ranges.
17301 (dwarf2out_set_ignored_loc): New callback function.
17302 (dwarf2out_finish): Output multi-part text ranges.
17303 (dwarf2out_c_finalize): Clear new data items.
17304 * final.c (final_start_function_1): Call set_ignored_loc callback.
17305 (final_scan_insn_1): Likewise.
17306 * ggc-page.c (gt_ggc_mx): New helper function.
17307 * stringpool.c (gt_pch_nx): Likewise.
17309 2021-05-06 Richard Biener <rguenther@suse.de>
17311 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
17312 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
17313 (TV_TREE_INTO_SSA): New.
17314 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
17315 (rewrite_blocks): Likewise.
17316 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
17318 2021-05-06 Jakub Jelinek <jakub@redhat.com>
17320 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
17321 abs_replacement, xor_replacement,
17322 cond_removal_in_popcount_clz_ctz_pattern,
17323 replace_phi_edge_with_variable): Change type of phi argument from
17324 gimple * to gphi *.
17326 2021-05-06 Richard Biener <rguenther@suse.de>
17328 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
17329 Output an opt-info message.
17330 (do_split_loop_on_cond): Likewise.
17331 (tree_ssa_split_loops): Update SSA form here.
17333 2021-05-06 Richard Biener <rguenther@suse.de>
17335 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
17336 return variable removal.
17338 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
17340 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
17341 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
17342 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
17344 * config/s390/s390.c (s390_const_operand_ok): Remove unused
17347 2021-05-06 Jakub Jelinek <jakub@redhat.com>
17349 PR tree-optimization/94589
17350 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
17351 spaceship_replacement.
17352 (cond_only_block_p, spaceship_replacement): New functions.
17354 2021-05-06 Richard Biener <rguenther@suse.de>
17357 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
17358 dealing with a debug use and only query existing addresses
17360 (lower_emutls_1): Avoid splitting out addresses for debug
17361 stmts, reset the debug stmt when we fail to find existing
17363 (lower_emutls_phi_arg): Set wi.stmt.
17365 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
17368 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
17369 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
17370 (stack_protect_test): Use cbranch helper.
17372 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
17375 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
17376 always return the establisher frame for __builtin_frame_address (0).
17378 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
17381 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
17382 (ix86_cpu_model_var): Likewise.
17383 (ix86_cpu_features2_type_node): Likewise.
17384 (ix86_cpu_features2_var): Likewise.
17385 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
17388 2021-05-05 Martin Sebor <msebor@redhat.com>
17390 * passes.def (pass_warn_printf): Run after SSA.
17392 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17394 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
17395 * config/arm/predicates.md (minus_one_operand): New predicate.
17397 2021-05-05 Jeff Law <jlaw@tachyum.com>
17399 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
17401 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
17403 PR rtl-optimization/100263
17404 * postreload.c (move2add_valid_value_p): Ensure register can
17407 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
17409 PR rtl-optimization/100411
17410 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
17411 and beginning of function markers.
17413 2021-05-05 Jeff Law <jlaw@tachyum.com>
17415 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
17416 * config/cr16/cr16.c (notice_update_cc): Remove.
17417 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
17419 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
17422 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
17423 Handle V8QI, V4HI and V2SI modes.
17424 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
17425 (ix86_build_signbit_mask): Ditto.
17426 * config/i386/mmx.md (MMXMODE14): New mode iterator.
17427 (<smaxmin:code><MMXMODE14:mode>3): New expander.
17428 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
17429 (<umaxmin:code><MMXMODE24:mode>3): New expander.
17430 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
17431 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
17432 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
17433 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
17434 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
17435 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
17437 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
17439 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
17440 not expand the VALUE_EXPR of variables put in the non-local frame.
17441 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
17442 to be ignored for debug info, ensure its variable offsets are not.
17444 2021-05-05 Richard Biener <rguenther@suse.de>
17446 PR tree-optimization/79333
17447 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
17448 Fold stmt following SSA edges.
17450 2021-05-05 Richard Biener <rguenther@suse.de>
17452 PR middle-end/100394
17453 * calls.c (expand_call): Preserve possibly throwing calls.
17454 * cfgexpand.c (expand_call_stmt): When a call can throw signal
17455 RTL expansion there are side-effects.
17456 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
17457 mark all possibly throwing stmts necessary unless we can elide
17459 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
17460 -fdelete-dead-exceptions.
17461 * tree.h (DECL_PURE_P): Add note about exceptions.
17463 2021-05-05 Alexandre Oliva <oliva@adacore.com>
17465 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
17468 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
17470 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
17471 get_fnname_from_decl for name of thunk.
17472 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
17473 and ASM_OUTPUT_LABEL.
17474 (rs6000_xcoff_declare_function_name): Use assemble_name and
17476 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
17477 (rs6000_xcoff_encode_section_info): Don't add mapping class
17478 for aliases. Always add [DS] mapping class to primary
17480 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
17482 2021-05-04 Martin Sebor <msebor@redhat.com>
17484 PR middle-end/100307
17485 * builtins.c (compute_objsize_r): Clear base0 for pointers.
17487 2021-05-04 Jeff Law <jlaw@tachyum.com>
17489 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
17491 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
17493 * caller-save.c: Remove CC0.
17494 * cfgcleanup.c: Remove CC0.
17495 * cfgrtl.c: Remove CC0.
17496 * combine.c: Remove CC0.
17497 * compare-elim.c: Remove CC0.
17498 * conditions.h: Remove CC0.
17499 * config/h8300/h8300.h: Remove CC0.
17500 * config/h8300/h8300-protos.h: Remove CC0.
17501 * config/h8300/peepholes.md: Remove CC0.
17502 * config/i386/x86-tune-sched.c: Remove CC0.
17503 * config/m68k/m68k.c: Remove CC0.
17504 * config/rl78/rl78.c: Remove CC0.
17505 * config/sparc/sparc.c: Remove CC0.
17506 * config/xtensa/xtensa.c: Remove CC0.
17507 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
17508 RTL where that is used as a placeholder only.
17509 * cprop.c: Remove CC0.
17510 * cse.c: Remove CC0.
17511 * cselib.c: Remove CC0.
17512 * df-problems.c: Remove CC0.
17513 * df-scan.c: Remove CC0.
17514 * doc/md.texi: Remove CC0. Adjust an example.
17515 * doc/rtl.texi: Remove CC0. Adjust an example.
17516 * doc/tm.texi: Regenerate.
17517 * doc/tm.texi.in: Remove CC0.
17518 * emit-rtl.c: Remove CC0.
17519 * final.c: Remove CC0.
17520 * fwprop.c: Remove CC0.
17521 * gcse-common.c: Remove CC0.
17522 * gcse.c: Remove CC0.
17523 * genattrtab.c: Remove CC0.
17524 * genconfig.c: Remove CC0.
17525 * genemit.c: Remove CC0.
17526 * genextract.c: Remove CC0.
17527 * gengenrtl.c: Remove CC0.
17528 * genrecog.c: Remove CC0.
17529 * haifa-sched.c: Remove CC0.
17530 * ifcvt.c: Remove CC0.
17531 * ira-costs.c: Remove CC0.
17532 * ira.c: Remove CC0.
17533 * jump.c: Remove CC0.
17534 * loop-invariant.c: Remove CC0.
17535 * lra-constraints.c: Remove CC0.
17536 * lra-eliminations.c: Remove CC0.
17537 * optabs.c: Remove CC0.
17538 * postreload-gcse.c: Remove CC0.
17539 * postreload.c: Remove CC0.
17540 * print-rtl.c: Remove CC0.
17541 * read-rtl-function.c: Remove CC0.
17542 * reg-notes.def: Remove CC0.
17543 * reg-stack.c: Remove CC0.
17544 * reginfo.c: Remove CC0.
17545 * regrename.c: Remove CC0.
17546 * reload.c: Remove CC0.
17547 * reload1.c: Remove CC0.
17548 * reorg.c: Remove CC0.
17549 * resource.c: Remove CC0.
17550 * rtl.c: Remove CC0.
17551 * rtl.def: Remove CC0.
17552 * rtl.h: Remove CC0.
17553 * rtlanal.c: Remove CC0.
17554 * sched-deps.c: Remove CC0.
17555 * sched-rgn.c: Remove CC0.
17556 * shrink-wrap.c: Remove CC0.
17557 * simplify-rtx.c: Remove CC0.
17558 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
17559 CC_STATUS_MDEP, and CC_STATUS.
17560 * target.def: Remove CC0.
17561 * valtrack.c: Remove CC0.
17562 * var-tracking.c: Remove CC0.
17564 2021-05-04 Richard Biener <rguenther@suse.de>
17566 PR tree-optimization/100414
17567 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
17569 (tree_ssa_phiopt_worker): But unconditionally here.
17571 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
17573 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
17574 && and || with floating-point and complex arguments.
17576 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
17578 * tree-inline.c (insert_debug_decl_map): Delete.
17579 (copy_debug_stmt): Minor tweak.
17580 (setup_one_parameter): Do not use a variable if the value is either
17581 a read-only DECL or a non-addressable local variable in the caller.
17582 In this case, insert the debug-only variable in the map manually.
17583 (expand_call_inline): Do not generate a CLOBBER for these values.
17584 * tree-inline.h (debug_map): Minor tweak.
17586 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
17588 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
17589 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
17591 2021-05-04 Richard Biener <rguenther@suse.de>
17593 PR tree-optimization/100329
17594 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
17596 (insert_stmt_after): Assert we're not running into asm goto.
17598 2021-05-04 Richard Biener <rguenther@suse.de>
17600 PR tree-optimization/100398
17601 * tree-ssa-dse.c (pass_dse::execute): Preserve control
17604 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17606 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
17608 2021-05-04 Alexandre Oliva <oliva@adacore.com>
17610 * builtins.c (try_store_by_multiple_pieces): New.
17611 (expand_builtin_memset_args): Use it. If target_char_cast
17612 fails, proceed as for non-constant val. Pass len's ctz to...
17613 * expr.c (clear_storage_hints): ... this. Try store by
17614 multiple pieces after setmem.
17615 (clear_storage): Adjust.
17616 * expr.h (clear_storage_hints): Likewise.
17617 (try_store_by_multiple_pieces): Declare.
17618 * passes.def: Replace the last copy_prop with ccp.
17620 2021-05-03 Tom de Vries <tdevries@suse.de>
17623 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
17626 2021-05-03 Richard Biener <rguenther@suse.de>
17628 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
17630 2021-05-03 Richard Biener <rguenther@suse.de>
17632 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
17633 (dse_dom_walker): Remove.
17634 (dse_dom_walker::dse_optimize_stmt): Rename...
17635 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
17636 (dse_dom_walker::before_dom_children): Inline ...
17637 (pass_dse::execute): ... here. Perform a reverse program
17640 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
17643 * configure: Regenerated.
17645 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
17648 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
17649 (s390_md_asm_adjust): Handle hard registers.
17651 2021-05-03 Jakub Jelinek <jakub@redhat.com>
17653 PR tree-optimization/100382
17654 * tree-ssa-dse.c: Include tree-eh.h.
17655 (dse_dom_walker::before_dom_children): Don't remove stmts if
17656 stmt_unremovable_because_of_non_call_eh_p is true.
17658 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
17660 * varasm.c (compute_reloc_for_var): Split out from...
17661 (get_variable_section): Use it.
17662 * output.h (compute_reloc_for_var): Declare.
17663 * config/rs6000/rs6000-protos.h
17664 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
17666 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
17667 Don't append storage mapping class to symbol.
17668 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
17669 Don't convert TLS BSS to common.
17670 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
17671 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
17673 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
17675 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
17676 If align is 0 from TLS class, use the same rules as varasm.c
17677 If not common, switch to BSS section manually.
17678 If common, emit appropriate comm or lcomm directive.
17679 (rs6000_xcoff_encode_section_info): Add logic to append all
17680 storage mapping classes.
17681 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
17682 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
17683 rs6000_xcoff_asm_output_aligned_decl_common.
17684 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
17685 rs6000_xcoff_asm_output_aligned_decl_common.
17686 (ASM_OUTPUT_TLS_COMMON): Use
17687 rs6000_xcoff_asm_output_aligned_decl_common.
17689 2021-05-02 Jakub Jelinek <jakub@redhat.com>
17692 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
17693 as first argument of pseudo_node_t constructors.
17695 2021-05-02 Jakub Jelinek <jakub@redhat.com>
17698 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
17700 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
17702 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
17703 (gt_pch_nx (int_range<1> *&)): New.
17704 (gt_ggc_mx (int_range<1> *&)): New.
17705 * value-range.h (class irange): Add GTY support for
17708 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
17710 * doc/options.texi (Negative): Change either or to both and.
17712 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
17714 * config/aarch64/aarch64-simd-builtins.def: Add
17715 float_ml[as][q]_laneq builtin generator macros.
17716 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
17717 (aarch64_float_mla_laneq<mode>): Define.
17718 (aarch64_float_mls_laneq<mode>): Define.
17719 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
17720 instead of GCC vector extensions.
17721 (vmlaq_laneq_f32): Likewise.
17722 (vmls_laneq_f32): Likewise.
17723 (vmlsq_laneq_f32): Likewise.
17725 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
17727 * config/aarch64/aarch64-simd-builtins.def: Add
17728 float_ml[as]_lane builtin generator macros.
17729 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
17731 (mul_lane<mode>3): This, and re-order arguments.
17732 (aarch64_float_mla_lane<mode>): Define.
17733 (aarch64_float_mls_lane<mode>): Define.
17734 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
17735 instead of GCC vector extensions.
17736 (vmlaq_lane_f32): Likewise.
17737 (vmls_lane_f32): Likewise.
17738 (vmlsq_lane_f32): Likewise.
17740 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
17742 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
17743 builtin generator macros.
17744 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
17746 (aarch64_float_mls<mode>): Define.
17747 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
17748 instead of relying on GCC vector extensions.
17749 (vmla_f64): Likewise.
17750 (vmlaq_f32): Likewise.
17751 (vmlaq_f64): Likewise.
17752 (vmls_f32): Likewise.
17753 (vmls_f64): Likewise.
17754 (vmlsq_f32): Likewise.
17755 (vmlsq_f64): Likewise.
17756 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
17758 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
17760 * config/aarch64/aarch64-simd-builtins.def: Add
17761 float_ml[as]_n_builtin generator macros.
17762 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
17764 (mul_n<mode>3): This, and re-order arguments.
17765 (aarch64_float_mla_n<mode>): Define.
17766 (aarch64_float_mls_n<mode>): Define.
17767 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
17768 instead of inline asm.
17769 (vmlaq_n_f32): Likewise.
17770 (vmls_n_f32): Likewise.
17771 (vmlsq_n_f32): Likewise.
17773 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
17775 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
17776 builtin generator macros.
17777 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
17778 (aarch64_pmull_hiv16qi_insn): Define.
17779 (aarch64_pmull_hiv16qi): Define.
17780 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
17781 instead of inline asm.
17782 (vmull_p8): Likewise.
17784 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
17786 * config/avr/avr.md: Adjust peepholes to match and
17787 generate parallels with clobber of REG_CC.
17788 (mov<mode>_insn): Rename to mov<mode>_insn_split.
17789 (*mov<mode>_insn): Rename to mov<mode>_insn.
17791 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
17793 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
17794 for VAR_DECLs if -fdata-sections enabled.
17796 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
17798 PR bootstrap/100327
17799 * config/rs6000/rs6000.c
17800 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
17801 (rs6000_libgcc_floating_mode_supported_p): New target hook.
17803 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
17805 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
17807 (class back_threader_registry): ...to here...
17808 (class back_threader_profitability): ...and here...
17809 (thread_jumps::thread_through_all_blocks): Remove argument.
17810 (back_threader_registry::back_threader_registry): New.
17811 (back_threader_registry::~back_threader_registry): New.
17812 (back_threader_registry::thread_through_all_blocks): New.
17813 (thread_jumps::profitable_jump_thread_path): Move from here...
17814 (back_threader_profitability::profitable_path_p): ...to here.
17815 (thread_jumps::find_taken_edge): New.
17816 (thread_jumps::convert_and_register_current_path): Move...
17817 (back_threader_registry::register_path): ...to here.
17818 (thread_jumps::register_jump_thread_path_if_profitable): Move...
17819 (thread_jumps::maybe_register_path): ...to here.
17820 (thread_jumps::handle_phi): Call find_taken_edge and
17821 maybe_register_path.
17822 (thread_jumps::handle_assignment): Same.
17823 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
17824 tree argument to handle_phi and handle_assignment.
17825 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
17826 set of m_speed_p and m_max_threaded_paths.
17827 (pass_thread_jumps::execute): Remove second argument from
17828 find_jump_threads_backwards.
17829 (pass_early_thread_jumps::execute): Same.
17831 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
17833 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
17834 (class dom_opt_dom_walker): Initialize some class variables.
17835 (pass_dominator::execute): Pass evrp_range_analyzer and
17836 dom_jump_threader_simplifier to dom_opt_dom_walker.
17837 Adjust for some functions moving into classes.
17838 (simplify_stmt_for_jump_threading): Adjust and move to...
17839 (jump_threader_simplifier::simplify): ...here.
17840 (dom_opt_dom_walker::before_dom_children): Adjust for
17841 m_evrp_range_analyzer.
17842 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
17843 (test_for_singularity): Place in dom_opt_dom_walker class.
17844 (dom_opt_dom_walker::optimize_stmt): The argument
17845 evrp_range_analyzer is now a class field.
17846 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
17847 (thread_jumps::thread_through_all_blocks): New.
17848 (thread_jumps::convert_and_register_current_path): Use m_registry.
17849 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
17850 being in the threader class.
17851 (pass_early_thread_jumps::execute): Same.
17852 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
17853 (jump_threader::jump_threader): ...here.
17854 (threadedge_finalize_values): Move...
17855 (jump_threader::~jump_threader): ...here.
17856 (jump_threader::remove_jump_threads_including): New.
17857 (jump_threader::thread_through_all_blocks): New.
17858 (record_temporary_equivalences_from_phis): Move...
17859 (jump_threader::record_temporary_equivalences_from_phis): ...here.
17860 (record_temporary_equivalences_from_stmts_at_dest): Move...
17861 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
17863 (simplify_control_stmt_condition_1): Move to jump_threader class.
17864 (simplify_control_stmt_condition): Move...
17865 (jump_threader::simplify_control_stmt_condition): ...here.
17866 (thread_around_empty_blocks): Move...
17867 (jump_threader::thread_around_empty_blocks): ...here.
17868 (thread_through_normal_block): Move...
17869 (jump_threader::thread_through_normal_block): ...here.
17870 (thread_across_edge): Move...
17871 (jump_threader::thread_across_edge): ...here.
17872 (thread_outgoing_edges): Move...
17873 (jump_threader::thread_outgoing_edges): ...here.
17874 * tree-ssa-threadedge.h: Move externally facing functings...
17875 (class jump_threader): ...here...
17876 (class jump_threader_simplifier): ...and here.
17877 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
17878 (jump_thread_path_allocator::jump_thread_path_allocator): New.
17879 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
17880 (jump_thread_path_allocator::allocate_thread_edge): New.
17881 (jump_thread_path_allocator::allocate_thread_path): New.
17882 (jump_thread_path_registry::jump_thread_path_registry): New.
17883 (jump_thread_path_registry::~jump_thread_path_registry): New.
17884 (jump_thread_path_registry::allocate_thread_edge): New.
17885 (jump_thread_path_registry::allocate_thread_path): New.
17886 (dump_jump_thread_path): Make extern.
17887 (debug (const vec<jump_thread_edge *> &path)): New.
17888 (struct removed_edges): Move to tree-ssa-threadupdate.h.
17889 (struct thread_stats_d): Remove.
17890 (remove_ctrl_stmt_and_useless_edges): Make static.
17891 (lookup_redirection_data): Move...
17892 (jump_thread_path_registry::lookup_redirection_data): ...here.
17893 (ssa_redirect_edges): Make static.
17894 (thread_block_1): Move...
17895 (jump_thread_path_registry::thread_block_1): ...here.
17896 (thread_block): Move...
17897 (jump_thread_path_registry::thread_block): ...here.
17898 (thread_through_loop_header): Move...
17899 (jump_thread_path_registry::thread_through_loop_header): ...here.
17900 (mark_threaded_blocks): Move...
17901 (jump_thread_path_registry::mark_threaded_blocks): ...here.
17902 (debug_path): Move...
17903 (jump_thread_path_registry::debug_path): ...here.
17904 (debug_all_paths): Move...
17905 (jump_thread_path_registry::dump): ..here.
17906 (rewire_first_differing_edge): Move...
17907 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
17908 (adjust_paths_after_duplication): Move...
17909 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
17910 (duplicate_thread_path): Move...
17911 (jump_thread_path_registry::duplicate_thread_path): ..here.
17912 (remove_jump_threads_including): Move...
17913 (jump_thread_path_registry::remove_jump_threads_including): ...here.
17914 (thread_through_all_blocks): Move to...
17915 (jump_thread_path_registry::thread_through_all_blocks): ...here.
17916 (delete_jump_thread_path): Remove.
17917 (register_jump_thread): Move...
17918 (jump_thread_path_registry::register_jump_thread): ...here.
17919 * tree-ssa-threadupdate.h: Move externally facing functions...
17920 (class jump_thread_path_allocator): ...here...
17921 (class jump_thread_path_registry): ...and here.
17922 (thread_through_all_blocks): Remove.
17923 (struct removed_edges): New.
17924 (register_jump_thread): Remove.
17925 (remove_jump_threads_including): Remove.
17926 (delete_jump_thread_path): Remove.
17927 (remove_ctrl_stmt_and_useless_edges): Remove.
17928 (free_dom_edge_info): New prototype.
17929 * tree-vrp.c: Remove x_vr_values hack.
17930 (class vrp_jump_threader_simplifier): New.
17931 (vrp_jump_threader_simplifier::simplify): New.
17932 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
17933 Remove m_dummy_cond.
17934 Instantiate m_simplifier and m_threader.
17935 (vrp_jump_threader::thread_through_all_blocks): New.
17936 (vrp_jump_threader::simplify_stmt): Remove.
17937 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
17938 Remove x_vr_values hack.
17939 (execute_vrp): Adjust for thread_through_all_blocks being in a
17942 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
17944 * genflags.c (gen_insn): Print failed expansion string.
17946 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
17948 * expr.c (alignment_for_piecewise_move): Call mode_for_size
17949 without limit to MAX_FIXED_MODE_SIZE.
17951 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
17953 PR middle-end/90773
17954 * builtins.c (builtin_memset_gen_str): Don't use return from
17955 simplify_gen_subreg.
17957 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
17960 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
17961 (*addsi3_carry_zext_0r): Ditto.
17962 (*sub<mode>3_carry_0): Ditto.
17963 (*subsi3_carry_zext_0r): Ditto.
17964 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
17966 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
17967 Also consider ix86_carry_flag_unset_operator to calculate
17968 the cost of adc/sbb insn.
17970 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
17972 PR rtl-optimization/100225
17973 PR rtl-optimization/84878
17974 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
17975 where we have an instruction which touches (writes) any hard
17976 register from df->regular_block_artificial_uses set.
17977 Allow not-single-set instruction only right before basic block
17980 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
17982 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
17984 2021-04-30 LevyHsu <admin@levyhsu.com>
17986 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
17987 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
17988 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
17989 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
17991 2021-04-29 Alexandre Oliva <oliva@adacore.com>
17993 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
17995 2021-04-29 Alexandre Oliva <oliva@adacore.com>
17997 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
17998 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
17999 * config/i386/i386.c: Adjust.
18000 * config/i386/i386.md: Adjust.
18001 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
18002 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18003 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18004 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18005 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18006 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18007 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18008 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18009 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18010 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18011 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
18013 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
18015 * config/i386/i386-expand.c (ix86_expand_int_compare):
18016 Swap operands of GTU and LEU comparison to emit carry flag comparison.
18017 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
18018 predicate to allow more combine opportunities with memory operands.
18019 (*sub<mode>3_carry_0): Ditto.
18021 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
18023 PR rtl-optimization/100303
18024 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
18025 boolean that indicates whether the use will only be used in
18026 debug instructions. Treat it in the same way that existing
18027 cross-EBB debug references would be handled if so.
18028 (function_info::make_uses_available): Likewise.
18029 * rtl-ssa/functions.h (function_info::make_uses_available): Update
18030 prototype accordingly.
18031 (function_info::make_uses_available): Likewise.
18032 * fwprop.c (try_fwprop_subst): Update call accordingly.
18034 2021-04-29 Jeff Law <jlaw@tachyum.com>
18036 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
18039 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
18040 Richard Biener <rguenther@suse.de>
18043 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
18044 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
18045 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
18046 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
18047 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
18048 to PURE_ARGS category.
18049 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18050 Handle PURE_ARGS category.
18051 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
18053 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
18055 * configure.ac: Check for the presence of sys/locking.h header and
18056 for whether _LK_LOCK is supported by _locking.
18057 * configure: Regenerate.
18058 * config.in: Likewise.
18059 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
18060 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
18061 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
18063 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
18065 * config/i386/predicates.md (fcmov_comparison_operator):
18066 Do not check for trivial FP comparison operator.
18067 <case GEU, case LTU>: Allow CCGZmode.
18068 <case GTU, case LEU>: Do not allow CCCmode.
18069 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
18070 (ix86_carry_flag_operator): Match only LTU and UNLT code.
18071 Do not check for trivial FP comparison operator. Allow CCGZmode.
18073 2021-04-29 Tom de Vries <tdevries@suse.de>
18075 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
18076 fd->loop.step by either step or orig_step.
18078 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
18080 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
18081 (load_got_register): Do the PIC dance here.
18082 (sparc_legitimize_tls_address): Simplify.
18083 (sparc_emit_probe_stack_range): Likewise.
18084 (sparc32_initialize_trampoline): Likewise.
18085 (sparc64_initialize_trampoline): Likewise.
18086 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
18087 (probe_stack_range<P:mode>): Likewise.
18088 (flush<P:mode>): Likewise.
18089 (tgd_hi22<P:mode>): Likewise.
18090 (tgd_lo10<P:mode>): Likewise.
18091 (tgd_add<P:mode>): Likewise.
18092 (tgd_call<P:mode>): Likewise.
18093 (tldm_hi22<P:mode>): Likewise.
18094 (tldm_lo10<P:mode>): Likewise.
18095 (tldm_add<P:mode>): Likewise.
18096 (tldm_call<P:mode>): Likewise.
18097 (tldo_hix22<P:mode>): Likewise.
18098 (tldo_lox10<P:mode>): Likewise.
18099 (tldo_add<P:mode>): Likewise.
18100 (tie_hi22<P:mode>): Likewise.
18101 (tie_lo10<P:mode>): Likewise.
18102 (tie_add<P:mode>): Likewise.
18103 (tle_hix22<P:mode>): Likewise.
18104 (tle_lox10<P:mode>): Likewise.
18105 (stack_protect_setsi): Rename to...
18106 (stack_protect_set32): ...this.
18107 (stack_protect_setdi): Rename to...
18108 (stack_protect_set64): ...this.
18109 (stack_protect_set): Adjust calls to above.
18110 (stack_protect_testsi): Rename to...
18111 (stack_protect_test32): ...this.
18112 (stack_protect_testdi): Rename to...
18113 (stack_protect_test64): ...this.
18114 (stack_protect_test): Adjust calls to above.
18116 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
18118 PR middle-end/90773
18119 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
18120 (builtin_strncpy_read_str): Likewise.
18121 (builtin_memset_read_str): Add an argument for the previous RTL
18122 information and generate the new RTL from the previous RTL info.
18123 (builtin_memset_gen_str): Likewise.
18124 * builtins.h (builtin_strncpy_read_str): Update the prototype.
18125 (builtin_memset_read_str): Likewise.
18126 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
18127 returns true, round up size and alignment to the widest integer
18128 mode for maximum size.
18129 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
18130 and pass it to m_constfn.
18131 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
18132 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
18133 initialize m_push. Initialize m_overlap_op_by_pieces with
18134 targetm.overlap_op_by_pieces_p ().
18135 (op_by_pieces_d::run): Pass the previous RTL information to
18136 pieces_addr::adjust and generate overlapping operations if
18137 m_overlap_op_by_pieces is true.
18139 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
18141 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
18143 (can_store_by_pieces): Use by_pieces_constfn on constfun.
18144 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
18145 for op_by_pieces_d change.
18146 (clear_by_pieces_1): Add a dummy argument.
18147 (clear_by_pieces): Updated for op_by_pieces_d change.
18148 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
18149 (string_cst_read_str): Add a dummy argument.
18150 * expr.h (by_pieces_constfn): Add a dummy argument.
18151 (by_pieces_prev): New.
18152 * target.def (overlap_op_by_pieces_p): New target hook.
18153 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
18154 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
18155 * doc/tm.texi: Regenerated.
18157 2021-04-29 Richard Biener <rguenther@suse.de>
18159 PR tree-optimization/100253
18160 * tree-vect-stmts.c (vectorizable_load): Do not assume
18161 element alignment when DR_MISALIGNMENT is -1.
18162 (vectorizable_store): Likewise.
18164 2021-04-29 Jakub Jelinek <jakub@redhat.com>
18167 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
18168 absu_hwi instead of abs_hwi.
18170 2021-04-29 Richard Biener <rguenther@suse.de>
18172 PR middle-end/38474
18173 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
18174 forwarding when indirect forwarding through ESCAPED
18177 2021-04-29 Tom de Vries <tdevries@suse.de>
18180 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
18181 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
18182 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
18183 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
18185 2021-04-29 Richard Biener <rguenther@suse.de>
18187 PR tree-optimization/99912
18188 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
18189 (dse_dom_walker::todo): Likewise.
18190 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
18192 (dse_dom_walker::before_dom_children): Remove trivially
18193 dead SSA defs and schedule CFG cleanup if we removed all
18195 (pass_dse::execute): Get TODO as computed by the DOM walker
18196 and return it. Wipe dominator info earlier.
18198 2021-04-29 Richard Biener <rguenther@suse.de>
18201 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
18202 Track blocks to cleanup EH in new m_need_eh_cleanup.
18203 (ipcp_modif_dom_walker::cleanup_eh): New.
18204 (ipcp_transform_function): Release dominator info before
18207 2021-04-29 Martin Sebor <msebor@redhat.com>
18209 PR middle-end/100250
18210 * attribs.c (attr_access::array_as_string): Avoid dereferencing
18211 a pointer when it's null.
18213 2021-04-29 Martin Sebor <msebor@redhat.com>
18215 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
18216 * ipa-free-lang-data.cc: New file.
18217 * tree.c: Move pass free_lang_data to file above.
18218 (build_array_type_1): Declare extern.
18219 * tree.h (build_array_type_1): Declare.
18221 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
18223 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
18224 make consistent with updated RTL pattern.
18225 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
18226 Implement using ss_truncate and us_truncate rather than
18228 * config/aarch64/iterators.md: Remove redundant unspecs and
18229 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
18231 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
18233 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
18234 attributes consistent with those defined in arm_neon.h.
18236 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
18238 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
18239 attributes consistent with those defined in arm_neon.h.
18241 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
18243 * config/aarch64/aarch64-simd-builtins.def: Add
18244 float_trunc_rodd builtin generator macros.
18245 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
18247 (aarch64_float_trunc_rodd_lo_v2sf): Define.
18248 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
18249 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
18250 (aarch64_float_trunc_rodd_hi_v4sf): Define.
18251 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
18252 instead of inline asm.
18253 (vcvtx_high_f32_f64): Likewise.
18254 (vcvtxd_f32_f64): Likewise.
18255 * config/aarch64/iterators.md: Add FCVTXN unspec.
18257 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
18259 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
18261 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
18263 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
18264 instead of inline asm.
18265 (vqtbx1_u8): Likewise.
18266 (vqtbx1_p8): Likewise.
18267 (vqtbx1q_s8): Likewise.
18268 (vqtbx1q_u8): Likewise.
18269 (vqtbx1q_p8): Likewise.
18270 (vtbx2_s8): Likewise.
18271 (vtbx2_u8): Likewise.
18272 (vtbx2_p8): Likewise.
18274 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
18276 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
18278 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
18279 instead of inline asm.
18280 (vqtbl1_s8): Likewise.
18281 (vqtbl1_u8): Likewise.
18282 (vqtbl1q_p8): Likewise.
18283 (vqtbl1q_s8): Likewise.
18284 (vqtbl1q_u8): Likewise.
18285 (vtbl1_s8): Likewise.
18286 (vtbl1_u8): Likewise.
18287 (vtbl1_p8): Likewise.
18288 (vtbl2_s8): Likewise.
18289 (vtbl2_u8): Likewise.
18290 (vtbl2_p8): Likewise.
18292 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
18294 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
18295 ssri_n buitin generator macro.
18296 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
18297 instead of inline asm.
18298 (vsri_n_p16): Likewise.
18299 (vsri_n_p64): Likewise.
18300 (vsriq_n_p8): Likewise.
18301 (vsriq_n_p16): Likewise.
18302 (vsriq_n_p64): Likewise.
18304 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
18306 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
18307 iterator for polynomial ssli_n builtin generator macro.
18308 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
18309 instead of inline asm.
18310 (vsli_n_p16): Likewise.
18311 (vsliq_n_p8): Likewise.
18312 (vsliq_n_p16): Likewise.
18313 * config/aarch64/iterators.md: Define VALLP mode iterator.
18315 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
18317 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
18318 iterator to generate [su]adalp RTL builtins.
18319 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
18320 [su]adalp RTL pattern.
18321 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
18322 instead of inline asm.
18323 (vpadal_u32): Likewise.
18325 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
18327 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
18328 builtin generator macros.
18329 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
18331 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
18332 instead of inline asm.
18333 (vpaddl_s16): Likewise.
18334 (vpaddl_s32): Likewise.
18335 (vpaddl_u8): Likewise.
18336 (vpaddl_u16): Likewise.
18337 (vpaddl_u32): Likewise.
18338 (vpaddlq_s8): Likewise.
18339 (vpaddlq_s16): Likewise.
18340 (vpaddlq_s32): Likewise.
18341 (vpaddlq_u8): Likewise.
18342 (vpaddlq_u16): Likewise.
18343 (vpaddlq_u32): Liwewise.
18344 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
18345 appropriate attributes.
18347 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
18349 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
18350 for aarch64_addp<mode> builtin macro generator.
18351 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
18352 aarch64_addp<mode> RTL pattern.
18353 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
18354 instead of inline asm.
18355 (vpaddq_s16): Likewise.
18356 (vpaddq_s32): Likewise.
18357 (vpaddq_s64): Likewise.
18358 (vpaddq_u8): Likewise.
18359 (vpaddq_u16): Likewise.
18360 (vpaddq_u32): Likewise.
18361 (vpaddq_u64): Likewise.
18363 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
18365 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
18366 builtin generator macros.
18367 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
18369 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
18370 instead of inline asm.
18371 (vqdmulh_n_s32): Likewise.
18372 (vqdmulhq_n_s16): Likewise.
18373 (vqdmulhq_n_s32): Likewise.
18374 (vqrdmulh_n_s16): Likewise.
18375 (vqrdmulh_n_s32): Likewise.
18376 (vqrdmulhq_n_s16): Likewise.
18377 (vqrdmulhq_n_s32): Likewise.
18379 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
18381 * doc/install.texi (--enable-offload-defaulted): Document.
18383 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
18385 * config/avr/avr-dimode.md: Turn existing patterns into
18386 define_insn_and_split style patterns where the splitter
18387 adds a clobber of the condition code register. Drop "cc"
18388 attribute. Add new patterns to match output of
18390 * config/avr/avr-fixed.md: Likewise.
18391 * config/avr/avr.c (cc_reg_rtx): New.
18392 (avr_parallel_insn_from_insns): Adjust insn count
18393 for removal of set of cc0.
18394 (avr_is_casesi_sequence): Likewise.
18395 (avr_casei_sequence_check_operands): Likewise.
18396 (avr_optimize_casesi): Likewise. Also insert
18397 new insns after jump_insn.
18398 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
18399 for removal of set of cc0.
18400 (avr_init_expanders): Initialize cc_reg_rtx.
18401 (avr_regno_reg_class): Handle REG_CC.
18402 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
18403 (avr_notice_update_cc): Remove function.
18404 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
18405 (compare_condition): Adjust for PARALLEL with
18407 (out_shift_with_cnt): Likewise.
18408 (ashlhi3_out): Likewise.
18409 (ashrhi3_out): Likewise.
18410 (lshrhi3_out): Likewise.
18411 (avr_class_max_nregs): Return single reg for REG_CC.
18412 (avr_compare_pattern): Check for REG_CC instead
18414 (avr_reorg_remove_redundant_compare): Likewise.
18415 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
18416 (avr_hard_regno_nregs): Return single reg for REG_CC.
18417 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
18418 (avr_md_asm_adjust): Clobber REG_CC.
18419 (TARGET_HARD_REGNO_NREGS): Define.
18420 (TARGET_CLASS_MAX_NREGS): Define.
18421 (TARGET_MD_ASM_ADJUST): Define.
18422 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
18424 (enum reg_class): Add CC_REG class.
18425 (NOTICE_UPDATE_CC): Remove.
18426 (CC_OVERFLOW_UNUSABLE): Remove.
18427 (CC_NO_CARRY): Remove.
18428 * config/avr/avr.md: Turn existing patterns into
18429 define_insn_and_split style patterns where the splitter
18430 adds a clobber of the condition code register. Drop "cc"
18431 attribute. Add new patterns to match output of
18433 (sez): Remove unused pattern.
18435 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
18438 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
18441 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
18444 * config/aarch64/constraints.md (Utq): Require the address to
18445 be valid for both the element mode and for V2DImode.
18447 2021-04-28 Jakub Jelinek <jakub@redhat.com>
18448 Tobias Burnus <tobias@codesourcery.com>
18450 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
18451 * gcc.c (process_command): New variable.
18452 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
18453 set it if -foffload is defaulted.
18454 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
18455 (compile_offload_image): If OFFLOAD_DEFAULTED and
18456 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
18457 if corresponding mkoffload can't be found.
18458 (compile_images_for_offload_targets): Likewise. Free and clear
18459 offload_names if no valid offload is found.
18460 * config.in: Regenerate.
18461 * configure: Regenerate.
18463 2021-04-28 Richard Biener <rguenther@suse.de>
18465 PR tree-optimization/100292
18466 * tree-vect-generic.c (expand_vector_condition): Do not fold
18469 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
18471 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
18472 * config/rs6000/aix64.opt (m64): New.
18475 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
18477 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
18478 (index_term_p): Handle ASHIFT too.
18480 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
18482 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
18483 (sync_lock_test_and_set<mode>): Adjust accordingly.
18484 (sync_lock_release<mode>): Likewise.
18486 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
18488 * config/vax/vax-protos.h (adjacent_operands_p): Remove
18490 * config/vax/vax.c (adjacent_operands_p): Remove.
18492 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
18494 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
18495 through to the non-conditional execution case if getting the
18496 condition for conditional execution has failed.
18498 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
18500 PR middle-end/100284
18501 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
18502 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
18503 than asserting on it.
18505 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
18507 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
18508 with TARGET_AIX_OS.
18510 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
18513 * calls.c (precompute_register_parameters): Additionally test
18514 targetm.precompute_tls_p to pre-compute argument.
18515 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
18516 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
18517 * target.def (precompute_tls_p): New.
18518 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
18519 * doc/tm.texi: Regenerated.
18521 2021-04-27 Jakub Jelinek <jakub@redhat.com>
18524 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
18525 back to HOST_WIDE_INT.
18527 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
18530 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
18531 memory alignment for the outer mode.
18533 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
18535 PR middle-end/90773
18536 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
18537 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
18539 2021-04-27 Alex Coplan <alex.coplan@arm.com>
18542 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
18543 with negative immediates: ensure we expand cbranchsi4_scratch
18544 correctly and ensure we satisfy its constraints.
18545 * config/arm/sync.md
18546 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
18547 attempt to tie two output operands together with constraints;
18548 collapse two alternatives.
18549 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
18550 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
18552 2021-04-27 Jakub Jelinek <jakub@redhat.com>
18555 * config/aarch64/predicates.md (aarch64_sub_immediate,
18556 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
18557 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
18558 * config/aarch64/aarch64.c (aarch64_print_operand,
18559 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
18561 2021-04-27 Jakub Jelinek <jakub@redhat.com>
18563 PR tree-optimization/100239
18564 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
18565 permutations with all indices from the first zero element as vec_shl.
18567 2021-04-27 Jakub Jelinek <jakub@redhat.com>
18569 PR rtl-optimization/100254
18570 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
18571 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
18573 2021-04-27 Richard Biener <rguenther@suse.de>
18575 PR tree-optimization/99912
18576 * passes.def: Add comment about new TODO_remove_unused_locals.
18577 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
18580 2021-04-27 Richard Biener <rguenther@suse.de>
18582 PR tree-optimization/99912
18583 * passes.def (pass_all_optimizations): Add pass_dse before
18584 the first pass_dce, move the first pass_dse before the
18585 pass_dce following pass_pre.
18587 2021-04-27 Jakub Jelinek <jakub@redhat.com>
18589 PR tree-optimization/95527
18590 * generic-match-head.c: Include tm.h.
18591 * gimple-match-head.c: Include tm.h.
18592 * match.pd (CLZ == INTEGER_CST): Don't use
18593 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
18594 if clz == CFN_CLZ. Add missing val declaration.
18595 (CTZ cmp CST): New simplifications.
18597 2021-04-27 Jakub Jelinek <jakub@redhat.com>
18599 PR tree-optimization/96696
18600 * expr.c (expand_expr_divmod): New function.
18601 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
18602 divisions. Formatting fixes.
18603 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
18606 2021-04-27 Martin Jambor <mjambor@suse.cz>
18609 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
18610 If removing a call statement LHS SSA name, release it.
18612 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
18615 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
18616 is valid before including it in the mask.
18618 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
18621 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
18624 2021-04-27 Richard Biener <rguenther@suse.de>
18626 PR tree-optimization/100051
18627 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
18628 disambiguator based on access size vs. decl size.
18630 2021-04-27 Richard Biener <rguenther@suse.de>
18632 PR tree-optimization/100278
18633 * tree-ssa-pre.c (compute_avail): Give up when we cannot
18634 adjust TBAA beacuse of mismatching bases.
18636 2021-04-27 Jakub Jelinek <jakub@redhat.com>
18639 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
18640 For any_rotate define_insn_split and following splitters, use
18641 SWI iterator instead of SWI48.
18643 2021-04-27 Richard Biener <rguenther@suse.de>
18645 PR tree-optimization/99776
18646 * match.pd (bit_field_ref (ctor)): Relax element extract
18647 type compatibility checks.
18649 2021-04-27 Cui,Lili <lili.cui@intel.com>
18651 * common/config/i386/i386-common.c (processor_names):
18652 Sync processor_names with processor_type.
18653 * config/i386/i386-options.c (processor_cost_table):
18654 Sync processor_cost_table with processor_type.
18656 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
18658 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
18659 (irange::set): Call irange_set_1bit_anti_range for handling all
18660 1-bit ranges. Fall through on ~[MIN,MAX].
18662 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
18664 * value-range.cc (irange::legacy_num_pairs): Remove.
18665 (irange::invert): Change gcc_assert to gcc_checking_assert.
18666 * value-range.h (irange::num_pairs): Adjust for a cached
18667 num_pairs(). Also, rename all gcc_assert's to
18668 gcc_checking_assert's.
18670 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
18672 * value-range.cc (irange::operator=): Set m_kind.
18673 (irange::copy_to_legacy): Handle varying and undefined sources
18674 as a legacy copy since they can be easily copied.
18675 (irange::irange_set): Set m_kind.
18676 (irange::irange_set_anti_range): Same.
18677 (irange::set): Rename normalize_min_max to normalize_kind.
18678 (irange::verify_range): Adjust for multi-ranges having the
18680 (irange::irange_union): Set m_kind.
18681 (irange::irange_intersect): Same.
18682 (irange::invert): Same.
18683 * value-range.h (irange::kind): Always return m_kind.
18684 (irange::varying_p): Rename to...
18685 (irange::varying_comptaible_p): ...this.
18686 (irange::undefined_p): Only look at m_kind.
18687 (irange::irange): Always set VR_UNDEFINED if applicable.
18688 (irange::set_undefined): Always set VR_UNDEFINED.
18689 (irange::set_varying): Always set m_kind to VR_VARYING.
18690 (irange::normalize_min_max): Rename to...
18691 (irange::normalize_kind): ...this.
18693 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
18695 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
18696 Adjust for constant_p including varying_p.
18697 * tree-vrp.c (vrp_prop::finalize): Same.
18698 (determine_value_range): Same.
18699 * vr-values.c (vr_values::range_of_expr): Same.
18700 * value-range.cc (irange::symbolic_p): Do not check varying_p.
18701 (irange::constant_p): Same.
18703 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
18705 * value-range.cc (irange::legacy_lower_bound): Replace
18706 !undefined_p check with num_ranges > 0.
18707 (irange::legacy_upper_bound): Same.
18708 * value-range.h (irange::type): Same.
18709 (irange::lower_bound): Same.
18710 (irange::upper_bound): Same.
18712 2021-04-26 Richard Biener <rguenther@suse.de>
18714 PR tree-optimization/99956
18715 * gimple-loop-interchange.cc (compute_access_stride):
18716 Try instantiating the access in a shallower loop nest
18717 if instantiating failed.
18718 (compute_access_strides): Pass adjustable loop_nest
18719 to compute_access_stride.
18721 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
18723 * doc/sourcebuild.texi (arm_cmse_hw): Document.
18725 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18727 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
18729 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
18730 Nathan Sidwell <nathan@codesourcery.com>
18731 Tom de Vries <vries@codesourcery.com>
18732 Julian Brown <julian@codesourcery.com>
18733 Kwok Cheung Yeung <kcy@codesourcery.com>
18735 * omp-offload.c (oacc_validate_dims): Implement
18736 '-Wopenacc-parallelism'.
18737 * doc/invoke.texi (-Wopenacc-parallelism): Document.
18739 2021-04-26 Richard Biener <rguenther@suse.de>
18741 * tree-cfg.h (gimplify_build1): Remove.
18742 (gimplify_build2): Likewise.
18743 (gimplify_build3): Likewise.
18744 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
18745 (gimplify_build2): Likewise.
18746 (gimplify_build3): Likewise.
18747 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
18749 (gimplify_build2): Likewise.
18750 (gimplify_build3): Likewise.
18751 (tree_vec_extract): Use resimplify with following SSA edges.
18752 (expand_vector_parallel): Avoid passing NULL size/bitpos
18753 to tree_vec_extract.
18754 * expr.c (store_constructor): Deal with zero-element CTORs.
18755 * match.pd (bit_field_ref <vector CTOR>): Make sure to
18756 produce vector constants when possible.
18758 2021-04-26 Richard Biener <rguenther@suse.de>
18760 * tree-complex.c: Include gimple-fold.h.
18761 (expand_complex_addition): Use gimple_build.
18762 (expand_complex_multiplication_components): Likewise.
18763 (expand_complex_multiplication): Likewise.
18764 (expand_complex_div_straight): Likewise.
18765 (expand_complex_div_wide): Likewise.
18766 (expand_complex_division): Likewise.
18767 (expand_complex_conjugate): Likewise.
18768 (expand_complex_comparison): Likewise.
18770 2021-04-26 Richard Biener <rguenther@suse.de>
18772 * tree-ssa-phiopt.c (two_value_replacement): Remove use
18773 of legacy gimplify_buildN API.
18775 2021-04-26 Richard Biener <rguenther@suse.de>
18777 PR tree-optimization/99473
18778 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
18781 2021-04-26 Richard Biener <rguenther@suse.de>
18783 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
18784 Use replace_call_with_value.
18786 2021-04-26 Richard Biener <rguenther@suse.de>
18788 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
18789 (update_gimple_call): Likewise.
18790 (update_call_from_tree): Likewise.
18791 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
18792 (valid_gimple_call_p): Likewise.
18793 (move_ssa_defining_stmt_for_defs): Likewise.
18794 (finish_update_gimple_call): Likewise.
18795 (update_gimple_call): Likewise.
18796 (update_call_from_tree): Likewise.
18797 (propagate_tree_value_into_stmt): Use replace_call_with_value.
18798 * gimple-fold.h (update_gimple_call): Declare.
18799 * gimple-fold.c (valid_gimple_rhs_p): Move here from
18800 tree-ssa-propagate.c.
18801 (update_gimple_call): Likewise.
18802 (valid_gimple_call_p): Likewise.
18803 (finish_update_gimple_call): Likewise, and simplify.
18804 (gimplify_and_update_call_from_tree): Implement
18805 update_call_from_tree functionality, avoid excessive
18806 push/pop_gimplify_context.
18807 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
18808 (gimple_fold_call): Likewise.
18809 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
18810 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
18811 (pass_fold_builtins::execute): Likewise.
18812 (optimize_stack_restore): Use replace_call_with_value.
18813 * tree-cfg.c (fold_loop_internal_call): Likewise.
18814 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
18815 only gimplify_and_update_call_from_tree.
18816 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
18817 (handle_builtin_strchr): Likewise.
18818 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
18820 2021-04-26 Jakub Jelinek <jakub@redhat.com>
18823 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
18824 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
18827 2021-04-25 liuhongt <hongtao.liu@intel.com>
18830 * config/i386/i386-builtin.def (BDESC): Change the icode of
18831 the following builtins to CODE_FOR_nothing.
18832 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
18833 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
18834 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
18835 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
18836 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
18837 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
18838 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
18839 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
18840 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
18841 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
18842 (sse2_eq<mode>3): Ditto.
18843 (sse4_1_eqv2di3): Ditto.
18844 (sse2_gt<mode>3): Rename to ..
18845 (*sse2_gt<mode>3): .. this.
18847 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
18850 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
18853 * config/darwin.c (darwin_binds_local_p): Assume that any
18854 public symbol might be interposed for PIC code. Update function
18855 header comment to reflect current Darwin capability.
18857 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
18860 * config/darwin.c (darwin_binds_local_p): Assume that any
18861 public symbol might be interposed for PIC code. Update function
18862 header comment to reflect current Darwin capability.
18864 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
18866 * doc/sourcebuild.texi: Document no-opts and any-opts target
18869 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
18871 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
18873 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
18875 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
18877 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
18880 * config/i386/i386-options.c (ix86_option_override_internal):
18881 Error out when -m96bit-long-double is used with 64bit targets.
18882 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
18884 2021-04-23 Martin Liska <mliska@suse.cz>
18886 * lto-wrapper.c: Remove FIXME about usage of
18887 hardware_concurrency. The function is not on par with
18890 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
18893 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
18894 Copy operand 3 to operand 4. Use sse_reg_operand
18895 as operand 3 predicate.
18896 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
18897 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
18898 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
18899 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
18900 Copy operand 1 to operand 0.
18901 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
18902 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
18903 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
18905 2021-04-23 Alex Coplan <alex.coplan@arm.com>
18907 PR rtl-optimization/100230
18908 * early-remat.c (early_remat::sort_candidates): Use delete[]
18909 instead of delete for array allocated with new[].
18911 2021-04-23 Richard Biener <rguenther@suse.de>
18913 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
18914 (capture_info::capture_info): Likewise.
18915 (capture_info::walk_match): Likewise.
18916 (expr::gen_transform): Likewise.
18917 (dt_simplify::gen_1): Likewise.
18918 * gimple-match-head.c (maybe_resimplify_conditional_op):
18919 Remove VEC_COND_EXPR special-casing.
18920 (gimple_simplify): Likewise.
18921 * gimple.c (gimple_could_trap_p_1): Adjust.
18922 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
18923 to participate in PRE.
18925 2021-04-23 Richard Biener <rguenther@suse.de>
18927 * cfganal.c (connect_infinite_loops_to_exit): First call
18928 add_noreturn_fake_exit_edges.
18929 * ipa-sra.c (process_scan_results): Do not call the now redundant
18930 add_noreturn_fake_exit_edges.
18931 * predict.c (tree_estimate_probability): Likewise.
18932 (rebuild_frequencies): Likewise.
18933 * store-motion.c (one_store_motion_pass): Likewise.
18935 2021-04-23 Richard Biener <rguenther@suse.de>
18937 PR tree-optimization/100222
18938 * predict.c (pass_profile::execute): Remove redundant call to
18939 mark_irreducible_loops.
18940 (report_predictor_hitrates): Likewise.
18942 2021-04-23 Richard Biener <rguenther@suse.de>
18944 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
18945 valid_gimple_rhs_p by instead gimplifying to one.
18947 2021-04-23 Richard Biener <rguenther@suse.de>
18949 PR tree-optimization/99971
18950 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
18951 Always use TBAA for loads.
18953 2021-04-23 liuhongt <hongtao.liu@intel.com>
18956 * config/i386/i386-options.c (ix86_option_override_internal):
18957 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
18958 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
18959 by target attribute.
18961 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
18963 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
18965 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
18967 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
18969 * config.gcc (powerpc-ibm-aix6.*): Remove.
18970 * config/rs6000/aix61.h: Delete.
18972 2021-04-22 Martin Liska <mliska@suse.cz>
18974 PR testsuite/100159
18975 PR testsuite/100192
18976 * builtins.c (expand_builtin): Fix typos and missing comments.
18977 * dwarf2out.c (gen_subprogram_die): Likewise.
18978 (gen_struct_or_union_type_die): Likewise.
18980 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
18983 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
18984 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
18986 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
18988 * config/i386/darwin.h (TARGET_64BIT): Remove definition
18989 based on TARGET_ISA_64BIT.
18990 (TARGET_64BIT_P): Remove definition based on
18991 TARGET_ISA_64BIT_P().
18993 2021-04-21 Martin Liska <mliska@suse.cz>
18996 2021-04-21 Martin Liska <mliska@suse.cz>
18998 * lto-wrapper.c (cpuset_popcount): Remove.
18999 (init_num_threads): Remove and use hardware_concurrency.
19001 2021-04-21 Martin Liska <mliska@suse.cz>
19004 * main.c (main): Call toplev::finalize in CHECKING_P mode.
19005 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
19006 when incremental LTO linking happens.
19008 2021-04-21 Martin Liska <mliska@suse.cz>
19010 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
19011 makeserver cannot be detected, then use -flto=N fallback.
19013 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
19015 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
19016 default to yes for aarch64-linux-gnu.
19017 * configure: Regenerate.
19019 2021-04-21 Martin Liska <mliska@suse.cz>
19021 * lto-wrapper.c (cpuset_popcount): Remove.
19022 (init_num_threads): Remove and use hardware_concurrency.
19024 2021-04-21 Martin Liska <mliska@suse.cz>
19026 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
19027 which remains to be '(... || 0)' and clang complains about it.
19028 * dwarf2out.c (AT_vms_delta): Declare conditionally.
19029 (add_AT_vms_delta): Likewise.
19030 * tree.c (fld_simplified_type): Use rather more common pattern
19031 for disabling of something (#if 0).
19032 (get_tree_code_name): Likewise.
19033 (verify_type_variant): Likewise.
19035 2021-04-21 Martin Liska <mliska@suse.cz>
19037 * config/i386/i386-expand.c (decide_alignment): Use newly named
19038 macro TARGET_CPU_P.
19039 * config/i386/i386.c (ix86_decompose_address): Likewise.
19040 (ix86_address_cost): Likewise.
19041 (ix86_lea_outperforms): Likewise.
19042 (ix86_avoid_lea_for_addr): Likewise.
19043 (ix86_add_stmt_cost): Likewise.
19044 * config/i386/i386.h (TARGET_*): Remove.
19045 (TARGET_CPU_P): New macro.
19046 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
19047 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
19048 (swap_top_of_ready_list): Likewise.
19049 (ix86_atom_sched_reorder): Likewise.
19050 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
19051 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
19053 2021-04-21 Martin Liska <mliska@suse.cz>
19055 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
19057 (SET_TARGET_NO_SAHF): Likewise.
19058 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
19059 (SET_TARGET_PREFETCH_SSE): Likewise.
19060 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
19061 (SET_TARGET_NO_TUNE): Likewise.
19062 (TARGET_EXPLICIT_NO_80387_P): Likewise.
19063 (SET_TARGET_NO_80387): Likewise.
19065 * config/i386/i386.h (TARGET_*): Remove.
19066 * opth-gen.awk: Generate new used macros.
19068 2021-04-21 Martin Liska <mliska@suse.cz>
19070 * config/i386/i386.h (PTA_*): Remove.
19071 (enum pta_flag): New.
19072 (DEF_PTA): Generate PTA_* values from i386-isa.def.
19073 * config/i386/i386-isa.def: New file.
19075 2021-04-21 Alex Coplan <alex.coplan@arm.com>
19078 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
19079 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
19080 jump table targets.
19082 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
19084 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
19085 x86_64-*-* targets.
19086 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
19088 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
19089 (ix86_handle_option): Handle -mmwait.
19090 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
19091 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
19092 __builtin_ia32_monitor and __builtin_ia32_mwait.
19093 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
19094 (ix86_valid_target_attribute_inner_p): Likewise.
19095 (ix86_option_override_internal): Enable mwait/monitor
19096 instructions for -msse3.
19097 * config/i386/i386.h (TARGET_MWAIT): New.
19098 (TARGET_MWAIT_P): Likewise.
19099 * config/i386/i386.opt: Add -mmwait.
19100 * config/i386/mwaitintrin.h: New file.
19101 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
19102 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
19104 (@sse3_monitor_<mode>): Likewise.
19105 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
19106 * doc/extend.texi: Document mwait target attribute.
19107 * doc/invoke.texi: Document -mmwait.
19109 2021-04-21 Martin Liska <mliska@suse.cz>
19111 * config/i386/i386-options.c (DEF_ENUM): Remove it.
19112 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
19113 * config/i386/stringop.def (DEF_ENUM): Likewise.
19115 2021-04-21 Martin Liska <mliska@suse.cz>
19117 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
19118 of print_generic_expr.
19120 2021-04-21 Jakub Jelinek <jakub@redhat.com>
19122 PR rtl-optimization/100148
19123 * cprop.c (constprop_register): Use next_nondebug_insn instead of
19126 2021-04-21 Martin Liska <mliska@suse.cz>
19129 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
19130 free_dominance_info calls.
19132 2021-04-21 Richard Biener <rguenther@suse.de>
19134 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
19135 parameter (and assume it to be false).
19136 (fold_gimple_assign): Adjust, remove all callers of
19137 maybe_fold_reference calling it with is_lhs true.
19138 (gimple_fold_call): Likewise.
19139 (fold_stmt_1): Likewise.
19141 2021-04-21 Richard Biener <rguenther@suse.de>
19143 * fold-const.c (pedantic_non_lvalue_loc): Remove.
19144 (fold_binary_loc): Adjust.
19145 (fold_ternary_loc): Likewise.
19147 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
19149 PR middle-end/100130
19150 * varasm.c (get_block_for_decl): Make sure that any use of the
19151 retain attribute matches the section's retain flag.
19152 (switch_to_section): Check for retain mismatches even when
19153 changing sections, but do not warn if the given decl is the
19154 section's named.decl.
19155 (output_object_block): Pass the first decl in the block (if any)
19156 to switch_to_section.
19158 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
19160 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19161 __CRC32__ for -mcrc32.
19162 * config/i386/i386-options.c (ix86_option_override_internal):
19163 Enable crc32 instruction for -msse4.2.
19164 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
19166 (sse4_2_crc32di): Likewise.
19167 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
19170 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
19173 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
19176 2021-04-20 Martin Liska <mliska@suse.cz>
19178 * doc/invoke.texi: Fix typo.
19179 * params.opt: Likewise.
19181 2021-04-20 Martin Liska <mliska@suse.cz>
19183 * doc/invoke.texi: Document new param.
19185 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
19187 PR tree-optimization/100081
19188 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
19189 rather than gori_compute_cache.
19190 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
19191 (range_def_chain::m_logical_depth): New member.
19192 (range_def_chain::range_def_chain): Initialize m_logical_depth.
19193 (range_def_chain::get_def_chain): Don't build defchains through more
19194 than LOGICAL_LIMIT logical expressions.
19195 * params.opt (param_ranger_logical_depth): New.
19197 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
19200 * config/arm/arm.c (arm_configure_build_target): Do not strip
19201 extended FPU/SIMD feature bits from the target ISA when -mfpu
19202 is specified (partial revert of r11-8168).
19204 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
19206 * params.opt (-param=openacc-kernels=): Add.
19207 * omp-oacc-kernels-decompose.cc
19208 (pass_omp_oacc_kernels_decompose::gate): Use it.
19209 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
19210 (--param): ... here, 'openacc-kernels'.
19212 2021-04-19 Martin Liska <mliska@suse.cz>
19215 * gengtype.c (finish_root_table): Align function arguments
19216 in between declaration and definition.
19218 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
19220 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
19221 frames larger than the SEH maximum frame size.
19223 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
19225 PR rtl-optimization/99927
19226 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
19227 is dead, just drop it.
19229 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
19232 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
19233 * doc/tm.texi: Regenerate.
19234 * doc/tm.texi.in (D language and ABI): Add @hook for
19235 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
19237 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
19239 * config/darwin-d.c (darwin_d_handle_target_object_format): New
19241 (darwin_d_register_target_info): New function.
19242 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
19243 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
19245 (dragonfly_d_register_target_info): New function.
19246 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
19247 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
19249 (freebsd_d_register_target_info): New function.
19250 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
19251 * config/glibc-d.c (glibc_d_handle_target_object_format): New
19253 (glibc_d_register_target_info): New function.
19254 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
19255 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
19257 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
19258 as handler for objectFormat key.
19259 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
19261 (winnt_d_register_target_info): New function.
19262 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
19263 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
19265 (netbsd_d_register_target_info): New function.
19266 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
19267 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
19269 (openbsd_d_register_target_info): New function.
19270 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
19271 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
19272 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
19273 handler for objectFormat key.
19274 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
19276 (rs6000_d_register_target_info): Add
19277 rs6000_d_handle_target_object_format as handler for objectFormat key.
19278 * config/sol2-d.c (solaris_d_handle_target_object_format): New
19280 (solaris_d_register_target_info): New function.
19281 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
19283 2021-04-16 Jakub Jelinek <jakub@redhat.com>
19286 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
19287 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
19289 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
19290 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
19291 the old and new alignment after applying MIN/MAX to it is different.
19293 2021-04-16 Tamar Christina <tamar.christina@arm.com>
19296 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
19297 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
19299 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
19301 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
19303 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
19304 this section and its subsections.
19306 2021-04-16 Jakub Jelinek <jakub@redhat.com>
19309 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
19310 define_insn patterns.
19312 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
19314 PR rtl-optimization/98689
19315 * reg-notes.def (UNTYPED_CALL): New note.
19316 * combine.c (distribute_notes): Handle it.
19317 * emit-rtl.c (try_split): Likewise.
19318 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
19319 that calls with the note implicitly set all return value registers.
19320 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
19323 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
19325 PR rtl-optimization/99596
19326 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
19327 register accesses for const calls. Assume that pure functions
19328 can only read from global registers. Ignore cases in which
19329 the stack pointer has been marked global.
19331 2021-04-16 Jakub Jelinek <jakub@redhat.com>
19334 * tree-vect-loop.c (vect_transform_loop): Don't remove just
19335 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
19336 them by their last argument.
19338 2021-04-15 Martin Liska <mliska@suse.cz>
19340 * doc/invoke.texi: Other params don't use it, remove it.
19342 2021-04-15 Richard Biener <rguenther@suse.de>
19344 * gimple-builder.h: Add deprecation note.
19346 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
19349 * attribs.h (restrict_type_identity_attributes_to): Declare.
19350 * attribs.c (restrict_type_identity_attributes_to): New function.
19352 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
19355 * attribs.h (affects_type_identity_attributes): Declare.
19356 * attribs.c (remove_attributes_matching): New function.
19357 (affects_type_identity_attributes): Likewise.
19359 2021-04-15 Jakub Jelinek <jakub@redhat.com>
19362 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
19363 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
19364 ZERO_EXTEND, SIGN_EXTEND or AND.
19366 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
19368 PR rtl-optimization/99929
19369 * rtl.h (same_vector_encodings_p): New function.
19370 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
19371 * cselib.c (rtx_equal_for_cselib_1): Likewise.
19372 * jump.c (rtx_renumbered_equal_p): Likewise.
19373 * lra-constraints.c (operands_match_p): Likewise.
19374 * reload.c (operands_match_p): Likewise.
19375 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
19377 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
19379 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
19380 more information about variable-length CONST_VECTORs.
19382 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
19384 PR rtl-optimization/100066
19385 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
19386 ordered modes when choosing splitting mode for hard reg.
19388 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
19391 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
19393 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
19395 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
19397 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
19398 for mask operand types.
19399 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
19400 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
19402 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
19404 * config/s390/s390.c (s390_const_operand_ok): Check the new
19405 operand types and generate a list of valid values.
19407 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
19409 * doc/tm.texi: Regenerate.
19410 * doc/tm.texi.in (D language and ABI): Add @hook for
19411 TARGET_D_REGISTER_OS_TARGET_INFO.
19413 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
19415 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
19417 (aarch64_d_register_target_info): New function.
19418 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
19420 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
19422 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
19423 (arm_d_register_target_info): New function.
19424 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
19425 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
19426 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
19427 (ix86_d_register_target_info): New function.
19428 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
19429 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
19430 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
19431 (mips_d_register_target_info): New function.
19432 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
19433 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
19434 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
19435 (pa_d_register_target_info): New function.
19436 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
19437 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
19438 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
19440 (riscv_d_register_target_info): New function.
19441 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
19442 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
19443 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
19445 (rs6000_d_register_target_info): New function.
19446 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
19448 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
19449 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
19450 (s390_d_register_target_info): New function.
19451 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
19452 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
19453 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
19455 (sparc_d_register_target_info): New function.
19456 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
19457 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
19458 * doc/tm.texi: Regenerate.
19459 * doc/tm.texi.in (D language and ABI): Add @hook for
19460 TARGET_D_REGISTER_CPU_TARGET_INFO.
19462 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
19464 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
19465 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
19466 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
19467 * doc/tm.texi: Regenerate.
19468 * doc/tm.texi.in (D language and ABI): Add @hook for
19469 TARGET_D_HAS_STDCALL_CONVENTION.
19471 2021-04-14 Richard Biener <rguenther@suse.de>
19473 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
19474 VEC_COND_EXPRs have a gimple_val condition.
19475 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
19476 can no longer have a GENERIC condition.
19478 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
19481 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
19482 from the isa_delta when -mfpu has been used.
19483 (arm_options_perform_arch_sanity_checks): It's the architecture that
19484 lacks an FPU not the processor.
19486 2021-04-13 Richard Biener <rguenther@suse.de>
19488 PR tree-optimization/100053
19489 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
19490 not use optimistic dominance queries for backedges to validate
19492 (dominated_by_p_w_unex): Add parameter to ignore executable
19493 state on backedges.
19494 (rpo_elim::eliminate_avail): Adjust.
19496 2021-04-13 Jakub Jelinek <jakub@redhat.com>
19499 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
19500 *aarch64_bfxilsi_extrdi): New define_insn patterns.
19502 2021-04-13 Jakub Jelinek <jakub@redhat.com>
19505 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
19506 outermode, return NULL if the result doesn't encode back to the
19507 original byte sequence.
19508 (simplify_gen_subreg): Don't create SUBREGs from constants to
19509 MODE_COMPOSITE_P outermode.
19511 2021-04-12 Jakub Jelinek <jakub@redhat.com>
19513 PR rtl-optimization/99905
19514 * combine.c (expand_compound_operation): If pos + len > modewidth,
19515 perform the right shift by pos in inner_mode and then convert to mode,
19516 instead of trying to simplify a shift of rtx with inner_mode by pos
19517 as if it was a shift in mode.
19519 2021-04-12 Jakub Jelinek <jakub@redhat.com>
19522 * combine.c (simplify_and_const_int_1): Don't optimize varop
19523 away if it has side-effects.
19525 2021-04-12 Martin Liska <mliska@suse.cz>
19527 * doc/extend.texi: Escape @smallexample content.
19529 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
19531 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
19532 alternative in order to load a DFP zero.
19534 2021-04-12 Martin Liska <mliska@suse.cz>
19536 * doc/extend.texi: Be more precise in documentation
19537 of symver attribute.
19539 2021-04-12 Martin Liska <mliska@suse.cz>
19542 * gimplify.c (gimplify_expr): Right now, we unpoison all
19543 variables before a goto <dest>. We should not do it if we are
19546 2021-04-12 Cui,Lili <lili.cui@intel.com>
19548 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
19550 * common/config/i386/i386-common.c (processor_names): Add
19552 (processor_alias_table): Add rocketlake.
19553 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
19554 INTEL_COREI7_ROCKETLAKE.
19555 * config.gcc: Add -march=rocketlake.
19556 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19558 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
19559 (processor_cost_table): Add rocketlake cost.
19560 * config/i386/i386.h (ix86_size_cost) : Define
19562 (processor_type) : Add PROCESSOR_ROCKETLAKE.
19563 (PTA_ROCKETLAKE): Ditto.
19564 * doc/extend.texi: Add rocketlake.
19565 * doc/invoke.texi: Add rocketlake.
19567 2021-04-12 Cui,Lili <lili.cui@intel.com>
19569 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
19570 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
19571 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
19572 * doc/invoke.texi: Change alderlake ISA list.
19574 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
19576 PR middle-end/98088
19577 * omp-expand.c (expand_oacc_collapse_init): Update condition in
19580 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
19583 * config/i386/serializeintrin.h (_serialize): Defined as macro.
19585 2021-04-10 Jakub Jelinek <jakub@redhat.com>
19588 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
19589 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
19591 2021-04-10 Jakub Jelinek <jakub@redhat.com>
19593 PR middle-end/99989
19594 * gimple-ssa-warn-alloca.c
19595 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
19596 0 with integer precision unconditionally.
19598 2021-04-10 Jakub Jelinek <jakub@redhat.com>
19600 PR rtl-optimization/98601
19601 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
19602 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
19603 unaligned_mems handle VOIDmode like BLKmode.
19605 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
19608 * tree.c (free_lang_data_in_decl): Do not release body of
19609 declare_variant_alt.
19611 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
19613 * config/aarch64/aarch64.c (aarch64_option_restore): If the
19614 architecture was specified explicitly and the tuning wasn't,
19615 tune for the architecture rather than the configured default CPU.
19617 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
19619 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
19620 as the temporary register.
19622 2021-04-09 Martin Liska <mliska@suse.cz>
19624 * doc/extend.texi: Move non-target attributes on the top level.
19626 2021-04-09 Martin Liska <mliska@suse.cz>
19628 * doc/invoke.texi: Document minimum and maximum value of the
19629 argument for both supported compression algorithms.
19631 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
19633 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
19634 TLS BSS before TLS data.
19635 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
19637 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
19639 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
19641 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
19643 * match.pd: Extend vec_cond folds to handle shifts.
19645 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
19647 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
19650 2021-04-08 Alex Coplan <alex.coplan@arm.com>
19653 * config/arm/iterators.md (MVE_vecs): New.
19654 (V_elem): Also handle V2DF.
19655 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
19656 (*mve_vdup<mode>): ... this. Remove second alternative since
19657 vec_duplicate of const_int is not canonical RTL, and we don't
19658 want to match symbol_refs.
19659 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
19661 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
19663 * fold-const.c (fold_single_bit_test): Fix typo.
19664 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
19667 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
19669 PR tree-optimization/97513
19670 * tree-vect-slp.c (vect_add_slp_permutation): New function,
19672 (vectorizable_slp_permutation): ...here. Detect cases in which
19673 all VEC_PERM_EXPRs are guaranteed to have the same stepped
19674 permute vector and only generate one permute vector for that case.
19675 Extend that case to handle variable-length vectors.
19677 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
19679 PR tree-optimization/99873
19680 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
19681 (vect_build_slp_instance): Don't split store groups that could
19682 use IFN_STORE_LANES.
19684 2021-04-07 Jakub Jelinek <jakub@redhat.com>
19687 * varasm.c (output_constant_pool_contents): Don't strip name encoding
19688 from XSTR (desc->sym, 0) or from label before passing those to
19691 2021-04-07 Richard Biener <rguenther@suse.de>
19693 PR tree-optimization/99954
19694 * tree-loop-distribution.c: Include tree-affine.h.
19695 (generate_memcpy_builtin): Try using tree-affine to prove
19697 (loop_distribution::classify_builtin_ldst): Always classify
19700 2021-04-07 Richard Biener <rguenther@suse.de>
19702 PR tree-optimization/99947
19703 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
19704 steps vector to avoid pushing elements from the reallocated
19707 2021-04-07 Richard Biener <rguenther@suse.de>
19709 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
19710 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
19712 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
19714 (debug_vn_reference_ops): New.
19716 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
19718 PR tree-optimization/98736
19719 * tree-loop-distribution.c
19720 * (loop_distribution::bb_top_order_init):
19721 Compute RPO with programing order preserved by calling function
19722 rev_post_order_and_mark_dfs_back_seme.
19724 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
19727 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
19728 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
19730 (process_bb_lives): Don't update biggest mode of hard reg for
19731 implicit in multi-register group. Use the new functions for
19732 updating dead_set and unused_set by register notes.
19734 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
19736 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
19739 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
19741 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
19742 (skylake_memset): Likewise.
19743 (skylake_cost): Change CLEAR_RATIO to 17.
19744 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
19745 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
19746 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
19748 2021-04-06 Richard Biener <rguenther@suse.de>
19750 PR tree-optimization/99880
19751 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
19752 set vectorized defs of relevant PHIs.
19754 2021-04-06 Richard Biener <rguenther@suse.de>
19756 PR tree-optimization/99924
19757 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
19758 nodes w/o scalar stmts as visited.
19760 2021-04-06 Alex Coplan <alex.coplan@arm.com>
19763 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
19764 PCS for [su]fix_optab.
19766 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
19768 * config/darwin.c (machopic_legitimize_pic_address): Check
19769 that the current pic register is one of the hard reg set
19770 before setting liveness.
19772 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
19774 * config/darwin.c (machopic_legitimize_pic_address): Fix
19775 whitespace, remove unused code.
19777 2021-04-03 Jakub Jelinek <jakub@redhat.com>
19779 PR tree-optimization/99882
19780 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
19783 2021-04-03 Jakub Jelinek <jakub@redhat.com>
19785 PR rtl-optimization/99863
19786 * dse.c (replace_read): Drop regs_live argument. Instead of
19787 regs_live, use store_insn->fixed_regs_live if non-NULL,
19788 otherwise punt if insns sequence clobbers or sets any hard
19791 2021-04-03 Jakub Jelinek <jakub@redhat.com>
19794 * targhooks.h (default_print_patchable_function_entry_1): Declare.
19795 * targhooks.c (default_print_patchable_function_entry_1): New function,
19796 copied from default_print_patchable_function_entry with an added flags
19798 (default_print_patchable_function_entry): Rewritten into a small
19799 wrapper around default_print_patchable_function_entry_1.
19800 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
19802 (rs6000_print_patchable_function_entry): New function.
19804 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
19806 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
19808 2021-04-01 Jason Merrill <jason@redhat.com>
19811 * common.opt: Document v15 and v16.
19813 2021-04-01 Richard Biener <rguenther@suse.de>
19815 PR tree-optimization/99863
19816 * gimplify.c (gimplify_init_constructor): Recompute vector
19819 2021-04-01 Jakub Jelinek <jakub@redhat.com>
19821 * doc/extend.texi (symver attribute): Fix up syntax errors
19824 2021-04-01 Jakub Jelinek <jakub@redhat.com>
19826 PR tree-optimization/96573
19827 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
19828 also pointer types.
19830 2021-04-01 Richard Biener <rguenther@suse.de>
19832 PR tree-optimization/99856
19833 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
19834 precision to vector element precision.
19836 2021-04-01 Martin Jambor <mjambor@suse.cz>
19838 PR tree-optimization/97009
19839 * tree-sra.c (access_or_its_child_written): New function.
19840 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
19843 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
19846 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
19848 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
19851 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
19852 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
19853 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
19854 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
19855 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
19856 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
19858 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
19859 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
19860 (define_attr "prefixed"): Update initializer.
19862 2021-03-31 Jakub Jelinek <jakub@redhat.com>
19865 * dwarf2out.c (debug_ranges_dwo_section): New variable.
19866 (DW_RANGES_IDX_SKELETON): Define.
19867 (struct dw_ranges): Add begin_entry and end_entry members.
19868 (DEBUG_DWO_RNGLISTS_SECTION): Define.
19869 (add_ranges_num): Adjust r initializer for addition of *_entry
19871 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
19872 set idx to DW_RANGES_IDX_SKELETON.
19873 (use_distinct_base_address_for_range): New function.
19874 (index_rnglists): Don't set r->idx if it is equal to
19875 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
19876 r->end_entry for -gsplit-dwarf if those will be needed by
19878 (output_rnglists): Add DWO argument. If true, switch to
19879 debug_ranges_dwo_section rather than debug_ranges_section.
19880 Adjust l1/l2 label indexes. Only output the offset table when
19881 dwo is true and don't include in there the skeleton range
19882 entry if present. For -gsplit-dwarf, skip ranges that belong
19883 to the other rnglists section. Change return type from void
19884 to bool and return true if there are any range entries for
19885 the other section. For dwarf_split_debug_info use
19886 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
19887 entries instead of DW_RLE_start_end, DW_RLE_start_length and
19888 DW_RLE_base_address. Use use_distinct_base_address_for_range.
19889 (init_sections_and_labels): Initialize debug_ranges_dwo_section
19890 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
19891 and range_base_label indexes.
19892 (dwarf2out_finish): Call index_rnglists earlier before finalizing
19893 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
19894 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
19895 with different dwo arguments.
19896 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
19898 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
19900 PR tree-optimization/98268
19901 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
19902 recompute_tree_invariant_for_addr_expr after successfully
19903 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
19905 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
19907 PR tree-optimization/99726
19908 * tree-data-ref.c (create_intersect_range_checks_index): Bail
19909 out if there is more than one access function SCEV for the loop
19912 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
19914 PR rtl-optimization/97141
19915 PR rtl-optimization/98726
19916 * emit-rtl.c (valid_for_const_vector_p): Return true for
19918 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
19919 poly_wide_int instead of a wide_int.
19920 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
19922 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
19923 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
19924 false for CONST_VECTORs that cannot be forced to memory.
19925 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
19926 is too complex to force to memory, build it up from individual
19929 2021-03-31 Jan Hubicka <jh@suse.cz>
19932 * cgraph.c (cgraph_node::release_body): Fix overactive check.
19934 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
19937 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
19940 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
19942 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
19943 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
19945 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
19946 "rep movsb/stosb" only for known sizes.
19947 * config/i386/i386-options.c (processor_cost_table): Use Ice
19948 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
19949 Rapids and Alder Lake.
19950 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
19951 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
19952 (icelake_memset): Likewise.
19953 (icelake_cost): Likewise.
19954 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
19957 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
19960 * config/aarch64/aarch64.c
19961 (aarch64_vectorize_preferred_vector_alignment): Query the size
19962 of the provided SVE vector; do not assume that all SVE vectors
19963 have the same size.
19965 2021-03-31 Jan Hubicka <jh@suse.cz>
19968 * cgraph.c (cgraph_node::release_body): Remove all callers and
19970 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
19971 * cgraphunit.c (cgraph_node::expand): And here.
19973 2021-03-31 Martin Liska <mliska@suse.cz>
19975 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
19976 and one negated condition.
19978 2021-03-31 Jakub Jelinek <jakub@redhat.com>
19979 Richard Sandiford <richard.sandiford@arm.com>
19982 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
19983 constraints on operands[2] and similarly 0 and rk constraints
19984 on operands[1] corresponding to that.
19986 2021-03-31 Jakub Jelinek <jakub@redhat.com>
19989 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
19990 linker doesn't support DWARF sections new in DWARF5.
19991 * config/i386/i386-options.c (ix86_option_override_internal): Default
19992 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
19994 * config.in: Regenerated.
19995 * configure: Regenerated.
19997 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20000 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
20001 available issue_info before using it.
20003 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20006 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
20009 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
20012 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
20013 (altivec_lvsl_reg_<mode>): ... this.
20014 (altivec_lvsr_reg): Change to ...
20015 (altivec_lvsr_reg_<mode>): ... this.
20016 * config/rs6000/predicates.md (vec_set_index_operand): New.
20017 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20018 Enable 32bit variable vec_insert for all TARGET_VSX.
20019 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
20020 Enable 32bit variable vec_insert for p9 and above.
20021 (rs6000_expand_vector_set_var_p8): Rename to ...
20022 (rs6000_expand_vector_set_var_p7): ... this.
20023 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
20025 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
20026 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
20027 gen_altivec_lvsr_reg_di.
20029 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
20032 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
20033 (__rdtscp): Likewise.
20035 2021-03-30 Tamar Christina <tamar.christina@arm.com>
20037 PR tree-optimization/99825
20038 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
20039 Reject non-mult 2 lanes.
20041 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
20044 * config/arm/arm.c (arm_file_start): Fix emission of
20045 Tag_ABI_VFP_args attribute.
20047 2021-03-30 Richard Biener <rguenther@suse.de>
20049 PR tree-optimization/99824
20050 * stor-layout.c (set_min_and_max_values_for_integral_type):
20051 Assert the precision is within the bounds of
20052 WIDE_INT_MAX_PRECISION.
20053 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
20054 the outermost component ref only to lower the access size
20055 and initialize that from the access type.
20057 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
20060 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
20061 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
20063 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
20065 * config/aarch64/aarch64.md
20066 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
20067 attribute to disambiguate between SIMD and FP variants of the
20070 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
20072 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
20073 (analyze_ssa_name_flags): Fix typo in comment.
20075 2021-03-29 Alex Coplan <alex.coplan@arm.com>
20078 * config/aarch64/aarch64-sve-builtins.cc
20079 (function_builder::add_function): Add placeholder_p argument, use
20080 placeholder decls if this is set.
20081 (function_builder::add_unique_function): Instead of conditionally adding
20082 direct overloads, unconditionally add either a direct overload or a
20084 (function_builder::add_overloaded_function): Set placeholder_p if we're
20085 using C++ overloads. Use the obstack for string storage instead
20086 of relying on the tree nodes.
20087 (function_builder::add_overloaded_functions): Don't return early for
20088 m_direct_overloads: we need to add placeholders.
20089 * config/aarch64/aarch64-sve-builtins.h
20090 (function_builder::add_function): Add placeholder_p argument.
20092 2021-03-29 Richard Biener <rguenther@suse.de>
20094 PR tree-optimization/99807
20095 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
20096 assert below VEC_PERM handling.
20098 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20101 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
20102 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
20103 matching const_int 0.
20104 (move_lo_quad_internal_be_<mode>): Likewise.
20105 (move_lo_quad_<mode>): Update for the above.
20106 * config/aarch64/iterators.md (VQ_2E): Delete.
20108 2021-03-29 Jakub Jelinek <jakub@redhat.com>
20110 PR tree-optimization/99777
20111 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
20112 types other than scalar integral types.
20114 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
20116 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
20117 XCOFF TLS reloc decorations.
20119 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
20121 * doc/analyzer.texi (Analyzer Internals): Update link to
20122 "A Memory Model for Static Analysis of C Programs".
20124 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
20126 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
20127 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
20129 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
20130 (rs6000_special_round_type_align): Recursively check innermost first
20133 2021-03-26 Jakub Jelinek <jakub@redhat.com>
20136 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
20137 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
20138 assignment with drap_reg active, queue reg save for hfp with offset 0
20139 and flush queued reg saves. When handling a push with rule18,
20140 defer queueing reg save for hfp and just assert the offset is 0.
20141 (scan_trace): Assert that fde->rule18 is false.
20143 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
20146 * ira-costs.c (record_reg_classes): Put case with
20147 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
20148 * ira.c (ira_setup_alts): Ditto.
20149 * lra-constraints.c (process_alt_operands): Ditto.
20150 * recog.c (asm_operand_ok): Ditto.
20151 * reload.c (find_reloads): Ditto.
20153 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
20155 * config/aarch64/aarch64-protos.h
20156 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
20157 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
20158 * config/aarch64/aarch64.c (generic_addrcost_table): Update
20159 accordingly, using the same costs as for post_modify.
20160 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
20161 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
20162 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
20163 (a64fx_addrcost_table): Likewise.
20164 (neoversev1_addrcost_table): New.
20165 (neoversev1_tunings): Use neoversev1_addrcost_table.
20166 (aarch64_address_cost): Use the new post_modify costs for CImode
20169 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
20171 * config/aarch64/aarch64.opt
20172 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
20173 * doc/invoke.texi: Document it.
20174 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
20175 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
20176 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
20177 (aarch64_vec_issue_info): New structures.
20178 (cpu_vector_cost): Write comments above the variables rather
20180 (cpu_vector_cost::issue_info): New member variable.
20181 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
20182 and tree-ssa-loop-niter.h.
20183 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
20184 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
20185 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
20186 (thunderx3t110_vector_cost): Initialize issue_info to null.
20187 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
20188 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
20189 (neoversev1_vector_cost): Use them.
20190 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
20191 (aarch64_vector_costs::saw_sve_only_op): New member variable.
20192 (aarch64_vector_costs::num_vector_iterations): Likewise.
20193 (aarch64_vector_costs::scalar_ops): Likewise.
20194 (aarch64_vector_costs::advsimd_ops): Likewise.
20195 (aarch64_vector_costs::sve_ops): Likewise.
20196 (aarch64_vector_costs::seen_loads): Likewise.
20197 (aarch64_simd_vec_costs_for_flags): New function.
20198 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
20199 Count the number of predicate operations required by SVE WHILE
20201 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
20202 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
20203 (aarch64_count_ops): Likewise.
20204 (aarch64_add_stmt_cost): Record whether see an SVE operation
20205 that cannot currently be implementing using Advanced SIMD.
20206 Record issue information about the scalar, Advanced SIMD
20207 and (where relevant) SVE versions of a loop.
20208 (aarch64_vec_op_count::dump): New function.
20209 (aarch64_sve_op_count::dump): Likewise.
20210 (aarch64_estimate_min_cycles_per_iter): Likewise.
20211 (aarch64_adjust_body_cost): If issue information is available,
20212 try to compare the issue rates of the various loop implementations
20213 and increase or decrease the vector body cost accordingly.
20215 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
20217 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
20218 Assume a zero cost for induction phis.
20220 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
20222 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
20224 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
20225 vector comparisons.
20227 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
20229 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
20231 (aarch64_add_stmt_cost): Call it.
20233 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
20235 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
20236 New tuning parameter.
20237 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
20238 (aarch64_estimated_sve_vq): New function.
20239 (aarch64_vector_costs::analyzed_vinfo): New member variable.
20240 (aarch64_vector_costs::is_loop): Likewise.
20241 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
20242 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
20243 (aarch64_record_potential_advsimd_unrolling): New function.
20244 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
20245 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
20246 aarch64_analyze_bb_vinfo on the first use of a costs structure.
20247 Detect whether we're vectorizing a loop for SVE that might be
20248 completely unrolled if it used Advanced SIMD instead.
20249 (aarch64_adjust_body_cost_for_latency): New function.
20250 (aarch64_finish_cost): Call it.
20252 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
20254 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
20255 (aarch64_init_cost): New function.
20256 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
20257 the default unsigned[3].
20258 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
20259 (TARGET_VECTORIZE_INIT_COST): Override.
20260 (TARGET_VECTORIZE_FINISH_COST): Likewise.
20261 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
20263 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
20265 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
20266 (neoversev1_sve_vector_cost): New cost structures.
20267 (neoversev1_vector_cost): Likewise.
20268 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
20270 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
20272 * config/aarch64/aarch64-protos.h
20273 (sve_vec_cost::scatter_store_elt_cost): New member variable.
20274 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
20275 accordingly, taking the cost from the cost of a scalar_store.
20276 (a64fx_sve_vector_cost): Likewise.
20277 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
20279 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
20281 * config/aarch64/aarch64-protos.h
20282 (simd_vec_cost::store_elt_extra_cost): New member variable.
20283 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
20284 accordingly, using the vec_to_scalar cost for the new field.
20285 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
20286 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
20287 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
20288 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
20289 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
20290 (thunderx3t110_advsimd_vector_cost): Likewise.
20291 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
20293 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
20295 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
20296 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
20297 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
20298 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
20299 accordingly, using zero for the new costs.
20300 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
20301 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
20302 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
20303 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
20304 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
20305 (thunderx3t110_advsimd_vector_cost): Likewise.
20306 (aarch64_ld234_st234_vectors): New function.
20307 (aarch64_adjust_stmt_cost): Likewise.
20308 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
20309 the new vector costs.
20311 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
20313 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
20314 derived class of simd_vec_cost. Add information about CLAST[AB]
20315 and FADDA instructions.
20316 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
20317 accordingly, using the vec_to_scalar costs for the new fields.
20318 (a64fx_sve_vector_cost): Likewise.
20319 (aarch64_reduc_type): New function.
20320 (aarch64_sve_in_loop_reduction_latency): Likewise.
20321 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
20322 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
20323 that occur in the loop body.
20324 (aarch64_add_stmt_cost): Update call accordingly.
20326 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
20328 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
20330 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
20331 above the fields rather than to the right.
20332 (simd_vec_cost::reduc_i8_cost): New member variable.
20333 (simd_vec_cost::reduc_i16_cost): Likewise.
20334 (simd_vec_cost::reduc_i32_cost): Likewise.
20335 (simd_vec_cost::reduc_i64_cost): Likewise.
20336 (simd_vec_cost::reduc_f16_cost): Likewise.
20337 (simd_vec_cost::reduc_f32_cost): Likewise.
20338 (simd_vec_cost::reduc_f64_cost): Likewise.
20339 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
20340 accordingly, using the vec_to_scalar_cost for the new fields.
20341 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
20342 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
20343 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
20344 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
20345 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
20346 (thunderx3t110_advsimd_vector_cost): Likewise.
20347 (aarch64_use_new_vector_costs_p): New function.
20348 (aarch64_simd_vec_costs): New function, split out from...
20349 (aarch64_builtin_vectorization_cost): ...here.
20350 (aarch64_is_reduction): New function.
20351 (aarch64_detect_vector_stmt_subtype): Likewise.
20352 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
20353 using the new vector costs.
20355 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
20358 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
20359 TLS declarations as public.
20361 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
20363 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
20364 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
20365 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
20366 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
20367 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
20368 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
20369 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
20370 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
20371 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
20373 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
20376 * config.gcc (*-*-cygwin*): Add winnt-d.o
20377 (*-*-mingw*): Likewise.
20378 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
20379 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
20380 * config/i386/t-cygming: Add winnt-d.o.
20381 * config/i386/winnt-d.c: New file.
20383 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
20385 * config/freebsd-d.c: Include memmodel.h.
20387 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
20390 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
20391 * config/t-openbsd: Add openbsd-d.o.
20392 * config/openbsd-d.c: New file.
20394 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
20396 PR tree-optimization/96974
20397 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
20398 with graceful exit.
20400 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
20403 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
20407 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
20408 always_inline in system headers.
20410 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
20412 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
20414 2021-03-25 Jakub Jelinek <jakub@redhat.com>
20417 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
20418 * fold-const.c (operand_compare::operand_equal_p): Don't compare
20419 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
20421 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
20425 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
20426 always_inline in system headers.
20428 2021-03-25 Richard Biener <rguenther@suse.de>
20430 PR tree-optimization/99746
20431 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
20432 the scalar stmt as patterned. Instead set up required things
20435 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
20437 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
20440 2021-03-24 Martin Liska <mliska@suse.cz>
20443 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
20445 * config/i386/i386-options.c (ix86_option_override_internal):
20446 Add run-time assert.
20448 2021-03-24 Martin Jambor <mjambor@suse.cz>
20451 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
20452 parameters with unknown type.
20453 (ipacp_value_safe_for_type): New function.
20454 (propagate_vals_across_arith_jfunc): Verify that the constant type
20455 can be used for a type of the formal parameter.
20456 (propagate_vals_across_ancestor): Likewise.
20457 (propagate_scalar_across_jump_function): Likewise. Pass the type
20458 also to propagate_vals_across_ancestor.
20460 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
20463 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
20465 (movmisalign<mode>_mve_load): Likewise.
20467 2021-03-24 Jakub Jelinek <jakub@redhat.com>
20470 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
20471 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
20473 2021-03-24 Alexandre Oliva <oliva@adacore.com>
20475 * doc/sourcebuild.texi (sysconf): New effective target.
20477 2021-03-24 Alexandre Oliva <oliva@adacore.com>
20479 * config/i386/predicates.md (reg_or_const_vec_operand): New.
20480 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
20481 the now *-prefixed insn_and_split, turn the splitter const vec
20482 into an input for the insn, making it an ignored immediate for
20483 non-split cases, and loaded into the scratch register
20486 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
20489 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
20490 Use define_relaxed_memory_constraint for them.
20492 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
20495 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
20496 colon to the diagnostic message.
20498 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
20500 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
20502 (try_fwprop_subst_note): Use set_info instead of insn_info.
20503 (try_fwprop_subst_pattern): Likewise.
20504 (try_fwprop_subst_notes): Likewise.
20505 (try_fwprop_subst): Likewise.
20506 (forward_propagate_subreg): Likewise.
20507 (forward_propagate_and_simplify): Likewise.
20508 (forward_propagate_into): Likewise.
20509 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
20511 (set_info::single_nondebug_insn_use): Likewise.
20512 (set_info::single_phi_use): Likewise.
20513 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
20515 (set_info::single_nondebug_insn_use): Likewise.
20516 (set_info::single_phi_use): Likewise.
20518 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
20520 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
20522 2021-03-23 Jakub Jelinek <jakub@redhat.com>
20525 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
20526 expand_mult to perform an unsigned rather than a signed
20529 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
20532 * config/i386/cpuid.h (__cpuid): Add __volatile__.
20533 (__cpuid_count): Likewise.
20535 2021-03-23 Richard Biener <rguenther@suse.de>
20537 PR tree-optimization/99721
20538 * tree-vect-slp.c (vect_slp_analyze_node_operations):
20539 Make sure we can schedule the node.
20541 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
20543 * config/riscv/riscv.c (riscv_subword): Take endianness into
20544 account when calculating the byte offset.
20546 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
20548 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
20549 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
20550 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
20551 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
20552 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
20553 new predicate "subreg_lowpart_operator"
20555 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
20557 * config/riscv/riscv.c (riscv_swap_instruction): New function
20558 to byteswap an SImode rtx containing an instruction.
20559 (riscv_trampoline_init): Byteswap the generated instructions
20562 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
20564 * common/config/riscv/riscv-common.c
20565 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
20566 * config.gcc (riscv32be-*, riscv64be-*): Set
20567 TARGET_BIG_ENDIAN_DEFAULT to 1.
20568 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
20569 depending on default endianness.
20570 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20571 * config/riscv/linux.h (LINK_SPEC): Likewise.
20572 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
20573 default endianness.
20574 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
20576 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
20578 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
20579 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20580 * config/riscv/linux.h (LINK_SPEC): Likewise.
20581 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
20583 (BYTES_BIG_ENDIAN): Handle big endian.
20584 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
20585 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
20587 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
20589 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
20591 * regcprop.c (find_oldest_value_reg): Ask target whether
20592 different mode is fine for replacement register.
20594 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
20596 PR tree-optimization/99296
20597 * value-range.cc (irange::irange_set_1bit_anti_range): New.
20598 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
20599 * value-range.h (irange::irange_set_1bit_anti_range): New.
20601 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
20604 * config/aarch64/constraints.md (UtQ): Use
20605 define_relaxed_memory_constraint for it.
20606 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
20607 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
20608 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
20609 (have_relaxed_memory_constraints): New static var.
20610 (relaxed_memory_start, relaxed_memory_end): Ditto.
20611 (add_constraint): Add arg is_relaxed_memory. Check name for
20612 relaxed memory. Set up is_relaxed_memory in constraint_data and
20613 have_relaxed_memory_constraints. Adjust calls.
20614 (choose_enum_order): Process relaxed memory.
20615 (write_tm_preds_h): Ditto.
20616 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
20617 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
20618 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
20619 * ira-lives.c (single_reg_class): Use
20620 insn_extra_relaxed_memory_constraint.
20621 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
20622 * lra-constraints.c (valid_address_p): Use
20623 insn_extra_relaxed_memory_constraint instead of other memory
20625 (process_alt_operands): Process CT_RELAXED_MEMORY.
20626 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
20627 * recog.c (asm_operand_ok, preprocess_constraints): Process
20629 * reload.c (find_reloads): Ditto.
20630 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
20631 * stmt.c (parse_input_constraint): Use
20632 insn_extra_relaxed_memory_constraint.
20634 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
20637 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
20640 2021-03-22 Alex Coplan <alex.coplan@arm.com>
20643 * config/arm/arm-protos.h (neon_make_constant): Add generate
20644 argument to guard emitting insns, default to true.
20645 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
20646 CONST_VECTORs which neon_make_constant can't handle.
20647 (neon_vdup_constant): Add generate argument, avoid emitting
20648 insns if it's not set.
20649 (neon_make_constant): Plumb new generate argument through.
20650 * config/arm/constraints.md (Ui): New. Use it...
20651 * config/arm/mve.md (*mve_mov<mode>): ... here.
20652 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
20653 synthesize constants.
20655 2021-03-22 Richard Biener <rguenther@suse.de>
20657 * debug.h: Add deprecation warning.
20659 2021-03-22 Richard Biener <rguenther@suse.de>
20661 PR tree-optimization/99694
20662 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
20665 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
20668 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
20669 after type checking.
20671 2021-03-22 Jakub Jelinek <jakub@redhat.com>
20675 * dwarf2out.c (get_full_len): Use get_precision rather than
20677 (add_const_value_attribute): Make sure add_AT_wide argument has
20678 precision prec rather than some very wide one.
20680 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
20682 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
20683 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
20684 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
20685 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
20686 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
20687 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
20688 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
20689 *fix_trunc<mode>si2_internal): Fix empty split condition.
20690 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
20691 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
20692 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
20693 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
20695 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
20698 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
20699 Convert idx to DImode.
20700 (rs6000_expand_vector_set_var_p8): Likewise.
20702 2021-03-21 Jakub Jelinek <jakub@redhat.com>
20705 * dwarf2out.c (insert_float): Change return type from void to
20706 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
20707 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
20710 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
20713 * config/i386/i386.c (construct_container): Check cfun != NULL
20714 before accessing silent_p.
20716 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
20718 * asan.c: Fix typos in comments.
20720 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
20722 PR rtl-optimization/99680
20723 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
20724 (process_address_1): Check empty constraint before using
20727 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
20729 * config/rs6000/rs6000.c (power10_cost): New.
20730 (rs6000_option_override_internal): Set Power10 costs.
20731 (rs6000_issue_rate): Set Power10 issue rate.
20732 * config/rs6000/power10.md: Rewrite for Power10.
20734 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
20737 * lra-constraints.c (process_address_1): Don't use unknown
20738 constraint for address constraint.
20740 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
20743 * config.gcc (powerpc-*-darwin8): Delete the reference to
20744 the now removed darwin8.h.
20746 2021-03-19 Olivier Hainque <hainque@adacore.com>
20749 * config/vxworksae.h (VX_CPU_PREFIX): Define.
20751 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
20753 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
20755 2021-03-19 Tamar Christina <tamar.christina@arm.com>
20757 PR tree-optimization/99656
20758 * tree-vect-slp-patterns.c (linear_loads_p,
20759 complex_add_pattern::matches, is_eq_or_top,
20760 vect_validate_multiplication, complex_mul_pattern::matches,
20761 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
20762 * tree-vectorizer.h: (complex_load_perm_t): Removed.
20763 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
20764 complex_load_perm_t.
20766 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
20769 * config/i386/i386-options.c (ix86_init_machine_status): Set
20771 * config/i386/i386.c (init_cumulative_args): Set silent_p to
20773 (construct_container): Return early for return and argument
20774 errors if silent_p is true.
20775 * config/i386/i386.h (machine_function): Add silent_p.
20777 2021-03-19 Jakub Jelinek <jakub@redhat.com>
20780 * config/arm/constraints.md (Ds): New constraint.
20781 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
20782 constraint instead of w,Dm.
20784 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
20786 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
20789 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
20791 PR middle-end/99641
20792 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
20793 array type, do the computation of the current position in sizetype.
20795 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
20798 * lra-constraints.c (process_address_1): Use lookup_constraint
20799 only for a single constraint.
20801 2021-03-18 Martin Sebor <msebor@redhat.com>
20803 PR middle-end/99502
20804 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
20805 (inbounds_memaccess_p): ...to this. Check the ending offset of
20806 the accessed member.
20808 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
20810 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
20811 %> quote markers to error messages.
20812 (gcn_goacc_validate_dims): Likewise.
20813 (gcn_conditional_register_usage): Remove exclaimation mark from error
20815 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
20817 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
20819 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
20822 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
20823 Kito Cheng <kito.cheng@sifive.com>
20825 * config/riscv/riscv.c (riscv_block_move_straight): Change type
20826 to unsigned HOST_WIDE_INT for parameter and local variable with
20827 HOST_WIDE_INT type.
20828 (riscv_adjust_block_mem): Ditto.
20829 (riscv_block_move_loop): Ditto.
20830 (riscv_expand_block_move): Ditto.
20832 2021-03-18 Nick Clifton <nickc@redhat.com>
20834 * config/v850/v850.c (construct_restore_jr): Increase static
20836 (construct_save_jarl): Likewise.
20837 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
20839 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20841 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
20842 (aarch64_override_options_internal): Use it.
20843 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
20846 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
20848 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
20849 error message format issues.
20850 (nios2_option_override): Likewise.
20851 (nios2_expand_fpu_builtin): Likewise.
20852 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
20853 truncation warning.
20854 (nios2_expand_custom_builtin): More error message format fixes.
20855 (nios2_expand_rdwrctl_builtin): Likewise.
20856 (nios2_expand_rdprs_builtin): Likewise.
20857 (nios2_expand_eni_builtin): Likewise.
20858 (nios2_expand_builtin): Likewise.
20859 (nios2_register_custom_code): Likewise.
20860 (nios2_valid_target_attribute_rec): Likewise.
20861 (nios2_add_insn_asm): Fix uninitialized variable warning.
20863 2021-03-17 Jan Hubicka <jh@suse.cz>
20865 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
20866 of gather to match reality.
20867 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
20869 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20871 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
20872 to compare against CC_REG rather than NE.
20874 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
20877 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
20878 inline assembly statements.
20879 (ix86_print_operand): Update 'P' handling for -fno-plt.
20881 2021-03-17 Tamar Christina <tamar.christina@arm.com>
20884 * config/aarch64/aarch64.c
20885 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
20887 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
20890 * config/rs6000/predicates.md (branch_comparison_operator): Allow
20891 ordered and unordered for CCFPmode, if flag_finite_math_only.
20893 2021-03-16 Jakub Jelinek <jakub@redhat.com>
20896 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
20897 rather than ASHIFT.
20898 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
20900 2021-03-16 Martin Liska <mliska@suse.cz>
20903 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
20904 cl_optimization_compare function.
20906 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
20908 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
20911 2021-03-16 Jakub Jelinek <jakub@redhat.com>
20914 * config/i386/i386.h (struct machine_function): Add
20915 has_explicit_vzeroupper bitfield.
20916 * config/i386/i386-expand.c (ix86_expand_builtin): Set
20917 cfun->machine->has_explicit_vzeroupper when expanding
20918 IX86_BUILTIN_VZEROUPPER.
20919 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
20920 Do the mode switching only when TARGET_VZEROUPPER, expensive
20921 optimizations turned on and not optimizing for size.
20922 (pass_insert_vzeroupper::gate): Enable even when
20923 cfun->machine->has_explicit_vzeroupper is set.
20925 2021-03-16 Jakub Jelinek <jakub@redhat.com>
20928 * config/aarch64/aarch64.c
20929 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
20930 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
20931 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
20933 2021-03-15 Richard Biener <rguenther@suse.de>
20935 PR tree-optimization/98834
20936 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
20937 subsetting by truncating the access size.
20939 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
20941 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
20942 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
20945 2021-03-15 Martin Liska <mliska@suse.cz>
20947 * spellcheck.c: Add missing comma in initialization.
20949 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
20951 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
20952 alternative 2 and alternative 1 with alternative 3 using
20953 YW register constraint.
20954 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
20955 using YW register constraint.
20956 (*vec_extractv16qi_zext): Ditto.
20957 (*vec_extractv4si): Merge alternatives 4 and 5
20958 using Yw register constraint.
20959 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
20961 2021-03-13 Martin Sebor <msebor@redhat.com>
20963 PR tree-optimization/99489
20964 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
20965 is not a call statement.
20967 2021-03-13 Jakub Jelinek <jakub@redhat.com>
20969 PR tree-optimization/99544
20970 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
20971 if for vector types multiplication can't be done in type's mode.
20973 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
20976 * config/sparc/constraints.md (w): Rename to...
20977 (W): ... this and ditch previous implementation.
20978 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
20979 (*movdf_insn_sp64): Likewise.
20980 (*mov<VM64:mode>_insn_sp64): Likewise.
20981 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
20983 (atomic_compare_and_swap_leon3_1): Likewise.
20984 (*atomic_compare_and_swapdi_v8plus): Likewise.
20985 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
20986 architecture and add missing address validity check during LRA.
20988 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
20991 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
20992 occuring for assumed-size arrays in use_device_{ptr,addr}.
20994 2021-03-12 Jakub Jelinek <jakub@redhat.com>
20997 * config/i386/constraints.md (YW): New internal constraint.
20998 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
20999 (*<sse2_avx2>_<insn><mode>3<mask_name>,
21000 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
21001 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
21003 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
21004 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
21005 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
21006 into one, use Yw instead of former x,v.
21007 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
21008 the last alternative.
21009 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
21010 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
21011 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
21012 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
21013 into one, use <v_Yw> instead of former x,v.
21014 (avx2_interleave_highv32qi<mask_name>,
21015 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
21016 constraints. Add && <mask_avx512bw_condition> to condition.
21017 (avx2_interleave_lowv32qi<mask_name>,
21018 vec_interleave_lowv16qi<mask_name>,
21019 avx2_interleave_highv16hi<mask_name>,
21020 vec_interleave_highv8hi<mask_name>,
21021 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
21022 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
21023 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
21024 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
21025 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
21026 Yw instead of v in constraints.
21027 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
21028 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
21029 instead of Yv in constraints.
21030 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
21031 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
21032 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
21033 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
21034 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
21036 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
21037 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
21038 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
21039 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
21040 two, one with just x, another isa avx512vl with v.
21042 2021-03-12 Martin Liska <mliska@suse.cz>
21044 * doc/invoke.texi: Add missing param documentation.
21046 2021-03-11 David Malcolm <dmalcolm@redhat.com>
21049 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
21050 analyzer/trimmed-graph.o.
21051 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
21052 feasibility checking to reflect new implementation.
21053 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
21055 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
21057 2021-03-11 David Malcolm <dmalcolm@redhat.com>
21059 * digraph.cc (selftest::test_shortest_paths): Update
21060 shortest_paths init for new param. Add test of
21061 SPS_TO_GIVEN_TARGET.
21062 * shortest-paths.h (enum shortest_path_sense): New.
21063 (shortest_paths::shortest_paths): Add "sense" param.
21064 Update for renamings. Generalize to use "sense" param.
21065 (shortest_paths::get_shortest_path): Rename param.
21066 (shortest_paths::m_sense): New field.
21067 (shortest_paths::m_prev): Rename...
21068 (shortest_paths::m_best_edge): ...to this.
21069 (shortest_paths::get_shortest_path): Update for renamings.
21070 Conditionalize flipping of path on sense of traversal.
21072 2021-03-11 David Malcolm <dmalcolm@redhat.com>
21074 * digraph.cc (selftest::test_shortest_paths): Add test coverage
21075 for paths from B and C.
21076 * shortest-paths.h (shortest_paths::shortest_paths): Handle
21077 unreachable nodes, rather than asserting.
21079 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
21082 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
21083 xcoff_tbss_section_name.
21084 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
21085 * xcoffout.c (xcoff_tbss_section_name): Delete.
21086 * xcoffout.h (xcoff_tbss_section_name): Delete.
21088 2021-03-11 Richard Biener <rguenther@suse.de>
21090 PR tree-optimization/99523
21091 * tree-cfg.c (dump_function_to_file): Dump SSA names
21092 w/o identifier to the decls section as well, not only those
21093 without a VAR_DECL.
21095 2021-03-11 Jakub Jelinek <jakub@redhat.com>
21098 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
21099 function calls with lhs fail if the lhs don't have compatible types.
21101 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
21103 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
21104 Change FRAME_POINTER_REGNUM to correspond to a new faked
21105 register faked_fp, part of GENNONACR_REGS like faked_ap.
21106 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
21107 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
21108 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
21109 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
21110 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
21112 (CRIS_REAL_FP_REGNUM): New constant.
21113 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
21114 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
21115 (cris_initial_elimination_offset): Handle elimination changes
21116 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
21117 and add one from FRAME_POINTER_REGNUM to
21118 HARD_FRAME_POINTER_REGNUM.
21119 (cris_expand_prologue, cris_expand_epilogue): Emit code for
21120 hard_frame_pointer_rtx instead of frame_pointer_rtx.
21122 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
21125 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
21126 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
21128 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
21131 * lra-constraints.c (process_address_1): Don't check unknown
21132 constraint, use X for empty constraint.
21134 2021-03-10 Alex Coplan <alex.coplan@arm.com>
21136 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
21137 Fix typo in comment describing "is_ha" argument.
21139 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
21141 * doc/sourcebuild.texi: Document LRA target selector.
21143 2021-03-10 David Malcolm <dmalcolm@redhat.com>
21145 * doc/ux.texi: Add subsection contrasting interactive versus
21146 batch usage of GCC.
21148 2021-03-10 Joel Hutton <joel.hutton@arm.com>
21151 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
21153 (vectorizable_load): Fix gather load mask check condition.
21155 2021-03-10 Richard Biener <rguenther@suse.de>
21157 PR tree-optimization/99510
21158 * tree.c (check_aligned_type): Check that the candidate
21159 has TYPE_USER_ALIGN set instead of matching with the
21162 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
21164 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
21165 float and vector integer modes only if the mode is not larger.
21167 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
21169 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
21171 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
21173 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
21175 * ira-lives.c (single_reg_class): Ditto.
21177 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
21179 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
21180 the architecture-specific rtems.h.
21181 (aarch64-*-rtems*): Likewise.
21182 (arm*-*-rtems*): Likewise.
21183 (epiphany-*-rtems*): Likewise.
21184 (riscv*-*-rtems*): Likewise.
21186 2021-03-09 Jakub Jelinek <jakub@redhat.com>
21188 PR tree-optimization/99305
21189 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
21190 before integer_all_onesp instead of vice versa.
21192 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
21194 * common/config/arm/arm-common.c (arm_config_default): Change type
21195 of 'i' to unsigned.
21197 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
21200 * lra-constraints.c (process_address_1): Process constraint 'g'
21201 separately and digital constraints containing more one digit.
21203 2021-03-09 Nick Clifton <nickc@redhat.com>
21205 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
21206 (DWARF"_DEBUGGING_INFO): Define.
21208 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
21211 * calls.c (initialize_argument_information): When the argument
21212 is passed by reference, do not make a copy in a thunk only if
21213 the argument is already in memory. Remove redundant test for
21214 the case of callee copy.
21216 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
21219 * lra-constraints.c (process_address_1): Process 0..9 constraints
21220 in process_address_1.
21222 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
21224 * config/s390/s390.c (struct s390_processor processor_table):
21225 Binutils name string must not be empty.
21227 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
21229 * config/arc/arc.c (arc_attr_type): Remove function.
21231 2021-03-09 Martin Liska <mliska@suse.cz>
21234 * config/i386/i386-options.c (ix86_option_override_internal):
21235 Set isa_flags for OPTS argument and not for the global
21238 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
21240 * config/rs6000/predicates.md (ds_form_mem_operand): Check
21243 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
21246 * config/rs6000/predicates.md (ds_form_mem_operand) New
21248 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
21249 ds_form_mem_operand in ld/lwa patterns.
21250 * config/rs6000/fusion.md: Regenerate file.
21252 2021-03-08 Martin Sebor <msebor@redhat.com>
21254 PR middle-end/98266
21255 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
21256 (array_bounds_checker::check_array_bounds): Call it.
21258 2021-03-08 Martin Sebor <msebor@redhat.com>
21260 PR middle-end/97631
21261 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
21262 (handle_builtin_stxncpy_strncat): Rename locals. Determine
21263 destination size from allocation calls. Issue a more appropriate
21265 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
21266 (handle_builtin_memset): Same.
21268 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
21271 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
21272 to ensure we do not have an Altivec style address.
21273 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
21274 an Altivec style address.
21275 (*vsx_le_perm_store_<mode>): Likewise.
21276 (splitters after *vsx_le_perm_store_<mode>): Likewise.
21277 (vsx_load_<mode>): Disable special expander if passed an Altivec
21279 (vsx_store_<mode>): Likewise.
21281 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21284 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
21285 (aarch64_simd_shift_imm_vec_hi): Likewise.
21286 (aarch64_simd_shift_imm_vec_si): Likewise.
21287 (aarch64_simd_shift_imm_vec_di): Likewise.
21288 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
21289 predicate from above.
21290 (aarch64_shrn<mode>_insn_be): Likewise.
21291 (aarch64_rshrn<mode>_insn_le): Likewise.
21292 (aarch64_rshrn<mode>_insn_be): Likewise.
21293 (aarch64_shrn2<mode>_insn_le): Likewise.
21294 (aarch64_shrn2<mode>_insn_be): Likewise.
21295 (aarch64_rshrn2<mode>_insn_le): Likewise.
21296 (aarch64_rshrn2<mode>_insn_be): Likewise.
21298 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
21301 * lra-constraints.c (skip_contraint_modifiers): New function.
21302 (process_address_1): Use it before lookup_constraint call.
21304 2021-03-08 Martin Liska <mliska@suse.cz>
21307 * config/i386/i386-options.c (ix86_option_override_internal):
21308 Enable UINTR and HRESET for -march that supports it.
21310 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
21312 * config/s390/s390.c (f_constraint_p): New function.
21313 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
21314 (TARGET_MD_ASM_ADJUST): Likewise.
21316 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
21319 * tree-nested.c (convert_local_reference_stmt): Avoid calling
21320 lookup_field_for_decl for Fortran module (= namespace context).
21322 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
21324 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
21325 comparison with arithmetic right shift.
21326 (s390_expand_vcond): No need for a force_reg anymore.
21327 s390_vec_compare will do it.
21328 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
21329 immediate operands.
21331 2021-03-07 Jakub Jelinek <jakub@redhat.com>
21334 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
21335 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
21337 * config/i386/sse.md (v_Yw): New define_mode_attr.
21338 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
21339 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
21341 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
21342 xYw in constraints.
21344 2021-03-06 Julian Brown <julian@codesourcery.com>
21346 * tree-pretty-print.c (dump_generic_node): Emit non-generic
21347 address space info for aggregates.
21349 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
21351 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
21353 2021-03-05 Jakub Jelinek <jakub@redhat.com>
21355 PR middle-end/99322
21356 * tree-cfg.c (bb_to_omp_idx): New variable.
21357 (execute_build_cfg): Release the bb_to_omp_idx vector after
21358 cleanup_tree_cfg returns.
21359 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
21360 for bb_to_omp_idx being a vec<int> instead of pointer to array
21362 (make_edges): Remove bb_to_omp_idx local variable, don't pass
21363 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
21364 vec<int> instead of pointer to array of ints and don't free/release
21366 (remove_bb): When removing a bb and placing forced label somewhere
21367 else, ensure it is put into the same OpenMP region during cfg
21368 pass if possible or to entry successor as fallback. Unregister
21369 bb from bb_to_omp_idx.
21371 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
21374 * lra-constraints.c (process_address_1): Skip decomposing address
21375 for asm insn operand with unknown constraint.
21377 2021-03-05 Martin Jambor <mjambor@suse.cz>
21380 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
21381 corresponding speculative edges if we are about to resolve
21382 sepculation. Make edge direct (and so resolve speculations) before
21383 removing it from call_site_hash.
21384 (cgraph_edge::make_direct): Relax the initial assert to allow calling
21385 the function on speculative direct edges.
21387 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
21389 PR rtl-optimization/99376
21390 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
21391 of low-order zero bits is too large, set the result to 0 directly.
21393 2021-03-04 Jakub Jelinek <jakub@redhat.com>
21395 PR middle-end/93235
21396 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
21397 SUBREG and a SUBREG to op_mode can't be created.
21399 2021-03-04 Alex Coplan <alex.coplan@arm.com>
21402 * config/aarch64/aarch64-sve-builtins.cc
21403 (function_resolver::require_vector_type): Handle error_mark_node.
21405 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
21407 * cfgexpand.c (expand_asm_loc): Pass new parameter.
21408 (expand_asm_stmt): Likewise.
21409 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
21411 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
21412 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
21413 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
21414 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
21415 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
21416 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
21417 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
21418 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
21419 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
21420 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
21421 * doc/tm.texi (md_asm_adjust): Likewise.
21422 * target.def (md_asm_adjust): Likewise.
21424 2021-03-04 Richard Biener <rguenther@suse.de>
21426 PR middle-end/97855
21427 * tree-pretty-print.c: Poison pp_printf.
21428 (dump_decl_name): Avoid use of pp_printf.
21429 (dump_block_node): Likewise.
21430 (dump_generic_node): Likewise.
21432 2021-03-04 Martin Sebor <msebor@redhat.com>
21434 PR middle-end/96963
21435 PR middle-end/94655
21436 * builtins.c (handle_array_ref): New helper.
21437 (handle_mem_ref): New helper.
21438 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
21439 into new helper functions. Correct a workaround for vectorized
21442 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
21444 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
21445 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
21446 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
21447 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
21448 attribute for Power10.
21449 * config/rs6000/mma.md (*movoo): Likewise.
21450 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
21451 (define_mode_attr bits): Add DD/TD modes.
21452 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
21453 store_conditionalpti): Update size attribute for Power10.
21455 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21458 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
21459 -Wuninitialized, -Wmaybe-uninitialized.
21460 (wide-int.o-warn): Likewise.
21462 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
21464 * common/config/arm/arm-common.c: Include configargs.h.
21465 (arm_config_default): New function.
21466 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
21467 processors that do not support Thumb. Take into account the
21468 --with-mode configuration setting for selecting the default.
21469 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
21470 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
21472 2021-03-03 Martin Liska <mliska@suse.cz>
21474 PR gcov-profile/97461
21475 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
21477 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
21480 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
21481 point back the hard frame pointer to its default location when the
21482 frame is larger than SEH_MAX_FRAME_SIZE.
21484 2021-03-03 Jakub Jelinek <jakub@redhat.com>
21487 * config/i386/predicates.md (logic_operator): New define_predicate.
21488 * config/i386/i386.md (mov + mem using comm arith peephole2):
21489 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
21490 and the inner mode is [QH]Imode.
21492 2021-03-03 Jakub Jelinek <jakub@redhat.com>
21495 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
21496 (new_loc_list): Clear end_entry.
21497 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
21498 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
21500 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
21501 initialize also end_entry.
21503 2021-03-03 Jakub Jelinek <jakub@redhat.com>
21506 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
21507 partitions, if in non-layout mode after reorder_blocks also move
21508 affected blocks to ensure a single partition transition.
21510 2021-03-03 Jason Merrill <jason@redhat.com>
21513 * cgraphunit.c (process_function_and_variable_attributes): Don't
21514 warn about flatten on an alias if the target also has it.
21515 * cgraph.h (symtab_node::get_alias_target_tree): New.
21517 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
21519 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
21520 period to symbol name.
21521 (tls_get_addr_internal<mode>): Same.
21523 2021-03-02 David Malcolm <dmalcolm@redhat.com>
21526 * diagnostic-show-locus.c
21527 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
21530 2021-03-02 Martin Sebor <msebor@redhat.com>
21532 PR middle-end/99276
21533 * builtins.c (warn_for_access): Remove stray warning text.
21535 2021-03-02 Martin Sebor <msebor@redhat.com>
21537 PR middle-end/99295
21538 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
21541 2021-03-02 Jakub Jelinek <jakub@redhat.com>
21544 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
21545 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
21546 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
21547 DW_MACRO_define_strx and DW_MACRO_undef_strx.
21548 (save_macinfo_strings): Use DW_MACRO_*_str* even with
21549 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
21550 DW_MACRO_undef_strx.
21552 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
21554 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
21556 (BT_FN_V8HI_V8HI_UINT): Likewise.
21557 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
21558 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
21559 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
21560 New builtin definitions.
21561 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
21562 vector extension version.
21563 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
21564 available with current -march level.
21565 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
21566 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
21567 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
21568 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
21569 (vec_extend_to_fp32_lo): Likewise.
21570 (vec_round_from_fp32): Likewise.
21571 (vec_convert_to_fp16): Likewise.
21572 (vec_convert_from_fp16): Likewise.
21573 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
21574 (vclfnls_v8hi): Likewise.
21575 (vcrnfs_v8hi): Likewise.
21576 (vcfn_v8hi): Likewise.
21577 (vcnf_v8hi): Likewise.
21579 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
21581 * common/config/s390/s390-common.c (processor_flags_table): New entry.
21582 * config.gcc: Enable arch14 for --with-arch and --with-tune.
21583 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
21584 arch14 for unknown CPU models.
21585 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
21586 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
21587 (s390_get_sched_attrmask): Likewise.
21588 (s390_get_unit_mask): Likewise.
21589 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
21590 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
21591 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
21592 (TARGET_NNPA_P): New macro definitions.
21593 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
21594 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
21596 2021-03-02 Jakub Jelinek <jakub@redhat.com>
21598 PR middle-end/95757
21599 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
21600 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
21601 != 1 comparisons if name is lhs of a comparison.
21603 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
21607 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
21608 * config/darwin.c (darwin_should_restore_cfa_state): New.
21609 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
21610 * doc/tm.texi: Regenerated.
21611 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
21612 * dwarf2cfi.c (connect_traces): If the target requests, restore
21613 the CFA expression after a DW_CFA_restore.
21614 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
21616 2021-03-01 Martin Liska <mliska@suse.cz>
21619 * optc-save-gen.awk: Add 4 more exceptions.
21621 2021-03-01 Nathan Sidwell <nathan@acm.org>
21624 * tree.h (TYPE_ALIGN_RAW): New accessor.
21625 (TYPE_ALIGN): Use it.
21627 2021-03-01 Jan Hubicka <jh@suse.cz>
21630 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
21632 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
21635 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
21636 point the hard frame pointer to the SSE register save area instead
21637 of the general register save area. Perform only minimal adjustment
21638 for small frames if it is initially not correctly aligned.
21639 (ix86_expand_prologue): Remove early saves for a SEH target.
21640 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
21642 2021-02-28 Jakub Jelinek <jakub@redhat.com>
21645 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
21646 typo - referneced -> referenced.
21647 * tree.c (component_ref_size): Fix comment typo -
21648 refernce -> reference.
21649 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
21650 traling -> trailing.
21651 (aliasing_component_refs_p): Fix comment typos -
21652 refernce -> reference and refernece -> reference and
21653 traling -> trailing.
21654 (nonoverlapping_refs_since_match_p): Fix comment typo -
21655 referneces -> references.
21656 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
21657 referneces -> references.
21659 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
21661 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
21662 diagnostic message to avoid use of a contraction and format
21665 2021-02-27 Jakub Jelinek <jakub@redhat.com>
21668 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
21669 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
21670 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
21671 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
21674 2021-02-26 Richard Biener <rguenther@suse.de>
21676 PR middle-end/99281
21677 * expr.c (store_field): For calls with return-slot optimization
21678 and addressable return type expand the store directly.
21680 2021-02-26 Richard Biener <rguenther@suse.de>
21683 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
21685 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
21688 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
21691 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
21693 * config.gcc: Add rs6000-pcrel-opt.o.
21694 * config/rs6000/rs6000-pcrel-opt.c: New file.
21695 * config/rs6000/pcrel-opt.md: New file.
21696 * config/rs6000/predicates.md: Add d_form_memory predicate.
21697 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
21698 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
21699 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
21700 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
21701 and make_pass_pcrel_opt().
21702 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
21703 (rs6000_option_override_internal): Add pcrel-opt.
21704 (rs6000_delegitimize_address): Support pcrel-opt.
21705 (rs6000_opt_masks): Add pcrel-opt.
21706 (pcrel_opt_valid_mem_p): New function.
21707 (reg_to_non_prefixed): Make global.
21708 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
21709 (output_pcrel_opt_reloc): New function.
21710 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
21711 (pcrel_extern_addr): Set loads_extern_addr.
21712 Add include for pcrel-opt.md.
21713 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
21714 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
21717 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
21720 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
21721 If TARGET_64BIT and dest is SUBREG, we check the width, if it
21722 equal to SImode, we use SImode operation, just like what we are
21725 2021-02-26 Marek Polacek <polacek@redhat.com>
21727 * builtins.c (warn_for_access): Fix typos.
21729 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
21731 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
21732 mark in front of the immediate quantity.
21733 (<optab>_rolsi3_uxtw): Likewise.
21735 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
21738 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
21739 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
21740 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
21741 address and disable when the FPCXT is not available.
21742 (nonsecure_call_value_reg_thumb2): Likewise.
21744 2021-02-25 Nathan Sidwell <nathan@acm.org>
21747 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
21749 2021-02-25 Tamar Christina <tamar.christina@arm.com>
21751 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
21753 2021-02-25 Richard Biener <rguenther@suse.de>
21755 PR tree-optimization/99253
21756 * tree-vect-loop.c (check_reduction_path): First compute
21757 code, then verify out-of-loop uses.
21759 2021-02-25 Jakub Jelinek <jakub@redhat.com>
21762 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
21764 2021-02-25 Jakub Jelinek <jakub@redhat.com>
21766 PR tree-optimization/80635
21767 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
21768 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
21769 has mode precision.
21771 2021-02-25 Richard Biener <rguenther@suse.de>
21773 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
21774 load_map population.
21775 (vect_match_slp_patterns_2): Revert part of last change.
21776 (vect_analyze_slp): Do not interleave optimize_load_redistribution
21777 with pattern detection but do it afterwards. Dump the
21778 whole SLP graph after pattern recognition and load
21779 redistribution optimization finished.
21781 2021-02-24 Jakub Jelinek <jakub@redhat.com>
21784 * omp-low.c (struct omp_context): Add teams_nested_p and
21785 nonteams_nested_p members.
21786 (scan_omp_target): Diagnose teams nested inside of target with other
21787 directives strictly nested inside of the same target.
21788 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
21789 ctx->nonteams_nested_p as needed.
21791 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
21793 PR inline-asm/99123
21794 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
21796 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
21798 * config/cris/cris.c (cris_expand_prologue): Set
21799 current_function_static_stack_size, if flag_stack_usage_info.
21801 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
21803 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
21804 (rs6000_final_prescan_insn): Adjust.
21805 (rs6000_asm_output_opcode): Likewise.
21807 2021-02-24 Martin Sebor <msebor@redhat.com>
21809 PR middle-end/97172
21810 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
21811 from function arguments.
21813 2021-02-24 Tamar Christina <tamar.christina@arm.com>
21815 PR tree-optimization/99220
21816 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
21817 node from cache when it's about to be deleted.
21819 2021-02-24 Jakub Jelinek <jakub@redhat.com>
21821 PR tree-optimization/99225
21822 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
21823 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
21824 build_int_cst (..., 1). Formatting fixes.
21826 2021-02-24 Tamar Christina <tamar.christina@arm.com>
21828 PR tree-optimization/99149
21829 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
21831 (vect_slp_reset_pattern): Remove.
21832 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
21833 (complex_mul_pattern::build, complex_fma_pattern::build,
21834 complex_fms_pattern::build): Fix ref counts.
21835 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
21836 when node is being deleted.
21837 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
21838 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
21840 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
21842 2021-02-24 Matthias Klose <doko@ubuntu.com>
21845 2020-12-07 Matthias Klose <doko@ubuntu.com>
21847 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
21848 and ENABLE_RTL_FLAG_CHECKING.
21850 2021-02-24 Richard Biener <rguenther@suse.de>
21853 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
21855 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
21857 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
21858 (vsx_assemble_pair): ...to this.
21859 (*mma_assemble_pair): Rename from this...
21860 (*vsx_assemble_pair): ...to this.
21861 (mma_disassemble_pair): Rename from this...
21862 (vsx_disassemble_pair): ...to this.
21863 (*mma_disassemble_pair): Rename from this...
21864 (*vsx_disassemble_pair): ...to this.
21865 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
21866 BU_COMPAT): New macros.
21867 (mma_assemble_pair): Rename from this...
21868 (vsx_assemble_pair): ...to this.
21869 (mma_disassemble_pair): Rename from this...
21870 (vsx_disassemble_pair): ...to this.
21871 (mma_assemble_pair): New compatibility built-in.
21872 (mma_disassemble_pair): Likewise.
21873 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
21874 (RS6000_BUILTIN_COMPAT): Define.
21875 (bdesc_compat): New.
21876 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
21877 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
21878 and VSX_BUILTIN_ASSEMBLE_PAIR.
21879 (rs6000_init_builtins): Register compatibility built-ins.
21880 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
21881 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
21882 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
21883 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
21884 (__builtin_vsx_assemble_pair): ...to this.
21885 (__builtin_mma_disassemble_pair): Rename from this...
21886 (__builtin_vsx_disassemble_pair): ...to this.
21888 2021-02-23 Martin Liska <mliska@suse.cz>
21891 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
21892 with different alignment. That leads to an invalid red zone
21893 size allocated in runtime.
21895 2021-02-23 Jakub Jelinek <jakub@redhat.com>
21897 PR tree-optimization/99204
21898 * fold-const.c (fold_read_from_constant_string): Check that
21899 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
21901 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
21902 Kewen Lin <linkw@gcc.gnu.org>
21904 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
21905 (rotl<mode>3_insert_3): ...this.
21906 (plus_ior_xor): New code_iterator.
21907 (define_split for GPR rl*imi): New splitter.
21908 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
21909 for integer merging.
21911 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21913 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
21915 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
21916 into a register when the above is enabled.
21917 * config/aarch64/aarch64.c (neoversev1_tunings):
21918 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
21919 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
21921 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
21923 * config/cris/cris.c (cris_print_operand) <'T'>: Change
21924 valid operand from is now an addi mult-value to shift-value.
21925 * config/cris/cris.md (*addi): Change expression of scaled
21926 operand from mult to ashift.
21927 * config/cris/cris.md (*addi_reload): New insn_and_split.
21929 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
21932 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
21933 hook_bool_const_tree_hwi_hwi_const_tree_true.
21934 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
21936 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
21938 PR rtl-optimization/98791
21939 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
21940 for unordered modes.
21942 2021-02-22 Martin Liska <mliska@suse.cz>
21944 * tree-inline.c (inline_forbidden_p): Set
21945 inline_forbidden_reason.
21947 2021-02-22 Richard Biener <rguenther@suse.de>
21949 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
21952 2021-02-22 Richard Biener <rguenther@suse.de>
21954 PR tree-optimization/99165
21955 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
21956 Accumulate changed to ret.
21958 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
21961 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
21963 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
21965 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
21968 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
21970 (trunctf<DFP_ALL:mode>2): Likewise.
21971 (trunctdtf2_vr): Likewise.
21972 (trunctdtf2): Likewise.
21973 (extend<DFP_ALL:mode>tf2_vr): Likewise.
21974 (extend<DFP_ALL:mode>tf2): Likewise.
21975 (extendtftd2_vr): Likewise.
21976 (extendtftd2): Likewise.
21978 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
21980 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
21981 add memory alternative.
21982 (tf_to_fprx2): New pattern.
21984 2021-02-19 Martin Sebor <msebor@redhat.com>
21987 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
21988 (attr_access::free_lang_data): Remove a spurious test.
21990 2021-02-19 Nathan Sidwell <nathan@acm.org>
21992 * doc/invoke.texi (flang-info-module-read): Document.
21994 2021-02-19 Martin Liska <mliska@suse.cz>
21996 PR translation/99167
21997 * params.opt: Fix typo.
21999 2021-02-19 Richard Biener <rguenther@suse.de>
22001 PR middle-end/99122
22002 * tree-inline.c (inline_forbidden_p): Do not inline functions
22003 with VLA arguments or return value.
22005 2021-02-19 Jakub Jelinek <jakub@redhat.com>
22008 * config/arm/arm.md (*stack_protect_combined_set_insn,
22009 *stack_protect_combined_test_insn): If force_const_mem result
22010 is not valid general operand, force its address into the destination
22013 2021-02-19 Jakub Jelinek <jakub@redhat.com>
22016 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
22017 pad or non-local label, put FORCED_LABELs from bb b after that label
22018 rather than before it.
22020 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
22023 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
22024 expand_vector_broadcast' to emit the vec_duplicate operand.
22026 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
22028 PR rtl-optimization/96264
22029 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
22032 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
22035 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
22036 looking up the retain attribute.
22037 (resolve_unique_section): Likewise.
22038 (get_variable_section): Likewise.
22039 (switch_to_section): Likewise. Warn when a symbol without the
22040 retain attribute and a symbol with the retain attribute are
22041 placed in the section with the same name, instead of the used
22043 * doc/extend.texi: Document the "retain" attribute.
22045 2021-02-18 Nathan Sidwell <nathan@acm.org>
22048 * doc/invoke.texi (flang-info-include-translate): Document header
22051 2021-02-18 Richard Biener <rguenther@suse.de>
22053 PR middle-end/99122
22054 * ipa-fnsummary.c (analyze_function_body): Set
22055 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
22056 * tree-inline.c (insert_init_debug_bind): Pass NULL for
22057 error_mark_node values.
22058 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
22060 (setup_one_parameter): Delay force_value_to_type until when
22063 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
22065 PR tree-optimization/99142
22066 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
22068 2021-02-18 Jakub Jelinek <jakub@redhat.com>
22070 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
22071 wide_int_bitmask::wide_int_bitmask (uint64_t),
22072 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
22073 wide_int_bitmask::operator ~ () const,
22074 wide_int_bitmask::operator | (wide_int_bitmask) const,
22075 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
22077 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
22078 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
22079 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
22080 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
22081 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
22082 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
22083 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
22084 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
22085 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
22086 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
22087 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
22088 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
22089 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
22090 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
22091 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
22092 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
22093 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
22094 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
22095 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
22096 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
22097 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
22098 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
22099 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
22100 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
22102 2021-02-18 Jakub Jelinek <jakub@redhat.com>
22104 PR middle-end/99109
22105 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
22106 (build_printable_array_type): ... this. Add nelts argument. For
22107 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
22108 nelts, call build_array_type_nelts.
22109 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
22110 instead of build_zero_elt_array_type and build_array_type_nelts.
22112 2021-02-18 Jakub Jelinek <jakub@redhat.com>
22115 * config/i386/i386.c (distance_non_agu_define): Don't call
22116 extract_insn_cached here.
22117 (ix86_lea_outperforms): Save and restore recog_data around call
22118 to distance_non_agu_define and distance_agu_use.
22119 (ix86_ok_to_clobber_flags): Remove.
22120 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
22121 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
22122 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
22123 into define_insn. Move the splitting to define_peephole2 and
22124 check there using peep2_regno_dead_p if FLAGS_REG is dead.
22126 2021-02-17 Julian Brown <julian@codesourcery.com>
22128 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
22131 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
22134 * config/mips/mips.c (mips_symbol_insns): Do not use
22135 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
22137 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
22139 PR inline-asm/98096
22140 * stmt.c (resolve_operand_name_1): Take inout operands into account
22141 for access to labels by names.
22142 * doc/extend.texi: Describe counting operands for accessing labels.
22144 2021-02-16 Richard Biener <rguenther@suse.de>
22146 PR tree-optimization/38474
22147 * tree-ssa-structalias.c (variable_info::address_taken): New.
22148 (new_var_info): Initialize address_taken.
22149 (process_constraint): Set address_taken.
22150 (solve_constraints): Use the new address_taken flag rather
22151 than is_reg_var for sorting variables.
22152 (dump_constraint): Dump the variable number if the name
22155 2021-02-16 Jakub Jelinek <jakub@redhat.com>
22158 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
22159 multiply by 4096 and for inbranch by 8192.
22160 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
22161 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
22163 2021-02-15 Maya Rashish <coypu@sdf.org>
22165 * config/aarch64/aarch64.c (aarch64_init_builtins):
22166 Call SUBTARGET_INIT_BUILTINS.
22168 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
22170 PR rtl-optimization/98872
22171 * init-regs.c (initialize_uninitialized_regs): Skip initialization
22172 if CONST0_RTX is NULL.
22174 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
22176 PR rtl-optimization/98863
22177 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
22178 (function_info::build_info): Turn into a declaration, moving the
22179 definition to internals.h.
22180 (function_info::bb_walker): Declare.
22181 (function_info::create_reg_use): Likewise.
22182 (function_info::calculate_potential_phi_regs): Take a build_info
22184 (function_info::place_phis, function_info::create_ebbs): Declare.
22185 (function_info::calculate_ebb_live_in_for_debug): Likewise.
22186 (function_info::populate_backedge_phis): Delete.
22187 (function_info::start_block, function_info::end_block): Declare.
22188 (function_info::populate_phi_inputs): Delete.
22189 (function_info::m_potential_phi_regs): Move information to build_info.
22190 * rtl-ssa/internals.h: New file.
22191 (function_info::bb_phi_info): New class.
22192 (function_info::build_info): Moved from functions.h.
22193 Add a constructor and destructor.
22194 (function_info::build_info::ebb_use): Delete.
22195 (function_info::build_info::ebb_def): Likewise.
22196 (function_info::build_info::bb_live_out): Likewise.
22197 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
22198 (function_info::build_info::potential_phi_regs): Likewise.
22199 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
22200 (function_info::build_info::ebb_def_regs): Likewise.
22201 (function_info::build_info::bb_phis): Likewise.
22202 (function_info::build_info::bb_mem_live_out): Likewise.
22203 (function_info::build_info::bb_to_rpo): Likewise.
22204 (function_info::build_info::def_stack): Likewise.
22205 (function_info::build_info::old_def_stack_limit): Likewise.
22206 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
22207 Remove the regno argument. Push the previous definition onto the
22208 definition stack where necessary.
22209 * rtl-ssa/accesses.cc: Include internals.h.
22210 * rtl-ssa/changes.cc: Likewise.
22211 * rtl-ssa/blocks.cc: Likewise.
22212 (function_info::build_info::build_info): Define.
22213 (function_info::build_info::~build_info): Likewise.
22214 (function_info::bb_walker): New class.
22215 (function_info::bb_walker::bb_walker): Define.
22216 (function_info::add_live_out_use): Convert a logarithmic-complexity
22217 test into a linear one. Allow the same definition to be passed
22219 (function_info::calculate_potential_phi_regs): Moved from
22220 functions.cc. Take a build_info parameter and store the
22221 information there instead.
22222 (function_info::place_phis): New function.
22223 (function_info::add_entry_block_defs): Update call to record_reg_def.
22224 (function_info::calculate_ebb_live_in_for_debug): New function.
22225 (function_info::add_phi_nodes): Use bb_phis to decide which
22226 registers need phi nodes and initialize ebb_def_regs accordingly.
22227 Do not add degenerate phis here.
22228 (function_info::add_artificial_accesses): Use create_reg_use.
22229 Assert that all definitions are listed in the DF LR sets.
22230 Update call to record_reg_def.
22231 (function_info::record_block_live_out): Record live-out register
22232 values in the phis of successor blocks. Use the live-out set
22233 when processing the last block in an EBB, instead of always
22234 using the live-in sets of successor blocks. AND the live sets
22235 with the set of registers that have been defined in the EBB,
22236 rather than with all potential phi registers. Cope correctly
22237 with branches back to the start of the current EBB.
22238 (function_info::start_block): New function.
22239 (function_info::end_block): Likewise.
22240 (function_info::populate_phi_inputs): Likewise.
22241 (function_info::create_ebbs): Likewise.
22242 (function_info::process_all_blocks): Rewrite into a multi-phase
22244 * rtl-ssa/functions.cc: Include internals.h.
22245 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
22246 (function_info::init_function_data): Remove caller.
22247 * rtl-ssa/insns.cc: Include internals.h
22248 (function_info::create_reg_use): New function. Lazily any
22249 degenerate phis needed by the linear RPO view.
22250 (function_info::record_use): Use create_reg_use. When processing
22251 debug uses, use potential_phi_regs and test it before checking
22252 whether the register is live on entry to the current EBB. Lazily
22253 calculate ebb_live_in_for_debug.
22254 (function_info::record_call_clobbers): Update call to record_reg_def.
22255 (function_info::record_def): Likewise.
22257 2021-02-15 Martin Liska <mliska@suse.cz>
22259 * toplev.c (init_asm_output): Free output of
22260 gen_command_line_string function.
22261 (process_options): Likewise.
22263 2021-02-15 Martin Liska <mliska@suse.cz>
22265 * params.opt: Add 2 missing Param keywords.
22267 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
22269 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
22271 2021-02-15 Jakub Jelinek <jakub@redhat.com>
22273 PR tree-optimization/99079
22274 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
22275 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
22276 require both type and TREE_TYPE (@1) to be integral types and either
22277 type having smaller or equal precision, or TREE_TYPE (@1) being
22278 unsigned type, or type being signed type. If TREE_TYPE (@1)
22279 doesn't have wrapping overflow, perform the subtraction of one in
22282 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
22283 Richard Biener <rguether@suse.de>
22286 * ipa-reference.c (ipa_init): Only conditinally initialize
22287 reference_vars_to_consider.
22288 (propagate): Conditionally deninitialize reference_vars_to_consider.
22289 (ipa_reference_write_optimization_summary): Sanity check that
22290 reference_vars_to_consider is not allocated.
22292 2021-02-13 Levy Hsu <admin@levyhsu.com>
22295 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
22296 extend parameter to get_si_mem_base_reg declaration.
22297 (get_si_mem_base_reg): Add extend parameter. Set it.
22298 (analyze): Pass extend arg to get_si_mem_base_reg.
22299 (transform): Likewise. Use it when rewriting mems.
22300 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
22301 loads and emit sign/zero extending load followed by subreg move.
22303 2021-02-13 Jim Wilson <jimw@sifive.com>
22306 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
22307 exit when !reload_completed. Only perform check for compressed reg
22308 if reload_completed.
22309 (riscv_rtx_costs): In MEM case, when optimizing for size and
22310 shorten memrefs, if not compressible, then increase cost.
22312 2021-02-13 Jakub Jelinek <jakub@redhat.com>
22314 PR rtl-optimization/98439
22315 * recog.c (pass_split_before_regstack::gate): Enable even when
22316 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
22319 2021-02-13 Jakub Jelinek <jakub@redhat.com>
22322 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
22323 swap of V2SImode elements in memory into DImode memory rotate by 32.
22325 2021-02-12 Martin Sebor <msebor@redhat.com>
22327 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
22329 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
22331 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
22332 m_temp_obstack rather than m_obstack to allocate the temporary use.
22334 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
22336 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
22337 as read-modify operations.
22339 2021-02-12 Richard Biener <rguenther@suse.de>
22341 PR middle-end/38474
22342 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
22343 fbi->aa_walk_budget is bigger than zero. Update
22344 fbi->aa_walk_budget.
22345 (param_change_prob): Likewise.
22346 * ipa-prop.c (detect_type_change_from_memory_writes):
22347 Properly account walk_aliased_vdefs.
22348 (parm_preserved_before_stmt_p): Canonicalize updates.
22349 (parm_ref_data_preserved_p): Likewise.
22350 (parm_ref_data_pass_through_p): Likewise.
22351 (determine_known_aggregate_parts): Account own alias queries.
22353 2021-02-12 Martin Liska <mliska@suse.cz>
22355 * opts-common.c (decode_cmdline_option): Release werror_arg.
22356 * opts.c (gen_producer_string): Release output of
22357 gen_command_line_string.
22359 2021-02-12 Richard Biener <rguenther@suse.de>
22361 PR tree-optimization/38474
22362 * params.opt (-param=max-store-chains-to-track=): New param.
22363 (-param=max-stores-to-track=): Likewise.
22364 * doc/invoke.texi (max-store-chains-to-track): Document.
22365 (max-stores-to-track): Likewise.
22366 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
22368 (pass_store_merging::m_n_stores): Likewise.
22369 (pass_store_merging::terminate_and_process_chain): Update
22370 m_n_stores and m_n_chains.
22371 (pass_store_merging::process_store): Likewise. Terminate
22372 oldest chains if the number of stores or chains get too large.
22373 (imm_store_chain_info::terminate_and_process_chain): Dump
22376 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
22378 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
22379 the cold section, emit a nop before the directive if the previous
22380 active instruction can throw.
22382 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
22385 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
22386 memory addresses that are legal for quad word accesses.
22388 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
22391 * config/arm/thumb2.md (*doloop_end_internal): Generate
22392 alternative sequence to handle long range branches.
22394 2021-02-11 Joel Hutton <joel.hutton@arm.com>
22396 PR tree-optimization/98772
22397 * optabs-tree.c (supportable_half_widening_operation): New function
22398 to check for supportable V8QI->V8HI widening patterns.
22399 * optabs-tree.h (supportable_half_widening_operation): New function.
22400 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
22401 to create promotion stmts for V8QI->V8HI widening patterns.
22402 (vectorizable_conversion): Add case for V8QI->V8HI.
22404 2021-02-11 Richard Biener <rguenther@suse.de>
22406 * sparseset.h (SPARSESET_ELT_BITS): Remove.
22407 (SPARSESET_ELT_TYPE): Use unsigned int.
22408 * fwprop.c: Do not include sparseset.h.
22410 2021-02-10 Jakub Jelinek <jakub@redhat.com>
22413 * varasm.c (declare_weak): For -fsyntax-only, allow even
22414 TREE_ASM_WRITTEN function decls.
22416 2021-02-10 Jakub Jelinek <jakub@redhat.com>
22419 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
22420 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
22421 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
22422 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
22423 calling simplify_gen_subreg on it.
22425 2021-02-10 Martin Liska <mliska@suse.cz>
22427 * config/nvptx/nvptx.c (nvptx_option_override): Use
22428 flag_patchable_function_entry instead of the removed
22429 function_entry_patch_area_size.
22431 2021-02-10 Martin Liska <mliska@suse.cz>
22433 PR tree-optimization/99002
22434 PR tree-optimization/99026
22435 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
22436 leak when adjacent cases are merged.
22437 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
22439 (make_pass_lower_switch): Remove trailing whitespace.
22440 * tree-switch-conversion.h (release_clusters): New.
22442 2021-02-10 Richard Biener <rguenther@suse.de>
22444 PR rtl-optimization/99054
22445 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
22446 (fixup_partitions): Adjust.
22447 (rtl_verify_edges): Likewise.
22449 2021-02-10 Jakub Jelinek <jakub@redhat.com>
22451 PR middle-end/99007
22452 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
22453 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
22456 2021-02-10 Richard Biener <rguenther@suse.de>
22459 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
22462 2021-02-10 Richard Biener <rguenther@suse.de>
22464 PR tree-optimization/99024
22465 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
22466 clear loop->aux if it is associated with the destroyed loop_vinfo.
22468 2021-02-10 Martin Liska <mliska@suse.cz>
22470 PR tree-optimization/99002
22471 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
22474 2021-02-10 Martin Liska <mliska@suse.cz>
22477 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
22478 a reference exists.
22480 2021-02-10 Jakub Jelinek <jakub@redhat.com>
22483 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
22484 at class scope for DWARF5+.
22486 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
22488 PR rtl-optimization/96015
22489 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
22490 (relax_delay_slots): When deleting a jump to the next active
22491 instruction over a barrier, first delete the barrier if the
22492 jump is the only way to reach the target label.
22494 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
22496 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
22497 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
22498 vector multiplies and vect.alu for SSRA.
22499 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
22500 vect.mul cost field.
22501 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
22502 * config/arm/arm.c: Likewise.
22504 2021-02-09 Richard Biener <rguenther@suse.de>
22506 PR tree-optimization/98863
22507 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
22508 * tree-ssa-sccvn.c (last_pushed_avail): New global.
22509 (rpo_elim::eliminate_push_avail): Chain pushed avails.
22510 (unwind_state::avail_top): Add.
22511 (do_unwind): Rewrite unwinding of avail entries.
22512 (do_rpo_vn): Initialize last_pushed_avail and
22513 avail_top of the undo state.
22515 2021-02-09 Jakub Jelinek <jakub@redhat.com>
22517 PR middle-end/99004
22518 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
22519 const char * to char * and free those pointers after use.
22521 2021-02-09 Richard Biener <rguenther@suse.de>
22523 PR tree-optimization/99017
22524 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
22525 zero vector cost entries.
22527 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22529 PR middle-end/98974
22530 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
22531 parameter in vectorizable_condition.
22533 2021-02-08 Richard Biener <rguenther@suse.de>
22536 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
22538 2021-02-08 Martin Liska <mliska@suse.cz>
22541 * cfgexpand.c (pass_expand::execute): Parse per-function option
22542 flag_patchable_function_entry and use it.
22543 * common.opt: Remove function_entry_patch_area_size and
22544 function_entry_patch_area_start global variables.
22545 * opts.c (parse_and_check_patch_area): New function.
22546 (common_handle_option): Use it.
22547 * opts.h (parse_and_check_patch_area): New function.
22548 * toplev.c (process_options): Parse and use
22549 function_entry_patch_area_size.
22551 2021-02-08 Martin Sebor <msebor@redhat.com>
22553 * doc/extend.texi (attribute malloc): Correct typos.
22555 2021-02-05 Nathan Sidwell <nathan@acm.org>
22558 * gcc.c (driver::maybe_run_linker): Check for input file
22559 accessibility if not linking.
22561 2021-02-05 Richard Biener <rguenther@suse.de>
22563 PR tree-optimization/98855
22564 * tree-vectorizer.h (add_stmt_cost): New overload.
22565 * tree-vect-slp.c (li_cost_vec_cmp): New.
22566 (vect_bb_slp_scalar_cost): Cost individual loop regions
22567 separately. Account for the scalar instance root stmt.
22569 2021-02-05 Tom de Vries <tdevries@suse.de>
22572 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
22574 (bit_test_cluster::emit): Reuse location_t for newly created
22576 (switch_decision_tree::try_switch_expansion): Preserve
22578 * tree-switch-conversion.h: Change function signatures.
22580 2021-02-05 Jakub Jelinek <jakub@redhat.com>
22583 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
22584 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
22585 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
22586 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
22588 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22590 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
22591 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
22592 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
22593 (vget_high_f16): Reimplement using new builtin.
22594 (vget_high_f32): Likewise.
22595 (vget_high_f64): Likewise.
22596 (vget_high_p8): Likewise.
22597 (vget_high_p16): Likewise.
22598 (vget_high_p64): Likewise.
22599 (vget_high_s8): Likewise.
22600 (vget_high_s16): Likewise.
22601 (vget_high_s32): Likewise.
22602 (vget_high_s64): Likewise.
22603 (vget_high_u8): Likewise.
22604 (vget_high_u16): Likewise.
22605 (vget_high_u32): Likewise.
22606 (vget_high_u64): Likewise.
22608 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22610 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
22611 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
22612 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
22613 (vget_low_f16): Reimplement using new builtin.
22614 (vget_low_f32): Likewise.
22615 (vget_low_f64): Likewise.
22616 (vget_low_p8): Likewise.
22617 (vget_low_p16): Likewise.
22618 (vget_low_p64): Likewise.
22619 (vget_low_s8): Likewise.
22620 (vget_low_s16): Likewise.
22621 (vget_low_s32): Likewise.
22622 (vget_low_s64): Likewise.
22623 (vget_low_u8): Likewise.
22624 (vget_low_u16): Likewise.
22625 (vget_low_u32): Likewise.
22626 (vget_low_u64): Likewise.
22628 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
22630 * gcc.c (print_multilib_info): Check all required argument is provided
22633 2021-02-05 liuhongt <hongtao.liu@intel.com>
22636 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
22637 generate integer mask comparison for 128/256-bits vector when
22638 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
22639 delete redundant !maskcmp condition.
22640 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
22642 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
22643 condition directly to if (maskcmp), add extra check for
22644 cmpmode, it should be MODE_INT.
22645 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
22646 parameters op_true/op_false.
22647 (ix86_use_mask_cmp_p): New.
22649 2021-02-05 liuhongt <hongtao.liu@intel.com>
22652 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
22653 Remove m_GENERIC from ~list.
22654 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
22656 2021-02-04 David Malcolm <dmalcolm@redhat.com>
22659 * diagnostic-show-locus.c (compatible_locations_p): Require
22660 locations in the same macro map to be either both from the
22661 macro definition, or both from the macro arguments.
22663 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
22665 * config/aarch64/aarch64-simd-builtins.def: Add
22666 [su]mull_hi_lane[q] builtin generator macros.
22667 * config/aarch64/aarch64-simd.md
22668 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
22669 (aarch64_<su>mull_hi_lane<mode>): Define.
22670 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
22671 (aarch64_<su>mull_hi_laneq<mode>): Define.
22672 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
22673 builtin instead of inline asm.
22674 (vmull_high_lane_s32): Likewise.
22675 (vmull_high_lane_u16): Likewise.
22676 (vmull_high_lane_u32): Likewise.
22677 (vmull_high_laneq_s16): Likewise.
22678 (vmull_high_laneq_s32): Likewise.
22679 (vmull_high_laneq_u16): Likewise.
22680 (vmull_high_laneq_u32): Liekwise.
22682 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
22684 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
22685 builtin generator macros.
22686 * config/aarch64/aarch64-simd.md
22687 (aarch64_<su>mull_hi_n<mode>_insn): Define.
22688 (aarch64_<su>mull_hi_n<mode>): Define.
22689 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
22690 instead of inline asm.
22691 (vmull_high_n_s32): Likewise.
22692 (vmull_high_n_u16): Likewise.
22693 (vmull_high_n_u32): Likewise.
22695 2021-02-04 Richard Biener <rguenther@suse.de>
22697 PR tree-optimization/98855
22698 * tree-vect-loop.c (vectorizable_phi): Do not cost
22699 single-argument PHIs.
22700 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
22701 * tree-vect-stmts.c (vectorizable_bswap): Also perform
22702 costing for SLP operation.
22704 2021-02-04 Martin Liska <mliska@suse.cz>
22706 * doc/extend.texi: Mention -mprefer-vector-width in target
22709 2021-02-03 Martin Sebor <msebor@redhat.com>
22711 PR tree-optimization/98937
22712 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
22713 Flush pointer_query cache.
22715 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
22717 * config/rs6000/genfusion.pl (gen_2logical): Add missing
22718 fixes based on patch review.
22719 * config/rs6000/fusion.md: Regenerate file.
22721 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
22723 * config/rs6000/t-rs6000: Comment out auto generation of
22726 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
22728 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
22729 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
22730 (output_file_start): Add gfx908.
22731 * config/gcn/gcn.opt (gpu_type): Add gfx908.
22732 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
22733 (MULTILIB_DIRNAMES): Add gfx908.
22734 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
22735 (main): Recognize gfx908.
22736 * config/gcn/t-omp-device: Add gfx908.
22738 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
22740 * config/aarch64/aarch64-simd-builtins.def: Add
22741 [su]mlsl_hi_lane[q] builtin macro generators.
22742 * config/aarch64/aarch64-simd.md
22743 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
22744 (aarch64_<su>mlsl_hi_lane<mode>): Define.
22745 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
22746 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
22747 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
22748 builtin instead of inline asm.
22749 (vmlsl_high_lane_s32): Likewise.
22750 (vmlsl_high_lane_u16): Likewise.
22751 (vmlsl_high_lane_u32): Likewise.
22752 (vmlsl_high_laneq_s16): Likewise.
22753 (vmlsl_high_laneq_s32): Likewise.
22754 (vmlsl_high_laneq_u16): Likewise.
22755 (vmlsl_high_laneq_u32): Likewise.
22756 (vmlal_high_laneq_u32): Likewise.
22758 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
22760 * config/aarch64/aarch64-simd-builtins.def: Add
22761 [su]mlal_hi_lane[q] builtin generator macros.
22762 * config/aarch64/aarch64-simd.md
22763 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
22764 (aarch64_<su>mlal_hi_lane<mode>): Define.
22765 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
22766 (aarch64_<su>mlal_hi_laneq<mode>): Define.
22767 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
22768 builtin instead of inline asm.
22769 (vmlal_high_lane_s32): Likewise.
22770 (vmlal_high_lane_u16): Likewise.
22771 (vmlal_high_lane_u32): Likewise.
22772 (vmlal_high_laneq_s16): Likewise.
22773 (vmlal_high_laneq_s32): Likewise.
22774 (vmlal_high_laneq_u16): Likewise.
22775 (vmlal_high_laneq_u32): Likewise.
22777 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
22779 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
22780 builtin generator macros.
22781 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
22783 (aarch64_<su>mlsl_hi_n<mode>): Define.
22784 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
22785 instead of inline asm.
22786 (vmlsl_high_n_s32): Likewise.
22787 (vmlsl_high_n_u16): Likewise.
22788 (vmlsl_high_n_u32): Likewise.
22790 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
22792 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
22793 builtin generator macros.
22794 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
22796 (aarch64_<su>mlal_hi_n<mode>): Define.
22797 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
22798 instead of inline asm.
22799 (vmlal_high_n_s32): Likewise.
22800 (vmlal_high_n_u16): Likewise.
22801 (vmlal_high_n_u32): Likewise.
22803 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
22805 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
22807 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
22809 (aarch64_<su>mlal_hi<mode>_insn): This.
22810 (aarch64_<su>mlal_hi<mode>): Define.
22811 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
22812 instead of inline asm.
22813 (vmlal_high_s16): Likewise.
22814 (vmlal_high_s32): Likewise.
22815 (vmlal_high_u8): Likewise.
22816 (vmlal_high_u16): Likewise.
22817 (vmlal_high_u32): Likewise.
22819 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
22821 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
22822 after calling alter_subreg() on a (mem).
22824 2021-02-03 Martin Liska <mliska@suse.cz>
22827 * lto-streamer-out.c (produce_lto_section): Fill up missing
22829 * lto-streamer.h (struct lto_section): Add _padding field.
22831 2021-02-03 Richard Biener <rguenther@suse.de>
22833 * lto-streamer.c (lto_get_section_name): Free temporary
22835 * tree-loop-distribution.c
22836 (loop_distribution::merge_dep_scc_partitions): Free edge data.
22838 2021-02-03 Jakub Jelinek <jakub@redhat.com>
22840 PR middle-end/97487
22841 * ifcvt.c (noce_can_force_operand): New function.
22842 (noce_emit_move_insn): Use it.
22843 (noce_try_sign_mask): Likewise. Formatting fix.
22845 2021-02-03 Jakub Jelinek <jakub@redhat.com>
22847 PR middle-end/97971
22848 * lra-constraints.c (process_alt_operands): For inline asm, don't call
22849 fatal_insn, but instead return false.
22851 2021-02-03 Jakub Jelinek <jakub@redhat.com>
22853 PR tree-optimization/98287
22854 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
22857 2021-02-03 Tamar Christina <tamar.christina@arm.com>
22859 PR tree-optimization/98928
22860 * tree-vect-loop.c (vect_analyze_loop_2): Change
22861 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
22862 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
22863 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
22864 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
22866 2021-02-02 Richard Biener <rguenther@suse.de>
22868 * gimple-loop-interchange.cc (prepare_data_references):
22870 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
22871 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
22872 * tree-vect-stmts.c (vectorizable_condition): Do not
22874 (vectorizable_comparison): Likewise.
22876 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22878 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
22879 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
22880 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
22881 (vrsqrteq_u32): Likewise.
22883 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22885 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
22886 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
22887 (aarch64_sqxtun2<mode>_be): Likewise.
22888 (aarch64_sqxtun2<mode>): Likewise.
22889 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
22890 (vqmovun_high_s32): Likewise.
22891 (vqmovun_high_s64): Likewise.
22892 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
22894 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22896 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
22898 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
22900 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22902 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
22903 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
22904 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
22905 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
22906 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
22907 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
22908 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
22909 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
22911 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22913 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
22914 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
22915 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
22917 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22919 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
22920 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
22922 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22924 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
22925 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
22926 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
22927 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
22928 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
22929 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
22930 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
22931 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
22932 NONE builtin flags.
22934 2021-02-02 Jakub Jelinek <jakub@redhat.com>
22936 PR tree-optimization/98848
22937 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
22938 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
22940 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
22943 * expr.c: Check mode before calling store_expr.
22945 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
22947 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
22949 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
22950 instruction using expression ior.
22951 (mve_vornq_u<mode>): New expander.
22952 (mve_vornq_f<mode>): Use ior code instead of unspec.
22953 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
22955 2021-02-02 Alexandre Oliva <oliva@adacore.com>
22957 * tree-nested.c (convert_nonlocal_reference_op): Move
22958 current_function_decl restore after re-gimplification.
22959 (convert_local_reference_op): Likewise.
22961 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22963 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
22965 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
22967 (aarch64_rshrn<mode>_insn_be): Likewise.
22968 (aarch64_rshrn<mode>): Likewise.
22969 (aarch64_rshrn2<mode>_insn_le): Likewise.
22970 (aarch64_rshrn2<mode>_insn_be): Likewise.
22971 (aarch64_rshrn2<mode>): Likewise.
22972 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
22973 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
22975 (vrshrn_high_n_s32): Likewise.
22976 (vrshrn_high_n_s64): Likewise.
22977 (vrshrn_high_n_u16): Likewise.
22978 (vrshrn_high_n_u32): Likewise.
22979 (vrshrn_high_n_u64): Likewise.
22980 (vrshrn_n_s16): Likewise.
22981 (vrshrn_n_s32): Likewise.
22982 (vrshrn_n_s64): Likewise.
22983 (vrshrn_n_u16): Likewise.
22984 (vrshrn_n_u32): Likewise.
22985 (vrshrn_n_u64): Likewise.
22987 2021-02-01 Sergei Trofimovich <siarheit@google.com>
22989 PR tree-optimization/98499
22990 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
22991 conservatively and assume all possible side-effects.
22993 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22995 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
22996 vec_unpacku_hi_): Define builtins.
22997 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
22999 (vmovl_high_s16): Likewise.
23000 (vmovl_high_s32): Likewise.
23001 (vmovl_high_u8): Likewise.
23002 (vmovl_high_u16): Likewise.
23003 (vmovl_high_u32): Likewise.
23005 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23007 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
23009 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
23011 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
23013 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
23015 (vabdl_s16): Likewise.
23016 (vabdl_s32): Likewise.
23017 (vabdl_u8): Likewise.
23018 (vabdl_u16): Likewise.
23019 (vabdl_u32): Likewise.
23020 * config/aarch64/iterators.md (ABDL): New int iterator.
23021 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
23023 2021-02-01 Martin Sebor <msebor@redhat.com>
23025 * tree.h (BLOCK_VARS): Add comment.
23026 (BLOCK_SUBBLOCKS): Same.
23027 (BLOCK_SUPERCONTEXT): Same.
23028 (BLOCK_ABSTRACT_ORIGIN): Same.
23029 (inlined_function_outer_scope_p): Same.
23031 2021-02-01 Martin Sebor <msebor@redhat.com>
23033 PR middle-end/97172
23034 * attribs.c (attr_access::free_lang_data): Define new function.
23035 * attribs.h (attr_access::free_lang_data): Declare new function.
23037 2021-02-01 Richard Biener <rguenther@suse.de>
23039 * vec.h (auto_vec::auto_vec): Add memory stat parameters
23041 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
23043 2021-02-01 Tamar Christina <tamar.christina@arm.com>
23045 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
23046 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
23048 2021-02-01 Richard Biener <rguenther@suse.de>
23050 PR rtl-optimization/98863
23051 * config/i386/i386-features.c (convert_scalars_to_vector):
23052 Set DF_RD_PRUNE_DEAD_DEFS.
23054 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
23056 * system.h (SIZE_MAX): Define if not already defined.
23058 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
23060 * config/rs6000/genfusion.pl (gen_2logical): New function to
23061 generate patterns for logical-logical fusion.
23062 * config/rs6000/fusion.md: Regenerated patterns.
23063 * config/rs6000/rs6000-cpus.def: Add
23064 OPTION_MASK_P10_FUSION_2LOGICAL.
23065 * config/rs6000/rs6000.c (rs6000_option_override_internal):
23066 Enable logical-logical fusion for p10.
23067 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
23069 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
23071 * config/rs6000/rs6000.opt: Add periods to new AIX options.
23073 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
23075 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
23076 (mabi=vec-default): New.
23077 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
23078 __EXTABI__ for AIX Vector extended ABI.
23079 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
23081 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
23083 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
23085 2021-01-30 Jakub Jelinek <jakub@redhat.com>
23087 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
23088 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
23090 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
23093 * lra-constraints.c (in_class_p): Don't narrow class only for REG
23096 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
23098 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
23099 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
23100 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
23102 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
23104 PR tree-optimization/98866
23105 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
23106 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
23107 (gori_map::m_maybe_invariant): Rename from all_outgoing.
23108 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
23109 (gori_map::is_export_p): Ditto.
23110 (gori_map::calculate_gori): Ditto.
23111 (gori_compute::set_range_invariant): New.
23112 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
23113 invariant for pointers evaluating to [1, +INF].
23115 2021-01-29 Richard Biener <rguenther@suse.de>
23117 PR rtl-optimization/98863
23118 * config/i386/i386-features.c (remove_partial_avx_dependency):
23119 Do not perform DF analysis.
23120 (pass_data_remove_partial_avx_dependency): Remove
23123 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
23125 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
23126 builtin generator macros.
23127 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
23129 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
23130 instead of inline asm.
23131 (vmull_n_s32): Likewise.
23132 (vmull_n_u16): Likewise.
23133 (vmull_n_u32): Likewise.
23135 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23137 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
23139 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
23141 (aarch64_<sur>abdl2<mode>): ... This.
23142 (<sur>sadv16qi): Adjust use of above.
23143 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
23145 (vabdl_high_s16): Likewise.
23146 (vabdl_high_s32): Likewise.
23147 (vabdl_high_u8): Likewise.
23148 (vabdl_high_u16): Likewise.
23149 (vabdl_high_u32): Likewise.
23151 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23153 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
23155 (uabal2): Likewise.
23156 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
23158 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
23160 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
23162 (vabal_high_s16): Likewise.
23163 (vabal_high_s32): Likewise.
23164 (vabal_high_u8): Likewise.
23165 (vabal_high_u16): Likewise.
23166 (vabal_high_u32): Likewise.
23167 * config/aarch64/iterators.md (ABAL2): New mode iterator.
23168 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
23170 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23172 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
23175 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
23177 (aarch64_<sur>abal<mode>): ... This
23178 (<sur>sadv16qi): Adust use of the above.
23179 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
23181 (vabal_s16): Likewise.
23182 (vabal_s32): Likewise.
23183 (vabal_u8): Likewise.
23184 (vabal_u16): Likewise.
23185 (vabal_u32): Likewise.
23187 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23189 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
23191 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
23193 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
23195 (vaddlv_s16): Likewise.
23196 (vaddlv_u8): Likewise.
23197 (vaddlv_u16): Likewise.
23198 (vaddlvq_s8): Likewise.
23199 (vaddlvq_s16): Likewise.
23200 (vaddlvq_s32): Likewise.
23201 (vaddlvq_u8): Likewise.
23202 (vaddlvq_u16): Likewise.
23203 (vaddlvq_u32): Likewise.
23204 (vaddlv_s32): Likewise.
23205 (vaddlv_u32): Likewise.
23206 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
23207 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
23208 (Vwstype): New mode attribute.
23210 (VWIDE_S): Likewise.
23211 (USADDLV): New int iterator.
23212 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
23214 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
23216 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
23217 builtin generator macros.
23218 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
23220 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
23221 instead of inline asm.
23222 (vmlsl_lane_s32): Likewise.
23223 (vmlsl_lane_u16): Likewise.
23224 (vmlsl_lane_u32): Likewise.
23225 (vmlsl_laneq_s16): Likewise.
23226 (vmlsl_laneq_s32): Likewise.
23227 (vmlsl_laneq_u16): Likewise.
23228 (vmlsl_laneq_u32): Likewise.
23230 2021-01-29 Richard Biener <rguenther@suse.de>
23232 * doc/invoke.texi (--param max-gcse-memory): Document unit
23234 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
23235 * params.opt (--param max-gcse-memory): Adjust default and
23236 document unit of size.
23238 2021-01-29 Richard Biener <rguenther@suse.de>
23240 PR rtl-optimization/98863
23241 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
23242 HOST_WIDE_INT for the memory estimate.
23244 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
23245 Richard Biener <rguenther@suse.de>
23247 PR tree-optimization/97627
23248 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
23249 Do not analyze fake edges.
23251 2021-01-29 Richard Biener <rguenther@suse.de>
23253 PR rtl-optimization/98144
23254 * df.h (df_mir_bb_info): Add con_visited member.
23255 * df-problems.c (df_mir_alloc): Initialize con_visited,
23256 do not fully populate IN and OUT.
23257 (df_mir_reset): Likewise.
23258 (df_mir_confluence_0): Set con_visited.
23259 (df_mir_confluence_n): Properly handle implicitely
23260 fully populated IN and OUT as designated by con_visited
23261 and update con_visited accordingly.
23263 2021-01-29 Jakub Jelinek <jakub@redhat.com>
23266 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
23267 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
23268 && !TARGET_REALLY_IWMMXT to conditions.
23270 2021-01-29 Jakub Jelinek <jakub@redhat.com>
23273 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
23276 2021-01-28 Marek Polacek <polacek@redhat.com>
23279 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
23280 the main variant, maybe reset it in its variants too.
23281 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
23282 (check_aligned_type): Check if TYPE_USER_ALIGN match.
23284 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
23287 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
23288 of constant zero for comparisons.
23290 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
23292 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
23293 support for mapping built-in function names for long double
23294 built-in functions if long double is IEEE 128-bit.
23296 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
23298 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
23299 builtin generator macros.
23300 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
23302 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
23303 instead of inline asm.
23304 (vmlsl_n_s32): Likewise.
23305 (vmlsl_n_u16): Likewise.
23306 (vmlsl_n_u32): Likewise.
23308 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
23310 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
23311 builtin generator macros.
23312 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
23314 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
23315 instead of inline asm.
23316 (vmlal_n_s32): Likewise.
23317 (vmlal_n_u16): Likewise.
23318 (vmlal_n_u32): Likewise.
23320 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23322 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
23324 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
23326 (aarch64_shrn2<mode>_insn_be): Likewise.
23327 (aarch64_shrn2<mode>): Likewise.
23328 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
23330 (vshrn_high_n_s32): Likewise.
23331 (vshrn_high_n_s64): Likewise.
23332 (vshrn_high_n_u16): Likewise.
23333 (vshrn_high_n_u32): Likewise.
23334 (vshrn_high_n_u64): Likewise.
23336 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23338 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
23340 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
23342 (aarch64_shrn<mode>_insn_be): Likewise.
23343 (aarch64_shrn<mode>): Likewise.
23344 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
23346 (vshrn_n_s32): Likewise.
23347 (vshrn_n_s64): Likewise.
23348 (vshrn_n_u16): Likewise.
23349 (vshrn_n_u32): Likewise.
23350 (vshrn_n_u64): Likewise.
23351 * config/aarch64/iterators.md (vn_mode): New mode attribute.
23353 2021-01-28 Richard Biener <rguenther@suse.de>
23355 PR rtl-optimization/80960
23356 * dse.c (check_mem_read_rtx): Call get_addr on the
23359 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
23360 David Edelsohn <dje.gcc@gmail.com>
23363 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23364 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
23366 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
23368 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
23369 wrapper call rs6000_expand_vector_set_var for cleanup. Call
23370 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
23372 (rs6000_expand_vector_set_var): Delete.
23373 (rs6000_expand_vector_set_var_p9): Make static.
23374 (rs6000_expand_vector_set_var_p8): Make static.
23376 2021-01-28 Xing GUO <higuoxing@gmail.com>
23378 * common/config/riscv/riscv-common.c
23379 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
23380 when `p` extension exists.
23382 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
23384 PR rtl-optimization/97684
23385 * ira.c (ira): Call ira_set_pseudo_classes before
23386 update_equiv_regs when it is necessary.
23388 2021-01-27 Jakub Jelinek <jakub@redhat.com>
23391 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
23392 %w0, %w1 and %2 instead of %0, %1 and %2.
23394 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23396 * config/rs6000/genfusion.pl: New script to generate
23397 define_insn_and_split patterns so combine can arrange fused
23398 instructions next to each other.
23399 * config/rs6000/fusion.md: New file, generated fused instruction
23400 patterns for combine.
23401 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
23402 (non_update_memory_operand): New predicate.
23403 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
23404 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
23406 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
23408 * config/rs6000/rs6000.c (rs6000_option_override_internal):
23409 Automatically set OPTION_MASK_P10_FUSION and
23410 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
23411 (rs600_opt_masks): Allow -mpower10-fusion
23412 in function attributes.
23413 (address_is_non_pfx_d_or_x): New function.
23414 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
23415 * config/rs6000/rs6000.md: Include fusion.md.
23416 * config/rs6000/rs6000.opt: Add -mpower10-fusion
23417 and -mpower10-fusion-ld-cmpi.
23418 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
23420 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
23422 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
23423 builtin generator macros.
23424 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
23426 (aarch64_<su>mlal<mode>): This.
23427 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
23428 instead of inline asm.
23429 (vmlal_s16): Likewise.
23430 (vmlal_s32): Likewise.
23431 (vmlal_u8): Likewise.
23432 (vmlal_u16): Likewise.
23433 (vmlal_u32): Likewise.
23435 2021-01-27 Richard Biener <rguenther@suse.de>
23437 PR tree-optimization/98854
23438 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
23439 PHIs from scalars when the number of CTORs matches the
23440 number of children.
23442 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
23444 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
23446 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
23448 (aarch64_mls_n<mode>): This.
23449 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
23451 (vmls_n_s32): Likewise.
23452 (vmls_n_u16): Likewise.
23453 (vmls_n_u32): Likewise.
23454 (vmlsq_n_s16): Likewise.
23455 (vmlsq_n_s32): Likewise.
23456 (vmlsq_n_u16): Likewise.
23457 (vmlsq_n_u32): Likewise.
23459 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
23461 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
23463 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
23465 (vmls_s16): Likewise.
23466 (vmls_s32): Likewise.
23467 (vmls_u8): Likewise.
23468 (vmls_u16): Likewise.
23469 (vmls_u32): Likewise.
23470 (vmlsq_s8): Likewise.
23471 (vmlsq_s16): Likewise.
23472 (vmlsq_s32): Likewise.
23473 (vmlsq_u8): Likewise.
23474 (vmlsq_u16): Likewise.
23475 (vmlsq_u32): Likewise.
23477 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
23479 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
23481 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
23483 (aarch64_mla_n<mode>): This.
23484 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
23486 (vmla_n_s32): Likewise.
23487 (vmla_n_u16): Likewise.
23488 (vmla_n_u32): Likewise.
23489 (vmlaq_n_s16): Likewise.
23490 (vmlaq_n_s32): Likewise.
23491 (vmlaq_n_u16): Likewise.
23492 (vmlaq_n_u32): Likewise.
23494 2021-01-27 liuhongt <hongtao.liu@intel.com>
23497 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
23498 (*sse2_eq<mode>3): Ditto.
23500 2021-01-27 Jakub Jelinek <jakub@redhat.com>
23502 * tree-pass.h (PROP_trees): Rename to ...
23503 (PROP_gimple): ... this.
23504 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
23505 * passes.c (execute_function_dump, execute_function_todo,
23506 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
23507 * varpool.c (ctor_for_folding): Likewise.
23509 2021-01-27 Jakub Jelinek <jakub@redhat.com>
23511 PR tree-optimization/97260
23512 * varpool.c: Include tree-pass.h.
23513 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
23514 non-TREE_SIDE_EFFECTS automatic variables.
23516 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
23518 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
23520 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
23521 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
23522 (gen_compile_unit_die): Recognise C++23.
23524 2021-01-26 Jakub Jelinek <jakub@redhat.com>
23527 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
23530 2021-01-26 Jakub Jelinek <jakub@redhat.com>
23533 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
23534 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
23535 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
23537 2021-01-26 Richard Biener <rguenther@suse.de>
23539 * gimple-pretty-print.c (dump_binary_rhs): Handle
23540 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
23542 2021-01-26 Richard Biener <rguenther@suse.de>
23544 PR middle-end/98726
23545 * tree.h (vector_cst_int_elt): Remove.
23546 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
23549 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
23551 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
23552 for V64DFmode min/max reductions.
23554 2021-01-26 Jakub Jelinek <jakub@redhat.com>
23556 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
23557 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
23558 two halves, one with x and the other with const0_rtx, ordered
23559 depending on endianity.
23561 2021-01-26 Alexandre Oliva <oliva@adacore.com>
23563 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
23564 temporaries not seen in binding block, and not about to be
23565 added as gimple variables.
23567 2021-01-25 Martin Sebor <msebor@redhat.com>
23570 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
23572 2021-01-25 Martin Liska <mliska@suse.cz>
23574 * value-prof.c (get_nth_most_common_value): Use %s instead
23577 2021-01-25 Jakub Jelinek <jakub@redhat.com>
23580 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
23581 readelf -wi is able to read the emitted .debug_info back.
23582 * configure: Regenerated.
23584 2021-01-25 Martin Liska <mliska@suse.cz>
23586 PR gcov-profile/98739
23587 * common.opt: Add missing sign symbol.
23588 * value-prof.c (get_nth_most_common_value): Restore handling
23589 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
23590 PROFILE_REPRODUCIBILITY_MULTITHREADED.
23592 2021-01-25 Richard Biener <rguenther@suse.de>
23594 PR middle-end/98807
23595 * tree.c (vector_element_bits): Always use precision of
23596 the element type for boolean vectors.
23598 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
23600 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
23601 (ENDFILE_SPEC): Evaluate qnolinkcmds.
23603 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
23605 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
23606 nostartfiles handling since this is already done by
23607 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
23608 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
23609 is already done by LINK_COMMAND_SPEC.
23610 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
23611 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
23614 2021-01-25 Jakub Jelinek <jakub@redhat.com>
23617 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
23618 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
23619 value rather than host size_t.
23620 (fold_const_call): Change type of s2 from size_t to
23621 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
23622 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
23623 instead of s2 as last argument.
23625 2021-01-25 Tamar Christina <tamar.christina@arm.com>
23627 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
23628 VCMLA_OP, VCMUL_OP): New.
23629 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
23630 * config/arm/neon.md (cmul<conj_op><mode>3): New.
23631 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
23632 UNSPEC_VCMUL_CONJ): New.
23633 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
23634 cml<fcmac1><conj_op><mode>4): New.
23636 2021-01-23 Jakub Jelinek <jakub@redhat.com>
23639 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
23641 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
23643 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
23645 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
23647 (vmla_s16): Likewise.
23648 (vmla_s32): Likewise.
23649 (vmla_u8): Likewise.
23650 (vmla_u16): Likewise.
23651 (vmla_u32): Likewise.
23652 (vmlaq_s8): Likewise.
23653 (vmlaq_s16): Likewise.
23654 (vmlaq_s32): Likewise.
23655 (vmlaq_u8): Likewise.
23656 (vmlaq_u16): Likewise.
23657 (vmlaq_u32): Likewise.
23659 2021-01-22 David Malcolm <dmalcolm@redhat.com>
23661 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
23664 2021-01-22 Jakub Jelinek <jakub@redhat.com>
23667 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
23668 filenames to emit, still emit the required 0 index directory and
23669 filename entries that match DW_AT_comp_dir and DW_AT_name of the
23672 2021-01-22 Marek Polacek <polacek@redhat.com>
23675 * doc/invoke.texi: Update C++ ABI Version 15 description.
23677 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23679 PR tree-optimization/98766
23680 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
23681 comparing against type size with param_avoid_fma_max_bits.
23683 2021-01-22 Richard Biener <rguenther@suse.de>
23685 PR middle-end/98793
23686 * tree.c (vector_element_bits): Key single-bit bool vector on
23687 integer mode rather than not vector mode.
23689 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
23692 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23693 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
23695 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
23696 to call different path for P8 and P9.
23697 (rs6000_expand_vector_set_var_p9): New function.
23698 (rs6000_expand_vector_set_var_p8): New function.
23700 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
23704 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23705 Ajdust variable index vec_insert from address dereference to
23706 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
23707 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
23709 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
23711 2021-01-22 Martin Liska <mliska@suse.cz>
23713 PR gcov-profile/98739
23714 * profile.c (compute_value_histograms): Drop time profile for
23715 -fprofile-reproducible=multithreaded.
23717 2021-01-22 Nathan Sidwell <nathan@acm.org>
23719 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
23722 2021-01-22 Richard Biener <rguenther@suse.de>
23724 PR middle-end/98773
23725 * tree-data-ref.c (initalize_matrix_A): Revert previous
23726 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
23728 2021-01-22 Jakub Jelinek <jakub@redhat.com>
23730 PR tree-optimization/90248
23731 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
23732 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
23734 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
23735 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
23737 2021-01-22 Jakub Jelinek <jakub@redhat.com>
23739 PR tree-optimization/98255
23740 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
23741 extend index - low_bound from sizetype's precision rather than index
23743 (get_addr_base_and_unit_offset_1): Likewise.
23744 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
23745 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
23747 2021-01-22 Richard Biener <rguenther@suse.de>
23749 PR tree-optimization/98786
23750 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
23751 adding new uses of abnormals. Verify we deal with a conditional
23754 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23757 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
23759 2021-01-22 liuhongt <hongtao.liu@intel.com>
23763 * config/i386/sse.md (VI_128_256): New mode iterator.
23764 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
23765 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
23766 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
23767 define_insn_and_split to lower avx512 vector comparison to avx
23768 version when dest is vector.
23769 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
23770 define_insn_and_split for negating the comparison result.
23771 * config/i386/predicates.md (float_vector_all_ones_operand):
23773 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
23774 general NOT operator without UNSPEC_MASKOP.
23776 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
23778 PR rtl-optimization/98777
23779 * lra-int.h (lra_pmode_pseudo): New extern.
23780 * lra.c (lra_pmode_pseudo): New global.
23782 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
23784 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
23786 * fwprop.c (fwprop_propagation::classify_result): Allow
23787 (subreg (mem)) simplifications.
23789 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23791 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
23793 (aarch64_sqdmlal<mode>): ... This...
23794 (aarch64_sqdmlsl<mode>): ... And this.
23795 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
23796 (aarch64_sqdmlal_lane<mode>): ... This...
23797 (aarch64_sqdmlsl_lane<mode>): ... And this.
23798 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
23799 (aarch64_sqdmlsl_laneq<mode>): ... This...
23800 (aarch64_sqdmlal_laneq<mode>): ... And this.
23801 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
23802 (aarch64_sqdmlsl_n<mode>): ... This...
23803 (aarch64_sqdmlal_n<mode>): ... And this.
23804 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
23805 (aarch64_sqdmlal2<mode>_internal): ... This...
23806 (aarch64_sqdmlsl2<mode>_internal): ... And this.
23808 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
23810 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
23812 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
23815 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
23817 2021-01-21 liuhongt <hongtao.liu@intel.com>
23819 PR rtl-optimization/98694
23820 * regcprop.c (copy_value): If SRC had been assigned a mode
23821 narrower than the copy, we can't link DEST into the chain even
23822 they have same hard_regno_nregs(i.e. HImode/SImode in i386
23825 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23827 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
23828 Convert to define_insn_and_split. Split into simple move when moving
23831 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
23833 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
23834 Adjust comment. Simplify code.
23836 2021-01-20 Jakub Jelinek <jakub@redhat.com>
23839 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
23840 with DW_FORM_line_strp form.
23841 (prune_unused_types_update_strings): Don't add into debug_str_hash
23842 indirect strings with DW_FORM_line_strp form.
23843 (adjust_name_comp_dir): New function.
23844 (dwarf2out_finish): Call it on CU DIEs after resetting
23845 debug_line_str_hash.
23847 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
23849 PR rtl-optimization/98722
23850 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
23851 has no 3-op add insn to transform insns containing two pluses.
23853 2021-01-20 Richard Biener <rguenther@suse.de>
23855 * hwint.h (add_hwi): New function.
23856 (mul_hwi): Likewise.
23857 * tree-data-ref.c (initialize_matrix_A): Properly translate
23858 tree constants and avoid HOST_WIDE_INT_MIN.
23859 (lambda_matrix_row_add): Avoid undefined integer overflow
23860 and return true on such overflow.
23861 (lambda_matrix_right_hermite): Handle overflow from
23862 lambda_matrix_row_add gracefully. Simplify previous fix.
23863 (analyze_subscript_affine_affine): Likewise.
23865 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
23867 PR tree-optimization/96674
23868 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
23869 x >= y && y != XXX_MIN --> x > y - 1
23871 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
23873 PR tree-optimization/98535
23874 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
23875 If the high and low permutes are the same, remove the high permutes
23876 from the working set and only continue with the low ones.
23878 2021-01-20 Jakub Jelinek <jakub@redhat.com>
23880 PR tree-optimization/98721
23881 * builtins.c (access_ref::inform_access): Don't assume
23882 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
23883 object whenever allocfn is NULL, rather than only when DECL_P
23884 is true. Use %qE instead of %qD for that. Formatting fixes.
23886 2021-01-20 Richard Biener <rguenther@suse.de>
23888 PR tree-optimization/98758
23889 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
23890 (lambda_matrix_right_hermite): Avoid undefinedness with
23891 signed integer abs and multiplication.
23892 (analyze_subscript_affine_affine): Use lambda_int.
23894 2021-01-20 David Malcolm <dmalcolm@redhat.com>
23897 * dwarf2out.c (output_line_info): Rename static variable
23898 "generation", moving it out of the function to...
23899 (output_line_info_generation): New.
23900 (init_sections_and_labels): Likewise, renaming the variable to...
23901 (init_sections_and_labels_generation): New.
23902 (dwarf2out_c_finalize): Reset the new variables.
23904 2021-01-19 Martin Sebor <msebor@redhat.com>
23906 PR middle-end/98664
23907 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
23908 all functions, even if they're not declared artificial or inline.
23909 * tree.c (tree_inlined_location): Use macro expansion location
23910 only if scope traversal fails to expose one.
23912 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
23914 PR rtl-optimization/92294
23915 * alias.c (compare_base_symbol_refs): Take an extra parameter
23916 and add the distance between two symbols to it. Enshrine in
23917 comments that -1 means "either 0 or 1, but we can't tell
23918 which at compile time".
23919 (memrefs_conflict_p): Update call accordingly.
23920 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
23923 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23925 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
23926 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
23927 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
23928 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
23929 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
23930 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
23931 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
23932 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
23933 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
23934 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
23935 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
23936 sqmovun): Use NONE flags.
23938 2021-01-19 Richard Biener <rguenther@suse.de>
23941 * ipa-modref.c (analyze_stmt): Only record a summary for a
23944 2021-01-19 Richard Biener <rguenther@suse.de>
23946 PR middle-end/98638
23947 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
23949 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
23951 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
23952 built-in define __FIX_LEON3FT_TN0018.
23954 2021-01-19 Richard Biener <rguenther@suse.de>
23957 * tree-inline.c (tree_function_versioning): Set input_location
23958 to UNKNOWN_LOCATION throughout the function.
23960 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
23963 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
23965 2021-01-19 Martin Jambor <mjambor@suse.cz>
23968 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
23969 whether non-call exceptions allow removal of a statement.
23970 (isra_analyze_call): Pass the appropriate function to
23971 ssa_name_only_returned_p.
23973 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
23975 * config/riscv/arch-canonicalize (longext_sort): New function for
23976 sorting 'multi-letter'.
23977 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
23978 'alts'. The 'arch' may not be the first of 'alts'.
23979 (_expand_combination): Add underline for the 'ext' without '*'.
23980 This is because, a single-letter extension can always be treated well
23981 with a '_' prefix, but it cannot be separated out if it is appended
23984 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
23987 * ira.c (ira): Skip abnormal critical edge splitting.
23989 2021-01-18 Jakub Jelinek <jakub@redhat.com>
23991 PR tree-optimization/98727
23992 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
23993 second .MUL_OVERFLOW operand for signed multiplication with overflow
23994 checking if the second operand of multiplication is not constant.
23996 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
23998 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
23999 defaults to version 4.
24001 2021-01-18 David Malcolm <dmalcolm@redhat.com>
24003 * attribs.h (fndecl_dealloc_argno): New decl.
24004 * builtins.c (call_dealloc_argno): Split out second half of
24006 (fndecl_dealloc_argno): New.
24007 * doc/extend.texi (Common Function Attributes): Document the
24008 interaction between the analyzer and the malloc attribute.
24009 * doc/invoke.texi (Static Analyzer Options): Likewise.
24011 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
24013 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
24014 dwarf_version to 4.
24015 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
24017 2021-01-17 Martin Jambor <mjambor@suse.cz>
24020 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
24023 2021-01-17 Mark Wielaard <mark@klomp.org>
24025 * common.opt (gdwarf-): Init(5).
24026 * doc/invoke.texi (-gdwarf): Document default to 5.
24028 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
24030 * builtin-types.def
24031 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
24033 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
24034 ...this. Add extra argument.
24035 * gimplify.c (omp_default_clause): Ensure that event handle is
24036 firstprivate in a task region.
24037 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
24038 (gimplify_adjust_omp_clauses): Likewise.
24039 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
24040 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
24041 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
24042 if detach clause specified. Add detach argument when generating
24044 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
24046 (finish_taskreg_scan): Move field for variable containing the event
24047 handle to the front of the struct.
24048 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
24050 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
24051 OMP_CLAUSE_DETACH clause.
24052 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
24053 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
24054 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
24056 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
24058 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
24060 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
24062 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
24063 multilib directory names. Use MULTILIB_REQUIRED instead of
24064 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
24065 -mcustom-fpu-cfg=fph2 multilib.
24067 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
24069 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
24070 (nios2_init_fpu_configs): Provide register values for new
24071 -mcustom-fpu-cfg=fph2 option variant.
24072 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
24075 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
24077 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
24078 custom instruction warnings.
24080 2021-01-16 Jakub Jelinek <jakub@redhat.com>
24082 PR tree-optimization/96669
24083 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
24085 2021-01-16 Jakub Jelinek <jakub@redhat.com>
24087 PR tree-optimization/96271
24088 * passes.def: Pass false argument to first two pass_cd_dce
24089 instances and true to last instance. Add comment that
24090 last instance rewrites no longer addressed locals.
24091 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
24093 (pass_cd_dce::set_pass_param): New method.
24094 (pass_cd_dce::execute): Return TODO_update_address_taken from
24095 last cd_dce instance.
24097 2021-01-15 Carl Love <cel@us.ibm.com>
24099 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
24101 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
24102 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
24103 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
24104 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
24105 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
24106 Add builtin define.
24107 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
24108 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
24109 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
24110 New overloaded definitions.
24111 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
24112 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
24113 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
24114 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
24115 P10V_BUILTIN_MULHU_V4SI]: Add case
24116 statement for builtins.
24117 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
24118 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
24119 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
24120 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
24121 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
24122 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
24123 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
24124 Add define_insn, mode is VIlong.
24125 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
24126 Add builtin descriptions.
24128 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
24130 * final.c (final_start_function_1): Reset force_source_line.
24132 2021-01-15 Jakub Jelinek <jakub@redhat.com>
24134 PR tree-optimization/96669
24135 * match.pd (((1 << A) & 1) != 0 -> A == 0,
24136 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
24137 possibly different power of two constants and to right shift too.
24139 2021-01-15 Jakub Jelinek <jakub@redhat.com>
24141 PR tree-optimization/96681
24142 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
24143 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
24144 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
24145 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
24147 2021-01-15 Alexandre Oliva <oliva@adacore.com>
24149 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
24151 2021-01-15 Tamar Christina <tamar.christina@arm.com>
24153 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
24154 cmul<conj_op><mode>3): New.
24155 * config/aarch64/iterators.md (UNSPEC_FCMUL,
24156 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
24157 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
24158 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
24159 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
24160 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
24161 (rot_op): Renamed to conj_op.
24162 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
24163 cmul<conj_op><mode>3): New.
24164 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
24165 cmul<conj_op><mode>3): New.
24167 2021-01-15 David Malcolm <dmalcolm@redhat.com>
24171 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
24172 Escape the tempfile name when constructing the expected output.
24174 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24176 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
24178 (aarch64_<su>mlsl_hi<mode>): ... This.
24179 (aarch64_<su>mlsl_hi<mode>): Define.
24180 (*aarch64_<su>mlsl<mode): Rename to...
24181 (aarch64_<su>mlsl<mode): ... This.
24182 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
24183 smlsl_hi, umlsl_hi): Define builtins.
24184 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
24185 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
24186 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
24187 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
24189 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
24191 * config/i386/i386-c.c (ix86_target_macros):
24192 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
24194 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
24197 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
24198 * Makefile.in (RTL_SSA_H): New variable.
24199 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
24200 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
24201 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
24203 * config/aarch64/aarch64-cc-fusion.cc: New file.
24205 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
24207 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
24208 calling cancel_changes for changes that no longer exist.
24210 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
24212 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
24213 (function_info::reg_defs): ...this.
24214 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
24215 (function_info::reg_defs): ...this.
24217 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
24220 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
24222 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
24225 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
24228 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
24230 2021-01-15 Richard Biener <rguenther@suse.de>
24232 PR tree-optimization/96376
24233 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
24234 for VMAT_INVARIANT.
24236 2021-01-15 Martin Liska <mliska@suse.cz>
24238 * doc/install.texi: Document that some tests need pytest module.
24239 * doc/sourcebuild.texi: Likewise.
24241 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
24244 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
24246 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
24248 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
24249 (mve_vshrq_n_u<mode>_imm): Likewise.
24250 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
24251 * config/arm/vec-common.md: ... here.
24253 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
24255 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
24257 * config/arm/neon.md (vashl<mode>3): Delete.
24258 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
24259 (vasl<mode>3): New expander.
24261 2021-01-15 Richard Biener <rguenther@suse.de>
24263 PR tree-optimization/98685
24264 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
24265 of vector extern defs.
24267 2021-01-14 David Malcolm <dmalcolm@redhat.com>
24270 * diagnostic.c (diagnostic_kind_text): Break out this array
24272 (diagnostic_build_prefix): ...here.
24273 (fancy_abort): Detect when diagnostic_initialize has not yet been
24274 called and fall back to a minimal implementation of printing the
24275 ICE, rather than segfaulting in internal_error.
24277 2021-01-14 David Malcolm <dmalcolm@redhat.com>
24279 * diagnostic.c (diagnostic_initialize): Eliminate
24280 parseable_fixits_p in favor of initializing extra_output_kind from
24281 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
24282 (convert_column_unit): New function, split out from...
24283 (diagnostic_converted_column): ...this.
24284 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
24285 Use them to call convert_column_unit on the column values.
24286 (diagnostic_report_diagnostic): Eliminate conditional on
24287 parseable_fixits_p in favor of a switch statement on
24288 extra_output_kind, passing the appropriate values to the new
24289 params of print_parseable_fixits.
24290 (selftest::test_print_parseable_fixits_none): Update for new
24291 params of print_parseable_fixits.
24292 (selftest::test_print_parseable_fixits_insert): Likewise.
24293 (selftest::test_print_parseable_fixits_remove): Likewise.
24294 (selftest::test_print_parseable_fixits_replace): Likewise.
24295 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
24297 (selftest::diagnostic_c_tests): Call it.
24298 * diagnostic.h (enum diagnostics_extra_output_kind): New.
24299 (diagnostic_context::parseable_fixits_p): Delete field in favor
24301 (diagnostic_context::extra_output_kind): ...this new field.
24302 * doc/invoke.texi (Environment Variables): Add
24303 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
24304 * opts.c (common_handle_option): Update handling of
24305 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
24308 2021-01-14 Tamar Christina <tamar.christina@arm.com>
24310 * tree-vect-slp-patterns.c (class complex_operations_pattern,
24311 complex_operations_pattern::matches,
24312 complex_operations_pattern::recognize,
24313 complex_operations_pattern::build): New.
24314 (slp_patterns): Use it.
24316 2021-01-14 Tamar Christina <tamar.christina@arm.com>
24318 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
24319 * optabs.def (cmls_optab, cmls_conj_optab): New.
24320 * doc/md.texi: Document them.
24321 * tree-vect-slp-patterns.c (class complex_fms_pattern,
24322 complex_fms_pattern::matches, complex_fms_pattern::recognize,
24323 complex_fms_pattern::build): New.
24325 2021-01-14 Tamar Christina <tamar.christina@arm.com>
24327 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
24328 * optabs.def (cmla_optab, cmla_conj_optab): New.
24329 * doc/md.texi: Document them.
24330 * tree-vect-slp-patterns.c (vect_match_call_p,
24331 class complex_fma_pattern, vect_slp_reset_pattern,
24332 complex_fma_pattern::matches, complex_fma_pattern::recognize,
24333 complex_fma_pattern::build): New.
24335 2021-01-14 Tamar Christina <tamar.christina@arm.com>
24337 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
24338 * optabs.def (cmul_optab, cmul_conj_optab): New.
24339 * doc/md.texi: Document them.
24340 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
24341 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
24342 vect_build_combine_node, class complex_mul_pattern,
24343 complex_mul_pattern::matches, complex_mul_pattern::recognize,
24344 complex_mul_pattern::build): New.
24346 2021-01-14 Tamar Christina <tamar.christina@arm.com>
24348 * tree-vect-slp.c (optimize_load_redistribution_1): New.
24349 (optimize_load_redistribution, vect_is_slp_load_node): New.
24350 (vect_match_slp_patterns): Use it.
24352 2021-01-14 Tamar Christina <tamar.christina@arm.com>
24354 * tree-vect-slp-patterns.c (complex_add_pattern::build):
24357 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
24359 * config/gcn/mkoffload.c (main): Create an offload image only in
24360 64-bit configurations.
24362 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
24365 * config/i386/i386-options.c (ix86_option_override_internal):
24366 Issue an error for -fcf-protection with CF_BRANCH when compiling
24367 for 32-bit non-TARGET_CMOV targets.
24369 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
24372 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
24373 Remove declaration and initialization of shadow variable "ret".
24374 (ix86_option_override_internal): Remove delcaration of
24375 shadow variable "i". Redeclare shadowed variable to unsigned.
24376 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
24377 * config/i386/i386-builtins.c (get_builtin_code_for_version):
24378 Update for redeclaration.
24379 * config/i386/i386.h (pta_size): Ditto.
24381 2021-01-14 Richard Biener <rguenther@suse.de>
24383 PR tree-optimization/98674
24384 * tree-data-ref.c (base_supports_access_fn_components_p): New.
24385 (initialize_data_dependence_relation): For two bases without
24386 possible access fns resort to type size equality when determining
24387 shape compatibility.
24389 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24392 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
24393 <=, >= operators in vcle and vcge intrinsics respectively.
24394 * config/arm/arm_neon_builtins.def: Remove entry for
24397 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
24400 * config/i386/i386-options.c (ix86_function_specific_save):
24401 Remove redundant assignment to opts->x_ix86_branch_cost.
24402 * config/i386/i386.c (ix86_prefetch_sse):
24403 Rename from x86_prefetch_sse. Update all uses.
24404 * config/i386/i386.h: Update for rename.
24405 * config/i386/i386-options.h: Ditto.
24407 2021-01-14 Jakub Jelinek <jakub@redhat.com>
24410 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
24411 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
24412 Use Bm instead of m for non-avx. Add isa attribute.
24414 2021-01-14 Jakub Jelinek <jakub@redhat.com>
24416 PR tree-optimization/96688
24417 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
24418 ~X can be simplified.
24420 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
24422 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
24423 IFN_LOAD_LANES results.
24425 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24427 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
24429 (aarch64_xtn<mode>): Likewise.
24430 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
24433 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
24435 (vmovl_s16): Likewise.
24436 (vmovl_s32): Likewise.
24437 (vmovl_u8): Likewise.
24438 (vmovl_u16): Likewise.
24439 (vmovl_u32): Likewise.
24440 (vmovn_s16): Likewise.
24441 (vmovn_s32): Likewise.
24442 (vmovn_s64): Likewise.
24443 (vmovn_u16): Likewise.
24444 (vmovn_u32): Likewise.
24445 (vmovn_u64): Likewise.
24447 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24449 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
24451 (aarch64_<su>qxtn2<mode>_be): Likewise.
24452 (aarch64_<su>qxtn2<mode>): Likewise.
24453 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
24455 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
24456 (su): Handle ss_truncate and us_truncate.
24457 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
24459 (vqmovn_high_s32): Likewise.
24460 (vqmovn_high_s64): Likewise.
24461 (vqmovn_high_u16): Likewise.
24462 (vqmovn_high_u32): Likewise.
24463 (vqmovn_high_u64): Likewise.
24465 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24467 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
24469 (aarch64_xtn2<mode>_be): Likewise.
24470 (aarch64_xtn2<mode>): Likewise.
24471 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
24473 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
24475 (vmovn_high_s32): Likewise.
24476 (vmovn_high_s64): Likewise.
24477 (vmovn_high_u16): Likewise.
24478 (vmovn_high_u32): Likewise.
24479 (vmovn_high_u64): Likewise.
24481 2021-01-13 Stafford Horne <shorne@gmail.com>
24483 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
24485 2021-01-13 Stafford Horne <shorne@gmail.com>
24487 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
24489 2021-01-13 Stafford Horne <shorne@gmail.com>
24491 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
24492 define for __or1k_hard_float__.
24494 2021-01-13 Stafford Horne <shorne@gmail.com>
24496 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
24497 (PROFILE_HOOK): Define to call _mcount.
24498 (FUNCTION_PROFILER): Change from abort to no-op.
24500 2021-01-13 Jakub Jelinek <jakub@redhat.com>
24502 PR tree-optimization/96691
24503 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
24504 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
24505 (~D ^ C) or (D ^ C) can be simplified.
24507 2021-01-13 Richard Biener <rguenther@suse.de>
24509 PR tree-optimization/92645
24510 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
24511 until after vector lowering.
24513 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
24515 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
24517 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
24518 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
24520 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
24522 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
24524 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
24525 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
24527 2021-01-13 Richard Biener <rguenther@suse.de>
24529 PR tree-optimization/92645
24530 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
24531 BIT_FIELD_REF argument.
24532 (vect_build_slp_tree_2): Record the desired vector type
24533 on the external vector def.
24534 (vectorizable_slp_permutation): Handle required punning
24535 of existing vector defs.
24537 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
24539 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
24541 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
24543 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
24545 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
24547 * config.gcc [$target == *-*-gnu*]: Enable
24548 'default_gnu_indirect_function'.
24550 2021-01-13 Jakub Jelinek <jakub@redhat.com>
24553 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
24554 registers before calling targetm.vectorize.vec_perm_const, only after
24556 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
24557 two argument permutation when one operand is zero vector and only
24558 after that force operands into registers.
24559 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
24560 define_insn_and_split pattern.
24561 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
24562 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
24563 (*avx2_zero_extendv8hiv8si2_1): Likewise.
24564 (*avx512f_zero_extendv8siv8di2_1): Likewise.
24565 (*avx2_zero_extendv4siv4di2_1): Likewise.
24566 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
24568 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
24569 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
24570 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
24571 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
24572 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
24573 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
24575 2021-01-13 Martin Liska <mliska@suse.cz>
24577 PR tree-optimization/98455
24578 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
24579 Record also virtual PHIs.
24580 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
24583 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
24585 * doc/invoke.texi (C++ Modules): Fix typos.
24587 2021-01-13 Richard Biener <rguenther@suse.de>
24589 PR tree-optimization/98640
24590 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
24591 handle plus or minus from a truncated operand to be
24594 2021-01-13 Jakub Jelinek <jakub@redhat.com>
24597 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
24598 define_insn_and_split patterns.
24599 (splitter after *btr<mode>_2): New splitter.
24601 2021-01-13 Martin Liska <mliska@suse.cz>
24604 * cgraphunit.c (analyze_functions): Remove dead code.
24606 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
24608 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
24609 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
24610 (a64fx_regmove_cost, a64fx_vector_cost): New.
24611 (a64fx_tunings): Use the new added cost tables.
24613 2021-01-13 Jakub Jelinek <jakub@redhat.com>
24616 * config/i386/predicates.md (pmovzx_parallel): New predicate.
24617 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
24618 define_insn_and_split pattern.
24619 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
24620 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
24622 2021-01-13 Julian Brown <julian@codesourcery.com>
24624 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
24625 to fix v0 register.
24627 2021-01-13 Julian Brown <julian@codesourcery.com>
24629 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
24632 2021-01-13 Julian Brown <julian@codesourcery.com>
24634 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
24635 for reciprocal-approximation instructions.
24636 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
24637 refinement and division result.
24638 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
24640 2021-01-13 Julian Brown <julian@codesourcery.com>
24642 * config/gcn/gcn-valu.md (subdf): Rename to...
24645 2021-01-12 Martin Liska <mliska@suse.cz>
24647 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
24649 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
24651 * function-abi.h: Fix typo.
24653 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
24657 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
24658 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
24659 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
24660 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
24661 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
24662 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
24663 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
24664 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
24665 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
24666 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
24667 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
24668 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
24669 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
24670 (ARM_HAVE_V2DI_LDST): Likewise.
24671 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
24672 (*movmisalign<mode>_mve_load): New pattern.
24673 * config/arm/neon.md (movmisalign<mode>): Move to ...
24674 * config/arm/vec-common.md: ... here.
24676 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
24679 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
24680 of pattern 'plus (plus (hard reg, const), pseudo)'.
24682 2021-01-12 Richard Biener <rguenther@suse.de>
24684 PR tree-optimization/98550
24685 * tree-vect-slp.c (vect_record_max_nunits): Check whether
24686 the group size is a multiple of the vector element count.
24687 (vect_build_slp_tree_1): When we need to fail because
24688 the vector type choosen causes unrolling do so lazily
24689 without affecting matches only at the end to guide group splitting.
24691 2021-01-12 Martin Liska <mliska@suse.cz>
24694 * optc-save-gen.awk: Compare also n_target_save vars with
24697 2021-01-12 Martin Liska <mliska@suse.cz>
24699 * gcov.c (source_info::debug): New.
24700 (print_usage): Add --debug (-D) option.
24701 (process_args): Likewise.
24702 (generate_results): Call src->debug after
24703 accumulate_line_counts.
24704 (read_graph_file): Properly assign id for EXIT_BLOCK.
24705 * profile.c (branch_prob): Dump function body before it is
24708 2021-01-12 Jakub Jelinek <jakub@redhat.com>
24710 PR tree-optimization/98629
24711 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
24712 unless returning non-zero.
24714 2021-01-12 Jakub Jelinek <jakub@redhat.com>
24716 PR tree-optimization/95731
24717 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
24718 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
24719 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
24720 only after optimize_range_tests_var_bound.
24722 2021-01-12 Jakub Jelinek <jakub@redhat.com>
24724 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
24725 * configure: Regenerated.
24727 2021-01-12 liuhongt <hongtao.liu@intel.com>
24730 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
24732 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
24735 2021-01-12 Alexandre Oliva <oliva@adacore.com>
24737 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
24739 (auto_end_imm_use_stmt_traverse): New struct.
24740 (FOR_EACH_IMM_USE_STMT): Use it.
24741 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
24743 * gimple-ssa-strength-reduction.c: ... here, ...
24744 * graphite-scop-detection.c: ... here, ...
24745 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
24746 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
24747 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
24748 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
24749 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
24750 * tree-vect-slp.c: ... and here, ...
24751 * doc/tree-ssa.texi: ... and the example here.
24753 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
24755 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
24756 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
24757 (*sdiv_pow2<mode>3): New pattern.
24758 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
24759 Wrap the ASRD in an UNSPEC_PRED_X.
24760 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
24761 predicate with a constant PTRUE, if it isn't already.
24762 (*cond_<sve_int_op><mode>_z): Replace with...
24763 (*cond_<sve_int_op><mode>_any): ...this new pattern.
24765 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
24767 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
24768 SVE_FULL_I to SVE_I.
24769 (*cond_bic<mode>_any): Likewise.
24771 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
24773 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
24774 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
24777 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
24779 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
24780 SVE_FULL_I to SVE_I.
24781 (*aarch64_cond_<su>abd<mode>_2): Likewise.
24782 (*aarch64_cond_<su>abd<mode>_any): Likewise.
24783 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
24784 for the max and min but not for the minus.
24785 (*aarch64_cond_<su>abd<mode>_3): New pattern.
24787 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
24789 * config/aarch64/iterators.md (SVE_24I): New iterator.
24790 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
24791 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
24793 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
24795 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
24796 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
24798 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
24799 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
24800 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
24801 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
24803 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
24805 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
24806 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
24807 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
24810 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
24812 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
24813 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
24814 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
24816 2021-01-11 Martin Liska <mliska@suse.cz>
24819 * symtab-clones.h (clone_info::release): Release
24820 symtab::m_clones with ggc_delete as it's a GGC memory.
24822 2021-01-11 Matthias Klose <doko@ubuntu.com>
24824 * Makefile.in (LINK_PROGRESS): Show the link target.
24826 2021-01-11 Richard Biener <rguenther@suse.de>
24828 PR tree-optimization/91403
24829 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
24830 single-element interleaving group size at 4096 elements.
24832 2021-01-11 Richard Biener <rguenther@suse.de>
24834 PR tree-optimization/98526
24835 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
24836 of the actual reduction op for the regular case.
24837 (vectorizable_reduction): Cost the stmts
24838 vect_transform_reduction produces here.
24840 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
24842 * tree-ssa-forwprop.c (simplify_vector_constructor): For
24843 big-endian, use UNPACK[_FLOAT]_HI.
24845 2021-01-11 Tamar Christina <tamar.christina@arm.com>
24847 * tree-vect-slp-patterns.c (class complex_pattern,
24848 class complex_add_pattern): Add parameters to matches.
24849 (complex_add_pattern::build): Free memory.
24850 (complex_add_pattern::matches): Move validation end of match.
24851 (complex_add_pattern::recognize): Likewise.
24853 2021-01-11 Tamar Christina <tamar.christina@arm.com>
24855 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
24857 2021-01-11 Tamar Christina <tamar.christina@arm.com>
24859 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
24861 2021-01-11 Jakub Jelinek <jakub@redhat.com>
24863 PR tree-optimization/95867
24864 * tree-ssa-math-opts.h: New header.
24865 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
24866 (powi_as_mults): No longer static. Use build_one_cst instead of
24867 build_real. Formatting fix.
24868 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
24869 (attempt_builtin_powi): Handle multiplication reassociation without
24870 powi_fndecl using powi_as_mults.
24871 (reassociate_bb): For integral types don't require
24872 -funsafe-math-optimizations to call attempt_builtin_powi.
24874 2021-01-11 Jakub Jelinek <jakub@redhat.com>
24876 PR tree-optimization/95852
24877 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
24878 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
24879 allow in the bb any of the stmts in that vector, div_stmt and
24880 up to 3 cast stmts.
24881 (arith_cast_equal_p): New function.
24882 (arith_overflow_check_p): Add cast_stmt argument, handle signed
24883 multiply overflow checks.
24884 (match_arith_overflow): Adjust caller. Handle signed multiply
24887 2021-01-11 Jakub Jelinek <jakub@redhat.com>
24889 PR tree-optimization/95852
24890 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
24891 (uaddsub_overflow_check_p): Renamed to ...
24892 (arith_overflow_check_p): ... this. Handle also multiplication
24893 with overflow check.
24894 (match_uaddsub_overflow): Renamed to ...
24895 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
24896 also multiplication with overflow check. Adjust function comment.
24897 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
24898 match_arith_overflow also for MULT_EXPR.
24900 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24902 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
24903 __builtin_convertvector.
24904 (vmovl_s16): Likewise.
24905 (vmovl_s32): Likewise.
24906 (vmovl_u8): Likewise.
24907 (vmovl_u16): Likewise.
24908 (vmovl_u32): Likewise.
24909 (vmovn_s16): Likewise.
24910 (vmovn_s32): Likewise.
24911 (vmovn_s64): Likewise.
24912 (vmovn_u16): Likewise.
24913 (vmovn_u32): Likewise.
24914 (vmovn_u64): Likewise.
24916 2021-01-11 Martin Liska <mliska@suse.cz>
24918 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
24919 (if_chain::is_beneficial): Delete clusters
24920 (find_conditions): Make second argument of conditions_in_bbs a
24921 pointer so that we control over it's lifetime.
24922 (pass_if_to_switch::execute): Delete them.
24924 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
24926 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
24929 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
24931 * config/vax/vax.md (cc): Remove mode attribute.
24932 (subst_<cc>, subst_f<cc>): Rename to...
24933 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
24934 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
24935 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
24936 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
24938 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
24940 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
24941 `const_double_zero'.
24943 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
24945 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
24946 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
24949 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
24951 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
24953 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
24954 with `const_double_zero'.
24955 * doc/rtl.texi (Constant Expression Types): Document it.
24957 2021-01-09 Jakub Jelinek <jakub@redhat.com>
24960 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
24961 POINTER_DIFF_EXPR to be any integral type.
24963 2021-01-09 Jakub Jelinek <jakub@redhat.com>
24965 PR rtl-optimization/98603
24966 * function.c (instantiate_virtual_regs_in_insn): For asm goto
24967 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
24968 if any, set ASM_OPERANDS mode to VOIDmode and change
24969 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
24971 2021-01-09 Alexandre Oliva <oliva@gnu.org>
24974 * final.c (notice_source_line): Narrow down the condition to
24975 skip a line-0 marker.
24977 2021-01-08 Sergei Trofimovich <siarheit@google.com>
24979 * ipa-modref.c (merge_call_side_effects): Fix
24980 linebreak split by reordering two print calls.
24982 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
24984 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
24985 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
24986 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
24987 consistency, fix constraint.
24989 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
24991 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
24992 callables instead of mask values.
24993 (struct target_flag_set_p): New predicate.
24994 (s390_cpu_cpp_builtins_internal): Define or undefine
24995 __LONG_DOUBLE_VX__ macro.
24997 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
25000 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
25001 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
25004 2021-01-08 Richard Biener <rguenther@suse.de>
25006 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
25008 2021-01-08 Richard Biener <rguenther@suse.de>
25010 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
25011 (vect_build_slp_tree): On cache hit release the matched
25012 scalar stmts vector.
25013 * tree-vect-stmts.c (vectorizable_store): Properly free
25014 vec_oprnds before possibly gathering them again.
25016 2021-01-08 Richard Biener <rguenther@suse.de>
25018 PR tree-optimization/98544
25019 * tree-vect-slp.c (vect_optimize_slp): Always materialize
25020 permutes at a permute node.
25022 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
25025 * config/i386/i386.c (x86_function_profiler): Use R10 to call
25026 mcount in large model. Sorry for large model with PIC.
25028 2021-01-08 Jakub Jelinek <jakub@redhat.com>
25031 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
25032 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
25033 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
25034 TargetSave and initialize for variables with enum types.
25035 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
25036 mstack-protector-guard-symbol=): Add Save.
25037 * config/i386/i386-options.c (ix86_function_specific_save,
25038 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
25039 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
25040 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
25041 x_ix86_veclibabi_type.
25043 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
25045 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
25046 SVE_FULL_I to SVE_I.
25047 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
25049 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
25051 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
25052 SVE_FULL_I to SVE_I.
25053 (*cond_uxt<mode>_any): Likewise.
25055 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25057 * config/aarch64/iterators.md (Vwhalf): New iterator.
25058 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
25060 (aarch64_<sur>adalp<mode>): ... This. Make more
25062 (<sur>sadv16qi): Adjust callsite of the above.
25063 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
25065 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
25067 (vpadal_s16): Likewise.
25068 (vpadal_u8): Likewise.
25069 (vpadal_u16): Likewise.
25070 (vpadalq_s8): Likewise.
25071 (vpadalq_s16): Likewise.
25072 (vpadalq_s32): Likewise.
25073 (vpadalq_u8): Likewise.
25074 (vpadalq_u16): Likewise.
25075 (vpadalq_u32): Likewise.
25077 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25079 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
25081 (aarch64_<su>abd<mode>): ... This.
25082 (<sur>sadv16qi): Adjust callsite of the above.
25083 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
25085 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
25087 (vabd_s16): Likewise.
25088 (vabd_s32): Likewise.
25089 (vabd_u8): Likewise.
25090 (vabd_u16): Likewise.
25091 (vabd_u32): Likewise.
25092 (vabdq_s8): Likewise.
25093 (vabdq_s16): Likewise.
25094 (vabdq_s32): Likewise.
25095 (vabdq_u8): Likewise.
25096 (vabdq_u16): Likewise.
25097 (vabdq_u32): Likewise.
25099 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25101 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
25103 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
25104 (vaba_s16): Likewise.
25105 (vaba_s32): Likewise.
25106 (vaba_u8): Likewise.
25107 (vaba_u16): Likewise.
25108 (vaba_u32): Likewise.
25109 (vabaq_s8): Likewise.
25110 (vabaq_s16): Likewise.
25111 (vabaq_s32): Likewise.
25112 (vabaq_u8): Likewise.
25113 (vabaq_u16): Likewise.
25114 (vabaq_u32): Likewise.
25116 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25118 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
25119 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
25120 Change RTL pattern to match.
25122 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
25124 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
25125 * config/riscv/riscv-c.c (riscv-subset.h): New.
25126 (INCLUDE_STRING): Define.
25127 (riscv_cpu_cpp_builtins): Add new style architecture extension
25129 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
25130 (riscv_subset_list::end): New.
25131 (riscv_current_subset_list): New.
25133 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
25135 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
25136 Move to riscv-subset.h.
25137 (struct riscv_subset_t): Ditto.
25138 (class riscv_subset_list): Ditto.
25139 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
25140 from riscv-common.c.
25141 (struct riscv_subset_t): Ditto.
25142 (class riscv_subset_list): Ditto.
25143 * config/riscv/t-riscv ($(common_out_file)): Add file
25146 2021-01-07 Jakub Jelinek <jakub@redhat.com>
25149 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
25150 New define_insn patterns.
25152 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
25154 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
25155 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
25156 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
25158 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
25160 PR tree-optimization/98560
25161 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
25162 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
25164 (vec_cond_direct): Likewise argument 2.
25165 (vec_condu_direct, vec_condeq_direct): Delete.
25166 (expand_vect_cond_optab_fn): Rename to...
25167 (expand_vec_cond_optab_fn): ...this, replacing old macro.
25168 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
25169 (expand_vect_cond_mask_optab_fn): Rename to...
25170 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
25171 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
25173 (direct_vec_cond_optab_supported_p): Likewise.
25174 (direct_vec_condu_optab_supported_p): Delete.
25175 (direct_vec_condeq_optab_supported_p): Delete.
25176 * gimple-isel.cc: Include internal-fn.h.
25177 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
25180 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
25182 PR tree-optimization/98560
25183 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
25184 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
25186 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
25188 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
25189 rotate_insn and optab code attributes.
25190 Update all uses to merged code attribute.
25191 * config/i386/sse.md: Update all uses to merged code attribute.
25192 * config/i386/mmx.md: Update all uses to merged code attribute.
25194 2021-01-07 Jakub Jelinek <jakub@redhat.com>
25196 PR tree-optimization/98568
25197 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
25198 (bswap_replace): Use it.
25200 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
25202 PR rtl-optimization/97978
25203 * lra-int.h (lra_hard_reg_split_p): New external.
25204 * lra.c (lra_hard_reg_split_p): New global.
25205 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
25206 * lra-assigns.c (lra_assign): Don't check allocation correctness
25207 after hard reg splitting.
25209 2021-01-06 Martin Sebor <msebor@redhat.com>
25212 * builtins.c (new_delete_mismatch_p): New overload.
25213 (new_delete_mismatch_p (tree, tree)): Call it.
25215 2021-01-06 Alexandre Oliva <oliva@adacore.com>
25217 * Makefile.in (T_GLIMITS_H): New.
25218 (stmp-int-hdrs): Depend on it, use it.
25219 * config/t-vxworks (T_GLIMITS_H): Override it.
25220 (vxw-glimits.h): New.
25222 2021-01-06 Richard Biener <rguenther@suse.de>
25224 PR tree-optimization/98513
25225 * value-range.cc (intersect_ranges): Compare the upper bounds
25226 for the expected relation.
25228 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
25231 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
25233 * doc/standards.texi (HSAIL): Remove section.
25235 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
25237 * configure: Re-generate.
25239 2021-01-05 Jakub Jelinek <jakub@redhat.com>
25241 * doc/invoke.texi (-std=c++20): Adjust for the publication of
25242 ISO 14882:2020 standard.
25243 * doc/standards.texi: Likewise.
25245 2021-01-05 Jakub Jelinek <jakub@redhat.com>
25247 PR tree-optimization/94802
25248 * expr.h (maybe_optimize_sub_cmp_0): Declare.
25249 * expr.c: Include tree-pretty-print.h and flags.h.
25250 (maybe_optimize_sub_cmp_0): New function.
25251 (do_store_flag): Use it.
25252 * cfgexpand.c (expand_gimple_cond): Likewise.
25254 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
25256 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
25257 * rtlanal.c (simple_regno_set): Tweak description to clarify the
25260 2021-01-05 Richard Biener <rguenther@suse.de>
25262 PR tree-optimization/98516
25263 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
25264 lanes when materializing on a VEC_PERM node.
25265 (vectorizable_slp_permutation): Dump the permute properly.
25267 2021-01-05 Richard Biener <rguenther@suse.de>
25269 * tree-vect-slp.c (vect_slp_region): Move debug counter
25270 to cover individual subgraphs.
25272 2021-01-05 Richard Biener <rguenther@suse.de>
25274 PR tree-optimization/98428
25275 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
25276 vector lane extracts for loop vectorization.
25278 2021-01-05 Jakub Jelinek <jakub@redhat.com>
25280 PR tree-optimization/98514
25281 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
25283 (operand_rank): Change type from hash_map<tree, long> to
25284 hash_map<tree, int64_t>.
25285 (phi_rank): Change return type from long to int64_t.
25286 (loop_carried_phi): Change block_rank variable type from long to
25288 (propagate_rank): Change return type, rank parameter type and
25289 op_rank variable type from long to int64_t.
25290 (find_operand_rank): Change return type from long to int64_t
25291 and change slot variable type from long * to int64_t *.
25292 (insert_operand_rank): Change rank parameter type from long to
25294 (get_rank): Change return type and rank variable type from long to
25295 int64_t. Use PRId64 instead of ld to print the rank.
25296 (init_reassoc): Change rank variable type from long to int64_t
25297 and adjust correspondingly bb_rank and operand_rank initialization.
25299 2021-01-05 Jakub Jelinek <jakub@redhat.com>
25301 PR tree-optimization/96928
25302 * tree-ssa-phiopt.c (xor_replacement): New function.
25303 (tree_ssa_phiopt_worker): Call it.
25305 2021-01-05 Jakub Jelinek <jakub@redhat.com>
25307 PR tree-optimization/96930
25308 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
25309 from narrower value which has the same type as 1 << B, perform
25310 the right shift on the narrower value followed by extension.
25312 2021-01-05 Jakub Jelinek <jakub@redhat.com>
25314 PR tree-optimization/96239
25315 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
25317 (get_status_for_store_merging): Don't return BB_INVALID for blocks
25318 with potential bswap optimizable CONSTRUCTORs.
25319 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
25322 2021-01-05 Richard Biener <rguenther@suse.de>
25324 PR tree-optimization/98381
25325 * tree.c (vector_element_bits): Properly compute bool vector
25327 * tree-vect-loop.c (vectorizable_live_operation): Properly
25328 compute the last lane bit offset.
25330 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
25333 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
25334 Clear the top 64 bytes of the input XMM register.
25335 (sse_cvttps2pi): Ditto.
25337 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
25340 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
25342 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
25345 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
25348 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
25350 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
25351 (umaddsidi4_split): Likewise.
25353 2021-01-05 liuhongt <hongtao.liu@intel.com>
25356 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
25357 define_insn_and_split for zero_extend of subreg HI of pmovskb
25359 (*sse2_pmovskb_zexthisi): Add new combine splitters for
25360 zero_extend of not of subreg HI of pmovskb result.
25362 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
25365 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
25367 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
25368 convert_memory_address to convert symbolic immediates to ptr_mode
25369 before forcing them to memory.
25371 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
25373 PR rtl-optimization/97144
25374 * recog.c (constrain_operands): Initialize matching_operand
25375 for each alternative, rather than only doing it once.
25377 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
25379 PR rtl-optimization/98403
25380 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
25381 why we don't remove call clobbers.
25382 (function_info::apply_changes_to_insn): Don't attempt to add
25383 call clobbers here.
25385 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
25387 PR tree-optimization/98371
25388 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
25389 (vect_analyze_loop): If an epilogue loop appears to be cheaper
25390 than the main loop, re-analyze it as a main loop before adopting
25393 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25396 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
25397 * aclocal.m4, configure: Regenerate.
25398 * Makefile.in (NETLIBS): Define.
25399 (BACKEND): Remove $(CODYLIB).
25401 2021-01-05 Jakub Jelinek <jakub@redhat.com>
25403 PR rtl-optimization/98334
25404 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
25405 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
25407 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
25409 * tree-inline.c (expand_call_inline): Restore input_location.
25410 Return result from recursive call.
25412 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
25414 PR tree-optimization/95401
25415 * config/aarch64/aarch64-sve-builtins.cc
25416 (gimple_folder::load_store_cookie): Use bits rather than bytes
25417 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
25418 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
25419 * tree-vect-stmts.c (vectorizable_store): Likewise.
25420 (vectorizable_load): Likewise.
25422 2021-01-04 Richard Biener <rguenther@suse.de>
25424 PR tree-optimization/98308
25425 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
25428 2021-01-04 Jakub Jelinek <jakub@redhat.com>
25430 PR tree-optimization/95771
25431 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
25432 with precision smaller than int's precision and types with precision
25433 twice as large as long long. Formatting fixes.
25435 2021-01-04 Richard Biener <rguenther@suse.de>
25437 PR tree-optimization/98464
25438 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
25439 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
25440 (process_bb): Adjust.
25442 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
25445 * doc/invoke.texi (-fsanitize=address): Fix wording describing
25446 clash with -fsanitize=hwaddress.
25448 2021-01-04 Richard Biener <rguenther@suse.de>
25450 PR tree-optimization/98282
25451 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
25452 invariants as VN_NARY.
25454 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
25457 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
25458 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
25459 to handle zero operands.
25461 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
25463 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
25464 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
25465 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
25468 2021-01-04 Richard Biener <rguenther@suse.de>
25470 PR tree-optimization/98393
25471 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
25472 when hitting the limit.
25474 2021-01-04 Richard Biener <rguenther@suse.de>
25476 PR tree-optimization/98291
25477 * tree-vect-loop.c (vectorizable_reduction): Bypass
25478 associativity check for SLP reductions with VF 1.
25480 2021-01-04 Jakub Jelinek <jakub@redhat.com>
25482 PR tree-optimization/96782
25483 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
25485 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
25487 * collect-utils.c (collect_execute): Check dumppfx.
25488 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
25489 to collect_execute.
25490 (do_link): Add new parameter atsuffix.
25491 (main): Handle -dumpdir option. Skip one argument for
25492 -o, -isystem and -B options.
25493 * gcc.c (make_at_file): New helper function.
25494 (close_at_file): Use it.
25496 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
25498 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
25499 Amend handling for LD64_VERSION fallback defaults.
25501 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
25503 * config.gcc: Compute default version information
25504 from the configured target. Likewise defaults for
25506 * config/darwin10.h: Removed.
25507 * config/darwin12.h: Removed.
25508 * config/darwin9.h: Removed.
25509 * config/rs6000/darwin8.h: Removed.
25511 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
25513 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
25515 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
25517 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
25518 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
25520 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
25522 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
25524 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
25526 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
25528 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
25529 for the Darwin10 unwinder stub from here ...
25530 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
25532 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
25534 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
25535 (ASM_DEBUG_SPEC):Only define if the assembler supports
25537 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
25538 (DARWIN_PREFER_DWARF): Define.
25539 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
25540 (DARWIN_PREFER_DWARF): Likewise
25541 (DSYMUTIL_SPEC): Likewise.
25542 (COLLECT_RUN_DSYMUTIL): Likewise.
25543 (ASM_DEBUG_SPEC): Likewise.
25544 (ASM_DEBUG_OPTION_SPEC): Likewise.
25546 2021-01-02 Jan Hubicka <jh@suse.cz>
25548 * cfg.c (free_block): ggc_free bb.
25550 2021-01-01 Jakub Jelinek <jakub@redhat.com>
25552 * gcc.c (process_command): Update copyright notice dates.
25553 * gcov-dump.c (print_version): Ditto.
25554 * gcov.c (print_version): Ditto.
25555 * gcov-tool.c (print_version): Ditto.
25556 * gengtype.c (create_file): Ditto.
25557 * doc/cpp.texi: Bump @copying's copyright year.
25558 * doc/cppinternals.texi: Ditto.
25559 * doc/gcc.texi: Ditto.
25560 * doc/gccint.texi: Ditto.
25561 * doc/gcov.texi: Ditto.
25562 * doc/install.texi: Ditto.
25563 * doc/invoke.texi: Ditto.
25565 2021-01-01 Jakub Jelinek <jakub@redhat.com>
25567 * ChangeLog-2020: Rotate ChangeLog. New file.
25570 Copyright (C) 2021 Free Software Foundation, Inc.
25572 Copying and distribution of this file, with or without modification,
25573 are permitted in any medium without royalty provided the copyright
25574 notice and this notice are preserved.