1 2021-10-24 John David Anglin <danglin@gcc.gnu.org>
3 * config/pa/pa-d.c (pa_d_handle_target_float_abi): Don't check
5 * config/pa/pa.c (fix_range): Use MASK_SOFT_FLOAT instead of
7 (hppa_rtx_costs): Don't check TARGET_DISABLE_FPREGS. Adjust
8 cost of hardware integer multiplication.
9 (pa_conditional_register_usage): Don't check TARGET_DISABLE_FPREGS.
10 * config/pa/pa.h (INT14_OK_STRICT): Likewise.
11 * config/pa/pa.md: Don't check TARGET_DISABLE_FPREGS. Check
12 TARGET_SOFT_FLOAT in patterns that use xmpyu instruction.
13 * config/pa/pa.opt (mdisable-fpregs): Change target mask to
14 SOFT_FLOAT. Revise comment.
15 (msoft-float): New option.
17 2021-10-24 John David Anglin <danglin@gcc.gnu.org>
19 * config/pa/pa.md: Don't use 'G' constraint in integer move patterns.
21 2021-10-24 Gerald Pfeifer <gerald@pfeifer.com>
23 * doc/install.texi (Specific): Remove obsolete details
24 around GNU/Linux on Itanium.
25 (Specific): Remove reference to Windows for Itanium.
27 2021-10-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29 * config/i386/x86-tune-sched-bd.c (dispatch_group): Commentary
32 2021-10-23 Jan Hubicka <hubicka@ucw.cz>
34 * tree-ssa-structalias.c (compute_points_to_sets): Cleanup.
36 2021-10-23 Roger Sayle <roger@nextmovesoftware.com>
38 * config/i386/sse.md (<any_logic>v1ti3): New define_insn to
39 implement V1TImode AND, IOR and XOR on TARGET_SSE2 (and above).
40 (one_cmplv1ti2): New define expand.
42 2021-10-22 Eric Gallager <egallager@gcc.gnu.org>
45 * Makefile.in: Handle dvidir and install-dvi target.
46 * configure: Regenerate.
47 * configure.ac: Add install-dvi to target_list.
49 2021-10-22 Gerald Pfeifer <gerald@pfeifer.com>
51 * doc/install.texi (Binaries): Convert mingw-w64.org to https.
54 2021-10-22 Richard Biener <rguenther@suse.de>
56 PR tree-optimization/102893
57 * tree-ssa-dce.c (find_obviously_necessary_stmts): Fix the
58 test for an exit edge.
60 2021-10-22 Aldy Hernandez <aldyh@redhat.com>
61 Andrew MacLeod <amacleod@redhat.com>
63 * gimple-range-path.cc (path_range_query::compute_phi_relations):
64 Kill any global relations we may know before registering a new
66 * value-relation.cc (path_oracle::killing_def): New.
67 * value-relation.h (path_oracle::killing_def): New.
69 2021-10-22 Richard Biener <rguenther@suse.de>
72 * tree-ssa-sccvn.c (vn_phi_insert): For undefined SSA args
74 (vn_phi_lookup): Likewise.
76 2021-10-21 H.J. Lu <hjl.tools@gmail.com>
79 * doc/invoke.texi: Document -fcf-protection requires i686 or
82 2021-10-21 Eric Botcazou <ebotcazou@adacore.com>
85 * cfgexpand.c (expand_gimple_basic_block): Robustify latest change.
87 2021-10-21 Jonathan Wright <jonathan.wright@arm.com>
89 * config/aarch64/arm_neon.h (__STRUCTN): Delete function
90 macro and all invocations.
92 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
94 * doc/invoke.texi (ranger-debug): Document.
95 * flag-types.h (enum ranger_debug): New.
96 (enum evrp_mode): Remove debug values.
97 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Use new debug flag.
98 * gimple-range-gori.cc (gori_compute::gori_compute): Ditto.
99 * gimple-range.cc (gimple_ranger::gimple_ranger): Ditto.
100 * gimple-ssa-evrp.c (hybrid_folder::choose_value): Ditto.
101 (execute_early_vrp): Use evrp-mode directly.
102 * params.opt (enum evrp_mode): Remove debug values.
104 (ranger-logical-depth): Relocate to be in alphabetical order.
106 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
108 * doc/invoke.texi: (vrp1-mode, vrp2-mode): Document.
109 * flag-types.h: (enum vrp_mode): New.
110 * params.opt: (vrp1-mode, vrp2-mode): New.
111 * tree-vrp.c (vrp_pass_num): New.
112 (pass_vrp::pass_vrp): Set pass number.
113 (pass_vrp::execute): Choose which VRP mode to execute.
115 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
117 * gimple-ssa-evrp.c (class rvrp_folder): Move to tree-vrp.c.
118 (execute_early_vrp): For ranger only mode, invoke ranger_vrp.
119 * tree-vrp.c (class rvrp_folder): Relocate here.
120 (execute_ranger_vrp): New.
121 * tree-vrp.h (execute_ranger_vrp): Export.
123 2021-10-21 Martin Liska <mliska@suse.cz>
127 * opts.c (finish_options): Process flag_var_tracking* options
128 here as they can be adjusted by optimize attribute.
129 Process also flag_syntax_only and flag_gtoggle.
130 * toplev.c (process_options): Remove it here.
131 * common.opt: Make debug_nonbind_markers_p as PerFunction
132 attribute as it depends on optimization level.
134 2021-10-21 Martin Jambor <mjambor@suse.cz>
136 PR tree-optimization/102505
137 * tree-sra.c (totally_scalarize_subtree): Check that the
138 encountered field fits within the acces we would like to put it
141 2021-10-21 Aldy Hernandez <aldyh@redhat.com>
143 * tree-ssa-threadbackward.c
144 (back_threader::maybe_register_path): Remove circular paths check.
146 2021-10-21 Richard Biener <rguenther@suse.de>
148 * toplev.c (process_options): Move the initial debug_hooks
150 (toplev::main): ... before the call of the post_options
153 2021-10-21 Richard Biener <rguenther@suse.de>
155 PR tree-optimization/102847
156 * tree-vect-stmts.c (vect_model_load_cost): Add the scalar
157 load cost in the prologue for VMAT_INVARIANT.
159 2021-10-21 Richard Biener <rguenther@suse.de>
161 PR tree-optimization/102847
162 * tree-vect-stmts.c (vect_model_load_cost): Explicitely
163 handle VMAT_INVARIANT as a splat in the prologue.
165 2021-10-21 Hongyu Wang <hongyu.wang@intel.com>
168 * config/i386/i386.c (ix86_get_ssemov): Adjust HFmode vector
169 move to use the same logic as HImode.
171 2021-10-21 Richard Biener <rguenther@suse.de>
173 * tree-vect-slp.c (vect_build_slp_tree_1): Remove
174 superfluous gimple_call_nothrow_p check.
176 2021-10-21 Andrew Pinski <apinski@marvell.com>
178 * tree-cfg.c (maybe_remove_writeonly_store): Add dce_ssa_names argument.
179 Mark the ssa-name of the rhs as one to be removed.
180 (execute_fixup_cfg): Update call to maybe_remove_writeonly_store.
181 Call simple_dce_from_worklist at the end to a simple dce.
183 2021-10-21 Andrew Pinski <apinski@marvell.com>
185 * tree-cfg.c (maybe_remove_writeonly_store): New function
186 factored out from ...
187 (execute_fixup_cfg): Here. Call maybe_remove_writeonly_store.
189 2021-10-21 Andrew Pinski <apinski@marvell.com>
191 * tree-cfg.c (execute_fixup_cfg): Remove comment
192 about standalone pass.
194 2021-10-21 Andrew Pinski <apinski@marvell.com>
196 * tree-cfg.c (execute_fixup_cfg): Output when the statement
197 is removed when it is a write only var.
199 2021-10-21 Aldy Hernandez <aldyh@redhat.com>
201 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
202 Avoid threading circular paths.
204 2021-10-20 Alex Coplan <alex.coplan@arm.com>
206 * calls.c (initialize_argument_information): Remove some dead
207 code, remove handling for function_arg returning const_int.
208 * doc/tm.texi: Delete documentation for unused target hooks.
209 * doc/tm.texi.in: Likewise.
210 * target.def (load_bounds_for_arg): Delete.
211 (store_bounds_for_arg): Delete.
212 (load_returned_bounds): Delete.
213 (store_returned_bounds): Delete.
214 * targhooks.c (default_load_bounds_for_arg): Delete.
215 (default_store_bounds_for_arg): Delete.
216 (default_load_returned_bounds): Delete.
217 (default_store_returned_bounds): Delete.
218 * targhooks.h (default_load_bounds_for_arg): Delete.
219 (default_store_bounds_for_arg): Delete.
220 (default_load_returned_bounds): Delete.
221 (default_store_returned_bounds): Delete.
223 2021-10-20 Jonathan Wakely <jwakely@redhat.com>
225 * doc/extend.texi (Basic Asm): Clarify that asm is not an
227 * doc/invoke.texi (-fno-asm): Fix description for C++.
229 2021-10-20 Jonathan Wakely <jwakely@redhat.com>
231 * doc/install.texi: Remove link to old.html
233 2021-10-20 Tamar Christina <tamar.christina@arm.com>
235 * config/aarch64/aarch64-simd.md (*aarch64_cmtst_same_<mode>): New.
237 2021-10-20 Tamar Christina <tamar.christina@arm.com>
239 * config/aarch64/aarch64-simd.md (*aarch64_narrow_trunc<mode>): New.
241 2021-10-20 Tamar Christina <tamar.christina@arm.com>
243 * config/aarch64/aarch64-simd.md (aarch64_simd_ashr<mode>): Add case cmp
245 * config/aarch64/constraints.md (D1): New.
247 2021-10-20 Tamar Christina <tamar.christina@arm.com>
249 * config/aarch64/aarch64-simd.md
250 (*aarch64_<srn_op>topbits_shuffle<mode>_le): New.
251 (*aarch64_topbits_shuffle<mode>_le): New.
252 (*aarch64_<srn_op>topbits_shuffle<mode>_be): New.
253 (*aarch64_topbits_shuffle<mode>_be): New.
254 * config/aarch64/predicates.md
255 (aarch64_simd_shift_imm_vec_exact_top): New.
257 2021-10-20 Tamar Christina <tamar.christina@arm.com>
259 * config/aarch64/aarch64-simd.md (*aarch64_<srn_op>shrn<mode>_vect,
260 *aarch64_<srn_op>shrn<mode>2_vect_le,
261 *aarch64_<srn_op>shrn<mode>2_vect_be): New.
262 * config/aarch64/iterators.md (srn_op): New.
264 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
266 * omp-low.c (omp_copy_decl_2): For !ctx, use record_vars to add new copy
268 (scan_sharing_clauses): Place copy of OMP_CLAUSE_IN_REDUCTION decl in
269 ctx->outer instead of ctx.
271 2021-10-20 Martin Liska <mliska@suse.cz>
274 2021-10-19 Martin Liska <mliska@suse.cz>
277 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
278 * system.h (strip_whilespaces): New function.
280 2021-10-20 Martin Liska <mliska@suse.cz>
283 2021-10-19 Martin Liska <mliska@suse.cz>
286 * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
289 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
291 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
292 Change to 8 with -Os, 11 otherwise.
294 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
296 * config/aarch64/aarch64.c (neoversev1_tunings):
297 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
298 (neoversen2_tunings): Likewise.
300 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
303 * config/aarch64/aarch64.md (frint_pattern): Update comment.
304 * config/aarch64/aarch64-simd-builtins.def: Change frintn to roundeven.
305 * config/aarch64/arm_fp16.h: Change frintn to roundeven.
306 * config/aarch64/arm_neon.h: Likewise.
307 * config/aarch64/iterators.md (frint_pattern): Use roundeven for FRINTN.
309 2021-10-20 Martin Liska <mliska@suse.cz>
311 * config/arm/arm.c (arm_unwind_emit_sequence): Do not declare
312 already declared global variable.
313 (arm_unwind_emit_set): Use out_file as function argument.
314 (arm_unwind_emit): Likewise.
315 * config/darwin.c (machopic_output_data_section_indirection): Likewise.
316 (machopic_output_stub_indirection): Likewise.
317 (machopic_output_indirection): Likewise.
318 (machopic_finish): Likewise.
319 * config/i386/i386.c (ix86_asm_output_function_label): Likewise.
320 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
321 * config/ia64/ia64.c (process_epilogue): Likewise.
322 (process_cfa_adjust_cfa): Likewise.
323 (process_cfa_register): Likewise.
324 (process_cfa_offset): Likewise.
325 (ia64_asm_unwind_emit): Likewise.
326 * config/s390/s390.c (s390_asm_output_function_label): Likewise.
328 2021-10-20 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
330 * config/aarch64/aarch64-builtins.c
331 (aarch64_general_gimple_fold_builtin):
332 lower vld1 and vst1 variants of the neon builtins
333 * config/aarch64/aarch64-protos.h:
334 (aarch64_general_gimple_fold_builtin): Add gsi parameter.
335 * config/aarch64/aarch64.c (aarch64_general_gimple_fold_builtin):
338 2021-10-20 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
340 * match.pd: Generate IFN_TRUNC.
342 2021-10-20 Richard Biener <rguenther@suse.de>
344 PR tree-optimization/102853
345 * tree-data-ref.c (split_constant_offset_1): Bail out
346 immediately if the expression traps on overflow.
348 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
350 * tree-ssa-threadbackward.c (back_threader::~back_threader): Remove.
352 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
354 * tree-ssa-threadupdate.c (back_jt_path_registry::adjust_paths_after_duplication):
355 Remove superflous debugging message.
356 (back_jt_path_registry::duplicate_thread_path): Same.
358 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
360 * tree-ssa-threadbackward.c (back_threader_registry::back_threader_registry):
362 (back_threader_registry::register_path): Remove m_threaded_paths.
364 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
366 PR tree-optimization/102814
367 * doc/invoke.texi: Document --param=max-fsm-thread-length.
368 * params.opt: Add --param=max-fsm-thread-length.
369 * tree-ssa-threadbackward.c
370 (back_threader_profitability::profitable_path_p): Fail on paths
371 longer than max-fsm-thread-length.
373 2021-10-20 Eric Botcazou <ebotcazou@adacore.com>
376 * cfgexpand.c (expand_gimple_basic_block): Disregard a final debug
377 statement to reset the current location for the outgoing edges.
379 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
380 Richard Biener <rguenther@suse.de>
382 * tree-ssa-threadupdate.c (cancel_thread): Dump threading reason
383 on the same line as the threading cancellation.
384 (jt_path_registry::cancel_invalid_paths): Avoid rotating loops.
385 Avoid threading through loop headers where the path remains in the
388 2021-10-20 Siddhesh Poyarekar <siddhesh@gotplt.org>
390 * tree-object-size.c (unknown): Make into a function. Adjust
392 (unknown_object_size): Simplify implementation.
394 2021-10-20 Hongtao Liu <hongtao.liu@intel.com>
395 Kewen Lin <linkw@linux.ibm.com>
397 * doc/sourcebuild.texi (Effective-Target Keywords): Document
398 vect_slp_v2qi_store, vect_slp_v4qi_store, vect_slp_v8qi_store,
399 vect_slp_v16qi_store, vect_slp_v2hi_store,
400 vect_slp_v4hi_store, vect_slp_v2si_store, vect_slp_v4si_store.
402 2021-10-19 Jonathan Wakely <jwakely@redhat.com>
404 * doc/extend.texi (Basic PowerPC Built-in Functions): Fix typo.
406 2021-10-19 Paul A. Clarke <pc@us.ibm.com>
410 * config/rs6000/emmintrin.h: Guard POWER8 intrinsics.
411 * config/rs6000/pmmintrin.h: Same.
412 * config/rs6000/smmintrin.h: Same.
413 * config/rs6000/tmmintrin.h: Same.
415 2021-10-19 Paul A. Clarke <pc@us.ibm.com>
417 * config.gcc (extra_headers): Add nmmintrin.h.
419 2021-10-19 Richard Biener <rguenther@suse.de>
421 * tree-vectorizer.h (vect_supportable_dr_alignment): Add
422 misalignment parameter.
423 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
424 Do not change DR_MISALIGNMENT in place, instead pass the
425 adjusted misalignment to vect_supportable_dr_alignment.
426 (vect_peeling_supportable): Likewise.
427 (vect_peeling_hash_get_lowest_cost): Adjust.
428 (vect_enhance_data_refs_alignment): Likewise.
429 (vect_vfa_access_size): Likewise.
430 (vect_supportable_dr_alignment): Add misalignment
431 parameter and simplify.
432 * tree-vect-stmts.c (get_negative_load_store_type): Adjust.
433 (get_group_load_store_type): Likewise.
434 (get_load_store_type): Likewise.
436 2021-10-19 Clément Chigot <clement.chigot@atos.net>
438 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): Move
439 __tls_get_addr reference to .text csect.
441 2021-10-19 Martin Liska <mliska@suse.cz>
444 * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
447 2021-10-19 Richard Biener <rguenther@suse.de>
449 * tree-vectorizer.h (vect_get_store_cost): Adjust signature.
450 (vect_get_load_cost): Likewise.
451 * tree-vect-data-refs.c (vect_get_data_access_cost): Get
452 alignment support scheme and misalignment as arguments
454 (vect_get_peeling_costs_all_drs): Compute that info here
455 and note that we shouldn't need to.
456 * tree-vect-stmts.c (vect_model_store_cost): Get
457 alignment support scheme and misalignment as arguments.
458 (vect_get_store_cost): Likewise.
459 (vect_model_load_cost): Likewise.
460 (vect_get_load_cost): Likewise.
461 (vectorizable_store): Pass down alignment support scheme
462 and misalignment to costing.
463 (vectorizable_load): Likewise.
465 2021-10-19 Richard Biener <rguenther@suse.de>
467 * tree-vect-stmts.c (get_negative_load_store_type): Add
468 offset output parameter and initialize it.
469 (get_group_load_store_type): Likewise.
470 (get_load_store_type): Likewise.
471 (vectorizable_store): Use offset as computed by
473 (vectorizable_load): Likewise.
475 2021-10-19 Richard Biener <rguenther@suse.de>
477 PR tree-optimization/102827
478 * tree-if-conv.c (predicate_statements): Add pe parameter
479 and use that edge to insert invariant stmts on.
480 (combine_blocks): Pass through pe.
481 (tree_if_conversion): Compute the edge to insert invariant
482 stmts on and pass it along.
484 2021-10-19 Roger Sayle <roger@nextmovesoftware.com>
487 * config/bfin/bfin.md (addsubv2hi3, subaddv2hi3, ssaddsubv2hi3,
488 sssubaddv2hi3): Swap the order of operators in vec_concat.
490 2021-10-19 Xionghu Luo <luoxhu@linux.ibm.com>
492 * config/rs6000/altivec.md (*altivec_vmrghb_internal): Delete.
493 (altivec_vmrghb_direct): New.
494 (*altivec_vmrghh_internal): Delete.
495 (altivec_vmrghh_direct): New.
496 (*altivec_vmrghw_internal): Delete.
497 (altivec_vmrghw_direct_<mode>): New.
498 (altivec_vmrghw_direct): Delete.
499 (*altivec_vmrglb_internal): Delete.
500 (altivec_vmrglb_direct): New.
501 (*altivec_vmrglh_internal): Delete.
502 (altivec_vmrglh_direct): New.
503 (*altivec_vmrglw_internal): Delete.
504 (altivec_vmrglw_direct_<mode>): New.
505 (altivec_vmrglw_direct): Delete.
506 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Adjust.
507 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):
509 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust.
510 (vsx_xxmrglw_<mode>): Adjust.
512 2021-10-19 Aldy Hernandez <aldyh@redhat.com>
514 * passes.def: Change threading comment before pass_ccp pass.
516 2021-10-19 Haochen Gui <guihaoc@gcc.gnu.org>
518 * config/rs6000/rs6000-call.c (altivec_expand_lxvr_builtin):
519 Modify the expansion for sign extension. All extensions are done
520 within VSX registers.
522 2021-10-19 Richard Biener <rguenther@suse.de>
524 * tree-vect-stmts.c (get_group_load_store_type): Add
525 misalignment output parameter and initialize it.
526 (get_group_load_store_type): Likewise.
527 (vectorizable_store): Remove now redundant queries.
528 (vectorizable_load): Likewise.
530 2021-10-19 Richard Biener <rguenther@suse.de>
532 * tree-vectorizer.h (vect_supportable_dr_alignment): Remove
533 check_aligned argument.
534 * tree-vect-data-refs.c (vect_supportable_dr_alignment):
536 (vect_peeling_hash_insert): Add supportable_if_not_aligned
537 argument and do not call vect_supportable_dr_alignment here.
538 (vect_peeling_supportable): Adjust.
539 (vect_enhance_data_refs_alignment): Compute whether the
540 access is supported with different alignment here and
541 pass that down to vect_peeling_hash_insert.
542 (vect_vfa_access_size): Adjust.
543 * tree-vect-stmts.c (vect_get_store_cost): Likewise.
544 (vect_get_load_cost): Likewise.
545 (get_negative_load_store_type): Likewise.
546 (get_group_load_store_type): Likewise.
547 (get_load_store_type): Likewise.
549 2021-10-19 Martin Liska <mliska@suse.cz>
552 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
553 * system.h (strip_whilespaces): New function.
555 2021-10-19 dianhong xu <dianhong.xu@intel.com>
557 * config/i386/avx512fp16intrin.h:
558 (_mm512_set1_pch): New intrinsic.
559 * config/i386/avx512fp16vlintrin.h:
560 (_mm256_set1_pch): New intrinsic.
561 (_mm_set1_pch): Ditto.
563 2021-10-18 Andrew MacLeod <amacleod@redhat.com>
565 PR tree-optimization/102796
566 * gimple-range.cc (gimple_ranger::range_on_edge): Process EH edges
567 normally. Return get_tree_range for non gimple_range_ssa_p names.
568 (gimple_ranger::range_of_stmt): Use get_tree_range for non
569 gimple_range_ssa_p names.
571 2021-10-18 Uroš Bizjak <ubizjak@gmail.com>
574 * config/i386/i386.c (ix86_print_operand_address):
575 Error out for non-address_operand asm operands.
577 2021-10-18 Richard Biener <rguenther@suse.de>
579 * tree-vect-data-refs.c (vect_peeling_hash_insert): Do
580 not auto-convert dr_alignment_support to bool.
581 (vect_peeling_supportable): Likewise.
582 (vect_enhance_data_refs_alignment): Likewise.
583 (vect_supportable_dr_alignment): Commonize read/write case.
584 * tree-vect-stmts.c (vect_get_store_cost): Use
585 dr_alignment_support, not int, for the vect_supportable_dr_alignment
587 (vect_get_load_cost): Likewise.
589 2021-10-18 Siddhesh Poyarekar <siddhesh@gotplt.org>
591 * tree-object-size.c (object_sizes_execute): Consolidate LHS
592 null check and do it early.
594 2021-10-18 Richard Biener <rguenther@suse.de>
596 * tree-vect-stmts.c (vectorizable_store): Use the
597 computed alignment scheme instead of querying
600 2021-10-18 Richard Biener <rguenther@suse.de>
602 * tree-vect-stmts.c (vectorizable_store): Do not recompute
603 alignment scheme already determined by get_load_store_type.
605 2021-10-18 Aldy Hernandez <aldyh@redhat.com>
607 * tree-ssa-threadbackward.c (class pass_thread_jumps_full):
608 Clone corresponding pass.
610 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
612 * combine.c (recog_for_combine): For an unrecognized move/set of
613 a constant, try force_const_mem to place it in the constant pool.
614 * cse.c (constant_pool_entries_cost, constant_pool_entries_regcost):
615 Delete global variables (that are no longer assigned a cost value).
616 (cse_insn): Simplify logic for deciding whether to place a folded
617 constant in the constant pool using force_const_mem.
618 (cse_main): Remove zero initialization of constant_pool_entries_cost
619 and constant_pool_entries_regcost.
620 * config/i386/i386.c (ix86_rtx_costs): Make memory accesses
621 fractionally more expensive, when optimizing for speed.
623 2021-10-18 Martin Liska <mliska@suse.cz>
625 PR gcov-profile/102746
626 PR gcov-profile/102747
627 * gcov.c (main): Return return_code.
628 (output_gcov_file): Mark return_code when error happens.
629 (generate_results): Likewise.
630 (read_graph_file): Likewise.
631 (read_count_file): Likewise.
633 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
635 * config/bfin/bfin.md (define_constants): Remove UNSPEC_ONES.
636 (define_insn "ones"): Replace UNSPEC_ONES with a truncate of
637 a popcount, allowing compile-time evaluation/simplification.
638 (popcountsi2, popcounthi2): New expanders using a "ones" insn.
640 2021-10-18 Richard Biener <rguenther@suse.de>
642 PR tree-optimization/102788
643 * tree-vect-patterns.c (vect_init_pattern_stmt): Allow
645 (vect_pattern_recog_1): Likewise.
646 (vect_recog_bool_pattern): Continue matching the pattern
647 even if we do not have a vector type for a conversion
650 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
652 * simplify-rtx.c (simplify_const_unary_operation) [SS_NEG, SS_ABS]:
653 Evalute SS_NEG and SS_ABS of a constant argument.
655 2021-10-18 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
658 * gimple-match-head.c (try_conditional_simplification): Add case for single operand.
659 * internal-fn.def: Add entry for COND_NEG internal function.
660 * internal-fn.c (FOR_EACH_CODE_MAPPING): Add entry for
661 NEGATE_EXPR, COND_NEG mapping.
662 * optabs.def: Add entry for cond_neg_optab.
663 * match.pd (UNCOND_UNARY, COND_UNARY): New operator lists.
664 (vec_cond COND (foo A) B) -> (IFN_COND_FOO COND A B): New pattern.
665 (vec_cond COND B (foo A)) -> (IFN_COND_FOO ~COND A B): Likewise.
667 2021-10-18 Aldy Hernandez <aldyh@redhat.com>
669 * tree-ssa-strlen.c (class strlen_pass): Rename from
671 (handle_builtin_stxncpy_strncat): Move to strlen_pass.
672 (handle_assign): Same.
673 (adjust_last_stmt): Same.
674 (maybe_warn_overflow): Same.
675 (handle_builtin_strlen): Same.
676 (handle_builtin_strchr): Same.
677 (handle_builtin_strcpy): Same.
678 (handle_builtin_strncat): Same.
679 (handle_builtin_stxncpy_strncat): Same.
680 (handle_builtin_memcpy): Same.
681 (handle_builtin_strcat): Same.
682 (handle_alloc_call): Same.
683 (handle_builtin_memset): Same.
684 (handle_builtin_memcmp): Same.
685 (get_len_or_size): Same.
686 (strxcmp_eqz_result): Same.
687 (handle_builtin_string_cmp): Same.
688 (handle_pointer_plus): Same.
689 (count_nonzero_bytes_addr): Same.
690 (count_nonzero_bytes): Same.
691 (handle_store): Same.
692 (strlen_check_and_optimize_call): Same.
693 (handle_integral_assign): Same.
694 (check_and_optimize_stmt): Same.
695 (printf_strlen_execute): Rename strlen_dom_walker to strlen_pass.
697 2021-10-18 Richard Biener <rguenther@suse.de>
699 PR tree-optimization/102798
700 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
701 Only copy points-to info to newly generated SSA names.
703 2021-10-18 Martin Liska <mliska@suse.cz>
705 * dbgcnt.c (dbg_cnt_process_opt): Remove unused but set variable.
706 * gcov.c (get_cycles_count): Likewise.
707 * lto-compress.c (lto_compression_zlib): Likewise.
708 (lto_uncompression_zlib): Likewise.
709 * targhooks.c (default_pch_valid_p): Likewise.
711 2021-10-17 Aldy Hernandez <aldyh@redhat.com>
713 * tree-pass.h (make_pass_thread_jumps_full): New.
714 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Inline.
715 (try_thread_blocks): Add resolve and speed arguments.
716 (pass_thread_jumps::execute): Inline.
717 (do_early_thread_jumps): New.
718 (do_thread_jumps): New.
719 (make_pass_thread_jumps): Move.
720 (pass_early_thread_jumps::gate): Inline.
721 (pass_early_thread_jumps::execute): Inline.
722 (class pass_thread_jumps_full): New.
724 2021-10-16 Piotr Kubaj <pkubaj@FreeBSD.org>
726 * configure.ac: Treat powerpc64*-*-freebsd* the same as
727 powerpc64-*-freebsd*.
728 * configure: Regenerate.
730 2021-10-16 H.J. Lu <hjl.tools@gmail.com>
732 * value-query.cc (get_ssa_name_ptr_info_nonnull): Change
733 set_ptr_nonull to set_ptr_nonnull in comments.
735 2021-10-16 Jan Hubicka <hubicka@ucw.cz>
737 PR tree-optimization/102720
738 * tree-ssa-structalias.c (compute_points_to_sets): Fix producing
739 of call used and clobbered sets.
741 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
743 * config/darwin.h (LINK_COMMAND_SPEC_A): Update 'r' handling to
744 skip gomp and itm when r or nodefaultlibs is given.
745 (DSYMUTIL_SPEC): Do not call dsymutil for '-r' link lines.
746 Update ordering of exclusions, remove duplicate 'v' addition
747 (collect2 will add this from the main command line).
749 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
751 * config/darwin-driver.c (darwin_driver_init): Revise comments, handle
752 filelist and framework options in specs instead of code.
753 * config/darwin.h (SUBTARGET_DRIVER_SELF_SPECS): Update to handle link
754 specs that are really driver ones.
755 (DARWIN_CC1_SPEC): Likewise.
756 (CPP_SPEC): Likewise.
757 (SYSROOT_SPEC): Append space.
758 (LINK_SYSROOT_SPEC): Remove most driver link specs.
759 (STANDARD_STARTFILE_PREFIX_2): Update link-related specs.
760 (STARTFILE_SPEC): Likewise.
761 (ASM_MMACOSX_VERSION_MIN_SPEC): Fix line wrap.
762 (ASM_SPEC): Update driver-related specs.
763 (ASM_FINAL_SPEC): Likewise.
764 * config/darwin.opt: Remove now unused option aliases.
765 * config/i386/darwin.h (EXTRA_ASM_OPTS): Ensure space after opt.
766 (ASM_SPEC): Update driver-related specs.
768 2021-10-15 Roger Sayle <roger@nextmovesoftware.com>
770 * config/i386/i386.c (ix86_hardreg_mov_ok): For vector modes,
771 allow standard_sse_constant_p immediate constants.
773 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
775 * config.gcc: Add tm-dwarf2.h to tm_d-file.
777 2021-10-15 Andrew MacLeod <amacleod@redhat.com>
779 * gimple-range-fold.h (gimple_range_ssa_p): Don't process names
780 that occur in abnormal phis.
781 * gimple-range.cc (gimple_ranger::range_on_edge): Return false for
782 abnormal and EH edges.
783 * gimple-ssa-evrp.c (rvrp_folder::value_of_expr): Ditto.
784 (rvrp_folder::value_on_edge): Ditto.
785 (rvrp_folder::value_of_stmt): Ditto.
786 (hybrid_folder::value_of_expr): Ditto for ranger queries.
787 (hybrid_folder::value_on_edge): Ditto.
788 (hybrid_folder::value_of_stmt): Ditto.
789 * value-query.cc (gimple_range_global): Always return a range if
790 the type is supported.
792 2021-10-15 John David Anglin <danglin@gcc.gnu.org>
794 * config/pa/pa.md: Consistently use "rG" constraint for copy
795 instruction in move patterns.
797 2021-10-15 Andrew Stubbs <ams@codesourcery.com>
799 * config/gcn/gcn-hsa.h (S_FIJI): Set unconditionally.
802 * config/gcn/gcn.c: Hard code SRAM ECC settings for old architectures.
803 * config/gcn/mkoffload.c (ELFABIVERSION_AMDGPU_HSA): Rename to ...
804 (ELFABIVERSION_AMDGPU_HSA_V3): ... this.
805 (ELFABIVERSION_AMDGPU_HSA_V4): New.
806 (SET_SRAM_ECC_UNSUPPORTED): New.
807 (copy_early_debug_info): Create elf flags to match the other objects.
808 (main): Just let the attribute flags pass through.
810 2021-10-15 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
812 * tree-loop-distribution.c (reduction_var_overflows_first):
813 Pass the type of reduction_var as first argument as it is also
814 done for the load type.
815 (loop_distribution::transform_reduction_loop): Add missing
816 TREE_TYPE while determining precission of reduction_var.
818 2021-10-15 Richard Biener <rguenther@suse.de>
820 * defaults.h (PREFERRED_DEBUGGING_TYPE): Choose DWARF2_DEBUG
822 * toplev.c (process_options): Warn when STABS debugging is
823 enabled but not the preferred format.
824 * config/pa/som.h (PREFERRED_DEBUGGING_TYPE): Define to
826 * config/pdp11/pdp11.h (PREFERRED_DEBUGGING_TYPE): Likewise.
828 2021-10-15 Richard Biener <rguenther@suse.de>
831 * tree-inline.c (copy_bb): Avoid underflowing nargs.
833 2021-10-15 Hongyu Wang <hongyu.wang@intel.com>
835 * config/i386/i386-expand.c (ix86_expand_vec_perm): Convert
836 HFmode input operand to HImode.
837 (ix86_vectorize_vec_perm_const): Likewise.
838 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1_hf):
840 (*avx512f_permvar_truncv8siv8hi_1_hf):
843 2021-10-15 Richard Biener <rguenther@suse.de>
846 * expmed.c (store_bit_field_1): Ensure a LHS subreg would
847 not create a paradoxical subreg.
849 2021-10-15 Hongyu Wang <hongyu.wang@intel.com>
851 * config/i386/i386-expand.c (ix86_expand_vector_init):
852 For half_vector concat for HFmode, handle them like HImode.
854 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
856 * tree-ssa-threadbackward.c (class back_threader): Add m_resolve.
857 (back_threader::back_threader): Same.
858 (back_threader::resolve_phi): Try to solve without looking back if
860 (back_threader::find_paths_to_names): Same.
861 (try_thread_blocks): Pass resolve argument to back threader.
862 (pass_early_thread_jumps::execute): Same.
864 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
866 * doc/invoke.texi: Remove max-fsm-thread-length,
867 max-fsm-thread-paths, and fsm-maximum-phi-arguments.
869 * tree-ssa-threadbackward.c (back_threader::back_threader): Remove
871 (back_threader_registry::back_threader_registry): Same.
872 (back_threader_profitability::profitable_path_p): Remove
873 param_max_fsm_thread-length.
874 (back_threader_registry::register_path): Remove
875 m_max_allowable_paths.
877 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
879 * tree-ssa-threadbackward.c (class back_threader): Make m_imports
881 (back_threader::~back_threader): Do not release m_path.
883 2021-10-14 Andrew MacLeod <amacleod@redhat.com>
885 PR tree-optimization/102738
886 * vr-values.c (simplify_using_ranges::simplify): Handle RSHIFT_EXPR.
888 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
890 * omp-general.c (omp_check_context_selector): Move from c-omp.c.
891 (omp_mark_declare_variant): Move from c-omp.c.
892 (omp_context_name_list_prop): Update for Fortran strings.
893 * omp-general.h (omp_check_context_selector): New prototype.
894 (omp_mark_declare_variant): New prototype.
896 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
898 * config/rs6000/rs6000.c (rs6000_density_test): Move early
899 exit test further up the function.
901 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
903 * config/arm/arm.c (arm_add_stmt_cost): Delete.
904 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
906 2021-10-14 Martin Jambor <mjambor@suse.cz>
908 * doc/invoke.texi (Optimize Options): Add entry for
909 ipa-cp-recursive-freq-factor.
911 2021-10-14 Tamar Christina <tamar.christina@arm.com>
913 * match.pd: New rule.
915 2021-10-14 Jan Hubicka <hubicka@ucw.cz>
918 * ipa-modref-tree.h (modref_access_node::update2):
919 Also check that parm_offset is unchanged.
920 (modref_ref_node::insert_access): Fix updating of
923 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
925 * tree-ssa-threadbackward.c (back_threader::resolve_phi): Add
928 2021-10-14 Richard Biener <rguenther@suse.de>
930 PR tree-optimization/102659
931 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Also
932 rewrite pointer typed undefined overflow operations.
933 (predicate_statements): Likewise. Make sure to emit invariant
934 conversions in the preheader.
935 * tree-vectorizer.c (vect_loop_vectorized_call): Look through
936 non-empty preheaders.
937 * tree-data-ref.c (dr_analyze_indices): Strip useless
938 conversions to the MEM_REF base type.
940 2021-10-14 Martin Liska <mliska@suse.cz>
942 * common.opt: Stop using AUTODETECT_VALUE
943 and use EnabledBy where possible.
944 * opts.c: Enable OPT_fvar_tracking with optimize >= 1.
945 * toplev.c (AUTODETECT_VALUE): Remove macro.
946 (process_options): Simplify by using EnabledBy and
947 OPT_fvar_tracking. Use OPTION_SET_P macro instead of
950 2021-10-14 Jonathan Wright <jonathan.wright@arm.com>
952 * config/aarch64/arm_neon.h (vld1_s8_x3): Use signed type for
954 (vld1_s32_x3): Likewise.
956 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
958 PR tree-optimization/102736
959 PR tree-optimization/102736
960 * gimple-range-path.cc (path_range_query::range_on_path_entry):
961 Assert that the requested range is defined outside the path.
962 (path_range_query::ssa_range_in_phi): Do not call
963 range_on_path_entry for SSA names that are defined within the
966 2021-10-14 Iain Sandoe <iain@sandoe.co.uk>
968 * config/darwin-driver.c (darwin_find_version_from_kernel):
969 Quote internal identifiers and avoid contractions in
971 (darwin_default_min_version): Likewise.
972 (darwin_driver_init): Likewise.
974 2021-10-14 Martin Jambor <mjambor@suse.cz>
976 * params.opt (ipa-cp-recursive-freq-factor): New.
977 * ipa-cp.c (ipcp_value): Switch to inline initialization. New members
978 scc_no, self_recursion_generated_level, same_scc and
979 self_recursion_generated_p.
980 (ipcp_lattice::add_value): Replaced parameter unlimited with
981 same_lat_gen_level, usit it determine limit of values and store it to
983 (ipcp_lattice<valtype>::print): Dump the new fileds.
984 (allocate_and_init_ipcp_value): Take same_lat_gen_level as a new
985 parameter and store it to the new value.
986 (self_recursively_generated_p): Removed.
987 (propagate_vals_across_arith_jfunc): Use self_recursion_generated_p
988 instead of self_recursively_generated_p, store self generation level
990 (value_topo_info<valtype>::add_val): Set scc_no.
991 (value_topo_info<valtype>::propagate_effects): Multiply frequencies of
992 recursively feeding values and self generated values by appropriate
995 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
997 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Remove
998 redundant test for flag_vect_cost_model.
1000 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
1002 * bitmap.c (debug): New overloaded function for auto_bitmaps.
1003 * bitmap.h (debug): Same.
1005 2021-10-14 Hongyu Wang <hongyu.wang@intel.com>
1007 * config/i386/avx512fp16intrin.h (_mm512_mask_fcmadd_pch):
1008 Adjust builtin call.
1009 (_mm512_mask3_fcmadd_pch): Likewise.
1010 (_mm512_mask_fmadd_pch): Likewise
1011 (_mm512_mask3_fmadd_pch): Likewise
1012 (_mm512_mask_fcmadd_round_pch): Likewise
1013 (_mm512_mask3_fcmadd_round_pch): Likewise
1014 (_mm512_mask_fmadd_round_pch): Likewise
1015 (_mm512_mask3_fmadd_round_pch): Likewise
1016 (_mm_mask_fcmadd_sch): Likewise
1017 (_mm_mask3_fcmadd_sch): Likewise
1018 (_mm_mask_fmadd_sch): Likewise
1019 (_mm_mask3_fmadd_sch): Likewise
1020 (_mm_mask_fcmadd_round_sch): Likewise
1021 (_mm_mask3_fcmadd_round_sch): Likewise
1022 (_mm_mask_fmadd_round_sch): Likewise
1023 (_mm_mask3_fmadd_round_sch): Likewise
1024 (_mm_fcmadd_round_sch): Likewise
1025 * config/i386/avx512fp16vlintrin.h (_mm_mask_fmadd_pch):
1026 Adjust builtin call.
1027 (_mm_mask3_fmadd_pch): Likewise
1028 (_mm256_mask_fmadd_pch): Likewise
1029 (_mm256_mask3_fmadd_pch): Likewise
1030 (_mm_mask_fcmadd_pch): Likewise
1031 (_mm_mask3_fcmadd_pch): Likewise
1032 (_mm256_mask_fcmadd_pch): Likewise
1033 (_mm256_mask3_fcmadd_pch): Likewise
1034 * config/i386/i386-builtin.def: Add mask3 builtin for complex
1035 fma, and adjust mask_builtin to corresponding expander.
1036 * config/i386/i386-expand.c (ix86_expand_round_builtin):
1037 Skip eraseing embedded rounding for expanders that emits
1039 * config/i386/sse.md (complexmove): New mode_attr.
1040 (<avx512>_fmaddc_<mode>_mask1<round_expand_name>): New expander.
1041 (<avx512>_fcmaddc_<mode>_mask1<round_expand_name>): Likewise.
1042 (avx512fp16_fmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
1043 (avx512fp16_fcmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
1044 (avx512fp16_fcmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
1045 (avx512fp16_fmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
1046 * config/i386/subst.md (round_embedded_complex): New subst.
1048 2021-10-14 John David Anglin <danglin@gcc.gnu.org>
1050 * config/pa/pa.md (cbranchsf4): Disable if TARGET_SOFT_FLOAT.
1051 (cbranchdf4): Likewise.
1052 Add missing move patterns for TARGET_SOFT_FLOAT.
1054 2021-10-13 Roger Sayle <roger@nextmovesoftware.com>
1056 * config/i386/i386-expand.c (ix86_expand_vector_move): Use a
1057 pseudo intermediate when moving a SUBREG into a hard register,
1058 by checking ix86_hardreg_mov_ok.
1059 (ix86_expand_vector_extract): Store zero-extended SImode
1060 intermediate in a pseudo, then set target using a SUBREG_PROMOTED
1062 * config/i386/sse.md (mov<VMOVE>_internal): Prevent CSE creating
1063 complex (SUBREG) sets of (vector) hard registers before reload, by
1064 checking ix86_hardreg_mov_ok.
1066 2021-10-13 Indu Bhagat <indu.bhagat@oracle.com>
1068 * ctfc.h (enum ctf_dtu_d_union_enum): Remove redundant comma.
1070 2021-10-13 Indu Bhagat <indu.bhagat@oracle.com>
1072 * dwarf2ctf.c (gen_ctf_array_type): Fix typo in comment.
1074 2021-10-13 Martin Sebor <msebor@redhat.com>
1076 PR middle-end/102630
1077 * pointer-query.cc (compute_objsize_r): Handle named address spaces.
1079 2021-10-13 Iain Sandoe <iain@sandoe.co.uk>
1081 * collect2.c (is_lto_object_file): Release simple-object
1082 resources, close files.
1084 2021-10-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
1086 * config/arm/arm.c (thumb2_legitimate_address_p): Use VALID_MVE_MODE
1087 when checking mve addressing modes.
1088 (mve_vector_mem_operand): Fix the way we handle pre, post and offset
1090 (arm_print_operand): Fix printing of POST_ and PRE_MODIFY.
1091 * config/arm/mve.md: Use mve_memory_operand predicate everywhere where
1092 there is a single Ux constraint.
1094 2021-10-13 John David Anglin <danglin@gcc.gnu.org>
1096 * config/pa/pa.md (muldi3): Add support for inlining 64-bit
1097 multiplication on 32-bit PA 1.1 and 2.0 targets.
1099 2021-10-13 Martin Liska <mliska@suse.cz>
1101 PR gcov-profile/90364
1102 * coverage.c (build_info): Emit checksum to the global variable.
1103 (build_info_type): Add new field for checksum.
1104 (coverage_obj_finish): Pass object_checksum.
1105 (coverage_init): Use 0 as checksum for .gcno files.
1106 * gcov-dump.c (dump_gcov_file): Dump also new checksum field.
1107 * gcov.c (read_graph_file): Read also checksum.
1108 * doc/invoke.texi: Document the behaviour change.
1110 2021-10-13 Richard Biener <rguenther@suse.de>
1112 * gimple-iterator.h (gsi_iterator_update): Add GSI_LAST_NEW_STMT,
1113 start at integer value 2.
1114 * gimple-iterator.c (gsi_insert_seq_nodes_before): Update
1115 the iterator for GSI_LAST_NEW_STMT.
1116 (gsi_insert_seq_nodes_after): Likewise.
1117 * tree-if-conv.c (predicate_statements): Use GSI_LAST_NEW_STMT.
1118 * tree-ssa.c (execute_update_addresses_taken): Correct bogus
1119 arguments to gsi_replace.
1121 2021-10-13 Martin Liska <mliska@suse.cz>
1124 * common.opt: Use EnabledBy instead of detection in
1125 finish_options and process_options.
1126 * opts.c (finish_options): Remove handling of
1127 x_flag_unroll_all_loops.
1128 * toplev.c (process_options): Likewise for flag_web and
1129 flag_rename_registers.
1131 2021-10-13 Richard Biener <rguenther@suse.de>
1133 PR tree-optimization/102659
1134 * tree-if-conv.c (need_to_rewrite_undefined): New flag.
1135 (if_convertible_gimple_assign_stmt_p): Mark the loop for
1136 rewrite when stmts with undefined behavior on integer
1138 (combine_blocks): Predicate also when we need to rewrite stmts.
1139 (predicate_statements): Rewrite affected stmts to something
1140 with well-defined behavior on overflow.
1141 (tree_if_conversion): Initialize need_to_rewrite_undefined.
1143 2021-10-13 Richard Biener <rguenther@suse.de>
1146 * ipa-sra.c (ptr_parm_has_nonarg_uses): Fix volatileness
1149 2021-10-13 Jose E. Marchesi <jose.marchesi@oracle.com>
1151 * dwarf2ctf.c: Fix typo in comment.
1153 2021-10-12 Bill Schmidt <wschmidt@linux.ibm.com>
1156 * config/rs6000/altivec.h (vec_cpsgn): Swap operand order.
1157 * config/rs6000/rs6000-overload.def (VEC_COPYSIGN): Use SKIP to
1158 avoid generating an automatic #define of vec_cpsgn. Use the
1159 correct built-in for V4SFmode that doesn't depend on VSX.
1161 2021-10-12 Uroš Bizjak <ubizjak@gmail.com>
1165 * config/i386/i386.md (*add<mode>_1_slp): Rewrite as
1166 define_insn_and_split pattern. Add alternative 1 and split it
1167 post reload to insert operand 1 into the low part of operand 0.
1168 (*sub<mode>_1_slp): Ditto.
1169 (*and<mode>_1_slp): Ditto.
1170 (*<any_or:code><mode>_1_slp): Ditto.
1171 (*ashl<mode>3_1_slp): Ditto.
1172 (*<any_shiftrt:insn><mode>3_1_slp): Ditto.
1173 (*<any_rotate:insn><mode>3_1_slp): Ditto.
1174 (*neg<mode>_1_slp): New insn_and_split pattern.
1175 (*one_cmpl<mode>_1_slp): Ditto.
1177 2021-10-12 David Edelsohn <dje.gcc@gmail.com>
1179 * doc/install.texi: Update MinGW and mingw-64 Binaries
1182 2021-10-12 Daniel Le Duc Khoi Nguyen <greenrecyclebin@gmail.com>
1184 * doc/extend.texi (Common Variable Attributes): Fix typos in
1185 alloc_size documentation.
1187 2021-10-12 Richard Biener <rguenther@suse.de>
1189 PR tree-optimization/102696
1190 * tree-vect-slp.c (vect_build_slp_tree_2): Properly mark
1191 the tree fatally failed when we reject a BIT_FIELD_REF.
1193 2021-10-12 Richard Biener <rguenther@suse.de>
1195 PR tree-optimization/102572
1196 * tree-vect-stmts.c (vect_build_gather_load_calls): When
1197 gathering the vectorized defs for the mask pass in the
1198 desired mask vector type so invariants will be handled
1201 2021-10-12 Tamar Christina <tamar.christina@arm.com>
1203 * config/aarch64/aarch64-sve.md (*fcm<cmp_op><mode>_bic_combine,
1204 *fcm<cmp_op><mode>_nor_combine, *fcmuo<mode>_bic_combine,
1205 *fcmuo<mode>_nor_combine): New.
1207 2021-10-12 Eric Botcazou <ebotcazou@adacore.com>
1210 * config/sparc/sparc-modes.def (OI): New integer mode.
1212 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1214 * gimple-fold.h (clear_padding_type_may_have_padding_p): Declare.
1215 * gimple-fold.c (clear_padding_type_may_have_padding_p): No longer
1218 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1220 * tree-vectorizer.h (loop_cost_model): New function.
1221 (unlimited_cost_model): Use it.
1222 * tree-vect-loop.c (vect_analyze_loop_costing): Use loop_cost_model
1223 call instead of flag_vect_cost_model.
1224 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
1225 (vect_prune_runtime_alias_test_list): Likewise. Also use it instead
1226 of flag_simd_cost_model.
1228 2021-10-12 liuhongt <hongtao.liu@intel.com>
1231 * config/i386/i386-expand.c (emit_reduc_half): Handle
1233 * config/i386/mmx.md (reduc_<code>_scal_v4qi): New expander.
1234 (reduc_plus_scal_v4qi): Ditto.
1236 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
1238 * config/rs6000/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
1239 _mm_mullo_epi32, _mm_mul_epi32, _mm_packus_epi32): New.
1240 * config/rs6000/nmmintrin.h: Copy from i386, tweak to suit.
1242 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
1244 * config/rs6000/smmintrin.h (_mm_cvtepi8_epi16, _mm_cvtepi8_epi32,
1245 _mm_cvtepi8_epi64, _mm_cvtepi16_epi32, _mm_cvtepi16_epi64,
1246 _mm_cvtepi32_epi64, _mm_cvtepu8_epi16, _mm_cvtepu8_epi32,
1247 _mm_cvtepu8_epi64, _mm_cvtepu16_epi32, _mm_cvtepu16_epi64,
1248 _mm_cvtepu32_epi64): New.
1250 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
1252 * config/rs6000/smmintrin.h (_mm_test_all_zeros,
1253 _mm_test_all_ones, _mm_test_mix_ones_zeros): Rewrite as macro.
1255 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
1257 * config/rs6000/smmintrin.h (_mm_min_epi8, _mm_min_epu16,
1258 _mm_min_epi32, _mm_min_epu32, _mm_max_epi8, _mm_max_epu16,
1259 _mm_max_epi32, _mm_max_epu32): New.
1261 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
1263 * ipa-modref-tree.h (struct modref_access_node): Revert
1265 (struct modref_ref_node): Likewise.
1267 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
1269 * ipa-modref-tree.h (modref_tree::global_access_p): New member
1272 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
1273 ignore_stores_eaf_flags): Move to ipa-modref.h
1274 (remove_useless_eaf_flags): Remove early exit on NOCLOBBER.
1275 (modref_summary::global_memory_read_p): New member function.
1276 (modref_summary::global_memory_written_p): New member function.
1277 * ipa-modref.h (modref_summary::global_memory_read_p,
1278 modref_summary::global_memory_written_p): Declare.
1279 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
1280 ignore_stores_eaf_flags): move here.
1281 * tree-ssa-structalias.c: Include ipa-modref-tree.h, ipa-modref.h
1283 (handle_rhs_call): Rewrite.
1284 (handle_call_arg): New function.
1285 (determine_global_memory_access): New function.
1286 (handle_const_call): Remove
1287 (handle_pure_call): Remove
1288 (find_func_aliases_for_call): Update use of handle_rhs_call.
1289 (compute_points_to_sets): Handle global memory acccesses
1292 2021-10-11 Diane Meirowitz <diane.meirowitz@oracle.com>
1294 * doc/invoke.texi: Add link to UndefinedBehaviorSanitizer
1295 documentation, mention UBSAN_OPTIONS, similar to what is done
1296 for AddressSanitizer.
1298 2021-10-11 Richard Biener <rguenther@suse.de>
1300 PR middle-end/102683
1301 * internal-fn.c (expand_DEFERRED_INIT): Check for mode
1302 availability before building an integer type for storage
1305 2021-10-11 Richard Biener <rguenther@suse.de>
1307 PR middle-end/101480
1308 * gimple.c (gimple_call_fnspec): Do not mark operator new/delete
1311 2021-10-11 Martin Liska <mliska@suse.cz>
1313 * common.opt: Remove Init(2) for some options.
1314 * toplev.c (process_options): Do not use AUTODETECT_VALUE, but
1315 use rather OPTION_SET_P.
1317 2021-10-11 Martin Liska <mliska@suse.cz>
1319 * common.opt: Remove usage of IRA_REGION_AUTODETECT.
1320 * flag-types.h (enum ira_region): Likewise.
1321 * toplev.c (process_options): Use OPTION_SET_P instead of
1322 IRA_REGION_AUTODETECT.
1324 2021-10-11 Jakub Jelinek <jakub@redhat.com>
1326 * omp-low.c (omp_runtime_api_call): Handle omp_get_max_teams,
1327 omp_[sg]et_teams_thread_limit and omp_set_num_teams.
1329 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1331 * config/s390/s390-protos.h (s390_rawmemchr): Add prototype.
1332 * config/s390/s390.c (s390_rawmemchr): New function.
1333 * config/s390/s390.md (rawmemchr<SINT:mode>): New expander.
1334 * config/s390/vector.md (@vec_vfees<mode>): Basically a copy of
1335 the pattern vfees<mode> from vx-builtins.md.
1336 * config/s390/vx-builtins.md (*vfees<mode>): Remove.
1338 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1340 * builtins.c (get_memory_rtx): Change to external linkage.
1341 * builtins.h (get_memory_rtx): Add function prototype.
1342 * doc/md.texi (rawmemchr<mode>): Document.
1343 * internal-fn.c (expand_RAWMEMCHR): Define.
1344 * internal-fn.def (RAWMEMCHR): Add.
1345 * optabs.def (rawmemchr_optab): Add.
1346 * tree-loop-distribution.c (find_single_drs): Change return code
1347 behaviour by also returning true if no single store was found
1349 (loop_distribution::classify_partition): Respect the new return
1350 code behaviour of function find_single_drs.
1351 (loop_distribution::execute): Call new function
1352 transform_reduction_loop in order to replace rawmemchr or strlen
1353 like loops by calls into builtins.
1354 (generate_reduction_builtin_1): New function.
1355 (generate_rawmemchr_builtin): New function.
1356 (generate_strlen_builtin_1): New function.
1357 (generate_strlen_builtin): New function.
1358 (generate_strlen_builtin_using_rawmemchr): New function.
1359 (reduction_var_overflows_first): New function.
1360 (determine_reduction_stmt_1): New function.
1361 (determine_reduction_stmt): New function.
1362 (loop_distribution::transform_reduction_loop): New function.
1364 2021-10-11 Martin Liska <mliska@suse.cz>
1366 * tree.c (cl_option_hasher::hash): Use cl_optimization_hash
1367 and remove legacy hashing code.
1369 2021-10-11 Kito Cheng <kito.cheng@sifive.com>
1372 * builtins.c (maybe_emit_call_builtin___clear_cache): Allow
1373 CONST_INT for BEGIN and END, and use gcc_assert rather than
1376 2021-10-10 Jakub Jelinek <jakub@redhat.com>
1379 * var-tracking.c (add_stores): For cselib_sp_derived_value_p values
1380 use MO_VAL_SET if loc is not sp.
1382 2021-10-10 Andrew Pinski <apinski@marvell.com>
1384 PR tree-optimization/102622
1385 * match.pd: Swap the order of a?pow2cst:0 and a?-1:0 transformations.
1386 Swap the order of a?0:pow2cst and a?0:-1 transformations.
1388 2021-10-09 liuhongt <hongtao.liu@intel.com>
1391 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Handle
1393 (ix86_use_mask_cmp_p): Ditto.
1394 (ix86_expand_sse_movcc): Ditto.
1395 * config/i386/i386.md (setcc_hf_mask): New define_insn.
1396 (movhf_mask): Ditto.
1397 (UNSPEC_MOVCC_MASK): New unspec.
1398 * config/i386/sse.md (UNSPEC_PCMP): Move to i386.md.
1400 2021-10-08 Vladimir N. Makarov <vmakarov@redhat.com>
1402 PR rtl-optimization/102627
1403 * lra-constraints.c (split_reg): Use at least natural mode of hard reg.
1405 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
1407 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Grow
1410 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
1412 * value-range.cc (irange::debug): New.
1413 * value-range.h (irange::debug): New.
1415 2021-10-08 Richard Sandiford <richard.sandiford@arm.com>
1417 PR tree-optimization/102385
1418 * predict.h (change_edge_frequency): Declare.
1419 * predict.c (change_edge_frequency): New function.
1420 * tree-ssa-loop-manip.h (tree_transform_and_unroll_loop): Remove
1422 (tree_unroll_loop): Likewise.
1423 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Update accordingly.
1424 * tree-predcom.c (pcom_worker::tree_predictive_commoning_loop):
1426 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Likewise.
1427 * tree-ssa-loop-manip.c (tree_unroll_loop): Likewise.
1428 (tree_transform_and_unroll_loop): Likewise. Use single_dom_exit
1429 to retrieve the exit edges. Make all the old profile update code
1430 conditional on !single_loop_p -- the case it was written for --
1431 and use a different approach for the single-loop case.
1433 2021-10-08 Martin Liska <mliska@suse.cz>
1435 * config/alpha/alpha.c (alpha_option_override): Use new macro
1437 * config/arc/arc.c (arc_override_options): Likewise.
1438 * config/arm/arm.c (arm_option_override): Likewise.
1439 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
1440 * config/c6x/c6x.c (c6x_option_override): Likewise.
1441 * config/csky/csky.c: Likewise.
1442 * config/darwin.c (darwin_override_options): Likewise.
1443 * config/frv/frv.c (frv_option_override): Likewise.
1444 * config/i386/djgpp.h: Likewise.
1445 * config/i386/i386.c (ix86_stack_protect_guard): Likewise.
1446 (ix86_max_noce_ifcvt_seq_cost): Likewise.
1447 * config/ia64/ia64.c (ia64_option_override): Likewise.
1448 (ia64_override_options_after_change): Likewise.
1449 * config/m32c/m32c.c (m32c_option_override): Likewise.
1450 * config/m32r/m32r.c (m32r_init): Likewise.
1451 * config/m68k/m68k.c (m68k_option_override): Likewise.
1452 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
1453 * config/mips/mips.c (mips_option_override): Likewise.
1454 * config/nios2/nios2.c (nios2_option_override): Likewise.
1455 * config/nvptx/nvptx.c (nvptx_option_override): Likewise.
1456 * config/pa/pa.c (pa_option_override): Likewise.
1457 * config/riscv/riscv.c (riscv_option_override): Likewise.
1458 * config/rs6000/aix71.h: Likewise.
1459 * config/rs6000/aix72.h: Likewise.
1460 * config/rs6000/aix73.h: Likewise.
1461 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Likewise.
1462 (rs6000_override_options_after_change): Likewise.
1463 (rs6000_linux64_override_options): Likewise.
1464 (glibc_supports_ieee_128bit): Likewise.
1465 (rs6000_option_override_internal): Likewise.
1466 (rs6000_file_start): Likewise.
1467 (rs6000_darwin_file_start): Likewise.
1468 * config/rs6000/rtems.h: Likewise.
1469 * config/rs6000/sysv4.h: Likewise.
1470 * config/rs6000/vxworks.h (SUB3TARGET_OVERRIDE_OPTIONS): Likewise.
1471 * config/s390/s390.c (s390_option_override): Likewise.
1472 * config/sh/linux.h: Likewise.
1473 * config/sh/netbsd-elf.h (while): Likewise.
1474 * config/sh/sh.c (sh_option_override): Likewise.
1475 * config/sol2.c (solaris_override_options): Likewise.
1476 * config/sparc/sparc.c (sparc_option_override): Likewise.
1477 * config/tilegx/tilegx.c (tilegx_option_override): Likewise.
1478 * config/visium/visium.c (visium_option_override): Likewise.
1479 * config/vxworks.c (vxworks_override_options): Likewise.
1480 * lto-opts.c (lto_write_options): Likewise.
1481 * omp-expand.c (expand_omp_simd): Likewise.
1482 * omp-general.c (omp_max_vf): Likewise.
1483 * omp-offload.c (oacc_xform_loop): Likewise.
1484 * opts.h (OPTION_SET_P): Likewise.
1485 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
1486 * toplev.c (process_options): Likewise.
1487 * tree-predcom.c: Likewise.
1488 * tree-sra.c (analyze_all_variable_accesses): Likewise.
1490 2021-10-08 liuhongt <hongtao.liu@intel.com>
1493 * config/i386/i386.c (ix86_optab_supported_p):
1494 Return true for HFmode.
1495 * match.pd: Simplify (_Float16) ceil ((double) x) to
1496 __builtin_ceilf16 (a) when a is _Float16 type and
1497 direct_internal_fn_supported_p.
1499 2021-10-08 liuhongt <hongtao.liu@intel.com>
1502 * config/i386/i386-expand.c (emit_reduc_half): Hanlde V4HImode.
1503 * config/i386/mmx.md (reduc_plus_scal_v4hi): New.
1504 (reduc_<code>_scal_v4hi): New.
1506 2021-10-08 liuhongt <hongtao.liu@intel.com>
1508 * common.opt (ftree-vectorize): Add Var(flag_tree_vectorize).
1509 * doc/invoke.texi (Options That Control Optimization): Update
1511 * opts.c (default_options_table): Enable auto-vectorization at
1512 O2 with very-cheap cost model.
1513 (finish_options): Use cheap cost model for
1514 explicit -ftree{,-loop}-vectorize.
1516 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
1518 * ctfc.c (ctfc_delete_container): Free hash table contents.
1520 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
1522 * toplev.c (process_options): Do not warn for GNU GIMPLE.
1524 2021-10-07 Siddhesh Poyarekar <siddhesh@gotplt.org>
1526 * tree-object-size.c (addr_object_size,
1527 compute_builtin_object_size): Drop PDECL and POFF arguments.
1528 (addr_object_size): Adjust calls.
1529 * tree-object-size.h (compute_builtin_object_size): Drop PDECL
1532 2021-10-07 Roger Sayle <roger@nextmovesoftware.com>
1534 * rtl.def (SMUL_HIGHPART, UMUL_HIGHPART): New RTX codes for
1535 representing signed and unsigned high-part multiplication resp.
1536 * simplify-rtx.c (simplify_binary_operation_1) [SMUL_HIGHPART,
1537 UMUL_HIGHPART]: Simplify high-part multiplications by zero.
1538 [SS_PLUS, US_PLUS, SS_MINUS, US_MINUS, SS_MULT, US_MULT,
1539 SS_DIV, US_DIV]: Similar simplifications for saturating
1541 (simplify_const_binary_operation) [SS_PLUS, US_PLUS, SS_MINUS,
1542 US_MINUS, SS_MULT, US_MULT, SMUL_HIGHPART, UMUL_HIGHPART]:
1543 Implement compile-time evaluation for constant operands.
1544 * dwarf2out.c (mem_loc_descriptor): Skip SMUL_HIGHPART and
1546 * doc/rtl.texi (smul_highpart, umul_highpart): Document RTX codes.
1547 * doc/md.texi (smul@var{m}3_highpart, umul@var{m3}_highpart):
1548 Mention the new smul_highpart and umul_highpart RTX codes.
1549 * doc/invoke.texi: Silence @xref "compilation" warnings.
1551 2021-10-07 Martin Jambor <mjambor@suse.cz>
1554 * ipa-prop.c (ipa_edge_args_sum_t::duplicate): Also handle the
1555 case when the source reference description corresponds to a
1556 referance taken in a function src->caller is inlined to.
1558 2021-10-07 Jan Hubicka <hubicka@ucw.cz>
1561 * ipa-modref-tree.h (modref_access_node::contains_p): Handle offsets
1563 (modref_access_node::try_merge_with): Add sanity check that there
1564 are no redundant entries in the list.
1566 2021-10-07 Richard Biener <rguenther@suse.de>
1568 PR tree-optimization/102608
1569 * tree-ssa-sccvn.c (visit_stmt): Drop .DEFERRED_INIT to
1572 2021-10-07 Martin Liska <mliska@suse.cz>
1574 * toplev.c (toplev::main): Make
1575 save_opt_decoded_options a pointer type
1576 * toplev.h: Likewise.
1578 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
1580 * config/gcn/gcn-valu.md (gather<mode>_insn_2offsets<exec>): Apply
1581 HAVE_GCN_ASM_GLOBAL_LOAD_FIXED.
1582 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
1584 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
1586 * config/gcn/gcn-hsa.h (SRAMOPT): Include the whole option string.
1587 Adjust for new -msram-ecc=any behaviour.
1588 (ASM_SPEC): Adjust -mxnack and -msram-ecc usage.
1589 * config/gcn/gcn.c (output_file_start): Implement -msram-ecc=any.
1590 * config/gcn/mkoffload.c (EF_AMDGPU_XNACK): Rename to ...
1591 (EF_AMDGPU_XNACK_V3): ... this.
1592 (EF_AMDGPU_SRAM_ECC): Rename to ...
1593 (EF_AMDGPU_SRAM_ECC_V3): ... this.
1594 (EF_AMDGPU_FEATURE_XNACK_V4): New.
1595 (EF_AMDGPU_FEATURE_XNACK_UNSUPPORTED_V4): New.
1596 (EF_AMDGPU_FEATURE_XNACK_ANY_V4): New.
1597 (EF_AMDGPU_FEATURE_XNACK_OFF_V4): New.
1598 (EF_AMDGPU_FEATURE_XNACK_ON_V4): New.
1599 (EF_AMDGPU_FEATURE_SRAMECC_V4): New.
1600 (EF_AMDGPU_FEATURE_SRAMECC_UNSUPPORTED_V4): New.
1601 (EF_AMDGPU_FEATURE_SRAMECC_ANY_V4): New.
1602 (EF_AMDGPU_FEATURE_SRAMECC_OFF_V4): New.
1603 (EF_AMDGPU_FEATURE_SRAMECC_ON_V4): New.
1604 (SET_XNACK_ON): New.
1605 (SET_XNACK_OFF): New.
1607 (SET_SRAM_ECC_ON): New.
1608 (SET_SRAM_ECC_ANY): New.
1609 (SET_SRAM_ECC_OFF): New.
1610 (TEST_SRAM_ECC_ANY): New.
1611 (TEST_SRAM_ECC_ON): New.
1612 (main): Implement HSACOv4 and -msram-ecc=any.
1614 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
1616 * config.in: Regenerate.
1617 * config/gcn/gcn-hsa.h (X_FIJI): New macro.
1621 (A_FIJI): Rename to ...
1623 (A_900): Rename to ...
1625 (A_906): Rename to ...
1627 (A_908): Rename to ...
1629 (SRAMOPT): New macro.
1630 (ASM_SPEC): Adjust xnack option usage.
1631 * config/gcn/gcn.c (output_file_start): Adjust amdgcn_target usage.
1632 * configure: Regenerate.
1633 * configure.ac: Detect LLVM assembler dialect.
1635 2021-10-07 Richard Biener <rguenther@suse.de>
1637 * tree-pretty-print.c (dump_generic_node): Do not elide
1638 printing '&' when dumping with -gimple.
1640 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
1642 * gimple-range-cache.cc (non_null_ref::adjust_range): Call new
1644 * gimple-range-fold.cc (adjust_pointer_diff_expr): Ditto.
1645 (adjust_imagpart_expr): Ditto.
1646 * value-range.cc (irange::irange_intersect): Call new routine if
1647 RHS is a single pair.
1648 (irange::intersect): New wide_int version.
1649 * value-range.h (class irange): New prototype.
1651 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
1653 * gimple-range-edge.cc (gimple_outgoing_range::gimple_outgoing_range):
1654 Add parameter to limit size when recognizing switches.
1655 (gimple_outgoing_range::edge_range_p): Check size limit.
1656 * gimple-range-edge.h (gimple_outgoing_range): Add size field.
1657 * gimple-range-gori.cc (gori_map::calculate_gori): Ignore switches
1658 that exceed the size limit.
1659 (gori_compute::gori_compute): Add initializer.
1660 * params.opt (evrp-switch-limit): New.
1661 * doc/invoke.texi: Update docs.
1663 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
1665 * value-range.h (irange::set_varying): Use TYPE_MIN_VALUE and
1666 TYPE_MAX_VALUE instead of creating new trees when possible.
1668 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
1670 * gimple-range-cache.cc (non_null_ref::adjust_range): Check for
1671 zero and non-zero more efficently.
1673 2021-10-06 Richard Biener <rguenther@suse.de>
1676 * dumpfile.h (TDF_GIMPLE_VAL): New.
1677 (dump_flag): Re-order and adjust TDF_* flags. Make
1678 the enum uint32_t. Use std::underlying_type in the
1680 (optgroup_flag): Likewise for the operator overloads.
1681 * tree-pretty-print.c (dump_generic_node): Wrap ADDR_EXPR
1682 in _Literal if TDF_GIMPLE_VAL.
1683 * gimple-pretty-print.c (dump_gimple_assign): Add
1684 TDF_GIMPLE_VAL to flags when dumping operands where only
1685 is_gimple_val are allowed.
1686 (dump_gimple_cond): Likewise.
1688 2021-10-06 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
1690 * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove redundant if
1693 2021-10-05 qing zhao <qing.zhao@oracle.com>
1695 PR middle-end/102359
1696 * gimplify.c (gimplify_decl_expr): Not add initialization for an
1697 auto variable when it has been initialized by frontend.
1699 2021-10-05 Aldy Hernandez <aldyh@redhat.com>
1701 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
1704 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1706 * common/config/avr/avr-common.c (avr_handle_option): Mark
1707 argument as ATTRIBUTE_UNUSED.
1709 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1711 * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC):
1712 Undefine before redefinition.
1714 2021-10-05 Richard Biener <rguenther@suse.de>
1716 * toplev.c (no_backend): Remove global var.
1717 (process_options): Pass in no_backend, move post_options
1718 langhook call to toplev::main.
1719 (do_compile): Pass in no_backend, move process_options call
1721 (toplev::run_self_tests): Check no_backend at the caller.
1722 (toplev::main): Call post_options and process_options
1723 split out from do_compile, do self-tests only if
1724 no_backend is initialized.
1726 2021-10-05 Richard Biener <rguenther@suse.de>
1728 * tree-cfg.c (dump_function_to_file): Dump the UID of the
1729 function as part of the name when requested.
1730 * tree-pretty-print.c (dump_function_name): Dump the UID when
1731 requested and the langhook produced the actual name.
1733 2021-10-05 Richard Biener <rguenther@suse.de>
1735 PR middle-end/102587
1736 PR middle-end/102285
1737 * internal-fn.c (expand_DEFERRED_INIT): Fall back to
1738 zero-initialization as last resort, use the constant
1739 size as given by the DEFERRED_INIT argument to build
1742 2021-10-04 Marek Polacek <polacek@redhat.com>
1745 * doc/invoke.texi: Document -Warray-compare.
1747 2021-10-04 Richard Biener <rguenther@suse.de>
1749 * gimplify.c (is_var_need_auto_init): DECL_HARD_REGISTER
1750 variables are not to be initialized.
1752 2021-10-04 Richard Biener <rguenther@suse.de>
1754 * expr.h (non_mem_decl_p): Declare.
1755 (mem_ref_refers_to_non_mem_p): Likewise.
1756 * expr.c (non_mem_decl_p): Export.
1757 (mem_ref_refers_to_non_mem_p): Likewise.
1758 * internal-fn.c (expand_DEFERRED_INIT): Do not expand the LHS
1759 but check the base with mem_ref_refers_to_non_mem_p
1762 2021-10-04 Richard Biener <rguenther@suse.de>
1764 PR tree-optimization/102570
1765 * tree-ssa-sccvn.h (vn_reference_op_struct): Document
1766 we are using clique for the internal function code.
1767 * tree-ssa-sccvn.c (vn_reference_op_eq): Compare the
1768 internal function code.
1769 (print_vn_reference_ops): Print the internal function code.
1770 (vn_reference_op_compute_hash): Hash it.
1771 (copy_reference_ops_from_call): Record it.
1772 (visit_stmt): Remove the restriction around internal function
1774 (fully_constant_vn_reference_p): Use fold_const_call and handle
1776 (vn_reference_eq): Compare call return types.
1777 * tree-ssa-pre.c (create_expression_by_pieces): Handle
1778 generating calls to internal functions.
1779 (compute_avail): Remove the restriction around internal function
1782 2021-10-04 Aldy Hernandez <aldyh@redhat.com>
1784 PR tree-optimization/102560
1785 * gimple-ssa-warn-alloca.c (alloca_call_type): Remove static
1786 marker for invalid_range.
1788 2021-10-04 Richard Biener <rguenther@suse.de>
1790 PR middle-end/102587
1791 * internal-fn.c (expand_DEFERRED_INIT): Guard register
1792 initialization path an avoid initializing VLA registers
1795 2021-10-04 Eric Botcazou <ebotcazou@adacore.com>
1797 * config/rs6000/vxworks.h (TARGET_INIT_LIBFUNCS): Delete.
1799 2021-10-03 Martin Liska <mliska@suse.cz>
1801 * toplev.c (toplev::main): Check opt_index if it is a part
1804 2021-10-02 Aldy Hernandez <aldyh@redhat.com>
1806 PR tree-optimization/102563
1807 * range-op.cc (operator_lshift::op1_range): Do not clobber
1810 2021-10-02 Martin Liska <mliska@suse.cz>
1812 * toplev.c (toplev::main): save_decoded_options[0] is program
1813 name and so it should be skipped.
1815 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
1817 PR tree-optimization/102546
1818 * range-op.cc (operator_lshift::op1_range): Teach range-ops that
1819 X << Y is non-zero implies X is also non-zero.
1821 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1823 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
1825 * config/aarch64/aarch64-tune.md: Regenerate.
1826 * doc/invoke.texi: Update docs.
1828 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1830 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
1832 * config/aarch64/aarch64-tune.md: Regenerate.
1833 * doc/invoke.texi: Update docs.
1835 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1837 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
1839 * config/aarch64/aarch64-tune.md: Regenerate.
1840 * doc/invoke.texi: Update docs.
1842 2021-10-01 Martin Sebor <msebor@redhat.com>
1845 * doc/invoke.texi (-Waddress): Update.
1846 * gengtype.c (write_types): Avoid -Waddress.
1847 * poly-int.h (POLY_SET_COEFF): Avoid using null.
1849 2021-10-01 John David Anglin <danglin@gcc.gnu.org>
1852 * config/pa/pa.c (pa_option_override): Default to dwarf version 4
1855 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1857 * config/aarch64/aarch64.h (AARCH64_FL_V9): Update value.
1859 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
1861 * gimple-range-path.cc (path_range_query::compute_ranges): Use
1863 * gimple-range-path.h (class path_range_query): Remove shadowed
1865 (path_range_query::get_path_oracle): New.
1867 2021-10-01 Jakub Jelinek <jakub@redhat.com>
1868 Richard Biener <rguenther@suse.de>
1871 * doc/invoke.texi (-fsanitize=integer-divide-by-zero): Remove
1872 INT_MIN / -1 division detection from here ...
1873 (-fsanitize=signed-integer-overflow): ... and add it here.
1875 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1877 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): Added
1879 * config/aarch64/aarch64.h (AARCH64_FL_V9): New.
1880 (AARCH64_FL_FOR_ARCH9): New flags for Armv9-A.
1881 (AARCH64_ISA_V9): New ISA flag.
1882 * doc/invoke.texi: Update docs.
1884 2021-10-01 Martin Liska <mliska@suse.cz>
1886 * toplev.c (toplev::main): Save decoded optimization options.
1887 * toplev.h (save_opt_decoded_options): New.
1888 * doc/extend.texi: Be more clear about optimize and target
1891 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
1893 * explow.c: Include langhooks.h.
1894 (set_stack_check_libfunc): Build a proper function type.
1896 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
1899 * config/i386/i386.c (legitimate_pic_address_disp_p): For PE-COFF do
1900 not return true for external weak function symbols in medium model.
1902 2021-10-01 Jakub Jelinek <jakub@redhat.com>
1904 * tree.h (OMP_CLAUSE_ORDER_REPRODUCIBLE): Define.
1905 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_ORDER>: Print
1906 reproducible: for OMP_CLAUSE_ORDER_REPRODUCIBLE.
1907 * omp-general.c (omp_extract_for_data): If OMP_CLAUSE_ORDER is seen
1908 without OMP_CLAUSE_ORDER_UNCONSTRAINED, overwrite sched_kind to
1909 OMP_CLAUSE_SCHEDULE_STATIC.
1911 2021-10-01 Richard Biener <rguenther@suse.de>
1913 PR middle-end/102518
1914 * tree-inline.c (setup_one_parameter): Avoid substituting
1915 an invariant into contexts where a GIMPLE register is not valid.
1917 2021-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1919 * config/arm/arm-cpus.in: Add Cortex-R52+ CPU.
1920 * config/arm/arm-tables.opt: Regenerate.
1921 * config/arm/arm-tune.md: Regenerate.
1922 * doc/invoke.texi: Update docs.
1924 2021-09-30 Uroš Bizjak <ubizjak@gmail.com>
1927 * config/i386/i386.md
1928 (sign_extend:WIDE (any_logic:NARROW (memory, immediate)) splitters):
1931 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
1933 * omp-low.c (omp_runtime_api_call): Add omp_aligned_{,c}alloc and
1934 omp_{c,re}alloc, fix omp_alloc/omp_free.
1936 2021-09-30 Martin Liska <mliska@suse.cz>
1938 * defaults.h (ASM_OUTPUT_ASCII): Do not hide global variable
1939 asm_out_file and stream directly to MYFILE.
1941 2021-09-30 Richard Biener <rguenther@suse.de>
1943 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
1944 Restore and fix condition under which we apply npeel to
1945 the DRs misalignment value.
1947 2021-09-30 Richard Biener <rguenther@suse.de>
1949 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
1950 Fix npeel check for variable amount of peeling.
1952 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
1954 * lto-wrapper.c (run_gcc): Plug snprintf overflow.
1956 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
1958 * gimple-range.cc (gimple_ranger::debug): New.
1959 * gimple-range.h (class gimple_ranger): Add debug.
1961 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
1963 PR middle-end/102519
1964 * tree-vrp.c (hybrid_threader::~hybrid_threader): Free m_query.
1966 2021-09-29 Indu Bhagat <indu.bhagat@oracle.com>
1969 * btfout.c (GTY): Add GTY (()) albeit for cosmetic only purpose.
1970 (btf_finalize): Empty the hash_map btf_var_ids.
1972 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
1974 * tree-vrp.c (thread_through_all_blocks): Return bool.
1975 (execute_vrp_threader): Return TODO_* flags.
1976 (pass_data_vrp_threader): Set todo_flags_finish to 0.
1978 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
1980 * timevar.def (TV_TREE_VRP_THREADER): New.
1981 * tree-vrp.c: Use TV_TREE_VRP_THREADER for VRP threader pass.
1983 2021-09-29 David Faust <david.faust@oracle.com>
1985 * config.gcc (bpf-*-*): Do not overwrite extra_headers.
1987 2021-09-29 Jonathan Wright <jonathan.wright@arm.com>
1989 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_PPU): Define
1990 new type qualifier enum.
1991 (TYPES_TERNOP_SSSU): Likewise.
1992 (TYPES_TERNOP_PPPU): Likewise.
1993 * config/aarch64/aarch64-simd-builtins.def: Define PPU, SSU,
1994 PPPU and SSSU builtin generator macros for qtbl1 and qtbx1
1996 * config/aarch64/arm_neon.h (vqtbl1_p8): Use type-qualified
1997 builtin and remove casts.
1998 (vqtbl1_s8): Likewise.
1999 (vqtbl1q_p8): Likewise.
2000 (vqtbl1q_s8): Likewise.
2001 (vqtbx1_s8): Likewise.
2002 (vqtbx1_p8): Likewise.
2003 (vqtbx1q_s8): Likewise.
2004 (vqtbx1q_p8): Likewise.
2005 (vtbl1_p8): Likewise.
2006 (vtbl2_p8): Likewise.
2007 (vtbx2_p8): Likewise.
2009 2021-09-29 Richard Biener <rguenther@suse.de>
2011 * tree-vect-data-refs.c (vect_dr_misalign_for_aligned_access):
2013 (vect_update_misalignment_for_peel): Use it to update
2014 misaligned to the value necessary for an aligned access.
2015 (vect_get_peeling_costs_all_drs): Likewise.
2016 (vect_enhance_data_refs_alignment): Likewise.
2018 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2020 * config/aarch64/aarch64.c (aarch64_expand_cpymem): Count number of
2021 emitted operations and adjust heuristic for code size.
2023 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2025 * config/aarch64/aarch64.c (aarch64_expand_setmem): Count number of
2026 emitted operations and adjust heuristic for code size.
2028 2021-09-29 Jakub Jelinek <jakub@redhat.com>
2030 PR middle-end/102504
2031 * gimplify.c (gimplify_scan_omp_clauses): Use omp_check_private even
2032 in OMP_SCOPE clauses, not just on worksharing construct clauses.
2034 2021-09-28 Geng Qi <gengqi@linux.alibaba.com>
2036 * config/riscv/riscv.md (mulv<mode>4): Call gen_smul<mode>3_highpart.
2037 (<u>mulditi3): Call <su>muldi3_highpart.
2038 (<u>muldi3_highpart): Rename to <su>muldi3_highpart.
2039 (<u>mulsidi3): Call <su>mulsi3_highpart.
2040 (<u>mulsi3_highpart): Rename to <su>mulsi3_highpart.
2042 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
2044 * config/darwin.h (DSYMUTIL_SPEC): Recognize D sources.
2046 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
2048 * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
2049 (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
2052 2021-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2054 * config/aarch64/aarch64.h (AARCH64_FL_LS64): Define
2055 (AARCH64_FL_V8_7): Likewise.
2056 (AARCH64_FL_FOR_ARCH8_7): Likewise.
2057 * config/aarch64/aarch64-arches.def (armv8.7-a): Define.
2058 * config/aarch64/aarch64-option-extensions.def (ls64): Define.
2059 * doc/invoke.texi: Document the above.
2061 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2063 * dbgcnt.c (dbg_cnt_counter): New.
2064 * dbgcnt.h (dbg_cnt_counter): New.
2065 * dumpfile.c (dump_options): Add entry for TDF_THREADING.
2066 * dumpfile.h (enum dump_flag): Add TDF_THREADING.
2067 * gimple-range-path.cc (DEBUG_SOLVER): Use TDF_THREADING.
2068 * tree-ssa-threadupdate.c (dump_jump_thread_path): Dump out
2071 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2073 * cfgcleanup.c (pass_jump::execute): Check
2074 flag_expensive_optimizations.
2075 (pass_jump_after_combine::gate): Same.
2076 * doc/invoke.texi (-fthread-jumps): Enable for -O1.
2077 * opts.c (default_options_table): Enable -fthread-jumps at -O1.
2078 * tree-ssa-threadupdate.c
2079 (fwd_jt_path_registry::remove_jump_threads_including): Bail unless
2082 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
2084 * tree-ssa-reassoc.c (biased_names): New global.
2085 (propagate_bias_p): New function.
2086 (loop_carried_phi): Remove.
2087 (propagate_rank): Propagate bias along single uses.
2088 (get_rank): Update biased_names when needed.
2090 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
2092 * passes.def (pass_reassoc): Rename parameter to early_p.
2093 * tree-ssa-reassoc.c (reassoc_bias_loop_carried_phi_ranks_p):
2095 (phi_rank): Don't bias loop-carried phi ranks
2096 before vectorization pass.
2097 (execute_reassoc): Add bias_loop_carried_phi_ranks_p parameter.
2098 (pass_reassoc::pass_reassoc): Add bias_loop_carried_phi_ranks_p
2100 (pass_reassoc::set_param): Set bias_loop_carried_phi_ranks_p
2102 (pass_reassoc::execute): Pass bias_loop_carried_phi_ranks_p to
2104 (pass_reassoc::bias_loop_carried_phi_ranks_p): New member.
2106 2021-09-28 Jakub Jelinek <jakub@redhat.com>
2109 * config/i386/i386.c (standard_80387_constant_p): Don't recognize
2110 special 80387 instruction XFmode constants if flag_rounding_math.
2112 2021-09-28 Richard Biener <rguenther@suse.de>
2114 PR tree-optimization/100112
2115 * tree-ssa-sccvn.c (visit_reference_op_load): Record the
2116 referece into the hashtable twice in case last_vuse is
2117 different from the original vuse on the stmt.
2119 2021-09-28 Jakub Jelinek <jakub@redhat.com>
2121 PR middle-end/102492
2122 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't call the
2123 omp_finish_clause langhook on implicitly added OMP_CLAUSE_PRIVATE
2124 clauses on SIMD constructs.
2126 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2128 PR tree-optimization/102511
2129 * gimple-range-path.cc (path_range_query::range_on_path_entry):
2130 Return VARYING when nothing found.
2132 2021-09-28 Hongyu Wang <hongyu.wang@intel.com>
2135 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): Add
2137 (VALID_SSE2_REG_VHF_MODE): Add V4HFmode and V2HFmode.
2138 (VALID_MMX_REG_MODE): Add V4HFmode.
2139 (SSE_REG_MODE_P): Replace VALID_AVX512FP16_REG_MODE with
2140 vector mode condition.
2141 * config/i386/i386.c (classify_argument): Parse V4HF/V2HF
2143 (function_arg_32): Add V4HFmode.
2144 (function_arg_advance_32): Likewise.
2145 * config/i386/i386.md (mode): Add V4HF/V2HF.
2146 (MODE_SIZE): Likewise.
2147 * config/i386/mmx.md (MMXMODE): Add V4HF mode.
2148 (V_32): Add V2HF mode.
2149 (VHF_32_64): New mode iterator.
2150 (*mov<mode>_internal): Adjust sse alternatives to support
2152 (*mov<mode>_internal): Adjust sse alternatives to support
2154 (<insn><mode>3): New define_insn for add/sub/mul/div.
2156 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2158 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Check
2160 (pass_early_thread_jumps::gate): Same.
2161 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
2162 Return if !flag_thread_jumps.
2163 * tree-ssa-threadupdate.c
2164 (jt_path_registry::register_jump_thread): Assert that
2165 flag_thread_jumps is true.
2167 2021-09-28 liuhongt <hongtao.liu@intel.com>
2170 (simplify_context::simplify_binary_operation_1): Relax
2171 condition of simplifying (vec_concat:M (vec_select op0
2172 index0)(vec_select op1 index1)) to allow different modes
2173 between op0 and M, but have same inner mode.
2175 2021-09-28 liuhongt <hongtao.liu@intel.com>
2177 * config/i386/i386-expand.c (emit_reduc_half): Handle
2178 V8HF/V16HF/V32HFmode.
2179 * config/i386/sse.md (REDUC_SSE_PLUS_MODE): Add V8HF.
2180 (REDUC_SSE_SMINMAX_MODE): Ditto.
2181 (REDUC_PLUS_MODE): Add V16HF and V32HF.
2182 (REDUC_SMINMAX_MODE): Ditto.
2184 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2186 * gimple-range-path.cc
2187 (path_range_query::precompute_ranges_in_block): Rename to...
2188 (path_range_query::compute_ranges_in_block): ...this.
2189 (path_range_query::precompute_ranges): Rename to...
2190 (path_range_query::compute_ranges): ...this.
2191 (path_range_query::precompute_relations): Rename to...
2192 (path_range_query::compute_relations): ...this.
2193 (path_range_query::precompute_phi_relations): Rename to...
2194 (path_range_query::compute_phi_relations): ...this.
2195 * gimple-range-path.h: Rename precompute* to compute*.
2196 * tree-ssa-threadbackward.c
2197 (back_threader::find_taken_edge_switch): Same.
2198 (back_threader::find_taken_edge_cond): Same.
2199 * tree-ssa-threadedge.c
2200 (hybrid_jt_simplifier::compute_ranges_from_state): Same.
2201 (hybrid_jt_state::register_equivs_stmt): Inline...
2202 * tree-ssa-threadedge.h: ...here.
2204 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2206 * tree-vrp.c (lhs_of_dominating_assert): Remove.
2207 (class vrp_jt_state): Remove.
2208 (class vrp_jt_simplifier): Remove.
2209 (vrp_jt_simplifier::simplify): Remove.
2210 (class vrp_jump_threader): Remove.
2211 (vrp_jump_threader::vrp_jump_threader): Remove.
2212 (vrp_jump_threader::~vrp_jump_threader): Remove.
2213 (vrp_jump_threader::before_dom_children): Remove.
2214 (vrp_jump_threader::after_dom_children): Remove.
2216 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2218 * passes.def (pass_vrp_threader): New.
2219 * tree-pass.h (make_pass_vrp_threader): Add make_pass_vrp_threader.
2220 * tree-ssa-threadedge.c (hybrid_jt_state::register_equivs_stmt): New.
2221 (hybrid_jt_simplifier::hybrid_jt_simplifier): New.
2222 (hybrid_jt_simplifier::simplify): New.
2223 (hybrid_jt_simplifier::compute_ranges_from_state): New.
2224 * tree-ssa-threadedge.h (class hybrid_jt_state): New.
2225 (class hybrid_jt_simplifier): New.
2226 * tree-vrp.c (execute_vrp): Remove ASSERT_EXPR based jump
2228 (class hybrid_threader): New.
2229 (hybrid_threader::hybrid_threader): New.
2230 (hybrid_threader::~hybrid_threader): New.
2231 (hybrid_threader::before_dom_children): New.
2232 (hybrid_threader::after_dom_children): New.
2233 (execute_vrp_threader): New.
2234 (class pass_vrp_threader): New.
2235 (make_pass_vrp_threader): New.
2237 2021-09-27 Martin Liska <mliska@suse.cz>
2239 * output.h (enum section_flag): New.
2240 (SECTION_FORGET): Remove.
2241 (SECTION_ENTSIZE): Make it (1UL << 8) - 1.
2242 (SECTION_STYLE_MASK): Define it based on other enum
2244 * varasm.c (switch_to_section): Remove unused handling of
2247 2021-09-27 Martin Liska <mliska@suse.cz>
2249 * common.opt: Add new variable flag_default_complex_method.
2250 * opts.c (finish_options): Handle flags related to
2251 x_flag_complex_method.
2252 * toplev.c (process_options): Remove option handling related
2253 to flag_complex_method.
2255 2021-09-27 Richard Biener <rguenther@suse.de>
2257 PR middle-end/102450
2258 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid using
2259 type_for_size, instead use int_mode_for_size.
2261 2021-09-27 Andrew Pinski <apinski@marvell.com>
2264 * gimplify.c (gimplify_save_expr): Return early
2265 if the type of val is error_mark_node.
2267 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2269 * tree-ssanames.c (ssa_name_has_boolean_range): Use
2272 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2274 * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Remove
2275 vrp_visit_cond_stmt.
2276 * tree-ssa-dom.c (cprop_operand): Convert to range_query API.
2277 (cprop_into_stmt): Same.
2278 (dom_opt_dom_walker::optimize_stmt): Same.
2280 2021-09-27 Richard Biener <rguenther@suse.de>
2282 PR tree-optimization/97351
2283 PR tree-optimization/97352
2284 PR tree-optimization/82426
2285 * tree-vectorizer.h (dr_misalignment): Add vector type
2287 (aligned_access_p): Likewise.
2288 (known_alignment_for_access_p): Likewise.
2289 (vect_supportable_dr_alignment): Likewise.
2290 (vect_known_alignment_in_bytes): Likewise. Refactor.
2291 (DR_MISALIGNMENT): Remove.
2292 (vect_update_shared_vectype): Likewise.
2293 * tree-vect-data-refs.c (dr_misalignment): Refactor, handle
2294 a vector type with larger alignment requirement and apply
2295 the negative step adjustment here.
2296 (vect_calculate_target_alignment): Remove.
2297 (vect_compute_data_ref_alignment): Get explicit vector type
2298 argument, do not apply a negative step alignment adjustment
2300 (vect_slp_analyze_node_alignment): Re-analyze alignment
2301 when we re-visit the DR with a bigger desired alignment but
2302 keep more precise results from smaller alignments.
2303 * tree-vect-slp.c (vect_update_shared_vectype): Remove.
2304 (vect_slp_analyze_node_operations_1): Do not update the
2305 shared vector type on stmts.
2306 * tree-vect-stmts.c (vect_analyze_stmt): Push/pop the
2307 vector type of an SLP node to the representative stmt-info.
2308 (vect_transform_stmt): Likewise.
2310 2021-09-27 liuhongt <hongtao.liu@intel.com>
2313 2021-09-09 liuhongt <hongtao.liu@intel.com>
2316 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
2317 (reduc_plus_scal_v4sf): .. this, New define_expand.
2318 (reduc_plus_scal_v2df): .. and this, New define_expand.
2320 2021-09-26 liuhongt <hongtao.liu@intel.com>
2322 * doc/extend.texi (Half-Precision): Remove storage only
2323 description for _Float16 w/o avx512fp16.
2325 2021-09-25 Dimitar Dimitrov <dimitar@dinux.eu>
2327 * config/pru/constraints.md (Rrio): New constraint.
2328 * config/pru/predicates.md (regio_operand): New predicate.
2329 * config/pru/pru-pragma.c (pru_register_pragmas): Register
2330 the __regio_symbol address space.
2331 * config/pru/pru-protos.h (pru_symref2ioregno): Declaration.
2332 * config/pru/pru.c (pru_symref2ioregno): New helper function.
2333 (pru_legitimate_address_p): Remove.
2334 (pru_addr_space_legitimate_address_p): Use the address space
2336 (pru_nongeneric_pointer_addrspace): New helper function.
2337 (pru_insert_attributes): New function to validate __regio_symbol
2339 (TARGET_INSERT_ATTRIBUTES): New macro.
2340 (TARGET_LEGITIMATE_ADDRESS_P): Remove.
2341 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): New macro.
2342 * config/pru/pru.h (enum reg_class): Add REGIO_REGS class.
2343 * config/pru/pru.md (*regio_readsi): New pattern to read I/O
2345 (*regio_nozext_writesi): New pattern to write to I/O registers.
2346 (*regio_zext_write_r30<EQS0:mode>): Ditto.
2347 * doc/extend.texi: Document the new PRU Named Address Space.
2349 2021-09-24 Patrick Palka <ppalka@redhat.com>
2353 * real.c (encode_ieee_double): Avoid unwanted sign extension.
2354 (encode_ieee_quad): Likewise.
2356 2021-09-24 Vladimir Makarov <vmakarov@redhat.com>
2358 PR rtl-optimization/102147
2359 * ira-build.c (ira_conflict_vector_profitable_p): Make
2360 profitability calculation independent of host compiler pointer and
2363 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
2365 * gimple-range-path.cc (path_range_query::path_range_query):
2366 Move debugging header...
2367 (path_range_query::precompute_ranges): ...here.
2368 (path_range_query::internal_range_of_expr): Do not call
2369 range_on_path_entry if NAME is defined in the current block.
2371 2021-09-24 Richard Biener <rguenther@suse.de>
2373 * cfghooks.c (verify_flow_info): Verify unallocated BB and
2374 edge flags are not set.
2376 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
2378 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
2380 (jt_path_registry::register_jump_thread): Call
2381 cancel_invalid_paths.
2382 * tree-ssa-threadupdate.h (class jt_path_registry): Add
2383 cancel_invalid_paths.
2385 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
2387 PR tree-optimization/102400
2388 * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize
2389 result_vdef to zero value.
2391 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
2393 PR tree-optimization/102451
2394 * tree-ssa-dse.c (delete_dead_or_redundant_call): Record bb of stmt
2397 2021-09-24 Hongyu Wang <hongyu.wang@intel.com>
2399 * config/i386/sse.md (cond_<insn><mode>): Extend to support
2401 (cond_mul<mode>): Likewise.
2402 (cond_div<mode>): Likewise.
2403 (cond_<code><mode>): Likewise.
2404 (cond_fma<mode>): Likewise.
2405 (cond_fms<mode>): Likewise.
2406 (cond_fnma<mode>): Likewise.
2407 (cond_fnms<mode>): Likewise.
2409 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
2411 PR tree-optimization/102463
2412 * gimple-range-fold.cc (fold_using_range::relation_fold_and_or): If
2413 there is no range-ops handler, don't look for a relation.
2415 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
2417 * gimple-range-cache.cc (ranger_cache::ranger_cache): Take
2418 non-executable_edge flag as parameter.
2419 * gimple-range-cache.h (ranger_cache): Adjust prototype.
2420 * gimple-range-gori.cc (gori_compute::gori_compute): Take
2421 non-executable_edge flag as parameter.
2422 (gori_compute::outgoing_edge_range_p): Check new flag.
2423 * gimple-range-gori.h (gori_compute): Adjust prototype.
2424 * gimple-range.cc (gimple_ranger::gimple_ranger): Create new flag.
2425 (gimple_ranger::range_on_edge): Check new flag.
2426 * gimple-range.h (gimple_ranger::non_executable_edge_flag): New.
2427 * gimple-ssa-evrp.c (rvrp_folder): Pass ranger flag to simplifer.
2428 (hybrid_folder::hybrid_folder): Set ranger non-executable flag value.
2429 (hybrid_folder::fold_stmt): Set flag value in the simplifer.
2430 * vr-values.c (simplify_using_ranges::set_and_propagate_unexecutable):
2431 Use not_executable flag if provided inmstead of EDGE_EXECUTABLE.
2432 (simplify_using_ranges::simplify_switch_using_ranges): Clear
2433 EDGE_EXECUTABLE like it originally did.
2434 (simplify_using_ranges::cleanup_edges_and_switches): Clear any
2435 NON_EXECUTABLE flags.
2436 (simplify_using_ranges::simplify_using_ranges): Adjust.
2437 * vr-values.h (class simplify_using_ranges): Adjust.
2438 (simplify_using_ranges::set_range_query): Add non-executable flag param.
2440 2021-09-23 Bill Schmidt <wschmidt@linux.ibm.com>
2443 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Detect
2444 zero-width bit fields and return indicator.
2445 (rs6000_discover_homogeneous_aggregate): Diagnose when the
2446 presence of a zero-width bit field changes parameter passing in
2449 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
2451 * gimple-range-fold.cc (fold_using_range::range_of_phi):
2452 Remove dominator check.
2454 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
2456 * gimple-range-path.cc (path_range_query::precompute_relations):
2457 Hoist edge calculations before using EDGE_SUCC.
2459 2021-09-23 Jonathan Wakely <jwakely@redhat.com>
2461 * configure.ac: Fix --with-multilib-list description.
2462 * configure: Regenerate.
2464 2021-09-23 Richard Biener <rguenther@suse.de>
2466 PR tree-optimization/102448
2467 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
2468 Clear alignment info copied from DR_PTR_INFO.
2470 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
2472 * config/i386/i386-expand.c (ix86_use_mask_cmp_p): Enable
2474 * config/i386/sse.md (sseintvecmodelower): Add HF vector modes.
2475 (<avx512>_store<mode>_mask): Extend to support HF vector modes.
2476 (vec_cmp<mode><avx512fmaskmodelower>): Likewise.
2477 (vcond_mask_<mode><avx512fmaskmodelower>): Likewise.
2478 (vcond<mode><mode>): New expander.
2479 (vcond<mode><sseintvecmodelower>): Likewise.
2480 (vcond<sseintvecmodelower><mode>): Likewise.
2481 (vcondu<mode><sseintvecmodelower>): Likewise.
2483 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
2485 * config/i386/sse.md (extend<ssePHmodelower><mode>2):
2487 (extendv4hf<mode>2): Likewise.
2488 (extendv2hfv2df2): Likewise.
2489 (trunc<mode><ssePHmodelower>2): Likewise.
2490 (avx512fp16_vcvt<castmode>2ph_<mode>): Rename to ...
2491 (trunc<mode>v4hf2): ... this, and drop constraints.
2492 (avx512fp16_vcvtpd2ph_v2df): Rename to ...
2493 (truncv2dfv2hf2): ... this, and likewise.
2495 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
2497 * config/i386/sse.md (float<floatunssuffix><mode><ssePHmodelower>2):
2499 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>):
2501 (float<floatunssuffix><mode>v4hf2): ... this, and drop constraints.
2502 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Rename to ...
2503 (float<floatunssuffix>v2div2hf2): ... this, and likewise.
2505 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
2507 * config/i386/i386.md (fix<fixunssuffix>_trunchf<mode>2): New expander.
2508 (fixuns_trunchfhi2): Likewise.
2509 (*fixuns_trunchfsi2zext): New define_insn.
2510 * config/i386/sse.md (ssePHmodelower): New mode_attr.
2511 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
2512 New expander for same element vector fix_truncate.
2513 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
2514 Likewise for V4HF to V4SI/V4DI fix_truncate.
2515 (fix<fixunssuffix>_truncv2hfv2di2):
2516 Likeise for V2HF to V2DI fix_truncate.
2518 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
2520 * config/i386/i386.md (<code>hf3): New expander.
2522 2021-09-23 liuhongt <hongtao.liu@intel.com>
2524 * config/i386/sse.md (FMAMODEM): extend to handle FP16.
2525 (VFH_SF_AVX512VL): Extend to handle HFmode.
2526 (VF_SF_AVX512VL): Deleted.
2528 2021-09-23 liuhongt <hongtao.liu@intel.com>
2530 * config/i386/i386.md (rinthf2): New expander.
2531 (nearbyinthf2): New expander.
2533 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
2535 * tree-ssa-dom.c (class dom_jump_threader_simplifier): Rename...
2536 (class dom_jt_state): ...this and provide virtual overrides.
2537 (dom_jt_state::register_equiv): New.
2538 (class dom_jt_simplifier): Rename from
2539 dom_jump_threader_simplifier.
2540 (dom_jump_threader_simplifier::simplify): Rename...
2541 (dom_jt_simplifier::simplify): ...to this.
2542 (pass_dominator::execute): Use dom_jt_simplifier and
2544 * tree-ssa-threadedge.c (jump_threader::jump_threader):
2546 (jt_state::register_equivs_stmt): Abstract out...
2547 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
2549 (jump_threader::thread_around_empty_blocks): Update state.
2550 (jump_threader::thread_through_normal_block): Same.
2551 (jt_state::jt_state): Remove.
2552 (jt_state::push): Remove pass specific bits. Keep block vector
2554 (jt_state::append_path): New.
2555 (jt_state::pop): Remove pass specific bits.
2556 (jt_state::register_equiv): Same.
2557 (jt_state::record_ranges_from_stmt): Same.
2558 (jt_state::register_equivs_on_edge): Same. Rename...
2559 (jt_state::register_equivs_edge): ...to this.
2560 (jt_state::dump): New.
2561 (jt_state::debug): New.
2562 (jump_threader_simplifier::simplify): Remove.
2563 (jt_state::get_path): New.
2564 * tree-ssa-threadedge.h (class jt_simplifier): Make into a base
2565 class. Expose common functionality as virtual methods.
2566 (class jump_threader_simplifier): Same. Rename...
2567 (class jt_simplifier): ...to this.
2568 * tree-vrp.c (class vrp_jump_threader_simplifier): Rename...
2569 (class vrp_jt_simplifier): ...to this. Provide pass specific
2571 (class vrp_jt_state): New.
2572 (vrp_jump_threader_simplifier::simplify): Rename...
2573 (vrp_jt_simplifier::simplify): ...to this. Inline code from
2574 what used to be the base class.
2575 (vrp_jump_threader::vrp_jump_threader): Use vrp_jt_state and
2578 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
2581 * doc/invoke.texi (-Wno-missing-include-dirs.): Document Fortran
2584 2021-09-22 Roger Sayle <roger@nextmovesoftware.com>
2585 Richard Biener <rguenther@suse.de>
2587 * match.pd (negation simplifications): Implement some negation
2588 folding transformations from fold-const.c's fold_negate_expr.
2589 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Add a SIMPLIFY
2590 argument, to control whether the op should be simplified prior
2591 to looking up/assigning a value number.
2592 (vn_nary_build_or_lookup): Update call to vn_nary_build_or_lookup_1.
2593 (vn_nary_simplify): Likewise.
2594 (visit_nary_op): Likewise, but when constructing a NEGATE_EXPR
2595 now call vn_nary_build_or_lookup_1 disabling simplification.
2597 2021-09-22 Jiufu Guo <guojiufu@linux.ibm.com>
2599 PR tree-optimization/102087
2600 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
2601 Update bound/cmp/control for niter.
2603 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
2605 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
2606 Move check for non-empty BB here.
2607 (fur_source::register_outgoing_edges): ...from here.
2609 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
2611 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
2612 Remove call to improve_range_with_equivs.
2613 (path_range_query::improve_range_with_equivs): Remove
2614 * gimple-range-path.h: Remove improve_range_with_equivs.
2616 2021-09-22 dianhong xu <dianhong.xu@intel.com>
2618 * config/i386/avx512fp16intrin.h:
2619 (_mm512_mask_blend_ph): New intrinsic.
2620 (_mm512_permutex2var_ph): Ditto.
2621 (_mm512_permutexvar_ph): Ditto.
2622 * config/i386/avx512fp16vlintrin.h:
2623 (_mm256_mask_blend_ph): New intrinsic.
2624 (_mm256_permutex2var_ph): Ditto.
2625 (_mm256_permutexvar_ph): Ditto.
2626 (_mm_mask_blend_ph): Ditto.
2627 (_mm_permutex2var_ph): Ditto.
2628 (_mm_permutexvar_ph): Ditto.
2630 2021-09-22 dianhong xu <dianhong.xu@intel.com>
2632 * config/i386/avx512fp16intrin.h: Add new intrinsics.
2633 (_mm512_conj_pch): New intrinsic.
2634 (_mm512_mask_conj_pch): Ditto.
2635 (_mm512_maskz_conj_pch): Ditto.
2636 * config/i386/avx512fp16vlintrin.h: Add new intrinsics.
2637 (_mm256_conj_pch): New intrinsic.
2638 (_mm256_mask_conj_pch): Ditto.
2639 (_mm256_maskz_conj_pch): Ditto.
2640 (_mm_conj_pch): Ditto.
2641 (_mm_mask_conj_pch): Ditto.
2642 (_mm_maskz_conj_pch): Ditto.
2644 2021-09-22 dianhong xu <dianhong.xu@intel.com>
2646 * config/i386/avx512fp16intrin.h (_MM512_REDUCE_OP): New macro
2647 (_mm512_reduce_add_ph): New intrinsic.
2648 (_mm512_reduce_mul_ph): Ditto.
2649 (_mm512_reduce_min_ph): Ditto.
2650 (_mm512_reduce_max_ph): Ditto.
2651 * config/i386/avx512fp16vlintrin.h
2652 (_MM256_REDUCE_OP/_MM_REDUCE_OP): New macro.
2653 (_mm256_reduce_add_ph): New intrinsic.
2654 (_mm256_reduce_mul_ph): Ditto.
2655 (_mm256_reduce_min_ph): Ditto.
2656 (_mm256_reduce_max_ph): Ditto.
2657 (_mm_reduce_add_ph): Ditto.
2658 (_mm_reduce_mul_ph): Ditto.
2659 (_mm_reduce_min_ph): Ditto.
2660 (_mm_reduce_max_ph): Ditto.
2662 2021-09-22 dianhong xu <dianhong.xu@intel.com>
2664 * config/i386/avx512fp16intrin.h (__m512h_u, __m256h_u,
2665 __m128h_u): New typedef.
2666 (_mm512_load_ph): New intrinsic.
2667 (_mm256_load_ph): Ditto.
2668 (_mm_load_ph): Ditto.
2669 (_mm512_loadu_ph): Ditto.
2670 (_mm256_loadu_ph): Ditto.
2671 (_mm_loadu_ph): Ditto.
2672 (_mm512_store_ph): Ditto.
2673 (_mm256_store_ph): Ditto.
2674 (_mm_store_ph): Ditto.
2675 (_mm512_storeu_ph): Ditto.
2676 (_mm256_storeu_ph): Ditto.
2677 (_mm_storeu_ph): Ditto.
2678 (_mm512_abs_ph): Ditto.
2679 * config/i386/avx512fp16vlintrin.h
2680 (_mm_abs_ph): Ditto.
2681 (_mm256_abs_ph): Ditto.
2683 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
2685 * config/s390/tpf.md (prologue_tpf, epilogue_tpf): Add cc clobber.
2687 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
2690 * config/s390/s390.c (s390_expand_insv): Emit a normal move if it
2691 is actually a full copy of the source operand into the target.
2692 Don't emit a strict low part move if source and target mode match.
2694 2021-09-22 Jakub Jelinek <jakub@redhat.com>
2696 PR middle-end/102415
2697 * omp-expand.c (expand_omp_single): If region->exit is NULL,
2698 assert region->entry is GIMPLE_OMP_SCOPE region and return.
2700 2021-09-22 Jakub Jelinek <jakub@redhat.com>
2702 * tree.h (OMP_CLAUSE_ALLOCATE_ALIGN): Define.
2703 * tree.c (omp_clause_num_ops): Change number of OMP_CLAUSE_ALLOCATE
2704 arguments from 2 to 3.
2705 * tree-pretty-print.c (dump_omp_clause): Print allocator() around
2706 allocate clause allocator and print align if present.
2707 * omp-low.c (scan_sharing_clauses): Force allocate_map entry even
2708 for omp_default_mem_alloc if align modifier is present. If align
2709 modifier is present, use TREE_LIST to encode both allocator and
2711 (lower_private_allocate, lower_rec_input_clauses, create_task_copyfn):
2712 Handle align modifier on allocator clause if present.
2714 2021-09-22 liuhongt <hongtao.liu@intel.com>
2716 * config/i386/i386.md (define_attr "isa"): Add
2718 (define_attr "enabled"): Correspond fma_or_avx512vl to
2719 TARGET_FMA || TARGET_AVX512VL.
2720 * config/i386/mmx.md (fmav2sf4): Extend to AVX512 fma.
2725 2021-09-22 liuhongt <hongtao.liu@intel.com>
2727 * config/i386/i386.md (cstorehf3): New define_expand.
2729 2021-09-22 liuhongt <hongtao.liu@intel.com>
2731 * config/i386/i386.md (<rounding_insn>hf2): New expander.
2732 (sse4_1_round<mode>2): Extend from MODEF to MODEFH.
2733 * config/i386/sse.md (*sse4_1_round<ssescalarmodesuffix>):
2734 Extend from VF_128 to VFH_128.
2736 2021-09-22 liuhongt <hongtao.liu@intel.com>
2738 * config/i386/i386-features.c (i386-features.c): Handle
2740 * config/i386/i386.md (sqrthf2): New expander.
2741 (*sqrthf2): New define_insn.
2742 * config/i386/sse.md
2743 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
2746 2021-09-22 liuhongt <hongtao.liu@intel.com>
2748 * config/i386/avx512fp16intrin.h (_mm_mask_fcmadd_sch):
2750 (_mm_mask3_fcmadd_sch): Likewise.
2751 (_mm_maskz_fcmadd_sch): Likewise.
2752 (_mm_fcmadd_sch): Likewise.
2753 (_mm_mask_fmadd_sch): Likewise.
2754 (_mm_mask3_fmadd_sch): Likewise.
2755 (_mm_maskz_fmadd_sch): Likewise.
2756 (_mm_fmadd_sch): Likewise.
2757 (_mm_mask_fcmadd_round_sch): Likewise.
2758 (_mm_mask3_fcmadd_round_sch): Likewise.
2759 (_mm_maskz_fcmadd_round_sch): Likewise.
2760 (_mm_fcmadd_round_sch): Likewise.
2761 (_mm_mask_fmadd_round_sch): Likewise.
2762 (_mm_mask3_fmadd_round_sch): Likewise.
2763 (_mm_maskz_fmadd_round_sch): Likewise.
2764 (_mm_fmadd_round_sch): Likewise.
2765 (_mm_fcmul_sch): Likewise.
2766 (_mm_mask_fcmul_sch): Likewise.
2767 (_mm_maskz_fcmul_sch): Likewise.
2768 (_mm_fmul_sch): Likewise.
2769 (_mm_mask_fmul_sch): Likewise.
2770 (_mm_maskz_fmul_sch): Likewise.
2771 (_mm_fcmul_round_sch): Likewise.
2772 (_mm_mask_fcmul_round_sch): Likewise.
2773 (_mm_maskz_fcmul_round_sch): Likewise.
2774 (_mm_fmul_round_sch): Likewise.
2775 (_mm_mask_fmul_round_sch): Likewise.
2776 (_mm_maskz_fmul_round_sch): Likewise.
2777 * config/i386/i386-builtin.def: Add corresponding new builtins.
2778 * config/i386/sse.md
2779 (avx512fp16_fmaddcsh_v8hf_maskz<round_expand_name>): New expander.
2780 (avx512fp16_fcmaddcsh_v8hf_maskz<round_expand_name>): Ditto.
2781 (avx512fp16_fma_<complexopname>sh_v8hf<mask_scalarcz_name><round_scalarcz_name>):
2783 (avx512fp16_<complexopname>sh_v8hf_mask<round_name>): Ditto.
2784 (avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>):
2786 * config/i386/subst.md (mask_scalarcz_name): New.
2787 (mask_scalarc_name): Ditto.
2788 (mask_scalarc_operand3): Ditto.
2789 (mask_scalarcz_operand4): Ditto.
2790 (round_scalarcz_name): Ditto.
2791 (round_scalarc_mask_operand3): Ditto.
2792 (round_scalarcz_mask_operand4): Ditto.
2793 (round_scalarc_mask_op3): Ditto.
2794 (round_scalarcz_mask_op4): Ditto.
2795 (round_scalarcz_constraint): Ditto.
2796 (round_scalarcz_nimm_predicate): Ditto.
2797 (mask_scalarcz): Ditto.
2798 (mask_scalarc): Ditto.
2799 (round_scalarcz): Ditto.
2801 2021-09-22 liuhongt <hongtao.liu@intel.com>
2803 * config/i386/avx512fp16intrin.h (_mm512_fcmadd_pch):
2805 (_mm512_mask_fcmadd_pch): Likewise.
2806 (_mm512_mask3_fcmadd_pch): Likewise.
2807 (_mm512_maskz_fcmadd_pch): Likewise.
2808 (_mm512_fmadd_pch): Likewise.
2809 (_mm512_mask_fmadd_pch): Likewise.
2810 (_mm512_mask3_fmadd_pch): Likewise.
2811 (_mm512_maskz_fmadd_pch): Likewise.
2812 (_mm512_fcmadd_round_pch): Likewise.
2813 (_mm512_mask_fcmadd_round_pch): Likewise.
2814 (_mm512_mask3_fcmadd_round_pch): Likewise.
2815 (_mm512_maskz_fcmadd_round_pch): Likewise.
2816 (_mm512_fmadd_round_pch): Likewise.
2817 (_mm512_mask_fmadd_round_pch): Likewise.
2818 (_mm512_mask3_fmadd_round_pch): Likewise.
2819 (_mm512_maskz_fmadd_round_pch): Likewise.
2820 (_mm512_fcmul_pch): Likewise.
2821 (_mm512_mask_fcmul_pch): Likewise.
2822 (_mm512_maskz_fcmul_pch): Likewise.
2823 (_mm512_fmul_pch): Likewise.
2824 (_mm512_mask_fmul_pch): Likewise.
2825 (_mm512_maskz_fmul_pch): Likewise.
2826 (_mm512_fcmul_round_pch): Likewise.
2827 (_mm512_mask_fcmul_round_pch): Likewise.
2828 (_mm512_maskz_fcmul_round_pch): Likewise.
2829 (_mm512_fmul_round_pch): Likewise.
2830 (_mm512_mask_fmul_round_pch): Likewise.
2831 (_mm512_maskz_fmul_round_pch): Likewise.
2832 * config/i386/avx512fp16vlintrin.h (_mm_fmadd_pch):
2834 (_mm_mask_fmadd_pch): Likewise.
2835 (_mm_mask3_fmadd_pch): Likewise.
2836 (_mm_maskz_fmadd_pch): Likewise.
2837 (_mm256_fmadd_pch): Likewise.
2838 (_mm256_mask_fmadd_pch): Likewise.
2839 (_mm256_mask3_fmadd_pch): Likewise.
2840 (_mm256_maskz_fmadd_pch): Likewise.
2841 (_mm_fcmadd_pch): Likewise.
2842 (_mm_mask_fcmadd_pch): Likewise.
2843 (_mm_mask3_fcmadd_pch): Likewise.
2844 (_mm_maskz_fcmadd_pch): Likewise.
2845 (_mm256_fcmadd_pch): Likewise.
2846 (_mm256_mask_fcmadd_pch): Likewise.
2847 (_mm256_mask3_fcmadd_pch): Likewise.
2848 (_mm256_maskz_fcmadd_pch): Likewise.
2849 (_mm_fmul_pch): Likewise.
2850 (_mm_mask_fmul_pch): Likewise.
2851 (_mm_maskz_fmul_pch): Likewise.
2852 (_mm256_fmul_pch): Likewise.
2853 (_mm256_mask_fmul_pch): Likewise.
2854 (_mm256_maskz_fmul_pch): Likewise.
2855 (_mm_fcmul_pch): Likewise.
2856 (_mm_mask_fcmul_pch): Likewise.
2857 (_mm_maskz_fcmul_pch): Likewise.
2858 (_mm256_fcmul_pch): Likewise.
2859 (_mm256_mask_fcmul_pch): Likewise.
2860 (_mm256_maskz_fcmul_pch): Likewise.
2861 * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF_V8HF_V8HF,
2862 V8HF_FTYPE_V16HF_V16HF_V16HF, V16HF_FTYPE_V16HF_V16HF_V16HF_UQI,
2863 V32HF_FTYPE_V32HF_V32HF_V32HF_INT,
2864 V32HF_FTYPE_V32HF_V32HF_V32HF_UHI_INT): Add new builtin types.
2865 * config/i386/i386-builtin.def: Add new builtins.
2866 * config/i386/i386-expand.c: Handle new builtin types.
2867 * config/i386/subst.md (SUBST_CV): New.
2868 (maskc_name): Ditto.
2869 (maskc_operand3): Ditto.
2871 (sdc_maskz_name): Ditto.
2872 (sdc_mask_op4): Ditto.
2873 (sdc_mask_op5): Ditto.
2874 (sdc_mask_mode512bit_condition): Ditto.
2876 (round_maskc_operand3): Ditto.
2877 (round_sdc_mask_operand4): Ditto.
2878 (round_maskc_op3): Ditto.
2879 (round_sdc_mask_op4): Ditto.
2880 (round_saeonly_sdc_mask_operand5): Ditto.
2881 * config/i386/sse.md (unspec): Add complex fma unspecs.
2882 (avx512fmaskcmode): New.
2883 (UNSPEC_COMPLEX_F_C_MA): Ditto.
2884 (UNSPEC_COMPLEX_F_C_MUL): Ditto.
2885 (complexopname): Ditto.
2886 (<avx512>_fmaddc_<mode>_maskz<round_expand_name>): New expander.
2887 (<avx512>_fcmaddc_<mode>_maskz<round_expand_name>): Ditto.
2888 (fma_<complexopname>_<mode><sdc_maskz_name><round_name>): New
2890 (<avx512>_<complexopname>_<mode>_mask<round_name>): Ditto.
2891 (<avx512>_<complexopname>_<mode><maskc_name><round_name>): Ditto.
2893 2021-09-22 Kewen Lin <linkw@linux.ibm.com>
2895 * config/rs6000/rs6000.opt (rs6000-density-pct-threshold,
2896 rs6000-density-size-threshold, rs6000-density-penalty,
2897 rs6000-density-load-pct-threshold,
2898 rs6000-density-load-num-threshold): New parameter.
2899 * config/rs6000/rs6000.c (rs6000_density_test): Adjust with
2900 corresponding parameters.
2902 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
2904 * gimple-range-path.cc (path_range_query::defined_outside_path):
2906 (path_range_query::range_on_path_entry): New.
2907 (path_range_query::internal_range_of_expr): Resolve unknowns
2909 (path_range_query::improve_range_with_equivs): New.
2910 (path_range_query::ssa_range_in_phi): Resolve unknowns with
2912 * gimple-range-path.h (class path_range_query): Add
2913 defined_outside_path, range_on_path_entry, and
2914 improve_range_with_equivs.
2916 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
2918 * gimple-range-path.cc (path_range_query::add_to_imports): New.
2919 (path_range_query::add_copies_to_imports): New.
2920 (path_range_query::precompute_ranges): Call
2921 add_copies_to_imports.
2922 * gimple-range-path.h (class path_range_query): Add prototypes
2923 for add_copies_to_imports and add_to_imports.
2925 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
2927 * gimple-range-path.cc (path_range_query::range_defined_in_block):
2928 Remove useless code.
2930 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
2932 * gimple-range-fold.h (class fur_source): Make oracle protected.
2933 * gimple-range-path.cc (path_range_query::path_range_query): Add
2934 resolve argument. Initialize oracle.
2935 (path_range_query::~path_range_query): Delete oracle.
2936 (path_range_query::range_of_stmt): Adapt to use relations.
2937 (path_range_query::precompute_ranges): Pre-compute relations.
2938 (class jt_fur_source): New
2939 (jt_fur_source::jt_fur_source): New.
2940 (jt_fur_source::register_relation): New.
2941 (jt_fur_source::query_relation): New.
2942 (path_range_query::precompute_relations): New.
2943 (path_range_query::precompute_phi_relations): New.
2944 * gimple-range-path.h (path_range_query): Add resolve argument.
2945 Add oracle, precompute_relations, precompute_phi_relations.
2946 * tree-ssa-threadbackward.c (back_threader::back_threader): Pass
2947 resolve argument to solver.
2949 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
2951 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
2952 Rename postfold_gcond_edges to register_outgoing_edges and
2954 (fold_using_range::postfold_gcond_edges): Rename...
2955 (fur_source::register_outgoing_edges): ...to this.
2956 * gimple-range-fold.h (postfold_gcond_edges): Rename to
2957 register_outgoing_edges and move to fur_source.
2959 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
2961 * gimple-range-fold.cc (fold_using_range::range_of_phi): Check
2962 dom_info_available_p.
2964 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
2966 * gimple-range-cache.cc (non_null_ref::non_null_ref): Use create
2967 and quick_grow_cleared instead of safe_grow_cleared.
2969 2021-09-21 Thomas Schwinge <thomas@codesourcery.com>
2972 * omp-oacc-neuter-broadcast.cc (oacc_do_neutering): Evaluate
2975 2021-09-21 Richard Earnshaw <rearnsha@arm.com>
2977 * configure.ac: Detect when the assembler supports new-style
2978 architecture extensions.
2979 * common/config/arm/arm-common.c (arm_rewrite_mcpu): Return
2980 the full CPU string if the assembler can grok it.
2981 (arm_rewrite_march): Likewise but for the architecture.
2982 * config.in: Regenerate.
2983 * configure: Regenerate.
2985 2021-09-21 Richard Biener <rguenther@suse.de>
2987 PR tree-optimization/102421
2988 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Copy and
2989 adjust alignment info.
2991 2021-09-21 Kewen Lin <linkw@linux.ibm.com>
2993 * ipa-fnsummary.c (ipa_fn_summary_write): Remove inconsistent
2994 bitfield stream out.
2996 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
2998 * gimple-range-fold.cc (fold_using_range::range_of_phi): Ignore
2999 undefined edges, apply an equivalence if appropriate.
3000 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Return
3001 UNDEFINED if EDGE_EXECUTABLE is not set.
3002 * gimple-range.cc (gimple_ranger::gimple_ranger): Set all edges
3003 as EXECUTABLE upon startup.
3004 (gimple_ranger::range_on_edge): Return UNDEFINED for edges without
3005 EDGE_EXECUTABLE set.
3006 * vr-values.c (set_and_propagate_unexecutable): New.
3007 (simplify_using_ranges::fold_cond): Call set_and_propagate.
3008 (simplify_using_ranges::simplify_switch_using_ranges): Ditto.
3009 * vr-values.h: Add prototype.
3011 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
3013 * value-relation.cc (equiv_oracle::register_initial_def): New.
3014 (equiv_oracle::register_relation): Call register_initial_def.
3015 (equiv_oracle::add_equiv_to_block): New. Split register_relation.
3016 (relation_oracle::register_stmt): Check def block of PHI arguments.
3017 * value-relation.h (equiv_oracle): Add new prototypes.
3019 2021-09-20 Matthias Kretz <m.kretz@gsi.de>
3021 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
3022 Define __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
3023 __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
3024 __ROUNDING_MATH__ according to their corresponding flags.
3025 * doc/cpp.texi: Document __RECIPROCAL_MATH__,
3026 __NO_SIGNED_ZEROS__, __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__,
3027 and __ROUNDING_MATH__.
3029 2021-09-20 Richard Biener <rguenther@suse.de>
3031 * tree-vect-stmts.c (vectorizable_load): Use the vectype
3034 2021-09-20 Richard Biener <rguenther@suse.de>
3036 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
3037 Do not compute alignment of the vectorized access here.
3039 2021-09-20 Richard Biener <rguenther@suse.de>
3041 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3042 Store -1 for runtime alias peeling iterations.
3044 2021-09-20 Richard Biener <rguenther@suse.de>
3046 * config.gcc: Obsolete hppa[12]*-*-hpux10* and hppa[12]*-*-hpux11*.
3048 2021-09-20 Thomas Schwinge <thomas@codesourcery.com>
3050 * input.c (string_concat_db::record_string_concatenation)
3051 (string_concat_db::get_string_concatenation): Skip for
3052 'RESERVED_LOCATION_P'.
3054 2021-09-20 Richard Biener <rguenther@suse.de>
3056 PR tree-optimization/65206
3057 * tree-data-ref.h (struct data_reference): Add alt_indices,
3059 * tree-data-ref.c (free_data_ref): Release alt_indices.
3060 (dr_analyze_indices): Work on struct indices and get DR_REF as tree.
3061 (create_data_ref): Adjust.
3062 (initialize_data_dependence_relation): Split into head
3063 and tail. When the base objects fail to match up try
3064 again with pointer-based analysis of indices.
3065 * tree-vectorizer.c (vec_info_shared::check_datarefs): Do
3066 not compare the lazily computed alternate set of indices.
3068 2021-09-20 Iain Sandoe <iain@sandoe.co.uk>
3070 * gcc.c: Test for execute OK when we find the
3071 programs for assembler linker and dsymutil and those
3072 were specified at configure-time.
3074 2021-09-19 Martin Sebor <msebor@redhat.com>
3076 PR middle-end/102403
3077 * gimple-predicate-analysis.cc (predicate::init_from_control_deps):
3078 Correct a function pre/postcondition.
3080 2021-09-19 Martin Sebor <msebor@redhat.com>
3082 PR middle-end/102243
3083 * tree-ssa-strlen.c (get_range): Handle null cfun.
3085 2021-09-19 Iain Sandoe <iain@sandoe.co.uk>
3087 * config/darwin.h (LINK_COMMAND_SPEC_A): Use Darwin10
3088 unwinder shim as a convenience library.
3090 2021-09-19 Andrew Pinski <apinski@marvell.com>
3092 * doc/install.texi: Add note about
3093 binutils 2.35 is required for LTO usage.
3095 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
3097 * tree-ssa-threadbackward.c
3098 (back_threader_registry::register_path): Use push_edge.
3099 * tree-ssa-threadedge.c
3100 (jump_threader::thread_around_empty_blocks): Same.
3101 (jump_threader::thread_through_normal_block): Same.
3102 (jump_threader::thread_across_edge): Same. Also, use auto_bitmap.
3104 * tree-ssa-threadupdate.c
3105 (jt_path_registry::allocate_thread_edge): Remove.
3106 (jt_path_registry::push_edge): New.
3107 (dump_jump_thread_path): Make static.
3108 * tree-ssa-threadupdate.h (allocate_thread_edge): Remove.
3111 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
3113 * gimple-range-path.cc (path_range_query::path_range_query): Add
3115 (path_range_query::dump): Remove extern declaration of dump_ranger.
3116 * gimple-range-trace.cc (dump_ranger): Add DEBUG_FUNCTION marker.
3117 * gimple-range-trace.h (dump_ranger): Add prototype.
3119 2021-09-19 John Ericson <git@JohnEricson.me>
3121 * gcc.c (find_a_program): New function, factored out of...
3122 (find_a_file): Here.
3123 (execute): Use find_a_program when looking for programs rather
3126 2021-09-19 Matwey V. Kornilov <matwey.kornilov@gmail.com>
3128 * config/avr/avr-mcus.def: Add atmega324pb.
3129 * doc/avr-mmcu.texi: Corresponding changes.
3131 2021-09-19 Roger Sayle <roger@nextmovesoftware.com>
3134 * match.pd (cmp @0 REAL_CST@1): When @0 is also REAL_CST, apply
3135 the same transformations as to @1. For comparisons against NaN,
3136 don't check HONOR_SNANS but confirm that neither operand is a
3139 2021-09-19 Benjamin Peterson <benjamin@locrian.net>
3141 * attribs.c (make_unique_name): Delete.
3142 * attribs.h (make_unique_name): Delete.
3144 2021-09-19 Andrew Pinski <apinski@marvell.com>
3146 * lra-constraints.c (check_and_process_move): Assert
3147 that dclass and sclass are greater than or equal to NO_REGS.
3149 2021-09-18 Jakub Jelinek <jakub@redhat.com>
3151 * tree.h (OMP_CLAUSE_ORDER_UNCONSTRAINED): Define.
3152 * tree-pretty-print.c (dump_omp_clause): Print unconstrained:
3153 for OMP_CLAUSE_ORDER_UNCONSTRAINED.
3155 2021-09-18 liuhongt <hongtao.liu@intel.com>
3157 * config/i386/i386-features.c (remove_partial_avx_dependency):
3158 Restrict TARGET_USE_VECTOR_FP_CONVERTS and
3159 TARGET_USE_VECTOR_CONVERTS to conversion instructions only.
3161 2021-09-18 Jakub Jelinek <jakub@redhat.com>
3163 * gimplify.c (omp_default_clause): For C/C++ default({,first}private),
3164 if file/namespace scope variable doesn't have predetermined sharing,
3165 treat it as if there was default(none).
3167 2021-09-18 liuhongt <hongtao.liu@intel.com>
3169 * config/i386/avx512fp16intrin.h (_mm_fmadd_sh):
3171 (_mm_mask_fmadd_sh): Likewise.
3172 (_mm_mask3_fmadd_sh): Likewise.
3173 (_mm_maskz_fmadd_sh): Likewise.
3174 (_mm_fmadd_round_sh): Likewise.
3175 (_mm_mask_fmadd_round_sh): Likewise.
3176 (_mm_mask3_fmadd_round_sh): Likewise.
3177 (_mm_maskz_fmadd_round_sh): Likewise.
3178 (_mm_fnmadd_sh): Likewise.
3179 (_mm_mask_fnmadd_sh): Likewise.
3180 (_mm_mask3_fnmadd_sh): Likewise.
3181 (_mm_maskz_fnmadd_sh): Likewise.
3182 (_mm_fnmadd_round_sh): Likewise.
3183 (_mm_mask_fnmadd_round_sh): Likewise.
3184 (_mm_mask3_fnmadd_round_sh): Likewise.
3185 (_mm_maskz_fnmadd_round_sh): Likewise.
3186 (_mm_fmsub_sh): Likewise.
3187 (_mm_mask_fmsub_sh): Likewise.
3188 (_mm_mask3_fmsub_sh): Likewise.
3189 (_mm_maskz_fmsub_sh): Likewise.
3190 (_mm_fmsub_round_sh): Likewise.
3191 (_mm_mask_fmsub_round_sh): Likewise.
3192 (_mm_mask3_fmsub_round_sh): Likewise.
3193 (_mm_maskz_fmsub_round_sh): Likewise.
3194 (_mm_fnmsub_sh): Likewise.
3195 (_mm_mask_fnmsub_sh): Likewise.
3196 (_mm_mask3_fnmsub_sh): Likewise.
3197 (_mm_maskz_fnmsub_sh): Likewise.
3198 (_mm_fnmsub_round_sh): Likewise.
3199 (_mm_mask_fnmsub_round_sh): Likewise.
3200 (_mm_mask3_fnmsub_round_sh): Likewise.
3201 (_mm_maskz_fnmsub_round_sh): Likewise.
3202 * config/i386/i386-builtin-types.def
3203 (V8HF_FTYPE_V8HF_V8HF_V8HF_UQI_INT): New builtin type.
3204 * config/i386/i386-builtin.def: Add new builtins.
3205 * config/i386/i386-expand.c: Handle new builtin type.
3206 * config/i386/sse.md (fmai_vmfmadd_<mode><round_name>):
3207 Ajdust to support FP16.
3208 (fmai_vmfmsub_<mode><round_name>): Ditto.
3209 (fmai_vmfnmadd_<mode><round_name>): Ditto.
3210 (fmai_vmfnmsub_<mode><round_name>): Ditto.
3211 (*fmai_fmadd_<mode>): Ditto.
3212 (*fmai_fmsub_<mode>): Ditto.
3213 (*fmai_fnmadd_<mode><round_name>): Ditto.
3214 (*fmai_fnmsub_<mode><round_name>): Ditto.
3215 (avx512f_vmfmadd_<mode>_mask<round_name>): Ditto.
3216 (avx512f_vmfmadd_<mode>_mask3<round_name>): Ditto.
3217 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): Ditto.
3218 (avx512f_vmfmadd_<mode>_maskz_1<round_name>): Ditto.
3219 (*avx512f_vmfmsub_<mode>_mask<round_name>): Ditto.
3220 (avx512f_vmfmsub_<mode>_mask3<round_name>): Ditto.
3221 (*avx512f_vmfmsub_<mode>_maskz_1<round_name>): Ditto.
3222 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
3223 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): Ditto.
3224 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
3225 (*avx512f_vmfnmadd_<mode>_mask<round_name>): Renamed to ...
3226 (avx512f_vmfnmadd_<mode>_mask<round_name>) ... this, and
3227 adjust to support FP16.
3228 (avx512f_vmfnmadd_<mode>_mask3<round_name>): Ditto.
3229 (avx512f_vmfnmadd_<mode>_maskz_1<round_name>): Ditto.
3230 (avx512f_vmfnmadd_<mode>_maskz<round_expand_name>): New
3233 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
3235 * config/i386/sse.md (avx512fmaskmodelower): Extend to support
3237 (maskload<mode><avx512fmaskmodelower>): Ditto.
3238 (maskstore<mode><avx512fmaskmodelower>): Ditto.
3240 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
3242 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
3244 (ix86_expand_copysign): Ditto.
3245 (ix86_expand_xorsign): Ditto.
3246 * config/i386/i386.c (ix86_build_const_vector): Handle HF vector
3248 (ix86_build_signbit_mask): Ditto.
3249 (ix86_can_change_mode_class): Ditto.
3250 * config/i386/i386.md
3251 (SSEMODEF): Add HFmode.
3252 (ssevecmodef): Ditto.
3253 (<code>hf2): New define_expand.
3254 (*<code>hf2_1): New define_insn_and_split.
3255 (copysign<mode>): Extend to support HFmode under AVX512FP16.
3256 (xorsign<mode>): Ditto.
3257 * config/i386/sse.md (VFB): New mode iterator.
3258 (VFB_128_256): Ditto.
3260 (sseintvecmode2): Support HF vector mode.
3261 (<code><mode>2): Use new mode iterator.
3262 (*<code><mode>2): Ditto.
3263 (copysign<mode>3): Ditto.
3264 (xorsign<mode>3): Ditto.
3265 (<code><mode>3<mask_name>): Ditto.
3266 (<code><mode>3<mask_name>): Ditto.
3267 (<sse>_andnot<mode>3<mask_name>): Adjust for HF vector mode.
3268 (<sse>_andnot<mode>3<mask_name>): Ditto.
3269 (*<code><mode>3<mask_name>): Ditto.
3270 (*<code><mode>3<mask_name>): Ditto.
3272 2021-09-18 liuhongt <hongtao.liu@intel.com>
3274 * config/i386/avx512fp16intrin.h (_mm512_mask_fmadd_ph):
3276 (_mm512_mask3_fmadd_ph): Likewise.
3277 (_mm512_maskz_fmadd_ph): Likewise.
3278 (_mm512_fmadd_round_ph): Likewise.
3279 (_mm512_mask_fmadd_round_ph): Likewise.
3280 (_mm512_mask3_fmadd_round_ph): Likewise.
3281 (_mm512_maskz_fmadd_round_ph): Likewise.
3282 (_mm512_fnmadd_ph): Likewise.
3283 (_mm512_mask_fnmadd_ph): Likewise.
3284 (_mm512_mask3_fnmadd_ph): Likewise.
3285 (_mm512_maskz_fnmadd_ph): Likewise.
3286 (_mm512_fnmadd_round_ph): Likewise.
3287 (_mm512_mask_fnmadd_round_ph): Likewise.
3288 (_mm512_mask3_fnmadd_round_ph): Likewise.
3289 (_mm512_maskz_fnmadd_round_ph): Likewise.
3290 (_mm512_fmsub_ph): Likewise.
3291 (_mm512_mask_fmsub_ph): Likewise.
3292 (_mm512_mask3_fmsub_ph): Likewise.
3293 (_mm512_maskz_fmsub_ph): Likewise.
3294 (_mm512_fmsub_round_ph): Likewise.
3295 (_mm512_mask_fmsub_round_ph): Likewise.
3296 (_mm512_mask3_fmsub_round_ph): Likewise.
3297 (_mm512_maskz_fmsub_round_ph): Likewise.
3298 (_mm512_fnmsub_ph): Likewise.
3299 (_mm512_mask_fnmsub_ph): Likewise.
3300 (_mm512_mask3_fnmsub_ph): Likewise.
3301 (_mm512_maskz_fnmsub_ph): Likewise.
3302 (_mm512_fnmsub_round_ph): Likewise.
3303 (_mm512_mask_fnmsub_round_ph): Likewise.
3304 (_mm512_mask3_fnmsub_round_ph): Likewise.
3305 (_mm512_maskz_fnmsub_round_ph): Likewise.
3306 * config/i386/avx512fp16vlintrin.h (_mm256_fmadd_ph):
3308 (_mm256_mask_fmadd_ph): Likewise.
3309 (_mm256_mask3_fmadd_ph): Likewise.
3310 (_mm256_maskz_fmadd_ph): Likewise.
3311 (_mm_fmadd_ph): Likewise.
3312 (_mm_mask_fmadd_ph): Likewise.
3313 (_mm_mask3_fmadd_ph): Likewise.
3314 (_mm_maskz_fmadd_ph): Likewise.
3315 (_mm256_fnmadd_ph): Likewise.
3316 (_mm256_mask_fnmadd_ph): Likewise.
3317 (_mm256_mask3_fnmadd_ph): Likewise.
3318 (_mm256_maskz_fnmadd_ph): Likewise.
3319 (_mm_fnmadd_ph): Likewise.
3320 (_mm_mask_fnmadd_ph): Likewise.
3321 (_mm_mask3_fnmadd_ph): Likewise.
3322 (_mm_maskz_fnmadd_ph): Likewise.
3323 (_mm256_fmsub_ph): Likewise.
3324 (_mm256_mask_fmsub_ph): Likewise.
3325 (_mm256_mask3_fmsub_ph): Likewise.
3326 (_mm256_maskz_fmsub_ph): Likewise.
3327 (_mm_fmsub_ph): Likewise.
3328 (_mm_mask_fmsub_ph): Likewise.
3329 (_mm_mask3_fmsub_ph): Likewise.
3330 (_mm_maskz_fmsub_ph): Likewise.
3331 (_mm256_fnmsub_ph): Likewise.
3332 (_mm256_mask_fnmsub_ph): Likewise.
3333 (_mm256_mask3_fnmsub_ph): Likewise.
3334 (_mm256_maskz_fnmsub_ph): Likewise.
3335 (_mm_fnmsub_ph): Likewise.
3336 (_mm_mask_fnmsub_ph): Likewise.
3337 (_mm_mask3_fnmsub_ph): Likewise.
3338 (_mm_maskz_fnmsub_ph): Likewise.
3339 * config/i386/i386-builtin.def: Add corresponding new builtins.
3340 * config/i386/sse.md
3341 (<avx512>_fmadd_<mode>_maskz<round_expand_name>): Adjust to
3342 support HF vector modes.
3343 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
3345 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
3346 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
3347 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
3348 (<avx512>_fmadd_<mode>_mask<round_name>): Ditto.
3349 (<avx512>_fmadd_<mode>_mask3<round_name>): Ditto.
3350 (<avx512>_fmsub_<mode>_maskz<round_expand_name>): Ditto.
3351 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
3353 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
3354 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
3355 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
3356 (<avx512>_fmsub_<mode>_mask<round_name>): Ditto.
3357 (<avx512>_fmsub_<mode>_mask3<round_name>): Ditto.
3358 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
3360 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
3361 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
3362 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
3363 (<avx512>_fnmadd_<mode>_mask<round_name>): Ditto.
3364 (<avx512>_fnmadd_<mode>_mask3<round_name>): Ditto.
3365 (<avx512>_fnmsub_<mode>_maskz<round_expand_name>): Ditto.
3366 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
3368 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
3369 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
3370 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
3371 (<avx512>_fnmsub_<mode>_mask<round_name>): Ditto.
3372 (<avx512>_fnmsub_<mode>_mask3<round_name>): Ditto.
3374 2021-09-18 liuhongt <hongtao.liu@intel.com>
3376 * config/i386/avx512fp16intrin.h (_mm512_fmaddsub_ph):
3378 (_mm512_mask_fmaddsub_ph): Likewise.
3379 (_mm512_mask3_fmaddsub_ph): Likewise.
3380 (_mm512_maskz_fmaddsub_ph): Likewise.
3381 (_mm512_fmaddsub_round_ph): Likewise.
3382 (_mm512_mask_fmaddsub_round_ph): Likewise.
3383 (_mm512_mask3_fmaddsub_round_ph): Likewise.
3384 (_mm512_maskz_fmaddsub_round_ph): Likewise.
3385 (_mm512_mask_fmsubadd_ph): Likewise.
3386 (_mm512_mask3_fmsubadd_ph): Likewise.
3387 (_mm512_maskz_fmsubadd_ph): Likewise.
3388 (_mm512_fmsubadd_round_ph): Likewise.
3389 (_mm512_mask_fmsubadd_round_ph): Likewise.
3390 (_mm512_mask3_fmsubadd_round_ph): Likewise.
3391 (_mm512_maskz_fmsubadd_round_ph): Likewise.
3392 * config/i386/avx512fp16vlintrin.h (_mm256_fmaddsub_ph):
3394 (_mm256_mask_fmaddsub_ph): Likewise.
3395 (_mm256_mask3_fmaddsub_ph): Likewise.
3396 (_mm256_maskz_fmaddsub_ph): Likewise.
3397 (_mm_fmaddsub_ph): Likewise.
3398 (_mm_mask_fmaddsub_ph): Likewise.
3399 (_mm_mask3_fmaddsub_ph): Likewise.
3400 (_mm_maskz_fmaddsub_ph): Likewise.
3401 (_mm256_fmsubadd_ph): Likewise.
3402 (_mm256_mask_fmsubadd_ph): Likewise.
3403 (_mm256_mask3_fmsubadd_ph): Likewise.
3404 (_mm256_maskz_fmsubadd_ph): Likewise.
3405 (_mm_fmsubadd_ph): Likewise.
3406 (_mm_mask_fmsubadd_ph): Likewise.
3407 (_mm_mask3_fmsubadd_ph): Likewise.
3408 (_mm_maskz_fmsubadd_ph): Likewise.
3409 * config/i386/i386-builtin.def: Add corresponding new builtins.
3410 * config/i386/sse.md (VFH_SF_AVX512VL): New mode iterator.
3411 * (<avx512>_fmsubadd_<mode>_maskz<round_expand_name>): New expander.
3412 * (<avx512>_fmaddsub_<mode>_maskz<round_expand_name>): Use
3414 * (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
3416 * (<avx512>_fmaddsub_<mode>_mask<round_name>): Ditto.
3417 * (<avx512>_fmaddsub_<mode>_mask3<round_name>): Ditto.
3418 * (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
3420 * (<avx512>_fmsubadd_<mode>_mask<round_name>): Ditto.
3421 * (<avx512>_fmsubadd_<mode>_mask3<round_name>): Ditto.
3423 2021-09-18 liuhongt <hongtao.liu@intel.com>
3426 * config/i386/i386.c (ix86_print_operand): Handle
3427 V8HF/V16HF/V32HFmode.
3428 * config/i386/i386.h (VALID_BCST_MODE_P): Add HFmode.
3429 * config/i386/sse.md (avx512bcst): Remove.
3431 2021-09-17 Martin Sebor <msebor@redhat.com>
3433 * Makefile.in (OBJS): Add gimple-predicate-analysis.o.
3434 * tree-ssa-uninit.c (max_phi_args): Move to gimple-predicate-analysis.
3435 (MASK_SET_BIT, MASK_TEST_BIT, MASK_EMPTY): Same.
3436 (check_defs): Add comment.
3437 (can_skip_redundant_opnd): Update comment.
3438 (compute_uninit_opnds_pos): Adjust to namespace change.
3439 (find_pdom): Move to gimple-predicate-analysis.cc.
3441 (struct uninit_undef_val_t): New.
3442 (is_non_loop_exit_postdominating): Move to gimple-predicate-analysis.cc.
3443 (find_control_equiv_block): Same.
3444 (MAX_NUM_CHAINS, MAX_CHAIN_LEN, MAX_POSTDOM_CHECK): Same.
3445 (MAX_SWITCH_CASES): Same.
3446 (compute_control_dep_chain): Same.
3447 (find_uninit_use): Use predicate analyzer.
3448 (struct pred_info): Move to gimple-predicate-analysis.
3449 (convert_control_dep_chain_into_preds): Same.
3450 (find_predicates): Same.
3451 (collect_phi_def_edges): Same.
3452 (warn_uninitialized_phi): Use predicate analyzer.
3453 (find_def_preds): Move to gimple-predicate-analysis.
3454 (dump_pred_info): Same.
3455 (dump_pred_chain): Same.
3456 (dump_predicates): Same.
3457 (destroy_predicate_vecs): Remove.
3458 (execute_late_warn_uninitialized): New.
3459 (get_cmp_code): Move to gimple-predicate-analysis.
3460 (is_value_included_in): Same.
3461 (value_sat_pred_p): Same.
3462 (find_matching_predicate_in_rest_chains): Same.
3463 (is_use_properly_guarded): Same.
3464 (prune_uninit_phi_opnds): Same.
3465 (find_var_cmp_const): Same.
3466 (use_pred_not_overlap_with_undef_path_pred): Same.
3467 (pred_equal_p): Same.
3468 (is_neq_relop_p): Same.
3469 (is_neq_zero_form_p): Same.
3470 (pred_expr_equal_p): Same.
3471 (is_pred_expr_subset_of): Same.
3472 (is_pred_chain_subset_of): Same.
3473 (is_included_in): Same.
3474 (is_superset_of): Same.
3476 (simplify_pred): Same.
3477 (simplify_preds_2): Same.
3478 (simplify_preds_3): Same.
3479 (simplify_preds_4): Same.
3480 (simplify_preds): Same.
3482 (push_to_worklist): Same.
3483 (get_pred_info_from_cmp): Same.
3484 (is_degenerated_phi): Same.
3485 (normalize_one_pred_1): Same.
3486 (normalize_one_pred): Same.
3487 (normalize_one_pred_chain): Same.
3488 (normalize_preds): Same.
3489 (can_one_predicate_be_invalidated_p): Same.
3490 (can_chain_union_be_invalidated_p): Same.
3491 (uninit_uses_cannot_happen): Same.
3492 (pass_late_warn_uninitialized::execute): Define.
3493 * gimple-predicate-analysis.cc: New file.
3494 * gimple-predicate-analysis.h: New file.
3496 2021-09-17 Julian Brown <julian@codesourcery.com>
3498 * config/gcn/gcn.c (gimple.h): Include.
3499 (gcn_fork_join): Emit barrier for worker-level joins.
3500 * omp-oacc-neuter-broadcast.cc (find_local_vars_to_propagate): Add
3501 writes_gang_private bitmap parameter. Set bit for blocks
3502 containing gang-private variable writes.
3503 (worker_single_simple): Don't emit barrier after predicated block.
3504 (worker_single_copy): Don't emit barrier if we're not broadcasting
3505 anything and the block contains no gang-private writes.
3506 (neuter_worker_single): Don't predicate blocks that only contain
3507 NOPs or internal marker functions. Pass has_gang_private_write
3508 argument to worker_single_copy.
3509 (oacc_do_neutering): Add writes_gang_private bitmap handling.
3511 2021-09-17 Julian Brown <julian@codesourcery.com>
3513 * config/gcn/gcn-protos.h
3514 (gcn_goacc_create_worker_broadcast_record): Update prototype.
3515 * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Use
3516 preallocated block of LDS memory. Do not cache/share decls for
3517 reduction temporaries between invocations.
3518 (gcn_goacc_reduction_teardown): Unshare VAR on second use.
3519 (gcn_goacc_create_worker_broadcast_record): Add OFFSET parameter
3520 and return temporary LDS space at that offset. Return pointer in
3522 * config/gcn/gcn.c (acc_lds_size, gang_private_hwm, lds_allocs):
3524 (ACC_LDS_SIZE): Define as acc_lds_size.
3525 (gcn_init_machine_status): Don't initialise lds_allocated,
3526 lds_allocs, reduc_decls fields of machine function struct.
3527 (gcn_option_override): Handle default size for gang-private
3528 variables and -mgang-private-size option.
3529 (gcn_expand_prologue): Use LDS_SIZE instead of LDS_SIZE-1 when
3530 initialising M0_REG.
3531 (gcn_shared_mem_layout): New function.
3532 (gcn_print_lds_decl): Update comment. Use global lds_allocs map and
3533 gang_private_hwm variable.
3534 (TARGET_GOACC_SHARED_MEM_LAYOUT): Define target hook.
3535 * config/gcn/gcn.h (machine_function): Remove lds_allocated,
3536 lds_allocs, reduc_decls. Add reduction_base, reduction_limit.
3537 * config/gcn/gcn.opt (gang_private_size_opt): New global.
3538 (mgang-private-size=): New option.
3539 * doc/tm.texi.in (TARGET_GOACC_SHARED_MEM_LAYOUT): Place
3541 * doc/tm.texi: Regenerate.
3542 * omp-oacc-neuter-broadcast.cc (targhooks.h, diagnostic-core.h):
3544 (build_sender_ref): Handle sender_decl being pointer.
3545 (worker_single_copy): Add PLACEMENT and ISOLATE_BROADCASTS
3546 parameters. Pass placement argument to
3547 create_worker_broadcast_record hook invocations. Handle
3548 sender_decl being pointer and isolate_broadcasts inserting extra
3550 (blk_offset_map_t): Add typedef.
3551 (neuter_worker_single): Add BLK_OFFSET_MAP parameter. Pass
3552 preallocated range to worker_single_copy call.
3553 (dfs_broadcast_reachable_1): New function.
3554 (idx_decl_pair_t, used_range_vec_t): New typedefs.
3555 (sort_size_descending): New function.
3556 (addr_range): New class.
3557 (splay_tree_compare_addr_range, splay_tree_free_key)
3558 (first_fit_range, merge_ranges_1, merge_ranges): New functions.
3559 (execute_omp_oacc_neuter_broadcast): Rename to...
3560 (oacc_do_neutering): ... this. Add BOUNDS_LO, BOUNDS_HI
3561 parameters. Arrange layout of shared memory for broadcast
3563 (execute_omp_oacc_neuter_broadcast): New function.
3564 (pass_omp_oacc_neuter_broadcast::gate): Remove num_workers==1
3565 handling from here. Enable pass for all OpenACC routines in order
3566 to call shared memory-layout hook.
3567 * target.def (create_worker_broadcast_record): Add OFFSET
3569 (shared_mem_layout): New hook.
3571 2021-09-17 Julian Brown <julian@codesourcery.com>
3572 Thomas Schwinge <thomas@codesourcery.com>
3574 * omp-oacc-neuter-broadcast.cc
3575 (pass_omp_oacc_neuter_broadcast::gate): Disable if num_workers is
3577 (execute_omp_oacc_neuter_broadcast): Adjust.
3579 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
3581 * value-relation.cc (class equiv_chain): Move to header file.
3582 (path_oracle::path_oracle): New.
3583 (path_oracle::~path_oracle): New.
3584 (path_oracle::register_relation): New.
3585 (path_oracle::query_relation): New.
3586 (path_oracle::reset_path): New.
3587 (path_oracle::dump): New.
3588 * value-relation.h (class equiv_chain): Move to here.
3589 (class path_oracle): New.
3591 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
3593 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a DOM
3595 * gimple-range-fold.cc (fur_depend::register_relation): Use
3596 register_stmt/edge routines.
3597 * value-relation.cc (equiv_chain::find): Relocate from equiv_oracle.
3598 (equiv_oracle::equiv_oracle): Create self equivalence cache.
3599 (equiv_oracle::~equiv_oracle): Release same.
3600 (equiv_oracle::equiv_set): Return entry from self equiv cache if there
3601 are no equivalences.
3602 (equiv_oracle::find_equiv_block): Move list find to equiv_chain.
3603 (equiv_oracle::register_relation): Rename from register_equiv.
3604 (relation_chain_head::find_relation): Relocate from dom_oracle.
3605 (relation_oracle::register_stmt): New.
3606 (relation_oracle::register_edge): New.
3607 (dom_oracle::*): Rename from relation_oracle.
3608 (dom_oracle::register_relation): Adjust to call equiv_oracle.
3609 (dom_oracle::set_one_relation): Split from register_relation.
3610 (dom_oracle::register_transitives): Consolidate 2 methods.
3611 (dom_oracle::find_relation_block): Move core to relation_chain.
3612 (dom_oracle::query_relation): Rename from find_relation_dom and adjust.
3613 * value-relation.h (class relation_oracle): New pure virtual base.
3614 (class equiv_oracle): Inherit from relation_oracle and adjust.
3615 (class dom_oracle): Rename from old relation_oracle and adjust.
3617 2021-09-17 Martin Sebor <msebor@redhat.com>
3619 PR middle-end/102200
3620 * pointer-query.cc (access_ref::inform_access): Handle MIN/MAX_EXPR.
3621 (handle_min_max_size): Change argument. Store original SSA_NAME for
3622 operands to potentially distinct (sub)objects.
3623 (compute_objsize_r): Adjust call to the above.
3625 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
3627 * config/rs6000/rs6000.c (rs6000-builtins.h): New include.
3628 (rs6000_new_builtin_vectorized_function): New function.
3629 (rs6000_new_builtin_md_vectorized_function): Likewise.
3630 (rs6000_builtin_vectorized_function): Call
3631 rs6000_new_builtin_vectorized_function.
3632 (rs6000_builtin_md_vectorized_function): Call
3633 rs6000_new_builtin_md_vectorized_function.
3635 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
3637 * config/rs6000/rs6000-builtin-new.def (ASSEMBLE_ACC): Add mmaint flag.
3638 (ASSEMBLE_PAIR): Likewise.
3639 (BUILD_ACC): Likewise.
3640 (DISASSEMBLE_ACC): Likewise.
3641 (DISASSEMBLE_PAIR): Likewise.
3642 (PMXVBF16GER2): Likewise.
3643 (PMXVBF16GER2NN): Likewise.
3644 (PMXVBF16GER2NP): Likewise.
3645 (PMXVBF16GER2PN): Likewise.
3646 (PMXVBF16GER2PP): Likewise.
3647 (PMXVF16GER2): Likewise.
3648 (PMXVF16GER2NN): Likewise.
3649 (PMXVF16GER2NP): Likewise.
3650 (PMXVF16GER2PN): Likewise.
3651 (PMXVF16GER2PP): Likewise.
3652 (PMXVF32GER): Likewise.
3653 (PMXVF32GERNN): Likewise.
3654 (PMXVF32GERNP): Likewise.
3655 (PMXVF32GERPN): Likewise.
3656 (PMXVF32GERPP): Likewise.
3657 (PMXVF64GER): Likewise.
3658 (PMXVF64GERNN): Likewise.
3659 (PMXVF64GERNP): Likewise.
3660 (PMXVF64GERPN): Likewise.
3661 (PMXVF64GERPP): Likewise.
3662 (PMXVI16GER2): Likewise.
3663 (PMXVI16GER2PP): Likewise.
3664 (PMXVI16GER2S): Likewise.
3665 (PMXVI16GER2SPP): Likewise.
3666 (PMXVI4GER8): Likewise.
3667 (PMXVI4GER8PP): Likewise.
3668 (PMXVI8GER4): Likewise.
3669 (PMXVI8GER4PP): Likewise.
3670 (PMXVI8GER4SPP): Likewise.
3671 (XVBF16GER2): Likewise.
3672 (XVBF16GER2NN): Likewise.
3673 (XVBF16GER2NP): Likewise.
3674 (XVBF16GER2PN): Likewise.
3675 (XVBF16GER2PP): Likewise.
3676 (XVF16GER2): Likewise.
3677 (XVF16GER2NN): Likewise.
3678 (XVF16GER2NP): Likewise.
3679 (XVF16GER2PN): Likewise.
3680 (XVF16GER2PP): Likewise.
3681 (XVF32GER): Likewise.
3682 (XVF32GERNN): Likewise.
3683 (XVF32GERNP): Likewise.
3684 (XVF32GERPN): Likewise.
3685 (XVF32GERPP): Likewise.
3686 (XVF64GER): Likewise.
3687 (XVF64GERNN): Likewise.
3688 (XVF64GERNP): Likewise.
3689 (XVF64GERPN): Likewise.
3690 (XVF64GERPP): Likewise.
3691 (XVI16GER2): Likewise.
3692 (XVI16GER2PP): Likewise.
3693 (XVI16GER2S): Likewise.
3694 (XVI16GER2SPP): Likewise.
3695 (XVI4GER8): Likewise.
3696 (XVI4GER8PP): Likewise.
3697 (XVI8GER4): Likewise.
3698 (XVI8GER4PP): Likewise.
3699 (XVI8GER4SPP): Likewise.
3700 (XXMFACC): Likewise.
3701 (XXMTACC): Likewise.
3702 (XXSETACCZ): Likewise.
3703 (ASSEMBLE_PAIR_V): Likewise.
3704 (BUILD_PAIR): Likewise.
3705 (DISASSEMBLE_PAIR_V): Likewise.
3708 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_mma_builtin):
3709 Handle RS6000_BIF_LXVP and RS6000_BIF_STXVP.
3710 * config/rs6000/rs6000-gen-builtins.c (attrinfo): Add ismmaint.
3711 (parse_bif_attrs): Handle ismmaint.
3712 (write_decls): Add bif_mmaint_bit and bif_is_mmaint.
3713 (write_bif_static_init): Handle ismmaint.
3715 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
3717 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin): New
3719 (rs6000_gimple_fold_builtin): Call rs6000_gimple_fold_new_builtin.
3720 (rs6000_new_builtin_valid_without_lhs): New function.
3721 (rs6000_gimple_fold_new_mma_builtin): Likewise.
3722 (rs6000_gimple_fold_new_builtin): Likewise.
3724 2021-09-17 Thomas Schwinge <thomas@codesourcery.com>
3726 * hash-table.h (hash_table<Descriptor, Lazy, Allocator>::expand):
3727 Destruct stale Value objects.
3728 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
3731 2021-09-17 Roger Sayle <roger@nextmovesoftware.com>
3734 * match.pd (shift optimizations): Disable recent sign-changing
3735 optimization for shifts by zero, these will be folded later.
3737 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
3739 * config/rs6000/rs6000-builtin-new.def (__builtin_mffsl): Move from
3740 [power9] to [always].
3742 2021-09-17 Richard Biener <rguenther@suse.de>
3744 * tree-vect-stmts.c (vectorizable_load): Do not frob
3747 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
3749 * config/i386/i386-features.c (remove_partial_avx_dependency):
3750 Also check TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY and
3751 and TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY before generating
3753 * config/i386/i386.h (TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY):
3755 (TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
3756 * config/i386/i386.md (SSE FP to FP splitters): Replace
3757 TARGET_SSE_PARTIAL_REG_DEPENDENCY with
3758 TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY.
3759 (SSE INT to FP splitter): Replace TARGET_SSE_PARTIAL_REG_DEPENDENCY
3760 with TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY.
3761 * config/i386/x86-tune.def
3762 (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): New.
3763 (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
3765 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
3768 * config/i386/i386-features.c (remove_partial_avx_dependency):
3769 Check TARGET_USE_VECTOR_FP_CONVERTS and TARGET_USE_VECTOR_CONVERTS
3770 before generating vxorps.
3772 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
3774 * config/i386/i386-options.c (processor_cost_table): Use
3775 tremont_cost for Tremont.
3776 * config/i386/x86-tune-costs.h (tremont_memcpy): New.
3777 (tremont_memset): Likewise.
3778 (tremont_cost): Likewise.
3779 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
3782 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
3784 * common/config/i386/i386-common.c: Use Haswell scheduling model
3786 * config/i386/i386.c (ix86_sched_init_global): Prepare for Tremont
3788 * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Tremont
3790 (ix86_adjust_cost): Handle Tremont.
3791 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
3793 (X86_TUNE_USE_LEAVE): Likewise.
3794 (X86_TUNE_PUSH_MEMORY): Likewise.
3795 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
3796 (X86_TUNE_USE_CLTD): Likewise.
3797 (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
3798 (X86_TUNE_AVOID_MFENCE): Likewise.
3799 (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
3800 (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
3801 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS): Disable for Tremont.
3802 (X86_TUNE_FOUR_JUMP_LIMIT): Likewise.
3803 (X86_TUNE_OPT_AGU): Likewise.
3804 (X86_TUNE_AVOID_LEA_FOR_ADDR): Likewise.
3805 (X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE): Likewise.
3806 (X86_TUNE_EXPAND_ABS): Likewise.
3807 (X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS): Likewise.
3808 (X86_TUNE_SLOW_PSHUFB): Likewise.
3810 2021-09-17 Eric Botcazou <ebotcazou@adacore.com>
3812 PR rtl-optimization/102306
3813 * combine.c (try_combine): Abort the combination if we are about to
3814 duplicate volatile references.
3816 2021-09-17 liuhongt <hongtao.liu@intel.com>
3818 * config/i386/avx512fp16intrin.h (_mm_undefined_ph):
3820 (_mm256_undefined_ph): Likewise.
3821 (_mm512_undefined_ph): Likewise.
3822 (_mm_cvtsh_h): Likewise.
3823 (_mm256_cvtsh_h): Likewise.
3824 (_mm512_cvtsh_h): Likewise.
3825 (_mm512_castph_ps): Likewise.
3826 (_mm512_castph_pd): Likewise.
3827 (_mm512_castph_si512): Likewise.
3828 (_mm512_castph512_ph128): Likewise.
3829 (_mm512_castph512_ph256): Likewise.
3830 (_mm512_castph128_ph512): Likewise.
3831 (_mm512_castph256_ph512): Likewise.
3832 (_mm512_zextph128_ph512): Likewise.
3833 (_mm512_zextph256_ph512): Likewise.
3834 (_mm512_castps_ph): Likewise.
3835 (_mm512_castpd_ph): Likewise.
3836 (_mm512_castsi512_ph): Likewise.
3837 * config/i386/avx512fp16vlintrin.h (_mm_castph_ps):
3839 (_mm256_castph_ps): Likewise.
3840 (_mm_castph_pd): Likewise.
3841 (_mm256_castph_pd): Likewise.
3842 (_mm_castph_si128): Likewise.
3843 (_mm256_castph_si256): Likewise.
3844 (_mm_castps_ph): Likewise.
3845 (_mm256_castps_ph): Likewise.
3846 (_mm_castpd_ph): Likewise.
3847 (_mm256_castpd_ph): Likewise.
3848 (_mm_castsi128_ph): Likewise.
3849 (_mm256_castsi256_ph): Likewise.
3850 (_mm256_castph256_ph128): Likewise.
3851 (_mm256_castph128_ph256): Likewise.
3852 (_mm256_zextph128_ph256): Likewise.
3854 2021-09-17 liuhongt <hongtao.liu@intel.com>
3856 * config/i386/avx512fp16intrin.h (_mm_cvtsh_ss):
3858 (_mm_mask_cvtsh_ss): Likewise.
3859 (_mm_maskz_cvtsh_ss): Likewise.
3860 (_mm_cvtsh_sd): Likewise.
3861 (_mm_mask_cvtsh_sd): Likewise.
3862 (_mm_maskz_cvtsh_sd): Likewise.
3863 (_mm_cvt_roundsh_ss): Likewise.
3864 (_mm_mask_cvt_roundsh_ss): Likewise.
3865 (_mm_maskz_cvt_roundsh_ss): Likewise.
3866 (_mm_cvt_roundsh_sd): Likewise.
3867 (_mm_mask_cvt_roundsh_sd): Likewise.
3868 (_mm_maskz_cvt_roundsh_sd): Likewise.
3869 (_mm_cvtss_sh): Likewise.
3870 (_mm_mask_cvtss_sh): Likewise.
3871 (_mm_maskz_cvtss_sh): Likewise.
3872 (_mm_cvtsd_sh): Likewise.
3873 (_mm_mask_cvtsd_sh): Likewise.
3874 (_mm_maskz_cvtsd_sh): Likewise.
3875 (_mm_cvt_roundss_sh): Likewise.
3876 (_mm_mask_cvt_roundss_sh): Likewise.
3877 (_mm_maskz_cvt_roundss_sh): Likewise.
3878 (_mm_cvt_roundsd_sh): Likewise.
3879 (_mm_mask_cvt_roundsd_sh): Likewise.
3880 (_mm_maskz_cvt_roundsd_sh): Likewise.
3881 * config/i386/i386-builtin-types.def
3882 (V8HF_FTYPE_V2DF_V8HF_V8HF_UQI_INT,
3883 V8HF_FTYPE_V4SF_V8HF_V8HF_UQI_INT,
3884 V2DF_FTYPE_V8HF_V2DF_V2DF_UQI_INT,
3885 V4SF_FTYPE_V8HF_V4SF_V4SF_UQI_INT): Add new builtin types.
3886 * config/i386/i386-builtin.def: Add corrresponding new builtins.
3887 * config/i386/i386-expand.c: Handle new builtin types.
3888 * config/i386/sse.md (VF48_128): New mode iterator.
3889 (avx512fp16_vcvtsh2<ssescalarmodesuffix><mask_scalar_name><round_saeonly_scalar_name>):
3891 (avx512fp16_vcvt<ssescalarmodesuffix>2sh<mask_scalar_name><round_scalar_name>):
3894 2021-09-17 liuhongt <hongtao.liu@intel.com>
3896 * config/i386/avx512fp16intrin.h (_mm512_cvtph_pd):
3898 (_mm512_mask_cvtph_pd): Likewise.
3899 (_mm512_maskz_cvtph_pd): Likewise.
3900 (_mm512_cvt_roundph_pd): Likewise.
3901 (_mm512_mask_cvt_roundph_pd): Likewise.
3902 (_mm512_maskz_cvt_roundph_pd): Likewise.
3903 (_mm512_cvtxph_ps): Likewise.
3904 (_mm512_mask_cvtxph_ps): Likewise.
3905 (_mm512_maskz_cvtxph_ps): Likewise.
3906 (_mm512_cvtx_roundph_ps): Likewise.
3907 (_mm512_mask_cvtx_roundph_ps): Likewise.
3908 (_mm512_maskz_cvtx_roundph_ps): Likewise.
3909 (_mm512_cvtxps_ph): Likewise.
3910 (_mm512_mask_cvtxps_ph): Likewise.
3911 (_mm512_maskz_cvtxps_ph): Likewise.
3912 (_mm512_cvtx_roundps_ph): Likewise.
3913 (_mm512_mask_cvtx_roundps_ph): Likewise.
3914 (_mm512_maskz_cvtx_roundps_ph): Likewise.
3915 (_mm512_cvtpd_ph): Likewise.
3916 (_mm512_mask_cvtpd_ph): Likewise.
3917 (_mm512_maskz_cvtpd_ph): Likewise.
3918 (_mm512_cvt_roundpd_ph): Likewise.
3919 (_mm512_mask_cvt_roundpd_ph): Likewise.
3920 (_mm512_maskz_cvt_roundpd_ph): Likewise.
3921 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_pd):
3923 (_mm_mask_cvtph_pd): Likewise.
3924 (_mm_maskz_cvtph_pd): Likewise.
3925 (_mm256_cvtph_pd): Likewise.
3926 (_mm256_mask_cvtph_pd): Likewise.
3927 (_mm256_maskz_cvtph_pd): Likewise.
3928 (_mm_cvtxph_ps): Likewise.
3929 (_mm_mask_cvtxph_ps): Likewise.
3930 (_mm_maskz_cvtxph_ps): Likewise.
3931 (_mm256_cvtxph_ps): Likewise.
3932 (_mm256_mask_cvtxph_ps): Likewise.
3933 (_mm256_maskz_cvtxph_ps): Likewise.
3934 (_mm_cvtxps_ph): Likewise.
3935 (_mm_mask_cvtxps_ph): Likewise.
3936 (_mm_maskz_cvtxps_ph): Likewise.
3937 (_mm256_cvtxps_ph): Likewise.
3938 (_mm256_mask_cvtxps_ph): Likewise.
3939 (_mm256_maskz_cvtxps_ph): Likewise.
3940 (_mm_cvtpd_ph): Likewise.
3941 (_mm_mask_cvtpd_ph): Likewise.
3942 (_mm_maskz_cvtpd_ph): Likewise.
3943 (_mm256_cvtpd_ph): Likewise.
3944 (_mm256_mask_cvtpd_ph): Likewise.
3945 (_mm256_maskz_cvtpd_ph): Likewise.
3946 * config/i386/i386-builtin.def: Add corresponding new builtins.
3947 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
3948 * config/i386/i386-expand.c: Handle new builtin types.
3949 * config/i386/sse.md
3950 (VF4_128_8_256): New.
3951 (VF48H_AVX512VL): Ditto.
3952 (ssePHmode): Add HF vector modes.
3953 (castmode): Add new convertable modes.
3956 (avx512fp16_vcvt<castmode>2ph_<mode><mask_name><round_name>): Ditto.
3957 (avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
3958 (*avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
3959 (avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
3960 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
3961 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask_1): Ditto.
3962 (avx512fp16_float_extend_ph<mode>2<mask_name><round_saeonly_name>):
3964 (avx512fp16_float_extend_ph<mode>2<mask_name>): Ditto.
3965 (*avx512fp16_float_extend_ph<mode>2_load<mask_name>): Ditto.
3966 (avx512fp16_float_extend_phv2df2<mask_name>): Ditto.
3967 (*avx512fp16_float_extend_phv2df2_load<mask_name>): Ditto.
3969 2021-09-17 liuhongt <hongtao.liu@intel.com>
3971 * config/i386/avx512fp16intrin.h (_mm_cvttsh_i32):
3973 (_mm_cvttsh_u32): Likewise.
3974 (_mm_cvtt_roundsh_i32): Likewise.
3975 (_mm_cvtt_roundsh_u32): Likewise.
3976 (_mm_cvttsh_i64): Likewise.
3977 (_mm_cvttsh_u64): Likewise.
3978 (_mm_cvtt_roundsh_i64): Likewise.
3979 (_mm_cvtt_roundsh_u64): Likewise.
3980 * config/i386/i386-builtin.def: Add corresponding new builtins.
3981 * config/i386/sse.md
3982 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<round_saeonly_name>):
3985 2021-09-17 liuhongt <hongtao.liu@intel.com>
3987 * config/i386/avx512fp16intrin.h (_mm512_cvttph_epi32):
3989 (_mm512_mask_cvttph_epi32): Likewise.
3990 (_mm512_maskz_cvttph_epi32): Likewise.
3991 (_mm512_cvtt_roundph_epi32): Likewise.
3992 (_mm512_mask_cvtt_roundph_epi32): Likewise.
3993 (_mm512_maskz_cvtt_roundph_epi32): Likewise.
3994 (_mm512_cvttph_epu32): Likewise.
3995 (_mm512_mask_cvttph_epu32): Likewise.
3996 (_mm512_maskz_cvttph_epu32): Likewise.
3997 (_mm512_cvtt_roundph_epu32): Likewise.
3998 (_mm512_mask_cvtt_roundph_epu32): Likewise.
3999 (_mm512_maskz_cvtt_roundph_epu32): Likewise.
4000 (_mm512_cvttph_epi64): Likewise.
4001 (_mm512_mask_cvttph_epi64): Likewise.
4002 (_mm512_maskz_cvttph_epi64): Likewise.
4003 (_mm512_cvtt_roundph_epi64): Likewise.
4004 (_mm512_mask_cvtt_roundph_epi64): Likewise.
4005 (_mm512_maskz_cvtt_roundph_epi64): Likewise.
4006 (_mm512_cvttph_epu64): Likewise.
4007 (_mm512_mask_cvttph_epu64): Likewise.
4008 (_mm512_maskz_cvttph_epu64): Likewise.
4009 (_mm512_cvtt_roundph_epu64): Likewise.
4010 (_mm512_mask_cvtt_roundph_epu64): Likewise.
4011 (_mm512_maskz_cvtt_roundph_epu64): Likewise.
4012 (_mm512_cvttph_epi16): Likewise.
4013 (_mm512_mask_cvttph_epi16): Likewise.
4014 (_mm512_maskz_cvttph_epi16): Likewise.
4015 (_mm512_cvtt_roundph_epi16): Likewise.
4016 (_mm512_mask_cvtt_roundph_epi16): Likewise.
4017 (_mm512_maskz_cvtt_roundph_epi16): Likewise.
4018 (_mm512_cvttph_epu16): Likewise.
4019 (_mm512_mask_cvttph_epu16): Likewise.
4020 (_mm512_maskz_cvttph_epu16): Likewise.
4021 (_mm512_cvtt_roundph_epu16): Likewise.
4022 (_mm512_mask_cvtt_roundph_epu16): Likewise.
4023 (_mm512_maskz_cvtt_roundph_epu16): Likewise.
4024 * config/i386/avx512fp16vlintrin.h (_mm_cvttph_epi32):
4026 (_mm_mask_cvttph_epi32): Likewise.
4027 (_mm_maskz_cvttph_epi32): Likewise.
4028 (_mm256_cvttph_epi32): Likewise.
4029 (_mm256_mask_cvttph_epi32): Likewise.
4030 (_mm256_maskz_cvttph_epi32): Likewise.
4031 (_mm_cvttph_epu32): Likewise.
4032 (_mm_mask_cvttph_epu32): Likewise.
4033 (_mm_maskz_cvttph_epu32): Likewise.
4034 (_mm256_cvttph_epu32): Likewise.
4035 (_mm256_mask_cvttph_epu32): Likewise.
4036 (_mm256_maskz_cvttph_epu32): Likewise.
4037 (_mm_cvttph_epi64): Likewise.
4038 (_mm_mask_cvttph_epi64): Likewise.
4039 (_mm_maskz_cvttph_epi64): Likewise.
4040 (_mm256_cvttph_epi64): Likewise.
4041 (_mm256_mask_cvttph_epi64): Likewise.
4042 (_mm256_maskz_cvttph_epi64): Likewise.
4043 (_mm_cvttph_epu64): Likewise.
4044 (_mm_mask_cvttph_epu64): Likewise.
4045 (_mm_maskz_cvttph_epu64): Likewise.
4046 (_mm256_cvttph_epu64): Likewise.
4047 (_mm256_mask_cvttph_epu64): Likewise.
4048 (_mm256_maskz_cvttph_epu64): Likewise.
4049 (_mm_cvttph_epi16): Likewise.
4050 (_mm_mask_cvttph_epi16): Likewise.
4051 (_mm_maskz_cvttph_epi16): Likewise.
4052 (_mm256_cvttph_epi16): Likewise.
4053 (_mm256_mask_cvttph_epi16): Likewise.
4054 (_mm256_maskz_cvttph_epi16): Likewise.
4055 (_mm_cvttph_epu16): Likewise.
4056 (_mm_mask_cvttph_epu16): Likewise.
4057 (_mm_maskz_cvttph_epu16): Likewise.
4058 (_mm256_cvttph_epu16): Likewise.
4059 (_mm256_mask_cvttph_epu16): Likewise.
4060 (_mm256_maskz_cvttph_epu16): Likewise.
4061 * config/i386/i386-builtin.def: Add new builtins.
4062 * config/i386/sse.md
4063 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name><round_saeonly_name>):
4065 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name>): Ditto.
4066 (*avx512fp16_fix<fixunssuffix>_trunc<mode>2_load<mask_name>): Ditto.
4067 (avx512fp16_fix<fixunssuffix>_truncv2di2<mask_name>): Ditto.
4068 (avx512fp16_fix<fixunssuffix>_truncv2di2_load<mask_name>): Ditto.
4070 2021-09-17 liuhongt <hongtao.liu@intel.com>
4072 * config/i386/avx512fp16intrin.h (_mm_cvtsh_i32): New intrinsic.
4073 (_mm_cvtsh_u32): Likewise.
4074 (_mm_cvt_roundsh_i32): Likewise.
4075 (_mm_cvt_roundsh_u32): Likewise.
4076 (_mm_cvtsh_i64): Likewise.
4077 (_mm_cvtsh_u64): Likewise.
4078 (_mm_cvt_roundsh_i64): Likewise.
4079 (_mm_cvt_roundsh_u64): Likewise.
4080 (_mm_cvti32_sh): Likewise.
4081 (_mm_cvtu32_sh): Likewise.
4082 (_mm_cvt_roundi32_sh): Likewise.
4083 (_mm_cvt_roundu32_sh): Likewise.
4084 (_mm_cvti64_sh): Likewise.
4085 (_mm_cvtu64_sh): Likewise.
4086 (_mm_cvt_roundi64_sh): Likewise.
4087 (_mm_cvt_roundu64_sh): Likewise.
4088 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4089 * config/i386/i386-builtin.def: Add corresponding new builtins.
4090 * config/i386/i386-expand.c (ix86_expand_round_builtin):
4091 Handle new builtin types.
4092 * config/i386/sse.md
4093 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix><round_name>):
4095 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix>_2): Likewise.
4096 (avx512fp16_vcvt<floatsuffix>si2sh<rex64namesuffix><round_name>): Likewise.
4098 2021-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
4100 * config/rs6000/rs6000-c.c (rs6000-builtins.h): New include.
4101 (altivec_resolve_new_overloaded_builtin): New forward decl.
4102 (rs6000_new_builtin_type_compatible): New function.
4103 (altivec_resolve_overloaded_builtin): Call
4104 altivec_resolve_new_overloaded_builtin.
4105 (altivec_build_new_resolved_builtin): New function.
4106 (altivec_resolve_new_overloaded_builtin): Likewise.
4107 * config/rs6000/rs6000-call.c (rs6000_new_builtin_is_supported):
4109 * config/rs6000/rs6000-gen-builtins.c (write_decls): Remove _p from
4110 name of rs6000_new_builtin_is_supported.
4112 2021-09-16 Uroš Bizjak <ubizjak@gmail.com>
4114 * config/i386/i386-protos.h (ix86_decompose_address):
4115 Change return type to bool.
4116 * config/i386/i386.c (ix86_decompose_address): Ditto.
4118 2021-09-16 Tobias Burnus <tobias@codesourcery.com>
4121 * config/rs6000/t-rs6000 (build/rs6000-gen-builtins.o, build/rbtree.o):
4122 Added 'build/' to target, use build/%.o rule.
4123 (build/rs6000-gen-builtins$(build_exeext)): Add 'build/' and
4124 '$(build_exeext)' to target and 'build/' for the *.o files.
4125 (rs6000-builtins.c): Update for those changes; run rs6000-gen-builtins
4128 2021-09-16 Martin Jambor <mjambor@suse.cz>
4130 * cgraph.c (cgraph_node::dump): Do not check caller count sums if
4131 the body has been removed. Remove trailing whitespace.
4133 2021-09-16 Richard Biener <rguenther@suse.de>
4135 PR middle-end/102360
4136 * internal-fn.c (expand_DEFERRED_INIT): Make pattern-init
4137 of non-memory more robust.
4139 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4141 * config/sparc/sparc-opts.h (enum sparc_processor_type): Add LEON5
4142 * config/sparc/sparc.c (struct processor_costs): Add LEON5 costs
4143 (leon5_adjust_cost): Increase cost of store with data dependency
4144 on ALU instruction and FPU anti-dependencies.
4145 (sparc_option_override): Add LEON5 costs
4146 (sparc_adjust_cost): Add LEON5 cost adjustments
4147 * config/sparc/sparc.h: Add LEON5
4148 * config/sparc/sparc.md: Include LEON5 scheduling information
4149 * config/sparc/sparc.opt: Add LEON5
4150 * doc/invoke.texi: Add LEON5
4151 * config/sparc/leon5.md: New file.
4153 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4155 * config/sparc/sparc.md (stack_protect_set32): Add NOP to prevent
4156 sensitive sequence for B2BST errata workaround.
4158 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4160 * config/sparc/sparc.c (sparc_do_work_around_errata): Do not begin
4161 functions with atomic instruction in the UT700 errata workaround.
4163 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4165 * config/sparc/sparc.c (next_active_non_empty_insn): New function
4166 that returns next active non empty assembly instruction.
4167 (sparc_do_work_around_errata): Use new function.
4169 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4171 * config/sparc/sparc.c (store_insn_p): Add predicate for store
4173 (load_insn_p): Add predicate for load attributes.
4174 (sparc_do_work_around_errata): Use new predicates.
4176 2021-09-16 Andreas Larsson <andreas@gaisler.com>
4178 * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
4181 2021-09-16 Martin Liska <mliska@suse.cz>
4183 * config/mips/netbsd.h: Fix typo in name of a macro.
4185 2021-09-16 liuhongt <hongtao.liu@intel.com>
4187 PR middle-end/102080
4188 * match.pd: Check mask type when doing cond_op related gimple
4190 * tree.c (is_truth_type_for): New function.
4191 * tree.h (is_truth_type_for): New declaration.
4193 2021-09-16 liuhongt <hongtao.liu@intel.com>
4195 * config/i386/avx512fp16intrin.h (_mm512_cvtepi32_ph): New
4197 (_mm512_mask_cvtepi32_ph): Likewise.
4198 (_mm512_maskz_cvtepi32_ph): Likewise.
4199 (_mm512_cvt_roundepi32_ph): Likewise.
4200 (_mm512_mask_cvt_roundepi32_ph): Likewise.
4201 (_mm512_maskz_cvt_roundepi32_ph): Likewise.
4202 (_mm512_cvtepu32_ph): Likewise.
4203 (_mm512_mask_cvtepu32_ph): Likewise.
4204 (_mm512_maskz_cvtepu32_ph): Likewise.
4205 (_mm512_cvt_roundepu32_ph): Likewise.
4206 (_mm512_mask_cvt_roundepu32_ph): Likewise.
4207 (_mm512_maskz_cvt_roundepu32_ph): Likewise.
4208 (_mm512_cvtepi64_ph): Likewise.
4209 (_mm512_mask_cvtepi64_ph): Likewise.
4210 (_mm512_maskz_cvtepi64_ph): Likewise.
4211 (_mm512_cvt_roundepi64_ph): Likewise.
4212 (_mm512_mask_cvt_roundepi64_ph): Likewise.
4213 (_mm512_maskz_cvt_roundepi64_ph): Likewise.
4214 (_mm512_cvtepu64_ph): Likewise.
4215 (_mm512_mask_cvtepu64_ph): Likewise.
4216 (_mm512_maskz_cvtepu64_ph): Likewise.
4217 (_mm512_cvt_roundepu64_ph): Likewise.
4218 (_mm512_mask_cvt_roundepu64_ph): Likewise.
4219 (_mm512_maskz_cvt_roundepu64_ph): Likewise.
4220 (_mm512_cvtepi16_ph): Likewise.
4221 (_mm512_mask_cvtepi16_ph): Likewise.
4222 (_mm512_maskz_cvtepi16_ph): Likewise.
4223 (_mm512_cvt_roundepi16_ph): Likewise.
4224 (_mm512_mask_cvt_roundepi16_ph): Likewise.
4225 (_mm512_maskz_cvt_roundepi16_ph): Likewise.
4226 (_mm512_cvtepu16_ph): Likewise.
4227 (_mm512_mask_cvtepu16_ph): Likewise.
4228 (_mm512_maskz_cvtepu16_ph): Likewise.
4229 (_mm512_cvt_roundepu16_ph): Likewise.
4230 (_mm512_mask_cvt_roundepu16_ph): Likewise.
4231 (_mm512_maskz_cvt_roundepu16_ph): Likewise.
4232 * config/i386/avx512fp16vlintrin.h (_mm_cvtepi32_ph): New
4234 (_mm_mask_cvtepi32_ph): Likewise.
4235 (_mm_maskz_cvtepi32_ph): Likewise.
4236 (_mm256_cvtepi32_ph): Likewise.
4237 (_mm256_mask_cvtepi32_ph): Likewise.
4238 (_mm256_maskz_cvtepi32_ph): Likewise.
4239 (_mm_cvtepu32_ph): Likewise.
4240 (_mm_mask_cvtepu32_ph): Likewise.
4241 (_mm_maskz_cvtepu32_ph): Likewise.
4242 (_mm256_cvtepu32_ph): Likewise.
4243 (_mm256_mask_cvtepu32_ph): Likewise.
4244 (_mm256_maskz_cvtepu32_ph): Likewise.
4245 (_mm_cvtepi64_ph): Likewise.
4246 (_mm_mask_cvtepi64_ph): Likewise.
4247 (_mm_maskz_cvtepi64_ph): Likewise.
4248 (_mm256_cvtepi64_ph): Likewise.
4249 (_mm256_mask_cvtepi64_ph): Likewise.
4250 (_mm256_maskz_cvtepi64_ph): Likewise.
4251 (_mm_cvtepu64_ph): Likewise.
4252 (_mm_mask_cvtepu64_ph): Likewise.
4253 (_mm_maskz_cvtepu64_ph): Likewise.
4254 (_mm256_cvtepu64_ph): Likewise.
4255 (_mm256_mask_cvtepu64_ph): Likewise.
4256 (_mm256_maskz_cvtepu64_ph): Likewise.
4257 (_mm_cvtepi16_ph): Likewise.
4258 (_mm_mask_cvtepi16_ph): Likewise.
4259 (_mm_maskz_cvtepi16_ph): Likewise.
4260 (_mm256_cvtepi16_ph): Likewise.
4261 (_mm256_mask_cvtepi16_ph): Likewise.
4262 (_mm256_maskz_cvtepi16_ph): Likewise.
4263 (_mm_cvtepu16_ph): Likewise.
4264 (_mm_mask_cvtepu16_ph): Likewise.
4265 (_mm_maskz_cvtepu16_ph): Likewise.
4266 (_mm256_cvtepu16_ph): Likewise.
4267 (_mm256_mask_cvtepu16_ph): Likewise.
4268 (_mm256_maskz_cvtepu16_ph): Likewise.
4269 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4270 * config/i386/i386-builtin.def: Add corresponding new builtins.
4271 * config/i386/i386-expand.c
4272 (ix86_expand_args_builtin): Handle new builtin types.
4273 (ix86_expand_round_builtin): Ditto.
4274 * config/i386/i386-modes.def: Declare V2HF and V6HF.
4275 * config/i386/sse.md (VI2H_AVX512VL): New.
4277 (sseintvecmode): Add HF vector modes.
4278 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode><mask_name><round_name>):
4280 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
4281 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
4282 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
4283 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
4284 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask_1): Ditto.
4285 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
4286 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
4287 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
4288 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
4289 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask_1): Ditto.
4290 * config/i386/subst.md (round_qq2phsuff): New subst_attr.
4292 2021-09-16 liuhongt <hongtao.liu@intel.com>
4294 * config/i386/avx512fp16intrin.h (_mm512_cvtph_epi32):
4296 (_mm512_mask_cvtph_epi32): Likewise.
4297 (_mm512_maskz_cvtph_epi32): Likewise.
4298 (_mm512_cvt_roundph_epi32): Likewise.
4299 (_mm512_mask_cvt_roundph_epi32): Likewise.
4300 (_mm512_maskz_cvt_roundph_epi32): Likewise.
4301 (_mm512_cvtph_epu32): Likewise.
4302 (_mm512_mask_cvtph_epu32): Likewise.
4303 (_mm512_maskz_cvtph_epu32): Likewise.
4304 (_mm512_cvt_roundph_epu32): Likewise.
4305 (_mm512_mask_cvt_roundph_epu32): Likewise.
4306 (_mm512_maskz_cvt_roundph_epu32): Likewise.
4307 (_mm512_cvtph_epi64): Likewise.
4308 (_mm512_mask_cvtph_epi64): Likewise.
4309 (_mm512_maskz_cvtph_epi64): Likewise.
4310 (_mm512_cvt_roundph_epi64): Likewise.
4311 (_mm512_mask_cvt_roundph_epi64): Likewise.
4312 (_mm512_maskz_cvt_roundph_epi64): Likewise.
4313 (_mm512_cvtph_epu64): Likewise.
4314 (_mm512_mask_cvtph_epu64): Likewise.
4315 (_mm512_maskz_cvtph_epu64): Likewise.
4316 (_mm512_cvt_roundph_epu64): Likewise.
4317 (_mm512_mask_cvt_roundph_epu64): Likewise.
4318 (_mm512_maskz_cvt_roundph_epu64): Likewise.
4319 (_mm512_cvtph_epi16): Likewise.
4320 (_mm512_mask_cvtph_epi16): Likewise.
4321 (_mm512_maskz_cvtph_epi16): Likewise.
4322 (_mm512_cvt_roundph_epi16): Likewise.
4323 (_mm512_mask_cvt_roundph_epi16): Likewise.
4324 (_mm512_maskz_cvt_roundph_epi16): Likewise.
4325 (_mm512_cvtph_epu16): Likewise.
4326 (_mm512_mask_cvtph_epu16): Likewise.
4327 (_mm512_maskz_cvtph_epu16): Likewise.
4328 (_mm512_cvt_roundph_epu16): Likewise.
4329 (_mm512_mask_cvt_roundph_epu16): Likewise.
4330 (_mm512_maskz_cvt_roundph_epu16): Likewise.
4331 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_epi32):
4333 (_mm_mask_cvtph_epi32): Likewise.
4334 (_mm_maskz_cvtph_epi32): Likewise.
4335 (_mm256_cvtph_epi32): Likewise.
4336 (_mm256_mask_cvtph_epi32): Likewise.
4337 (_mm256_maskz_cvtph_epi32): Likewise.
4338 (_mm_cvtph_epu32): Likewise.
4339 (_mm_mask_cvtph_epu32): Likewise.
4340 (_mm_maskz_cvtph_epu32): Likewise.
4341 (_mm256_cvtph_epu32): Likewise.
4342 (_mm256_mask_cvtph_epu32): Likewise.
4343 (_mm256_maskz_cvtph_epu32): Likewise.
4344 (_mm_cvtph_epi64): Likewise.
4345 (_mm_mask_cvtph_epi64): Likewise.
4346 (_mm_maskz_cvtph_epi64): Likewise.
4347 (_mm256_cvtph_epi64): Likewise.
4348 (_mm256_mask_cvtph_epi64): Likewise.
4349 (_mm256_maskz_cvtph_epi64): Likewise.
4350 (_mm_cvtph_epu64): Likewise.
4351 (_mm_mask_cvtph_epu64): Likewise.
4352 (_mm_maskz_cvtph_epu64): Likewise.
4353 (_mm256_cvtph_epu64): Likewise.
4354 (_mm256_mask_cvtph_epu64): Likewise.
4355 (_mm256_maskz_cvtph_epu64): Likewise.
4356 (_mm_cvtph_epi16): Likewise.
4357 (_mm_mask_cvtph_epi16): Likewise.
4358 (_mm_maskz_cvtph_epi16): Likewise.
4359 (_mm256_cvtph_epi16): Likewise.
4360 (_mm256_mask_cvtph_epi16): Likewise.
4361 (_mm256_maskz_cvtph_epi16): Likewise.
4362 (_mm_cvtph_epu16): Likewise.
4363 (_mm_mask_cvtph_epu16): Likewise.
4364 (_mm_maskz_cvtph_epu16): Likewise.
4365 (_mm256_cvtph_epu16): Likewise.
4366 (_mm256_mask_cvtph_epu16): Likewise.
4367 (_mm256_maskz_cvtph_epu16): Likewise.
4368 * config/i386/i386-builtin-types.def: Add new builtin types.
4369 * config/i386/i386-builtin.def: Add new builtins.
4370 * config/i386/i386-expand.c
4371 (ix86_expand_args_builtin): Handle new builtin types.
4372 (ix86_expand_round_builtin): Ditto.
4373 * config/i386/sse.md (sseintconvert): New.
4375 (UNSPEC_US_FIX_NOTRUNC): Ditto.
4376 (sseintconvertsignprefix): Ditto.
4377 (avx512fp16_vcvtph2<sseintconvertsignprefix><sseintconvert>_<mode><mask_name><round_name>):
4380 2021-09-16 liuhongt <hongtao.liu@intel.com>
4382 * config/i386/avx512fp16intrin.h: (_mm_cvtsi16_si128):
4384 (_mm_cvtsi128_si16): Likewise.
4385 (_mm_mask_load_sh): Likewise.
4386 (_mm_maskz_load_sh): Likewise.
4387 (_mm_mask_store_sh): Likewise.
4388 (_mm_move_sh): Likewise.
4389 (_mm_mask_move_sh): Likewise.
4390 (_mm_maskz_move_sh): Likewise.
4391 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4392 * config/i386/i386-builtin.def: Add corresponding new builtins.
4393 * config/i386/i386-expand.c
4394 (ix86_expand_special_args_builtin): Handle new builtin types.
4395 (ix86_expand_vector_init_one_nonzero): Adjust for FP16 target.
4396 * config/i386/sse.md (VI2F): New mode iterator.
4397 (vec_set<mode>_0): Use new mode iterator.
4398 (avx512f_mov<ssescalarmodelower>_mask): Adjust for HF vector mode.
4399 (avx512f_store<mode>_mask): Ditto.
4401 2021-09-16 Kewen Lin <linkw@linux.ibm.com>
4403 * config/rs6000/rs6000.opt (-mtoc-fusion): Remove.
4405 2021-09-15 David Edelsohn <dje.gcc@gmail.com>
4407 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
4408 Proceed if no symbol summary or the symbol alias flag is false.
4410 2021-09-15 Jakub Jelinek <jakub@redhat.com>
4414 * varasm.c (output_constructor_regular_field): Instead of assertion
4415 that array_size_for_constructor result is equal to size of
4416 TREE_TYPE (local->val) in bytes, assert that the type size is greater
4417 or equal to array_size_for_constructor result and use type size as
4420 2021-09-15 Martin Liska <mliska@suse.cz>
4423 * config/i386/vxworks.h: Use new macro TARGET_CPU_P.
4425 2021-09-15 Martin Liska <mliska@suse.cz>
4428 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
4429 Check that we have a symbol summary for a symbol.
4431 2021-09-15 Richard Biener <rguenther@suse.de>
4434 * config/rs6000/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
4435 to inherit from elfos.h
4437 2021-09-15 liuhongt <hongtao.liu@intel.com>
4440 * config/i386/i386-expand.c
4441 (ix86_expand_vector_init_interleave): Use puncklwd to pack 2
4443 (ix86_expand_vector_set): Use blendw instead of pinsrw.
4444 * config/i386/i386.c (ix86_can_change_mode_class): Adjust for
4445 AVX512FP16 which supports 16bit vector load.
4446 * config/i386/sse.md (avx512bw_interleave_highv32hi<mask_name>):
4448 (avx512bw_interleave_high<mode><mask_name>): .. this, and
4449 extend to V32HFmode.
4450 (avx2_interleave_highv16hi<mask_name>): Rename to ..
4451 (avx2_interleave_high<mode><mask_name>): .. this, and extend
4453 (vec_interleave_highv8hi<mask_name>): Rename to ..
4454 (vec_interleave_high<mode><mask_name>): .. this, and extend to V8HFmode.
4455 (<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>):
4457 (<mask_codefor>avx512bw_interleave_low<mode><mask_name>):
4458 this, and extend to V32HFmode.
4459 (avx2_interleave_lowv16hi<mask_name>): Rename to ..
4460 (avx2_interleave_low<mode><mask_name>): .. this, and extend to V16HFmode.
4461 (vec_interleave_lowv8hi<mask_name>): Rename to ..
4462 (vec_interleave_low<mode><mask_name>): .. this, and extend to V8HFmode.
4463 (sse4_1_pblendw): Rename to ..
4464 (sse4_1_pblend<blendsuf>): .. this, and extend to V8HFmode.
4465 (avx2_pblendph): New define_expand.
4466 (<sse2p4_1>_pinsr<ssemodesuffix>): Refactor, use
4467 sseintmodesuffix instead of ssemodesuffix.
4468 (blendsuf): New mode attr.
4470 2021-09-15 Richard Biener <rguenther@suse.de>
4472 * tree-vectorizer.h (dr_misalignment): Move out of line.
4473 (dr_target_alignment): New.
4474 (DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
4475 (set_dr_target_alignment): New.
4476 (SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
4477 * tree-vect-data-refs.c (dr_misalignment): Compute and
4478 return the group members misalignment.
4479 (vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
4480 (vect_analyze_data_refs_alignment): Compute alignment only
4481 for the first element of a DR group.
4482 (vect_slp_analyze_node_alignment): Likewise.
4484 2021-09-15 Hongyu Wang <hongyu.wang@intel.com>
4486 * config/i386/avx512fp16intrin.h: Adjust all builtin calls.
4487 * config/i386/avx512fp16vlintrin.h: Likewise.
4488 * config/i386/i386-builtin.def: Adjust builtin name and
4489 enumeration to match AVX512F style.
4491 2021-09-15 Richard Biener <rguenther@suse.de>
4493 PR tree-optimization/102318
4494 * tree-vect-loop.c (vect_transform_cycle_phi): Revert
4495 previous change and do the mode conversion separately from
4496 the sign conversion.
4498 2021-09-15 Hongtao Liu <hongtao.liu@intel.com>
4499 Peter Cordes <peter@cordes.ca>
4502 * config/i386/sse.md (extract_suf): Add V8SF/V8SI/V4DF/V4DI.
4503 (*vec_extract<mode><ssescalarmodelower>_valign): Output
4504 vextract{i,f}{32x4,64x2} instruction when byte_offset % 16 ==
4507 2021-09-15 Richard Biener <rguenther@suse.de>
4509 * config.gcc: Remove vax-*-openbsd* configuration.
4511 2021-09-15 Richard Biener <rguenther@suse.de>
4513 * config.gcc: Remove m68k-openbsd.
4515 2021-09-15 Max Filippov <jcmvbkbc@gmail.com>
4518 * config/xtensa/t-xtensa (TM_H): Add include/xtensa-config.h.
4520 2021-09-14 Peter Bergner <bergner@linux.ibm.com>
4522 * config/rs6000/mma.md (unspec): Delete UNSPEC_MMA_XXSETACCZ.
4523 (unspecv): Add UNSPECV_MMA_XXSETACCZ.
4524 (*mma_xxsetaccz): Delete.
4525 (mma_xxsetaccz): Change to define_insn. Remove operand 1.
4526 Use UNSPECV_MMA_XXSETACCZ. Update comment.
4527 * config/rs6000/rs6000.c (rs6000_rtx_costs): Use UNSPECV_MMA_XXSETACCZ.
4529 2021-09-14 Iain Sandoe <iain@sandoe.co.uk>
4531 * Makefile.in: Remove variables related to applying no-PIE
4532 to the exes on $build.
4533 * configure: Regenerate.
4534 * configure.ac: Remove configuration related to applying
4535 no-PIE to the exes on $build.
4537 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
4539 * config/arc/arc.md (doloop_end): Add missing mode.
4540 (loop_end): Likewise.
4542 2021-09-14 Jakub Jelinek <jakub@redhat.com>
4544 * gimplify.c (goa_stabilize_expr): Add depth argument, propagate
4545 it to recursive calls, for depth above 7 just gimplify or return.
4546 Perform a test even for MODIFY_EXPR, ADDR_EXPR, COMPOUND_EXPR with
4547 __builtin_clear_padding and TARGET_EXPR.
4548 (gimplify_omp_atomic): Adjust goa_stabilize_expr callers.
4550 2021-09-14 liuhongt <hongtao.liu@intel.com>
4552 * config/i386/avx512fp16intrin.h (_mm_fpclass_sh_mask):
4554 (_mm_mask_fpclass_sh_mask): Likewise.
4555 (_mm512_mask_fpclass_ph_mask): Likewise.
4556 (_mm512_fpclass_ph_mask): Likewise.
4557 (_mm_getexp_sh): Likewise.
4558 (_mm_mask_getexp_sh): Likewise.
4559 (_mm_maskz_getexp_sh): Likewise.
4560 (_mm512_getexp_ph): Likewise.
4561 (_mm512_mask_getexp_ph): Likewise.
4562 (_mm512_maskz_getexp_ph): Likewise.
4563 (_mm_getexp_round_sh): Likewise.
4564 (_mm_mask_getexp_round_sh): Likewise.
4565 (_mm_maskz_getexp_round_sh): Likewise.
4566 (_mm512_getexp_round_ph): Likewise.
4567 (_mm512_mask_getexp_round_ph): Likewise.
4568 (_mm512_maskz_getexp_round_ph): Likewise.
4569 (_mm_getmant_sh): Likewise.
4570 (_mm_mask_getmant_sh): Likewise.
4571 (_mm_maskz_getmant_sh): Likewise.
4572 (_mm512_getmant_ph): Likewise.
4573 (_mm512_mask_getmant_ph): Likewise.
4574 (_mm512_maskz_getmant_ph): Likewise.
4575 (_mm_getmant_round_sh): Likewise.
4576 (_mm_mask_getmant_round_sh): Likewise.
4577 (_mm_maskz_getmant_round_sh): Likewise.
4578 (_mm512_getmant_round_ph): Likewise.
4579 (_mm512_mask_getmant_round_ph): Likewise.
4580 (_mm512_maskz_getmant_round_ph): Likewise.
4581 * config/i386/avx512fp16vlintrin.h (_mm_mask_fpclass_ph_mask):
4583 (_mm_fpclass_ph_mask): Likewise.
4584 (_mm256_mask_fpclass_ph_mask): Likewise.
4585 (_mm256_fpclass_ph_mask): Likewise.
4586 (_mm256_getexp_ph): Likewise.
4587 (_mm256_mask_getexp_ph): Likewise.
4588 (_mm256_maskz_getexp_ph): Likewise.
4589 (_mm_getexp_ph): Likewise.
4590 (_mm_mask_getexp_ph): Likewise.
4591 (_mm_maskz_getexp_ph): Likewise.
4592 (_mm256_getmant_ph): Likewise.
4593 (_mm256_mask_getmant_ph): Likewise.
4594 (_mm256_maskz_getmant_ph): Likewise.
4595 (_mm_getmant_ph): Likewise.
4596 (_mm_mask_getmant_ph): Likewise.
4597 (_mm_maskz_getmant_ph): Likewise.
4598 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4599 * config/i386/i386-builtin.def: Add corresponding new builtins.
4600 * config/i386/i386-expand.c
4601 (ix86_expand_args_builtin): Handle new builtin types.
4602 (ix86_expand_round_builtin): Ditto.
4603 * config/i386/sse.md (vecmemsuffix): Add HF vector modes.
4604 (<avx512>_getexp<mode><mask_name><round_saeonly_name>): Adjust
4605 to support HF vector modes.
4606 (avx512f_sgetexp<mode><mask_scalar_name><round_saeonly_scalar_name):
4608 (avx512dq_fpclass<mode><mask_scalar_merge_name>): Ditto.
4609 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Ditto.
4610 (<avx512>_getmant<mode><mask_name><round_saeonly_name>): Ditto.
4611 (avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
4614 2021-09-14 liuhongt <hongtao.liu@intel.com>
4616 * config/i386/avx512fp16intrin.h (_mm512_reduce_ph):
4618 (_mm512_mask_reduce_ph): Likewise.
4619 (_mm512_maskz_reduce_ph): Likewise.
4620 (_mm512_reduce_round_ph): Likewise.
4621 (_mm512_mask_reduce_round_ph): Likewise.
4622 (_mm512_maskz_reduce_round_ph): Likewise.
4623 (_mm_reduce_sh): Likewise.
4624 (_mm_mask_reduce_sh): Likewise.
4625 (_mm_maskz_reduce_sh): Likewise.
4626 (_mm_reduce_round_sh): Likewise.
4627 (_mm_mask_reduce_round_sh): Likewise.
4628 (_mm_maskz_reduce_round_sh): Likewise.
4629 (_mm512_roundscale_ph): Likewise.
4630 (_mm512_mask_roundscale_ph): Likewise.
4631 (_mm512_maskz_roundscale_ph): Likewise.
4632 (_mm512_roundscale_round_ph): Likewise.
4633 (_mm512_mask_roundscale_round_ph): Likewise.
4634 (_mm512_maskz_roundscale_round_ph): Likewise.
4635 (_mm_roundscale_sh): Likewise.
4636 (_mm_mask_roundscale_sh): Likewise.
4637 (_mm_maskz_roundscale_sh): Likewise.
4638 (_mm_roundscale_round_sh): Likewise.
4639 (_mm_mask_roundscale_round_sh): Likewise.
4640 (_mm_maskz_roundscale_round_sh): Likewise.
4641 * config/i386/avx512fp16vlintrin.h: (_mm_reduce_ph):
4643 (_mm_mask_reduce_ph): Likewise.
4644 (_mm_maskz_reduce_ph): Likewise.
4645 (_mm256_reduce_ph): Likewise.
4646 (_mm256_mask_reduce_ph): Likewise.
4647 (_mm256_maskz_reduce_ph): Likewise.
4648 (_mm_roundscale_ph): Likewise.
4649 (_mm_mask_roundscale_ph): Likewise.
4650 (_mm_maskz_roundscale_ph): Likewise.
4651 (_mm256_roundscale_ph): Likewise.
4652 (_mm256_mask_roundscale_ph): Likewise.
4653 (_mm256_maskz_roundscale_ph): Likewise.
4654 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4655 * config/i386/i386-builtin.def: Add corresponding new builtins.
4656 * config/i386/i386-expand.c
4657 (ix86_expand_args_builtin): Handle new builtin types.
4658 (ix86_expand_round_builtin): Ditto.
4659 * config/i386/sse.md (<mask_codefor>reducep<mode><mask_name>):
4661 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
4662 ... this, and adjust for round operands.
4663 (reduces<mode><mask_scalar_name>): Likewise, with ...
4664 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name):
4666 (<avx512>_rndscale<mode><mask_name><round_saeonly_name>):
4667 Adjust for HF vector modes.
4668 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
4670 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
4672 2021-09-14 liuhongt <hongtao.liu@intel.com>
4674 * config/i386/avx512fp16intrin.h: (_mm512_rcp_ph):
4676 (_mm512_mask_rcp_ph): Likewise.
4677 (_mm512_maskz_rcp_ph): Likewise.
4678 (_mm_rcp_sh): Likewise.
4679 (_mm_mask_rcp_sh): Likewise.
4680 (_mm_maskz_rcp_sh): Likewise.
4681 (_mm512_scalef_ph): Likewise.
4682 (_mm512_mask_scalef_ph): Likewise.
4683 (_mm512_maskz_scalef_ph): Likewise.
4684 (_mm512_scalef_round_ph): Likewise.
4685 (_mm512_mask_scalef_round_ph): Likewise.
4686 (_mm512_maskz_scalef_round_ph): Likewise.
4687 (_mm_scalef_sh): Likewise.
4688 (_mm_mask_scalef_sh): Likewise.
4689 (_mm_maskz_scalef_sh): Likewise.
4690 (_mm_scalef_round_sh): Likewise.
4691 (_mm_mask_scalef_round_sh): Likewise.
4692 (_mm_maskz_scalef_round_sh): Likewise.
4693 * config/i386/avx512fp16vlintrin.h (_mm_rcp_ph):
4695 (_mm256_rcp_ph): Likewise.
4696 (_mm_mask_rcp_ph): Likewise.
4697 (_mm256_mask_rcp_ph): Likewise.
4698 (_mm_maskz_rcp_ph): Likewise.
4699 (_mm256_maskz_rcp_ph): Likewise.
4700 (_mm_scalef_ph): Likewise.
4701 (_mm256_scalef_ph): Likewise.
4702 (_mm_mask_scalef_ph): Likewise.
4703 (_mm256_mask_scalef_ph): Likewise.
4704 (_mm_maskz_scalef_ph): Likewise.
4705 (_mm256_maskz_scalef_ph): Likewise.
4706 * config/i386/i386-builtin.def: Add new builtins.
4707 * config/i386/sse.md (VFH_AVX512VL): New.
4708 (avx512fp16_rcp<mode>2<mask_name>): Ditto.
4709 (avx512fp16_vmrcpv8hf2<mask_scalar_name>): Ditto.
4710 (avx512f_vmscalef<mode><mask_scalar_name><round_scalar_name>):
4711 Adjust to support HF vector modes.
4712 (<avx512>_scalef<mode><mask_name><round_name>): Ditto.
4714 2021-09-14 liuhongt <hongtao.liu@intel.com>
4716 * config/i386/avx512fp16intrin.h: (_mm512_sqrt_ph):
4718 (_mm512_mask_sqrt_ph): Likewise.
4719 (_mm512_maskz_sqrt_ph): Likewise.
4720 (_mm512_sqrt_round_ph): Likewise.
4721 (_mm512_mask_sqrt_round_ph): Likewise.
4722 (_mm512_maskz_sqrt_round_ph): Likewise.
4723 (_mm512_rsqrt_ph): Likewise.
4724 (_mm512_mask_rsqrt_ph): Likewise.
4725 (_mm512_maskz_rsqrt_ph): Likewise.
4726 (_mm_rsqrt_sh): Likewise.
4727 (_mm_mask_rsqrt_sh): Likewise.
4728 (_mm_maskz_rsqrt_sh): Likewise.
4729 (_mm_sqrt_sh): Likewise.
4730 (_mm_mask_sqrt_sh): Likewise.
4731 (_mm_maskz_sqrt_sh): Likewise.
4732 (_mm_sqrt_round_sh): Likewise.
4733 (_mm_mask_sqrt_round_sh): Likewise.
4734 (_mm_maskz_sqrt_round_sh): Likewise.
4735 * config/i386/avx512fp16vlintrin.h (_mm_sqrt_ph): New intrinsic.
4736 (_mm256_sqrt_ph): Likewise.
4737 (_mm_mask_sqrt_ph): Likewise.
4738 (_mm256_mask_sqrt_ph): Likewise.
4739 (_mm_maskz_sqrt_ph): Likewise.
4740 (_mm256_maskz_sqrt_ph): Likewise.
4741 (_mm_rsqrt_ph): Likewise.
4742 (_mm256_rsqrt_ph): Likewise.
4743 (_mm_mask_rsqrt_ph): Likewise.
4744 (_mm256_mask_rsqrt_ph): Likewise.
4745 (_mm_maskz_rsqrt_ph): Likewise.
4746 (_mm256_maskz_rsqrt_ph): Likewise.
4747 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4748 * config/i386/i386-builtin.def: Add corresponding new builtins.
4749 * config/i386/i386-expand.c
4750 (ix86_expand_args_builtin): Handle new builtins.
4751 (ix86_expand_round_builtin): Ditto.
4752 * config/i386/sse.md (VF_AVX512FP16VL): New.
4753 (sqrt<mode>2): Adjust for HF vector modes.
4754 (<sse>_sqrt<mode>2<mask_name><round_name>): Likewise.
4755 (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
4757 (<sse>_rsqrt<mode>2<mask_name>): New.
4758 (avx512fp16_vmrsqrtv8hf2<mask_scalar_name>): Likewise.
4760 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
4763 * diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
4764 'RESERVED_LOCATION_P' locations.
4765 * warning-control.cc (get_nowarn_spec, suppress_warning)
4766 (copy_warning): Likewise.
4768 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
4770 * diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
4771 (typedef key_type_t): ... this. Remove.
4772 (nowarn_map): Document.
4773 * diagnostic-spec.c (nowarn_map): Likewise.
4774 * warning-control.cc (convert_to_key): Evolve functions into...
4775 (get_location): ... these. Adjust all users.
4777 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
4779 * warning-control.cc (copy_warning): Remove 'nowarn_map' setup.
4781 2021-09-13 Jason Merrill <jason@redhat.com>
4783 * params.opt: Add destructive-interference-size and
4784 constructive-interference-size.
4785 * doc/invoke.texi: Document them.
4786 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4788 * config/arm/arm.c (arm_option_override): Set them.
4789 * config/i386/i386-options.c (ix86_option_override_internal):
4792 2021-09-13 Martin Liska <mliska@suse.cz>
4793 H.J. Lu <hjl.tools@gmail.com>
4796 * common/config/i386/cpuinfo.h (cpu_indicator_init): Add support
4797 for x86-64 micro levels for __builtin_cpu_supports.
4798 * common/config/i386/i386-cpuinfo.h (enum feature_priority):
4799 Add priorities for the micro-arch levels.
4800 (enum processor_features): Add new features.
4801 * common/config/i386/i386-isas.h: Add micro-arch features.
4802 * config/i386/i386-builtins.c (get_builtin_code_for_version):
4803 Support the micro-arch levels by callsing
4804 __builtin_cpu_supports.
4805 * doc/extend.texi: Document that the levels are support by
4806 __builtin_cpu_supports.
4808 2021-09-13 Andrew Pinski <apinski@marvell.com>
4811 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
4813 (aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
4814 (aarch64_general_gimple_fold_builtin): Likewise.
4816 2021-09-13 Andrew Pinski <apinski@marvell.com>
4818 * config.gcc: Add m32r-*-linux* and m32rle-*-linux*
4819 to the Unsupported targets list.
4820 Remove support for m32r-*-linux* and m32rle-*-linux*.
4821 * config/m32r/linux.h: Removed.
4822 * config/m32r/t-linux: Removed.
4824 2021-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4827 * config/aarch64/aarch64.c (aarch64_classify_address): Don't allow
4828 register index for SVE predicate modes.
4830 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
4832 * tree-ssa-threadbackward.c
4833 (back_threader_profitability::profitable_path_p): Remove FSM
4835 (back_threader_registry::register_path): Same.
4836 * tree-ssa-threadedge.c
4837 (jump_threader::simplify_control_stmt_condition): Same.
4838 * tree-ssa-threadupdate.c (jt_path_registry::jt_path_registry):
4839 Add backedge_threads argument.
4840 (fwd_jt_path_registry::fwd_jt_path_registry): Pass
4841 backedge_threads argument.
4842 (back_jt_path_registry::back_jt_path_registry): Same.
4843 (dump_jump_thread_path): Adjust for FSM removal.
4844 (back_jt_path_registry::rewire_first_differing_edge): Same.
4845 (back_jt_path_registry::adjust_paths_after_duplication): Same.
4846 (back_jt_path_registry::update_cfg): Same.
4847 (jt_path_registry::register_jump_thread): Same.
4848 * tree-ssa-threadupdate.h (enum jump_thread_edge_type): Remove
4850 (class back_jt_path_registry): Add backedge_threads to
4853 2021-09-13 Martin Liska <mliska@suse.cz>
4856 * asan.h (sanitize_coverage_p): Handle when fn == NULL.
4858 2021-09-13 H.J. Lu <hjl.tools@gmail.com>
4861 * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): New.
4862 (TARGET_AVX256_STORE_BY_PIECES): Likewise.
4863 (MOVE_MAX): Check TARGET_AVX256_MOVE_BY_PIECES and
4864 TARGET_AVX256_STORE_BY_PIECES instead of
4865 TARGET_AVX256_SPLIT_UNALIGNED_LOAD and
4866 TARGET_AVX256_SPLIT_UNALIGNED_STORE.
4867 (STORE_MAX_PIECES): Check TARGET_AVX256_STORE_BY_PIECES instead
4868 of TARGET_AVX256_SPLIT_UNALIGNED_STORE.
4869 * config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES): New.
4870 (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
4872 2021-09-13 liuhongt <hongtao.liu@intel.com>
4875 * expmed.c (extract_bit_field_using_extv): Use
4876 gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
4878 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
4880 * Makefile.in (OBJS): Add value-pointer-equiv.o.
4881 * gimple-ssa-evrp.c (class ssa_equiv_stack): Move to
4882 value-pointer-equiv.*.
4883 (ssa_equiv_stack::ssa_equiv_stack): Same.
4884 (ssa_equiv_stack::enter): Same.
4885 (ssa_equiv_stack::leave): Same.
4886 (ssa_equiv_stack::push_replacement): Same.
4887 (ssa_equiv_stack::get_replacement): Same.
4888 (is_pointer_ssa): Same.
4889 (class pointer_equiv_analyzer): Same.
4890 (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
4891 (pointer_equiv_analyzer::~pointer_equiv_analyzer): Same.
4892 (pointer_equiv_analyzer::set_global_equiv): Same.
4893 (pointer_equiv_analyzer::set_cond_equiv): Same.
4894 (pointer_equiv_analyzer::get_equiv): Same.
4895 (pointer_equiv_analyzer::enter): Same.
4896 (pointer_equiv_analyzer::leave): Same.
4897 (pointer_equiv_analyzer::get_equiv_expr): Same.
4898 (pta_valueize): Same.
4899 (pointer_equiv_analyzer::visit_stmt): Same.
4900 (pointer_equiv_analyzer::visit_edge): Same.
4901 (hybrid_folder::value_of_expr): Same.
4902 (hybrid_folder::value_on_edge): Same.
4903 * value-pointer-equiv.cc: New file.
4904 * value-pointer-equiv.h: New file.
4906 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
4909 * gimple-fold.c (gimple_fold_builtin_memory_op): Allow folding
4910 memcpy if the size is not more than MOVE_MAX * MOVE_RATIO.
4912 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
4915 * config/arm/arm.md (movmisaligndi): New define_expand.
4916 * config/arm/vec-common.md (movmisalign<mode>): Iterate over VDQ mode.
4918 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
4921 * emit-rtl.c (gen_highpart): Use adjust_address to handle
4922 MEM rather than calling simplify_gen_subreg.
4924 2021-09-13 Jan-Benedict Glaw <jbglaw@ług-owl.de>
4926 * config/alpha/vms.h (INIT_CUMULATIVE_ARGS): Wrap multi-statment
4927 define into a block.
4929 2021-09-13 Richard Biener <rguenther@suse.de>
4931 * config/darwin.h (DARWIN_PREFER_DWARF): Do not define.
4932 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Do not
4933 change based on DARWIN_PREFER_DWARF not being defined.
4935 2021-09-13 Richard Biener <rguenther@suse.de>
4937 * config/i386/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
4938 to inherit from elfos.h
4940 2021-09-13 Richard Biener <rguenther@suse.de>
4942 * config.gcc: Add cr16-*-* to the list of obsoleted targets.
4944 2021-09-13 Richard Biener <rguenther@suse.de>
4946 * config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
4947 override, pick up DWARF2_DEBUG define from elfos.h
4949 2021-09-13 Richard Biener <rguenther@suse.de>
4951 * config/rx/rx.h (PREFERRED_DEBUGGING_TYPE): Always define to
4954 2021-09-13 Richard Biener <rguenther@suse.de>
4956 * config/alpha/vms.h (PREFERRED_DEBUGGING_TYPE): Define to
4959 2021-09-13 Richard Biener <rguenther@suse.de>
4961 * config/i386/cygming.h: Always default to DWARF2 debugging.
4962 Do not define DBX_DEBUGGING_INFO, that's done via dbxcoff.h
4964 * doc/install.texi: Document binutils 2.16 as minimum
4965 requirement for mingw.
4967 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
4969 * config/rs6000/rs6000.c (struct rs6000_cost_data): New members
4970 nstmts, nloads and extra_ctor_cost.
4971 (rs6000_density_test): Add load density related heuristics. Do
4972 extra costing on vector construction statements if need.
4973 (rs6000_init_cost): Init new members.
4974 (rs6000_update_target_cost_per_stmt): New function.
4975 (rs6000_add_stmt_cost): Factor vect_nonmem hunk out to function
4976 rs6000_update_target_cost_per_stmt and call it.
4978 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
4980 * config/rs6000/rs6000.c (struct rs6000_cost_data): Remove typedef.
4981 (rs6000_init_cost): Adjust.
4983 2021-09-13 liuhongt <hongtao.liu@intel.com>
4985 * config/i386/i386.md: (UNSPEC_COPYSIGN): Remove.
4986 (UNSPEC_XORSIGN): Ditto.
4988 2021-09-12 Roger Sayle <roger@nextmovesoftware.com>
4990 * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when
4991 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
4994 2021-09-11 Aldy Hernandez <aldyh@redhat.com>
4996 * tree-ssa-threadbackward.c (class back_threader_registry): Use
4997 back_jt_path_registry.
4998 * tree-ssa-threadedge.c (jump_threader::jump_threader): Use
4999 fwd_jt_path_registry.
5000 * tree-ssa-threadedge.h (class jump_threader): Same..
5001 * tree-ssa-threadupdate.c
5002 (jump_thread_path_registry::jump_thread_path_registry): Rename...
5003 (jt_path_registry::jt_path_registry): ...to this.
5004 (jump_thread_path_registry::~jump_thread_path_registry): Rename...
5005 (jt_path_registry::~jt_path_registry): ...this.
5006 (fwd_jt_path_registry::fwd_jt_path_registry): New.
5007 (fwd_jt_path_registry::~fwd_jt_path_registry): New.
5008 (jump_thread_path_registry::allocate_thread_edge): Rename...
5009 (jt_path_registry::allocate_thread_edge): ...to this.
5010 (jump_thread_path_registry::allocate_thread_path): Rename...
5011 (jt_path_registry::allocate_thread_path): ...to this.
5012 (jump_thread_path_registry::lookup_redirection_data): Rename...
5013 (fwd_jt_path_registry::lookup_redirection_data): ...to this.
5014 (jump_thread_path_registry::thread_block_1): Rename...
5015 (fwd_jt_path_registry::thread_block_1): ...to this.
5016 (jump_thread_path_registry::thread_block): Rename...
5017 (fwd_jt_path_registry::thread_block): ...to this.
5018 (jt_path_registry::thread_through_loop_header): Rename...
5019 (fwd_jt_path_registry::thread_through_loop_header): ...to this.
5020 (jump_thread_path_registry::mark_threaded_blocks): Rename...
5021 (fwd_jt_path_registry::mark_threaded_blocks): ...to this.
5022 (jump_thread_path_registry::debug_path): Rename...
5023 (jt_path_registry::debug_path): ...to this.
5024 (jump_thread_path_registry::dump): Rename...
5025 (jt_path_registry::debug): ...to this.
5026 (jump_thread_path_registry::rewire_first_differing_edge): Rename...
5027 (back_jt_path_registry::rewire_first_differing_edge): ...to this.
5028 (jump_thread_path_registry::adjust_paths_after_duplication): Rename...
5029 (back_jt_path_registry::adjust_paths_after_duplication): ...to this.
5030 (jump_thread_path_registry::duplicate_thread_path): Rename...
5031 (back_jt_path_registry::duplicate_thread_path): ...to this. Also,
5032 drop ill-formed candidates.
5033 (jump_thread_path_registry::remove_jump_threads_including): Rename...
5034 (fwd_jt_path_registry::remove_jump_threads_including): ...to this.
5035 (jt_path_registry::thread_through_all_blocks): New.
5036 (back_jt_path_registry::update_cfg): New.
5037 (fwd_jt_path_registry::update_cfg): New.
5038 (jump_thread_path_registry::register_jump_thread): Rename...
5039 (jt_path_registry::register_jump_thread): ...to this.
5040 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
5042 (class jt_path_registry): ...here.
5043 (class fwd_jt_path_registry): New.
5044 (class back_jt_path_registry): New.
5046 2021-09-10 liuhongt <hongtao.liu@intel.com>
5049 2021-09-01 liuhongt <hongtao.liu@intel.com>
5051 * emit-rtl.c (validate_subreg): Get rid of all float-int
5054 2021-09-10 Jakub Jelinek <jakub@redhat.com>
5056 * tree-core.h (enum omp_memory_order): Add OMP_MEMORY_ORDER_MASK,
5057 OMP_FAIL_MEMORY_ORDER_UNSPECIFIED, OMP_FAIL_MEMORY_ORDER_RELAXED,
5058 OMP_FAIL_MEMORY_ORDER_ACQUIRE, OMP_FAIL_MEMORY_ORDER_RELEASE,
5059 OMP_FAIL_MEMORY_ORDER_ACQ_REL, OMP_FAIL_MEMORY_ORDER_SEQ_CST and
5060 OMP_FAIL_MEMORY_ORDER_MASK enumerators.
5061 (OMP_FAIL_MEMORY_ORDER_SHIFT): Define.
5062 * gimple-pretty-print.c (dump_gimple_omp_atomic_load,
5063 dump_gimple_omp_atomic_store): Print [weak] for weak atomic
5065 * gimple.h (enum gf_mask): Change GF_OMP_ATOMIC_MEMORY_ORDER
5066 to 6-bit mask, adjust GF_OMP_ATOMIC_NEED_VALUE value and add
5068 (gimple_omp_atomic_weak_p, gimple_omp_atomic_set_weak): New inline
5070 * tree.h (OMP_ATOMIC_WEAK): Define.
5071 * tree-pretty-print.c (dump_omp_atomic_memory_order): Adjust for
5072 fail memory order being encoded in the same enum and also print
5073 fail clause if present.
5074 (dump_generic_node): Print weak clause if OMP_ATOMIC_WEAK.
5075 * gimplify.c (goa_stabilize_expr): Add target_expr and rhs arguments,
5076 handle pre_p == NULL case as a test mode that only returns value
5077 but doesn't change gimplify nor change anything otherwise, adjust
5078 recursive calls, add MODIFY_EXPR, ADDR_EXPR, COND_EXPR, TARGET_EXPR
5079 and CALL_EXPR handling, adjust COMPOUND_EXPR handling for
5080 __builtin_clear_padding calls, for !rhs gimplify as lvalue rather
5082 (gimplify_omp_atomic): Adjust goa_stabilize_expr caller. Handle
5083 COND_EXPR rhs. Set weak flag on gimple load/store for
5085 * omp-expand.c (omp_memory_order_to_fail_memmodel): New function.
5086 (omp_memory_order_to_memmodel): Adjust for fail clause encoded
5088 (expand_omp_atomic_cas): New function.
5089 (expand_omp_atomic_pipeline): Use omp_memory_order_to_fail_memmodel
5091 (expand_omp_atomic): Attempt to optimize atomic compare and exchange
5092 using expand_omp_atomic_cas.
5094 2021-09-10 Aldy Hernandez <aldyh@redhat.com>
5095 Michael Matz <matz@suse.de>
5097 * tree-pass.h (PROP_loop_opts_done): New.
5098 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
5099 Intersect with global range.
5100 * tree-ssa-loop.c (tree_ssa_loop_done): Set PROP_loop_opts_done.
5101 * tree-ssa-threadbackward.c
5102 (back_threader_profitability::profitable_path_p): Disable
5103 threading through latches until after loop optimizations have run.
5105 2021-09-10 David Faust <david.faust@oracle.com>
5107 * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32
5110 2021-09-10 David Faust <david.faust@oracle.com>
5112 * config/bpf/bpf-opts.h (bpf_isa_version): New enum.
5113 * config/bpf/bpf-protos.h (bpf_expand_cbranch): New.
5114 * config/bpf/bpf.c (bpf_option_override): Handle -mcpu option.
5115 (bpf_expand_cbranch): New function.
5116 * config/bpf/bpf.md (AM mode iterator): Conditionalize support for SI
5118 (zero_extendsidi2): Only use mov32 instruction if it is available.
5119 (SIM mode iterator): Conditionalize support for SI mode.
5120 (JM mode iterator): New.
5121 (cbranchdi4): Update name, use new JM iterator. Use bpf_expand_cbranch.
5122 (*branch_on_di): Update name, use new JM iterator.
5123 * config/bpf/bpf.opt: (mjmpext): New option.
5127 (bpf_isa): New enum.
5129 2021-09-10 David Faust <david.faust@oracle.com>
5131 * config/bpf/bpf.md (zero_extendhidi2): Add new output template
5132 for register-to-register extensions.
5133 (zero_extendqidi2): Likewise.
5135 2021-09-10 Richard Biener <rguenther@suse.de>
5137 PR middle-end/102273
5138 * internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.
5140 2021-09-10 Richard Biener <rguenther@suse.de>
5142 PR middle-end/102269
5143 * gimplify.c (is_var_need_auto_init): Empty types do not need
5146 2021-09-10 Richard Biener <rguenther@suse.de>
5148 * configure.ac (--with-stabs): Remove.
5149 * configure: Regenerate.
5150 * doc/install.texi: Remove --with-stabs documentation.
5152 2021-09-10 liuhongt <hongtao.liu@intel.com>
5154 * config/i386/avx512fp16intrin.h: (_mm512_cmp_ph_mask):
5156 (_mm512_mask_cmp_ph_mask): Likewise.
5157 (_mm512_cmp_round_ph_mask): Likewise.
5158 (_mm512_mask_cmp_round_ph_mask): Likewise.
5159 (_mm_cmp_sh_mask): Likewise.
5160 (_mm_mask_cmp_sh_mask): Likewise.
5161 (_mm_cmp_round_sh_mask): Likewise.
5162 (_mm_mask_cmp_round_sh_mask): Likewise.
5163 (_mm_comieq_sh): Likewise.
5164 (_mm_comilt_sh): Likewise.
5165 (_mm_comile_sh): Likewise.
5166 (_mm_comigt_sh): Likewise.
5167 (_mm_comige_sh): Likewise.
5168 (_mm_comineq_sh): Likewise.
5169 (_mm_ucomieq_sh): Likewise.
5170 (_mm_ucomilt_sh): Likewise.
5171 (_mm_ucomile_sh): Likewise.
5172 (_mm_ucomigt_sh): Likewise.
5173 (_mm_ucomige_sh): Likewise.
5174 (_mm_ucomineq_sh): Likewise.
5175 (_mm_comi_round_sh): Likewise.
5176 (_mm_comi_sh): Likewise.
5177 * config/i386/avx512fp16vlintrin.h (_mm_cmp_ph_mask): New intrinsic.
5178 (_mm_mask_cmp_ph_mask): Likewise.
5179 (_mm256_cmp_ph_mask): Likewise.
5180 (_mm256_mask_cmp_ph_mask): Likewise.
5181 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5182 * config/i386/i386-builtin.def: Add corresponding new builtins.
5183 * config/i386/i386-expand.c
5184 (ix86_expand_args_builtin): Handle new builtin types.
5185 (ix86_expand_round_builtin): Ditto.
5186 * config/i386/i386.md (ssevecmode): Add HF mode.
5187 (MODEFH): New mode iterator.
5188 * config/i386/sse.md
5189 (V48H_AVX512VL): New mode iterator to support HF vector modes.
5190 Ajdust corresponding description.
5191 (ssecmpintprefix): New.
5192 (VI12_AVX512VL): Adjust to support HF vector modes.
5193 (cmp_imm_predicate): Likewise.
5194 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
5196 (avx512f_vmcmp<mode>3<round_saeonly_name>): Likewise.
5197 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Likewise.
5198 (<sse>_<unord>comi<round_saeonly_name>): Likewise.
5200 2021-09-10 liuhongt <hongtao.liu@intel.com>
5202 * config/i386/avx512fp16intrin.h: (_mm512_max_ph): New intrinsic.
5203 (_mm512_mask_max_ph): Likewise.
5204 (_mm512_maskz_max_ph): Likewise.
5205 (_mm512_min_ph): Likewise.
5206 (_mm512_mask_min_ph): Likewise.
5207 (_mm512_maskz_min_ph): Likewise.
5208 (_mm512_max_round_ph): Likewise.
5209 (_mm512_mask_max_round_ph): Likewise.
5210 (_mm512_maskz_max_round_ph): Likewise.
5211 (_mm512_min_round_ph): Likewise.
5212 (_mm512_mask_min_round_ph): Likewise.
5213 (_mm512_maskz_min_round_ph): Likewise.
5214 (_mm_max_sh): Likewise.
5215 (_mm_mask_max_sh): Likewise.
5216 (_mm_maskz_max_sh): Likewise.
5217 (_mm_min_sh): Likewise.
5218 (_mm_mask_min_sh): Likewise.
5219 (_mm_maskz_min_sh): Likewise.
5220 (_mm_max_round_sh): Likewise.
5221 (_mm_mask_max_round_sh): Likewise.
5222 (_mm_maskz_max_round_sh): Likewise.
5223 (_mm_min_round_sh): Likewise.
5224 (_mm_mask_min_round_sh): Likewise.
5225 (_mm_maskz_min_round_sh): Likewise.
5226 * config/i386/avx512fp16vlintrin.h (_mm_max_ph): New intrinsic.
5227 (_mm256_max_ph): Likewise.
5228 (_mm_mask_max_ph): Likewise.
5229 (_mm256_mask_max_ph): Likewise.
5230 (_mm_maskz_max_ph): Likewise.
5231 (_mm256_maskz_max_ph): Likewise.
5232 (_mm_min_ph): Likewise.
5233 (_mm256_min_ph): Likewise.
5234 (_mm_mask_min_ph): Likewise.
5235 (_mm256_mask_min_ph): Likewise.
5236 (_mm_maskz_min_ph): Likewise.
5237 (_mm256_maskz_min_ph): Likewise.
5238 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5239 * config/i386/i386-builtin.def: Add corresponding new builtins.
5240 * config/i386/i386-expand.c
5241 (ix86_expand_args_builtin): Handle new builtin types.
5242 * config/i386/sse.md
5243 (<code><mode>3<mask_name><round_saeonly_name>): Adjust to
5244 support HF vector modes.
5245 (*<code><mode>3<mask_name><round_saeonly_name>): Likewise.
5246 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
5248 (<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
5250 * config/i386/subst.md (round_saeonly_mode512bit_condition):
5251 Adjust for HF vector modes.
5253 2021-09-10 Liu, Hongtao <hongtao.liu@intel.com>
5255 * config/i386/avx512fp16intrin.h (_mm_add_sh): New intrinsic.
5256 (_mm_mask_add_sh): Likewise.
5257 (_mm_maskz_add_sh): Likewise.
5258 (_mm_sub_sh): Likewise.
5259 (_mm_mask_sub_sh): Likewise.
5260 (_mm_maskz_sub_sh): Likewise.
5261 (_mm_mul_sh): Likewise.
5262 (_mm_mask_mul_sh): Likewise.
5263 (_mm_maskz_mul_sh): Likewise.
5264 (_mm_div_sh): Likewise.
5265 (_mm_mask_div_sh): Likewise.
5266 (_mm_maskz_div_sh): Likewise.
5267 (_mm_add_round_sh): Likewise.
5268 (_mm_mask_add_round_sh): Likewise.
5269 (_mm_maskz_add_round_sh): Likewise.
5270 (_mm_sub_round_sh): Likewise.
5271 (_mm_mask_sub_round_sh): Likewise.
5272 (_mm_maskz_sub_round_sh): Likewise.
5273 (_mm_mul_round_sh): Likewise.
5274 (_mm_mask_mul_round_sh): Likewise.
5275 (_mm_maskz_mul_round_sh): Likewise.
5276 (_mm_div_round_sh): Likewise.
5277 (_mm_mask_div_round_sh): Likewise.
5278 (_mm_maskz_div_round_sh): Likewise.
5279 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5280 * config/i386/i386-builtin.def: Add corresponding new builtins.
5281 * config/i386/i386-expand.c
5282 (ix86_expand_round_builtin): Handle new builtins.
5283 * config/i386/sse.md (VF_128): Change description.
5284 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>):
5285 Adjust to support HF vector modes.
5286 (<sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>):
5289 2021-09-10 H.J. Lu <hjl.tools@gmail.com>
5291 * config/i386/i386-expand.c
5292 (ix86_avx256_split_vector_move_misalign): Handle V16HF mode.
5293 * config/i386/i386.c
5294 (ix86_preferred_simd_mode): Handle HF mode.
5295 * config/i386/sse.md (V_256H): New mode iterator.
5296 (avx_vextractf128<mode>): Use it.
5297 (VEC_INIT_MODE): Align vector HFmode condition to vector
5298 HImodes since there're no real HF instruction used.
5299 (VEC_INIT_HALF_MODE): Ditto.
5301 (VIHF_AVX512BW): Ditto.
5302 (*vec_extracthf): Ditto.
5303 (VEC_EXTRACT_MODE): Ditto.
5305 2021-09-10 Richard Biener <rguenther@suse.de>
5308 * config/dbx.h: Remove.
5309 * config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
5310 * config/lynx.h: Likewise.
5312 2021-09-10 liuhongt <hongtao.liu@intel.com>
5314 * config/i386/i386-expand.c (ix86_expand_copysign): Expand
5315 right into ANDNOT + AND + IOR, using paradoxical subregs.
5316 (ix86_split_copysign_const): Remove.
5317 (ix86_split_copysign_var): Ditto.
5318 * config/i386/i386-protos.h (ix86_split_copysign_const): Dotto.
5319 (ix86_split_copysign_var): Ditto.
5320 * config/i386/i386.md (@copysign<mode>3_const): Ditto.
5321 (@copysign<mode>3_var): Ditto.
5323 2021-09-09 qing zhao <qing.zhao@oracle.com>
5325 * builtins.c (expand_builtin_memset): Make external visible.
5326 * builtins.h (expand_builtin_memset): Declare extern.
5327 * common.opt (ftrivial-auto-var-init=): New option.
5328 * doc/extend.texi: Document the uninitialized attribute.
5329 * doc/invoke.texi: Document -ftrivial-auto-var-init.
5330 * flag-types.h (enum auto_init_type): New enumerated type
5332 * gimple-fold.c (clear_padding_type): Add one new parameter.
5333 (clear_padding_union): Likewise.
5334 (clear_padding_emit_loop): Likewise.
5335 (clear_type_padding_in_mask): Likewise.
5336 (gimple_fold_builtin_clear_padding): Handle this new parameter.
5337 * gimplify.c (gimple_add_init_for_auto_var): New function.
5338 (gimple_add_padding_init_for_auto_var): New function.
5339 (is_var_need_auto_init): New function.
5340 (gimplify_decl_expr): Add initialization to automatic variables per
5342 (gimplify_call_expr): Add one new parameter for call to
5343 __builtin_clear_padding.
5344 (gimplify_init_constructor): Add padding initialization in the end.
5345 * internal-fn.c (INIT_PATTERN_VALUE): New macro.
5346 (expand_DEFERRED_INIT): New function.
5347 * internal-fn.def (DEFERRED_INIT): New internal function.
5348 * tree-cfg.c (verify_gimple_call): Verify calls to .DEFERRED_INIT.
5349 * tree-sra.c (generate_subtree_deferred_init): New function.
5350 (scan_function): Avoid setting cannot_scalarize_away_bitmap for
5351 calls to .DEFERRED_INIT.
5352 (sra_modify_deferred_init): New function.
5353 (sra_modify_function_body): Handle calls to DEFERRED_INIT specially.
5354 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
5355 * tree-ssa-uninit.c (warn_uninit): Handle calls to DEFERRED_INIT
5357 (check_defs): Likewise.
5358 (warn_uninitialized_vars): Likewise.
5359 * tree-ssa.c (ssa_undefined_value_p): Likewise.
5360 * tree.c (build_common_builtin_nodes): Build tree node for
5361 BUILT_IN_CLEAR_PADDING when needed.
5363 2021-09-09 Richard Biener <rguenther@suse.de>
5365 * tree-ssa-loop-im.c (fill_always_executed_in_1): Walk
5368 2021-09-09 Richard Biener <rguenther@suse.de>
5370 * tree-ssa-loop-im.c (fill_always_executed_in_1): Integrate
5371 DOM walk from get_loop_body_in_dom_order using a worklist
5374 2021-09-09 liuhongt <hongtao.liu@intel.com>
5376 * config.gcc: Add avx512fp16vlintrin.h.
5377 * config/i386/avx512fp16intrin.h: (_mm512_add_ph): New intrinsic.
5378 (_mm512_mask_add_ph): Likewise.
5379 (_mm512_maskz_add_ph): Likewise.
5380 (_mm512_sub_ph): Likewise.
5381 (_mm512_mask_sub_ph): Likewise.
5382 (_mm512_maskz_sub_ph): Likewise.
5383 (_mm512_mul_ph): Likewise.
5384 (_mm512_mask_mul_ph): Likewise.
5385 (_mm512_maskz_mul_ph): Likewise.
5386 (_mm512_div_ph): Likewise.
5387 (_mm512_mask_div_ph): Likewise.
5388 (_mm512_maskz_div_ph): Likewise.
5389 (_mm512_add_round_ph): Likewise.
5390 (_mm512_mask_add_round_ph): Likewise.
5391 (_mm512_maskz_add_round_ph): Likewise.
5392 (_mm512_sub_round_ph): Likewise.
5393 (_mm512_mask_sub_round_ph): Likewise.
5394 (_mm512_maskz_sub_round_ph): Likewise.
5395 (_mm512_mul_round_ph): Likewise.
5396 (_mm512_mask_mul_round_ph): Likewise.
5397 (_mm512_maskz_mul_round_ph): Likewise.
5398 (_mm512_div_round_ph): Likewise.
5399 (_mm512_mask_div_round_ph): Likewise.
5400 (_mm512_maskz_div_round_ph): Likewise.
5401 * config/i386/avx512fp16vlintrin.h: New header.
5402 * config/i386/i386-builtin-types.def (V16HF, V8HF, V32HF):
5403 Add new builtin types.
5404 * config/i386/i386-builtin.def: Add corresponding builtins.
5405 * config/i386/i386-expand.c
5406 (ix86_expand_args_builtin): Handle new builtin types.
5407 (ix86_expand_round_builtin): Likewise.
5408 * config/i386/immintrin.h: Include avx512fp16vlintrin.h
5409 * config/i386/sse.md (VFH): New mode_iterator.
5411 (avx512fmaskmode): Add HF vector modes.
5412 (avx512fmaskhalfmode): Likewise.
5413 (<plusminus_insn><mode>3<mask_name><round_name>): Adjust to for
5415 (*<plusminus_insn><mode>3<mask_name><round_name>): Likewise.
5416 (mul<mode>3<mask_name><round_name>): Likewise.
5417 (*mul<mode>3<mask_name><round_name>): Likewise.
5418 (div<mode>3): Likewise.
5419 (<sse>_div<mode>3<mask_name><round_name>): Likewise.
5420 * config/i386/subst.md (SUBST_V): Add HF vector modes.
5421 (SUBST_A): Likewise.
5422 (round_mode512bit_condition): Adjust for V32HFmode.
5424 2021-09-09 liuhongt <hongtao.liu@intel.com>
5427 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
5428 (reduc_plus_scal_v4sf): .. this, New define_expand.
5429 (reduc_plus_scal_v2df): .. and this, New define_expand.
5431 2021-09-09 liuhongt <hongtao.liu@intel.com>
5434 * config/i386/sse.md (*vec_extract<mode><ssescalarmodelower>_valign):
5437 2021-09-08 Jonathan Wakely <jwakely@redhat.com>
5440 * doc/trouble.texi (Copy Assignment): Fix description of
5441 behaviour and fix code in example.
5443 2021-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5446 * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use
5447 r11 instead of r12 for restoring CR.
5449 2021-09-08 Jakub Jelinek <jakub@redhat.com>
5450 liuhongt <hongtao.liu@intel.com>
5453 * config/i386/i386.md (@xorsign<mode>3_1): Remove.
5454 * config/i386/i386-expand.c (ix86_expand_xorsign): Expand right away
5455 into AND with mask and XOR, using paradoxical subregs.
5456 (ix86_split_xorsign): Remove.
5457 * config/i386/i386-protos.h (ix86_split_xorsign): Remove.
5459 2021-09-08 Di Zhao <dizhao@os.amperecomputing.com>
5461 * tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
5463 2021-09-08 Jakub Jelinek <jakub@redhat.com>
5466 * config/i386/i386.md (xorsign<mode>3): If operands[1] is equal to
5467 operands[2], emit abs<mode>2 instead.
5468 (@xorsign<mode>3_1): Add early-clobbers for output operand, enable
5469 first alternative even for avx, add another alternative with
5470 =&Yv <- 0, Yv, Yvm constraints.
5471 * config/i386/i386-expand.c (ix86_split_xorsign): If op0 is equal
5472 to op1, emit vpandn instead.
5474 2021-09-08 liuhongt <hongtao.liu@intel.com>
5476 * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic.
5477 (_mm256_set_ph): Likewise.
5478 (_mm512_set_ph): Likewise.
5479 (_mm_setr_ph): Likewise.
5480 (_mm256_setr_ph): Likewise.
5481 (_mm512_setr_ph): Likewise.
5482 (_mm_set1_ph): Likewise.
5483 (_mm256_set1_ph): Likewise.
5484 (_mm512_set1_ph): Likewise.
5485 (_mm_setzero_ph): Likewise.
5486 (_mm256_setzero_ph): Likewise.
5487 (_mm512_setzero_ph): Likewise.
5488 (_mm_set_sh): Likewise.
5489 (_mm_load_sh): Likewise.
5490 (_mm_store_sh): Likewise.
5491 * config/i386/i386-builtin-types.def (V8HF): New type.
5492 (DEF_FUNCTION_TYPE (V8HF, V8HI)): New builtin function type
5493 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
5494 Support vector HFmodes.
5495 (ix86_expand_vector_init_one_nonzero): Likewise.
5496 (ix86_expand_vector_init_one_var): Likewise.
5497 (ix86_expand_vector_init_interleave): Likewise.
5498 (ix86_expand_vector_init_general): Likewise.
5499 (ix86_expand_vector_set): Likewise.
5500 (ix86_expand_vector_extract): Likewise.
5501 (ix86_expand_vector_init_concat): Likewise.
5502 (ix86_expand_sse_movcc): Handle vector HFmodes.
5503 (ix86_expand_vector_set_var): Ditto.
5504 * config/i386/i386-modes.def: Add HF vector modes in comment.
5505 * config/i386/i386.c (classify_argument): Add HF vector modes.
5506 (ix86_hard_regno_mode_ok): Allow HF vector modes for AVX512FP16.
5507 (ix86_vector_mode_supported_p): Likewise.
5508 (ix86_set_reg_reg_cost): Handle vector HFmode.
5509 (ix86_get_ssemov): Handle vector HFmode.
5510 (function_arg_advance_64): Pass unamed V16HFmode and V32HFmode
5512 (function_arg_advance_32): Pass V8HF/V16HF/V32HF by sse reg for 32bit
5514 (function_arg_advance_32): Ditto.
5515 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): New.
5516 (VALID_AVX256_REG_OR_OI_MODE): Rename to ..
5517 (VALID_AVX256_REG_OR_OI_VHF_MODE): .. this, and add V16HF.
5518 (VALID_SSE2_REG_VHF_MODE): New.
5519 (VALID_AVX512VL_128_REG_MODE): Add V8HF and TImode.
5520 (SSE_REG_MODE_P): Add vector HFmode.
5521 * config/i386/i386.md (mode): Add HF vector modes.
5522 (MODE_SIZE): Likewise.
5523 (ssemodesuffix): Add ph suffix for HF vector modes.
5524 * config/i386/sse.md (VFH_128): New mode iterator.
5525 (VMOVE): Adjust for HF vector modes.
5527 (V_256_512): Likewise.
5529 (avx512fmaskmode): Likewise.
5530 (shuffletype): Likewise.
5531 (sseinsnmode): Likewise.
5532 (ssedoublevecmode): Likewise.
5533 (ssehalfvecmode): Likewise.
5534 (ssehalfvecmodelower): Likewise.
5535 (ssePScmode): Likewise.
5536 (ssescalarmode): Likewise.
5537 (ssescalarmodelower): Likewise.
5538 (sseintprefix): Likewise.
5540 (bcstscalarsuff): Likewise.
5541 (xtg_mode): Likewise.
5542 (VI12HF_AVX512VL): New mode_iterator.
5543 (VF_AVX512FP16): Likewise.
5545 (VIHF_256): Likewise.
5546 (VIHF_AVX512BW): Likewise.
5547 (V16_256): Likewise.
5548 (V32_512): Likewise.
5549 (sseintmodesuffix): New mode_attr.
5550 (sse): Add scalar and vector HFmodes.
5551 (ssescalarmode): Add vector HFmode mapping.
5552 (ssescalarmodesuffix): Add sh suffix for HFmode.
5553 (*<sse>_vm<insn><mode>3): Use VFH_128.
5554 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
5555 (*ieee_<ieee_maxmin><mode>3): Likewise.
5556 (<avx512>_blendm<mode>): New define_insn.
5557 (vec_setv8hf): New define_expand.
5558 (vec_set<mode>_0): New define_insn for HF vector set.
5559 (*avx512fp16_movsh): Likewise.
5560 (avx512fp16_movsh): Likewise.
5561 (vec_extract_lo_v32hi): Rename to ...
5562 (vec_extract_lo_<mode>): ... this, and adjust to allow HF
5564 (vec_extract_hi_v32hi): Likewise.
5565 (vec_extract_hi_<mode>): Likewise.
5566 (vec_extract_lo_v16hi): Likewise.
5567 (vec_extract_lo_<mode>): Likewise.
5568 (vec_extract_hi_v16hi): Likewise.
5569 (vec_extract_hi_<mode>): Likewise.
5570 (vec_set_hi_v16hi): Likewise.
5571 (vec_set_hi_<mode>): Likewise.
5572 (vec_set_lo_v16hi): Likewise.
5573 (vec_set_lo_<mode>): Likewise.
5574 (*vec_extract<mode>_0): New define_insn_and_split for HF
5576 (*vec_extracthf): New define_insn.
5577 (VEC_EXTRACT_MODE): Add HF vector modes.
5578 (PINSR_MODE): Add V8HF.
5579 (sse2p4_1): Likewise.
5580 (pinsr_evex_isa): Likewise.
5581 (<sse2p4_1>_pinsr<ssemodesuffix>): Adjust to support
5582 insert for V8HFmode.
5583 (pbroadcast_evex_isa): Add HF vector modes.
5584 (AVX2_VEC_DUP_MODE): Likewise.
5585 (VEC_INIT_MODE): Likewise.
5586 (VEC_INIT_HALF_MODE): Likewise.
5587 (avx2_pbroadcast<mode>): Adjust to support HF vector mode
5589 (avx2_pbroadcast<mode>_1): Likewise.
5590 (<avx512>_vec_dup<mode>_1): Likewise.
5591 (<avx512>_vec_dup<mode><mask_name>): Likewise.
5592 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>):
5595 2021-09-08 Guo, Xuepeng <xuepeng.guo@intel.com>
5596 H.J. Lu <hongjiu.lu@intel.com>
5597 Liu Hongtao <hongtao.liu@intel.com>
5598 Wang Hongyu <hongyu.wang@intel.com>
5599 Xu Dianhong <dianhong.xu@intel.com>
5601 * common/config/i386/cpuinfo.h (get_available_features):
5602 Detect FEATURE_AVX512FP16.
5603 * common/config/i386/i386-common.c
5604 (OPTION_MASK_ISA_AVX512FP16_SET,
5605 OPTION_MASK_ISA_AVX512FP16_UNSET,
5606 OPTION_MASK_ISA2_AVX512FP16_SET,
5607 OPTION_MASK_ISA2_AVX512FP16_UNSET): New.
5608 (OPTION_MASK_ISA2_AVX512BW_UNSET,
5609 OPTION_MASK_ISA2_AVX512BF16_UNSET): Add AVX512FP16.
5610 (ix86_handle_option): Handle -mavx512fp16.
5611 * common/config/i386/i386-cpuinfo.h (enum processor_features):
5612 Add FEATURE_AVX512FP16.
5613 * common/config/i386/i386-isas.h: Add entry for AVX512FP16.
5614 * config.gcc: Add avx512fp16intrin.h.
5615 * config/i386/avx512fp16intrin.h: New intrinsic header.
5616 * config/i386/cpuid.h: Add bit_AVX512FP16.
5617 * config/i386/i386-builtin-types.def: (FLOAT16): New primitive type.
5618 * config/i386/i386-builtins.c: Support _Float16 type for i386
5620 (ix86_register_float16_builtin_type): New function.
5621 (ix86_float16_type_node): New.
5622 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5624 * config/i386/i386-expand.c (ix86_expand_branch): Support
5626 (ix86_prepare_fp_compare_args): Adjust TARGET_SSE_MATH &&
5627 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
5628 (ix86_expand_fp_movcc): Ditto.
5629 * config/i386/i386-isa.def: Add PTA define for AVX512FP16.
5630 * config/i386/i386-options.c (isa2_opts): Add -mavx512fp16.
5631 (ix86_valid_target_attribute_inner_p): Add avx512fp16 attribute.
5632 * config/i386/i386.c (ix86_get_ssemov): Use
5633 vmovdqu16/vmovw/vmovsh for HFmode/HImode scalar or vector.
5634 (ix86_get_excess_precision): Use
5635 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when TARGET_AVX512FP16
5637 (sse_store_index): Use SFmode cost for HFmode cost.
5638 (inline_memory_move_cost): Add HFmode, and perfer SSE cost over
5639 GPR cost for HFmode.
5640 (ix86_hard_regno_mode_ok): Allow HImode in sse register.
5641 (ix86_mangle_type): Add manlging for _Float16 type.
5642 (inline_secondary_memory_needed): No memory is needed for
5643 16bit movement between gpr and sse reg under
5645 (ix86_multiplication_cost): Adjust TARGET_SSE_MATH &&
5646 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
5647 (ix86_division_cost): Ditto.
5648 (ix86_rtx_costs): Ditto.
5649 (ix86_add_stmt_cost): Ditto.
5650 (ix86_optab_supported_p): Ditto.
5651 * config/i386/i386.h (VALID_AVX512F_SCALAR_MODE): Add HFmode.
5652 (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Add HFmode.
5653 (PTA_SAPPHIRERAPIDS): Add PTA_AVX512FP16.
5654 * config/i386/i386.md (mode): Add HFmode.
5655 (MODE_SIZE): Add HFmode.
5656 (isa): Add avx512fp16.
5657 (enabled): Handle avx512fp16.
5658 (ssemodesuffix): Add sh suffix for HFmode.
5659 (comm): Add mult, div.
5660 (plusminusmultdiv): New code iterator.
5661 (insn): Add mult, div.
5662 (*movhf_internal): Adjust for avx512fp16 instruction.
5663 (*movhi_internal): Ditto.
5664 (*cmpi<unord>hf): New define_insn for HFmode.
5665 (*ieee_s<ieee_maxmin>hf3): Likewise.
5666 (extendhf<mode>2): Likewise.
5667 (trunc<mode>hf2): Likewise.
5668 (float<floatunssuffix><mode>hf2): Likewise.
5669 (*<insn>hf): Likewise.
5670 (cbranchhf4): New expander.
5671 (movhfcc): Likewise.
5672 (<insn>hf3): Likewise.
5675 * config/i386/i386.opt: Add mavx512fp16.
5676 * config/i386/immintrin.h: Include avx512fp16intrin.h.
5677 * doc/invoke.texi: Add mavx512fp16.
5678 * doc/extend.texi: Add avx512fp16 Usage Notes.
5680 2021-09-08 liuhongt <hongtao.liu@intel.com>
5682 * common.opt: Support -fexcess-precision=16.
5683 * config/aarch64/aarch64.c (aarch64_excess_precision): Return
5684 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when
5685 EXCESS_PRECISION_TYPE_FLOAT16.
5686 * config/arm/arm.c (arm_excess_precision): Ditto.
5687 * config/i386/i386.c (ix86_get_excess_precision): Ditto.
5688 * config/m68k/m68k.c (m68k_excess_precision): Issue an error
5689 when EXCESS_PRECISION_TYPE_FLOAT16.
5690 * config/s390/s390.c (s390_excess_precision): Ditto.
5691 * coretypes.h (enum excess_precision_type): Add
5692 EXCESS_PRECISION_TYPE_FLOAT16.
5693 * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Update documents.
5694 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): Ditto.
5695 * doc/extend.texi (Half-Precision): Document
5696 -fexcess-precision=16.
5697 * flag-types.h (enum excess_precision): Add
5698 EXCESS_PRECISION_FLOAT16.
5699 * target.def (excess_precision): Update document.
5700 * tree.c (excess_precision_type): Set excess_precision_type to
5701 EXCESS_PRECISION_FLOAT16 when -fexcess-precision=16.
5703 2021-09-08 liuhongt <hongtao.liu@intel.com>
5705 * doc/extend.texi: (@node Floating Types): Adjust the wording.
5706 (@node Half-Precision): Ditto.
5708 2021-09-07 Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
5711 * config/xtensa/xtensa.c (xtensa_emit_move_sequence): Add
5712 'CONST_INT_P (src)' to the condition of the block that tries to
5713 eliminate literal when loading integer contant.
5715 2021-09-07 David Faust <david.faust@oracle.com>
5717 * doc/extend.texi (BPF Type Attributes) New node.
5718 Document new preserve_access_index attribute.
5719 Document new preserve_access_index builtin.
5720 * doc/invoke.texi: Document -mco-re and -mno-co-re options.
5722 2021-09-07 David Faust <david.faust@oracle.com>
5724 * config/bpf/bpf.c: Adjust includes.
5725 (bpf_handle_preserve_access_index_attribute): New function.
5726 (bpf_attribute_table): Use it here.
5727 (bpf_builtins): Add BPF_BUILTIN_PRESERVE_ACCESS_INDEX.
5728 (bpf_option_override): Handle "-mco-re" option.
5729 (bpf_asm_init_sections): New.
5730 (TARGET_ASM_INIT_SECTIONS): Redefine.
5731 (bpf_file_end): New.
5732 (TARGET_ASM_FILE_END): Redefine.
5733 (bpf_init_builtins): Add "__builtin_preserve_access_index".
5734 (bpf_core_compute, bpf_core_get_index): New.
5735 (is_attr_preserve_access): New.
5736 (bpf_expand_builtin): Handle new builtins.
5737 (bpf_core_newdecl, bpf_core_is_maybe_aggregate_access): New.
5738 (bpf_core_walk): New.
5739 (bpf_resolve_overloaded_builtin): New.
5740 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Redefine.
5742 (pass_bpf_core_attr): New RTL pass.
5743 * config/bpf/bpf-passes.def: New file.
5744 * config/bpf/bpf-protos.h (make_pass_bpf_core_attr): New.
5745 * config/bpf/coreout.c: New file.
5746 * config/bpf/coreout.h: Likewise.
5747 * config/bpf/t-bpf (TM_H): Add $(srcdir)/config/bpf/coreout.h.
5748 (coreout.o): New rule.
5749 (PASSES_EXTRA): Add $(srcdir)/config/bpf/bpf-passes.def.
5750 * config.gcc (bpf): Add coreout.h to extra_headers.
5751 Add coreout.o to extra_objs.
5752 Add $(srcdir)/config/bpf/coreout.c to target_gtfiles.
5754 2021-09-07 David Faust <david.faust@oracle.com>
5756 * btfout.c (get_btf_id): Function is no longer static.
5757 * ctfc.h: Expose it here.
5759 2021-09-07 David Faust <david.faust@oracle.com>
5761 * ctfc.c (ctf_lookup_tree_type): New function.
5764 2021-09-07 David Faust <david.faust@oracle.com>
5766 * ctfc.c (ctf_dtd_lookup): Function is no longer static.
5767 * ctfc.h: Analogous change.
5769 2021-09-07 David Faust <david.faust@oracle.com>
5771 * dwarf2out.c (lookup_type_die): Function is no longer static.
5772 * dwarf2out.h: Expose it here.
5774 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
5776 * dwarf2ctf.c (ctf_debug_finalize): Make it static.
5777 (ctf_debug_early_finish): New definition.
5778 (ctf_debug_finish): Likewise.
5779 * dwarf2ctf.h (ctf_debug_finalize): Remove declaration.
5780 (ctf_debug_early_finish): New declaration.
5781 (ctf_debug_finish): Likewise.
5782 * dwarf2out.c (dwarf2out_finish): Invoke ctf_debug_finish.
5783 (dwarf2out_early_finish): Invoke ctf_debug_early_finish.
5785 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
5787 * config/bpf/bpf.c (bpf_option_override): For BPF backend, disable LTO
5788 support when compiling for CO-RE.
5789 * config/bpf/bpf.opt: Add new command line option -mco-re.
5791 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
5793 * flag-types.h (enum debug_info_type): Add new enum
5794 DINFO_TYPE_BTF_WITH_CORE.
5795 (BTF_WITH_CORE_DEBUG): New bitmask.
5796 * flags.h (btf_with_core_debuginfo_p): New declaration.
5797 * opts.c (btf_with_core_debuginfo_p): New definition.
5799 2021-09-07 Jason Merrill <jason@redhat.com>
5801 * tree.h (error_operand_p): Change to inline function.
5803 2021-09-07 Aldy Hernandez <aldyh@redhat.com>
5805 * tree-ssa-threadedge.c (forwarder_block_p): Rename to...
5806 (empty_block_with_phis_p): ...this.
5807 (potentially_threadable_block): Same.
5808 (jump_threader::thread_through_normal_block): Same.
5810 2021-09-07 Eric Botcazou <ebotcazou@adacore.com>
5813 * dwarf2out.c (mark_base_types): New overloaded function.
5814 (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
5815 as the compilation unit, and call move_marked_base_types afterward.
5817 2021-09-07 H.J. Lu <hjl.tools@gmail.com>
5820 * config/i386/i386-expand.c (ix86_expand_convert_uns_sisf_sse):
5822 (ix86_expand_vector_convert_uns_vsivsf): Likewise.
5824 2021-09-07 Richard Biener <rguenther@suse.de>
5826 PR tree-optimization/102226
5827 * tree-vect-loop.c (vect_transform_cycle_phi): Record
5828 the converted value for the epilogue PHI use.
5830 2021-09-07 Martin Liska <mliska@suse.cz>
5832 PR gcov-profile/80223
5833 * ipa-inline.c (can_inline_edge_p): Similarly to sanitizer
5834 options, do not inline when no_profile_instrument_function
5835 attributes are different in early inliner. It's fine to inline
5836 it after PGO instrumentation.
5838 2021-09-07 Richard Biener <rguenther@suse.de>
5840 PR tree-optimization/101555
5841 * tree-ssa-pre.c (translate_vuse_through_block): Do not
5842 perform an alias walk to determine the validity of the
5843 mem at the start of the block which is already guaranteed
5844 by means of prune_clobbered_mems.
5845 (phi_translate_1): Pass edge to translate_vuse_through_block.
5847 2021-09-07 Xionghu Luo <luoxhu@linux.ibm.com>
5850 * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
5851 (remainder<mode>3): Likewise.
5853 2021-09-07 YunQiang Su <yunqiang.su@cipunited.com>
5855 * config/mips/mips.c (mips_file_start): add .module for
5858 2021-09-06 Roger Sayle <roger@nextmovesoftware.com>
5860 * wide-int.cc (wi::clz): Reorder tests to ensure the result
5861 is zero for all negative values.
5863 2021-09-06 Tobias Burnus <tobias@codesourcery.com>
5865 * doc/invoke.texi (-foffload-options): Fix @opindex.
5867 2021-09-06 H.J. Lu <hjl.tools@gmail.com>
5870 * config/i386/i386-expand.c (ix86_split_xorsign): Use operands[2].
5871 * config/i386/i386.md (@xorsign<mode>3_1): Add non-destructive
5872 source alternative for AVX.
5874 2021-09-06 liuhongt <hongtao.liu@intel.com>
5876 PR middle-end/102182
5877 * optabs.c (expand_fix): Add from1 to avoid from being
5880 2021-09-06 Eric Botcazou <ebotcazou@adacore.com>
5882 * dwarf2out.c (modified_type_die): Deal with all array types earlier
5883 and use local variable consistently throughout the function.
5885 2021-09-06 Jakub Jelinek <jakub@redhat.com>
5887 PR tree-optimization/102207
5888 * match.pd: Don't demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
5889 were promoted from signed to wider unsigned type.
5891 2021-09-06 Andrew Pinski <apinski@marvell.com>
5893 PR tree-optimization/63184
5894 * match.pd: Add simplification of pointer_diff of two pointer_plus
5895 with addr_expr in the first operand of each pointer_plus.
5896 Add simplificatoin of ne/eq of two pointer_plus with addr_expr
5897 in the first operand of each pointer_plus.
5899 2021-09-06 Richard Biener <rguenther@suse.de>
5901 PR tree-optimization/102176
5902 * tree-vect-slp.c (vect_slp_gather_vectorized_scalar_stmts):
5904 (vect_bb_slp_scalar_cost): Use the computed set of
5905 vectorized scalar stmts instead of relying on the out-of-date
5906 and not accurate PURE_SLP_STMT.
5907 (vect_bb_vectorization_profitable_p): Compute the set
5908 of vectorized scalar stmts.
5910 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
5912 * gimple-range-path.cc (path_range_query::range_of_stmt): Remove
5913 GIMPLE_COND special casing.
5914 (path_range_query::range_defined_in_block): Use range_of_stmt
5915 instead of calling fold_range directly.
5917 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
5919 * gimple-range-path.cc (path_range_query::range_of_expr): Set
5920 m_undefined_path when appropriate.
5921 (path_range_query::internal_range_of_expr): Copy from range_of_expr.
5922 (path_range_query::unreachable_path_p): New.
5923 (path_range_query::precompute_ranges): Set m_undefined_path.
5924 * gimple-range-path.h (path_range_query::unreachable_path_p): New.
5925 (path_range_query::internal_range_of_expr): New.
5926 * tree-ssa-threadbackward.c (back_threader::find_taken_edge_cond):
5927 Use unreachable_path_p.
5929 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
5931 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
5932 Remove argument and call find_taken_edge.
5933 (back_threader::resolve_phi): Do not calculate taken edge before
5934 calling maybe_register_path.
5935 (back_threader::find_paths_to_names): Same.
5937 2021-09-05 Jeff Law <jlaw@localhost.localdomain>
5939 * config/h8300/h8300.md (QHSI2 mode iterator): New mode iterator.
5940 * config/h8300/testcompare.md (store_c): Update name, use new
5942 (store_neg_c, store_shifted_c): New patterns.
5944 2021-09-03 Segher Boessenkool <segher@kernel.crashing.org>
5947 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): On ELFv2 use r11
5948 instead of r12 for CR save, in all cases.
5950 2021-09-03 Andrew Pinski <apinski@marvell.com>
5952 * config/aarch64/aarch64-sve-builtins.cc (register_vector_type):
5953 Handle error_mark_node as the type of the type_decl.
5955 2021-09-03 Andrew Pinski <apinski@marvell.com>
5957 * config/aarch64/aarch64-builtins.c (struct aarch64_simd_type_info):
5959 (aarch64_simd_types): Likewise.
5960 (aarch64_simd_intOI_type_node): Likewise.
5961 (aarch64_simd_intCI_type_node): Likewise.
5962 (aarch64_simd_intXI_type_node): Likewise.
5963 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Likewise.
5964 (aarch64_fp16_ptr_type_node): Likewise.
5965 (aarch64_bf16_type_node): Likewise.
5966 (aarch64_bf16_ptr_type_node): Likewise.
5968 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
5970 * range-op.cc (operator_minus::op1_op2_relation_effect): Abstract
5972 (minus_op1_op2_relation_effect): ...here.
5973 (class operator_pointer_diff): New.
5974 (operator_pointer_diff::op1_op2_relation_effect): Call
5975 minus_op1_op2_relation_effect.
5976 (integral_table::integral_table): Add entry for POINTER_DIFF_EXPR.
5978 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
5980 * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
5981 Add may_peel_loop_headers.
5982 (back_threader_registry::thread_through_all_blocks): Same.
5983 (try_thread_blocks): Pass may_peel_loop_headers argument.
5984 (pass_early_thread_jumps::execute): Same.
5986 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
5988 * tree-ssa-threadedge.c (has_phis_p): New.
5989 (forwarder_block_p): New.
5990 (potentially_threadable_block): Call forwarder_block_p.
5991 (jump_threader::thread_around_empty_blocks): Call has_phis_p.
5992 (jump_threader::thread_through_normal_block): Call
5995 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
5997 * tree-ssa-threadbackward.c (back_threader::dump): New.
5998 (back_threader::debug): New.
5999 (back_threader_profitability::profitable_path_p): Dump blocks
6000 even if we are bailing early.
6002 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6004 * tree-ssa-threadupdate.c (cancel_thread): New.
6005 (jump_thread_path_registry::thread_block_1): Use cancel_thread.
6006 (jump_thread_path_registry::mark_threaded_blocks): Same.
6007 (jump_thread_path_registry::register_jump_thread): Same.
6009 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6011 * tree-ssa-threadedge.c (jt_state::push): Only call methods for
6012 which objects are available.
6013 (jt_state::pop): Same.
6014 (jt_state::register_equiv): Same.
6015 (jt_state::register_equivs_on_edge): Same.
6017 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6019 * tree-ssa-threadedge.c (jump_threader::thread_across_edge):
6020 Move pop until after a thread is registered.
6022 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6024 * tree-ssa-threadupdate.c (debug): New.
6026 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6028 * gimple-range-trace.cc (push_dump_file::push_dump_file): New.
6029 (push_dump_file::~push_dump_file): New.
6030 (dump_ranger): Change dump_file temporarily while dumping
6032 * gimple-range-trace.h (class push_dump_file): New.
6034 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6036 * gimple-range-trace.cc (debug_seed_ranger): Remove static.
6037 (dump_ranger): Dump function name.
6039 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6041 * gimple-range-path.cc (path_range_query::range_defined_in_block):
6042 Adjust for non-null.
6043 (path_range_query::adjust_for_non_null_uses): New.
6044 (path_range_query::precompute_ranges): Call
6045 adjust_for_non_null_uses.
6046 * gimple-range-path.h: Add m_non_null and
6047 adjust_for_non_null_uses.
6049 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6051 * gimple-range-path.cc (path_range_query::dump): Dump path
6053 (path_range_query::precompute_ranges): Dump entire path.
6055 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6057 * value-relation.cc (relation_oracle::debug): New.
6058 * value-relation.h (relation_oracle::debug): New.
6060 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6062 * tree-ssa-loop-ch.c: Remove unnecessary include file.
6064 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6066 * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges):
6067 Skip statements with no defining BB.
6068 * gimple-range-path.cc (path_range_query::range_defined_in_block):
6069 Do not get confused by statements with no defining BB.
6071 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6073 * gimple-range-fold.cc (adjust_imagpart_expr): Move from
6074 gimple_range_adjustment. Add support for constants.
6075 (adjust_realpart_expr): New.
6076 (gimple_range_adjustment): Move IMAGPART_EXPR code to
6077 adjust_imagpart_expr.
6078 * range-op.cc (integral_table::integral_table): Add entry for
6081 2021-09-03 Jakub Jelinek <jakub@redhat.com>
6083 * omp-expand.c (expand_omp_atomic_pipeline): Use
6084 IFN_ATOMIC_COMPARE_EXCHANGE instead of
6085 BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_? so that memory order
6088 2021-09-03 Jakub Jelinek <jakub@redhat.com>
6091 * tree.h (DECL_FIELD_ABI_IGNORED): Changed into rvalue only macro
6092 that is false if DECL_BIT_FIELD.
6093 (SET_DECL_FIELD_ABI_IGNORED, DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD,
6094 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD): Define.
6095 * tree-streamer-out.c (pack_ts_decl_common_value_fields): For
6096 DECL_BIT_FIELD stream DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead
6097 of DECL_FIELD_ABI_IGNORED.
6098 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
6099 SET_DECL_FIELD_ABI_IGNORED instead of writing to
6100 DECL_FIELD_ABI_IGNORED and for DECL_BIT_FIELD use
6101 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead.
6102 * lto-streamer-out.c (hash_tree): For DECL_BIT_FIELD hash
6103 DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead of DECL_FIELD_ABI_IGNORED.
6105 2021-09-03 liuhongt <hongtao.liu@intel.com>
6108 * config/i386/amxbf16intrin.h : Remove macro check for __AMX_BF16__.
6109 * config/i386/amxint8intrin.h : Remove macro check for __AMX_INT8__.
6110 * config/i386/amxtileintrin.h : Remove macro check for __AMX_TILE__.
6112 2021-09-02 Martin Sebor <msebor@redhat.com>
6114 PR tree-optimization/17506
6116 * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
6118 2021-09-02 Richard Biener <rguenther@suse.de>
6120 * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
6121 fix for PR78185 and continue processing when leaving
6124 2021-09-02 Jakub Jelinek <jakub@redhat.com>
6126 PR tree-optimization/99591
6127 * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
6130 2021-09-02 Richard Biener <rguenther@suse.de>
6133 2021-09-02 Richard Biener <rguenther@suse.de>
6135 PR tree-optimization/102155
6136 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
6137 over a part of the RPO array and do not recurse here.
6138 Dump blocks marked as always executed.
6139 (fill_always_executed_in): Walk over the RPO array and
6140 process loops whose header we run into.
6141 (loop_invariant_motion_in_fun): Compute the first RPO
6142 using rev_post_order_and_mark_dfs_back_seme in iteration
6143 order and pass that to fill_always_executed_in.
6145 2021-09-02 liuhongt <hongtao.liu@intel.com>
6147 * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
6148 * config/i386/i386.c (enum x86_64_reg_class): Add
6150 (merge_classes): Handle X86_64_SSEHF_CLASS.
6151 (examine_argument): Ditto.
6152 (construct_container): Ditto.
6153 (classify_argument): Ditto, and set HFmode/HCmode to
6155 (function_value_32): Return _FLoat16/Complex Float16 by
6157 (function_value_64): Return _Float16/Complex Float16 by SSE
6159 (ix86_print_operand): Handle CONST_DOUBLE HFmode.
6160 (ix86_secondary_reload): Require gpr as intermediate register
6161 to store _Float16 from sse register when sse4 is not
6163 (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
6165 (ix86_scalar_mode_supported_p): Ditto.
6166 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
6167 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
6168 (VALID_INT_MODE_P): Add HFmode and HCmode.
6169 * config/i386/i386.md (*pushhf_rex64): New define_insn.
6171 (*movhf_internal): Ditto.
6172 * doc/extend.texi (Half-Precision Floating Point): Documemt
6175 2021-09-02 Richard Biener <rguenther@suse.de>
6177 PR tree-optimization/102155
6178 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
6179 over a part of the RPO array and do not recurse here.
6180 Dump blocks marked as always executed.
6181 (fill_always_executed_in): Walk over the RPO array and
6182 process loops whose header we run into.
6183 (loop_invariant_motion_in_fun): Compute the first RPO
6184 using rev_post_order_and_mark_dfs_back_seme in iteration
6185 order and pass that to fill_always_executed_in.
6187 2021-09-02 YunQiang Su <syq@debian.org>
6190 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
6192 * config/mips/mips.c (mips_module_isa_name): New.
6193 mips_file_start: add .module mipsREV to all asm output
6195 2021-09-01 Jeff Law <jlaw@localhost.localdomain>
6197 PR tree-optimization/102152
6198 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
6199 comparison to a scalar comparison before calling
6200 update_stmt_if_modified.
6202 2021-09-01 Andrew Pinski <apinski@marvell.com>
6205 * config/aarch64/aarch64.c (aarch64_expand_setmem):
6206 Check STRICT_ALIGNMENT before creating an overlapping
6209 2021-09-01 Martin Sebor <msebor@redhat.com>
6211 * gimple-ssa-warn-access.cc (get_size_range): Add argument.
6212 (check_access): Pass additional argument.
6213 (check_memop_access): Remove template and make a member function.
6214 (maybe_check_dealloc_call): Make a pass_waccess member function.
6215 (class pass_waccess): Add, rename, and remove members.
6216 (pass_waccess::pass_waccess): Adjust to name change.
6217 (pass_waccess::~pass_waccess): Same.
6218 (check_alloca): Make a member function.
6219 (check_alloc_size_call): Same.
6220 (check_strcat): Same.
6221 (check_strncat): Same.
6222 (check_stxcpy): Same.
6223 (check_stxncpy): Same.
6224 (check_strncmp): Same.
6225 (maybe_warn_rdwr_sizes): Rename...
6226 (pass_waccess::maybe_check_access_sizes): ...to this.
6227 (pass_waccess::check_call): Adjust to name changes.
6228 (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
6230 (pass_waccess::execute): Adjust to name changes.
6231 * gimple-ssa-warn-access.h (check_memop_access): Remove.
6232 * pointer-query.cc (access_ref::phi): Handle null pointer.
6233 (access_ref::inform_access): Same.
6234 (pointer_query::put_ref): Modify a cached value, not a copy of it.
6235 (pointer_query::dump): New function.
6236 (compute_objsize_r): Avoid overwriting access_ref::bndrng. Cache
6238 * pointer-query.h (pointer_query::dump): Declare.
6239 * tree-ssa-strlen.c (get_range): Simplify. Use function query.
6240 (dump_strlen_info): Use function query.
6241 (printf_strlen_execute): Factor code out into pointer_query::put_ref.
6243 2021-09-01 Thomas Schwinge <thomas@codesourcery.com>
6245 * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
6247 2021-09-01 Iain Sandoe <iain@sandoe.co.uk>
6249 * doc/extend.texi: Document unavailable attribute.
6250 * print-tree.c (print_node): Handle unavailable attribute.
6251 * tree-core.h (struct tree_base): Add a bit to carry unavailability.
6252 * tree.c (error_unavailable_use): New.
6253 * tree.h (TREE_UNAVAILABLE): New.
6254 (error_unavailable_use): New.
6256 2021-09-01 Jakub Jelinek <jakub@redhat.com>
6258 PR tree-optimization/102124
6259 * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
6260 MINUS_EXPR, if itype is unsigned with smaller precision than type,
6261 add an extra cast to signed variant of itype to ensure sign-extension.
6263 2021-09-01 Martin Liska <mliska@suse.cz>
6265 * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
6266 edges and rather use colors for TRUE and FALSE edges.
6268 2021-09-01 Richard Biener <rguenther@suse.de>
6270 PR tree-optimization/93491
6271 * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
6272 after processing the stmt itself. Do not consider
6273 pure functions possibly not returning. Properly avoid
6274 adding possibly trapping calls to EXP_GEN when there's
6275 a preceeding possibly not returning call.
6276 * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
6279 2021-09-01 Richard Biener <rguenther@suse.de>
6281 PR tree-optimization/102139
6282 * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
6283 type to record a std::pair of the stmt-info and the innermost
6285 (dr_vec_info::group): New member.
6286 * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
6287 (vect_compute_data_ref_alignment): Verify the recorded
6288 base alignment can be used.
6289 (data_ref_pair): Remove.
6290 (dr_group_sort_cmp): Adjust.
6291 (vect_analyze_data_ref_accesses): Store the group-ID in the
6292 dr_vec_info and operate on a vector of dr_vec_infos.
6294 2021-09-01 YunQiang Su <yunqiang.su@cipunited.com>
6296 * read-md.c (md_reader::handle_enum): support value assignation.
6297 * doc/md.texi: record define_c_enum value assignation support.
6299 2021-09-01 Jakub Jelinek <jakub@redhat.com>
6301 PR tree-optimization/102141
6302 * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
6303 argument. If false, emit stmts after gsi instead of before, and
6305 (bswap_replace): Adjust callers. When converting output of bswap,
6306 emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
6309 2021-09-01 liuhongt <hongtao.liu@intel.com>
6311 * emit-rtl.c (validate_subreg): Get rid of all float-int
6314 2021-09-01 liuhongt <hongtao.liu@intel.com>
6317 2021-08-30 liuhongt <hongtao.liu@intel.com>
6319 * expmed.c (extract_bit_field_1): Make sure we're playing with
6320 integral modes before call extract_integral_bit_field.
6321 (extract_integral_bit_field): Add a parameter of type
6322 scalar_int_mode which corresponds to of tmode.
6323 And call extract_and_convert_fixed_bit_field instead of
6324 extract_fixed_bit_field and convert_extracted_bit_field.
6325 (extract_and_convert_fixed_bit_field): New function, it's a
6326 combination of extract_fixed_bit_field and
6327 convert_extracted_bit_field.
6329 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
6331 * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
6333 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
6335 * omp-general.h (omp_is_reference): Rename to...
6336 (omp_privatize_by_reference): ... this. Adjust all users...
6337 * omp-general.c: ... here, ...
6338 * gimplify.c: ... here, ...
6339 * omp-expand.c: ... here, ...
6340 * omp-low.c: ... here.
6342 2021-08-31 Martin Sebor <msebor@redhat.com>
6344 * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
6345 pointer element for equality to zero, not that of the cotaining
6348 2021-08-31 Martin Sebor <msebor@redhat.com>
6350 * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
6352 2021-08-31 Martin Sebor <msebor@redhat.com>
6354 * function.h (function): Add comments.
6355 (get_range_query): Same. Add attribute returns nonnull.
6357 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
6359 * expr.c (convert_modes): Don't use subreg_promoted_mode on a
6360 SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
6361 Instead use the standard (safer) is_a <scalar_int_mode> idiom.
6363 2021-08-31 Jeff Law <jlaw@localhost.localdomain>
6365 * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
6367 (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
6368 (mn10300-*-*, am33_2.0-*-linux*): Likewise.
6369 (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
6370 (m32c-*-elf*, m32c-*-rtems*): Likewise.
6371 * config/cris/cris.h (DBX_NO_XREFS): Remove.
6372 (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
6373 * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
6374 (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
6375 * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
6376 * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
6378 2021-08-31 Marcel Vollweiler <marcel@codesourcery.com>
6380 * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
6381 allowed on target constructs and only with particular other clauses.
6382 * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
6384 * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
6385 structs when 'ancestor' is used.
6386 (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
6388 * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
6389 * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
6391 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
6393 * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
6394 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
6396 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
6397 Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
6398 partial subreg from a SUBREG_PROMOTED_VAR_P subreg. Generate
6399 SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
6400 [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
6401 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
6402 subreg. Generate ZERO_EXTEND of the SUBREG_REG when a subreg
6403 would be paradoxical.
6405 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
6407 * combine.c (combine_simplify_rtx): Avoid converting an explicit
6408 TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
6409 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6411 2021-08-31 Richard Biener <rguenther@suse.de>
6413 PR tree-optimization/102142
6414 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
6415 condition under which to unset the visited flag.
6417 2021-08-31 Richard Biener <rguenther@suse.de>
6419 PR middle-end/102129
6420 * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
6421 possibly trapping expressions across calls.
6423 2021-08-31 Jakub Jelinek <jakub@redhat.com>
6425 PR tree-optimization/102134
6426 * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
6427 UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
6430 2021-08-31 Andrew Pinski <apinski@marvell.com>
6433 * collect-utils.c (setup_signals): New declaration.
6434 * collect-utils.h (setup_signals): New function.
6435 * collect2.c (handler): Delete.
6436 (main): Instead of manually setting up the signals,
6437 just call setup_signals.
6438 * lto-wrapper.c (main): Likewise.
6440 2021-08-31 Andrew Pinski <apinski@marvell.com>
6443 * config/i386/i386-protos.h (x86_output_aligned_bss):
6444 Change align argument to unsigned type.
6445 (x86_elf_aligned_decl_common): Likewise.
6446 * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
6447 (x86_output_aligned_bss): Likewise.
6449 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
6451 * config/mips/mips.c (mips_module_isa_name): New.
6452 mips_file_start: add .module mipsREV to all asm output
6454 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
6456 * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
6457 use enum instead of int for 'isa' member.
6458 * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
6459 config/mips/netbsd.h: replace hardcoded numbers with enum.
6461 2021-08-31 liuhongt <hongtao.liu@intel.com>
6463 * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
6464 define_split to define_insn_and_split.
6465 (*avx2_eq<mode>3): Removed.
6466 (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
6467 (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
6468 (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
6470 (*avx2_gt<mode>3): Removed.
6471 (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
6472 define_insn to define_expand, and adjust pattern.
6473 (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
6475 2021-08-30 David Malcolm <dmalcolm@redhat.com>
6478 * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
6480 2021-08-30 Jason Merrill <jason@redhat.com>
6482 * doc/invoke.texi: Document -Wmissing-requires.
6484 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
6486 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
6487 TARGET_EXTRA_BUILTINS guard.
6489 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
6491 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
6492 initialization of V2DI_type_node and unsigned_V2DI_type_node.
6494 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
6496 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
6497 decl when new_builtins_are_live.
6498 * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
6501 2021-08-30 Pat Haugen <pthaugen@linux.ibm.com>
6503 * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
6504 OPTION_MASK_P10_FUSION_2STORE.
6505 (POWERPC_MASKS): Likewise.
6506 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
6507 store fusion for Power10.
6508 (is_fusable_store): New.
6509 (power10_sched_reorder): Likewise.
6510 (rs6000_sched_reorder): Do Power10 specific reordering.
6511 (rs6000_sched_reorder2): Likewise.
6512 * config/rs6000/rs6000.opt: Add new option.
6514 2021-08-30 Richard Biener <rguenther@suse.de>
6516 PR tree-optimization/102128
6517 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
6518 Move scanning for if-converted scalar code to the caller
6519 and instead delay clearing the visited flag for profitable
6521 (vect_slp_region): Cost all subgraphs before scheduling.
6522 For if-converted BB vectorization scan for scalar COND_EXPRs
6523 and do not vectorize if any found and the cost model is
6526 2021-08-30 Richard Biener <rguenther@suse.de>
6528 * common.opt (fexceptions): Mark
6529 EnabledBy(fnon-call-exceptions).
6530 * doc/invoke.texi (fnon-call-exceptions): Document this
6531 enables -fexceptions.
6533 2021-08-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
6535 * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
6536 is not already defined.
6538 2021-08-30 liuhongt <hongtao.liu@intel.com>
6540 * expmed.c (extract_bit_field_1): Make sure we're playing with
6541 integral modes before call extract_integral_bit_field.
6542 (extract_integral_bit_field): Add a parameter of type
6543 scalar_int_mode which corresponds to of tmode.
6544 And call extract_and_convert_fixed_bit_field instead of
6545 extract_fixed_bit_field and convert_extracted_bit_field.
6546 (extract_and_convert_fixed_bit_field): New function, it's a
6547 combination of extract_fixed_bit_field and
6548 convert_extracted_bit_field.
6550 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
6552 * config/darwin.c (darwin_libc_has_function): Do not run
6553 the checks for x86 or modern Darwin. Make sure that there
6554 is a value set for darwin_macosx_version_min before testing.
6556 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
6558 * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
6560 2021-08-28 Jan Hubicka <hubicka@ucw.cz>
6562 * ipa-modref-tree.h (modref_access_node::merge): Break out
6563 logic combining offsets and logic merging ranges to ...
6564 (modref_access_node::combined_offsets): ... here
6565 (modref_access_node::update2): ... here
6566 (modref_access_node::closer_pair_p): New member function.
6567 (modref_access_node::forced_merge): New member function.
6568 (modre_ref_node::insert): Do merging when table is full.
6570 2021-08-28 YunQiang Su <yunqiang.su@cipunited.com>
6573 * config.gcc: MIPS: use N64 ABI by default if the triple end
6574 with -gnuabi64, which is used by Debian since 2013.
6576 2021-08-28 Alexandre Oliva <oliva@adacore.com>
6578 * ipa-modref.c (analyze_function): Skip debug stmts.
6579 * tree-inline.c (estimate_num_insn): Consider builtins even
6580 without a cgraph_node.
6582 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
6584 * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
6585 * config/h8300/h8300.c (h8300_expand_branch): Remove function.
6586 * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
6587 * config/h8300/h8300.md (eqne): New code iterator.
6588 (geultu, geultu_to_c): Similarly.
6589 * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
6590 (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
6591 (cmp<mode>_c): New pattern
6593 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
6595 * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
6597 (dom_opt_dom_walker::optimize_stmt): Use it.
6599 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
6601 * config/darwin.c (finalize_ctors): Add a section-start linker-
6603 (finalize_dtors): Likewise.
6604 * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
6606 2021-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
6608 * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
6609 (rs6000_init_builtins): Call rs6000_init_generated_builtins. Skip the
6610 old initialization logic when new builtins are enabled.
6611 * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
6612 rs6000_autoinit_builtins to rs6000_init_generated_builtins.
6613 (write_init_file): Likewise.
6615 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
6617 * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
6618 gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
6619 (amdgcn-* | gcn-*) Likewise.
6621 2021-08-27 Anthony Sharp <anthonysharp15@gmail.com>
6623 * symbol-summary.h: Added missing template keyword.
6625 2021-08-27 Richard Biener <rguenther@suse.de>
6627 PR tree-optimization/45178
6628 * tree-ssa-dce.c (find_obviously_necessary_stmts): For
6629 infinite loops without exit do not mark control dependent
6630 edges of the latch necessary.
6632 2021-08-27 konglin1 <lingling.kong@intel.com>
6635 * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
6637 (<avx512>scattersi<mode>): Likewise.
6638 (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
6639 (*avx512f_scatterdi<VI48F:mode>): Likewise
6641 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
6643 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
6644 support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
6645 MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
6646 P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
6647 P10_BUILTIN_PEXTD on Power10.
6649 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
6651 * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
6652 signedness for some Power10 bifs.
6654 2021-08-27 David Edelsohn <dje.gcc@gmail.com>
6657 * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
6658 computed alignment if the entire struct has attribute packed.
6660 2021-08-27 liuhongt <hongtao.liu@intel.com>
6664 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
6665 IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
6666 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
6667 IX86_BUILTIN_SHUFPS256.
6668 (ix86_masked_all_ones): New function.
6670 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
6672 * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
6673 (conditional moves with memory inputs splitters): Ditto.
6674 * config/i386/sse.md (one_cmpl<mode>2): Simplify.
6676 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
6678 * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
6679 search after merging.
6681 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
6683 * config/rs6000/rs6000-overload.def: Add remaining overloads.
6685 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
6687 * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
6689 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
6691 * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
6692 crypto, and htm stanzas.
6694 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
6696 * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
6698 2021-08-26 Martin Sebor <msebor@redhat.com>
6700 * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
6701 (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
6702 (warn_uninitialized_vars): Same. Reduce visibility of locals.
6703 (warn_uninitialized_phi): Same.
6705 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
6707 * tree-ssa-ccp.c (get_individual_bits): Helper function to
6708 extract the individual bits from a widest_int constant (mask).
6709 (gray_code_bit_flips): New read-only table for effiently
6710 enumerating permutations/combinations of bits.
6711 (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
6712 by unknown counts that are guaranteed less than the target
6713 precision and four or fewer unknown bits by enumeration.
6714 [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
6715 enumeration under the same conditions. Handle remaining
6716 shifts as a mask based upon the minimum possible shift value.
6718 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
6719 Richard Biener <rguenther@suse.de>
6721 * match.pd (shift transformations): Remove a redundant
6722 !POINTER_TYPE_P check.
6724 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
6727 * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
6728 Set all_regs to true in the call to replace_rtx.
6730 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
6732 * ipa-modref-tree.c (test_insert_search_collapse): Update test.
6733 * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
6734 hiting --param modref-max-refs limit.
6735 (modref_tree:insert_base): Be smarter when hitting
6736 --param modref-max-bases limit. Add new parameter REF.
6737 (modref_tree:insert): Update.
6738 (modref_tree:merge): Update.
6739 * ipa-modref.c (read_modref_records): Update.
6741 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
6743 * params.opt: (modref-max-adjustments): Add full stop.
6745 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
6747 * ipa-modref-tree.h (modref_ref_node::verify): New member
6749 (modref_ref_node::insert): Use it.
6750 (modref_ref_node::try_mere_with): Fix off by one error.
6752 2021-08-26 Martin Liska <mliska@suse.cz>
6753 Stefan Kneifel <stefan.kneifel@bluewin.ch>
6755 * cgraph.h (create_version_clone_with_body): Add new parameter.
6756 * cgraphclones.c: Likewise.
6757 * multiple_target.c (create_dispatcher_calls): Do not use
6759 (create_target_clone): Likewise here.
6761 2021-08-26 Jonathan Yong <10walls@gmail.com>
6763 * doc/extend.texi: Add note about reserved priorities
6764 to the constructor attribute.
6766 2021-08-25 Martin Sebor <msebor@redhat.com>
6768 * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
6769 range table header alone.
6770 * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
6772 2021-08-25 Jan Hubicka <hubicka@ucw.cz>
6774 * doc/invoke.texi: Document --param modref-max-adjustments.
6775 * ipa-modref-tree.c (test_insert_search_collapse): Update.
6776 (test_merge): Update.
6777 * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
6778 (modref_access_node::operator==): Fix handling of access ranges.
6779 (modref_access_node::contains): Constify parameter; handle also
6780 mismatched parm offsets.
6781 (modref_access_node::update): New function.
6782 (modref_access_node::merge): New function.
6783 (unspecified_modref_access_node): Update constructor.
6784 (modref_ref_node::insert_access): Add record_adjustments parameter;
6786 (modref_ref_node::try_merge_with): New private function.
6787 (modref_tree::insert): New record_adjustments parameter.
6788 (modref_tree::merge): New record_adjustments parameter.
6789 (modref_tree::copy_from): Update.
6790 * ipa-modref.c (dump_access): Dump adjustments field.
6791 (get_access): Update constructor.
6792 (record_access): Update call of insert.
6793 (record_access_lto): Update call of insert.
6794 (merge_call_side_effects): Add record_adjustments parameter.
6795 (get_access_for_fnspec): Update.
6796 (process_fnspec): Update.
6797 (analyze_call): Update.
6798 (analyze_function): Update.
6799 (read_modref_records): Update.
6800 (ipa_merge_modref_summary_after_inlining): Update.
6801 (propagate_unknown_call): Update.
6802 (modref_propagate_in_scc): Update.
6803 * params.opt (param-max-modref-adjustments=): New.
6805 2021-08-25 Michael Meissner <meissner@linux.ibm.com>
6807 * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
6809 (xxspltiw_v4si): Use vecperm type attribute.
6810 (xxspltiw_v4si_inst): Use vecperm type attribute.
6811 (xxspltiw_v4sf_inst): Likewise.
6812 (xxspltidp_v2df): Use vecperm type attribute. Use
6813 UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
6814 (xxspltidp_v2df_inst): Likewise.
6815 (xxsplti32dx_v4si): Use vecperm type attribute.
6816 (xxsplti32dx_v4si_inst): Likewise.
6817 (xxsplti32dx_v4sf_inst): Likewise.
6818 (xxblend_<mode>): Likewise.
6819 (xxpermx): Likewise.
6820 (xxpermx_inst): Likewise.
6823 2021-08-25 Lewis Hyatt <lhyatt@gmail.com>
6826 * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
6827 * diagnostic.c (diagnostic_initialize_input_context): New function.
6828 * diagnostic.h (diagnostic_initialize_input_context): Declare.
6829 * input.c (default_charset_callback): New function.
6830 (file_cache::initialize_input_context): New function.
6831 (file_cache_slot::create): Added ability to convert the input
6832 according to the input context.
6833 (file_cache::file_cache): Initialize the new input context.
6834 (class file_cache_slot): Added new m_alloc_offset member.
6835 (file_cache_slot::file_cache_slot): Initialize the new member.
6836 (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
6837 (file_cache_slot::maybe_grow): Likewise.
6838 (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
6839 (file_cache_slot::get_next_line): Likewise.
6840 * input.h (class file_cache): Added input context member.
6842 2021-08-25 Richard Biener <rguenther@suse.de>
6844 PR tree-optimization/102046
6845 * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
6846 update ->any_pattern when swapping operands.
6848 2021-08-25 Hongyu Wang <hongyu.wang@intel.com>
6851 * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
6852 (ix86_decompose_address): Remove retval check for ASHIFT,
6853 allow non-canonical zero extend if AND mask covers ASHIFT
6855 (ix86_legitimate_address_p): Adjust condition for decompose.
6856 (ix86_rtx_costs): Adjust cost for lea with non-canonical
6858 Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
6860 2021-08-25 Jiufu Guo <guojiufu@linux.ibm.com>
6862 PR tree-optimization/101145
6863 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
6865 (number_of_iterations_lt): Invoke above function.
6866 (adjust_cond_for_loop_until_wrap):
6867 Merge to number_of_iterations_until_wrap.
6868 (number_of_iterations_cond): Update invokes for
6869 adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
6871 2021-08-25 konglin1 <lingling.kong@intel.com>
6874 * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
6876 (_mm512_mask_fpclass_ps_mask): Ditto.
6878 2021-08-25 Kewen Lin <linkw@linux.ibm.com>
6880 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
6881 (vec_unpacku_hi_v8hi): Likewise.
6882 (vec_unpacku_lo_v16qi): Likewise.
6883 (vec_unpacku_lo_v8hi): Likewise.
6884 (vec_unpacku_hi_<VP_small_lc>): New define_expand.
6885 (vec_unpacku_lo_<VP_small_lc>): Likewise.
6887 2021-08-24 David Edelsohn <dje.gcc@gmail.com>
6889 * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
6890 * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
6891 * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
6892 * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
6894 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
6896 PR middle-end/102031
6897 * simplify-rtx.c (simplify_truncation): When comparing precisions
6898 use "subreg_prec" variable, not "subreg_mode".
6900 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
6902 * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
6905 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
6907 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
6908 various pointer type nodes.
6909 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
6910 values for various pointer types.
6911 (ptr_V16QI_type_node): New macro.
6912 (ptr_V1TI_type_node): New macro.
6913 (ptr_V2DI_type_node): New macro.
6914 (ptr_V2DF_type_node): New macro.
6915 (ptr_V4SI_type_node): New macro.
6916 (ptr_V4SF_type_node): New macro.
6917 (ptr_V8HI_type_node): New macro.
6918 (ptr_unsigned_V16QI_type_node): New macro.
6919 (ptr_unsigned_V1TI_type_node): New macro.
6920 (ptr_unsigned_V8HI_type_node): New macro.
6921 (ptr_unsigned_V4SI_type_node): New macro.
6922 (ptr_unsigned_V2DI_type_node): New macro.
6923 (ptr_bool_V16QI_type_node): New macro.
6924 (ptr_bool_V8HI_type_node): New macro.
6925 (ptr_bool_V4SI_type_node): New macro.
6926 (ptr_bool_V2DI_type_node): New macro.
6927 (ptr_bool_V1TI_type_node): New macro.
6928 (ptr_pixel_type_node): New macro.
6929 (ptr_intQI_type_node): New macro.
6930 (ptr_uintQI_type_node): New macro.
6931 (ptr_intHI_type_node): New macro.
6932 (ptr_uintHI_type_node): New macro.
6933 (ptr_intSI_type_node): New macro.
6934 (ptr_uintSI_type_node): New macro.
6935 (ptr_intDI_type_node): New macro.
6936 (ptr_uintDI_type_node): New macro.
6937 (ptr_intTI_type_node): New macro.
6938 (ptr_uintTI_type_node): New macro.
6939 (ptr_long_integer_type_node): New macro.
6940 (ptr_long_unsigned_type_node): New macro.
6941 (ptr_float_type_node): New macro.
6942 (ptr_double_type_node): New macro.
6943 (ptr_long_double_type_node): New macro.
6944 (ptr_dfloat64_type_node): New macro.
6945 (ptr_dfloat128_type_node): New macro.
6946 (ptr_ieee128_type_node): New macro.
6947 (ptr_ibm128_type_node): New macro.
6948 (ptr_vector_pair_type_node): New macro.
6949 (ptr_vector_quad_type_node): New macro.
6950 (ptr_long_long_integer_type_node): New macro.
6951 (ptr_long_long_unsigned_type_node): New macro.
6953 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
6955 * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
6956 and power9-64 stanzas.
6958 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
6959 Tom de Vries <tdevries@suse.de>
6961 * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
6962 * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
6963 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
6964 a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
6965 * config/nvptx/t-nvptx (nvptx-c.o): New rule.
6966 * config/nvptx/nvptx-c.c: New source file.
6967 (nvptx_cpu_cpp_builtins): Move implementation here.
6969 2021-08-24 Martin Sebor <msebor@redhat.com>
6971 PR middle-end/101600
6972 PR middle-end/101977
6973 * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
6974 the phrasing of a warning.
6975 (check_access): Use the remaining size after subtracting any offset
6976 rather than the whole object size.
6977 * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
6978 clear for any nonnull PHI argument.
6979 (compute_objsize): Clear argument.
6981 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
6983 * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
6985 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
6987 * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
6990 2021-08-24 Andrew MacLeod <amacleod@redhat.com>
6992 * value-relation.cc (rr_transitive_table): New.
6993 (relation_transitive): New.
6994 (value_relation::swap): Remove.
6995 (value_relation::apply_transitive): New.
6996 (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
6997 (relation_oracle::register_relation): Call register_transitives.
6998 (relation_oracle::register_transitives): New.
6999 * value-relation.h (relation_oracle): Add new temporary bitmap and
7002 2021-08-24 H.J. Lu <hjl.tools@gmail.com>
7005 * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
7006 from integer to a pseudo vector register.
7008 2021-08-24 Richard Biener <rguenther@suse.de>
7010 PR tree-optimization/100089
7011 * tree-vectorizer.h (vect_slp_bb): Rename to ...
7012 (vect_slp_if_converted_bb): ... this and get the original
7013 loop as new argument.
7014 * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
7015 pass original loop to vect_slp_if_converted_bb.
7016 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
7017 If orig_loop was passed scan the not vectorized stmts
7018 for COND_EXPRs and force not profitable if found.
7019 (vect_slp_region): Pass down all SLP instances to costing
7020 if orig_loop was specified.
7021 (vect_slp_bbs): Pass through orig_loop.
7022 (vect_slp_bb): Rename to ...
7023 (vect_slp_if_converted_bb): ... this and get the original
7024 loop as new argument.
7025 (vect_slp_function): Adjust.
7027 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
7030 * config/arm/arm.md (attribute arch): Add fix_vlldm.
7031 (arch_enabled): Use it.
7032 * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
7033 use when erratum mitigation is needed.
7035 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
7038 * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
7039 * doc/invoke.texi (Arm Options): Document it.
7040 * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
7041 (ALL_QUIRKS): Add quirk_vlldm.
7042 (cortex-m33): Add quirk_vlldm.
7043 (cortex-m35p, cortex-m55): Likewise.
7044 * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
7045 targetting an affected CPU and not explicitly controlled on
7048 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
7050 * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
7051 (lazy_load_multiple_insn): Likewise.
7053 2021-08-24 liuhongt <hongtao.liu@intel.com>
7056 * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
7057 Enable avx512 embedded broadcast.
7058 (*<avx512>_vternlog<mode>_all): Ditto.
7059 (<avx512>_vternlog<mode>_mask): Ditto.
7061 2021-08-24 liuhongt <hongtao.liu@intel.com>
7064 * config/i386/i386.c (ix86_rtx_costs): Define cost for
7066 * config/i386/i386.h (STRIP_UNARY): New macro.
7067 * config/i386/predicates.md (reg_or_notreg_operand): New
7069 * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
7070 (*<avx512>_vternlog<mode>_1): New pre_reload
7071 define_insn_and_split.
7072 (*<avx512>_vternlog<mode>_2): Ditto.
7073 (*<avx512>_vternlog<mode>_3): Ditto.
7074 (any_logic1,any_logic2): New code iterator.
7075 (logic_op): New code attribute.
7076 (ternlogsuffix): Extend to VNxDF and VNxSF.
7078 2021-08-24 Richard Biener <rguenther@suse.de>
7080 * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
7081 * params.opt (--param vect-inner-loop-cost-factor): Adjust
7083 * tree-vect-loop.c (vect_analyze_loop_form): Initialize
7084 inner_loop_cost_factor to the minimum of the estimated number
7085 of iterations of the inner loop and vect-inner-loop-cost-factor.
7087 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
7088 Richard Biener <rguenther@suse.de>
7090 * config/i386/i386-features.c (compute_convert_gain): Provide
7091 more accurate values for CONST_INT, when optimizing for size.
7092 * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
7093 * config/i386/i386.h (COSTS_N_BYTES): to here.
7095 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
7096 Jakub Jelinek <jakub@redhat.com>
7098 PR middle-end/102029
7099 * match.pd (shift transformations): Add an additional check for
7100 !POINTER_TYPE_P in the recently added left shift transformation.
7102 2021-08-24 liuhongt <hongtao.liu@intel.com>
7104 PR tree-optimization/100089
7105 * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
7106 loop vectorizer when cost model is very-cheap.
7108 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7110 * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
7111 asprintf, which is not available on AIX.
7113 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7115 * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
7116 * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
7118 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7120 * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
7121 * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
7123 * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
7124 (rbtree.o): Likewise.
7125 (rs6000-gen-builtins): Likewise.
7126 (rs6000-builtins.c): Likewise.
7127 (rs6000-builtins.h): Likewise.
7128 (rs6000.o): Add dependency.
7129 (EXTRA_HEADERS): Add rs6000-vecdefines.h.
7130 (rs6000-vecdefines.h): New target.
7131 (rs6000-builtins.o): Likewise.
7132 (rs6000-call.o): Add rs6000-builtins.h as a dependency.
7133 (rs6000-c.o): Likewise.
7135 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7138 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
7139 Diagnose buffer overrun.
7140 (safe_inc_pos): Fix overrun detection.
7141 (match_identifier): Diagnose buffer overrun.
7142 (match_integer): Likewise.
7143 (match_to_right_bracket): Likewise.
7145 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
7147 * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
7148 Improve range compare.
7149 (modref_access_node::contains): New member function.
7150 (modref_access_node::search): Remove.
7151 (modref_access_node::insert): Be smarter about subaccesses.
7153 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
7155 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
7156 <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
7157 * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
7160 2021-08-23 Jeff Law <jlaw@localhost.localdomain>
7162 * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
7164 * config/h8300/jumpcall.md (call, call_value): Restrict to
7165 !SIBLING_CALL_P cases.
7166 (subcall, sibcall_value): New patterns & expanders.
7167 * config/h8300/proepi.md (epilogue): Pass new argument to
7168 h8300_expand_epilogue.
7169 (sibcall_epilogue): New expander.
7170 * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
7172 (h8300_ok_for_sibcall_p): New function.
7173 (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
7175 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7177 * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
7178 Handle case where the operand is already the desired mode.
7180 2021-08-23 Richard Biener <rguenther@suse.de>
7183 * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
7184 in addition to has_gimple_body.
7186 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
7188 PR middle-end/101949
7189 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
7192 2021-08-23 Martin Liska <mliska@suse.cz>
7194 * doc/invoke.texi: Put the option out of -mxl-mode-app-model
7197 2021-08-23 Richard Biener <rguenther@suse.de>
7199 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
7200 Properly scale the inner loop cost only once.
7202 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7204 * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
7205 Provide bounds for unsigned (and signed with non-negative operands)
7206 division and modulus.
7208 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7210 * simplify-rtx.c (simplify_truncation): Generalize simplification
7211 of (truncate:A (subreg:B X)).
7212 (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
7213 SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
7214 already has the desired machine mode.
7215 (test_scalar_int_ops): Add tests that useless extensions and
7216 truncations are optimized away.
7217 (test_scalar_int_ext_ops): New self-test function to confirm
7218 that truncations of extensions are correctly simplified.
7219 (test_scalar_int_ext_ops2): New self-test function to check
7220 truncations of truncations, extensions of extensions, and
7221 truncations of extensions.
7222 (test_scalar_ops): Call the above two functions with a
7223 representative sampling of integer machine modes.
7225 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7227 * match.pd (shift transformations): Change the sign of an
7228 LSHIFT_EXPR if it reduces the number of explicit conversions.
7230 2021-08-23 Jakub Jelinek <jakub@redhat.com>
7232 PR tree-optimization/86723
7233 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
7234 cast64_to_32 argument, set *cast64_to_32 to false, unless n is
7235 non-memory permutation of 64-bit src which only has bytes of
7236 0 or [5..8] and n->range is 4.
7237 (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
7238 find_bswap_or_nop_finalize caller, support bswap with some bytes
7239 zeroed, as long as at least two bytes are not zeroed.
7240 (bswap_replace): Add mask argument and handle masking of bswap
7242 (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
7243 caller, punt if cast64_to_32 or mask is not all ones.
7244 (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
7245 caller, for now punt if cast64_to_32.
7247 2021-08-23 Richard Biener <rguenther@suse.de>
7249 PR tree-optimization/79334
7250 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
7251 a type also for COMPONENT_REFs.
7252 (vn_reference_may_trap): Check ARRAY_REF with constant index
7253 against the array domain.
7255 2021-08-23 liuhongt <hongtao.liu@intel.com>
7258 * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
7259 TARGET_AVX512BW to condition.
7261 2021-08-23 Jakub Jelinek <jakub@redhat.com>
7264 * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
7265 register variables already during early_dwarf if possible.
7267 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
7269 * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
7271 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
7274 * config/arm/arm.opt: Fix typo.
7275 * config/arm/t-rmprofile: Fix typo.
7277 2021-08-23 Jakub Jelinek <jakub@redhat.com>
7279 * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
7280 (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
7281 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
7282 case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
7283 * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
7284 if either grainsize or num_tasks clause has the strict modifier.
7286 2021-08-23 Martin Liska <mliska@suse.cz>
7288 * dbgcnt.def (DEBUG_COUNTER): New counter.
7289 * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
7291 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
7293 * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
7295 2021-08-23 Xi Ruoyao <xry111@mengyan1223.wang>
7298 * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
7300 * config/mips/mips.c (mips_msa_output_shift_immediate): New
7302 * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
7303 vlshr<mode>3): Call it.
7305 2021-08-22 Jan Hubicka <hubicka@ucw.cz>
7306 Martin Liska <mliska@suse.cz>
7308 PR middle-end/101949
7309 * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
7312 2021-08-21 Dragan Mladjenovic <OT_Dragan.Mladjenovic@mediatek.com>
7314 * config/mips/mips.c (mips_function_rodata_section,
7315 TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
7317 2021-08-21 John David Anglin <danglin@gcc.gnu.org>
7319 * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
7321 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
7323 * configure.ac (thread-local storage support): Remove tls_first_major
7324 and tls_first_minor. Use "$conftest_s" to check support.
7325 * configure: Regenerate.
7327 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
7329 * configure.ac: Fixup formatting.
7331 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
7333 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
7334 * configure.ac: ... update all callers.
7336 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
7339 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
7340 (gcc_GAS_VERSION_GTE_IFELSE): Remove.
7341 (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
7342 * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
7343 Remove remaining checks for in-tree assembler.
7344 * configure: Regenerate.
7346 2021-08-20 Jeff Law <jlaw@localhost.localdomain>
7348 * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
7349 by 15 bits for H8/300H and H8/S. Improve logical shifts by 12
7351 (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
7352 H8/300H. Improve arithmetic shift right by 15 bits for H8/S.
7353 Improve logical shifts by 27 bits for H8/S.
7354 (get_shift_alg): Corresponding changes.
7355 (h8300_option_override): Revert to loops for -Os when profitable.
7357 2021-08-20 Richard Biener <rguenther@suse.de>
7359 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
7361 (vect_analyze_data_ref_accesses): Likewise. Assign the BB
7362 index as group_id when dataref_groups were not computed.
7363 * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
7364 we advace to the next BB.
7366 2021-08-20 Jakub Jelinek <jakub@redhat.com>
7368 * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
7371 2021-08-20 Martin Liska <mliska@suse.cz>
7373 PR gcov-profile/89961
7374 * gcov.c (make_gcov_file_name): Rewrite using std::string.
7375 (mangle_name): Simplify, do not used the second argument.
7376 (strip_extention): New function.
7377 (get_md5sum): Likewise.
7378 (get_gcov_intermediate_filename): Handle properly -p and -x
7380 (output_gcov_file): Use string type.
7381 (generate_results): Likewise.
7382 (md5sum_to_hex): Remove.
7384 2021-08-20 Michael Meissner <meissner@linux.ibm.com>
7386 * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
7387 (UNSPEC_XXSPLTIW): Move to vsx.md.
7388 (UNSPEC_XXSPLTID): Move to vsx.md.
7389 (UNSPEC_XXSPLTI32DX): Move to vsx.md.
7390 (UNSPEC_XXBLEND): Move to vsx.md.
7391 (UNSPEC_XXPERMX): Move to vsx.md.
7392 (VM3): Move to vsx.md.
7393 (VM3_char): Move to vsx.md.
7394 (xxspltiw_v4si): Move to vsx.md.
7395 (xxspltiw_v4sf): Move to vsx.md.
7396 (xxspltiw_v4sf_inst): Move to vsx.md.
7397 (xxspltidp_v2df): Move to vsx.md.
7398 (xxspltidp_v2df_inst): Move to vsx.md.
7399 (xxsplti32dx_v4si_inst): Move to vsx.md.
7400 (xxsplti32dx_v4sf): Move to vsx.md.
7401 (xxsplti32dx_v4sf_inst): Move to vsx.md.
7402 (xxblend_<mode>): Move to vsx.md.
7403 (xxpermx): Move to vsx.md.
7404 (xxpermx_inst): Move to vsx.md.
7405 * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
7406 (UNSPEC_XXSPLTIW): Move from altivec.md.
7407 (UNSPEC_XXSPLTID): Move from altivec.md.
7408 (UNSPEC_XXSPLTI32DX): Move from altivec.md.
7409 (UNSPEC_XXBLEND): Move from altivec.md.
7410 (UNSPEC_XXPERMX): Move from altivec.md.
7411 (VM3): Move from altivec.md.
7412 (VM3_char): Move from altivec.md.
7413 (xxspltiw_v4si): Move from altivec.md.
7414 (xxspltiw_v4sf): Move from altivec.md.
7415 (xxspltiw_v4sf_inst): Move from altivec.md.
7416 (xxspltidp_v2df): Move from altivec.md.
7417 (xxspltidp_v2df_inst): Move from altivec.md.
7418 (xxsplti32dx_v4si_inst): Move from altivec.md.
7419 (xxsplti32dx_v4sf): Move from altivec.md.
7420 (xxsplti32dx_v4sf_inst): Move from altivec.md.
7421 (xxblend_<mode>): Move from altivec.md.
7422 (xxpermx): Move from altivec.md.
7423 (xxpermx_inst): Move from altivec.md.
7425 2021-08-19 Roger Sayle <roger@nextmovesoftware.com>
7427 * tree-vect-generic.c (expand_vector_operations_1): Use either
7428 gimplify_build1 or gimplify_build2 instead of gimple_build_assign
7429 when constructing scalar splat expressions.
7431 2021-08-19 Peter Bergner <bergner@linux.ibm.com>
7434 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
7435 pointer to __vector_pair *.
7437 2021-08-19 Martin Sebor <msebor@redhat.com>
7439 * gimple-range.cc: Add comments.
7440 * gimple-range.h: Same.
7442 2021-08-19 Martin Sebor <msebor@redhat.com>
7444 PR middle-end/101984
7445 * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
7448 2021-08-19 Jeff Law <jlaw@localhost.localdomain>
7450 * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
7451 (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
7452 * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
7454 2021-08-19 Jakub Jelinek <jakub@redhat.com>
7456 PR middle-end/101950
7457 * optabs.c (expand_clrsb_using_clz): New function.
7458 (expand_unop): Use it as another clrsb expansion fallback.
7460 2021-08-19 liuhongt <hongtao.liu@intel.com>
7463 2021-07-28 liuhongt <hongtao.liu@intel.com>
7466 * config/i386/i386.h (processor_costs): Add new member
7468 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
7469 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
7470 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
7471 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
7472 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
7473 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
7474 generic_cost, core_cost): Initialize integer_to_sse same value
7476 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
7477 * config/i386/i386.c (ix86_builtin_vectorization_cost):
7478 Use integer_to_sse instead of sse_op to calculate the cost of
7481 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
7483 * config.gcc: Include rpath.opt for Darwin.
7484 * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
7486 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
7489 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
7492 2021-08-18 Jonathan Wright <jonathan.wright@arm.com>
7494 * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
7495 pattern and type cast.
7496 (vld4_lane_f32): Use float RTL pattern.
7497 (vld4q_lane_f64): Use float type cast.
7499 2021-08-18 Jan Hubicka <hubicka@ucw.cz>
7501 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
7504 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
7506 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
7507 (test_map_of_type_with_ctor_and_dtor_expand): Add function.
7508 (hash_map_tests_c_tests): Call it.
7510 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
7512 * ggc.h (enum ggc_collect): New.
7513 (ggc_collect): Use it.
7514 * ggc-page.c: Adjust.
7515 * ggc-common.c: Likewise.
7516 * ggc-tests.c: Likewise.
7517 * read-rtl-function.c: Likewise.
7518 * selftest-run-tests.c: Likewise.
7519 * doc/gty.texi (Invoking the garbage collector): Likewise.
7521 2021-08-18 liuhongt <hongtao.liu@intel.com>
7524 * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
7526 * config/i386/sse.md (*sse3_haddv2df3_low): Add
7527 TARGET_V2DF_REDUCTION_PREFER_HADDPD.
7528 (*sse3_hsubv2df3_low): Ditto.
7529 * config/i386/x86-tune.def
7530 (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
7532 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
7534 * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
7535 (gori_compute::compute_operand_range): Add tracing.
7536 (gori_compute::logical_combine): Ditto.
7537 (gori_compute::compute_logical_operands): Ditto.
7538 (gori_compute::compute_operand1_range): Ditto.
7539 (gori_compute::compute_operand2_range): Ditto.
7540 (gori_compute::outgoing_edge_range_p): Ditto.
7541 * gimple-range-gori.h (class gori_compute): Add range_tracer.
7543 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
7545 * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
7546 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
7547 * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
7548 * params.opt (--param=evrp-mode): Adjust options.
7550 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
7552 * Makefile.in (OBJS): Add gimple-range-trace.o.
7553 * gimple-range-cache.h (enable_new_values): Remove unused prototype.
7554 * gimple-range-fold.cc: Adjust headers.
7555 * gimple-range-trace.cc: New.
7556 * gimple-range-trace.h: New.
7557 * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
7558 (gimple_ranger::range_of_expr): Add tracing.
7559 (gimple_ranger::range_on_entry): Ditto.
7560 (gimple_ranger::range_on_exit): Ditto.
7561 (gimple_ranger::range_on_edge): Ditto.
7562 (gimple_ranger::fold_range_internal): Ditto.
7563 (gimple_ranger::dump_bb): Do not calculate edge range twice.
7564 (trace_ranger::*): Remove.
7565 (enable_ranger): Never create a trace_ranger.
7566 (debug_seed_ranger): Move to gimple-range-trace.cc.
7567 (dump_ranger): Ditto.
7568 (debug_ranger): Ditto.
7569 * gimple-range.h: Include gimple-range-trace.h.
7570 (range_on_entry, range_on_exit): No longer virtual.
7571 (class trace_ranger): Remove.
7572 (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
7574 2021-08-17 Martin Sebor <msebor@redhat.com>
7576 PR middle-end/101854
7577 * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
7578 in gimple-ssa-warn-access.cc.
7579 * calls.c (alloc_max_size): Move code to check_alloca.
7580 (get_size_range): Move to pointer-query.cc.
7581 (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
7582 (get_attr_nonstring_decl): Move to tree.c.
7583 (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
7584 (append_attrname): Same.
7585 (maybe_warn_rdwr_sizes): Same.
7586 (initialize_argument_information): Move code to
7587 gimple-ssa-warn-access.cc.
7588 * calls.h (maybe_warn_alloc_args_overflow): Move to
7589 gimple-ssa-warn-access.h.
7590 (get_attr_nonstring_decl): Move to tree.h.
7591 (maybe_warn_nonstring_arg): Move to gimple-ssa-warn-access.h.
7592 (enum size_range_flags): Move to pointer-query.h.
7593 (get_size_range): Same.
7594 * gimple-ssa-warn-access.cc (has_location): Remove unused overload
7595 to avoid Clang -Wunused-function.
7596 (get_size_range): Declare static.
7597 (maybe_emit_free_warning): Rename...
7598 (maybe_check_dealloc_call): ...to this for consistency.
7599 (class pass_waccess): Add members.
7600 (pass_waccess::~pass_waccess): Defined.
7601 (alloc_max_size): Move here from calls.c.
7602 (maybe_warn_alloc_args_overflow): Same.
7603 (check_alloca): New function.
7604 (check_alloc_size_call): New function.
7605 (check_strncat): Handle another warning flag.
7606 (pass_waccess::check_builtin): Handle alloca.
7607 (fntype_argno_type): Move here from calls.c.
7608 (append_attrname): Same.
7609 (maybe_warn_rdwr_sizes): Same.
7610 (pass_waccess::check_call): Define.
7611 (check_nonstring_args): New function.
7612 (pass_waccess::check): Call new member functions.
7613 (pass_waccess::execute): Enable ranger.
7614 * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
7615 (maybe_warn_nonstring_arg): Same.
7616 * gimple-ssa-warn-restrict.c: Remove #include.
7617 * pointer-query.cc (get_size_range): Move here from calls.c.
7618 * pointer-query.h (enum size_range_flags): Same.
7619 (get_size_range): Same.
7620 * tree.c (get_attr_nonstring_decl): Move here from calls.c.
7621 * tree.h (get_attr_nonstring_decl): Move here from calls.h.
7623 2021-08-17 Thomas Schwinge <thomas@codesourcery.com>
7625 * ggc.h (ggc_collect): Add 'force_collect' parameter.
7626 * ggc-page.c (ggc_collect): Use that one instead of global
7627 'ggc_force_collect'. Adjust all users.
7628 * doc/gty.texi (Invoking the garbage collector): Update.
7629 * ggc-internal.h (ggc_force_collect): Remove.
7630 * ggc-common.c (ggc_force_collect): Likewise.
7631 * selftest.h (forcibly_ggc_collect): Remove.
7632 * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
7633 * read-rtl-function.c (test_loading_labels): Adjust.
7634 * selftest-run-tests.c (run_tests): Likewise.
7636 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
7638 * config/darwin.c (darwin_file_end): Reset and reclaim the
7639 section names table at the end of compile.
7641 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
7644 * config.in: Regenerate.
7645 * config/i386/darwin.h (EXTRA_ASM_OPTS): New
7646 (ASM_SPEC): Pass options to disable branch shortening where
7648 * configure: Regenerate.
7649 * configure.ac: Detect versions of 'as' that support the
7650 optimisation which has the bug.
7652 2021-08-17 Richard Biener <rguenther@suse.de>
7654 * optabs-query.c (supports_vec_gather_load_p): Also check
7656 (supports_vec_scatter_store_p): Likewise.
7657 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
7658 back to masked variants if non-masked are not supported.
7659 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
7660 When we need to use masked gather/scatter but do not have
7661 a mask set up a constant true one.
7662 * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
7665 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
7667 * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
7668 algorithm as PLUS_EXPR to improve subtraction bit bounds.
7669 [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
7671 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
7673 * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
7674 calculate the mask-value pair result of a multiplication by an
7676 (bit_value_binop) [MULT_EXPR]: Call it from here for
7677 multiplications by (sparse) non-negative constants.
7679 2021-08-17 Christophe Lyon <christophe.lyon@foss.st.com>
7682 * config.gcc (gcc_cv_initfini_array): Leave undefined for
7683 uclinuxfdpiceabi targets.
7685 2021-08-17 Alexandre Oliva <oliva@adacore.com>
7687 * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
7688 reverse debug stmts.
7690 2021-08-17 Alexandre Oliva <oliva@adacore.com>
7692 * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
7694 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
7696 * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
7697 (__LD4Q_LANE_FUNC): Likewise.
7698 (vld4_lane_u8): Define without macro.
7699 (vld4_lane_u16): Likewise.
7700 (vld4_lane_u32): Likewise.
7701 (vld4_lane_u64): Likewise.
7702 (vld4_lane_s8): Likewise.
7703 (vld4_lane_s16): Likewise.
7704 (vld4_lane_s32): Likewise.
7705 (vld4_lane_s64): Likewise.
7706 (vld4_lane_f16): Likewise.
7707 (vld4_lane_f32): Likewise.
7708 (vld4_lane_f64): Likewise.
7709 (vld4_lane_p8): Likewise.
7710 (vld4_lane_p16): Likewise.
7711 (vld4_lane_p64): Likewise.
7712 (vld4q_lane_u8): Likewise.
7713 (vld4q_lane_u16): Likewise.
7714 (vld4q_lane_u32): Likewise.
7715 (vld4q_lane_u64): Likewise.
7716 (vld4q_lane_s8): Likewise.
7717 (vld4q_lane_s16): Likewise.
7718 (vld4q_lane_s32): Likewise.
7719 (vld4q_lane_s64): Likewise.
7720 (vld4q_lane_f16): Likewise.
7721 (vld4q_lane_f32): Likewise.
7722 (vld4q_lane_f64): Likewise.
7723 (vld4q_lane_p8): Likewise.
7724 (vld4q_lane_p16): Likewise.
7725 (vld4q_lane_p64): Likewise.
7726 (vld4_lane_bf16): Likewise.
7727 (vld4q_lane_bf16): Likewise.
7729 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
7731 * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
7732 (__LD3Q_LANE_FUNC): Delete.
7733 (vld3_lane_u8): Define without macro.
7734 (vld3_lane_u16): Likewise.
7735 (vld3_lane_u32): Likewise.
7736 (vld3_lane_u64): Likewise.
7737 (vld3_lane_s8): Likewise.
7738 (vld3_lane_s16): Likewise.
7739 (vld3_lane_s32): Likewise.
7740 (vld3_lane_s64): Likewise.
7741 (vld3_lane_f16): Likewise.
7742 (vld3_lane_f32): Likewise.
7743 (vld3_lane_f64): Likewise.
7744 (vld3_lane_p8): Likewise.
7745 (vld3_lane_p16): Likewise.
7746 (vld3_lane_p64): Likewise.
7747 (vld3q_lane_u8): Likewise.
7748 (vld3q_lane_u16): Likewise.
7749 (vld3q_lane_u32): Likewise.
7750 (vld3q_lane_u64): Likewise.
7751 (vld3q_lane_s8): Likewise.
7752 (vld3q_lane_s16): Likewise.
7753 (vld3q_lane_s32): Likewise.
7754 (vld3q_lane_s64): Likewise.
7755 (vld3q_lane_f16): Likewise.
7756 (vld3q_lane_f32): Likewise.
7757 (vld3q_lane_f64): Likewise.
7758 (vld3q_lane_p8): Likewise.
7759 (vld3q_lane_p16): Likewise.
7760 (vld3q_lane_p64): Likewise.
7761 (vld3_lane_bf16): Likewise.
7762 (vld3q_lane_bf16): Likewise.
7764 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
7766 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
7767 (__LD2Q_LANE_FUNC): Likewise.
7768 (vld2_lane_u8): Define without macro.
7769 (vld2_lane_u16): Likewise.
7770 (vld2_lane_u32): Likewise.
7771 (vld2_lane_u64): Likewise.
7772 (vld2_lane_s8): Likewise.
7773 (vld2_lane_s16): Likewise.
7774 (vld2_lane_s32): Likewise.
7775 (vld2_lane_s64): Likewise.
7776 (vld2_lane_f16): Likewise.
7777 (vld2_lane_f32): Likewise.
7778 (vld2_lane_f64): Likewise.
7779 (vld2_lane_p8): Likewise.
7780 (vld2_lane_p16): Likewise.
7781 (vld2_lane_p64): Likewise.
7782 (vld2q_lane_u8): Likewise.
7783 (vld2q_lane_u16): Likewise.
7784 (vld2q_lane_u32): Likewise.
7785 (vld2q_lane_u64): Likewise.
7786 (vld2q_lane_s8): Likewise.
7787 (vld2q_lane_s16): Likewise.
7788 (vld2q_lane_s32): Likewise.
7789 (vld2q_lane_s64): Likewise.
7790 (vld2q_lane_f16): Likewise.
7791 (vld2q_lane_f32): Likewise.
7792 (vld2q_lane_f64): Likewise.
7793 (vld2q_lane_p8): Likewise.
7794 (vld2q_lane_p16): Likewise.
7795 (vld2q_lane_p64): Likewise.
7796 (vld2_lane_bf16): Likewise.
7797 (vld2q_lane_bf16): Likewise.
7799 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7801 * haifa-sched.c (advance_one_cycle): Output more context-synchronization
7804 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7806 * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
7807 (rank_for_schedule): Use it.
7809 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7811 PR rtl-optimization/91598
7812 * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
7813 insns after memory reads and before memory writes.
7815 2021-08-17 Alistair_Lee <alistair.lee@arm.com>
7817 * rtl.h (CONST_VECTOR_P): New macro.
7818 * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
7819 code testing macros.
7820 (aarch64_ptrue_all_mode): Likewise.
7821 (aarch64_expand_mov_immediate): Likewise.
7822 (aarch64_const_vec_all_in_range_p): Likewise.
7823 (aarch64_rtx_costs): Likewise.
7824 (aarch64_legitimate_constant_p): Likewise.
7825 (aarch64_simd_valid_immediate): Likewise.
7826 (aarch64_simd_make_constant): Likewise.
7827 (aarch64_convert_mult_to_shift): Likewise.
7828 (aarch64_expand_sve_vec_perm): Likewise.
7829 (aarch64_vec_fpconst_pow_of_2): Likewise.
7831 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
7833 PR tree-optimization/101938
7834 * range-op.cc (operator_abs::op1_range): Special case
7835 -TYPE_MIN_VALUE for flag_wrapv.
7837 2021-08-17 Kewen Lin <linkw@linux.ibm.com>
7839 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
7842 2021-08-17 Jakub Jelinek <jakub@redhat.com>
7844 * tree.def (OMP_SCOPE): New tree code.
7845 * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
7846 * tree-nested.c (convert_nonlocal_reference_stmt,
7847 convert_local_reference_stmt, convert_gimple_call): Handle
7849 * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
7850 * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
7851 * gimple.c (gimple_build_omp_scope): New function.
7852 (gimple_copy): Handle GIMPLE_OMP_SCOPE.
7853 * gimple.h (gimple_build_omp_scope): Declare.
7854 (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
7855 (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
7856 gimple_omp_scope_set_clauses): New inline functions.
7857 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
7858 * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
7859 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
7860 * gimple-walk.c (walk_gimple_stmt): Likewise.
7861 * gimple-low.c (lower_stmt): Likewise.
7862 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
7863 (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
7864 like ORT_WORKSHARE constructs. Adjust diagnostics for %<scope%>
7865 allowing task reductions. Reject inscan reductions on scope.
7866 (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
7867 (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
7868 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
7869 (estimate_num_insns): Likewise.
7870 * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
7871 contexts if var isn't privatized there.
7872 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
7873 (scan_omp_1_stmt): Likewise.
7874 (maybe_add_implicit_barrier_cancel): Look through outer
7876 (lower_omp_scope): New function.
7877 (lower_omp_task_reductions): Handle OMP_SCOPE.
7878 (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
7879 (diagnose_sb_1, diagnose_sb_2): Likewise.
7880 * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
7881 (expand_omp): Handle GIMPLE_OMP_SCOPE.
7882 (omp_make_gimple_edges): Likewise.
7883 * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
7885 2021-08-17 Richard Biener <rguenther@suse.de>
7887 PR tree-optimization/101925
7888 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
7889 reverse on COMPONENT_REF and ARRAY_REF according to
7890 what reverse_storage_order_for_component_p does.
7891 (vn_reference_eq): Compare reversed on reference ops.
7892 (reverse_storage_order_for_component_p): New overload.
7893 (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
7894 on the reference looked up.
7896 2021-08-17 Jeff Law <jlaw@localhost.localdomain>
7898 * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
7900 (h8300_option_override): Use loops on H8/S more often when optimizing
7902 (get_shift_alg): Handle new "special" cases on H8/S. Simplify
7903 accordingly. Handle various arithmetic right shifts with special
7904 sequences that we couldn't handle before.
7906 2021-08-16 Jeff Law <jlaw@localhost.localdomain>
7908 * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
7910 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
7912 * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
7913 * config/sparc/sparc.c (sparc_gcov_type_size): New.
7914 (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
7915 * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
7916 * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
7917 * doc/tm.texi.in: Regenerate.
7918 * target.def (gcov_type_size): New target hook.
7919 * targhooks.c (default_gcov_type_size): New.
7920 * targhooks.h (default_gcov_type_size): Declare.
7921 * tree-profile.c (gimple_gen_edge_profiler): Use precision of
7923 (gimple_gen_time_profiler): Likewise.
7925 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
7927 * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
7929 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
7931 PR middle-end/101931
7932 * omp-low.c (omp_runtime_api_call): Update for routines
7933 added in the meanwhile.
7935 2021-08-16 Martin Liska <mliska@suse.cz>
7937 PR tree-optimization/100393
7938 * tree-switch-conversion.c (group_cluster::dump): Use
7939 get_comparison_count.
7940 (jump_table_cluster::find_jump_tables): Pre-compute number of
7941 comparisons and then decrement it. Cache also max_ratio.
7942 (jump_table_cluster::can_be_handled): Change signature.
7943 * tree-switch-conversion.h (get_comparison_count): New.
7945 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
7947 * dwarf2out.c (add_data_member_location_attribute): Use GNAT
7948 encodings only when -fgnat-encodings=all is specified.
7949 (add_bound_info): Likewise.
7950 (add_byte_size_attribute): Likewise.
7951 (gen_member_die): Likewise.
7953 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
7955 * omp-oacc-neuter-broadcast.cc
7956 (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
7958 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
7960 * omp-oacc-neuter-broadcast.cc
7961 (execute_omp_oacc_neuter_broadcast): Clarify memory management for
7964 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
7966 * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
7967 (execute_omp_oacc_neuter_broadcast): ... here.
7968 (install_var_field, build_receiver_ref, build_sender_ref): Take
7969 'field_map_t *' parameter. Adjust all users.
7970 (worker_single_copy, neuter_worker_single): Take a
7971 'record_field_map_t *' parameter. Adjust all users.
7973 2021-08-16 liuhongt <hongtao.liu@intel.com>
7976 * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
7979 2021-08-16 Martin Liska <mliska@suse.cz>
7982 * multiple_target.c (create_dispatcher_calls): Make default
7983 function local only if it is a definition.
7985 2021-08-16 Martin Liska <mliska@suse.cz>
7988 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
7989 consider equal SSA_NAMEs when one is a param.
7991 2021-08-16 liuhongt <hongtao.liu@intel.com>
7994 * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
7995 Support vpermi2b for V32QI/V16QImode.
7996 (ix86_extract_perm_from_pool_constant): New function.
7997 (ix86_expand_vec_one_operand_perm_avx512): Support
7998 vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
7999 (expand_vec_perm_1): Adjust comments for upper.
8000 * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
8002 * config/i386/predicates.md (permvar_truncate_operand): New predicate.
8003 (pshufb_truncv4siv4hi_operand): Ditto.
8004 (pshufb_truncv8hiv8qi_operand): Ditto.
8005 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
8006 New pre_reload define_insn_and_split.
8007 (*avx512f_permvar_truncv8siv8hi_1): Ditto.
8008 (*avx512f_vpermvar_truncv8div8si_1): Ditto.
8009 (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
8010 (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
8011 (*avx512f_permvar_truncv4div4si_1): Ditto.
8012 (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
8013 (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
8014 (*avx512f_pshufd_truncv2div2si_1): Ditto.
8016 2021-08-16 Kito Cheng <kito.cheng@sifive.com>
8018 * config/riscv/multilib-generator: Support code model option for
8020 * doc/install.texi: Add document of new option for
8021 --with-multilib-generator.
8023 2021-08-15 Clément Chigot <clement.chigot@atos.net>
8025 * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
8026 (rs6000_legitimize_tls_address_aix): Use it.
8027 (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
8028 xcoff_tls_exec_model_detected is true.
8030 2021-08-15 Jeff Law <jlaw@localhost.localdomain>
8032 * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
8033 to allow a bit more code growth, saving many dozens of cycles.
8034 (h8300_option_override): Adjus shift_alg_si if optimizing for
8036 (get_shift_alg): Use special + inline shifts for residuals
8039 2021-08-14 Stafford Horne <shorne@gmail.com>
8042 * config/or1k/or1k-opts.h: New file.
8043 * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
8044 Support generating gotha relocations if -mcmodel=large is
8046 * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
8048 * config/or1k/or1k.opt (mcmodel=): New option.
8049 * doc/invoke.texi (OpenRISC Options): Document mcmodel.
8051 2021-08-14 Martin Sebor <msebor@redhat.com>
8053 PR middle-end/101791
8054 * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
8055 to valid_new_delete_pair_p.
8056 * tree.c (valid_new_delete_pair_p): Add argument.
8057 * tree.h (valid_new_delete_pair_p): Same.
8059 2021-08-14 Jakub Jelinek <jakub@redhat.com>
8062 * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
8063 <case E_V64QImode>: For this mode assert
8064 !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
8066 2021-08-13 Michael Meissner <meissner@linux.ibm.com>
8069 * config/rs6000/altivec.md (xxeval): Use register_predicate
8070 instead of altivec_register_predicate.
8072 2021-08-13 Martin Sebor <msebor@redhat.com>
8074 PR middle-end/101734
8075 * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
8076 (maybe_warn_operand): Call it.
8078 2021-08-13 Martin Liska <mliska@suse.cz>
8081 * attribs.c (decl_attributes): Make naked functions "noipa"
8084 2021-08-13 Martin Liska <mliska@suse.cz>
8087 * symtab.c (symtab_node::noninterposable_alias): Do not create
8088 local aliases for target_clone functions as the clonning pass
8091 2021-08-13 Martin Liska <mliska@suse.cz>
8093 * opts.c (LIVE_PATCHING_OPTION): Define.
8094 (control_options_for_live_patching): Use it in error messages.
8096 2021-08-13 Jan Hubicka <hubicka@ucw.cz>
8098 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
8099 (implicit_const_eaf_flags, implicit_pure_eaf_flags,
8100 ignore_stores_eaf_flags): New constants.
8101 (remove_useless_eaf_flags): New function.
8102 (eaf_flags_useful_p): Use it.
8103 (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
8105 (modref_lattice::init): Add EAF_NOREAD.
8106 (modref_lattice::add_escape_point): Do not reacord escape point if
8108 (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
8109 use remove_useless_eaf_flags.
8110 (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
8111 (modref_lattice::merge_direct_load): Add EAF_NOREAD
8112 (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
8113 (analyze_parms): Use remove_useless_eaf_flags.
8114 (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
8115 (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
8116 use remove_useless_eaf_flags.
8117 (modref_propagate_flags_in_scc): Update.
8118 * ipa-modref.h: Turn eaf_flags_t back to char.
8119 * tree-core.h (EAF_NOT_RETURNED): Fix.
8120 (EAF_NOREAD): New constant
8121 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
8123 * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
8124 (handle_pure_call): Likewise.
8126 2021-08-12 Jakub Jelinek <jakub@redhat.com>
8128 * tree.def (OMP_MASKED): New tree code.
8129 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
8130 * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
8131 OMP_CLAUSE_FILTER_EXPR): Define.
8132 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
8133 (omp_clause_code_name): Likewise.
8134 (walk_tree_1): Handle OMP_CLAUSE_FILTER.
8135 * tree-nested.c (convert_nonlocal_omp_clauses,
8136 convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
8137 (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
8138 convert_gimple_call): Handle GIMPLE_OMP_MASTER.
8139 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
8140 (dump_generic_node): Handle OMP_MASTER.
8141 * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
8142 * gimple.c (gimple_build_omp_masked): New function.
8143 (gimple_copy): Handle GIMPLE_OMP_MASKED.
8144 * gimple.h (gimple_build_omp_masked): Declare.
8145 (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
8146 (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
8147 gimple_omp_masked_set_clauses): New inline functions.
8148 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
8149 * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
8150 (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
8151 * gimple-walk.c (walk_gimple_stmt): Likewise.
8152 * gimple-low.c (lower_stmt): Likewise.
8153 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
8154 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER. For clauses
8155 that take one expression rather than decl or constant, force
8156 gimplification of that into a SSA_NAME or temporary unless min
8158 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
8159 (gimplify_expr): Handle OMP_MASKED.
8160 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
8161 (estimate_num_insns): Likewise.
8162 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
8163 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED. Adjust
8164 diagnostics for existence of masked construct.
8165 (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
8166 diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
8167 * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
8170 2021-08-12 Uroš Bizjak <ubizjak@gmail.com>
8173 * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
8174 (ldexp<mode>3): Use avx512f_scalef<mode>2.
8175 (UNSPEC_SCALEF): Move from ...
8176 * config/i386/sse.md (UNSPEC_SCALEF): ... here.
8178 2021-08-12 Jan Hubicka <hubicka@ucw.cz>
8180 * ipa-split.c (consider_split): Fix condition testing void functions.
8182 2021-08-12 Aldy Hernandez <aldyh@redhat.com>
8184 * doc/invoke.texi: Remove docs for threader-mode param.
8185 * flag-types.h (enum threader_mode): Remove.
8186 * params.opt: Remove threader-mode param.
8187 * tree-ssa-threadbackward.c (class back_threader): Remove
8188 path_is_unreachable_p.
8189 Make find_paths private.
8190 Add maybe_thread and thread_through_all_blocks.
8191 Remove reference marker for m_registry.
8192 Remove reference marker for m_profit.
8193 (back_threader::back_threader): Adjust for registry and profit not
8195 (dump_path): Move down.
8197 (class thread_jumps): Remove.
8198 (class back_threader_registry): Remove m_all_paths.
8200 (thread_jumps::thread_through_all_blocks): Move to back_threader
8202 (fsm_find_thread_path): Remove
8203 (back_threader::maybe_thread): New.
8204 (back_threader::thread_through_all_blocks): Move from
8206 (back_threader_registry::back_threader_registry): Remove
8208 (back_threader_registry::~back_threader_registry): Remove.
8209 (thread_jumps::find_taken_edge): Remove.
8210 (thread_jumps::check_subpath_and_update_thread_path): Remove.
8211 (thread_jumps::maybe_register_path): Remove.
8212 (thread_jumps::handle_phi): Remove.
8213 (handle_assignment_p): Remove.
8214 (thread_jumps::handle_assignment): Remove.
8215 (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
8216 (thread_jumps::find_jump_threads_backwards): Remove.
8217 (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
8218 (try_thread_blocks): Rename find_jump_threads_backwards to
8220 (pass_early_thread_jumps::execute): Same.
8222 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
8224 * tree-core.h (omp_clause_proc_bind_kind): Add
8225 OMP_CLAUSE_PROC_BIND_PRIMARY.
8226 * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
8227 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
8229 2021-08-12 Claudiu Zissulescu <claziss@synopsys.com>
8231 * common/config/arc/arc-common.c (arc_option_init_struct): Remove
8232 fno-common reference.
8233 * config/arc/arc.c (arc_override_options): Remove overriding of
8236 2021-08-12 Jakub Jelinek <jakub@redhat.com>
8239 * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
8240 If d->testing_p, return true after performing checks instead of
8241 actually expanding the insn.
8242 (expand_vec_perm_broadcast_1): Handle V32HImode - assert
8243 !TARGET_AVX512BW and return false.
8245 2021-08-12 Eric Botcazou <ebotcazou@gcc.gnu.org>
8247 * configure.ac (PE linker --disable-dynamicbase support): New check.
8248 * configure: Regenerate.
8249 * config.in: Likewise.
8250 * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
8251 (LINK_SPEC): Use it.
8252 * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
8253 (LINK_SPEC): Likewise.
8255 2021-08-12 liuhongt <hongtao.liu@intel.com>
8258 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
8259 post_reload define_insn_and_split.
8260 (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
8261 (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
8262 (*avx512f_zero_extendv16hiv16si2_2): Ditto.
8263 (*avx2_zero_extendv8hiv8si2_2): Ditto.
8264 (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
8265 (*avx512f_zero_extendv8siv8di2_2): Ditto.
8266 (*avx2_zero_extendv4siv4di2_2): Ditto.
8267 (*sse4_1_zero_extendv2siv2di2_4): Ditto.
8268 (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
8271 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
8273 * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
8276 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
8278 * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
8280 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
8282 * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
8283 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
8284 initialization of pcvoid_type_node here...
8285 (altivec_init_builtins): ...from here.
8286 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
8287 RS6000_BTI_const_ptr_void.
8288 (pcvoid_type_node): New macro.
8290 2021-08-11 Richard Biener <rguenther@suse.de>
8293 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
8294 hard-register accesses.
8296 2021-08-11 Richard Biener <rguenther@suse.de>
8298 * tree-ssa-operands.c (operands_scanner::get_expr_operands):
8299 Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
8300 to determine has_volatile_ops.
8302 2021-08-11 Eric Botcazou <ebotcazou@gcc.gnu.org>
8304 * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
8306 2021-08-11 Jan Hubicka <hubicka@ucw.cz>
8307 Alexandre Oliva <oliva@adacore.com>
8309 * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
8311 (modref_lattice::merge_deref): Fix handling of indirect scape points.
8312 (update_escape_summary_1): Likewise.
8313 (update_escape_summary): Likewise.
8314 (ipa_merge_modref_summary_after_inlining): Likewise.
8316 2021-08-11 Richard Biener <rguenther@suse.de>
8318 PR middle-end/101858
8319 * fold-const.c (fold_binary_loc): Guard simplification
8320 of X < (cast) (1 << Y) to integer types.
8322 2021-08-11 Richard Biener <rguenther@suse.de>
8324 PR tree-optimization/101861
8325 * tree-vect-stmts.c (vectorizable_load): Fix error in
8326 previous change with regard to gather vectorization.
8328 2021-08-11 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
8331 * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
8333 (vdup_n_s16): Likewise.
8334 (vdup_n_s32): Likewise.
8335 (vdup_n_s64): Likewise.
8336 (vdup_n_u8): Likewise.
8337 (vdup_n_u16): Likewise.
8338 (vdup_n_u32): Likewise.
8339 (vdup_n_u64): Likewise.
8340 (vdup_n_p8): Likewise.
8341 (vdup_n_p16): Likewise.
8342 (vdup_n_p64): Likewise.
8343 (vdup_n_f16): Likewise.
8344 (vdup_n_f32): Likewise.
8345 (vdupq_n_s8): Likewise.
8346 (vdupq_n_s16): Likewise.
8347 (vdupq_n_s32): Likewise.
8348 (vdupq_n_s64): Likewise.
8349 (vdupq_n_u8): Likewise.
8350 (vdupq_n_u16): Likewise.
8351 (vdupq_n_u32): Likewise.
8352 (vdupq_n_u64): Likewise.
8353 (vdupq_n_p8): Likewise.
8354 (vdupq_n_p16): Likewise.
8355 (vdupq_n_p64): Likewise.
8356 (vdupq_n_f16): Likewise.
8357 (vdupq_n_f32): Likewise.
8358 (vmov_n_s8): Replace call to builtin with call to corresponding
8360 (vmov_n_s16): Likewise.
8361 (vmov_n_s32): Likewise.
8362 (vmov_n_s64): Likewise.
8363 (vmov_n_u8): Likewise.
8364 (vmov_n_u16): Likewise.
8365 (vmov_n_u32): Likewise.
8366 (vmov_n_u64): Likewise.
8367 (vmov_n_p8): Likewise.
8368 (vmov_n_p16): Likewise.
8369 (vmov_n_f16): Likewise.
8370 (vmov_n_f32): Likewise.
8371 (vmovq_n_s8): Likewise.
8372 (vmovq_n_s16): Likewise.
8373 (vmovq_n_s32): Likewise.
8374 (vmovq_n_s64): Likewise.
8375 (vmovq_n_u8): Likewise.
8376 (vmovq_n_u16): Likewise.
8377 (vmovq_n_u32): Likewise.
8378 (vmovq_n_u64): Likewise.
8379 (vmovq_n_p8): Likewise.
8380 (vmovq_n_p16): Likewise.
8381 (vmovq_n_f16): Likewise.
8382 (vmovq_n_f32): Likewise.
8383 * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
8385 2021-08-11 liuhongt <hongtao.liu@intel.com>
8388 * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
8389 when TARGET_AVX512F and TARGET_SSE_MATH.
8391 2021-08-10 Jakub Jelinek <jakub@redhat.com>
8394 * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
8395 for V32HImode if !TARGET_AVX512BW.
8396 (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
8397 If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
8398 early, but actually check the permutation.
8400 2021-08-10 Richard Biener <rguenther@suse.de>
8402 PR tree-optimization/101809
8403 * tree-vect-stmts.c (get_load_store_type): Allow emulated
8404 gathers with offset vector nunits being a constant multiple
8405 of the data vector nunits.
8406 (vect_get_gather_scatter_ops): Use the appropriate nunits
8407 for the offset vector defs.
8408 (vectorizable_store): Adjust call to
8409 vect_get_gather_scatter_ops.
8410 (vectorizable_load): Likewise. Handle the case of less
8411 offset vectors than data vectors.
8413 2021-08-10 Jakub Jelinek <jakub@redhat.com>
8416 * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
8417 *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
8420 2021-08-10 Richard Biener <rguenther@suse.de>
8422 PR tree-optimization/101801
8423 PR tree-optimization/101819
8424 * tree-vectorizer.h (vect_emulated_vector_p): Declare.
8425 * tree-vect-loop.c (vect_emulated_vector_p): New function.
8426 (vectorizable_reduction): Re-instantiate a check for emulated
8428 * tree-vect-stmts.c (vectorizable_shift): Likewise.
8429 (vectorizable_operation): Likewise. Cost emulated vector
8430 operations according to the scalar sequence synthesized by
8433 2021-08-10 Richard Biener <rguenther@suse.de>
8435 PR middle-end/101824
8436 * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
8437 volatile in case the variable was.
8439 2021-08-10 H.J. Lu <hjl.tools@gmail.com>
8442 * config/i386/constraints.md (BC): Document for integer SSE
8443 constant all bits set operand.
8444 (BF): New constraint for const floating-point all bits set
8446 * config/i386/i386.c (standard_sse_constant_p): Likewise.
8447 (standard_sse_constant_opcode): Likewise.
8448 * config/i386/sse.md (sseconstm1): New mode attribute.
8449 (mov<mode>_internal): Replace BC with <sseconstm1>.
8451 2021-08-10 liuhongt <hongtao.liu@intel.com>
8453 * config/i386/sse.md (cond_<insn><mode>): New expander.
8454 (VI248_AVX512VLBW): New mode iterator.
8455 * config/i386/predicates.md
8456 (nonimmediate_or_const_vec_dup_operand): New predicate.
8458 2021-08-09 Andrew MacLeod <amacleod@redhat.com>
8460 PR tree-optimization/101741
8461 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
8462 type of parameter for toupper/tolower.
8464 2021-08-09 Martin Jambor <mjambor@suse.cz>
8467 * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
8469 2021-08-09 Pat Haugen <pthaugen@linux.ibm.com>
8471 * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
8473 (is_store_insn1): Verify source is a register.
8475 2021-08-09 Uroš Bizjak <ubizjak@gmail.com>
8478 * config/i386/mmx.md (<any_logic:code>v2sf3):
8479 Rename from *mmx_<any_logic:code>v2sf3
8481 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
8483 * config/nvptx/nvptx.c: Cross-reference parts adapted in
8484 'gcc/omp-oacc-neuter-broadcast.cc'.
8485 * omp-low.c: Likewise.
8486 * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
8489 2021-08-09 Julian Brown <julian@codesourcery.com>
8490 Kwok Cheung Yeung <kcy@codesourcery.com>
8491 Thomas Schwinge <thomas@codesourcery.com>
8493 * config/gcn/gcn.c (gcn_init_builtins): Override decls for
8494 BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
8495 BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
8496 (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
8497 (gcn_fork_join): Update comment.
8498 * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
8499 (macc_experimental_workers): Remove unused option.
8501 2021-08-09 Julian Brown <julian@codesourcery.com>
8502 Nathan Sidwell <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
8503 Kwok Cheung Yeung <kcy@codesourcery.com>
8504 Thomas Schwinge <thomas@codesourcery.com>
8506 * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
8507 * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
8508 Add documentation hook.
8509 * doc/tm.texi: Regenerate.
8510 * omp-oacc-neuter-broadcast.cc: New file.
8511 * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
8512 (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
8513 (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
8514 * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
8515 * target.def (goacc.create_worker_broadcast_record): Add target
8517 * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
8519 * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
8520 Rename prototype to...
8521 (gcn_goacc_create_worker_broadcast_record): ... this.
8522 * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
8524 (gcn_goacc_create_worker_broadcast_record): ... this.
8525 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
8527 (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
8529 2021-08-09 Tejas Belagod <tejas.belagod@arm.com>
8532 * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
8535 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
8537 * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
8539 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
8541 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
8542 consider '-foffload-abi'.
8543 * common.opt (-foffload-abi): Remove 'Var', 'Init'.
8544 * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
8547 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
8549 * optc-gen.awk: Sanity check that 'Init' doesn't appear without
8552 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
8554 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
8556 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
8558 * doc/gty.texi (Files): Update.
8560 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
8562 * doc/gty.texi (Files): Fix GTY header file example.
8564 2021-08-09 Roger Sayle <roger@nextmovesoftware.com>
8566 * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
8567 determine the upper and lower bounds from a mask-value pair.
8568 (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
8569 absolute value and unsigned absolute value expressions.
8570 (bit_value_binop): Initialize *VAL's precision.
8571 [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
8572 upper and lower bounds of operands. Add LE_EXPR/GE_EXPR
8573 support when the operands are unknown but potentially equal.
8574 [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
8576 2021-08-09 Bin Cheng <bin.cheng@linux.alibaba.com>
8578 * config/aarch64/aarch64.md
8579 (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
8581 2021-08-08 Sergei Trofimovich <siarheit@google.com>
8583 * lra-constraints.c: Fix s/otput/output/ typo.
8585 2021-08-06 Martin Sebor <msebor@redhat.com>
8587 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
8588 (expand_builtin_strcat): Same.
8589 (expand_builtin_stpncpy): Same.
8590 (expand_builtin_strncat): Same.
8591 (check_read_access): Same.
8592 (check_memop_access): Same.
8593 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
8594 (expand_builtin_strnlen): Same.
8595 (expand_builtin_memcpy): Same.
8596 (expand_builtin_memmove): Same.
8597 (expand_builtin_mempcpy): Same.
8598 (expand_builtin_strcpy): Same.
8599 (expand_builtin_strcpy_args): Same.
8600 (expand_builtin_stpcpy_1): Same.
8601 (expand_builtin_strncpy): Same.
8602 (expand_builtin_memset): Same.
8603 (expand_builtin_bzero): Same.
8604 (expand_builtin_strcmp): Same.
8605 (expand_builtin_strncmp): Same.
8606 (expand_builtin): Remove handlers.
8607 (fold_builtin_strlen): Add a comment.
8608 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
8609 * calls.c (maybe_warn_nonstring_arg): Same.
8610 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
8611 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
8612 (gimple_fold_builtin_stpcpy): Same.
8613 * gimple-ssa-warn-access.cc (has_location): New function.
8614 (get_location): Same.
8615 (get_callee_fndecl): Same.
8618 (warn_string_no_nul): Define.
8619 (unterminated_array): Same.
8620 (check_nul_terminated_array): Same.
8621 (maybe_warn_nonstring_arg): Same.
8622 (maybe_warn_for_bound): Same.
8623 (warn_for_access): Same.
8624 (check_access): Same.
8625 (check_memop_access): Same.
8626 (check_read_access): Same.
8627 (warn_dealloc_offset): Use helper functions.
8628 (maybe_emit_free_warning): Same.
8629 (class pass_waccess): Add members.
8630 (check_strcat): New function.
8631 (check_strncat): New function.
8632 (check_stxcpy): New function.
8633 (check_stxncpy): New function.
8634 (check_strncmp): New function.
8635 (pass_waccess::check_builtin): New function.
8636 (pass_waccess::check): Call it.
8637 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
8639 (maybe_warn_for_bound): Same.
8640 (check_access): Same.
8641 (check_memop_access): Same.
8642 (check_read_access): Same.
8643 * pointer-query.h (struct access_data): Define a ctor overload.
8645 2021-08-06 Richard Biener <rguenther@suse.de>
8647 PR tree-optimization/101801
8648 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
8649 (vect_can_vectorize_without_simd_p): ... to this.
8650 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
8651 (vect_can_vectorize_without_simd_p): ... to this and fold
8652 in vect_min_worthwhile_factor.
8653 (vect_min_worthwhile_factor): Remove.
8654 (vectorizable_reduction): Adjust and remove the cost part.
8655 * tree-vect-stmts.c (vectorizable_shift): Likewise.
8656 (vectorizable_operation): Likewise.
8658 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
8661 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
8662 Add general_gr_operand predicate to operand 3.
8664 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
8666 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
8667 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
8669 2021-08-06 Tamar Christina <tamar.christina@arm.com>
8671 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
8672 register_svprfop): Pass vec<> by pointer.
8673 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
8674 * langhooks.c (lhd_simulate_enum_decl): Likewise.
8675 * langhooks.h (struct lang_hooks_for_types): Likewise.
8677 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
8679 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
8680 __builtin_memcpy instead of constructing an additional
8681 __builtin_aarch64_simd_oi one vector at a time.
8682 (vst1q_bf16_x2): Likewise.
8683 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
8684 an additional __builtin_aarch64_simd_ci one vector at a time.
8685 (vst1q_bf16_x3): Likewise.
8686 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
8687 (vst1q_bf16_x4): Likewise.
8688 (vst2_bf16): Use __builtin_memcpy instead of constructing an
8689 additional __builtin_aarch64_simd_oi one vector at a time.
8690 (vst2q_bf16): Likewise.
8691 (vst3_bf16): Use __builtin_memcpy instead of constructing an
8692 additional __builtin_aarch64_simd_ci mode one vector at a
8694 (vst3q_bf16): Likewise.
8695 (vst4_bf16): Use __builtin_memcpy instead of constructing an
8696 additional __builtin_aarch64_simd_xi one vector at a time.
8697 (vst4q_bf16): Likewise.
8699 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
8701 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
8702 (__ST2Q_LANE_FUNC): Delete.
8703 (vst2_lane_f16): Use __builtin_memcpy to copy vector
8704 structure instead of constructing __builtin_aarch64_simd_oi
8705 one vector at a time.
8706 (vst2_lane_f32): Likewise.
8707 (vst2_lane_f64): Likewise.
8708 (vst2_lane_p8): Likewise.
8709 (vst2_lane_p16): Likewise.
8710 (vst2_lane_p64): Likewise.
8711 (vst2_lane_s8): Likewise.
8712 (vst2_lane_s16): Likewise.
8713 (vst2_lane_s32): Likewise.
8714 (vst2_lane_s64): Likewise.
8715 (vst2_lane_u8): Likewise.
8716 (vst2_lane_u16): Likewise.
8717 (vst2_lane_u32): Likewise.
8718 (vst2_lane_u64): Likewise.
8719 (vst2_lane_bf16): Likewise.
8720 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
8721 structure instead of using a union.
8722 (vst2q_lane_f32): Likewise.
8723 (vst2q_lane_f64): Likewise.
8724 (vst2q_lane_p8): Likewise.
8725 (vst2q_lane_p16): Likewise.
8726 (vst2q_lane_p64): Likewise.
8727 (vst2q_lane_s8): Likewise.
8728 (vst2q_lane_s16): Likewise.
8729 (vst2q_lane_s32): Likewise.
8730 (vst2q_lane_s64): Likewise.
8731 (vst2q_lane_u8): Likewise.
8732 (vst2q_lane_u16): Likewise.
8733 (vst2q_lane_u32): Likewise.
8734 (vst2q_lane_u64): Likewise.
8735 (vst2q_lane_bf16): Likewise.
8737 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
8739 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
8740 (__ST3Q_LANE_FUNC): Delete.
8741 (vst3_lane_f16): Use __builtin_memcpy to copy vector
8742 structure instead of constructing __builtin_aarch64_simd_ci
8743 one vector at a time.
8744 (vst3_lane_f32): Likewise.
8745 (vst3_lane_f64): Likewise.
8746 (vst3_lane_p8): Likewise.
8747 (vst3_lane_p16): Likewise.
8748 (vst3_lane_p64): Likewise.
8749 (vst3_lane_s8): Likewise.
8750 (vst3_lane_s16): Likewise.
8751 (vst3_lane_s32): Likewise.
8752 (vst3_lane_s64): Likewise.
8753 (vst3_lane_u8): Likewise.
8754 (vst3_lane_u16): Likewise.
8755 (vst3_lane_u32): Likewise.
8756 (vst3_lane_u64): Likewise.
8757 (vst3_lane_bf16): Likewise.
8758 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
8759 structure instead of using a union.
8760 (vst3q_lane_f32): Likewise.
8761 (vst3q_lane_f64): Likewise.
8762 (vst3q_lane_p8): Likewise.
8763 (vst3q_lane_p16): Likewise.
8764 (vst3q_lane_p64): Likewise.
8765 (vst3q_lane_s8): Likewise.
8766 (vst3q_lane_s16): Likewise.
8767 (vst3q_lane_s32): Likewise.
8768 (vst3q_lane_s64): Likewise.
8769 (vst3q_lane_u8): Likewise.
8770 (vst3q_lane_u16): Likewise.
8771 (vst3q_lane_u32): Likewise.
8772 (vst3q_lane_u64): Likewise.
8773 (vst3q_lane_bf16): Likewise.
8775 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
8777 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
8778 (__ST4Q_LANE_FUNC): Delete.
8779 (vst4_lane_f16): Use __builtin_memcpy to copy vector
8780 structure instead of constructing __builtin_aarch64_simd_xi
8781 one vector at a time.
8782 (vst4_lane_f32): Likewise.
8783 (vst4_lane_f64): Likewise.
8784 (vst4_lane_p8): Likewise.
8785 (vst4_lane_p16): Likewise.
8786 (vst4_lane_p64): Likewise.
8787 (vst4_lane_s8): Likewise.
8788 (vst4_lane_s16): Likewise.
8789 (vst4_lane_s32): Likewise.
8790 (vst4_lane_s64): Likewise.
8791 (vst4_lane_u8): Likewise.
8792 (vst4_lane_u16): Likewise.
8793 (vst4_lane_u32): Likewise.
8794 (vst4_lane_u64): Likewise.
8795 (vst4_lane_bf16): Likewise.
8796 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
8797 structure instead of using a union.
8798 (vst4q_lane_f32): Likewise.
8799 (vst4q_lane_f64): Likewise.
8800 (vst4q_lane_p8): Likewise.
8801 (vst4q_lane_p16): Likewise.
8802 (vst4q_lane_p64): Likewise.
8803 (vst4q_lane_s8): Likewise.
8804 (vst4q_lane_s16): Likewise.
8805 (vst4q_lane_s32): Likewise.
8806 (vst4q_lane_s64): Likewise.
8807 (vst4q_lane_u8): Likewise.
8808 (vst4q_lane_u16): Likewise.
8809 (vst4q_lane_u32): Likewise.
8810 (vst4q_lane_u64): Likewise.
8811 (vst4q_lane_bf16): Likewise.
8813 2021-08-06 Martin Liska <mliska@suse.cz>
8815 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
8816 a target option is restored, it can have
8817 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
8818 and error should not be emitted.
8820 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
8822 * gcov-io.h (gcov_write): Declare.
8823 * gcov-io.c (gcov_write): New.
8824 (gcov_write_counter): Remove.
8825 (gcov_write_tag_length): Likewise.
8826 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
8827 gcov_write_unsigned().
8828 * doc/invoke.texi (fprofile-info-section): Mention
8829 __gcov_info_to_gdca().
8831 2021-08-06 Martin Sebor <msebor@redhat.com>
8833 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
8834 arguments to by-reference.
8835 (iterate_fix_dominators): Same.
8836 * dominance.h (iterate_fix_dominators): Same.
8837 * ipa-prop.h: Call auto_vec::to_vec_legacy.
8838 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
8839 arguments to by-reference.
8840 (debug_data_dependence_relation): Same.
8841 (dump_data_dependence_relations): Same.
8842 * tree-data-ref.h (debug_data_dependence_relation): Same.
8843 (dump_data_dependence_relations): Same.
8844 * tree-predcom.c (dump_chains): Same.
8845 (initialize_root_vars_lm): Same.
8846 (determine_unroll_factor): Same.
8847 (replace_phis_by_defined_names): Same.
8848 (insert_init_seqs): Same.
8849 (pcom_worker::tree_predictive_commoning_loop): Call
8850 auto_vec::to_vec_legacy.
8851 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
8852 arguments to by-reference.
8853 * tree-ssa-threadbackward.c (populate_worklist): Same.
8854 (back_threader::resolve_def): Same.
8855 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
8856 (vect_enhance_data_refs_alignment): Same.
8857 (vect_check_lower_bound): Same.
8858 (vect_prune_runtime_alias_test_list): Same.
8859 (vect_permute_store_chain): Same.
8860 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
8861 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
8862 * tree-vectorizer.h (vect_permute_store_chain): Same.
8863 * vec.c (test_init): New function.
8864 (vec_c_tests): Call new function.
8865 * vec.h (vec): Declare ctors, dtor, and assignment.
8866 (auto_vec::vec_to_legacy): New function.
8867 (vec::copy): Adjust initialization.
8869 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
8872 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
8873 callee only uses GPRs.
8874 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
8875 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
8876 * config/i386/x86gprintrin.h: Add
8877 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
8878 to disable non-GPR ISAs.
8880 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
8882 PR middle-end/101787
8883 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
8885 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
8887 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
8888 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
8889 (vect_is_extending_load, vect_is_integer_truncation): New functions,
8890 moved from aarch64.c but given different names.
8891 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
8892 (aarch64_is_reduction, aarch64_reduc_type)
8893 (aarch64_embedded_comparison_type, aarch64_comparison_type)
8894 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
8895 in favor of the above. Update callers accordingly.
8897 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
8900 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
8901 writing .cpu directive in asm output.
8902 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
8903 (arm_last_printed_arch_string): Delete.
8904 (arm_last-printed_fpu_string): Delete.
8905 (arm_configure_build_target): If use of floating-point/SIMD is
8906 disabled, remove all fp/simd related features from the target ISA.
8907 (last_arm_targ_options): New variable.
8908 (arm_print_asm_arch_directives): Add new parameters. Change order
8909 of emitted directives and handle all cases here.
8910 (arm_file_start): Always call arm_print_asm_arch_directives, move
8911 all generation of .arch/.arch_extension here.
8912 (arm_file_end): Call arm_print_asm_arch.
8913 (arm_declare_function_name): Call arm_print_asm_arch_directives
8914 instead of printing .arch/.fpu directives directly.
8916 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
8918 * config/arm/arm.c (arm_configure_build_target): Don't call
8919 arm_option_reconfigure_globals.
8920 (arm_option_restore): Call arm_option_reconfigure_globals after
8921 reconfiguring the target.
8922 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
8924 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
8926 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
8927 arch_name is always set.
8929 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
8931 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
8932 of vec_select high-half from being added into Neon subtract
8935 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
8937 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
8938 of vec_select high-half from being added into Neon add cost.
8940 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
8942 * cfgloop.h (loops_list::loops_list): Add one optional argument
8943 root and adjust accordingly, update loop tree walking and factor
8945 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
8947 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
8949 PR tree-optimization/101626
8950 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
8951 reverse scalar storage order on a pointer or vector component.
8953 2021-08-05 liuhongt <hongtao.liu@intel.com>
8955 * config/i386/sse.md (cond_<code><mode>): New expander.
8957 2021-08-05 liuhongt <hongtao.liu@intel.com>
8959 * config/i386/sse.md (cond_<code><mode>): New expander.
8961 2021-08-05 liuhongt <hongtao.liu@intel.com>
8963 * config/i386/sse.md (cond_<code><mode>): New expander.
8965 2021-08-04 David Malcolm <dmalcolm@redhat.com>
8968 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
8970 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
8973 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
8974 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
8976 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
8979 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
8980 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
8981 data with SSE register from one memory location to another.
8983 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
8985 * config/s390/s390.c (expand_perm_with_vpdi): New function.
8986 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
8987 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
8988 parameterized expander.
8989 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
8991 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
8993 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
8994 (struct expand_vec_perm_d): Define struct.
8995 (expand_perm_with_merge): New function.
8996 (vectorize_vec_perm_const_1): New function.
8997 (s390_vectorize_vec_perm_const): New function.
8998 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
9000 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
9002 * config/s390/vector.md (V_HW_64): Remove mode iterator.
9003 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
9004 * config/s390/vx-builtins.md
9005 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
9008 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
9010 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
9012 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
9014 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
9015 instead of an unspec.
9017 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
9019 * config/s390/s390-modes.def: Add more vector modes to support
9020 concatenation of two vectors.
9021 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
9023 (s390_expand_merge): Likewise.
9024 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
9025 (s390_expand_merge): New function.
9026 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
9027 Remove constant definitions.
9028 * config/s390/vector.md (V_HW_2): Add mode iterators.
9029 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
9030 (vec_2x_nelts, vec_2x_wide): New mode attributes.
9031 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
9032 New pattern definitions.
9033 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
9034 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
9035 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
9036 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
9038 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
9040 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
9041 emit vec merge pattern.
9043 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
9045 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
9047 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
9048 vec_select high-half from being added into Neon multiply
9050 * rtlanal.c (vec_series_highpart_p): Define.
9051 * rtlanal.h (vec_series_highpart_p): Declare.
9053 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
9055 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
9057 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
9058 vec_select cost from being added into Neon multiply cost.
9060 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
9062 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
9063 which old_loop_vinfo is an epilogue loop that handles a constant
9064 number of iterations.
9066 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
9068 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
9069 when a reanalyzed loop fails to be cheaper than the current
9072 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
9074 * config/aarch64/aarch64.c: Fix a typo.
9076 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
9078 PR gcov-profile/101773
9079 * gcov-io.c (gcov_close): Check return code of a fclose.
9081 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9084 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
9085 .file statement when needed.
9087 2021-08-04 Richard Biener <rguenther@suse.de>
9089 * tree-vect-data-refs.c (vect_check_gather_scatter):
9090 Include widening conversions only when the result is
9091 still handed by native gather or the current offset
9092 size not already matches the data size.
9093 Also succeed analysis in case there's no native support,
9094 noted by a IFN_LAST ifn and a NULL decl.
9095 (vect_analyze_data_refs): Always consider gathers.
9096 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
9097 Test for no IFN gather rather than decl gather.
9098 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
9099 gather-scatter info and cost emulated gathers accordingly.
9100 (vect_truncate_gather_scatter_offset): Properly test for
9102 (vect_use_strided_gather_scatters_p): Likewise.
9103 (get_load_store_type): Handle emulated gathers and its
9105 (vectorizable_load): Likewise. Emulate them by extracting
9106 scalar offsets, doing scalar loads and a vector construct.
9108 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
9111 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
9112 argument to set m_max_size.
9113 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
9114 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
9115 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
9117 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
9118 Marc Glisse <marc.glisse@inria.fr>
9120 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
9121 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
9122 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
9124 2021-08-04 Richard Biener <rguenther@suse.de>
9126 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
9127 out code to decompose vector loads ...
9128 (optimize_vector_load): ... here. Generalize it to
9129 handle intermediate widening and TARGET_MEM_REF loads
9130 and apply it to loads with a supported vector mode as well.
9132 2021-08-04 Richard Biener <rguenther@suse.de>
9134 PR tree-optimization/101756
9135 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
9136 the result of the reduction epilogue is compatible to the original
9139 2021-08-04 liuhongt <hongtao.liu@intel.com>
9142 * config/i386/i386.md (peephole2): Refine predicate from
9143 register_operand to general_reg_operand.
9145 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
9147 * gimple-range-path.h (path_range_query::dump): Mark override.
9149 2021-08-04 Richard Biener <rguenther@suse.de>
9151 PR tree-optimization/101769
9152 * tree-tailcall.c (eliminate_tail_call): Add the created loop
9153 for the first recursion and return it via the new output parameter.
9154 (optimize_tail_call): Pass through new output param.
9155 (tree_optimize_tail_calls_1): After creating all latches,
9156 add the created loop to the loop tree. Do not mark loops for fixup.
9158 2021-08-04 Martin Liska <mliska@suse.cz>
9160 * doc/invoke.texi: Document threader-mode param.
9162 2021-08-04 liuhongt <hongtao.liu@intel.com>
9164 * config/i386/sse.md (cond_fma<mode>): New expander.
9165 (cond_fms<mode>): Ditto.
9166 (cond_fnma<mode>): Ditto.
9167 (cond_fnms<mode>): Ditto.
9169 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
9171 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
9173 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
9175 * config/rs6000/constraints.md: Remove "e" from the list of available
9176 constraint characters.
9178 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
9180 PR gcov-profile/71672
9181 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
9183 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
9185 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
9187 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
9189 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
9190 try XMM31 to avoid vzeroupper.
9192 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9194 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
9195 -mcpu=neoverse-512tvb.
9196 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
9197 * config/aarch64/aarch64-tune.md: Regenerate.
9198 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
9199 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
9200 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
9201 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
9202 (aarch64_adjust_body_cost): Likewise.
9204 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9206 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
9207 record issue information for operations that occur in the
9210 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9212 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
9213 parameter. Detect cases in which an Advanced SIMD MLA would almost
9214 certainly require a MOV.
9215 (aarch64_count_ops): Update accordingly.
9217 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9219 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
9220 function, split out from...
9221 (aarch64_detect_vector_stmt_subtype): ...here.
9222 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
9224 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9226 * config/aarch64/aarch64-protos.h (sve_vec_cost):
9227 Add gather_load_x32_cost and gather_load_x64_cost.
9228 * config/aarch64/aarch64.c (generic_sve_vector_cost)
9229 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
9230 accordingly, using the values given by the scalar_load * number
9231 of elements calculation that we used previously.
9232 (aarch64_detect_vector_stmt_subtype): Use the new fields.
9234 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9236 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
9237 function, split out from...
9238 (aarch64_adjust_body_cost): ...here.
9240 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9242 * config/aarch64/fractional-cost.h: New file.
9243 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
9244 and cost_fraction.h.
9245 (vec_cost_fraction): New typedef.
9246 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
9247 (aarch64_detect_vector_stmt_subtype): Likewise.
9248 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
9249 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
9251 (aarch64_adjust_body_cost): Likewise.
9252 (aarch64_test_cost_fraction): New function.
9253 (aarch64_run_selftests): Call it.
9255 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9257 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
9259 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
9261 (aarch64_estimated_poly_value): Likewise. Use the least significant
9262 set bit for the minimum and likely values. Use the most significant
9263 set bit for the maximum value.
9265 2021-08-03 liuhongt <hongtao.liu@intel.com>
9267 * config/i386/sse.md (cond_<insn><mode>): New expander.
9268 (cond_mul<mode>): Ditto.
9270 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
9272 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
9274 2021-08-03 liuhongt <hongtao.liu@intel.com>
9276 * config/i386/sse.md (cond_<insn><mode>):New expander.
9277 (cond_mul<mode>): Ditto.
9278 (cond_div<mode>): Ditto.
9280 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
9282 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
9283 check stack_realign_needed for stack realignment.
9284 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
9285 than the largest integer supported by vector register.
9286 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
9287 (MOVE_MAX): Set to bytes of the largest integer supported by
9289 (STORE_MAX_PIECES): New.
9291 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
9293 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
9294 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
9295 data from one memory location to another.
9297 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
9300 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
9302 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
9304 PR tree-optimization/101724
9305 * params.opt: Remove --param=threader-iterative.
9306 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
9309 2021-08-02 Tom de Vries <tdevries@suse.de>
9311 PR middle-end/101665
9312 * doc/extend.texi (nonnull attribute): Improve documentation.
9314 2021-08-02 Andrew Pinski <apinski@marvell.com>
9316 PR rtl-optimization/101683
9317 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
9319 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
9321 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
9322 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
9323 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
9324 (tree_ssa_phiop_worker): Update call to function above.
9326 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
9329 * config/i386/i386.md (bsr_rex64_1_zext): New.
9330 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
9331 with gen_bsr_rex64_1_zext.
9333 2021-07-31 Jakub Jelinek <jakub@redhat.com>
9336 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
9337 define_insn patterns.
9338 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
9339 Add combine splitters for constant - clz.
9340 (clz<mode>2): Use a temporary pseudo for bsr result.
9342 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
9344 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
9345 _mm_floor_sd, _mm_floor_ss): New.
9347 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
9349 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
9350 _mm_ceil_sd, _mm_ceil_ss): New.
9352 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
9354 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
9355 _mm_blend_ps, _mm_blendv_ps): New.
9357 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
9358 Uroš Bizjak <ubizjak@gmail.com>
9360 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
9361 to generate a conditional move using the carry flag after sub $1.
9362 (peephole2): Eliminate a register-to-register move by inverting
9363 the condition of a conditional move.
9365 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
9367 * config/mmix/mmix.md ("call", "call_value", "*call_real")
9368 ("*call_value_real"): Don't generate rtx mentioning the generic
9369 operands 1 and 2 to "call", and similarly for "call_value".
9370 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
9371 (mmix_print_operand): Use '!' instead of 'p'.
9373 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
9375 * doc/md.texi (call): Correct information about operand 2.
9376 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
9378 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
9380 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
9382 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
9384 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
9386 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
9388 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
9390 (*::get_bb_range): Ditto.
9391 (*::bb_range_p): Ditto.
9392 * gimple-range-cache.h: Change prototypes.
9394 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
9397 * builtins.c (builtin_memcpy_read_str): Change the mode argument
9398 from scalar_int_mode to fixed_size_mode.
9399 (builtin_strncpy_read_str): Likewise.
9400 (gen_memset_value_from_prev): New function.
9401 (builtin_memset_read_str): Change the mode argument from
9402 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
9403 and support CONST_VECTOR.
9404 (builtin_memset_gen_str): Likewise.
9405 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
9407 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
9408 with fixed_size_mode.
9409 (builtin_memset_read_str): Likewise.
9410 * expr.c (widest_int_mode_for_size): Renamed to ...
9411 (widest_fixed_size_mode_for_size): Add a bool argument to
9412 indicate if QI vector mode can be used.
9413 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
9414 instead of widest_int_mode_for_size.
9415 (pieces_addr::adjust): Change the mode argument from
9416 scalar_int_mode to fixed_size_mode.
9417 (op_by_pieces_d): Make m_len read-only. Add a bool member,
9418 m_qi_vector_mode, to indicate that QI vector mode can be used.
9419 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
9420 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
9421 instead of widest_int_mode_for_size.
9422 (op_by_pieces_d::get_usable_mode): Change the mode argument from
9423 scalar_int_mode to fixed_size_mode. Call
9424 widest_fixed_size_mode_for_size instead of
9425 widest_int_mode_for_size.
9426 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
9427 function to return the smallest integer or QI vector mode.
9428 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
9429 instead of widest_int_mode_for_size. Call
9430 smallest_fixed_size_mode_for_size instead of
9431 smallest_int_mode_for_size.
9432 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
9433 indicate that QI vector mode can be used and pass it to
9434 op_by_pieces_d::op_by_pieces_d.
9435 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
9436 instead of widest_int_mode_for_size. Pass memsetp to
9437 widest_fixed_size_mode_for_size to support QI vector mode.
9438 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
9439 (store_by_pieces): Pass memsetp to
9440 store_by_pieces_d::store_by_pieces_d.
9441 (clear_by_pieces_1): Removed.
9442 (clear_by_pieces): Replace clear_by_pieces_1 with
9443 builtin_memset_read_str and pass true to store_by_pieces_d to
9444 support vector mode broadcast.
9445 (string_cst_read_str): Change the mode argument from
9446 scalar_int_mode to fixed_size_mode.
9447 * expr.h (by_pieces_constfn): Change scalar_int_mode to
9449 (by_pieces_prev): Likewise.
9450 * rtl.h (lowpart_subreg_regno): New.
9451 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
9452 simplify_subreg_regno.
9453 * target.def (gen_memset_scratch_rtx): New hook.
9454 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
9455 * doc/tm.texi: Regenerated.
9457 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
9460 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
9461 TARGET_EXPR instead of MODIFY_EXPR.
9463 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
9466 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
9467 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
9468 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
9470 (vec_cmpu<IMSA:mode><mode_i>): New expander.
9472 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
9475 * config/i386/i386-options.c (ix86_option_override_internal):
9476 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
9478 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
9481 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
9482 explicitly dereferencing __a.
9483 (vld1_s64): Likewise.
9484 (vld1_u64): Likewise.
9485 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
9486 and change to VAR13.
9488 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
9490 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
9491 use of m_range_analyzer.
9492 (loop_versioning::lv_dom_walker::before_dom_children): Same.
9493 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
9494 (loop_versioning::prune_loop_conditions): Replace vr_values use
9495 with range_query interface.
9496 (pass_loop_versioning::execute): Use ranger.
9498 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
9501 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
9502 enum values, and emit a warning if they mismatch.
9504 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
9506 * cfgloop.h (as_const): New function.
9507 (class loop_iterator): Rename to ...
9508 (class loops_list): ... this.
9509 (loop_iterator::next): Rename to ...
9510 (loops_list::Iter::fill_curr_loop): ... this and adjust.
9511 (loop_iterator::loop_iterator): Rename to ...
9512 (loops_list::loops_list): ... this and adjust.
9513 (loops_list::Iter): New class.
9514 (loops_list::iterator): New type.
9515 (loops_list::const_iterator): New type.
9516 (loops_list::begin): New function.
9517 (loops_list::end): Likewise.
9518 (loops_list::begin const): Likewise.
9519 (loops_list::end const): Likewise.
9520 (FOR_EACH_LOOP): Remove.
9521 (FOR_EACH_LOOP_FN): Remove.
9522 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
9523 for loop with loops_list instance.
9524 (sort_sibling_loops): Likewise.
9525 (disambiguate_loops_with_multiple_latches): Likewise.
9526 (verify_loop_structure): Likewise.
9527 * cfgloopmanip.c (create_preheaders): Likewise.
9528 (force_single_succ_latches): Likewise.
9529 * config/aarch64/falkor-tag-collision-avoidance.c
9530 (execute_tag_collision_avoidance): Likewise.
9531 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
9532 * config/s390/s390.c (s390_adjust_loops): Likewise.
9533 * doc/loop.texi: Likewise.
9534 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
9535 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
9536 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
9537 (loop_versioning::make_versioning_decisions): Likewise.
9538 * gimple-ssa-split-paths.c (split_paths): Likewise.
9539 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
9540 * graphite.c (canonicalize_loop_form): Likewise.
9541 (graphite_transform_loops): Likewise.
9542 * ipa-fnsummary.c (analyze_function_body): Likewise.
9543 * ipa-pure-const.c (analyze_function): Likewise.
9544 * loop-doloop.c (doloop_optimize_loops): Likewise.
9545 * loop-init.c (loop_optimizer_finalize): Likewise.
9546 (fix_loop_structure): Likewise.
9547 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9548 (move_loop_invariants): Likewise.
9549 * loop-unroll.c (decide_unrolling): Likewise.
9550 (unroll_loops): Likewise.
9551 * modulo-sched.c (sms_schedule): Likewise.
9552 * predict.c (predict_loops): Likewise.
9553 (pass_profile::execute): Likewise.
9554 * profile.c (branch_prob): Likewise.
9555 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
9556 (sel_find_rgns): Likewise.
9557 * tree-cfg.c (replace_loop_annotate): Likewise.
9558 (replace_uses_by): Likewise.
9559 (move_sese_region_to_fn): Likewise.
9560 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
9561 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
9562 * tree-parloops.c (parallelize_loops): Likewise.
9563 * tree-predcom.c (tree_predictive_commoning): Likewise.
9564 * tree-scalar-evolution.c (scev_initialize): Likewise.
9565 (scev_reset): Likewise.
9566 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
9567 * tree-ssa-live.c (remove_unused_locals): Likewise.
9568 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
9569 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
9570 (tree_ssa_lim_initialize): Likewise.
9571 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
9572 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
9573 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
9574 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
9575 (free_numbers_of_iterations_estimates): Likewise.
9576 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
9577 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
9578 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
9579 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
9580 (pass_scev_cprop::execute): Likewise.
9581 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
9582 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
9583 * tree-ssa-threadupdate.c
9584 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
9585 * tree-vectorizer.c (vectorize_loops): Likewise.
9586 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
9588 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
9590 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
9591 generating a VOIDmode register for e.g the
9592 function_arg_info::end_marker.
9594 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
9596 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
9597 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
9598 (cc mode_attr): Similarly.
9599 (ccz subst_attr): Similarly.
9600 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
9601 * config/h8300/testcompare.md: Remove various cc0 based patterns
9602 that had been commented out. Add pattern to set CCZ from a bit
9605 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
9606 Julian Brown <julian@codesourcery.com>
9607 Kwok Cheung Yeung <kcy@codesourcery.com>
9609 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
9610 'update_stmt' after modification.
9611 (pass_oacc_loop_designation): New function, extracted out of...
9612 (pass_oacc_device_lower): ... this.
9613 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
9614 (make_pass_oacc_loop_designation): New
9615 * passes.def: Add it.
9616 * tree-parloops.c (create_parallel_loop): Adjust.
9617 * tree-pass.h (make_pass_oacc_loop_designation): New.
9619 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
9621 * flag-types.h (enum threader_mode): New.
9622 * params.opt: Add entry for --param=threader-mode.
9623 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
9624 (class back_threader): New.
9625 (back_threader::back_threader): New.
9626 (back_threader::~back_threader): New.
9627 (back_threader::maybe_register_path): New.
9628 (back_threader::find_taken_edge): New.
9629 (back_threader::find_taken_edge_switch): New.
9630 (back_threader::find_taken_edge_cond): New.
9631 (back_threader::resolve_def): New.
9632 (back_threader::resolve_phi): New.
9633 (back_threader::find_paths_to_names): New.
9634 (back_threader::find_paths): New.
9637 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
9638 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
9639 (pass_thread_jumps::execute): Abstract out code...
9640 (try_thread_blocks): ...here.
9641 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
9642 Abstract out threading candidate code to...
9643 (single_succ_to_potentially_threadable_block): ...here.
9644 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
9646 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
9647 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
9648 Return bool from register_jump_thread.
9650 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
9652 * target.def: in0 and in1 do not need to be registers.
9653 * doc/tm.texi: Regenerate.
9655 2021-07-29 liuhongt <hongtao.liu@intel.com>
9658 * config/i386/i386.c (ix86_widen_mult_cost): New function.
9659 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
9662 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
9665 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
9666 (rs6000_preferred_doloop_mode): New hook.
9667 * doc/tm.texi: Regenerate.
9668 * doc/tm.texi.in: Add hook preferred_doloop_mode.
9669 * target.def (preferred_doloop_mode): New hook.
9670 * targhooks.c (default_preferred_doloop_mode): New hook.
9671 * targhooks.h (default_preferred_doloop_mode): New hook.
9672 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
9673 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
9674 and compute_doloop_base_on_mode.
9676 2021-07-28 Martin Sebor <msebor@redhat.com>
9678 PR middle-end/101494
9679 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
9680 and size computation.
9682 2021-07-28 Martin Sebor <msebor@redhat.com>
9684 PR middle-end/101601
9685 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
9687 Handle pointers to functions.
9689 2021-07-28 Martin Sebor <msebor@redhat.com>
9691 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
9692 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
9693 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
9694 (access_ref::access_ref): Same.
9695 (access_ref::phi): Same.
9696 (access_ref::get_ref): Same.
9697 (access_ref::size_remaining): Same.
9698 (access_ref::offset_in_range): Same.
9699 (access_ref::add_offset): Same.
9700 (access_ref::inform_access): Same.
9701 (ssa_name_limit_t::visit_phi): Same.
9702 (ssa_name_limit_t::leave_phi): Same.
9703 (ssa_name_limit_t::next): Same.
9704 (ssa_name_limit_t::next_phi): Same.
9705 (ssa_name_limit_t::~ssa_name_limit_t): Same.
9706 (pointer_query::pointer_query): Same.
9707 (pointer_query::get_ref): Same.
9708 (pointer_query::put_ref): Same.
9709 (pointer_query::flush_cache): Same.
9710 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
9711 (check_nul_terminated_array): Same.
9712 (unterminated_array): Same.
9713 (maybe_warn_for_bound): Same.
9714 (check_read_access): Same.
9715 (warn_for_access): Same.
9716 (get_size_range): Same.
9717 (check_access): Same.
9718 (gimple_call_alloc_size): Move to tree.c.
9719 (gimple_parm_array_size): Move to pointer-query.cc.
9720 (get_offset_range): Same.
9721 (gimple_call_return_array): Same.
9722 (handle_min_max_size): Same.
9723 (handle_array_ref): Same.
9724 (handle_mem_ref): Same.
9725 (compute_objsize): Same.
9726 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
9727 (call_dealloc_argno): Same.
9728 (fndecl_dealloc_argno): Same.
9729 (new_delete_mismatch_p): Same.
9730 (matching_alloc_calls_p): Same.
9731 (warn_dealloc_offset): Same.
9732 (maybe_emit_free_warning): Same.
9733 * builtins.h (check_nul_terminated_array): Move to
9734 gimple-ssa-warn-access.h.
9735 (check_nul_terminated_array): Same.
9736 (warn_string_no_nul): Same.
9737 (unterminated_array): Same.
9738 (class ssa_name_limit_t): Same.
9739 (class pointer_query): Same.
9740 (struct access_ref): Same.
9741 (class range_query): Same.
9742 (struct access_data): Same.
9743 (gimple_call_alloc_size): Same.
9744 (gimple_parm_array_size): Same.
9745 (compute_objsize): Same.
9746 (class access_data): Same.
9747 (maybe_emit_free_warning): Same.
9748 * calls.c (initialize_argument_information): Remove call to
9749 maybe_emit_free_warning.
9750 * gimple-array-bounds.cc: Include new header..
9751 * gimple-fold.c: Same.
9752 * gimple-ssa-sprintf.c: Same.
9753 * gimple-ssa-warn-restrict.c: Same.
9754 * passes.def: Add pass_warn_access.
9755 * tree-pass.h (make_pass_warn_access): Declare.
9756 * tree-ssa-strlen.c: Include new headers.
9757 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
9758 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
9759 * gimple-ssa-warn-access.cc: New file.
9760 * gimple-ssa-warn-access.h: New file.
9761 * pointer-query.cc: New file.
9762 * pointer-query.h: New file.
9764 2021-07-28 Jakub Jelinek <jakub@redhat.com>
9766 PR middle-end/101624
9767 * ubsan.c (maybe_instrument_pointer_overflow,
9768 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
9769 PARM_DECLs or RESULT_DECLs.
9770 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
9772 2021-07-28 Jakub Jelinek <jakub@redhat.com>
9774 PR middle-end/101642
9775 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
9776 to type of bswap16 for comparison.
9777 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
9779 2021-07-28 Richard Biener <rguenther@suse.de>
9781 PR tree-optimization/101615
9782 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
9783 at CTOR SLP graph entries.
9785 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9787 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
9788 Add "r,w" alternative.
9790 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
9793 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
9794 AVX_U128_DIRTY when all bits are zero.
9796 2021-07-28 Richard Biener <rguenther@suse.de>
9798 PR tree-optimization/101615
9799 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
9800 external nodes cannot be permuted so make them perm_out 0.
9802 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
9805 * config.in: Regenerate.
9806 * config/gcn/gcn-hsa.h (A_FIJI): New define.
9807 (A_900): New define.
9808 (A_906): New define.
9809 (A_908): New define.
9810 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
9811 * config/gcn/gcn.c (output_file_start): Adjust attributes according
9812 to the assembler capabilities.
9813 * config/gcn/mkoffload.c (main): Likewise.
9814 * configure: Regenerate.
9815 * configure.ac: Add tests for LLVM assembler attribute features.
9817 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
9819 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
9820 cond_false and cond_true on branches.
9822 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
9824 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
9827 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
9829 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
9831 2021-07-28 Jakub Jelinek <jakub@redhat.com>
9834 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
9835 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
9836 and has special !TARGET_AVX512VL expansion.
9837 (vashrv2di3<mask_name>): Rename to ...
9838 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
9839 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
9841 2021-07-28 Martin Uecker <muecker@gwdg.de>
9843 * calls.c (maybe_warn_rdwr_sizes): Correct argument
9844 numbers in warning that were switched.
9846 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
9848 PR tree-optimization/101596
9849 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
9850 by using new_type's precision instead.
9852 2021-07-28 liuhongt <hongtao.liu@intel.com>
9855 * config/i386/i386.h (processor_costs): Add new member
9857 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
9858 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
9859 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
9860 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
9861 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
9862 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
9863 generic_cost, core_cost): Initialize integer_to_sse same value
9865 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
9866 * config/i386/i386.c (ix86_builtin_vectorization_cost):
9867 Use integer_to_sse instead of sse_op to calculate the cost of
9870 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
9872 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
9874 (write_init_file): Call write_ovld_static_init.
9876 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
9878 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
9880 (write_init_file): Call write_bif_static_init.
9882 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
9884 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
9885 (TYPE_MAP_SIZE): New macro.
9886 (type_map): New initialized variable.
9887 (typemap_cmp): New function.
9888 (write_type_node): Likewise.
9889 (write_fntype_init): Implement.
9891 2021-07-27 Martin Sebor <msebor@redhat.com>
9893 PR tree-optimization/101584
9894 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
9895 (check_defs): Call it.
9897 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
9899 * tree-ssa-dom.c (dom_jump_threader_simplifier):
9900 Put avail_exprs_stack in the class, instead of passing it to
9901 jump_threader_simplifier.
9902 (dom_jump_threader_simplifier::simplify): Add state argument.
9903 (dom_opt_dom_walker): Add state.
9904 (pass_dominator::execute): Pass state to threader.
9905 (dom_opt_dom_walker::before_dom_children): Use state.
9906 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
9908 (jump_threader::record_temporary_equivalences_from_phis):
9909 Register equivalences through the state variable.
9910 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
9911 Record ranges in a statement through the state variable.
9912 (jump_threader::simplify_control_stmt_condition): Pass state to
9914 (jump_threader::simplify_control_stmt_condition_1): Same.
9915 (jump_threader::thread_around_empty_blocks): Remove obsolete
9917 (jump_threader::thread_through_normal_block): Record equivalences
9918 on edge through the state variable.
9919 (jump_threader::thread_across_edge): Abstract state pushing.
9920 (jt_state::jt_state): New.
9921 (jt_state::push): New.
9922 (jt_state::pop): New.
9923 (jt_state::register_equiv): New.
9924 (jt_state::record_ranges_from_stmt): New.
9925 (jt_state::register_equivs_on_edge): New.
9926 (jump_threader_simplifier::jump_threader_simplifier): Move from
9928 (jump_threader_simplifier::simplify): Add state argument.
9929 * tree-ssa-threadedge.h (class jt_state): New.
9930 (class jump_threader): Add state to constructor.
9931 (class jump_threader_simplifier): Add state to simplify. Remove
9932 avail_exprs_stack from class.
9933 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
9935 (vrp_jump_threader::vrp_jump_threader): Add state.
9936 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
9938 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
9940 * Makefile.in (OBJS): Add gimple-range-path.o.
9941 * gimple-range-path.cc: New file.
9942 * gimple-range-path.h: New file.
9944 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
9946 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
9947 inside vec_duplicate for all patterns.
9948 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
9949 Push sign/zero-extension inside vec_duplicate.
9951 2021-07-27 Richard Biener <rguenther@suse.de>
9953 PR tree-optimization/101573
9954 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
9955 looking at uninitialized PHI arg defs in some constrained cases.
9956 (warn_uninitialized_vars): Call it.
9957 (execute_early_warn_uninitialized): Calculate dominators.
9959 2021-07-27 Richard Biener <rguenther@suse.de>
9961 PR tree-optimization/39821
9962 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
9963 vector_stmt for widening arithmetic.
9964 (vectorizable_conversion): Adjust.
9966 2021-07-27 Martin Jambor <mjambor@suse.cz>
9968 * cgraph.h (ipa_replace_map): New field force_load_ref.
9969 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
9970 aded new flag load_dereferenced, adjusted comments.
9971 (ipa_get_param_dereferenced): New function.
9972 (ipa_set_param_dereferenced): Likewise.
9973 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
9974 * ipa-cp.c: Include gimple.h.
9975 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
9976 (get_replacement_map): New parameter force_load_ref, set the
9977 appropriate flag in ipa_replace_map if set.
9978 (struct symbol_and_index_together): New type.
9979 (adjust_refs_in_act_callers): New function.
9980 (adjust_references_in_caller): Likewise.
9981 (create_specialized_node): When appropriate, call
9982 adjust_references_in_caller and force only load references.
9983 * ipa-prop.c (load_from_dereferenced_name): New function.
9984 (ipa_analyze_controlled_uses): Also detect loads from a
9985 dereference, harden testing of call statements.
9986 (ipa_write_node_info): Stream the dereferenced flag.
9987 (ipa_read_node_info): Likewise.
9988 (ipa_set_jf_constant): Also create refdesc when jump function
9989 references a variable.
9990 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
9991 also on references of variables and return a symtab_node. Adjust
9993 (propagate_controlled_uses): Also remove references to VAR_DECLs.
9995 2021-07-27 Jakub Jelinek <jakub@redhat.com>
9997 PR middle-end/101586
9998 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
9999 positions above or equal to sz except for diagnostics of flexible
10002 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
10004 PR tree-optimization/78888
10005 * gimple-range-fold.cc (get_letter_range): New.
10006 (fold_using_range::range_of_builtin_call): Call get_letter_range.
10008 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
10010 PR tree-optimization/78888
10011 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
10012 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
10014 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
10015 Marc Glisse <marc.glisse@inria.fr>
10017 * match.pd (rotate): Simplify equality/inequality of rotations.
10018 (bswap): Simplify equality/inequality tests of byte swapping.
10020 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10022 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
10025 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10027 * range-op.cc (operator_lshift::fold_range): Pass rel to
10028 base class fold_range.
10029 (operator_rshift::fold_range): Same.
10031 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
10034 * toplev.h (min_align_loops_log): Remove declaration.
10035 (min_align_jumps_log, min_align_labels_log): Likewise.
10036 (min_align_functions_log): Likewise.
10038 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10040 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
10042 (execute_vrp): Abstract out simplification of conditionals...
10043 (simplify_casted_conds): ...here.
10045 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10047 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
10048 Add gimple argument.
10049 (array_bounds_checker::check_array_ref): Same.
10050 (array_bounds_checker::check_addr_expr): Same.
10051 (array_bounds_checker::check_array_bounds): Pass statement to
10052 check_array_bounds and check_addr_expr.
10053 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
10054 (check_addr_expr): Same.
10055 (get_value_range): Same.
10057 2021-07-26 Tamar Christina <tamar.christina@arm.com>
10059 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
10060 (sdot_prod, udot_prod): ... This.
10061 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
10063 (<sur>dot_prod<vsi2qi>): ... this.
10064 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
10065 Change operands order.
10066 (<sur>sadv16qi): Use new operands order.
10067 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
10068 vdotq_s32): Use new RTL ordering.
10070 2021-07-26 Tamar Christina <tamar.christina@arm.com>
10072 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
10073 aarch64_types_ternop_suss_qualifiers): New.
10074 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
10075 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
10076 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
10078 2021-07-23 Jakub Jelinek <jakub@redhat.com>
10080 PR rtl-optimization/101562
10081 * expmed.c (store_integral_bit_field): Only use movstrict_optab
10082 if the operand isn't paradoxical.
10084 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
10086 * gimple-array-bounds.h (class array_bounds_checker): Change
10087 ranges type to range_query.
10089 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10091 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
10092 __builtin_memcpy instead of constructing
10093 __builtin_aarch64_simd_oi one vector at a time.
10094 (vst1_u64_x2): Likewise.
10095 (vst1_f64_x2): Likewise.
10096 (vst1_s8_x2): Likewise.
10097 (vst1_p8_x2): Likewise.
10098 (vst1_s16_x2): Likewise.
10099 (vst1_p16_x2): Likewise.
10100 (vst1_s32_x2): Likewise.
10101 (vst1_u8_x2): Likewise.
10102 (vst1_u16_x2): Likewise.
10103 (vst1_u32_x2): Likewise.
10104 (vst1_f16_x2): Likewise.
10105 (vst1_f32_x2): Likewise.
10106 (vst1_p64_x2): Likewise.
10107 (vst1q_s8_x2): Likewise.
10108 (vst1q_p8_x2): Likewise.
10109 (vst1q_s16_x2): Likewise.
10110 (vst1q_p16_x2): Likewise.
10111 (vst1q_s32_x2): Likewise.
10112 (vst1q_s64_x2): Likewise.
10113 (vst1q_u8_x2): Likewise.
10114 (vst1q_u16_x2): Likewise.
10115 (vst1q_u32_x2): Likewise.
10116 (vst1q_u64_x2): Likewise.
10117 (vst1q_f16_x2): Likewise.
10118 (vst1q_f32_x2): Likewise.
10119 (vst1q_f64_x2): Likewise.
10120 (vst1q_p64_x2): Likewise.
10122 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10124 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
10125 __builtin_memcpy instead of constructing
10126 __builtin_aarch64_simd_ci one vector at a time.
10127 (vst1_u64_x3): Likewise.
10128 (vst1_f64_x3): Likewise.
10129 (vst1_s8_x3): Likewise.
10130 (vst1_p8_x3): Likewise.
10131 (vst1_s16_x3): Likewise.
10132 (vst1_p16_x3): Likewise.
10133 (vst1_s32_x3): Likewise.
10134 (vst1_u8_x3): Likewise.
10135 (vst1_u16_x3): Likewise.
10136 (vst1_u32_x3): Likewise.
10137 (vst1_f16_x3): Likewise.
10138 (vst1_f32_x3): Likewise.
10139 (vst1_p64_x3): Likewise.
10140 (vst1q_s8_x3): Likewise.
10141 (vst1q_p8_x3): Likewise.
10142 (vst1q_s16_x3): Likewise.
10143 (vst1q_p16_x3): Likewise.
10144 (vst1q_s32_x3): Likewise.
10145 (vst1q_s64_x3): Likewise.
10146 (vst1q_u8_x3): Likewise.
10147 (vst1q_u16_x3): Likewise.
10148 (vst1q_u32_x3): Likewise.
10149 (vst1q_u64_x3): Likewise.
10150 (vst1q_f16_x3): Likewise.
10151 (vst1q_f32_x3): Likewise.
10152 (vst1q_f64_x3): Likewise.
10153 (vst1q_p64_x3): Likewise.
10155 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
10158 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
10159 hard register when LRA is in progress.
10161 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10163 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
10164 __builtin_memcpy instead of using a union.
10165 (vst1q_s8_x4): Likewise.
10166 (vst1_s16_x4): Likewise.
10167 (vst1q_s16_x4): Likewise.
10168 (vst1_s32_x4): Likewise.
10169 (vst1q_s32_x4): Likewise.
10170 (vst1_u8_x4): Likewise.
10171 (vst1q_u8_x4): Likewise.
10172 (vst1_u16_x4): Likewise.
10173 (vst1q_u16_x4): Likewise.
10174 (vst1_u32_x4): Likewise.
10175 (vst1q_u32_x4): Likewise.
10176 (vst1_f16_x4): Likewise.
10177 (vst1q_f16_x4): Likewise.
10178 (vst1_f32_x4): Likewise.
10179 (vst1q_f32_x4): Likewise.
10180 (vst1_p8_x4): Likewise.
10181 (vst1q_p8_x4): Likewise.
10182 (vst1_p16_x4): Likewise.
10183 (vst1q_p16_x4): Likewise.
10184 (vst1_s64_x4): Likewise.
10185 (vst1_u64_x4): Likewise.
10186 (vst1_p64_x4): Likewise.
10187 (vst1q_s64_x4): Likewise.
10188 (vst1q_u64_x4): Likewise.
10189 (vst1q_p64_x4): Likewise.
10190 (vst1_f64_x4): Likewise.
10191 (vst1q_f64_x4): Likewise.
10193 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
10195 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
10196 instead of constructing __builtin_aarch64_simd_oi one vector
10198 (vst2_u64): Likewise.
10199 (vst2_f64): Likewise.
10200 (vst2_s8): Likewise.
10201 (vst2_p8): Likewise.
10202 (vst2_s16): Likewise.
10203 (vst2_p16): Likewise.
10204 (vst2_s32): Likewise.
10205 (vst2_u8): Likewise.
10206 (vst2_u16): Likewise.
10207 (vst2_u32): Likewise.
10208 (vst2_f16): Likewise.
10209 (vst2_f32): Likewise.
10210 (vst2_p64): Likewise.
10211 (vst2q_s8): Likewise.
10212 (vst2q_p8): Likewise.
10213 (vst2q_s16): Likewise.
10214 (vst2q_p16): Likewise.
10215 (vst2q_s32): Likewise.
10216 (vst2q_s64): Likewise.
10217 (vst2q_u8): Likewise.
10218 (vst2q_u16): Likewise.
10219 (vst2q_u32): Likewise.
10220 (vst2q_u64): Likewise.
10221 (vst2q_f16): Likewise.
10222 (vst2q_f32): Likewise.
10223 (vst2q_f64): Likewise.
10224 (vst2q_p64): Likewise.
10226 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10228 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
10229 instead of constructing __builtin_aarch64_simd_ci one vector
10231 (vst3_u64): Likewise.
10232 (vst3_f64): Likewise.
10233 (vst3_s8): Likewise.
10234 (vst3_p8): Likewise.
10235 (vst3_s16): Likewise.
10236 (vst3_p16): Likewise.
10237 (vst3_s32): Likewise.
10238 (vst3_u8): Likewise.
10239 (vst3_u16): Likewise.
10240 (vst3_u32): Likewise.
10241 (vst3_f16): Likewise.
10242 (vst3_f32): Likewise.
10243 (vst3_p64): Likewise.
10244 (vst3q_s8): Likewise.
10245 (vst3q_p8): Likewise.
10246 (vst3q_s16): Likewise.
10247 (vst3q_p16): Likewise.
10248 (vst3q_s32): Likewise.
10249 (vst3q_s64): Likewise.
10250 (vst3q_u8): Likewise.
10251 (vst3q_u16): Likewise.
10252 (vst3q_u32): Likewise.
10253 (vst3q_u64): Likewise.
10254 (vst3q_f16): Likewise.
10255 (vst3q_f32): Likewise.
10256 (vst3q_f64): Likewise.
10257 (vst3q_p64): Likewise.
10259 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10261 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
10262 instead of constructing __builtin_aarch64_simd_xi one vector
10264 (vst4_u64): Likewise.
10265 (vst4_f64): Likewise.
10266 (vst4_s8): Likewise.
10267 (vst4_p8): Likewise.
10268 (vst4_s16): Likewise.
10269 (vst4_p16): Likewise.
10270 (vst4_s32): Likewise.
10271 (vst4_u8): Likewise.
10272 (vst4_u16): Likewise.
10273 (vst4_u32): Likewise.
10274 (vst4_f16): Likewise.
10275 (vst4_f32): Likewise.
10276 (vst4_p64): Likewise.
10277 (vst4q_s8): Likewise.
10278 (vst4q_p8): Likewise.
10279 (vst4q_s16): Likewise.
10280 (vst4q_p16): Likewise.
10281 (vst4q_s32): Likewise.
10282 (vst4q_s64): Likewise.
10283 (vst4q_u8): Likewise.
10284 (vst4q_u16): Likewise.
10285 (vst4q_u32): Likewise.
10286 (vst4q_u64): Likewise.
10287 (vst4q_f16): Likewise.
10288 (vst4q_f32): Likewise.
10289 (vst4q_f64): Likewise.
10290 (vst4q_p64): Likewise.
10292 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10294 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
10295 instead of constructing __builtin_aarch64_simd_oi one vector
10297 (vtbx4_u8): Likewise.
10298 (vtbx4_p8): Likewise.
10300 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10302 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
10303 instead of constructing __builtin_aarch64_simd_oi one vector
10305 (vtbl3_u8): Likewise.
10306 (vtbl3_p8): Likewise.
10307 (vtbl4_s8): Likewise.
10308 (vtbl4_u8): Likewise.
10309 (vtbl4_p8): Likewise.
10311 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10313 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
10314 instead of constructing __builtin_aarch64_simd_oi one vector
10316 (vqtbx2_u8): Likewise.
10317 (vqtbx2_p8): Likewise.
10318 (vqtbx2q_s8): Likewise.
10319 (vqtbx2q_u8): Likewise.
10320 (vqtbx2q_p8): Likewise.
10321 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
10322 __builtin_aarch64_simd_ci one vector at a time.
10323 (vqtbx3_u8): Likewise.
10324 (vqtbx3_p8): Likewise.
10325 (vqtbx3q_s8): Likewise.
10326 (vqtbx3q_u8): Likewise.
10327 (vqtbx3q_p8): Likewise.
10328 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
10329 __builtin_aarch64_simd_xi one vector at a time.
10330 (vqtbx4_u8): Likewise.
10331 (vqtbx4_p8): Likewise.
10332 (vqtbx4q_s8): Likewise.
10333 (vqtbx4q_u8): Likewise.
10334 (vqtbx4q_p8): Likewise.
10336 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10338 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
10339 instead of constructing __builtin_aarch64_simd_oi one vector
10341 (vqtbl2_u8): Likewise.
10342 (vqtbl2_p8): Likewise.
10343 (vqtbl2q_s8): Likewise.
10344 (vqtbl2q_u8): Likewise.
10345 (vqtbl2q_p8): Likewise.
10346 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
10347 __builtin_aarch64_simd_ci one vector at a time.
10348 (vqtbl3_u8): Likewise.
10349 (vqtbl3_p8): Likewise.
10350 (vqtbl3q_s8): Likewise.
10351 (vqtbl3q_u8): Likewise.
10352 (vqtbl3q_p8): Likewise.
10353 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
10354 __builtin_aarch64_simd_xi one vector at a time.
10355 (vqtbl4_u8): Likewise.
10356 (vqtbl4_p8): Likewise.
10357 (vqtbl4q_s8): Likewise.
10358 (vqtbl4q_u8): Likewise.
10359 (vqtbl4q_p8): Likewise.
10361 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
10364 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
10366 2021-07-22 Andrew Pinski <apinski@marvell.com>
10368 PR tree-optimization/10153
10369 * tree-tailcall.c (create_tailcall_accumulator):
10370 Don't call fold_convert as the type should be correct already.
10371 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
10372 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
10374 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
10376 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
10377 varying_p check for null/non-null check.
10379 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
10381 PR tree-optimization/101511
10382 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
10383 is in ssa2's equiv set, and don't trap if so.
10385 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
10387 PR tree-optimization/101497
10388 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
10391 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
10393 PR tree-optimization/101496
10394 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
10395 first, then vrp_visit_cond_Stmt.
10397 2021-07-22 liuhongt <hongtao.liu@intel.com>
10399 * config/i386/i386-expand.c
10400 (ix86_broadcast_from_integer_constant): Rename to ..
10401 (ix86_broadcast_from_constant): .. this, and extend it to
10403 (ix86_expand_vector_move): Extend to float mode.
10404 * config/i386/i386-features.c
10405 (replace_constant_pool_with_broadcast): Remove.
10406 (remove_partial_avx_dependency_gate): Ditto.
10407 (constant_pool_broadcast): Ditto.
10408 (class pass_constant_pool_broadcast): Ditto.
10409 (make_pass_constant_pool_broadcast): Ditto.
10410 (remove_partial_avx_dependency): Adjust gate.
10411 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
10412 * config/i386/i386-protos.h
10413 (make_pass_constant_pool_broadcast): Remove.
10415 2021-07-22 liuhongt <hongtao.liu@intel.com>
10417 * config/i386/constraints.md (Wb): New constraint.
10419 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
10421 (*ashlqi3_1): Ditto.
10422 (*<insn><mode>3_1): Split to ..
10423 (*ashr<mode>3_1): this, ...
10424 (*lshr<mode>3_1): and this, also extend this pattern to avx512
10426 (*<insn><mode>3_1): Split to ..
10427 (*ashr<mode>3_1): this, ...
10428 (*lshrqi3_1): and this, also extend this pattern to avx512
10430 (*lshrhi3_1): And this, also extend this pattern to avx512
10432 * config/i386/sse.md (k<code><mode>): New define_split after
10433 it to convert generic shift pattern to mask shift ones.
10435 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
10436 Joseph Myers <joseph@codesourcery.com>
10437 Cesar Philippidis <cesar@codesourcery.com>
10439 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
10440 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
10442 * tree-pretty-print.c (dump_omp_clause): Likewise.
10443 * omp-general.c (oacc_verify_routine_clauses): Likewise.
10444 * gimplify.c (gimplify_scan_omp_clauses)
10445 (gimplify_adjust_omp_clauses): Likewise.
10446 * tree-nested.c (convert_nonlocal_omp_clauses)
10447 (convert_local_omp_clauses): Likewise.
10448 * omp-low.c (scan_sharing_clauses): Likewise.
10449 * omp-offload.c (execute_oacc_device_lower): Update.
10451 2021-07-21 Martin Sebor <msebor@redhat.com>
10453 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
10455 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10457 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
10460 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10462 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
10464 (write_fntype_init): New stub function.
10465 (write_init_bif_table): Likewise.
10466 (write_init_ovld_table): New function.
10467 (write_init_file): Implement.
10469 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10471 * config/rs6000/rs6000-gen-builtins.c
10472 (write_autogenerated_header): New function.
10473 (write_decls): Likewise.
10474 (write_extern_fntype): New callback function.
10475 (write_header_file): Implement.
10477 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10479 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
10482 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10484 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
10486 (complete_base_type): Likewise.
10487 (construct_fntype_id): Likewise.
10488 (parse_bif_entry): Call contruct_fntype_id.
10489 (parse_ovld_entry): Likewise.
10491 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10493 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
10494 (MAXOVLDSTANZAS): New macro.
10495 (ovld_stanzas): New variable.
10496 (curr_ovld_stanza): Likewise.
10497 (MAXOVLDS): New macro.
10498 (ovlddata): New struct.
10499 (ovlds): New variable.
10500 (curr_ovld): Likewise.
10501 (max_ovld_args): Likewise.
10502 (parse_ovld_entry): New function.
10503 (parse_ovld_stanza): Likewise.
10504 (parse_ovld): Implement.
10506 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10508 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
10511 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10513 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
10514 (parse_prototype): Implement.
10516 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10518 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
10519 (curr_bif_stanza): New variable.
10520 (stanza_entry): New struct.
10521 (stanza_map): New initialized variable.
10522 (enable_string): Likewise.
10523 (fnkinds): New enum.
10524 (typelist): New struct.
10525 (attrinfo): Likewise.
10526 (MAXRESTROPNDS): New macro.
10527 (prototype): New struct.
10528 (MAXBIFS): New macro.
10529 (bifdata): New struct.
10530 (bifs): New variable.
10531 (curr_bif): Likewise.
10532 (bif_order): Likewise.
10533 (bif_index): Likewise.
10534 (fatal): New function.
10535 (stanza_name_to_stanza): Likewise.
10536 (parse_bif_attrs): New stub function.
10537 (parse_prototype): Likewise.
10538 (parse_bif_entry): New function.
10539 (parse_bif_stanza): Likewise.
10540 (parse_bif): Implement.
10541 (set_bif_order): New function.
10542 (create_bif_order): Implement.
10544 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10546 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
10547 (num_bifs): New variable.
10548 (num_ovld_stanzas): Likewise.
10549 (num_ovlds): Likewise.
10550 (parse_codes): New enum.
10551 (bif_rbt): New variable.
10552 (ovld_rbt): Likewise.
10553 (fntype_rbt): Likewise.
10554 (bifo_rbt): Likewise.
10555 (parse_bif): New stub function.
10556 (create_bif_order): Likewise.
10557 (parse_ovld): Likewise.
10558 (write_header_file): Likewise.
10559 (write_init_file): Likewise.
10560 (write_defines_file): Likewise.
10561 (delete_output_files): New function.
10564 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
10567 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
10568 from CRC32 _builtin functions.
10570 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
10572 * coverage.c (build_gcov_info_var_registration): Mark the object placed
10573 in the linker set as referenced so that it does not get optimized away.
10575 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
10578 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
10580 * config.gcc (riscv*-*-*): Detect which python is available.
10582 2021-07-21 Jakub Jelinek <jakub@redhat.com>
10584 PR middle-end/101535
10585 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
10586 contexts in which decl isn't privatized and for ORT_TARGET return
10587 false if decl is mapped.
10589 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
10591 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
10592 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
10593 has been successfully unrolled.
10595 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
10597 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
10598 exit condition if no tail loop is needed, and if the original exit
10599 condition should therefore be kept as-is.
10600 (tree_transform_and_unroll_loop): Handle that case here too.
10602 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
10604 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
10606 (free_data_refs): Likewise.
10607 * tree-data-ref.h (free_dependence_relations): Likewise.
10608 (free_data_refs): Likewise.
10609 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
10611 (struct component): Likewise.
10612 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
10613 (pcom_worker::~pcom_worker): Likewise.
10614 (pcom_worker::release_chain): Adjust as auto_vec changes.
10615 (pcom_worker::loop): Rename to ...
10616 (pcom_worker::m_loop): ... this.
10617 (pcom_worker::datarefs): Rename to ...
10618 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
10619 (pcom_worker::dependences): Rename to ...
10620 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
10621 (pcom_worker::chains): Rename to ...
10622 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
10623 (pcom_worker::looparound_phis): Rename to ...
10624 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
10626 (pcom_worker::cache): Rename to ...
10627 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
10628 (pcom_worker::release_chain): Adjust for auto_vec changes.
10629 (pcom_worker::release_chains): Adjust for auto_vec and renaming
10631 (release_component): Remove.
10632 (release_components): Adjust for release_component removal.
10633 (component_of): Adjust to use vec.
10634 (merge_comps): Likewise.
10635 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
10636 (pcom_worker::determine_offset): Likewise.
10637 (class comp_ptrs): Remove.
10638 (pcom_worker::split_data_refs_to_components): Adjust for renaming
10639 changes, for comp_ptrs removal with auto_vec.
10640 (pcom_worker::suitable_component_p): Adjust for renaming changes.
10641 (pcom_worker::filter_suitable_components): Adjust for release_component
10643 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
10644 (pcom_worker::find_looparound_phi): Likewise.
10645 (pcom_worker::add_looparound_copies): Likewise.
10646 (pcom_worker::determine_roots_comp): Likewise.
10647 (pcom_worker::single_nonlooparound_use): Likewise.
10648 (pcom_worker::execute_pred_commoning_chain): Likewise.
10649 (pcom_worker::execute_pred_commoning): Likewise.
10650 (pcom_worker::try_combine_chains): Likewise.
10651 (pcom_worker::prepare_initializers_chain): Likewise.
10652 (pcom_worker::prepare_initializers): Likewise.
10653 (pcom_worker::prepare_finalizers_chain): Likewise.
10654 (pcom_worker::prepare_finalizers): Likewise.
10655 (pcom_worker::tree_predictive_commoning_loop): Likewise.
10657 2021-07-20 Martin Sebor <msebor@redhat.com>
10659 PR middle-end/101397
10660 * builtins.c (gimple_call_return_array): Add argument. Correct
10661 offsets for memchr, mempcpy, stpcpy, and stpncpy.
10662 (compute_objsize_r): Adjust offset computation for argument returning
10665 2021-07-20 Martin Sebor <msebor@redhat.com>
10667 PR middle-end/101300
10668 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
10670 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
10672 * function.c (assign_parm_setup_block): Use adjust_address instead
10673 of change_address to preserve MEM_EXPR and friends.
10675 2021-07-20 Martin Sebor <msebor@redhat.com>
10677 * cfgloop.h (single_likely_exit): Adjust by-value argument to
10678 by-const-reference.
10679 * cfgloopanal.c (single_likely_exit): Same.
10680 * cgraph.h (struct cgraph_node): Same.
10681 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
10682 * genautomata.c (merge_states): Same.
10683 * genextract.c (VEC_char_to_string): Same.
10684 * genmatch.c (dt_node::gen_kids_1): Same.
10685 (walk_captures): Adjust by-value argument to by-reference.
10686 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
10687 to by-const-reference.
10688 * gimple.c (gimple_build_call_vec): Same.
10689 (gimple_build_call_internal_vec): Same.
10690 (gimple_build_switch): Same.
10691 (sort_case_labels): Same.
10692 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
10694 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
10695 by-const-reference.
10696 (gimple_build_call_internal_vec): Same.
10697 (gimple_build_switch): Same.
10698 (sort_case_labels): Same.
10699 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
10701 * haifa-sched.c (calc_priorities): Adjust by-value argument to
10702 by-const-reference.
10703 (sched_init_luids): Same.
10704 (haifa_init_h_i_d): Same.
10705 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
10706 (adjust_callers_for_value_intersection): Adjust by-value argument to
10708 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
10709 by-const-reference.
10710 (find_more_contexts_for_caller_subset): Same.
10711 (find_aggregate_values_for_callers_subset): Same.
10712 (copy_useful_known_contexts): Same.
10713 * ipa-fnsummary.c (remap_edge_summaries): Same.
10714 (remap_freqcounting_predicate): Same.
10715 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
10717 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
10718 to by-const-reference.
10719 * ipa-predicate.h (predicate::remap_after_inlining): Same.
10720 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
10721 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
10722 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
10723 * read-rtl.c (add_overload_instance): Same.
10724 * rtl.h (native_decode_rtx): Same.
10725 (native_decode_vector_rtx): Same.
10726 * sched-int.h (sched_init_luids): Same.
10727 (haifa_init_h_i_d): Same.
10728 * simplify-rtx.c (native_decode_vector_rtx): Same.
10729 (native_decode_rtx): Same.
10730 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
10731 (shrink_wrap_one_built_in_call_with_conds): Same.
10732 (shrink_wrap_conditional_dead_built_in_calls): Same.
10733 * tree-data-ref.c (create_runtime_alias_checks): Same.
10734 (compute_all_dependences): Same.
10735 * tree-data-ref.h (compute_all_dependences): Same.
10736 (create_runtime_alias_checks): Same.
10737 (index_in_loop_nest): Same.
10738 * tree-if-conv.c (mask_exists): Same.
10739 * tree-loop-distribution.c (class loop_distribution): Same.
10740 (loop_distribution::create_rdg_vertices): Same.
10741 (dump_rdg_partitions): Same.
10742 (debug_rdg_partitions): Same.
10743 (partition_contains_all_rw): Same.
10744 (loop_distribution::distribute_loop): Same.
10745 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
10746 (oacc_entry_exit_single_gang): Same.
10747 * tree-ssa-loop-im.c (hoist_memory_references): Same.
10748 (loop_suitable_for_sm): Same.
10749 * tree-ssa-loop-niter.c (bound_index): Same.
10750 * tree-ssa-reassoc.c (update_ops): Same.
10751 (swap_ops_for_binary_stmt): Same.
10752 (rewrite_expr_tree): Same.
10753 (rewrite_expr_tree_parallel): Same.
10754 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
10755 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
10756 * tree-ssa-structalias.c (process_all_all_constraints): Same.
10757 (make_constraints_to): Same.
10758 (handle_lhs_call): Same.
10759 (find_func_aliases_for_builtin_call): Same.
10760 (sort_fieldstack): Same.
10761 (check_for_overlaps): Same.
10762 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
10763 (vect_create_cond_for_unequal_addrs): Same.
10764 (vect_create_cond_for_lower_bounds): Same.
10765 (vect_create_cond_for_alias_checks): Same.
10766 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
10767 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
10768 (vect_make_slp_decision): Same.
10769 (vect_slp_bbs): Same.
10770 (duplicate_and_interleave): Same.
10771 (vect_transform_slp_perm_load): Same.
10772 (vect_schedule_slp): Same.
10773 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
10774 (vect_schedule_slp): Same.
10775 (duplicate_and_interleave): Same.
10776 * tree.c (build_vector_from_ctor): Same.
10777 (build_vector): Same.
10778 (check_vector_cst): Same.
10779 (check_vector_cst_duplicate): Same.
10780 (check_vector_cst_fill): Same.
10781 (check_vector_cst_stepped): Same.
10782 * tree.h (build_vector_from_ctor): Same.
10784 2021-07-20 Jakub Jelinek <jakub@redhat.com>
10787 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
10788 type from bool to int.
10789 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
10790 EASY_VECTOR_MSB case if either step or copies is not 1.
10791 (vspltis_shifted): Fix comment typo.
10792 (easy_altivec_constant): Change return type from bool to int, instead
10793 of returning true return byte size of the element mode that should be
10794 used to synthetize the constant.
10795 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
10796 that vspltis_shifted is 0, handle the case where easy_altivec_constant
10797 assumes using different vector mode from CONST_VECTOR's mode.
10798 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
10799 easy_altivec_constant to determine mode in which -1 >> -1 should be
10800 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
10802 2021-07-20 Richard Biener <rguenther@suse.de>
10805 * dwarf2out.h (dwarf_file_data): Add key member.
10806 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
10807 (dwarf_file_hasher::hash): Hash key.
10808 (lookup_filename): Remap the filename and store it in the
10809 filename member of dwarf_file_data when creating a new
10811 (file_name_acquire): Do not remap the filename again.
10812 (maybe_emit_file): Likewise.
10814 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
10816 * config/aarch64/aarch64-simd-builtins.def: Use two variant
10817 generators for all TBL/TBX intrinsics and rename to
10818 consistent forms: qtbl[1234] or qtbx[1234].
10819 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
10821 (aarch64_qtbl1<mode>): This.
10822 (aarch64_tbx1<mode>): Rename to...
10823 (aarch64_qtbx1<mode>): This.
10824 (aarch64_tbl2v16qi): Delete.
10825 (aarch64_tbl3<mode>): Rename to...
10826 (aarch64_qtbl2<mode>): This.
10827 (aarch64_tbx4<mode>): Rename to...
10828 (aarch64_qtbx2<mode>): This.
10829 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
10830 renamed qtbl1 and qtbl2 RTL patterns.
10831 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
10833 (vqtbl1_s8): Likewise.
10834 (vqtbl1_u8): Likewise.
10835 (vqtbl1q_p8): Likewise.
10836 (vqtbl1q_s8): Likewise.
10837 (vqtbl1q_u8): Likewise.
10838 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
10839 (vqtbx1_u8): Likewise.
10840 (vqtbx1_p8): Likewise.
10841 (vqtbx1q_s8): Likewise.
10842 (vqtbx1q_u8): Likewise.
10843 (vqtbx1q_p8): Likewise.
10844 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
10845 (vtbl1_u8): Likewise.
10846 (vtbl1_p8): Likewise.
10847 (vtbl2_s8): Likewise
10848 (vtbl2_u8): Likewise.
10849 (vtbl2_p8): Likewise.
10850 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
10851 (vtbl3_u8): Likewise.
10852 (vtbl3_p8): Likewise.
10853 (vtbl4_s8): Likewise.
10854 (vtbl4_u8): Likewise.
10855 (vtbl4_p8): Likewise.
10856 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
10857 (vtbx2_u8): Likewise.
10858 (vtbx2_p8): Likewise.
10859 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
10860 (vqtbl2_u8): Likewise.
10861 (vqtbl2_p8): Likewise.
10862 (vqtbl2q_s8): Likewise.
10863 (vqtbl2q_u8): Likewise.
10864 (vqtbl2q_p8): Likewise.
10865 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
10866 (vqtbx2_u8): Likewise.
10867 (vqtbx2_p8): Likewise.
10868 (vqtbx2q_s8): Likewise.
10869 (vqtbx2q_u8): Likewise.
10870 (vqtbx2q_p8): Likewise.
10871 (vtbx4_s8): Likewise.
10872 (vtbx4_u8): Likewise.
10873 (vtbx4_p8): Likewise.
10875 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
10878 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
10880 (define_peephole2 atomic_loaddi_fpu): Ditto.
10882 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
10884 * config.gcc (riscv*-*-*): Detect which python is available.
10886 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
10888 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
10889 (smul<mode>3_highpart): ... this.
10890 (mulhu_<mode>): Rename to...
10891 (umul<mode>3_highpart): ... this.
10892 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
10893 MULHU_V2DI, MULHU_V4SI): Adjust.
10895 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
10897 PR tree-optimization/100696
10898 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
10899 * internal-fn.def (IFN_MULH): New internal function.
10900 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
10901 recog normal multiply highpart as IFN_MULH.
10902 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
10905 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
10907 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
10908 (BTF_DEBUGGING_INFO): Likewise.
10909 * doc/tm.texi.in: Document the new macros.
10910 * doc/tm.texi: Regenerated.
10911 * toplev.c: Guard initialization of debug hooks.
10913 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
10915 * flags.h (ctf_debuginfo_p): New function declaration.
10916 * opts.c (ctf_debuginfo_p): New function definition.
10918 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
10921 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
10922 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
10923 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
10924 * config/gcn/gcn-valu.md: Add a warning comment.
10925 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
10926 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
10927 * config/gcn/gcn.md: Add a warning comment.
10928 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
10929 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
10931 (EF_AMDGPU_XNACK): New.
10932 (EF_AMDGPU_SRAM_ECC): New.
10934 (copy_early_debug_info): Use elf_flags.
10935 (main): Handle -mxnack and -msram-ecc options.
10936 * doc/invoke.texi: Document -mxnack and -msram-ecc.
10938 2021-07-19 Andrew Pinski <apinski@marvell.com>
10941 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
10942 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
10944 2021-07-19 Richard Biener <rguenther@suse.de>
10946 PR tree-optimization/101505
10947 * tree-vect-patterns.c (vect_determine_precisions): Walk
10948 PHIs also for loop vectorization.
10950 2021-07-19 Richard Biener <rguenther@suse.de>
10952 * gimple.h (gimple_expr_type): Remove.
10953 * doc/gimple.texi: Remove gimple_expr_type documentation.
10955 2021-07-19 Richard Biener <rguenther@suse.de>
10957 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
10958 (ao_ref_init_from_vn_reference): Likewise.
10959 (fully_constant_reference): Likewise.
10960 (vn_reference_lookup_call): Do not set vr->type to random
10962 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
10964 * tree-vect-generic.c (expand_vector_piecewise): Pass in
10965 whether we expanded parallel.
10966 (expand_vector_parallel): Adjust.
10967 (expand_vector_addition): Likewise.
10968 (expand_vector_comparison): Likewise.
10969 (expand_vector_operation): Likewise.
10970 (expand_vector_scalar_condition): Likewise.
10971 (expand_vector_conversion): Likewise.
10973 2021-07-19 Richard Biener <rguenther@suse.de>
10975 * tree-vrp.c (register_edge_assert_for_2): Use the
10977 (vrp_folder::fold_predicate_in): Likewise.
10978 * vr-values.c (gimple_assign_nonzero_p): Likewise.
10979 (vr_values::extract_range_from_comparison): Likewise.
10980 (vr_values::extract_range_from_ubsan_builtin): Use the
10981 type of the first operand.
10982 (vr_values::extract_range_basic): Push down type
10983 computation, use the appropriate LHS.
10984 (vr_values::extract_range_from_assignment): Use the
10987 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
10990 * common/config/i386/i386-common.c (ix86_handle_option): For
10991 -mgeneral-regs-only, enable the GPR only instructions which are
10992 enabled implicitly by SSE ISAs unless they have been disabled
10995 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
10998 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
10999 ix86_avx_u128_mode_needed.
11000 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
11001 returns AVX register.
11003 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
11005 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
11006 (handle_const_call): Liekise
11007 (handle_pure_call): Liekise
11009 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
11011 PR tree-optimization/96542
11012 * range-op.cc (range_operator::wi_fold_in_parts): New.
11013 (range_operator::fold_range): Call wi_fold_in_parts.
11014 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
11015 * range-op.h (wi_fold_in_parts): Add prototype.
11017 2021-07-16 David Malcolm <dmalcolm@redhat.com>
11019 * doc/analyzer.texi: Add __analyzer_dump_state.
11021 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11023 * config/rs6000/rbtree.c: New file.
11024 * config/rs6000/rbtree.h: New file.
11026 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11028 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
11029 (typeinfo): Add restr field.
11030 (match_bracketed_pair): New function.
11031 (match_const_restriction): Implement.
11033 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11035 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
11037 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11039 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
11040 (basetype): Likewise.
11041 (typeinfo): Likewise.
11042 (handle_pointer): New function.
11043 (match_basetype): New stub function.
11044 (match_const_restriction): Likewise.
11045 (match_type): New function.
11047 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11049 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
11051 (advance_line): Likewise.
11052 (safe_inc_pos): Likewise.
11053 (match_identifier): Likewise.
11054 (match_integer): Likewise.
11055 (match_to_right_bracket): Likewise.
11057 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11059 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
11060 (ovld_file): Likewise.
11061 (header_file): Likewise.
11062 (init_file): Likewise.
11063 (defines_file): Likewise.
11064 (pgm_path): Likewise.
11065 (bif_path): Likewise.
11066 (ovld_path): Likewise.
11067 (header_path): Likewise.
11068 (init_path): Likewise.
11069 (defines_path): Likewise.
11070 (LINELEN): New macro.
11071 (linebuf): New variable.
11075 (bif_diag): New function.
11076 (ovld_diag): Likewise.
11078 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11080 * config/rs6000/rs6000-builtin-new.def: New.
11081 * config/rs6000/rs6000-overload.def: New.
11083 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11085 * config/rs6000/rs6000-gen-builtins.c: New.
11087 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11089 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
11090 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
11091 * gengtype-state.c (state_writer::write_state_file_list): Add a
11092 parameter to the fileslist expression for the number of build
11094 (read_state_files_list): Detect build headers and strip the
11095 initial "./" or ".\" from their names.
11096 * gengtype.c (build_headers): New global variable.
11097 (num_build_headers): Likewise.
11098 (open_base_files): Emit #include for each build header.
11099 (main): Detect and count build headers.
11100 * gengtype.h (build_headers): New extern variable.
11101 (num_build_headers): Likewise.
11103 2021-07-16 Richard Biener <rguenther@suse.de>
11105 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
11106 the type of the LHS.
11107 (find_bswap_or_nop_1): Likewise.
11108 (find_bswap_or_nop): Likewise.
11109 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
11111 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
11112 Remove unused parameters, pass in the scalar type. Fix
11113 internal store function handling.
11114 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
11115 (vect_get_vector_types_for_stmt): Move down check for
11116 existing vector stmt after we've determined a scalar type.
11117 Pass down the used scalar type to vect_get_smallest_scalar_type.
11118 * tree-vect-generic.c (expand_vector_condition): Use
11119 the type of the LHS.
11120 (expand_vector_scalar_condition): Likewise.
11121 (expand_vector_operations_1): Likewise.
11122 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
11123 (vect_recog_dot_prod_pattern): Likewise.
11124 (vect_recog_sad_pattern): Likewise.
11125 (vect_recog_widen_op_pattern): Likewise.
11126 (vect_recog_widen_sum_pattern): Likewise.
11127 (vect_recog_mixed_size_cond_pattern): Likewise.
11129 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
11131 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
11132 (dump_eaf_flags): Dump EAF_NOT_RETURNED
11133 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
11134 and EAF_NOT_RETURNED.
11135 (modref_summary::useful_p): Likewise.
11136 (modref_summary_lto::useful_p): Likewise.
11137 (struct) modref_summary_lto: Use eaf_fleags_t.
11138 (deref_flags): Handle EAF_NOT_RETURNED.
11139 (struct escape_point): Use min_flags.
11140 (modref_lattice::init): Add EAF_NOT_RETURNED.
11141 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
11142 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
11144 (analyze_parms): Also analyze const functions; update conition on
11146 (modref_write): Update streaming.
11147 (read_section): Update streaming.
11148 (remap_arg_flags): Use eaf_flags_t.
11149 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
11150 * ipa-modref.h: (eaf_flags_t): New typedef.
11151 (struct modref_summary): Use eaf_flags_t.
11152 * tree-core.h (EAF_NOT_RETURNED): New constant.
11154 2021-07-16 Richard Biener <rguenther@suse.de>
11156 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
11157 the type of the LHS.
11158 (gimple_assign_nonnegative_warnv_p): Likewise.
11159 (gimple_call_nonnegative_warnv_p): Likewise. Return false
11160 if the call has no LHS.
11161 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
11162 * tree-eh.c (stmt_could_throw_1_p): Likewise.
11163 * tree-inline.c (insert_init_stmt): Likewise.
11164 * tree-ssa-loop-niter.c (get_val_for): Likewise.
11165 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
11167 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
11168 gassign *. Use the type of the lhs.
11169 (vn_nary_op_lookup_stmt): Adjust.
11170 (vn_nary_op_insert_stmt): Likewise.
11172 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
11174 * config/s390/predicates.md (bras_sym_operand): Accept all
11175 functions in 64-bit mode, use UNSPEC_PLT31.
11176 (larl_operand): Use UNSPEC_PLT31.
11177 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
11178 (legitimize_pic_address): Likewise.
11179 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
11181 (s390_delegitimize_address): Use UNSPEC_PLT31.
11182 (s390_output_addr_const_extra): Likewise.
11183 (print_operand): Add @PLT to TLS calls, handle %K.
11184 (s390_function_profiler): Mark __fentry__/_mcount as function,
11185 use %K, use UNSPEC_PLT31.
11186 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
11187 (s390_emit_call): Use UNSPEC_PLT31.
11188 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
11189 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
11190 (*movdi_64): Use %K.
11191 (reload_base_64): Likewise.
11192 (*sibcall_brc): Likewise.
11193 (*sibcall_brcl): Likewise.
11194 (*sibcall_value_brc): Likewise.
11195 (*sibcall_value_brcl): Likewise.
11197 (*brasl): Likewise.
11198 (*bras_r): Likewise.
11199 (*brasl_r): Likewise.
11200 (*bras_tls): Likewise.
11201 (*brasl_tls): Likewise.
11202 (main_base_64): Likewise.
11203 (reload_base_64): Likewise.
11204 (@split_stack_call<mode>): Likewise.
11206 2021-07-16 Richard Biener <rguenther@suse.de>
11208 PR tree-optimization/101467
11209 * tree-vect-stmts.c (vect_gen_while): Properly guard
11210 make_temp_ssa_name usage.
11212 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
11214 * config.gcc: Don't use forked print-sysroot-suffix.sh and
11215 t-sysroot-suffix for C-SKY.
11216 * config/csky/print-sysroot-suffix.sh: Delete.
11217 * config/csky/t-csky-linux: Delete.
11218 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
11219 instead of CSKY_MULTILIB_DIRNAMES.
11221 2021-07-16 Richard Biener <rguenther@suse.de>
11223 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
11224 conversion issues with the partial reduction of the reused
11225 vector accumulator.
11227 2021-07-16 Richard Biener <rguenther@suse.de>
11229 * config/i386/i386-options.c (ix86_option_override_internal): Set
11230 param_vect_partial_vector_usage to zero if not set.
11232 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
11235 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
11236 (VALID_INT_MODE_P): Add SDmode and DDmode.
11237 Add TDmode for TARGET_64BIT.
11238 (VALID_DFP_MODE_P): Remove.
11239 * config/i386/i386.c (ix86_hard_regno_mode_ok):
11240 Do not use VALID_DFP_MODE_P.
11242 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
11244 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
11246 (fold_using_range::fold_stmt): Ditto.
11247 (fold_using_range::range_of_range_op): Ditto.
11248 (fold_using_range::range_of_phi): Ditto.
11249 (fold_using_range::range_of_call): Ditto.
11250 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
11251 (fold_using_range::range_of_builtin_call): Ditto.
11252 (fold_using_range::range_of_cond_expr): Ditto.
11253 * gimple-range-fold.h (gimple_range_type): New.
11255 2021-07-15 Martin Sebor <msebor@redhat.com>
11257 PR middle-end/97027
11258 * tree-ssa-strlen.c (handle_assign): New function.
11259 (maybe_warn_overflow): Add argument.
11260 (nonzero_bytes_for_type): New function.
11261 (count_nonzero_bytes): Handle more tree types. Call
11262 nonzero_bytes_for_tye.
11263 (count_nonzero_bytes): Handle types.
11264 (handle_store): Handle stores from function calls.
11265 (strlen_check_and_optimize_call): Move code to handle_assign. Call
11266 it for assignments from function calls.
11268 2021-07-15 David Malcolm <dmalcolm@redhat.com>
11273 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
11275 2021-07-15 David Malcolm <dmalcolm@redhat.com>
11277 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
11279 2021-07-15 Martin Sebor <msebor@redhat.com>
11283 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
11284 (operand_compare::verify_hash_value): Same.
11285 * tree-core.h (OEP_DECL_NAME): New.
11287 2021-07-15 Martin Jambor <mjambor@suse.cz>
11289 * profile-count.h (profile_count::value): Change the return type to
11291 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
11293 * tree-cfg.c (dump_function_to_file): Likewise.
11295 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
11298 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
11299 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
11302 2021-07-15 Richard Biener <rguenther@suse.de>
11304 * tree-vectorizer.h (vect_gen_while): Match up with
11305 vect_gen_while_not.
11306 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
11307 of vect_gen_while_not.
11308 (vect_gen_while_not): Adjust.
11309 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
11311 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
11313 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
11314 (ranger_cache::range_of_def): Call adjust_range.
11315 (ranger_cache::entry_range): Same.
11316 * gimple-range-cache.h (non_null_ref::adjust_range): New.
11317 * gimple-range.cc (gimple_ranger::range_of_expr): Call
11319 (gimple_ranger::range_on_entry): Same.
11321 2021-07-15 Tamar Christina <tamar.christina@arm.com>
11324 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11326 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
11328 2021-07-15 Tamar Christina <tamar.christina@arm.com>
11331 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11333 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
11334 (sdot_prod, udot_prod): ...These.
11335 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
11336 (aarch64_<sur>dot<vsi2qi>): Rename to...
11337 (<sur>dot_prod<vsi2qi>): ...This.
11338 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
11341 2021-07-15 Jakub Jelinek <jakub@redhat.com>
11343 PR middle-end/101437
11344 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
11345 types even if they have non-BLKmode TYPE_MODE.
11347 2021-07-15 Richard Biener <rguenther@suse.de>
11350 * gcc.c (process_command): Process -gtoggle like process_options
11351 would after parsing options.
11353 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
11355 * cfgexpand.c (expand_asm_loc): Adjust.
11356 (expand_asm_stmt): Likewise.
11357 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
11358 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
11359 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
11360 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
11361 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
11362 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
11363 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
11364 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
11365 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
11366 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
11367 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
11368 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
11369 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
11370 * doc/tm.texi: Regenerate.
11371 * target.def: Add location argument to md_asm_adjust.
11373 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
11375 * tree-diagnostic.c (diagnostic_report_current_function): Use the
11376 diagnostic's location, not input_location.
11378 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
11380 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
11382 (expand_asm_stmt): Likewise.
11384 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
11386 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
11387 addressed memory rtx, if any.
11388 (rs6000_split_multireg_move): Fix code formatting.
11389 Handle MMA build built-ins with operands in adjacent memory locations.
11391 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
11393 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
11396 2021-07-14 Jason Merrill <jason@redhat.com>
11398 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
11400 2021-07-14 Jason Merrill <jason@redhat.com>
11402 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
11405 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11407 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
11408 Remove erroneous line.
11410 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
11412 * params.opt (param_evrp_mode): Change default.
11414 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11416 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
11417 (sdot_prod, udot_prod): ...These.
11418 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
11419 (aarch64_<sur>dot<vsi2qi>): Rename to...
11420 (<sur>dot_prod<vsi2qi>): ...This.
11421 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
11424 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11426 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
11428 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11430 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
11432 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11434 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
11436 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11438 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
11439 (usdot_prod<vsi2qi>): ... This.
11440 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
11441 (usdot_prod): ...This.
11442 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
11443 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
11445 (@<sur>dot_prod<vsi2qi>): ...This.
11446 * config/aarch64/aarch64-sve-builtins-base.cc
11447 (svusdot_impl::expand): Use it.
11449 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11451 * optabs.def (usdot_prod_optab): New.
11452 * doc/md.texi: Document it and clarify other dot prod optabs.
11453 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
11454 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
11455 * optabs.c (expand_widen_pattern_expr): Likewise.
11456 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
11457 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
11458 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
11460 (vect_widened_op_tree): Optionally ignore
11462 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
11464 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
11467 * config/i386/driver-i386.c (host_detect_local_cpu): Check
11468 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
11469 Enable UINTR only for 64-bit codegen.
11470 * config/i386/i386-options.c
11471 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
11473 * config/i386/i386.h (ARCH_ARG): New.
11474 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
11475 "[arch|tune] 64" for 64-bit codegen.
11477 2021-07-14 Richard Biener <rguenther@suse.de>
11479 PR tree-optimization/101445
11480 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
11481 of the IV in the correct direction for negative stride
11484 2021-07-14 Jakub Jelinek <jakub@redhat.com>
11487 * godump.c (godump_str_hash): New type.
11488 (godump_container::pot_dummy_types): Use string_hash instead of
11489 ptr_hash in the hash_set.
11491 2021-07-14 Richard Biener <rguenther@suse.de>
11493 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
11494 vector types where the old vector type has a multiple of
11495 the new vector type elements.
11496 (vect_create_partial_epilog): New function, split out from...
11497 (vect_create_epilog_for_reduction): ... here.
11498 (vect_transform_cycle_phi): Reduce the re-used accumulator
11499 to the new vector type.
11501 2021-07-14 Alexandre Oliva <oliva@adacore.com>
11503 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
11504 non-'t'-sized arg check.
11506 2021-07-14 Alexandre Oliva <oliva@adacore.com>
11508 * tree-cfg.c (cleanup_dead_labels_eh): Update
11509 post_landing_pad label upon change of landing pad block's
11511 (cleanup_dead_labels): Check that a removed label is not that
11514 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
11516 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
11518 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
11519 Add Neon to general purpose register case for zero-extend
11521 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
11522 case to prevent some cases opting to go through memory.
11523 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
11524 * rtl.c (rtvec_series_p): Define predicate to determine
11525 whether a vector contains a linear series of integers.
11526 * rtl.h (rtvec_series_p): Define.
11527 * rtlanal.c (vec_series_lowpart_p): Define predicate to
11528 determine if a vector selection is equivalent to the low part
11530 * rtlanal.h (vec_series_lowpart_p): Define.
11531 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
11532 Add vec_select -> subreg simplification.
11534 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
11536 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
11537 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
11538 _mm_test_mix_ones_zeros): New.
11540 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
11541 Richard Biener <rguenther@suse.de>
11543 * gimple.c (gimple_could_trap_p_1): Make S argument a
11544 "const gimple*". Preserve constness in call to
11545 gimple_asm_volatile_p.
11546 (gimple_could_trap_p): Make S argument a "const gimple*".
11547 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
11548 Update function prototypes.
11550 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11552 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
11553 (_loop_vec_info::main_loop_edge): New field.
11554 (_loop_vec_info::skip_main_loop_edge): Likewise.
11555 (_loop_vec_info::skip_this_loop_edge): Likewise.
11556 (_loop_vec_info::reusable_accumulators): Likewise.
11557 (_stmt_vec_info::reduc_scalar_results): Likewise.
11558 (_stmt_vec_info::reused_accumulator): Likewise.
11559 (vect_get_main_loop_result): Declare.
11560 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11561 reduc_scalar_inputs.
11562 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
11563 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
11564 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
11565 skip_main_loop_edge and skip_this_loop_edge fields.
11566 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
11567 (vect_emit_reduction_init_stmts): New function.
11568 (get_initial_def_for_reduction): Use it.
11569 (get_initial_defs_for_reduction): Likewise. Change the vinfo
11570 parameter to a loop_vec_info.
11571 (vect_create_epilog_for_reduction): Store the scalar results
11572 in the reduc_info. If an epilogue loop is reusing an accumulator
11573 from the main loop, and if the epilogue loop can also be skipped,
11574 try to place the reduction code in the join block. Record
11575 accumulators that could potentially be reused by epilogue loops.
11576 (vect_transform_cycle_phi): When vectorizing epilogue loops,
11577 try to reuse accumulators from the main loop. Record the initial
11578 value in reduc_info for non-SLP reductions too.
11580 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11582 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
11583 adjustment handling. Take the neutral value as an argument,
11584 in place of the code argument.
11585 (vect_transform_cycle_phi): Update accordingly. Handle the
11586 initial values of cond reductions separately from code reductions.
11587 Choose the adjustment here rather than in
11588 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
11590 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11592 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
11593 (neutral_op_for_reduction): ...this, providing a more general
11595 (vect_create_epilog_for_reduction): Update accordingly.
11596 (vectorizable_reduction): Likewise.
11597 (vect_transform_cycle_phi): Likewise.
11599 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11601 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
11602 reduc_info instead of the original stmt_vec_info.
11603 (vect_transform_cycle_phi): Update accordingly.
11605 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11607 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
11608 reduc_info as an additional parameter.
11609 (vect_transform_cycle_phi): Update accordingly.
11611 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11613 * tree-vectorizer.h: Include tree-ssa-operands.h.
11614 (vect_phi_initial_value): New function.
11615 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
11616 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
11617 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
11618 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
11620 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11622 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
11623 the phi results to vectype after creating them. Remove later
11624 conversion code that thus becomes redundant.
11626 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11628 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
11629 the new_phis vector with a reduc_inputs vector. Combine handling
11630 of reduction chains and ncopies > 1.
11632 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11634 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
11635 scalar_results to group_size elements after reducing down from
11636 N*group_size elements. Construct an array_slice of the live-out
11637 stmts and assert that there is one stmt per scalar result.
11639 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11641 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
11642 nested_in_vect_loop and use double_reduc everywhere. Remove dead
11643 assignment to "loop".
11645 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11647 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
11648 vector types first. For scalar types, consider both the preferred
11649 vector mode and the alternative vector modes.
11650 * optabs-query.c (can_vec_mask_load_store_p): Use the same
11651 structure as above, in particular using related_vector_mode
11652 for modes provided by autovectorize_vector_modes.
11654 2021-07-13 Jakub Jelinek <jakub@redhat.com>
11655 Richard Biener <rguenther@suse.de>
11657 PR tree-optimization/101419
11658 * tree-pass.h (PROP_objsz): Define.
11659 (make_pass_early_object_sizes): Declare.
11660 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
11661 there to pass_early_object_sizes, drop parameter.
11662 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
11663 drop parameter, move pass_post_ipa_warn right after that.
11664 * tree-object-size.c (pass_object_sizes::execute): Rename to...
11665 (object_sizes_execute): ... this. Add insert_min_max_p argument.
11666 (pass_data_object_sizes): Move after object_sizes_execute.
11667 (pass_object_sizes): Likewise. In execute method call
11668 object_sizes_execute, drop set_pass_param method and insert_min_max_p
11669 non-static data member and its initializer in the ctor.
11670 (pass_data_early_object_sizes, pass_early_object_sizes,
11671 make_pass_early_object_sizes): New.
11672 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
11673 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
11675 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
11678 * config/riscv/constraints.md ("S"): Update description and remove
11680 * doc/md.texi (Machine Constraints): Document the 'S' constraints
11683 2021-07-13 Richard Biener <rguenther@suse.de>
11686 2021-07-12 Richard Biener <rguenther@suse.de>
11688 * tree-vect-slp.c (vect_slp_region): Show the number of
11689 SLP graph entries in the optimization message.
11691 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
11693 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
11695 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
11696 return type to long.
11697 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
11700 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
11702 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
11703 Query relation between the 2 operands and use it.
11705 2021-07-12 Sergei Trofimovich <siarheit@google.com>
11707 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
11709 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
11712 * config/i386/predicates.md (vec_setm_sse41_operand):
11713 Rename from vec_setm_operand.
11714 (vec_setm_avx2_operand): New predicate.
11715 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
11716 Use vec_setm_sse41_operand as operand 2 predicate.
11717 (vec_set<V_256_512:mode): New expander.
11718 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
11719 as operand 2 predicate.
11721 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
11723 PR tree-optimization/101335
11724 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
11726 2021-07-12 Andrew Pinski <apinski@marvell.com>
11728 * tree-ssa-phiopt.c (match_simplify_replacement): Move
11729 insert of the sequence before the movement of the
11730 statement. Check if to see if the statement is used
11731 outside of the original phi to see if we should move it.
11733 2021-07-12 Richard Biener <rguenther@suse.de>
11735 * dump-context.h (debug_dump_context::debug_dump_context):
11736 Add FILE * parameter defaulted to stderr.
11737 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
11738 * tree-vect-slp.c (dot_slp_tree): New functions.
11740 2021-07-12 Richard Biener <rguenther@suse.de>
11742 PR tree-optimization/101373
11743 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
11744 references when the BB may not return.
11745 (compute_avail): Pass in the function we're working on and
11746 replace cfun references with it. Externally throwing
11747 const calls also possibly terminate the function.
11748 (pass_pre::execute): Pass down the function we're working on.
11749 * gcse.c (compute_hash_table_work): Externally throwing
11750 const/pure calls also need record_last_mem_set_info.
11751 * postreload-gcse.c (record_opr_changes): Looping or externally
11752 throwing const/pure calls also need record_last_mem_set_info.
11754 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
11756 * recog.c (memory_address_addr_space_p): Change the type to bool.
11757 Return true/false instead of 1/0.
11758 (offsettable_memref_p): Ditto.
11759 (offsettable_nonstrict_memref_p): Ditto.
11760 (offsettable_address_addr_space_p): Ditto.
11761 Change the type of addressp indirect function to bool.
11762 * recog.h (memory_address_addr_space_p): Change the type to bool.
11763 (strict_memory_address_addr_space_p): Ditto.
11764 (offsettable_memref_p): Ditto.
11765 (offsettable_nonstrict_memref_p): Ditto.
11766 (offsettable_address_addr_space_p): Ditto.
11767 * reload.c (maybe_memory_address_addr_space_p): Ditto.
11768 (strict_memory_address_addr_space_p): Change the type to bool.
11769 Return true/false instead of 1/0.
11770 (maybe_memory_address_addr_space_p): Change the type to bool.
11772 2021-07-12 Richard Biener <rguenther@suse.de>
11774 * tree-vect-slp.c (vect_slp_region): Show the number of
11775 SLP graph entries in the optimization message.
11777 2021-07-12 Richard Biener <rguenther@suse.de>
11779 PR tree-optimization/101394
11780 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
11781 copies from abnormals for a full redundancy.
11783 2021-07-12 Richard Biener <rguenther@suse.de>
11785 PR middle-end/101423
11786 * gimple.c (gimple_could_trap_p_1): Internal function calls
11788 * tree-eh.c (tree_could_trap_p): Likewise.
11790 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
11793 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
11795 (vmulq_n_u32): Likewise.
11796 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
11797 (vmulq_n_f32): Likewise.
11798 (vmul_n_f16): Likewise.
11799 (vmulq_n_f16): Likewise.
11801 2021-07-12 Martin Liska <mliska@suse.cz>
11803 PR sanitizer/101425
11804 * gcc.c (check_offload_target_name): Call
11805 candidates_list_and_hint only if we have a candidate.
11807 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
11810 * config/arm/neon.md (vec_init): Move to ...
11811 * config/arm/vec-common.md (vec_init): ... here.
11812 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
11814 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
11816 PR tree-optimization/101403
11817 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
11818 signedness of the shift is not the same as the signedness of
11819 the type extension.
11821 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
11822 Uroš Bizjak <ubizjak@gmail.com>
11824 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
11825 divmod of a constant numerator with new define_insn_and_split.
11827 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
11830 * config/i386/i386-expand.c (ix86_expand_call): If a call is
11831 to a non-local-binding, or local but to a public symbol, then
11832 assume that it might be indirected via the lazy symbol binder.
11833 Mark R10 and R10 as clobbered in that case.
11835 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
11838 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
11839 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
11840 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
11842 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
11844 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
11845 log2 range of operands[3] to [1,31].
11846 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
11848 2021-07-09 Sergei Trofimovich <siarheit@google.com>
11850 * doc/md.texi: Don't split @smallexample in multiple @groups.
11852 2021-07-09 Sergei Trofimovich <siarheit@google.com>
11854 * doc/md.texi: Add missing 'see' word.
11856 2021-07-09 Andrew Pinski <apinski@marvell.com>
11858 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
11859 to take sequence and gimple_match_op. Accept the case where
11860 op is a SSA_NAME and one statement in the sequence.
11861 Also allow constants.
11862 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
11863 Update call to phiopt_early_allow. Discard the sequence if not
11866 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
11871 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
11872 instead of ISA_HAS_MSA.
11873 (mips_expand_vec_unpack): Likewise.
11874 (mips_expand_vector_init): Likewise.
11876 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
11878 * config/rs6000/vsx.md (mods_<mode>): Rename to...
11879 (mod<mode>3): ... this.
11880 (modu_<mode>): Rename to...
11881 (umod<mode>3): ... this.
11882 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
11883 MODU_V4SI): Adjust.
11885 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
11887 * config/h8300/shiftrotate.md (variable shifts): Expose condition
11888 code handling for the test before the loop.
11890 2021-07-08 Martin Jambor <mjambor@suse.cz>
11893 * ipa-sra.c (class isra_call_summary): New member
11894 m_before_any_store, initialize it in the constructor.
11895 (isra_call_summary::dump): Dump the new field.
11896 (ipa_sra_call_summaries::duplicate): Copy it.
11897 (process_scan_results): Set it.
11898 (isra_write_edge_summary): Stream it.
11899 (isra_read_edge_summary): Likewise.
11900 (param_splitting_across_edge): Only override
11901 safe_to_import_accesses if m_before_any_store is set.
11903 2021-07-08 Martin Sebor <msebor@redhat.com>
11905 PR bootstrap/101374
11906 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
11907 Use Object Size Type 0 instead of 1.
11909 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
11911 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
11914 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
11916 * match.pd: Simplify an extend-operate-truncate sequence involving
11919 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
11920 Richard Biener <rguenther@suse.de>
11922 PR tree-optimization/40210
11923 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
11924 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
11925 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
11927 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
11930 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
11932 * config/i386/mmx.md (V_32): New mode iterator.
11933 (mov<V_32:mode>): Use V_32 mode iterator.
11934 (*mov<V_32:mode>_internal): Ditto.
11935 (*push<V_32:mode>2_rex64): Ditto.
11936 (*push<V_32:mode>2): Ditto.
11937 (movmisalign<V_32:mode>): Ditto.
11938 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
11939 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
11940 (vec_unpacks_lo_v4qi): New expander.
11941 (vec_unpacks_hi_v4qi): Ditto.
11942 (vec_unpacku_lo_v4qi): Ditto.
11943 (vec_unpacku_hi_v4qi): Ditto.
11944 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
11945 (VALID_INT_MODE_P): Ditto.
11947 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
11950 * config/rs6000/rs6000.md (udivti3): New insn.
11951 (divti3): New insn.
11952 (umodti3): New insn.
11953 (modti3): New insn.
11955 2021-07-07 Martin Sebor <msebor@redhat.com>
11957 PR tree-optimization/100137
11958 PR tree-optimization/99121
11959 PR tree-optimization/97027
11960 * builtins.c (access_ref::access_ref): Also set offmax.
11961 (access_ref::offset_in_range): Define new function.
11962 (access_ref::add_offset): Set offmax.
11963 (access_ref::inform_access): Handle access_none.
11964 (handle_mem_ref): Clear ostype.
11965 (compute_objsize_r): Handle ASSERT_EXPR.
11966 * builtins.h (struct access_ref): Add offmax member.
11967 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
11968 compute_objsize() and simplify.
11970 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
11972 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
11973 and VSX_BUILTIN_STXVP.
11975 2021-07-07 Martin Sebor <msebor@redhat.com>
11978 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
11979 a stray %K from error_at() missed in r12-2088.
11981 2021-07-07 Richard Biener <rguenther@suse.de>
11983 PR tree-optimization/99728
11984 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
11986 (mem_refs_may_alias_p): Add assert we handled aggregate
11988 (sm_seq_valid_bb): Give up when running into aggregate copies.
11989 (ref_indep_loop_p): Handle aggregate copies as never
11990 being invariant themselves but allow other refs to be
11991 disambiguated against them.
11992 (can_sm_ref_p): Do not try to apply store-motion to aggregate
11995 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
11998 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
12001 2021-07-06 Martin Sebor <msebor@redhat.com>
12003 * gimple-pretty-print.c (percent_G_format): Remove.
12004 * tree-diagnostic.c (default_tree_printer): Remove calls.
12005 * tree-pretty-print.c (percent_K_format): Remove.
12006 * tree-pretty-print.h (percent_K_format): Remove.
12008 2021-07-06 Martin Sebor <msebor@redhat.com>
12010 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
12011 Remove %K and use error_at.
12012 (aarch64_expand_fcmla_builtin): Same.
12013 (aarch64_expand_builtin_tme): Same.
12014 (aarch64_expand_builtin_memtag): Same.
12015 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
12016 (arm_expand_builtin): Same.
12017 * config/arm/arm.c (bounds_check): Same.
12019 2021-07-06 Martin Sebor <msebor@redhat.com>
12021 * builtins.c (warn_string_no_nul): Remove %G.
12022 (maybe_warn_for_bound): Same.
12023 (warn_for_access): Same.
12024 (check_access): Same.
12025 (check_strncat_sizes): Same.
12026 (expand_builtin_strncat): Same.
12027 (expand_builtin_strncmp): Same.
12028 (expand_builtin): Same.
12029 (expand_builtin_object_size): Same.
12030 (warn_dealloc_offset): Same.
12031 (maybe_emit_free_warning): Same.
12032 * calls.c (maybe_warn_alloc_args_overflow): Same.
12033 (maybe_warn_nonstring_arg): Same.
12034 (maybe_warn_rdwr_sizes): Same.
12035 * expr.c (expand_expr_real_1): Remove %K.
12036 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
12037 (gimple_fold_builtin_strncat): Same.
12038 * gimple-ssa-sprintf.c (format_directive): Same.
12039 (handle_printf_call): Same.
12040 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
12041 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
12042 (maybe_diag_access_bounds): Same. Call gimple_location.
12043 (check_bounds_or_overlap): Same.
12044 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
12045 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
12046 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
12047 (maybe_diag_stxncpy_trunc): Same.
12048 (handle_builtin_stxncpy_strncat): Same.
12049 (maybe_warn_pointless_strcmp): Same.
12050 * tree-ssa-uninit.c (maybe_warn_operand): Same.
12052 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
12055 * config/i386/predicates.md (vec_setm_operand): Enable
12056 register_operand for TARGET_SSE4_1.
12057 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
12058 as operand 2 predicate. Call ix86_expand_vector_set_var
12059 for non-constant index operand.
12060 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
12061 Call ix86_expand_vector_set_var for non-constant index operand.
12063 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
12065 * config/h8300/jumpcall.md (*branch): When possible, generate
12066 the comparison in CCZN mode.
12067 * config/h8300/predicates.md (simple_memory_operand): Reject all
12068 auto-increment addressing modes.
12070 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
12072 PR bootstrap/100246
12073 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
12076 2021-07-06 Richard Biener <rguenther@suse.de>
12078 * doc/md.texi (vec_fmaddsub<mode>4): Document.
12079 (vec_fmsubadd<mode>4): Likewise.
12080 * optabs.def (vec_fmaddsub$a4): Add.
12081 (vec_fmsubadd$a4): Likewise.
12082 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
12083 (IFN_VEC_FMSUBADD): Likewise.
12084 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
12085 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
12086 (addsub_pattern::build): Likewise.
12087 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
12088 and CFN_VEC_FMSUBADD are not transparent for permutes.
12089 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
12090 (vec_fmsubadd<mode>4): Likewise.
12092 2021-07-06 Richard Biener <rguenther@suse.de>
12094 * doc/invoke.texi (fmove-loop-stores): Document.
12095 * common.opt (fmove-loop-stores): New option.
12096 * opts.c (default_options_table): Enable -fmove-loop-stores
12097 at -O1 but not -Og.
12098 * tree-ssa-loop-im.c (pass_lim::execute): Pass
12099 flag_move_loop_stores instead of true to
12100 loop_invariant_motion_in_fun.
12102 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
12104 * doc/install.texi: Document --with-dsymutil.
12106 2021-07-06 Andrew Pinski <apinski@marvell.com>
12108 PR tree-optimization/101256
12109 * dbgcnt.def (phiopt_edge_range): New counter.
12110 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
12111 Check to make sure the new name is defined in the same
12112 bb as the conditional before duplicating range info.
12113 Also add debug counter.
12115 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
12117 PR rtl-optimization/100328
12118 * config/i386/i386-options.c (ix86_option_override_internal):
12119 Set param_ira_consider_dup_in_all_alts to 0.
12121 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
12123 PR rtl-optimization/100328
12124 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
12126 * ira.c (ira_get_dup_out_num): Adjust as parameter
12127 param_ira_consider_dup_in_all_alts.
12128 * params.opt (ira-consider-dup-in-all-alts): New.
12129 * ira-conflicts.c (process_regs_for_copy): Add one parameter
12130 single_input_op_has_cstr_p.
12131 (get_freq_for_shuffle_copy): New function.
12132 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
12133 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
12135 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
12137 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
12138 generate condition code aware RTL directly.
12140 2021-07-05 Andrew Pinski <apinski@marvell.com>
12142 PR tree-optimization/101039
12143 * match.pd (A CMP 0 ? A : -A): New patterns.
12144 * tree-ssa-phiopt.c (abs_replacement): Delete function.
12145 (tree_ssa_phiopt_worker): Don't call abs_replacement.
12146 Update comment about abs_replacement.
12148 2021-07-05 Andrew Pinski <apinski@marvell.com>
12150 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
12151 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
12153 2021-07-05 Andrew Pinski <apinski@marvell.com>
12155 * tree-ssa-phiopt.c (match_simplify_replacement):
12156 Add early_p argument. Call gimple_simplify_phiopt
12157 instead of gimple_simplify.
12158 (tree_ssa_phiopt_worker): Update call to
12159 match_simplify_replacement and allow unconditionally.
12160 (phiopt_early_allow): New function.
12161 (gimple_simplify_phiopt): New function.
12163 2021-07-05 Andrew Pinski <apinski@marvell.com>
12165 PR middle-end/101237
12166 * fold-const.c (negate_expr_p): Remove call to element_mode
12167 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
12168 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
12169 (fold_negate_expr_1): Likewise.
12170 (const_unop): Likewise.
12171 (fold_cond_expr_with_comparison): Likewise.
12172 (fold_binary_loc): Likewise.
12173 (fold_ternary_loc): Likewise.
12174 (tree_call_nonnegative_warnv_p): Likewise.
12175 * match.pd (-(A + B) -> (-B) - A): Likewise.
12177 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
12179 * configure.ac: Handle --with-dsymutil in the same way as we
12180 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
12181 Extract the type and version for the dsymutil configured or
12182 found by the default searches.
12183 * config.in: Regenerated.
12184 * configure: Regenerated.
12185 * collect2.c (do_dsymutil): Handle locating dsymutil in the
12186 same way as for the assembler and linker.
12187 * config/darwin.h (DSYMUTIL): Delete.
12188 * gcc.c: Report a configured dsymutil correctly.
12189 * exec-tool.in: Allow for dsymutil.
12191 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
12193 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
12194 Handle V4QI and V2HI modes.
12195 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
12196 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
12197 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
12198 Handle 4-byte dual operands with TARGET_XOP and single operands
12199 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
12200 mmx_pshufbv4qi3 for TARGET_SSSE3.
12201 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
12202 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
12203 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
12204 (expand_vec_perm_even_odd_1): Handle V4QI mode.
12205 (expand_vec_perm_broadcast_1): Handle V4QI mode.
12206 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
12207 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
12208 (mmx_pshufbv4qi3): Ditto.
12209 (*mmx_pblendw32): Ditto.
12210 (*mmx_pblendw64): Rename from *mmx_pblendw.
12211 (mmx_punpckhbw_low): New insn_and_split pattern.
12212 (mmx_punpcklbw_low): Ditto.
12214 2021-07-05 Richard Biener <rguenther@suse.de>
12216 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
12217 set LOOP_C_INFINITE on the vectorized loop.
12219 2021-07-05 Richard Biener <rguenther@suse.de>
12221 PR middle-end/101291
12222 * cfgloopmanip.c (loop_version): Set the loop copy of the
12223 versioned loop to the new loop.
12225 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
12228 * config.gcc: Ensure that Darwin biarch definitions are
12229 added before i386.h.
12230 * config/i386/darwin.h (TARGET_64BIT): Remove.
12231 (PR80556_WORKAROUND): New.
12232 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
12233 (DARWIN_SUBARCH_SPEC): New.
12234 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
12235 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
12236 (REAL_LIBGCC_SPEC): Remove.
12237 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
12238 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
12239 (REAL_LIBGCC_SPEC): Remove.
12241 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
12243 PR middle-end/101294
12244 * expr.c (store_constructor): Don't use vec_duplicate on vector.
12246 2021-07-02 Martin Sebor <msebor@redhat.com>
12248 PR middle-end/98871
12249 PR middle-end/98512
12250 * diagnostic.c (get_any_inlining_info): New.
12251 (update_effective_level_from_pragmas): Handle inlining context.
12252 (diagnostic_enabled): Same.
12253 (diagnostic_report_diagnostic): Same.
12254 * diagnostic.h (struct diagnostic_info): Add ctor.
12255 (struct diagnostic_context): Add new member.
12256 * tree-diagnostic.c (set_inlining_locations): New.
12257 (tree_diagnostics_defaults): Set new callback pointer.
12259 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
12261 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
12263 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
12264 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
12265 lxvp and stxvp built-ins.
12266 (mma_init_builtins): Handle lxvp and stxvp built-ins.
12267 (builtin_function_type): Likewise.
12268 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
12270 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
12272 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
12273 additional argument for the code.
12274 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
12275 argument for the code. Just return if the ZN bits are useful or
12276 not rather than the old style CC_* enums.
12277 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
12278 more generic shiftqi patterns.
12279 (shifthi_noscratch, shiftsi_noscratch): Similarly.
12280 (shiftqi_noscratch_set_flags): New pattern.
12281 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
12283 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
12285 PR tree-optimization/101223
12286 * range-op.cc (build_lt): Add -1 for signed values.
12287 (built_gt): Subtract -1 for signed values.
12289 2021-07-02 David Faust <david.faust@oracle.com>
12291 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
12292 (btf_asm_type): Likewise.
12294 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
12296 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
12297 an array of rtx rather than a pointer to rtx. Add code argument.
12298 (compute_a_shift_length): Similarly.
12299 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
12300 shift itself isn't an operand. Create dummy operand[0] to carry
12301 a mode and pass a suitable rtx code to compute_a_shift_length.
12302 (get_shift_alg): Adjust operand number of clobber in output templates.
12303 (output_a_shift): Make first argument an array of rtx rather than
12304 a pointer to rtx. Add code argument for the type of shift.
12305 Adjust now that the shift itself is no longer an operand.
12306 (compute_a_shift_length): Similarly.
12307 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
12308 iterator rather than nshift_operator.
12309 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
12310 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
12311 and compute_a_shift_length.
12312 (shiftqi_noscratch_clobber_flags): Likewise.
12313 (shifthi_noscratch_clobber_flags): Likewise.
12314 (shiftsi_noscratch_clobber_flags): Likewise.
12316 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
12319 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
12320 dsymutil for BTF/CTF.
12322 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
12325 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
12326 segment to include BTF.
12327 (BTF_INFO_SECTION_NAME): New.
12329 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
12331 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
12332 (small_data_operand, memreg_operand, small_insn_p): Likewise.
12333 * config/m32r/m32r.c (call_operand): Adjust return type.
12334 (small_data_operand, memreg_operand): Likewise.
12336 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
12338 * config/frv/frv-protos.h (integer_register_operand): Adjust return
12340 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
12341 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
12342 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
12343 (move_source_operand, move_destination_operand): Likewise.
12344 (condexec_source_operand, condexec_dest_operand): Likewise.
12345 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
12346 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
12347 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
12348 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
12349 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
12350 (even_fpr_operand, odd_fpr_operand): Likewise.
12351 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
12352 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
12353 (uint4_operand, uint1_operand, int_2word_operand): Likewise
12354 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
12355 (relational_operator, float_relational_operator): Likewise.
12356 (ccr_eqne_operator, minmax_operator): Likewise.
12357 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
12358 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
12359 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
12360 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
12361 (quad_acc_operand, accg_operand): Likewise.
12363 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
12365 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
12366 return type to a bool.
12367 (nonimmediate_nonstack_operand): Likewise.
12368 (xstormy16_splittable_below100_operand): Likewise.
12369 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
12371 (xstormy16_splittable_below100_operand): Likewise.
12373 2021-07-02 Richard Biener <rguenther@suse.de>
12375 PR tree-optimization/101293
12376 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
12377 with combined offsets.
12378 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
12379 combined with the rest of the offset.
12381 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
12383 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
12384 PIC encodings for PE-COFF targets.
12386 2021-07-02 Jakub Jelinek <jakub@redhat.com>
12389 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
12390 Return nullptr for TImode inner mode.
12392 2021-07-02 Richard Biener <rguenther@suse.de>
12394 PR tree-optimization/101280
12395 PR tree-optimization/101173
12396 * gimple-loop-interchange.cc
12397 (tree_loop_interchange::valid_data_dependences): Properly
12398 guard all dependence checks with DDR_REVERSED_P or its
12401 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
12403 * config/i386/i386-expand.c (ix86_expand_builtin):
12404 Add branch to clear odata when ZF is set for asedecenc_expand
12405 and wideaesdecenc_expand.
12407 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
12409 * config/i386/gcc-auto-profile: regenerate
12411 2021-07-02 liuhongt <hongtao.liu@intel.com>
12413 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
12414 (trunc<mode><pmov_dst_4_lower>2): this.
12416 2021-07-01 David Malcolm <dmalcolm@redhat.com>
12418 * diagnostic.h (diagnostic_context::m_file_cache): New field.
12419 * input.c (class fcache): Rename to...
12420 (class file_cache_slot): ...this, making most members private and
12421 prefixing fields with "m_".
12422 (file_cache_slot::get_file_path): New accessor.
12423 (file_cache_slot::get_use_count): New accessor.
12424 (file_cache_slot::missing_trailing_newline_p): New accessor.
12425 (file_cache_slot::inc_use_count): New.
12426 (fcache_buffer_size): Move to...
12427 (file_cache_slot::buffer_size): ...here.
12428 (fcache_line_record_size): Move to...
12429 (file_cache_slot::line_record_size): ...here.
12430 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
12431 (fcache_tab_size): Move to file_cache::num_file_slots.
12432 (diagnostic_file_cache_init): Update for move of fcache_tab
12433 to global_dc->m_file_cache.
12434 (diagnostic_file_cache_fini): Likewise.
12435 (lookup_file_in_cache_tab): Convert to...
12436 (file_cache::lookup_file): ...this.
12437 (diagnostics_file_cache_forcibly_evict_file): Update for move of
12438 fcache_tab to global_dc->m_file_cache, moving most of
12439 implementation to...
12440 (file_cache::forcibly_evict_file): ...this new function and...
12441 (file_cache_slot::evict): ...this new function.
12442 (evicted_cache_tab_entry): Convert to...
12443 (file_cache::evicted_cache_tab_entry): ...this.
12444 (add_file_to_cache_tab): Convert to...
12445 (file_cache::add_file): ...this, moving bulk of implementation
12447 (file_cache_slot::create): ..this new function.
12448 (file_cache::file_cache): New.
12449 (file_cache::~file_cache): New.
12450 (lookup_or_add_file_to_cache_tab): Convert to...
12451 (file_cache::lookup_or_add_file): ..this new function.
12452 (fcache::fcache): Rename to...
12453 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
12455 (fcache::~fcache): Rename to...
12456 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
12458 (needs_read): Convert to...
12459 (file_cache_slot::needs_read_p): ...this.
12460 (needs_grow): Convert to...
12461 (file_cache_slot::needs_grow_p): ...this.
12462 (maybe_grow): Convert to...
12463 (file_cache_slot::maybe_grow): ...this.
12464 (read_data): Convert to...
12465 (file_cache_slot::read_data): ...this.
12466 (maybe_read_data): Convert to...
12467 (file_cache_slot::maybe_read_data): ...this.
12468 (get_next_line): Convert to...
12469 (file_cache_slot::get_next_line): ...this.
12470 (goto_next_line): Convert to...
12471 (file_cache_slot::goto_next_line): ...this.
12472 (read_line_num): Convert to...
12473 (file_cache_slot::read_line_num): ...this.
12474 (location_get_source_line): Update for moving of globals to
12475 global_dc->m_file_cache.
12476 (location_missing_trailing_newline): Likewise.
12477 * input.h (class file_cache_slot): New forward decl.
12478 (class file_cache): New.
12480 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
12482 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
12483 128-bit floating point conditional move support.
12484 (have_compare_and_set_mask): Add IEEE 128-bit floating point
12486 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
12487 (mov<mode>cc_p10, IEEE128 iterator): New insn.
12488 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
12489 (fpmask<mode>, IEEE128 iterator): New insn.
12490 (xxsel<mode>, IEEE128 iterator): New insn.
12492 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
12495 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
12497 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
12499 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
12501 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
12503 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
12504 (vec_duplicate<mode>): New expander.
12506 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
12509 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
12511 (ix86_byte_broadcast): New function.
12512 (ix86_convert_const_wide_int_to_broadcast): Likewise.
12513 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
12514 size is 16 bytes or bigger.
12515 (ix86_broadcast_from_integer_constant): New function.
12516 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
12517 to broadcast if mode size is 16 bytes or bigger.
12518 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
12520 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
12522 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
12524 * config/i386/predicates.md (ix86_endbr_immediate_operand):
12525 Return true/false instead of 1/0.
12526 (movq_parallel): Ditto.
12528 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
12530 * recog.c (general_operand): Return true/false instead of 1/0.
12531 (register_operand): Ditto.
12532 (immediate_operand): Ditto.
12533 (const_int_operand): Ditto.
12534 (const_scalar_int_operand): Ditto.
12535 (const_double_operand): Ditto.
12536 (push_operand): Ditto.
12537 (pop_operand): Ditto.
12538 (memory_operand): Ditto.
12539 (indirect_operand): Ditto.
12541 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
12543 * genpreds.c (write_predicate_subfunction):
12544 Change the type of written subfunction to bool.
12545 (write_one_predicate_function):
12546 Change the type of written function to bool.
12547 (write_tm_preds_h): Ditto.
12548 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
12549 * recog.c (general_operand): Change the type to bool.
12550 (address_operand): Ditto.
12551 (register_operand): Ditto.
12552 (pmode_register_operand): Ditto.
12553 (scratch_operand): Ditto.
12554 (immediate_operand): Ditto.
12555 (const_int_operand): Ditto.
12556 (const_scalar_int_operand): Ditto.
12557 (const_double_operand): Ditto.
12558 (nonimmediate_operand): Ditto.
12559 (nonmemory_operand): Ditto.
12560 (push_operand): Ditto.
12561 (pop_operand): Ditto.
12562 (memory_operand): Ditto.
12563 (indirect_operand): Ditto.
12564 (ordered_comparison_operator): Ditto.
12565 (comparison_operator): Ditto.
12566 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
12567 Change the type of indirect predicate function to bool.
12568 * config/rs6000/rs6000.c (easy_vector_constant):
12569 Change the type to bool.
12570 * config/mips/mips-protos.h (m16_based_address_p):
12571 Change the type of operand 3 to bool.
12573 2021-07-01 Richard Biener <rguenther@suse.de>
12575 PR tree-optimization/101280
12576 PR tree-optimization/101173
12577 * gimple-loop-interchange.cc
12578 (tree_loop_interchange::valid_data_dependences): Revert
12579 previous change and instead correctly handle DDR_REVERSED_P
12582 2021-07-01 Richard Biener <rguenther@suse.de>
12584 PR tree-optimization/101278
12585 * tree-ssa-dse.c (dse_classify_store): First check for
12586 uses, then ignore stmt for chaining purposes.
12588 2021-07-01 Richard Biener <rguenther@suse.de>
12590 PR tree-optimization/100778
12591 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
12592 vectorized ops ahead of their scalar BB.
12594 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
12597 * config/i386/i386.md (*nabs<dwi>2_doubleword):
12598 New insn_and_split pattern.
12599 (*nabs<dwi>2_1): Ditto.
12600 * config/i386/i386-features.c
12601 (general_scalar_chain::compute_convert_gain):
12602 Handle (NEG (ABS (...))) RTX. Rewrite src code
12603 scanner as switch statement.
12604 (general_scalar_chain::convert_insn):
12605 Handle (NEG (ABS (...))) RTX.
12606 (general_scalar_to_vector_candidate_p):
12607 Detect (NEG (ABS (...))) RTX. Reorder case statements
12608 for (AND (NOT (...) ...)) fallthrough.
12610 2021-07-01 Richard Biener <rguenther@suse.de>
12612 PR tree-optimization/101178
12613 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
12614 (slpg::perm_in): Add.
12615 (slpg::get_perm_in): Remove.
12616 (slpg::get_perm_materialized): Add.
12617 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
12618 during permute propagation and materialization.
12620 2021-07-01 Jakub Jelinek <jakub@redhat.com>
12623 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
12625 2021-07-01 Jakub Jelinek <jakub@redhat.com>
12627 PR middle-end/94366
12628 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
12629 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
12630 use boolean_type_node instead of integer_type_node as NE_EXPR type.
12631 (lower_reduction_clauses): Likewise.
12633 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
12635 * config/gcn/gcn.c: Include dwarf2.h.
12636 (gcn_addr_space_debug): New function.
12637 (TARGET_ADDR_SPACE_DEBUG): New hook.
12639 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
12641 * common/config/gcn/gcn-common.c
12642 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
12643 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
12645 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
12646 (gcn_frame_pointer_rqd): New function.
12647 (TARGET_FRAME_POINTER_REQUIRED): New hook.
12649 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
12651 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
12652 prologue register saves.
12653 (gcn_debug_unwind_info): Use UI_DWARF2.
12654 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
12655 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
12656 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
12657 (DWARF_LINK_REGISTER): New define.
12658 (FIRST_PSEUDO_REGISTER): Increment.
12659 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
12660 (CALL_USED_REGISTERS): Likewise.
12661 (REGISTER_NAMES): Likewise.
12663 2021-06-30 Richard Biener <rguenther@suse.de>
12665 PR tree-optimization/101267
12666 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
12667 API and use SLP compatible interface of vect_is_simple_use.
12668 Reject not vectorized SLP defs for callers that do not support
12670 (vect_check_store_rhs): Handle masked stores and pass down
12671 the appropriate operator index.
12672 (vectorizable_call): Adjust.
12673 (vectorizable_store): Likewise.
12674 (vectorizable_load): Likewise. Handle SLP pecularity of
12676 (vect_is_simple_use): Remove special-casing of masked stores.
12678 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
12680 * common.opt (foffload): Remove help as Driver only.
12681 * gcc.c (display_help): Add -foffload.
12683 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
12685 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
12686 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
12687 a candidate list; better inform no offload target is configured
12688 and fix hint extraction when passed target is not '\0' at [len].
12689 * common.opt (foffload): Add tailing '.'.
12690 (foffload-options): Likewise; fix flag name in the help string.
12692 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
12695 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
12696 (vcage_f32): Gate comparison on __FAST_MATH__.
12697 (vcageq_f32): Likewise.
12698 (vcale_f32): Likewise.
12699 (vcaleq_f32): Likewise.
12700 (vcagt_f32): Likewise.
12701 (vcagtq_f32): Likewise.
12702 (vcalt_f32): Likewise.
12703 (vcaltq_f32): Likewise.
12704 (vcage_f16): Likewise.
12705 (vcageq_f16): Likewise.
12706 (vcale_f16): Likewise.
12707 (vcaleq_f16): Likewise.
12708 (vcagt_f16): Likewise.
12709 (vcagtq_f16): Likewise.
12710 (vcalt_f16): Likewise.
12711 (vcaltq_f16): Likewise.
12713 2021-06-30 Richard Biener <rguenther@suse.de>
12715 PR tree-optimization/101264
12716 * tree-vect-slp.c (vect_optimize_slp): Propagate the
12717 computed perm_in to all "any" permute successors
12718 we cannot de-duplicate immediately.
12720 2021-06-30 liuhongt <hongtao.liu@intel.com>
12723 * config/i386/sse.md
12724 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
12726 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
12728 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
12729 * config/i386/subst.md (maskz_scalar): New define_subst.
12730 (maskz_scalar_name): New subst_attr.
12731 (maskz_scalar_op5): Ditto.
12732 (round_saeonly_maskz_scalar_op5): Ditto.
12733 (round_saeonly_maskz_scalar_operand5): Ditto.
12735 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
12737 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
12738 Increase code CSECT alignment to at least 32 bytes.
12739 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
12740 alignment designation.
12742 2021-06-29 Sergei Trofimovich <siarheit@google.com>
12744 * doc/generic.texi: Fix s/net yet/not yet/ typo.
12746 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
12748 PR tree-optimization/101254
12749 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
12750 wrapping/non-wrapping when setting the result range.
12752 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
12754 * value-query.cc (gimple_range_global): Allow phis.
12756 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
12758 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
12759 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
12760 statement for location context.
12761 (check_for_binary_op_overflow): Ditto.
12762 (simplify_using_ranges::get_vr_for_comparison): Ditto.
12763 (simplify_using_ranges::compare_name_with_value): Ditto.
12764 (simplify_using_ranges::compare_names): Ditto.
12765 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
12766 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
12767 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
12768 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
12769 (simplify_using_ranges::two_valued_val_range_p): Ditto.
12770 (simplify_using_ranges::simplify): Ditto.
12771 * vr-values.h: Adjust prototypes.
12773 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
12776 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
12778 2021-06-29 Julian Brown <julian@codesourcery.com>
12780 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
12781 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
12782 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
12784 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
12785 (MAX_FIXED_MODE_SIZE): Change to 128.
12787 2021-06-29 Julian Brown <julian@codesourcery.com>
12789 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
12790 (s_mnemonic): Add clrsb.
12791 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
12792 (clrsb<mode>2): Add expander for SImode/DImode.
12794 2021-06-29 Julian Brown <julian@codesourcery.com>
12796 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
12797 muldi3): Add patterns.
12799 2021-06-29 Julian Brown <julian@codesourcery.com>
12801 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
12802 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
12804 2021-06-29 Julian Brown <julian@codesourcery.com>
12806 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
12808 2021-06-29 Joseph Myers <joseph@codesourcery.com>
12810 * btfout.c, ctfout.c: Include "memmodel.h".
12812 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
12814 * gcc.c (check_offload_target_name): Cast len argument to
12815 %q.*s to 'int'; avoid -Wstringop-truncation warning.
12817 2021-06-29 Richard Biener <rguenther@suse.de>
12819 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
12820 to "any" permute nodes and relax "any" permute proapgation
12821 during iterative backward propagation.
12823 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
12826 * common.opt (-foffload=): Update description.
12827 (-foffload-options=): New.
12828 * doc/invoke.texi (C Language Options): Document
12829 -foffload and -foffload-options.
12830 * gcc.c (check_offload_target_name): New, split off from
12831 handle_foffload_option.
12832 (check_foffload_target_names): New.
12833 (handle_foffload_option): Handle -foffload=default.
12834 (driver_handle_option): Update for -foffload-options.
12835 * lto-opts.c (lto_write_options): Use -foffload-options
12836 instead of -foffload.
12837 * lto-wrapper.c (merge_and_complain, append_offload_options):
12839 * opts.c (common_handle_option): Likewise.
12841 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
12843 * doc/invoke.texi (C Language Options): Sort options
12844 alphabetically in optlist and also the description itself.
12845 Remove leftover -fallow-single-precision from and add missing
12846 -fgnu-tm to the optlist.
12848 2021-06-29 Richard Biener <rguenther@suse.de>
12850 * tree-vect-slp.c (slpg_vertex::visited): Remove.
12851 (vect_slp_perms_eq): Handle -1 permutes.
12852 (vect_optimize_slp): Rewrite permute propagation.
12854 2021-06-29 Jakub Jelinek <jakub@redhat.com>
12857 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
12858 perform the optimization in GENERIC when sanitizing and x has a
12861 2021-06-29 Richard Biener <rguenther@suse.de>
12863 PR tree-optimization/101242
12864 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
12865 PHIs with not represented initial values as leafs.
12867 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
12869 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
12870 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
12871 "register" keyword.
12872 (pdp11_initial_elimination_offset) Remove unused variable.
12873 (pdp11_cmp_length) Ditto.
12874 (pdp11_insn_cost): Ditto, and fix signedness warning.
12876 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
12878 * btfout.c: Include tm_p.h.
12881 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
12883 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
12885 (bpf_expand_epilogue): Likewise.
12886 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
12887 Do not define DBX_DEBUGGING_INFO.
12889 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
12891 * doc/invoke.texi: Document the CTF and BTF debug info options.
12893 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
12894 David Faust <david.faust@oracle.com>
12895 Jose E. Marchesi <jose.marchesi@oracle.com>
12896 Weimin Pan <weimin.pan@oracle.com>
12898 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
12899 GTFILES. Add new object files.
12900 * common.opt: Add CTF and BTF debug info options.
12901 * btfout.c: New file.
12902 * ctfc.c: Likewise.
12903 * ctfc.h: Likewise.
12904 * ctfout.c: Likewise.
12905 * dwarf2ctf.c: Likewise.
12906 * dwarf2ctf.h: Likewise.
12907 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
12909 * dwarf2out.c (dwarf2out_source_line): Likewise.
12910 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
12912 (debug_format_do_cu): New function.
12913 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
12915 Include dwarf2ctf.c.
12916 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
12918 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
12919 (CTF_DEBUG): New bitmask.
12920 (BTF_DEBUG): Likewise.
12921 (enum ctf_debug_info_levels): New enum.
12922 * gengtype.c (open_base_files): Handle ctfc.h.
12923 (main): Handle uint32_t type.
12924 * flags.h (btf_debuginfo_p): New definition.
12925 (dwarf_based_debuginfo_p): Likewise.
12926 * opts.c (debug_type_names): Add entries for CTF and BTF.
12927 (btf_debuginfo_p): New function.
12928 (dwarf_based_debuginfo_p): Likewise.
12929 (common_handle_option): Handle -gctfN and -gbtf options.
12930 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
12931 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
12934 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
12936 * dwarf2out.c (AT_class): Function is no longer static.
12937 (AT_int): Likewise.
12938 (AT_unsigned): Likewise.
12939 (AT_loc): Likewise.
12940 (get_AT): Likewise.
12941 (get_AT_string): Likewise.
12942 (get_AT_flag): Likewise.
12943 (get_AT_unsigned): Likewise.
12944 (get_AT_ref): Likewise.
12945 (new_die_raw): Likewise.
12946 (lookup_decl_die): Likewise.
12947 (base_type_die): Likewise.
12948 (add_name_attribute): Likewise.
12949 (add_AT_int): Likewise.
12950 (add_AT_unsigned): Likewise.
12951 (add_AT_loc): Likewise.
12952 (dw_get_die_tag): New function.
12953 (dw_get_die_child): Likewise.
12954 (dw_get_die_sib): Likewise.
12955 (struct dwarf_file_data): Move from here to dwarf2out.h
12956 (struct dw_attr_struct): Likewise.
12957 * dwarf2out.h: Analogous changes.
12959 2021-06-28 Martin Jambor <mjambor@suse.cz>
12962 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
12963 members m_dead_stmts and m_dead_ssas.
12964 * ipa-param-manipulation.c
12965 (ipa_param_body_adjustments::mark_dead_statements): New function.
12966 (ipa_param_body_adjustments::common_initialization): Call it on
12967 all removed but not split parameters.
12968 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
12970 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
12972 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
12973 dead debug statements.
12974 (copy_phis_for_bb): Do not copy dead PHI nodes.
12976 2021-06-28 Martin Jambor <mjambor@suse.cz>
12979 * symtab-clones.h (clone_info): Removed member param_adjustments.
12980 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
12981 deal with pass-through splits now.
12982 (ipa_param_performed_split): Removed.
12983 (ipa_param_adjustments::modify_call): Adjusted parameters.
12984 (class ipa_param_body_adjustments): Adjusted parameters of
12985 register_replacement, modify_gimple_stmt and modify_call_stmt.
12986 (ipa_verify_edge_has_no_modifications): Declare.
12987 (ipa_edge_modifications_finalize): Declare.
12988 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
12989 performed_splits processing, pas only edge to padjs->modify_call,
12990 check that call arguments were not modified if they should not have
12992 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
12994 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
12995 (ipa_edge_modification_info): Likewise.
12996 (ipa_edge_modification_sum): Likewise.
12997 (ipa_edge_modifications): New edge summary.
12998 (ipa_verify_edge_has_no_modifications): New function.
12999 (transitive_split_p): Removed.
13000 (transitive_split_map): Likewise.
13001 (init_transitive_splits): Likewise.
13002 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
13003 summary instead of performed_splits.
13004 (ipa_param_body_adjustments::register_replacement): Drop dummy
13005 parameter, set base_index of the created ipa_param_body_replacement.
13006 (phi_arg_will_live_p): New function.
13007 (ipa_param_body_adjustments::common_initialization): Do not create
13008 IPA_SRA dummy decls.
13009 (simple_tree_swap_info): Removed.
13010 (remap_split_decl_to_dummy): Likewise.
13011 (record_argument_state_1): New function.
13012 (record_argument_state): Likewise.
13013 (ipa_param_body_adjustments::modify_call_stmt): New parameter
13014 orig_stmt. Do not work with dummy decls, save necessary info about
13015 changes to ipa_edge_modifications.
13016 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
13017 orig_stmt, pass it to modify_call_stmt.
13018 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
13019 modify_gimple_stmt.
13020 (ipa_edge_modifications_finalize): New function.
13021 * tree-inline.c (remap_gimple_stmt): Pass original statement to
13022 modify_gimple_stmt.
13023 (copy_phis_for_bb): Do not copy dead PHI nodes.
13024 (expand_call_inline): Do not remap performed_splits.
13025 (update_clone_info): Likewise.
13026 * toplev.c: Include ipa-param-manipulation.h.
13027 (toplev::finalize): Call ipa_edge_modifications_finalize.
13029 2021-06-28 Andrew Pinski <apinski@marvell.com>
13031 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
13032 info if we're the only things setting the target PHI.
13033 (value_replacement): Don't duplicate range here.
13034 (minmax_replacement): Likewise.
13036 2021-06-28 Richard Biener <rguenther@suse.de>
13038 PR tree-optimization/101229
13039 * gimple-walk.c (gimple_walk_op): Handle PHIs.
13041 2021-06-28 Martin Liska <mliska@suse.cz>
13043 * config/v850/v850.c (construct_dispose_instruction): Allocate
13045 (construct_prepare_instruction): Likewise.
13047 2021-06-28 Martin Liska <mliska@suse.cz>
13049 * config/v850/v850.c (v850_option_override): Build default
13051 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
13052 ignored for inlining.
13053 (TARGET_CAN_INLINE_P): New.
13055 2021-06-28 Richard Biener <rguenther@suse.de>
13057 PR tree-optimization/101207
13058 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
13059 permute eliding for load permutations properly.
13061 2021-06-28 Richard Biener <rguenther@suse.de>
13063 PR tree-optimization/101173
13064 * gimple-loop-interchange.cc
13065 (tree_loop_interchange::valid_data_dependences): Disallow outer
13066 loop dependence distance of zero.
13068 2021-06-28 liuhongt <hongtao.liu@intel.com>
13071 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
13072 define_insn_and_split.
13073 (*avx_cmp<mode>3_ltint): Ditto.
13074 (*avx2_pcmp<mode>3_3): Ditto.
13075 (*avx2_pcmp<mode>3_4): Ditto.
13076 (*avx2_pcmp<mode>3_5): Ditto.
13078 2021-06-28 liuhongt <hongtao.liu@intel.com>
13080 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
13081 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
13082 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
13083 IX86_BUILTIN_PBLENDVB128): Replace icode with
13085 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
13087 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
13088 New pre_reload splitter.
13090 2021-06-27 Andrew Pinski <apinski@marvell.com>
13092 PR middle-end/101230
13093 * fold-const.c (fold_ternary_loc): Check
13094 the return value of invert_tree_comparison.
13096 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
13098 * config.gcc: Add SPDX License Identifier.
13099 (powerpc-ibm-aix789): Default to aix73.h.
13100 (powerpc-ibm-aix7.2.*.*): New stanza.
13101 * config/rs6000/aix72.h: Add SPDX License Identifier.
13102 * config/rs6000/aix73.h: New file.
13104 2021-06-26 Jason Merrill <jason@redhat.com>
13106 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
13108 2021-06-26 Andrew Pinski <apinski@marvell.com>
13110 * genmatch.c (lower_cond): Copy for_subst_vec
13111 for the simplify also.
13112 (lower): Swap the order for lower_for and lower_cond.
13114 2021-06-26 Andrew Pinski <apinski@marvell.com>
13116 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
13117 flow senatitive info on the moved ssa set.
13119 2021-06-26 Andrew Pinski <apinski@marvell.com>
13121 * fold-const.c (fold_cond_expr_with_comparison):
13122 Exand arg0 into comp_code, arg00, and arg01.
13123 (fold_ternary_loc): Use invert_tree_comparison
13124 instead of fold_invert_truthvalue for the case
13125 where we have A CMP B ? C : A.
13127 2021-06-25 Martin Sebor <msebor@redhat.com>
13129 PR middle-end/101216
13130 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
13132 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
13134 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
13136 2021-06-25 Richard Biener <rguenther@suse.de>
13138 PR tree-optimization/101202
13139 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
13142 2021-06-25 Richard Biener <rguenther@suse.de>
13144 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
13145 STMT_VINFO_REDUC_DEF from the original representative.
13147 2021-06-25 Martin Sebor <msebor@redhat.com>
13149 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
13150 gimple_no_warning_p and gimple_set_no_warning with
13151 warning_suppressed_p, and suppress_warning.
13153 (maybe_warn_for_bound): Same.
13154 (warn_for_access): Same.
13155 (check_access): Same.
13156 (expand_builtin_strncmp): Same.
13157 (fold_builtin_varargs): Same.
13158 * calls.c (maybe_warn_nonstring_arg): Same.
13159 (maybe_warn_rdwr_sizes): Same.
13160 * cfgexpand.c (expand_call_stmt): Same.
13161 * cgraphunit.c (check_global_declaration): Same.
13162 * fold-const.c (fold_undefer_overflow_warnings): Same.
13163 (fold_truth_not_expr): Same.
13164 (fold_unary_loc): Same.
13165 (fold_checksum_tree): Same.
13166 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
13167 (array_bounds_checker::check_mem_ref): Same.
13168 (array_bounds_checker::check_addr_expr): Same.
13169 (array_bounds_checker::check_array_bounds): Same.
13170 * gimple-expr.c (copy_var_decl): Same.
13171 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
13172 (gimple_fold_builtin_strncat): Same.
13173 (gimple_fold_builtin_stxcpy_chk): Same.
13174 (gimple_fold_builtin_stpcpy): Same.
13175 (gimple_fold_builtin_sprintf): Same.
13176 (fold_stmt_1): Same.
13177 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
13178 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
13179 * gimple-ssa-sprintf.c (handle_printf_call): Same.
13180 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
13181 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
13182 * gimple-ssa-warn-restrict.h: Adjust declarations.
13183 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
13184 gimple_no_warning_p and gimple_set_no_warning with
13185 warning_suppressed_p, and suppress_warning.
13186 (check_call): Same.
13187 (check_bounds_or_overlap): Same.
13188 * gimple.c (gimple_build_call_from_tree): Same.
13189 * gimplify.c (gimplify_return_expr): Same.
13190 (gimplify_cond_expr): Same.
13191 (gimplify_modify_expr_complex_part): Same.
13192 (gimplify_modify_expr): Same.
13193 (gimple_push_cleanup): Same.
13194 (gimplify_expr): Same.
13195 * omp-expand.c (expand_omp_for_generic): Same.
13196 (expand_omp_taskloop_for_outer): Same.
13197 * omp-low.c (lower_rec_input_clauses): Same.
13198 (lower_lastprivate_clauses): Same.
13199 (lower_send_clauses): Same.
13200 (lower_omp_target): Same.
13201 * tree-cfg.c (pass_warn_function_return::execute): Same.
13202 * tree-complex.c (create_one_component_var): Same.
13203 * tree-inline.c (remap_gimple_op_r): Same.
13204 (copy_tree_body_r): Same.
13205 (declare_return_variable): Same.
13206 (expand_call_inline): Same.
13207 * tree-nested.c (lookup_field_for_decl): Same.
13208 * tree-sra.c (create_access_replacement): Same.
13209 (generate_subtree_copies): Same.
13210 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
13211 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
13212 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
13213 * tree-ssa-loop-im.c (execute_sm): Same.
13214 * tree-ssa-phiopt.c (cond_store_replacement): Same.
13215 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
13216 (handle_builtin_strcpy): Same.
13217 (maybe_diag_stxncpy_trunc): Same.
13218 (handle_builtin_stxncpy_strncat): Same.
13219 (handle_builtin_strcat): Same.
13220 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
13221 (set_no_uninit_warning): Same.
13222 (uninit_undefined_value_p): Same.
13223 (warn_uninit): Same.
13224 (maybe_warn_operand): Same.
13225 * tree-vrp.c (compare_values_warnv): Same.
13226 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
13227 (test_for_singularity): Same.
13228 * gimple.h (warning_suppressed_p): New function.
13229 (suppress_warning): Same.
13230 (copy_no_warning): Same.
13231 (gimple_set_block): Call gimple_set_location.
13232 (gimple_set_location): Call copy_warning.
13234 2021-06-25 Martin Sebor <msebor@redhat.com>
13236 * tree.h (warning_suppressed_at, copy_warning,
13237 warning_suppressed_p, suppress_warning): New functions.
13239 2021-06-25 Martin Sebor <msebor@redhat.com>
13241 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
13242 * gengtype.c (open_base_files): Add diagnostic-spec.h.
13243 * diagnostic-spec.c: New file.
13244 * diagnostic-spec.h: New file.
13245 * tree.h (no_warning, all_warnings, suppress_warning_at): New
13247 * warning-control.cc: New file.
13249 2021-06-25 liuhongt <hongtao.liu@intel.com>
13252 * config/i386/i386.c (x86_order_regs_for_local_alloc):
13255 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
13257 PR tree-optimization/101189
13258 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
13259 LHS range of condition to postfold routine.
13260 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
13261 FALSE edge if the LHS range supports it being taken.
13262 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
13264 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
13266 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
13267 (relation_oracle::find_relation_block): Check correct bitmap.
13268 (relation_oracle::dump): Do not dump NULL blocks.
13270 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
13272 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
13273 range_on_edge instead of manually calculating.
13275 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
13277 * range-op.cc: Fix comment.
13279 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
13282 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
13283 Handle V8QI and V4HI modes.
13284 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
13286 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
13287 (mmxpackmode): New mode attribute.
13288 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
13289 (mmxunpackmode): New mode attribute.
13290 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
13291 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
13292 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
13293 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
13294 * config/i386/i386.md (extsuffix): Move from ...
13295 * config/i386/sse.md: ... here.
13297 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
13299 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
13300 (dwarf2out_finish): ...instead of here.
13302 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
13304 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
13305 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
13306 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
13307 * configure: Regenerate.
13309 2021-06-24 Richard Biener <rguenther@suse.de>
13311 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
13312 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
13313 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
13315 2021-06-24 Richard Biener <rguenther@suse.de>
13317 * config/i386/sse.md (avx_addsubv4df3): Rename to
13319 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
13320 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
13321 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
13322 * config/i386/i386-builtin.def: Adjust.
13323 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
13324 * optabs.def (vec_addsub_optab): New optab.
13325 * tree-vect-slp-patterns.c (class addsub_pattern): New.
13326 (slp_patterns): Add addsub_pattern.
13327 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
13328 across CFN_VEC_ADDSUB.
13329 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
13331 * doc/md.texi (vec_addsub<mode>3): Document.
13333 2021-06-24 Jakub Jelinek <jakub@redhat.com>
13335 PR middle-end/101170
13336 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
13337 where regno + subreg_regno_offset wraps around use 0 as starting
13340 2021-06-24 Jakub Jelinek <jakub@redhat.com>
13342 PR middle-end/101172
13343 * stor-layout.c (finish_bitfield_representative): If nextf has
13344 error_mark_node type, set repr type to error_mark_node too.
13346 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
13348 * config/s390/s390.c (s390_function_profiler): Ignore labelno
13350 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
13352 2021-06-24 Richard Biener <rguenther@suse.de>
13354 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
13355 across operations that have different semantics on different
13358 2021-06-24 Jakub Jelinek <jakub@redhat.com>
13360 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
13361 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
13362 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
13363 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
13364 OMP_TARGET user outer_ctx instead of ctx for placeholders and
13365 initializer/combiner gimplification.
13366 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
13367 on target constructs.
13368 (lower_rec_input_clauses): Likewise.
13369 (lower_omp_target): Likewise.
13370 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
13371 on target if in_reduction is present.
13373 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
13375 * tree-predcom.c (class pcom_worker): New class.
13376 (release_chain): Renamed to...
13377 (pcom_worker::release_chain): ...this.
13378 (release_chains): Renamed to...
13379 (pcom_worker::release_chains): ...this.
13380 (aff_combination_dr_offset): Renamed to...
13381 (pcom_worker::aff_combination_dr_offset): ...this.
13382 (determine_offset): Renamed to...
13383 (pcom_worker::determine_offset): ...this.
13384 (class comp_ptrs): New class.
13385 (split_data_refs_to_components): Renamed to...
13386 (pcom_worker::split_data_refs_to_components): ...this,
13387 and update with class comp_ptrs.
13388 (suitable_component_p): Renamed to...
13389 (pcom_worker::suitable_component_p): ...this.
13390 (filter_suitable_components): Renamed to...
13391 (pcom_worker::filter_suitable_components): ...this.
13392 (valid_initializer_p): Renamed to...
13393 (pcom_worker::valid_initializer_p): ...this.
13394 (find_looparound_phi): Renamed to...
13395 (pcom_worker::find_looparound_phi): ...this.
13396 (add_looparound_copies): Renamed to...
13397 (pcom_worker::add_looparound_copies): ...this.
13398 (determine_roots_comp): Renamed to...
13399 (pcom_worker::determine_roots_comp): ...this.
13400 (determine_roots): Renamed to...
13401 (pcom_worker::determine_roots): ...this.
13402 (single_nonlooparound_use): Renamed to...
13403 (pcom_worker::single_nonlooparound_use): ...this.
13404 (remove_stmt): Renamed to...
13405 (pcom_worker::remove_stmt): ...this.
13406 (execute_pred_commoning_chain): Renamed to...
13407 (pcom_worker::execute_pred_commoning_chain): ...this.
13408 (execute_pred_commoning): Renamed to...
13409 (pcom_worker::execute_pred_commoning): ...this.
13410 (struct epcc_data): New member worker.
13411 (execute_pred_commoning_cbck): Call execute_pred_commoning
13412 with pcom_worker pointer.
13413 (find_use_stmt): Renamed to...
13414 (pcom_worker::find_use_stmt): ...this.
13415 (find_associative_operation_root): Renamed to...
13416 (pcom_worker::find_associative_operation_root): ...this.
13417 (find_common_use_stmt): Renamed to...
13418 (pcom_worker::find_common_use_stmt): ...this.
13419 (combinable_refs_p): Renamed to...
13420 (pcom_worker::combinable_refs_p): ...this.
13421 (reassociate_to_the_same_stmt): Renamed to...
13422 (pcom_worker::reassociate_to_the_same_stmt): ...this.
13423 (stmt_combining_refs): Renamed to...
13424 (pcom_worker::stmt_combining_refs): ...this.
13425 (combine_chains): Renamed to...
13426 (pcom_worker::combine_chains): ...this.
13427 (try_combine_chains): Renamed to...
13428 (pcom_worker::try_combine_chains): ...this.
13429 (prepare_initializers_chain): Renamed to...
13430 (pcom_worker::prepare_initializers_chain): ...this.
13431 (prepare_initializers): Renamed to...
13432 (pcom_worker::prepare_initializers): ...this.
13433 (prepare_finalizers_chain): Renamed to...
13434 (pcom_worker::prepare_finalizers_chain): ...this.
13435 (prepare_finalizers): Renamed to...
13436 (pcom_worker::prepare_finalizers): ...this.
13437 (tree_predictive_commoning_loop): Renamed to...
13438 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
13439 some calls and remove some cleanup code.
13440 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
13441 (static variable looparound_phis): Remove.
13442 (static variable name_expansions): Remove.
13444 2021-06-24 Richard Biener <rguenther@suse.de>
13446 * tree-vect-slp.c (slpg_vertex): New struct.
13447 (vect_slp_build_vertices): Adjust.
13448 (vect_optimize_slp): Likewise. Maintain an outgoing permute
13449 and a materialized one.
13451 2021-06-24 Richard Biener <rguenther@suse.de>
13453 PR tree-optimization/101105
13454 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
13455 Only ignore steps when they are equal or scalar order is preserved.
13457 2021-06-24 liuhongt <hongtao.liu@intel.com>
13460 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
13461 Adjust comments for ix86_expand_vecop_qihi2.
13462 (ix86_expand_vecmul_qihi): Renamed to ..
13463 (ix86_expand_vecop_qihi2): Adjust function prototype to
13464 support shift operation, add static to definition.
13465 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
13466 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
13467 ix86_expand_vec_shift_qihi_constant.
13468 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
13469 (ix86_expand_vec_shift_qihi_constant): Deleted.
13470 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
13472 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
13473 condition TARGET_64BIT.
13474 (mul<mode>3): Ditto.
13475 (<insn><mode>3): Ditto.
13476 (vlshr<mode>3): Extend to support avx512 vlshr.
13477 (v<insn><mode>3): New expander for
13479 (v<insn>v8qi3): Ditto.
13480 (vashrv8hi3<mask_name>): Renamed to ..
13481 (vashr<mode>3): And extend to support V16QImode for avx512.
13482 (vashrv16qi3): Deleted.
13483 (vashrv2di3<mask_name>): Extend expander to support avx512
13486 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
13488 * doc/lto.texi (Design Overview): Update that slim objects are
13491 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
13493 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
13494 of OTHER_POWER10_MASKS so it will not be enabled by default.
13496 2021-06-23 Richard Biener <rguenther@suse.de>
13497 Martin Jambor <mjambor@suse.cz>
13499 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
13500 param replacement unconditionally. Adjust comment.
13502 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
13504 * Makefile.in (OBJS): Add gimple-range-fold.o
13505 * gimple-range-fold.cc: New.
13506 * gimple-range-fold.h: New.
13507 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
13508 (gimple_range_calc_op2): Ditto.
13509 * gimple-range-gori.h: Move prototypes to here.
13510 * gimple-range.cc: Adjust include files.
13511 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
13512 (fur_source::get_operand): Ditto.
13513 (fur_source::get_phi_operand): Ditto.
13514 (fur_source::query_relation): Ditto.
13515 (fur_source::register_relation): Ditto.
13516 (class fur_edge): Ditto.
13517 (fur_edge::fur_edge): Ditto.
13518 (fur_edge::get_operand): Ditto.
13519 (fur_edge::get_phi_operand): Ditto.
13520 (fur_stmt::fur_stmt): Ditto.
13521 (fur_stmt::get_operand): Ditto.
13522 (fur_stmt::get_phi_operand): Ditto.
13523 (fur_stmt::query_relation): Ditto.
13524 (class fur_depend): Relocate to gimple-range-fold.h.
13525 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
13526 (fur_depend::register_relation): Ditto.
13527 (fur_depend::register_relation): Ditto.
13528 (class fur_list): Ditto.
13529 (fur_list::fur_list): Ditto.
13530 (fur_list::get_operand): Ditto.
13531 (fur_list::get_phi_operand): Ditto.
13532 (fold_range): Ditto.
13533 (adjust_pointer_diff_expr): Ditto.
13534 (gimple_range_adjustment): Ditto.
13535 (gimple_range_base_of_assignment): Ditto.
13536 (gimple_range_operand1): Ditto.
13537 (gimple_range_operand2): Ditto.
13538 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
13539 (gimple_range_calc_op2): Ditto.
13540 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
13541 (fold_using_range::range_of_range_op): Ditto.
13542 (fold_using_range::range_of_address): Ditto.
13543 (fold_using_range::range_of_phi): Ditto.
13544 (fold_using_range::range_of_call): Ditto.
13545 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
13546 (fold_using_range::range_of_builtin_call): Ditto.
13547 (fold_using_range::range_of_cond_expr): Ditto.
13548 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
13549 (fold_using_range::relation_fold_and_or): Ditto.
13550 (fold_using_range::postfold_gcond_edges): Ditto.
13551 * gimple-range.h: Add gimple-range-fold.h to include files. Change
13552 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
13553 (gimple_range_handler): Relocate to gimple-range-fold.h.
13554 (gimple_range_ssa_p): Ditto.
13555 (range_compatible_p): Ditto.
13556 (class fur_source): Ditto.
13557 (class fur_stmt): Ditto.
13558 (class fold_using_range): Ditto.
13559 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
13560 (gimple_range_calc_op2): Ditto.
13562 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
13564 PR tree-optimization/101148
13565 PR tree-optimization/101014
13566 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
13567 (ranger_cache::~ranger_cache): Adjust.
13568 (ranger_cache::block_range): Check if propagation disallowed.
13569 (ranger_cache::propagate_cache): Disallow propagation if new value
13570 can't be stored properly.
13571 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
13573 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
13575 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
13576 (sbr_vector::set_bb_range): Return true.
13577 (class sbr_sparse_bitmap): Adjust.
13578 (sbr_sparse_bitmap::set_bb_range): Return value.
13579 (block_range_cache::set_bb_range): Return value.
13580 (ranger_cache::propagate_cache): Use return value to print msg.
13581 * gimple-range-cache.h (class block_range_cache): Adjust.
13583 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
13585 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
13587 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
13589 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
13590 so this pattern can be used for test/compare removal. Pass
13591 current insn to compute_logical_op_length and output_logical_op.
13592 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
13593 (h8300_and_costs): Add argument to compute_logical_op_length.
13594 (output_logical_op): Add new argument. Use it to determine if the
13595 condition codes are used and adjust the output accordingly.
13596 (compute_logical_op_length): Add new argument and update length
13597 computations when condition codes are used.
13598 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
13600 (output_logical_op): Likewise.
13602 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
13605 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
13606 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
13607 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
13608 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
13609 * config/i386/sse.md (unspec): ... here.
13611 2021-06-23 Martin Liska <mliska@suse.cz>
13614 * optc-save-gen.awk: Put back arm_fp16_format to
13617 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
13620 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
13623 (clz<mode>2): Update RTX pattern for additions.
13625 2021-06-23 Jakub Jelinek <jakub@redhat.com>
13627 PR middle-end/101167
13628 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
13629 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
13631 2021-06-22 Sergei Trofimovich <siarheit@google.com>
13633 * doc/rtl.texi: drop unbalanced parenthesis.
13635 2021-06-22 Richard Biener <rguenther@suse.de>
13637 PR middle-end/101156
13638 * gimplify.c (gimplify_expr): Remove premature incorrect
13641 2021-06-22 Jakub Jelinek <jakub@redhat.com>
13643 PR tree-optimization/101159
13644 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
13647 2021-06-22 Jakub Jelinek <jakub@redhat.com>
13649 PR middle-end/101160
13650 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
13651 clear crtl->return_rtx instead of keeping it referencing a pseudo.
13653 2021-06-22 Jakub Jelinek <jakub@redhat.com>
13654 Andrew Pinski <apinski@marvell.com>
13656 PR tree-optimization/101162
13657 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
13660 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
13662 * range-op.cc (range_relational_tests): New.
13663 (range_op_tests): Call range_relational_tests.
13665 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
13667 * range-op.cc (operator_cast::lhs_op1_relation): New.
13668 (operator_identity::lhs_op1_relation): Mew.
13670 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
13672 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
13674 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
13676 * range-op.cc (operator_plus::lhs_op1_relation): New.
13677 (operator_plus::lhs_op2_relation): New.
13679 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
13681 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
13682 relation_oracle if dominators exist.
13683 (ranger_cache::~ranger_cache): Dispose of oracle.
13684 (ranger_cache::dump_bb): Dump oracle.
13685 * gimple-range.cc (fur_source::fur_source): New.
13686 (fur_source::get_operand): Use mmeber query.
13687 (fur_source::get_phi_operand): Use member_query.
13688 (fur_source::query_relation): New.
13689 (fur_source::register_dependency): Delete.
13690 (fur_source::register_relation): New.
13691 (fur_edge::fur_edge): Adjust.
13692 (fur_edge::get_phi_operand): Fix comment.
13693 (fur_edge::query): Delete.
13694 (fur_stmt::fur_stmt): Adjust.
13695 (fur_stmt::query): Delete.
13696 (fur_depend::fur_depend): Adjust.
13697 (fur_depend::register_relation): New.
13698 (fur_depend::register_relation): New.
13699 (fur_list::fur_list): Adjust.
13700 (fur_list::get_operand): Use member query.
13701 (fold_using_range::range_of_range_op): Process and query relations.
13702 (fold_using_range::range_of_address): Adjust dependency call.
13703 (fold_using_range::range_of_phi): Ditto.
13704 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
13705 (fold_using_range::relation_fold_and_or): New.
13706 (fold_using_range::postfold_gcond_edges): New.
13707 * gimple-range.h (class gimple_ranger): Adjust.
13708 (class fur_source): Adjust members.
13709 (class fur_stmt): Ditto.
13710 (class fold_using_range): Ditto.
13712 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
13714 * range-op.cc (range_operator::wi_fold): Apply relation effect.
13715 (range_operator::fold_range): Adjust and apply relation effect.
13716 (*::fold_range): Add relation parameters.
13717 (*::op1_range): Ditto.
13718 (*::op2_range): Ditto.
13719 (range_operator::lhs_op1_relation): New.
13720 (range_operator::lhs_op2_relation): New.
13721 (range_operator::op1_op2_relation): New.
13722 (range_operator::op1_op2_relation_effect): New.
13723 (relop_early_resolve): New.
13724 (operator_equal::op1_op2_relation): New.
13725 (operator_equal::fold_range): Call relop_early_resolve.
13726 (operator_not_equal::op1_op2_relation): New.
13727 (operator_not_equal::fold_range): Call relop_early_resolve.
13728 (operator_lt::op1_op2_relation): New.
13729 (operator_lt::fold_range): Call relop_early_resolve.
13730 (operator_le::op1_op2_relation): New.
13731 (operator_le::fold_range): Call relop_early_resolve.
13732 (operator_gt::op1_op2_relation): New.
13733 (operator_gt::fold_range): Call relop_early_resolve.
13734 (operator_ge::op1_op2_relation): New.
13735 (operator_ge::fold_range): Call relop_early_resolve.
13736 * range-op.h (class range_operator): Adjust parameters and methods.
13738 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
13740 * Makefile.in (OBJS): Add value-relation.o.
13741 * gimple-range.h: Adjust include files.
13742 * tree-data-ref.c: Adjust include file order.
13743 * value-query.cc (range_query::get_value_range): Default to no oracle.
13744 (range_query::query_relation): New.
13745 (range_query::query_relation): New.
13746 * value-query.h (class range_query): Adjust.
13747 * value-relation.cc: New.
13748 * value-relation.h: New.
13750 2021-06-22 Richard Biener <rguenther@suse.de>
13752 PR tree-optimization/101151
13753 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
13756 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
13758 * config/riscv/riscv.c (thead_c906_tune_info): New.
13759 (riscv_tune_info_table): Use new tune.
13761 2021-06-22 Richard Biener <rguenther@suse.de>
13763 PR tree-optimization/101158
13764 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
13765 checking after checking for matching operation.
13767 2021-06-22 Richard Biener <rguenther@suse.de>
13769 PR tree-optimization/101159
13770 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
13771 missing NULL vectype check.
13773 2021-06-22 Richard Biener <rguenther@suse.de>
13775 PR tree-optimization/101154
13776 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
13778 2021-06-22 Jakub Jelinek <jakub@redhat.com>
13781 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
13782 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
13783 * config/i386/i386.c (ix86_expand_prologue): Clear it.
13784 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
13785 Remove "" from match_operand. Emit new insns using emit_move_insn and
13786 set ix86_last_zero_store_uid to INSN_UID of the last store.
13787 Add peephole2s for 1/2/4 stores of const0_rtx following previous
13790 2021-06-22 Martin Liska <mliska@suse.cz>
13792 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
13795 2021-06-22 Martin Liska <mliska@suse.cz>
13797 * gcov-io.h: Remove padding entries.
13799 2021-06-22 liuhongt <hongtao.liu@intel.com>
13801 PR tree-optimization/97770
13802 * tree-vect-patterns.c (vect_recog_popcount_pattern):
13804 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
13806 2021-06-22 liuhongt <hongtao.liu@intel.com>
13809 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
13810 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
13811 (expand<mode>_mask): this ..
13812 (*expand<mode>_mask): New pre_reload splitter to transform
13813 v{,p}expand* to vmov* when mask is zero, all ones, or has all
13814 ones in it's lower part, otherwise still generate
13817 2021-06-22 liuhongt <hongtao.liu@intel.com>
13820 * config/i386/i386-expand.c
13821 (ix86_expand_special_args_builtin): Keep constm1_operand only
13822 if it satisfies insn's operand predicate.
13824 2021-06-21 Jason Merrill <jason@redhat.com>
13827 * df-scan.c (df_ref_record): Check that regno < endregno.
13828 * function.c (assign_parms, expand_function_end): Do nothing with a
13829 TYPE_EMPTY_P result.
13831 2021-06-21 Richard Biener <rguenther@suse.de>
13833 PR tree-optimization/101120
13834 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
13836 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
13837 DR chain DCE capability.
13838 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
13839 * tree-vect-stmts.c (vectorizable_load): Remove unused
13840 loads in the DR chain for SLP.
13842 2021-06-21 Jakub Jelinek <jakub@redhat.com>
13844 PR inline-asm/100785
13845 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
13846 output or input operands were already error_mark_node.
13847 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
13848 remove all inputs, outputs and clobbers from the asm and
13849 set template to "".
13851 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
13853 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
13854 (vceq_s16): Likewise.
13855 (vceq_s32): Likewise.
13856 (vceq_u8): Likewise.
13857 (vceq_u16): Likewise.
13858 (vceq_u32): Likewise.
13859 (vceq_p8): Likewise.
13860 (vceqq_s8): Likewise.
13861 (vceqq_s16): Likewise.
13862 (vceqq_s32): Likewise.
13863 (vceqq_u8): Likewise.
13864 (vceqq_u16): Likewise.
13865 (vceqq_u32): Likewise.
13866 (vceqq_p8): Likewise.
13867 (vceq_f32): Gate __a == __b on __FAST_MATH__.
13868 (vceqq_f32): Likewise.
13869 (vceq_f16): Likewise.
13870 (vceqq_f16): Likewise.
13872 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
13875 * config/arm/iterators.md (NEON_VACMP): Remove.
13876 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
13878 (neon_vca<cmp_op><mode>_insn): Likewise.
13879 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
13882 2021-06-21 Richard Biener <rguenther@suse.de>
13884 PR tree-optimization/101121
13885 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
13886 when we just lack a stmt with the desired op when doing permutation.
13887 (vect_build_slp_tree): When caching a failed SLP build attempt
13888 assert that at least one lane is marked as not matching.
13890 2021-06-21 liuhongt <hongtao.liu@intel.com>
13893 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
13894 register alternative.
13895 (*and<mode>_1): Ditto.
13897 (*andn<mode>_1): Ditto.
13898 (*<code><mode>_1): Ditto.
13899 (*<code>qi_1): Ditto.
13900 (*one_cmpl<mode>2_1): Ditto.
13901 (*one_cmplsi2_1_zext): Ditto.
13902 (*one_cmplqi2_1): Ditto.
13903 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
13904 the order of mask registers to be before general registers.
13906 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
13909 * config/i386/i386.md: New define_peephole2s to shrink writing
13910 1, 2 or 4 consecutive zeros to memory when optimizing for size.
13912 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
13914 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
13915 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
13916 more efficient code when the source can be trivially simplified.
13918 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
13920 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
13921 a range if global is not available.
13922 (ranger_cache::entry_range): Fallback to range_of_def.
13923 * gimple-range-cache.h (range_of_def): Adjust prototype.
13925 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
13927 PR tree-optimization/101014
13928 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
13930 (ranger_cache::~ranger_cache): Ditto.
13931 (ranger_cache::enable_new_values): Delete.
13932 (ranger_cache::push_poor_value): Delete.
13933 (ranger_cache::range_of_def): Remove poor value processing.
13934 (ranger_cache::entry_range): Ditto.
13935 (ranger_cache::fill_block_cache): Ditto.
13936 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
13937 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
13938 * gimple-range.h (class gimple_ranger): Adjust.
13940 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
13943 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
13944 derived from arm_canon_arch.
13945 (arm_canon_arch_option): Call it.
13946 (arm_canon_arch_multilib_option): New function.
13947 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
13948 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
13949 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
13950 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
13951 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
13952 * config/arm/arm.opt (mlibarch): New option.
13953 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
13954 of march on RHS with mlibarch.
13956 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
13958 * config.in: Regenerate.
13959 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
13961 * configure: Regenerate.
13962 * configure.ac: Fix for global_load assembler functions.
13964 2021-06-18 Richard Biener <rguenther@suse.de>
13966 PR tree-optimization/101112
13967 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
13968 to lookup a pattern stmt def.
13970 2021-06-18 Jakub Jelinek <jakub@redhat.com>
13972 PR middle-end/101062
13973 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
13974 representatives in QUAL_UNION_TYPE.
13976 2021-06-18 Andrew Pinski <apinski@marvell.com>
13978 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
13979 Add counting of how many times it is done.
13980 (factor_out_conditional_conversion): Likewise.
13981 (match_simplify_replacement): Likewise.
13982 (value_replacement): Likewise.
13983 (spaceship_replacement): Likewise.
13984 (cond_store_replacement): Likewise.
13985 (cond_if_else_store_replacement_1): Likewise.
13986 (hoist_adjacent_loads): Likewise.
13988 2021-06-18 Andrew Pinski <apinski@marvell.com>
13990 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
13991 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
13992 (verify_gimple_assign_binary): Reject point and offset types on
13993 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
13994 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
13995 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
13997 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
13999 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
14000 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
14001 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
14004 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
14006 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
14007 earlyclobber to alts 0/1.
14008 (gen_addadd): Add earlyclobber to alts 0/1.
14009 * config/rs6000/fusion.md: Regenerate file.
14011 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14013 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
14015 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
14017 * gimple-range-cache.cc: Comment cleanups.
14018 * gimple-range-gori.cc: Comment cleanups.
14019 * gimple-range.cc: Comment/spacing cleanups
14020 * value-range.h: Comment cleanups.
14022 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
14025 * calls.c (expand_call): Replace PUSH_ARGS with
14026 targetm.calls.push_argument (0).
14027 (emit_library_call_value_1): Likewise.
14028 * defaults.h (PUSH_ARGS): Removed.
14029 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
14030 targetm.calls.push_argument (0).
14031 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14032 (emit_push_insn): Pass the number bytes to push to
14033 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
14034 * hooks.c (hook_bool_uint_true): New.
14035 * hooks.h (hook_bool_uint_true): Likewise.
14036 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
14037 targetm.calls.push_argument (0).
14038 * target.def (push_argument): Add a targetm.calls hook.
14039 * targhooks.c (default_push_argument): New.
14040 * targhooks.h (default_push_argument): Likewise.
14041 * config/bpf/bpf.h (PUSH_ARGS): Removed.
14042 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
14043 * config/cr16/cr16.h (PUSH_ARGS): Removed.
14044 * config/i386/i386.c (ix86_push_argument): New.
14045 (TARGET_PUSH_ARGUMENT): Likewise.
14046 * config/i386/i386.h (PUSH_ARGS): Removed.
14047 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
14048 * config/m32c/m32c.h (PUSH_ARGS): Removed.
14049 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
14050 * config/pru/pru.h (PUSH_ARGS): Likewise.
14051 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
14052 TARGET_PUSH_ARGUMENT hook.
14053 * doc/tm.texi: Regenerated.
14055 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
14058 * config/i386/i386-expand.c (expand_vector_set_var):
14059 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
14060 ix86_expand_vector_init_duplicate.
14061 (ix86_expand_vector_init_duplicate): Emit insv_1 for
14062 QImode for !TARGET_PARTIAL_REG_STALL.
14063 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
14064 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
14065 as operand 2 predicate. Call ix86_expand_vector_set_var
14066 for non-constant index operand.
14067 (vec_setv2si): Ditto.
14068 (vec_setv4hi): Ditto.
14069 (vec_setv8qi): ditto.
14071 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
14073 PR tree-optimization/100790
14074 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
14077 2021-06-17 Martin Liska <mliska@suse.cz>
14079 * doc/invoke.texi: Use consistently -O1 instead of -O.
14081 2021-06-17 Martin Liska <mliska@suse.cz>
14083 * gcov-io.h: Update documentation entry about string format.
14085 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
14088 * config/s390/vecintrin.h (vec_doublee): Fix to use
14089 __builtin_s390_vflls.
14090 (vec_floate): Fix to use __builtin_s390_vflrd.
14092 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14094 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
14095 * dominance.h (get_dominated_to_depth): Likewise.
14096 (get_all_dominated_blocks): Likewise.
14097 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
14098 * gcse.c (hoist_code): Likewise.
14099 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
14100 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
14101 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
14102 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
14104 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14106 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
14107 * dominance.h (get_dominated_by_region): Likewise.
14108 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
14109 (gimple_duplicate_sese_tail): Likewise.
14110 (move_sese_region_to_fn): Likewise.
14112 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14114 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
14115 * dominance.h (get_dominated_by): Likewise.
14116 * auto-profile.c (afdo_find_equiv_class): Adjust.
14117 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
14118 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14119 * tree-cfg.c (test_linear_chain): Likewise.
14120 (test_diamond): Likewise.
14122 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14124 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
14125 * cfgloopanal.c (get_loop_hot_path): Likewise.
14126 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
14128 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14130 * cgraph.c (cgraph_node::collect_callers): Return
14131 auto_vec<cgraph_edge *>.
14132 * cgraph.h (cgraph_node::collect_callers): Likewise.
14133 * ipa-cp.c (create_specialized_node): Adjust.
14134 (decide_about_value): Likewise.
14135 (decide_whether_version_node): Likewise.
14136 * ipa-sra.c (process_isra_node_results): Likewise.
14138 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14140 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
14141 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
14143 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
14146 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
14148 * gimple-range.cc (debug_seed_ranger): New.
14149 (dump_ranger): New.
14150 (debug_ranger): New.
14152 2021-06-17 Richard Biener <rguenther@suse.de>
14154 PR tree-optimization/54400
14155 * tree-vectorizer.h (enum slp_instance_kind): Add
14156 slp_inst_kind_bb_reduc.
14157 (reduction_fn_for_scalar_code): Declare.
14158 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
14159 Check SLP_INSTANCE_KIND instead of looking at the
14161 (vect_slp_analyze_instance_alignment): Likewise.
14162 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
14163 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
14164 chain linearization from vect_build_slp_tree_2 and generalize
14165 for the use of BB reduction vectorization.
14166 (vect_build_slp_tree_2): Adjust accordingly.
14167 (vect_optimize_slp): Elide permutes at the root of BB reduction
14169 (vectorizable_bb_reduc_epilogue): New function.
14170 (vect_slp_prune_covered_roots): Likewise.
14171 (vect_slp_analyze_operations): Use them.
14172 (vect_slp_check_for_constructors): Recognize associatable
14173 chains for BB reduction vectorization.
14174 (vectorize_slp_instance_root_stmt): Generate code for the
14175 BB reduction epilogue.
14177 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
14179 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
14181 (gori_compute::may_recompute_p): New.
14182 (gori_compute::outgoing_edge_range_p): Perform recomputations.
14183 * gimple-range-gori.h (class gori_compute): Add prototype.
14185 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
14187 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
14188 true when a range can be calculated.
14189 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
14191 2021-06-16 Martin Sebor <msebor@redhat.com>
14193 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
14194 Correct documented defaults.
14196 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
14198 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
14199 m_new_value_p directly.
14201 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
14204 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
14205 Handle 64bit modes for TARGET_SSE4_1.
14206 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
14207 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
14208 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
14209 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
14210 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
14211 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
14213 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
14215 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
14216 Change to an expander that emits the correct instruction
14217 depending on endianness.
14218 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
14219 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
14221 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
14223 * config/aarch64/aarch64-simd-builtins.def: Split generator
14224 for aarch64_<su>qmovn builtins into scalar and vector
14226 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
14228 (aarch64_<su>qmovn<mode>_insn_be): Define.
14229 (aarch64_<su>qmovn<mode>): Split into scalar and vector
14230 variants. Change vector variant to an expander that emits the
14231 correct instruction depending on endianness.
14233 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
14235 * config/aarch64/aarch64-simd-builtins.def: Split generator
14236 for aarch64_sqmovun builtins into scalar and vector variants.
14237 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
14238 Split into scalar and vector variants. Change vector variant
14239 to an expander that emits the correct instruction depending
14241 (aarch64_sqmovun<mode>_insn_le): Define.
14242 (aarch64_sqmovun<mode>_insn_be): Define.
14244 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
14246 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
14247 Define - modeling zero-high-half semantics.
14248 (aarch64_xtn<mode>): Change to an expander that emits the
14249 appropriate instruction depending on endianness.
14250 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
14252 (aarch64_xtn2<mode>_le): Rename to...
14253 (aarch64_xtn2<mode>_insn_le): This.
14254 (aarch64_xtn2<mode>_be): Rename to...
14255 (aarch64_xtn2<mode>_insn_be): This.
14256 (vec_pack_trunc_<mode>): Emit truncation instruction instead
14258 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
14259 attribute iterator.
14261 2021-06-16 Martin Jambor <mjambor@suse.cz>
14263 PR tree-optimization/100453
14264 * tree-sra.c (create_access): Disqualify any const candidates
14265 which are written to.
14266 (sra_modify_expr): Do not store sub-replacements back to a const base.
14267 (handle_unscalarized_data_in_subtree): Likewise.
14268 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
14269 instead of constant_decl_p.
14271 2021-06-16 Jakub Jelinek <jakub@redhat.com>
14273 PR middle-end/101062
14274 * stor-layout.c (finish_bitfield_representative): For fields in unions
14275 assume nextf is always NULL.
14276 (finish_bitfield_layout): Compute bit field representatives also in
14277 unions, but handle it as if each bitfield was the only field in the
14280 2021-06-16 Richard Biener <rguenther@suse.de>
14282 PR tree-optimization/101088
14283 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
14284 supported refs on edges. Do not assert same ref but
14285 different kind stores are unsuported but mark them so.
14286 (hoist_memory_references): Only look for supported refs
14289 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
14291 PR rtl-optimization/46235
14292 * config/i386/i386.md: New define_split for bt followed by cmov.
14293 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
14294 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
14295 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
14296 by setnc with zero extension.
14298 2021-06-16 Richard Biener <rguenther@suse.de>
14300 PR tree-optimization/101083
14301 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
14302 vectype as argument.
14303 (vect_build_slp_tree_2): Adjust.
14305 2021-06-15 Martin Sebor <msebor@redhat.com>
14307 PR middle-end/100876
14308 * builtins.c: (gimple_call_return_array): Account for size_t
14309 mangling as either unsigned int or unsigned long
14311 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
14313 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
14314 up before eliminating comparisons.
14316 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
14318 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
14319 nonzero|X is nonzero.
14320 (range_op_bitwise_and_tests): Add tests for above.
14322 2021-06-15 Carl Love <cel@us.ibm.com>
14325 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
14327 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
14330 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
14333 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
14334 (struct gimplify_omp_ctx): Extend defaultmap array by one.
14335 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
14336 (omp_notice_variable): Update type classification for Fortran.
14337 (gimplify_scan_omp_clauses): Update calls for new argument; handle
14338 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
14339 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
14340 * langhooks.c (lhd_omp_scalar_p): Likewise.
14341 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
14342 (LANG_HOOKS_DECLS): Add them.
14343 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
14344 omp_scalar_p pointer type to include the new bool argument.
14346 2021-06-15 David Malcolm <dmalcolm@redhat.com>
14348 * doc/analyzer.texi
14349 (Special Functions for Debugging the Analyzer): Add
14350 __analyzer_dump_capacity.
14352 2021-06-15 Jakub Jelinek <jakub@redhat.com>
14355 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
14356 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
14358 2021-06-15 Richard Biener <rguenther@suse.de>
14360 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
14361 check to identify loop latches.
14362 * cfgloop.c (verify_loop_structure): Likewise.
14363 * loop-init.c (apply_loop_flags): Allow marked irreducible
14364 regions even with multiple latches.
14365 * predict.c (rebuild_frequencies): Simplify.
14367 2021-06-15 Richard Biener <rguenther@suse.de>
14369 * tree-ssa-threadupdate.c
14370 (jump_thread_path_registry::mark_threaded_blocks): Assert we
14371 have marked irreducible regions.
14373 2021-06-14 Martin Sebor <msebor@redhat.com>
14376 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
14377 Handle calls to placement new.
14378 (ndecl_dealloc_argno): Avoid placement delete.
14380 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
14383 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
14384 create_tmp_reg_or_ssa_name().
14386 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
14388 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
14389 (ranger_cache::enable_new_values): Set to specified value and
14390 return the old value.
14391 (ranger_cache::disable_new_values): Delete.
14392 (ranger_cache::fill_block_cache): Disable non 1st order derived
14394 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
14395 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
14397 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
14400 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
14401 Return true early when testing with V2HImode.
14402 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
14404 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
14406 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
14407 (mve_vec_unpack<US>_hi_<mode>): New pattern.
14408 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
14409 (mve_vmovntq_<supf><mode>): Prefix with '@'.
14410 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
14412 (vec_unpack<US>_lo_<mode>): Likewise.
14413 (vec_pack_trunc_<mode>): Rename to
14414 neon_quad_vec_pack_trunc_<mode>.
14415 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
14417 (vec_unpack<US>_lo_<mode>): New.
14418 (vec_pack_trunc_<mode>): New.
14420 2021-06-14 Richard Biener <rguenther@suse.de>
14422 PR tree-optimization/100934
14423 * tree-ssa-dom.c (pass_dominator::execute): Properly
14424 mark irreducible regions.
14426 2021-06-14 Martin Liska <mliska@suse.cz>
14428 * doc/invoke.texi: Put r{...} on the same line as @item.
14430 2021-06-14 Martin Liska <mliska@suse.cz>
14432 * doc/invoke.texi: Add missing newline.
14434 2021-06-14 Martin Liska <mliska@suse.cz>
14436 * doc/invoke.texi: Remove '+' charasters.
14438 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
14440 * config.gcc (arc): Add support for with_cpu option.
14441 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
14443 2021-06-14 Richard Biener <rguenther@suse.de>
14445 PR tree-optimization/101031
14446 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
14447 instead of size when accounting for a possibly string
14450 2021-06-14 Martin Liska <mliska@suse.cz>
14452 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
14454 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
14456 * value-query.cc (gimple_range_global): Call get_range_global
14457 if called after inlining.
14459 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
14462 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
14463 Emit constant permutation insn directly from here.
14465 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
14467 * attribs.c (find_attribute_namespace): Iterate over vec<> with
14469 * auto-profile.c (afdo_find_equiv_class): Likewise.
14470 * gcc.c (do_specs_vec): Likewise.
14471 (do_spec_1): Likewise.
14472 (driver::set_up_specs): Likewise.
14473 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
14474 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
14475 (imm_store_chain_info::try_coalesce_bswap): Likewise.
14476 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
14477 (get_location_for_stmts): Likewise.
14478 * graphite-poly.c (print_iteration_domains): Likewise.
14479 (free_poly_bb): Likewise.
14480 (remove_gbbs_in_scop): Likewise.
14481 (free_scop): Likewise.
14482 (dump_gbb_cases): Likewise.
14483 (dump_gbb_conditions): Likewise.
14484 (print_pdrs): Likewise.
14485 (print_scop): Likewise.
14486 * ifcvt.c (cond_move_process_if_block): Likewise.
14487 * lower-subreg.c (decompose_multiword_subregs): Likewise.
14488 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
14489 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
14490 * sel-sched-dump.c (dump_insn_vector): Likewise.
14491 * store-motion.c (store_ops_ok): Likewise.
14492 (store_killed_in_insn): Likewise.
14493 * timevar.c (timer::named_items::print): Likewise.
14494 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
14495 (cleanup_tree_cfg_noloop): Likewise.
14496 * tree-data-ref.c (dump_data_references): Likewise.
14497 (print_dir_vectors): Likewise.
14498 (print_dist_vectors): Likewise.
14499 (dump_data_dependence_relations): Likewise.
14500 (dump_dist_dir_vectors): Likewise.
14501 (dump_ddrs): Likewise.
14502 (create_runtime_alias_checks): Likewise.
14503 (free_subscripts): Likewise.
14504 (save_dist_v): Likewise.
14505 (save_dir_v): Likewise.
14506 (invariant_access_functions): Likewise.
14507 (same_access_functions): Likewise.
14508 (access_functions_are_affine_or_constant_p): Likewise.
14509 (find_data_references_in_stmt): Likewise.
14510 (graphite_find_data_references_in_stmt): Likewise.
14511 (free_dependence_relations): Likewise.
14512 (free_data_refs): Likewise.
14513 * tree-inline.c (copy_debug_stmts): Likewise.
14514 * tree-into-ssa.c (dump_currdefs): Likewise.
14515 (rewrite_update_phi_arguments): Likewise.
14516 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
14517 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
14519 (vect_slp_analyze_node_dependences): Likewise.
14520 (vect_slp_analyze_instance_dependence): Likewise.
14521 (vect_record_base_alignments): Likewise.
14522 (vect_get_peeling_costs_all_drs): Likewise.
14523 (vect_peeling_supportable): Likewise.
14524 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
14525 (vec_info::free_stmt_vec_infos): Likewise.
14527 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
14529 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
14530 (andqi3_1<cczn>): Removed.
14531 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
14532 (H8/SX bit logicals): Split out from other patterns.
14533 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
14534 mulqihi3_const_clobber_flags.
14535 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
14537 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
14540 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
14541 to true if red zone is used.
14542 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
14543 ix86_red_zone_used.
14544 * config/i386/i386.h (machine_function): Add red_zone_used.
14545 (ix86_red_zone_size): Removed.
14546 (ix86_red_zone_used): New.
14547 * config/i386/i386.md (peephole2 patterns): Replace
14548 ix86_red_zone_size with ix86_red_zone_used.
14550 2021-06-12 Jason Merrill <jason@redhat.com>
14552 * doc/extend.texi (unused variable attribute): Applies to
14553 structure fields as well.
14555 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
14557 * auto-profile.c (read_profile): fix a typo in an error string
14559 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
14561 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
14563 * tree-pretty-print.c (dump_omp_clauses): Update.
14564 (dump_generic_node) <OMP_CLAUSE>: Use it.
14566 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
14569 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
14570 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
14571 the polymorphic variants matching code.
14572 (__arm_vld1q_z): Likewise.
14573 (__arm_vld2q): Likewise.
14574 (__arm_vld4q): Likewise.
14575 (__arm_vldrbq_gather_offset): Likewise.
14576 (__arm_vldrbq_gather_offset_z): Likewise.
14578 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
14580 PR tree-optimization/96392
14581 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
14583 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
14585 PR tree-optimization/96392
14586 * fold-const.c (fold_real_zero_addition_p): Take both arguments
14587 of the addition or subtraction, not just the zero. Use this
14588 other argument in tests for signaling NaNs and signed zeros.
14589 (tree_expr_maybe_real_minus_zero_p): New predicate.
14590 * fold-const.h (fold_real_zero_addition_p): Update prototype.
14591 (tree_expr_maybe_real_minus_zero_p): New function prototype.
14592 * match.pd: Update calls to fold_real_zero_addition_p.
14593 Replace HONOR_NANS with tree_expr_maybe_nan_p.
14594 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
14595 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
14596 * tree-ssa-reassoc.c (eliminate_using_constants): Update
14597 call to fold_real_zero_addition_p.
14599 2021-06-11 Richard Biener <rguenther@suse.de>
14601 PR tree-optimization/101025
14602 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
14603 all refs that require dependence checking.
14605 2021-06-11 Richard Biener <rguenther@suse.de>
14607 PR tree-optimization/101028
14608 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
14609 reassoc discovery fails fatally, mark appropriate lanes
14612 2021-06-11 Richard Biener <rguenther@suse.de>
14614 PR tree-optimization/101026
14615 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
14616 have a representative for the associated chain nodes.
14618 2021-06-11 Jakub Jelinek <jakub@redhat.com>
14620 PR rtl-optimization/101008
14621 * simplify-rtx.c (relational_result): New function.
14622 (simplify_logical_relational_operation,
14623 simplify_relational_operation): Use it.
14625 2021-06-11 Jakub Jelinek <jakub@redhat.com>
14628 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
14630 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
14633 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
14634 false if the permutation can be implemented with constant
14635 permutation instruction in wider mode.
14636 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
14637 Handle V8QImode and V4HImode.
14639 2021-06-11 Martin Liska <mliska@suse.cz>
14641 PR gcov-profile/100788
14642 * common.opt: Add new option.
14643 * coverage.c (coverage_begin_function): Emit warning instead on
14644 the internal compiler error.
14645 * doc/invoke.texi: Document the option.
14646 * toplev.c (process_options): Enable it by default.
14648 2021-06-11 Richard Biener <rguenther@suse.de>
14650 PR middle-end/101009
14651 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
14652 to set *init_b to true when we encounter a constant equal
14654 (compute_affine_dependence): Also dump the actual DR_REF.
14656 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
14658 PR tree-optimization/100984
14659 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
14660 replacements table.
14661 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
14663 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
14665 * config/rs6000/rs6000.md
14666 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
14667 define_insn_and_split.
14669 2021-06-11 Richard Biener <rguenther@suse.de>
14671 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
14672 to sort operands of the associative chain.
14674 2021-06-11 Richard Biener <rguenther@suse.de>
14676 * system.h (gcc_stablesort_r): Declare.
14677 * sort.cc (gcc_sort_r): Support stable sort.
14678 (gcc_stablesort_r): Define.
14679 * vec.h (vec<>::stablesort): Add.
14681 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
14684 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
14685 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
14686 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
14687 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
14688 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
14689 (expand_vec_perm_interleave2): Handle 64bit modes.
14690 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
14691 (expand_vec_perm_even_odd_1): Ditto.
14692 (ix86_vectorize_vec_perm_const): Ditto.
14693 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
14694 * config/i386/sse.md: ... here.
14695 * config/i386/mmx.md (*vec_interleave_lowv2sf):
14696 New insn_and_split pattern.
14697 (*vec_interleave_highv2sf): Ditto.
14698 (mmx_pshufbv8qi3): New insn pattern.
14699 (*mmx_pblendw): Ditto.
14701 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
14703 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
14704 (build_acc): Likewise.
14705 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
14706 source operands in little-endian mode.
14707 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
14708 (mma_init_builtins): Likewise.
14709 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
14710 ordering for the MMA assemble and build source operands.
14711 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
14713 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
14716 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
14718 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
14720 * config/h8300/extensions.md: Replace _clobber_flags patterns
14723 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
14725 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
14726 (vcond_mask_<mode><tointvec>): this.
14728 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
14729 Thomas Schwinge <thomas@codesourcery.com>
14731 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
14732 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
14733 * gimple.h (enum gf_mask): Split
14734 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
14735 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
14736 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
14737 (is_gimple_omp_oacc): Update.
14738 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
14739 * gimplify.c (gimplify_omp_target_update): Likewise.
14740 * omp-expand.c (expand_omp_target, build_omp_regions_1)
14741 (omp_make_gimple_edges): Likewise.
14742 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
14745 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
14747 * value-query.cc (value_query::value_on_edge): Rename name to
14749 (range_query::range_on_edge): Same.
14750 (range_query::value_of_expr): Same.
14751 (range_query::value_on_edge): Same.
14752 * value-query.h (class value_query): Same.
14753 (class range_query): Same.
14755 2021-06-10 Richard Biener <rguenther@suse.de>
14757 PR tree-optimization/101003
14758 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
14759 use the pattern stmt defs when linearizing a chain.
14761 2021-06-10 Jakub Jelinek <jakub@redhat.com>
14764 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
14765 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
14767 2021-06-10 Clement Chigot <clement.chigot@atos.net>
14769 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
14770 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
14772 2021-06-09 Andrew Pinski <apinski@marvell.com>
14774 PR tree-optimization/100925
14775 * match.pd (a ? CST1 : CST2): Limit transformations
14776 that would produce a negative to integeral types only.
14777 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
14779 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
14782 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
14784 * doc/tm.texi: Correctly update.
14786 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
14788 * doc/tm.texi: Correctly update.
14790 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
14793 * doc/tm.texi.in (Trampolines): Add a missing blank line.
14795 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
14798 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
14799 and -ftrampolines work only with Ada.
14800 * doc/tm.texi.in (Trampolines): Likewise.
14801 * doc/tm.texi: Regenerated.
14803 2021-06-09 Carl Love <cel@us.ibm.com>
14805 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
14806 Add define for new builtins.
14807 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
14808 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
14809 overloaded builtin definitions.
14810 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
14811 VSIGNEXTSD2Q): Add builtin expansions.
14812 (SIGNEXT): Add P10 overload definition.
14813 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
14814 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
14815 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
14816 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
14817 vsignextend_si_v2di)[VIlong]: Add define_expand.
14818 Make define_insn vsx_sign_extend_si_v2di visible.
14819 * doc/extend.texi: Add documentation for the vec_signexti,
14820 vec_signextll builtins and vec_signextq.
14822 2021-06-09 Carl Love <cel@us.ibm.com>
14824 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
14825 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
14826 __floattikf_sw, __floatuntikf_sw respectively.
14827 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
14828 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
14829 define_insn for mode IEEE 128.
14831 2021-06-09 Carl Love <cel@us.ibm.com>
14833 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
14834 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
14835 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
14836 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
14837 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
14838 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
14839 uses of VSX_TI to VEC_TI.
14841 2021-06-09 Carl Love <cel@us.ibm.com>
14843 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
14845 2021-06-09 Carl Love <cel@us.ibm.com>
14847 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
14849 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
14850 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
14851 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
14852 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
14853 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
14854 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
14855 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
14857 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
14858 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
14859 altivec_vrlqnm): New define_expands.
14860 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
14861 VCMPGTUT_P): Add macro expansions.
14862 (BU_P10V_AV_P): Add builtin predicate definition.
14863 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
14864 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
14865 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
14866 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
14867 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
14868 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
14869 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
14870 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
14871 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
14872 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
14873 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
14874 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
14875 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
14876 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
14877 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
14878 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
14879 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
14880 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
14881 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
14882 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
14883 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
14884 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
14885 P10V_BUILTIN_MODU_V1TI):
14886 New overloaded definitions.
14887 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
14888 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
14889 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
14890 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
14891 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
14892 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
14894 (altivec_init_builtins): New E_V1TImode case statement.
14895 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
14896 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
14897 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
14898 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
14899 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
14900 E_V1TImode]: New case statements.
14901 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
14902 value RS6000_BTI_bool_V1TI.
14903 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
14904 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
14905 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
14906 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
14907 vlshrv1ti3, vashrv1ti3): New define_expands.
14908 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
14909 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
14910 UNSPEC_VSX_MODUQ): New unspecs.
14911 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
14912 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
14914 (vcmpnet): New define_expand.
14915 * doc/extend.texi: Add documentation for the new builtins vec_rl,
14916 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
14917 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
14918 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
14919 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
14920 vec_any_ge, vec_any_le.
14922 2021-06-09 Carl Love <cel@us.ibm.com>
14924 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
14925 bug in argument generation.
14927 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
14929 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
14931 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
14932 remove <supf> iterator.
14933 (mve_vclzq_u<mode>): New.
14934 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
14935 (neon_vclz<mode): Move to ...
14936 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
14937 * config/arm/vec-common.md: ... here. Add support for MVE.
14939 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
14941 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
14942 (@mve_vrhaddq_<supf><mode): Likewise.
14943 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
14944 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
14945 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
14947 2021-06-09 imba-tjd <109224573@qq.com>
14949 * doc/invoke.texi: Fix typo.
14951 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
14953 PR middle-end/53267
14954 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
14955 Support evaluation of fmod/fmodf/fmodl at compile-time.
14957 2021-06-09 Richard Biener <rguenther@suse.de>
14959 PR tree-optimization/100981
14960 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
14961 gimple_get_lhs to also handle calls.
14962 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
14965 2021-06-09 Richard Biener <rguenther@suse.de>
14967 PR tree-optimization/97832
14968 * tree-vectorizer.h (_slp_tree::failed): New.
14969 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
14971 (_slp_tree::~_slp_tree): Free failed.
14972 (vect_build_slp_tree): Retain failed nodes and record
14973 matches in them, copying that back out when running
14974 into a cached fail. Dump start and end of discovery.
14975 (dt_sort_cmp): New.
14976 (vect_build_slp_tree_2): Handle associatable chains
14977 together doing more aggressive operand swapping.
14979 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
14982 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
14984 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
14985 Linux and GNU targets.
14987 2021-06-09 Richard Biener <rguenther@suse.de>
14989 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
14992 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
14994 * config/arc/arc.md (loop_end): Change it to
14995 define_insn_and_split.
14997 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
14999 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
15000 (machi): New pattern.
15001 (umaddhisi4): Use VMAC2HU instruction.
15002 (umachi): New pattern.
15004 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
15006 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
15007 * config/arc/arc.c (arc_split_move_p): New function.
15008 (arc_split_move): Clean up.
15009 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
15010 (movdf_insn): Likewise.
15011 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
15013 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
15016 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
15017 argument to "raw". Do not emit segment overrides when "raw" is true.
15019 2021-06-09 Martin Liska <mliska@suse.cz>
15021 * doc/gcov.texi: Create a proper JSON files.
15022 * doc/invoke.texi: Remove dots in order to make it a valid
15025 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
15027 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
15028 (insn_is_load_p): Use pattern_is_rotate64.
15029 (insn_is_swap_p): Likewise.
15030 (quad_aligned_load_p): Likewise.
15031 (const_load_sequence_p): Likewise.
15032 (replace_swapped_aligned_load): Likewise.
15033 (recombine_lvx_pattern): Likewise.
15034 (recombine_stvx_pattern): Likewise.
15036 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
15038 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
15039 fur_stmt source record.
15040 * gimple-range.cc (fur_source::get_operand): Generic range query.
15041 (fur_source::get_phi_operand): New.
15042 (fur_source::register_dependency): New.
15043 (fur_source::query): New.
15044 (class fur_edge): New. Edge source for operands.
15045 (fur_edge::fur_edge): New.
15046 (fur_edge::get_operand): New.
15047 (fur_edge::get_phi_operand): New.
15048 (fur_edge::query): New.
15049 (fur_stmt::fur_stmt): New.
15050 (fur_stmt::get_operand): New.
15051 (fur_stmt::get_phi_operand): New.
15052 (fur_stmt::query): New.
15053 (class fur_depend): New. Statement source and process dependencies.
15054 (fur_depend::fur_depend): New.
15055 (fur_depend::register_dependency): New.
15056 (class fur_list): New. List source for operands.
15057 (fur_list::fur_list): New.
15058 (fur_list::get_operand): New.
15059 (fur_list::get_phi_operand): New.
15060 (fold_range): New. Instantiate appropriate fur_source class and fold.
15061 (fold_using_range::range_of_range_op): Use new API.
15062 (fold_using_range::range_of_address): Ditto.
15063 (fold_using_range::range_of_phi): Ditto.
15064 (imple_ranger::fold_range_internal): Use fur_depend class.
15065 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
15066 * gimple-range.h (class fur_source): Now a base class.
15067 (class fur_stmt): New.
15068 (fold_range): New prototypes.
15069 (fur_source::fur_source): Delete.
15071 2021-06-08 Andrew Pinski <apinski@marvell.com>
15073 PR tree-optimization/25290
15074 * tree-ssa-phiopt.c (xor_replacement): Delete.
15075 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
15076 (match_simplify_replacement): Allow one cheap preparation
15077 statement that can be moved to before the if.
15079 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
15081 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
15082 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
15084 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
15086 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
15087 Create length attribute on define_insn_and_split. Only split for cases which we
15089 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
15090 fix length computation.
15091 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
15093 2021-06-08 Richard Biener <rguenther@suse.de>
15095 PR tree-optimization/100923
15096 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
15097 the operand vector to be valueized.
15098 (valueize_refs): Likewise.
15099 (valueize_shared_reference_ops_from_ref): Adjust.
15100 (valueize_shared_reference_ops_from_call): Likewise.
15101 (vn_reference_lookup_3): Likewise.
15102 (vn_reference_lookup_pieces): Likewise. Re-valueize
15103 with honoring availability when we are about to create
15104 the ao_ref and valueized before.
15105 (vn_reference_lookup): Likewise.
15106 (vn_reference_insert_pieces): Adjust.
15108 2021-06-08 Richard Biener <rguenther@suse.de>
15110 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
15111 (_slp_instance::root_stmts): ... a vector.
15112 (SLP_INSTANCE_ROOT_STMT): Rename to ...
15113 (SLP_INSTANCE_ROOT_STMTS): ... this.
15114 (slp_root::root): Change to...
15115 (slp_root::roots): ... a vector.
15116 (slp_root::slp_root): Adjust.
15117 * tree-vect-slp.c (_slp_instance::location): Adjust.
15118 (vect_free_slp_instance): Release the root stmt vector.
15119 (vect_build_slp_instance): Adjust.
15120 (vect_analyze_slp): Likewise.
15121 (_bb_vec_info::~_bb_vec_info): Likewise.
15122 (vect_slp_analyze_operations): Likewise.
15123 (vect_bb_vectorization_profitable_p): Likewise. Adjust
15124 costs for the root stmt.
15125 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
15127 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
15129 (vectorize_slp_instance_root_stmt): Adjust.
15130 (vect_schedule_slp): Likewise.
15132 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
15134 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
15135 (ssa_equiv_stack::ssa_equiv_stack): New.
15136 (ssa_equiv_stack::~ssa_equiv_stack): New.
15137 (ssa_equiv_stack::enter): New.
15138 (ssa_equiv_stack::leave): New.
15139 (ssa_equiv_stack::push_replacement): New.
15140 (ssa_equiv_stack::get_replacement): New.
15141 (is_pointer_ssa): New.
15142 (class pointer_equiv_analyzer): New.
15143 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
15144 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
15145 (pointer_equiv_analyzer::set_global_equiv): New.
15146 (pointer_equiv_analyzer::set_cond_equiv): New.
15147 (pointer_equiv_analyzer::get_equiv): New.
15148 (pointer_equiv_analyzer::enter): New.
15149 (pointer_equiv_analyzer::leave): New.
15150 (pointer_equiv_analyzer::get_equiv_expr): New.
15151 (pta_valueize): New.
15152 (pointer_equiv_analyzer::visit_stmt): New.
15153 (pointer_equiv_analyzer::visit_edge): New.
15154 (hybrid_folder::value_of_expr): Call PTA.
15155 (hybrid_folder::value_on_edge): Same.
15156 (hybrid_folder::pre_fold_bb): New.
15157 (hybrid_folder::post_fold_bb): New.
15158 (hybrid_folder::pre_fold_stmt): New.
15159 (rvrp_folder::pre_fold_bb): New.
15160 (rvrp_folder::post_fold_bb): New.
15161 (rvrp_folder::pre_fold_stmt): New.
15162 (rvrp_folder::value_of_expr): Call PTA.
15163 (rvrp_folder::value_on_edge): Same.
15165 2021-06-08 Jakub Jelinek <jakub@redhat.com>
15168 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
15169 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
15171 2021-06-08 Richard Biener <rguenther@suse.de>
15173 PR middle-end/100951
15174 * tree-vect-generic.c (expand_vector_piecewise): Build a
15175 VECTOR_CST if all elements are constant.
15176 (expand_vector_condition): Likewise.
15177 (lower_vec_perm): Likewise.
15178 (expand_vector_conversion): Likewise.
15180 2021-06-08 Martin Liska <mliska@suse.cz>
15182 * doc/invoke.texi: Document new param evrp-sparse-threshold.
15184 2021-06-08 Martin Liska <mliska@suse.cz>
15186 * genautomata.c (create_automata): Fix typo.
15188 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
15190 PR tree-optimization/100794
15191 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
15192 allow_unroll_p and only allow unrolling when it's true.
15193 (tree_predictive_commoning): Add parameter allow_unroll_p and
15195 (run_tree_predictive_commoning): Likewise.
15196 (pass_predcom::gate): Check flag_tree_loop_vectorize and
15197 global_options_set.x_flag_predictive_commoning.
15198 (pass_predcom::execute): Adjust for allow_unroll_p.
15200 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
15202 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
15203 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
15204 lambda function cleanup, remove scev_reset call, and adjust return
15206 (tree_predictive_commoning): Adjust for different changed values,
15207 only set flag TODO_update_ssa_only_virtuals if changed.
15208 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
15209 from todo_flags_finish.
15211 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
15213 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
15214 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
15215 (sbr_sparse_bitmap::bitmap_set_quad): New.
15216 (sbr_sparse_bitmap::bitmap_get_quad): New.
15217 (sbr_sparse_bitmap::set_bb_range): New.
15218 (sbr_sparse_bitmap::get_bb_range): New.
15219 (sbr_sparse_bitmap::bb_range_p): New.
15220 (block_range_cache::block_range_cache): initialize bitmap obstack.
15221 (block_range_cache::~block_range_cache): Destruct obstack.
15222 (block_range_cache::set_bb_range): Decide when to utilze the
15223 sparse on entry cache.
15224 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
15225 * params.opt (-param=evrp-sparse-threshold): New.
15227 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
15229 * bitmap.c (bitmap_set_aligned_chunk): New.
15230 (bitmap_get_aligned_chunk): New.
15231 (test_aligned_chunk): New.
15232 (bitmap_c_tests): Call test_aligned_chunk.
15233 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
15235 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
15238 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
15240 (ix86_expand_vector_init_one_nonzero): Ditto.
15241 (ix86_expand_vector_init_one_var): Ditto.
15242 (ix86_expand_vector_init_general): Ditto.
15243 * config/i386/mmx.md (vec_initv4qiqi): New expander.
15245 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
15247 * config/h8300/movepush.md: Change most _clobber_flags
15248 patterns to instead use <cczn> subst.
15249 (movsi_cczn): New pattern with usable CC cases split out.
15250 (movsi_h8sx_cczn): Likewise.
15252 2021-06-07 Martin Liska <mliska@suse.cz>
15254 * common/common-target.def: Split long lines and replace them
15256 * target.def: Likewise.
15257 * doc/tm.texi: Re-generated.
15259 2021-06-07 Jakub Jelinek <jakub@redhat.com>
15262 * fold-const.c (fold_read_from_vector): Return NULL if trying to
15263 read from a CONSTRUCTOR with vector type elements.
15265 2021-06-07 Jakub Jelinek <jakub@redhat.com>
15267 PR middle-end/100898
15268 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
15269 should copy any arguments. Don't call gimple_call_num_args
15270 on id->call_stmt or call_stmt more than once.
15272 2021-06-07 liuhongt <hongtao.liu@intel.com>
15275 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
15277 (<insn>v4siv4di2): Delete constraints for define_expand.
15279 2021-06-07 liuhongt <hongtao.liu@intel.com>
15282 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
15283 assignment of cfun->machine->has_explicit_vzeroupper.
15284 * config/i386/i386-features.c
15285 (ix86_add_reg_usage_to_vzerouppers): Delete.
15286 (ix86_add_reg_usage_to_vzeroupper): Ditto.
15287 (rest_of_handle_insert_vzeroupper): Remove
15288 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
15290 (gate): Remove cfun->machine->has_explicit_vzeroupper.
15291 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
15293 * config/i386/i386.c (ix86_insn_callee_abi): New function.
15294 (ix86_initialize_callee_abi): Ditto.
15295 (ix86_expand_avx_vzeroupper): Ditto.
15296 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
15298 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
15299 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
15301 * config/i386/i386.h (struct GTY(()) machine_function): Delete
15302 has_explicit_vzeroupper.
15303 * config/i386/i386.md (enum unspec): New member
15305 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
15306 define_constants for insn callee abi index.
15307 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
15308 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
15309 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
15310 (*avx_vzeroupper): Rename to ..
15311 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
15312 call_insn which has a special vzeroupper ABI.
15313 (*avx_vzeroupper_1): Deleted.
15315 2021-06-07 liuhongt <hongtao.liu@intel.com>
15318 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
15319 it won't use stack pointer reg.
15320 * final.c (leaf_function_p): When call_insn is a fake call, it
15321 won't affect caller as a leaf function.
15322 * reg-stack.c (callee_clobbers_any_stack_reg): New.
15323 (subst_stack_regs): When call_insn doesn't clobber any stack
15324 reg, don't clear the arguments.
15325 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
15327 * shrink-wrap.c (requires_stack_frame_p): No need for stack
15328 frame for a fake call.
15329 * rtl.h (FAKE_CALL_P): New macro.
15331 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
15333 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
15335 (sparc_order_regs_for_local_alloc): ...this.
15336 (sparc_leaf_reg_remap): Declare.
15337 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
15338 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
15339 * config/sparc/sparc.c (leaf_reg_remap): Delete.
15340 (order_regs_for_local_alloc): Rename to...
15341 (sparc_order_regs_for_local_alloc): ...this.
15342 (sparc_leaf_reg_remap): New function.
15343 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
15345 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
15347 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
15348 Use assemble_name to output BSS section name.
15350 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
15352 * config/i386/constraints.md (Bs):
15353 Remove boolean operators from match_test RTX.
15356 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
15359 2021-06-06 Martin Liska <mliska@suse.cz>
15361 * doc/extend.texi: Add missing @headitem.
15362 * doc/invoke.texi: Likewise.
15363 * doc/objc.texi: Likewise.
15365 2021-06-06 Martin Liska <mliska@suse.cz>
15367 * genhooks.c (emit_findices): Remove unused function.
15368 (emit_documentation): Do not call emit_findices
15369 and do not search for @Fcode directives.
15371 2021-06-06 Martin Liska <mliska@suse.cz>
15373 * doc/invoke.texi: Remove extra character.
15375 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
15377 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
15379 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
15381 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
15382 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
15383 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
15384 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
15386 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
15388 * config/or1k/or1k.md (*movdi): Fix empty split condition.
15390 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
15392 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
15395 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
15397 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
15398 *zero_extendsidi2): Fix empty split condition.
15400 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
15402 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
15404 * config/h8300/bitfield.md: Likewise.
15405 * config/h8300/combiner.md: Likewise.
15406 * config/h8300/divmod.md: Likewise.
15407 * config/h8300/extensions.md: Likewise.
15408 * config/h8300/jumpcall.md: Likewise.
15409 * config/h8300/movepush.md: Likewise.
15410 * config/h8300/multiply.md: Likewise.
15411 * config/h8300/other.md: Likewise.
15412 * config/h8300/shiftrotate.md: Likewise.
15413 * config/h8300/logical.md: Likewise. Fix split pattern to use
15414 code iterator that somehow slipped through.
15416 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
15418 PR middle-end/100905
15419 * tree-nested.c (convert_nonlocal_omp_clauses,
15420 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
15422 2021-06-04 Martin Sebor <msebor@redhat.com>
15424 PR middle-end/100732
15425 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
15426 with either source or destination argument of invalid type.
15427 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
15428 calls with arguments of invalid type.
15430 2021-06-04 Martin Sebor <msebor@redhat.com>
15432 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
15434 (attr_access::vla_bounds): Also handle VLA bounds.
15436 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
15438 * config/i386/predicates.md (GOT_memory_operand):
15439 Implement using match_code RTXes.
15440 (GOT32_symbol_operand): Ditto.
15442 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
15445 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
15447 (ix86_expand_vector_init_general): Ditto.
15448 Use SImode instead of word_mode for logic operations
15449 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
15450 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
15451 implemented by expand_vec_perm_1.
15452 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
15453 should be implemented using standard shuffle patterns.
15454 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
15455 V2HI modes to modes, implementable with shuffle for one operand.
15456 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
15457 (*pshufw_1): New insn pattern.
15458 (*vec_dupv2hi): Ditto.
15459 (vec_initv2hihi): New expander.
15461 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
15463 * config/arm/vfp.md (no_literal_pool_df_immediate,
15464 no_literal_pool_sf_immediate): Fix empty split condition.
15466 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
15468 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
15469 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
15470 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
15471 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
15472 *<sse4_1_avx2>_pblendvb_lt): Likewise.
15474 2021-06-04 Jakub Jelinek <jakub@redhat.com>
15477 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
15478 concatenation from half-sized modes with TImode elements.
15480 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
15482 * config/arc/arc.c (arc_override_options): Disable millicode
15483 thunks when RF16 is on.
15485 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
15487 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
15489 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
15491 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
15492 Replace PROMOTE_MODE marco with its content.
15494 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
15496 * config/cris/cris.md (*addi_reload): Fix empty split condition.
15498 2021-06-03 Jim Wilson <jimw@sifive.com>
15500 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
15501 turn it on for all riscv targets.
15503 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
15506 * config/i386/i386-expand.c (ix86_expand_vector_set):
15507 Handle V2HI and V4QI modes.
15508 (ix86_expand_vector_extract): Ditto.
15509 * config/i386/mmx.md (*pinsrw): New insn pattern.
15512 (*pextrw_zext): Ditto.
15514 (*pextrb_zext): Ditto.
15515 (vec_setv2hi): New expander.
15516 (vec_extractv2hihi): Ditto.
15517 (vec_setv4qi): Ditto.
15518 (vec_extractv4qiqi): Ditto.
15519 (vec_setv8qi): Enable only for TARGET_SSE4_1.
15520 (vec_extractv8qiqi): Ditto.
15522 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
15524 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
15525 order to subf instruction.
15526 * config/rs6000/fusion.md: Regenerate.
15528 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
15530 * calls.c (get_size_range): Use range_of_expr instead of
15531 determine_value_range.
15532 * tree-affine.c (expr_to_aff_combination): Same.
15533 * tree-data-ref.c (split_constant_offset): Same.
15534 * tree-vrp.c (determine_value_range_1): Remove.
15535 (determine_value_range): Remove.
15536 * tree-vrp.h (determine_value_range): Remove.
15538 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
15540 * function-tests.c (test_ranges): Call gimple_range_tests.
15541 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
15543 * gimple-range.cc (fur_source::get_operand): Do not call
15544 get_tree_range or gimple_range_global.
15546 (get_tree_range): Move to value-query.cc.
15547 Call get_arith_expr_range.
15548 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
15549 Include gimple-range-tests.cc.
15550 * gimple-range.h (fold_range): Add argument.
15551 (get_tree_range): Remove.
15552 * selftest.h (gimple_range_tests): New.
15553 * value-query.cc (global_range_query::range_of_expr): Add
15555 (range_query::get_tree_range): Move from gimple-range.cc.
15556 * value-query.h (class range_query): Add get_tree_range and
15557 get_arith_expr_range. Make fur_source a friend.
15558 * vr-values.c (vr_values::range_of_expr): Pass stmt to
15560 * gimple-range-tests.cc: New file.
15562 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
15564 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
15565 update_global_range.
15566 * value-query.cc (update_global_range): New.
15567 * value-query.h (update_global_range): New.
15569 2021-06-03 David Malcolm <dmalcolm@redhat.com>
15571 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
15572 printing the same location twice if there are fix-it hints,
15573 multiple locations, or a label.
15575 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
15577 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
15578 thresholds to narrow the upper bound on epilogue iterations.
15580 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
15582 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
15583 (mve_vabsq_s<mode>): Likewise.
15584 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
15585 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
15586 * config/arm/vec-common.md (neg<mode>2): Rename to
15587 <absneg_str><mode>2.
15589 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
15591 * common/config/arc/arc-common.c (arc_option_optimization_table):
15592 Remove malign-call.
15593 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
15594 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
15595 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
15596 * config/arc/arc.md (abssi2_mixed): Remove pattern.
15597 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
15598 (malign-call): Likewise.
15599 (mmixed-code): Likewise.
15600 * doc/invoke.texi (ARC): Update doc.
15602 2021-06-03 Martin Liska <mliska@suse.cz>
15604 * common.opt: Use proper Enum values.
15605 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
15606 (parse_sanitizer_options): Handle only sanitizer_opts.
15607 (common_handle_option): Just assign value.
15609 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
15612 * tree-inline.c (inline_forbidden_p): Remove test on return type.
15614 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
15616 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
15617 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
15618 (type_byte_size): Inline into...
15619 (add_byte_size_attribute): ...this and call add_scalar_info.
15621 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
15623 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
15624 (typed_binop_from_tree): New function.
15625 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
15626 turn a divide by a power of 2 into a shift.
15627 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
15628 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
15629 typed divide by calling typed_binop_from_tree.
15631 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
15633 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
15634 (is_handled_procedure_type): Likewise.
15635 (struct loc_descr_context): Add strict_signedness field.
15636 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
15637 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
15638 (resolve_args_picking): Minor tweak.
15639 (function_to_dwarf_procedure): Initialize strict_signedness field.
15640 (type_byte_size): Likewise.
15641 (field_byte_offset): Likewise.
15642 (gen_descr_array_type_die): Likewise.
15643 (gen_variant_part): Likewise.
15644 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
15645 to true when a context is present before evaluating the arguments.
15646 <COND_EXPR>: Do not generate a useless comparison with zero.
15647 When dereferencing an address, if strict_signedness is true and the
15648 type is small and signed, use DW_OP_deref_type to do the dereference
15649 and then DW_OP_convert to convert back to the generic type.
15651 2021-06-03 Jakub Jelinek <jakub@redhat.com>
15654 * tree-inline.c (copy_tree_body_r): Handle iterators on
15655 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
15657 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
15659 * config/arc/arc.md (*bbit_di): Remove.
15661 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
15663 PR rtl-optimization/100264
15664 * ree.c (get_sub_rtx): Ignore SET expressions without register
15665 destinations and remove assertion, as it is not valid anymore
15666 with this new behaviour.
15667 (merge_def_and_ext): Eliminate destination check for register
15668 as such SET expressions can't occur anymore.
15669 (combine_reaching_defs): Likewise.
15671 2021-06-02 Jakub Jelinek <jakub@redhat.com>
15674 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
15675 -Wtype-limits warnings.
15676 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
15677 in operands to avoid -Wsign-compare warnings.
15679 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
15681 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
15684 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
15686 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
15688 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
15690 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
15692 * config/s390/subst.md(cconly_subst): Use a single constraint
15693 in (match_scratch).
15695 2021-06-02 Martin Liska <mliska@suse.cz>
15697 * ipa-icf.h: Use auto_vec for memory_access_types.
15699 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
15701 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
15702 argument from prototype.
15703 (output_logical_op): Add rtx_code argument.
15704 (compute_logical_op_length): Likewise.
15705 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
15706 to compute_a_shift_length.
15707 (output_logical_op); New argument with the rtx code rather than
15708 extracting it from an operand. Handle QImode too.
15709 (compute_logical_op_length): Similary.
15710 (compute_a_shift_length): Drop unused argument.
15711 * config/h8300/h8300.md (logicals): New code iterator.
15712 * config/h8300/logical.md (<code><mode>3 expander): Combine
15713 the "and" expander with the "ior"/"xor" expander.
15714 (bclr<mode>msx): Combine the QI/HI mode patterns.
15715 (<logical><mode>3 insns): Use code iterator rather than match_operator.
15716 Handle QImode as well. Update call to output_logical_op and
15717 compute_logical_op_length to pass in rtx_code
15718 Fix split condition on all define_insn_and_split patterns.
15719 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
15720 the flags and setting ZN via existing define_subst.
15721 * config/h8300/shiftrotate.md: Drop unused argument from
15722 calls to compute_a_shift_length.
15723 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
15725 2021-06-01 Andrew Pinski <apinski@marvell.com>
15727 PR tree-optimization/25290
15728 * tree-ssa-phiopt.c (match_simplify_replacement):
15730 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
15731 (two_value_replacement): Change the comment about
15732 conditional_replacement.
15733 (conditional_replacement): Delete.
15735 2021-06-01 Andrew Pinski <apinski@marvell.com>
15737 PR tree-optimization/95481
15738 * tree-tailcall.c (find_tail_calls): Handle empty typed
15741 2021-06-01 Andrew Pinski <apinski@marvell.com>
15743 * gimplify.c (zero_sized_field_decl): Delete
15744 (zero_sized_type): Delete
15745 (gimplify_init_ctor_eval): Use is_empty_type instead
15746 of zero_sized_field_decl.
15747 (gimplify_modify_expr): Use is_empty_type instead of
15750 2021-06-01 Jason Merrill <jason@redhat.com>
15753 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
15755 2021-06-01 Jason Merrill <jason@redhat.com>
15758 * diagnostic.h (warning_enabled_at): Declare.
15759 * diagnostic.c (diagnostic_enabled): Factor out from...
15760 (diagnostic_report_diagnostic): ...here.
15761 (warning_enabled_at): New.
15763 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
15765 * gimple-ssa-evrp.c: Enable exporting of global ranges.
15767 2021-06-01 Martin Liska <mliska@suse.cz>
15770 * doc/invoke.texi: Mention that -fgcse-after-reload
15771 is enabled with -O3.
15773 2021-06-01 liuhongt <hongtao.liu@intel.com>
15775 PR tree-optimization/98365
15776 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
15777 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
15778 (convert_scalar_cond_reduction): Ditto.
15779 (predicate_scalar_phi): Ditto.
15781 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
15783 PR tree-optimization/100781
15784 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
15785 value calculation by default.
15786 (ranger_cache::enable_new_values): New.
15787 (ranger_cache::disable_new_values): New.
15788 (ranger_cache::push_poor_value): Check if new values are allowed.
15789 * gimple-range-cache.h (class ranger_cache): New member/methods.
15790 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
15791 statement, and disable/renable new value calculation.
15793 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
15795 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
15796 (ranger_cache::range_of_def): New.
15797 (ranger_cache::entry_range): New.
15798 (ranger_cache::exit_range): New.
15799 (ranger_cache::range_of_expr): Adjust.
15800 (ranger_cache::range_on_edge): Adjust.
15801 (ranger_cache::propagate_cache): Call exit_range directly.
15802 * gimple-range-cache.h (class ranger_cache): Adjust.
15804 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
15806 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
15807 gori_compute being a member rather than base class.
15808 dervied call to member call.
15809 (ranger_cache::dump): No longer dump gori_map.
15810 (ranger_cache::dump_bb): New.
15811 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
15812 being a member rather than base class.
15813 (ranger_cache::set_global_range): Ditto.
15814 (ranger_cache::ssa_range_in_bb): Ditto.
15815 (ranger_cache::range_of_expr): New.
15816 (ranger_cache::range_on_edge): New.
15817 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
15818 (ranger_cache::propagate_cache): Adjust debugging output.
15819 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
15821 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
15822 member, and inherit from range_query instead.
15823 (ranger_cache::dump_bb): New. split from dump.
15824 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
15825 (gori_compute::expr_range_at_stmt): Delete.
15826 (gori_compute::compute_name_range_op): Delete.
15827 (gori_compute::compute_operand_range_switch): Add fur_source.
15828 (gori_compute::compute_operand_range): Add fur_source param, inline
15829 old compute_name_range_op and optimize_logical_operands.
15830 (struct tf_range): Delete.
15831 (gori_compute::logical_combine): Adjust
15832 (gori_compute::optimize_logical_operands): Delete.
15833 (gori_compute::compute_logical_operands_in_chain): Delete.
15834 (gori_compute::compute_logical_operands): Adjust.
15835 (gori_compute::compute_operand1_range): Adjust to fur_source.
15836 (gori_compute::compute_operand2_range): Ditto.
15837 (gori_compute::compute_operand1_and_operand2_range): Ditto.
15838 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
15839 and adjust to fur_source.
15840 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
15841 range_query and fur_source.
15842 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
15843 from the ranger_cache..
15844 (gimple_ranger::fold_range_internal): Adjust to base class change of
15846 (gimple_ranger::dump_bb): Adjust dump.
15847 * gimple-range.h (gimple_ranger):export gori computes object.
15849 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
15851 PR tree-optimization/100774
15852 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
15853 Constant values are also not stale.
15854 (ranger_cache::set_global_range): Range invariant values should also
15855 have the correct timestamp.
15857 2021-05-31 Martin Liska <mliska@suse.cz>
15859 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
15860 Unpack FUNCTION_DECL_DECL_TYPE.
15861 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
15862 Stream FUNCTION_DECL_DECL_TYPE instead of
15863 DECL_IS_OPERATOR_NEW_P.
15864 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
15866 (DECL_IS_OPERATOR_NEW_P): Likewise.
15867 (DECL_IS_OPERATOR_DELETE_P): Likewise.
15868 (DECL_LAMBDA_FUNCTION_P): Likewise.
15870 2021-05-31 Richard Biener <rguenther@suse.de>
15873 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
15874 * internal-fn.def (SHUFFLEVECTOR): New.
15875 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
15876 * doc/extend.texi: Document __builtin_shufflevector.
15878 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
15881 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
15882 indexed form addresses.
15884 2021-05-29 Jeff Law <jlaw@tachyum.com>
15886 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
15887 parameter. Call callers fixed.
15889 (output_plussi): Add FALLTHRU markers.
15890 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
15892 2021-05-29 Jakub Jelinek <jakub@redhat.com>
15894 PR middle-end/99928
15895 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
15896 combined with parallel, make sure to add shared clause to
15897 parallel for explicit linear clause.
15899 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
15901 PR tree-optimization/100787
15902 * gimple-ssa-evrp.c: Disable exporting of global ranges.
15904 2021-05-28 Jason Merrill <jason@redhat.com>
15906 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
15907 operator--, operator*, operator==, and operator!=.
15908 (class tsi_range): New.
15910 2021-05-28 Richard Biener <rguenther@suse.de>
15912 PR tree-optimization/100778
15913 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
15914 trapping ops in different BBs.
15916 2021-05-28 Richard Biener <rguenther@suse.de>
15919 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
15920 copy fntype from original call.
15922 2021-05-28 Martin Liska <mliska@suse.cz>
15924 PR gcov-profile/100751
15925 * doc/gcov.texi: Revert partially a hunk that was wrong.
15927 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
15929 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
15931 (HAVE_sync_compare_and_swaphi): Likewise.
15932 (HAVE_sync_compare_and_swapsi): Likewise.
15934 2021-05-28 Jakub Jelinek <jakub@redhat.com>
15936 PR middle-end/99928
15937 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
15939 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
15941 * gimplify.c (gimplify_omp_affinity): New.
15942 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
15943 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
15944 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
15945 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
15946 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
15948 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
15949 Richard Biener <rguenther@suse.de>
15951 * match.pd <popcount & / + pattern matching>:
15952 When generating popcount directly fails, try doing it in two halves.
15954 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15956 * Makefile.in (generated_files): Add gimple-match.c and
15959 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
15961 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
15963 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
15965 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
15967 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
15969 PR tree-optimization/99398
15970 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
15971 where the fed operands are CTOR/CST and propagated through
15972 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
15973 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
15975 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
15978 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
15980 * config/i386/mmx.md (addv2sf3): Do not call
15981 ix86_fixup_binary_operands_no_copy.
15984 (<smaxmin:code>v2sf3): Ditto.
15985 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
15986 (<plusminus:insn><VI_32:mode>3): Remove expander.
15987 (<plusminus:insn><VI_32:mode>3): Rename from
15988 "*<plusminus:insn><VI_32:mode>3".
15989 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
15990 (mulv2hi3): Remove expander.
15991 (mulv2hi3): Rename from *mulv2hi3.
15992 (<s>mulv2hi3_highpart): Remove expander.
15993 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
15994 (<smaxmin:code><MMXMODE14:mode>3): Rename from
15995 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
15996 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
15997 (SMAXMIN_MMXMODEI): Remove mode iterator.
15998 (<smaxmin:code>v4hi3): New expander.
15999 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
16000 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
16001 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
16002 (SMAXMIN_VI_32): Remove mode iterator.
16003 (<umaxmin:code><MMXMODE24:mode>3): Rename from
16004 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
16005 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
16006 (UMAXMIN_MMXMODEI): Remove mode iterator.
16007 (<umaxmin:code>v8qi3): New expander.
16008 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
16009 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
16010 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
16011 (UMAXMIN_VI_32): Remove mode iterator.
16012 (<any_shift:insn>v2hi3): Remove expander.
16013 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
16014 (<any_logic:code><MMXMODEI:mode>3): Do not call
16015 ix86_fixup_binary_operands_no_copy.
16016 (<any_logic:code><VI_32:mode>3): Remove expander.
16017 (<any_logic:code><VI_32:mode>3): Rename from
16018 "*<any_logic:code><VI_32:mode>3".
16019 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
16020 * config/i386/sse.md (div<VF2:mode>3): Do not call
16021 ix86_fixup_binary_operands_no_copy.
16022 (div<VF1:mode>3): Ditto.
16023 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
16024 (smulhrsv4hi3): Ditto.
16025 (smulhrsv2hi3): Ditto.
16027 2021-05-27 Martin Sebor <msebor@redhat.com>
16029 * ggc.h (gt_ggc_mx): Add overloads for all integers.
16031 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
16033 (hash_map::operator==): New function.
16035 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
16038 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
16039 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
16040 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
16041 (*xop_maskcmp<VI_32:mode>3): Ditto.
16042 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
16043 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
16045 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
16048 * config/arm/arm.c (arm_configure_build_target): Remove parameter
16049 opts_set, directly check opts parameters for being non-null.
16050 (arm_option_restore): Update call to arm_configure_build_target.
16051 (arm_option_override): Likewise.
16052 (arm_can_inline_p): Likewise.
16053 (arm_valid_target_attribute_tree): Likewise.
16054 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
16055 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
16058 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
16060 * vr-values.c (simplify_conversion_using_ranges): Use
16061 get_range_query instead of get_global_range_query.
16063 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
16065 * gimple-range.cc (get_range_global): Move to value-query.cc.
16066 (gimple_range_global): Same.
16067 (get_global_range_query): Same.
16068 (global_range_query::range_of_expr): Same.
16069 * gimple-range.h (class global_range_query): Move to
16071 (gimple_range_global): Same.
16072 * tree-ssanames.c (get_range_info): Move to value-query.cc.
16073 (get_ptr_nonnull): Same.
16074 * tree-ssanames.h (get_range_info): Remove.
16075 (get_ptr_nonnull): Remove.
16076 * value-query.cc (get_ssa_name_range_info): Move from
16078 (get_ssa_name_ptr_info_nonnull): Same.
16079 (get_range_global): Move from gimple-range.cc.
16080 (gimple_range_global): Same.
16081 (get_global_range_query): Same.
16082 (global_range_query::range_of_expr): Same.
16083 * value-query.h (class global_range_query): Move from
16085 (gimple_range_global): Same.
16087 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
16090 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
16091 (uavgv2hi3_ceil): Ditto.
16093 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
16096 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
16098 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16100 * tree-ssanames.c (get_range_info): Merge both copies of
16101 get_range_info into one that works with irange.
16102 * tree-ssanames.h (get_range_info): Remove version that works on
16105 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16107 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
16108 (expand_builtin_strnlen): Same.
16109 (determine_block_size): Same.
16110 * fold-const.c (expr_not_equal_to): Same.
16111 * gimple-fold.c (size_must_be_zero_p): Same.
16112 * gimple-match-head.c: Include gimple-range.h.
16113 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
16114 * gimple-ssa-warn-restrict.c
16115 (builtin_memref::extend_offset_range): Same.
16116 * graphite-sese-to-poly.c (add_param_constraints): Same.
16117 * internal-fn.c (get_min_precision): Same.
16118 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
16119 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
16121 * tree-data-ref.c (split_constant_offset): Same.
16122 (dr_step_indicator): Same.
16123 * tree-dfa.c (get_ref_base_and_extent): Same.
16124 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
16125 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
16126 (determine_value_range): Same.
16127 (record_nonwrapping_iv): Same.
16128 (infer_loop_bounds_from_signedness): Same.
16129 (scev_var_range_cant_overflow): Same.
16130 * tree-ssa-phiopt.c (two_value_replacement): Same.
16131 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
16132 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
16133 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
16135 (dump_strlen_info): Same.
16136 (set_strlen_range): Same.
16137 (maybe_diag_stxncpy_trunc): Same.
16138 (get_len_or_size): Same.
16139 (handle_integral_assign): Same.
16140 * tree-ssa-structalias.c (find_what_p_points_to): Same.
16141 * tree-ssa-uninit.c (find_var_cmp_const): Same.
16142 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
16143 * tree-vect-patterns.c (vect_get_range_info): Same.
16144 (vect_recog_divmod_pattern): Same.
16145 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
16146 (register_edge_assert_for_2): Same.
16147 (determine_value_range_1): Same.
16148 * tree.c (get_range_pos_neg): Same.
16149 * vr-values.c (vr_values::get_lattice_entry): Same.
16150 (vr_values::update_value_range): Same.
16151 (simplify_conversion_using_ranges): Same.
16153 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16155 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
16156 get_range_query instead of query argument.
16157 (pass_walloca::execute): Enable and disable global ranger.
16159 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16161 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
16163 (rvrp_folder::~rvrp_folder): Call disable_ranger.
16164 (hybrid_folder::hybrid_folder): Call enable_ranger.
16165 (hybrid_folder::~hybrid_folder): Call disable_ranger.
16167 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16169 * function.c (allocate_struct_function): Set cfun->x_range_query.
16170 * function.h (struct function): Declare x_range_query.
16171 (get_range_query): New.
16172 (get_global_range_query): New.
16173 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
16174 Remove call to safe_grow_cleared.
16175 * gimple-range.cc (get_range_global): New.
16176 (gimple_range_global): Move from gimple-range.h.
16177 (get_global_range_query): New.
16178 (global_range_query::range_of_expr): New.
16179 (enable_ranger): New.
16180 (disable_ranger): New.
16181 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
16182 (class global_range_query): New.
16183 (enable_ranger): New.
16184 (disable_ranger): New.
16185 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
16186 dump_all_value_ranges to dump.
16187 * tree-vrp.c (vrp_prop::finalize): Same.
16188 * value-query.cc (range_query::dump): New.
16189 * value-query.h (range_query::dump): New.
16190 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
16191 (vr_values::dump): ...this.
16192 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
16193 dump and make virtual.
16195 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
16197 * config/i386/i386.c (ix86_autovectorize_vector_modes):
16198 Add V4QImode and V16QImode for TARGET_SSE2.
16199 * doc/sourcebuild.texi (Vector-specific attributes):
16200 Add vect64 and vect32 description.
16202 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
16204 * gimple-range-gori.cc (range_def_chain::register_dependency):
16205 Resize m_def_chain when needed.
16207 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
16209 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
16210 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
16211 * config/arm/vec-common.md: .. here. Add support for MVE.
16213 2021-05-26 Jakub Jelinek <jakub@redhat.com>
16215 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
16217 * config/microblaze/microblaze.c (microblaze_legitimize_address,
16219 microblaze_option_override, print_operand): Likewise.
16220 * config/microblaze/microblaze.md (call_internal_plt,
16221 call_value_intern_plt, call_value_intern): Likewise.
16222 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
16223 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
16224 call_value_multiple_internal1): Likewise.
16225 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
16227 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16229 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
16230 arc_ccfsm_advance, symbolic_reference_mentioned_p,
16231 arc_raw_symbolic_reference_mentioned_p): Remove register
16234 2021-05-26 Jakub Jelinek <jakub@redhat.com>
16237 * omp-low.c: Include omp-offload.h.
16238 (create_omp_child_function): If current_function_decl has
16239 "omp declare target" attribute and is_gimple_omp_offloaded,
16240 remove that attribute from the copy of attribute list and
16241 add "omp target entrypoint" attribute instead.
16242 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
16243 variables for offloading if in omp_maybe_offloaded_ctx.
16244 * omp-offload.c (pass_omp_target_link::execute): Nullify second
16245 argument to GOMP_target_data_ext in offloaded code.
16247 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
16249 * config/csky/csky.c (csky_can_change_mode_class): Delete.
16250 For csky, HF/SF mode use the low bits of VREGS.
16252 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
16254 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
16255 DECL which is a reference for OMP.
16257 2021-05-26 Martin Liska <mliska@suse.cz>
16259 PR gcov-profile/100751
16260 * doc/gcov.texi: Document that __gcov_dump can be called just
16261 once and that __gcov_reset resets run-time counters.
16263 2021-05-26 Martin Liska <mliska@suse.cz>
16265 * doc/install.texi: Port relevant part from install-old.texi
16266 and re-generate list of CPUs and systems.
16268 2021-05-26 Martin Liska <mliska@suse.cz>
16270 * Makefile.in: Remove it.
16271 * doc/include/fdl.texi: Update next/previous chapters.
16272 * doc/install.texi: Likewise.
16273 * doc/install-old.texi: Removed.
16275 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
16277 * config/csky/csky.c (ck810_legitimate_index_p): Support
16278 "base + index" with DF mode.
16279 * config/csky/constraints.md ("Y"): New constraint for memory operands
16280 without index register.
16281 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
16282 when mov between memory and general registers, and lower their priority.
16283 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
16285 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
16287 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
16289 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
16291 * config/csky/csky.md (untyped_call): Emit clobber for return
16292 registers to mark them used.
16294 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
16296 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
16298 2021-05-26 Andrew Pinski <apinski@marvell.com>
16300 * match.pd (x < 0 ? ~y : y): New patterns.
16302 2021-05-26 Andrew Pinski <apinski@marvell.com>
16304 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
16305 A?POW2:0 and A?0:POW2.
16307 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16309 * gimple-range-gori.cc (class logical_stmt_cache): Delete
16310 (logical_stmt_cache::logical_stmt_cache ): Delete.
16311 (logical_stmt_cache::~logical_stmt_cache): Delete.
16312 (logical_stmt_cache::cache_entry::dump): Delete.
16313 (logical_stmt_cache::get_range): Delete.
16314 (logical_stmt_cache::cached_name ): Delete.
16315 (logical_stmt_cache::same_cached_name): Delete.
16316 (logical_stmt_cache::cacheable_p): Delete.
16317 (logical_stmt_cache::slot_diagnostics ): Delete.
16318 (logical_stmt_cache::dump): Delete.
16319 (gori_compute_cache::gori_compute_cache): Delete.
16320 (gori_compute_cache::~gori_compute_cache): Delete.
16321 (gori_compute_cache::compute_operand_range): Delete.
16322 (gori_compute_cache::cache_stmt): Delete.
16323 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
16325 (class gori_compute_cache): Delete.
16327 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16329 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
16331 (fold_using_range::range_of_address): Adjust.
16332 (fold_using_range::range_of_phi): Adjust.
16333 * gimple-range.h (class fur_source): Adjust.
16334 (fur_source::fur_source): Adjust.
16336 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16338 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
16339 from expr_range_in_bb and adjust.
16340 (gori_compute::compute_name_range_op): Adjust.
16341 (gori_compute::optimize_logical_operands): Adjust.
16342 (gori_compute::compute_logical_operands_in_chain): Adjust.
16343 (gori_compute::compute_operand1_range): Adjust.
16344 (gori_compute::compute_operand2_range): Adjust.
16345 (ori_compute_cache::cache_stmt): Adjust.
16346 * gimple-range-gori.h (gori_compute): Rename prototype.
16348 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16350 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
16351 checked only after range_of_stmt, not range_on_entry.
16352 (gimple_ranger::range_on_entry): Check for non-null in any
16353 predecessor block, if it is not already non-null.
16354 (gimple_ranger::range_on_exit): DOnt check for non-null after
16355 range on entry call.
16356 (gimple_ranger::dump_bb): New. Split from dump.
16357 (gimple_ranger::dump): Adjust.
16358 * gimple-range.h (class gimple_ranger): Adjust.
16360 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16362 * gimple-range-cache.cc (struct range_timestamp): Delete.
16363 (class temporal_cache): Adjust.
16364 (temporal_cache::get_timestamp): Delete.
16365 (temporal_cache::set_dependency): Delete.
16366 (temporal_cache::temporal_value): Adjust.
16367 (temporal_cache::current_p): Take dependencies as params.
16368 (temporal_cache::set_timestamp): Adjust.
16369 (temporal_cache::set_always_current): Adjust.
16370 (ranger_cache::get_non_stale_global_range): Adjust.
16371 (ranger_cache::register_dependency): Delete.
16372 * gimple-range-cache.h (class range_cache): Adjust.
16374 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16376 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
16378 (range_def_chain::~range_def_chain): Dispose of obstack rather than
16379 each individual bitmap.
16380 (range_def_chain::set_import): New.
16381 (range_def_chain::get_imports): New.
16382 (range_def_chain::chain_import_p): New.
16383 (range_def_chain::register_dependency): Rename from build_def_chain
16385 (range_def_chain::def_chain_in_bitmap_p): New.
16386 (range_def_chain::add_def_chain_to_bitmap): New.
16387 (range_def_chain::has_def_chain): Just check first depenedence.
16388 (range_def_chain::get_def_chain): Process imports, use generic
16389 register_dependency routine.
16390 (range_def_chain::dump): New.
16391 (gori_map::gori_map): Allocate import list.
16392 (gori_map::~gori_map): Release imports.
16393 (gori_map::exports): Check for past allocated block size.
16394 (gori_map::imports): New.
16395 (gori_map::def_chain_in_export_p): Delete.
16396 (gori_map::is_import_p): New.
16397 (gori_map::maybe_add_gori): Handle imports.
16398 (gori_map::dump): Adjust output, add imports.
16399 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
16400 (gori_export_iterator::gori_export_iterator): New.
16401 (gori_export_iterator::next): New.
16402 (gori_export_iterator::get_name): New.
16403 * gimple-range-gori.h (range_def_chain): Add imports and direct
16404 dependecies via struct rdc.
16405 (range_def_chain::depend1): New.
16406 (range_def_chain::depend2): New.
16407 (class gori_map): Adjust.
16408 (FOR_EACH_GORI_IMPORT_NAME): New.
16409 (FOR_EACH_GORI_EXPORT_NAME): New.
16410 (class gori_export_iterator): New.
16412 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16414 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
16415 export cache filling to here.
16416 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
16418 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16420 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
16421 (gori_map): Move to gimple-range-gori.h.
16422 (gori_compute::gori_compute): Adjust.
16423 (gori_compute::~gori_compute): Delete.
16424 (gori_compute::compute_operand_range_switch): Adjust.
16425 (gori_compute::compute_operand_range): Adjust.
16426 (gori_compute::compute_logical_operands): Adjust.
16427 (gori_compute::has_edge_range_p ): Adjust.
16428 (gori_compute::set_range_invariant): Delete.
16429 (gori_compute::dump): Adjust.
16430 (gori_compute::outgoing_edge_range_p): Adjust.
16431 * gimple-range-gori.h (class range_def_chain): Relocate here.
16432 (class gori_map): Relocate here.
16433 (class gori_compute): Inherit from gori_map, and adjust.
16435 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
16437 * value-range.cc (range_tests_legacy): Use
16438 build_nonstandard_integer_type instead of int and short.
16440 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
16442 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
16443 when really creating an initialization statement for it.
16445 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
16447 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
16449 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
16451 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
16453 2021-05-25 Martin Liska <mliska@suse.cz>
16455 PR tree-optimization/92860
16457 * optc-save-gen.awk: Remove exceptions.
16459 2021-05-25 Martin Liska <mliska@suse.cz>
16461 * asan.h (sanitize_coverage_p): New function.
16462 * doc/extend.texi: Document it.
16463 * fold-const.c (fold_range_test): Use sanitize_flags_p
16464 instead of flag_sanitize_coverage.
16465 (fold_truth_andor): Likewise.
16466 * sancov.c: Likewise.
16467 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
16468 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
16469 -fsanitize-coverage when inlining.
16471 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
16473 * config/csky/csky-modes.def : Fix copyright.
16475 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
16477 * config/csky/csky-modes.def : Amend copyright.
16478 * config/csky/csky_insn_fpuv2.md : Likewise.
16479 * config/csky/csky_insn_fpuv3.md : Likewise.
16481 2021-05-25 Richard Biener <rguenther@suse.de>
16483 PR middle-end/100727
16484 * calls.c (initialize_argument_information): Explicitely test
16485 for WITH_SIZE_EXPR.
16486 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
16488 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
16490 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
16491 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
16492 the signle definition. The signle definition may not work well
16493 at simplify_subreg_regno().
16494 (HARD_FRAME_POINTER_REGNUM): New.
16495 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
16496 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
16497 csky_initial_elimination_offset, csky_expand_prologue,
16498 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
16500 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
16502 * config/csky/csky.c (csky_option_override):
16503 Init csky_arch_isa_features[] in advance, so TARGET_DSP
16504 and TARGET_DIV can be set well.
16506 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
16508 * config/csky/constraints.md ("l", "h"): Delete.
16509 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
16510 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
16511 * config/csky/csky.c (regno_reg_classm,
16512 csky_secondary_reload, csky_register_move_cost):
16513 Use HILO_REGS instead of LO_REGS and HI_REGS.
16515 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
16517 * config/csky/constraints.md ("W"): New constriant for mem operand
16518 with base reg, index register.
16519 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
16520 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
16522 ("Dv"): New constraint for const double value that can be used at
16524 * config/csky/csky-modes.def (HFmode): New mode.
16525 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
16526 to "csky_valid_mem_constraint_operand" and support new constraint
16528 (csky_get_movedouble_length): New.
16529 (fpuv3_output_move): New.
16530 (fpuv3_const_double): New.
16531 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
16532 (decompose_csky_address): Refine.
16533 (csky_print_operand): New "CONST_DOUBLE" operand.
16534 (csky_output_move): Support fpv3 instructions.
16535 (csky_get_movedouble_length): New.
16536 (fpuv3_output_move): New.
16537 (fpuv3_const_double): New.
16538 (csky_emit_compare): Cover float comparsion.
16539 (csky_emit_compare_float): Refine.
16540 (csky_vaild_fpuv2_mem_operand): Rename to
16541 "csky_valid_mem_constraint_operand" and support new constraint "W".
16542 (ck860_rtx_costs): New.
16543 (csky_rtx_costs): Add the cost calculation of CK860.
16544 (regno_reg_class): New vregs for fpuv3.
16545 (csky_dbx_regno): Likewise.
16546 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
16547 (csky_conditional_register_usage): Suporrot fpuv3.
16548 (csky_dwarf_register_span): Suporrot fpuv3.
16549 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
16550 (ck810_legitimate_index_p): Support fp16.
16551 * config/csky/csky.h (TARGET_TLS): ADD CK860.
16552 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
16553 (TARGET_SINGLE_FPU): Support fpuv3.
16554 (TARGET_SUPPORT_FPV3): New.
16555 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
16556 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
16557 REG_CLASS_CONTENTS): Support fpuv3.
16558 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
16559 (csky_movsf_fpv2): Likewise.
16560 (ck801_movsf): Likewise.
16561 (csky_movsf): Likewise.
16563 (csky_movdf_fpv2): Likewise.
16564 (ck801_movdf): Likewise.
16565 (csky_movdf): Likewise.
16566 (movsicc): Refine. Use "comparison_operatior" instead of
16567 "ordered_comparison_operatior".
16568 (addsicc): Likewise.
16569 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
16570 (call_value_internal_vh): New.
16571 * config/csky/csky_cores.def (CK860): New arch and cpu.
16576 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
16577 into emit-patterns and match-patterns, remain the emit-patterns here,
16578 and move the match-patterns to csky_insn_fpuv2.md or
16579 csky_insn_fpuv3.md.
16580 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
16581 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
16583 * config/csky/csky_isa.def (fcr): New.
16588 (CK860): New definition for ck860.
16589 * config/csky/csky_tables.opt (ck860): New processors ck860,
16590 ck860f. And new arch ck860.
16595 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
16596 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
16597 * config/csky/t-csky-elf: Support 860.
16598 * config/csky/t-csky-linux: Likewise.
16599 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
16601 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
16603 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
16604 add generation of logical-add and add-logical fusion pairs.
16605 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
16607 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
16608 logical-add and add-logical fusion by default.
16609 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
16610 -mpower10-fusion-add-logical options.
16611 * config/rs6000/fusion.md: Regenerate file.
16613 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
16615 * value-range.cc (irange::legacy_equal_p): Check type when
16616 comparing VR_VARYING types.
16617 (range_tests_legacy): Test comparing VARYING ranges of different
16620 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
16622 * config/aarch64/aarch64.c (neoversen1_tunings):
16623 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
16625 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
16627 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
16628 extern weak symbols. Limit symbol offsets for non-GOT symbols with
16631 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
16633 * config/arm/neon.md (vec_load_lanesxi<mode>)
16634 (vec_store_lanexoi<mode>): Move ...
16635 * config/arm/vec-common.md: here.
16637 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
16639 * config/arm/neon.md (vec_load_lanesoi<mode>)
16640 (vec_store_lanesoi<mode>): Move ...
16641 * config/arm/vec-common.md: here.
16643 2021-05-24 liuhongt <hongtao.liu@intel.com>
16646 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
16647 stmt with GIMPLE_NOP when lhs doesn't exist.
16649 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
16652 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
16653 New instruction pattern.
16654 (*push<VI_32:mode>2): Ditto.
16655 (push splitter for SSE registers): New splitter.
16657 2021-05-23 Andrew Pinski <apinski@marvell.com>
16659 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
16661 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
16663 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
16664 * config/rs6000/fusion.md: Regenerate file.
16666 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
16668 * config/rs6000/genfusion.pl (gen_addadd): New function.
16669 * config/rs6000/fusion.md: Regenerate file.
16670 * config/rs6000/rs6000-cpus.def: Add
16671 OPTION_MASK_P10_FUSION_2ADD to masks.
16672 * config/rs6000/rs6000.c (rs6000_option_override_internal):
16673 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
16674 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
16676 2021-05-21 Jakub Jelinek <jakub@redhat.com>
16678 PR middle-end/99928
16679 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
16680 * gimplify.c (enum gimplify_omp_var_data): Fix up
16681 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
16682 (omp_lastprivate_for_combined_outer_constructs): If combined target
16683 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
16684 GOVD_MAP | GOVD_SEEN.
16685 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
16686 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
16687 (gimplify_adjust_omp_clauses): For firstprivate clauses with
16688 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
16689 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
16690 let it be replaced by implicit map clause.
16692 2021-05-21 Jakub Jelinek <jakub@redhat.com>
16694 PR middle-end/99928
16695 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
16697 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
16698 (gimplify_omp_for): Likewise.
16700 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16702 PR middle-end/90115
16703 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
16704 'external' in blocks.
16706 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16708 PR middle-end/90115
16709 * flag-types.h (enum openacc_privatization): New.
16710 * params.opt (-param=openacc-privatization): New.
16711 * doc/invoke.texi (openacc-privatization): Document it.
16712 * omp-general.h (get_openacc_privatization_dump_flags): New
16714 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
16715 * omp-offload.c (execute_oacc_device_lower)
16716 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
16717 * target.def (goacc.adjust_private_decl): Add 'location_t'
16719 * doc/tm.texi: Regenerate.
16720 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
16721 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
16722 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
16723 Likewise. Preserve it for...
16724 (nvptx_goacc_expand_var_decl): ... use here.
16726 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16728 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
16731 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16733 PR middle-end/90115
16734 * omp-low.c (oacc_privatization_candidate_p): New function.
16735 (oacc_privatization_scan_clause_chain)
16736 (oacc_privatization_scan_decl_chain): Use it. Also
16737 'gcc_checking_assert' that we're not seeing duplicates.
16739 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16741 PR middle-end/90115
16742 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
16745 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16747 PR middle-end/90115
16748 * omp-offload.c (execute_oacc_device_lower): Explain.
16750 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16752 PR middle-end/90115
16753 * omp-offload.c (execute_oacc_device_lower)
16754 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
16756 * internal-fn.c (expand_UNIQUE): Don't expect
16757 'IFN_UNIQUE_OACC_PRIVATE'.
16759 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16761 PR middle-end/90115
16762 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
16764 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16766 PR middle-end/90115
16767 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
16768 (nvptx_goacc_expand_var_decl): Tighten.
16770 2021-05-21 Julian Brown <julian@codesourcery.com>
16771 Chung-Lin Tang <cltang@codesourcery.com>
16772 Thomas Schwinge <thomas@codesourcery.com>
16774 PR middle-end/90115
16775 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
16776 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
16777 * doc/tm.texi: Regenerate.
16778 * expr.c (expand_expr_real_1): Expand decls using the
16779 expand_var_decl OpenACC hook if defined.
16780 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
16781 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
16782 * omp-low.c (omp_context): Add oacc_privatization_candidates
16784 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
16786 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
16787 private marker's gimple call arguments, and pass it to
16788 lower_oacc_reductions.
16789 (oacc_privatization_scan_clause_chain)
16790 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
16792 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
16793 * omp-offload.c (convert.h): Include.
16794 (oacc_loop_xform_head_tail): Treat private-variable markers like
16795 fork/join when transforming head/tail sequences.
16796 (struct var_decl_rewrite_info): Add struct.
16797 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
16798 (execute_oacc_device_lower): Support rewriting gang-private
16799 variables using target hook, and fix up addr_expr and var_decl
16801 * target.def (adjust_private_decl, expand_var_decl): New hooks.
16802 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
16804 (gcn_goacc_adjust_private_decl): ...this.
16805 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
16807 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
16808 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
16809 definition using gcn_goacc_adjust_gangprivate_decl...
16810 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
16811 gcn_goacc_adjust_private_decl.
16812 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
16813 (gang_private_shared_size): New global variable.
16814 (gang_private_shared_align): Likewise.
16815 (gang_private_shared_sym): Likewise.
16816 (gang_private_shared_hmap): Likewise.
16817 (nvptx_option_override): Initialize these.
16818 (nvptx_file_end): Output gang_private_shared_sym.
16819 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
16821 (nvptx_set_current_function): Clear gang_private_shared_hmap.
16822 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
16823 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
16825 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
16827 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
16829 2021-05-21 Richard Biener <rguenther@suse.de>
16830 H.J. Lu <hjl.tools@gmail.com>
16832 PR middle-end/90773
16833 * expr.c (expand_constructor): Elide expand_constructor if
16834 move by pieces is preferred.
16836 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16838 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
16839 Take a flag and mode value as arguments.
16840 (aarch64_modifies_global_state_p): Likewise.
16841 (aarch64_reads_global_state_p): Likewise.
16842 (aarch64_could_trap_p): Likewise.
16843 (aarch64_get_attributes): Likewise.
16844 (aarch64_init_simd_builtins): Adjust callsite of above.
16845 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
16846 function attributes to apply to builtins.
16847 (aarch64_init_crc32_builtins): Likewise.
16848 (aarch64_init_builtin_rsqrt): Likewise.
16850 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
16852 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
16853 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
16854 (gen_2logical): Use new fusion types.
16855 * config/rs6000/fusion.md: Regenerate.
16857 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
16860 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
16861 Handle V4QI and V2HI modes.
16862 (ix86_expand_sse_movcc): Ditto.
16863 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
16864 New instruction pattern.
16865 (*eq<VI_32:mode>3): Ditto.
16866 (*gt<VI_32:mode>3): Ditto.
16867 (*xop_pcmov_<VI_32:mode>): Ditto.
16868 (mmx_pblendvb32): Ditto.
16869 (mmx_pblendvb64): Rename from mmx_pblendvb.
16870 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
16871 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
16872 (vcond<VI_32:mode><VI_32:mode>): Ditto.
16873 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
16874 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
16876 2021-05-21 Jakub Jelinek <jakub@redhat.com>
16878 PR tree-optimization/94589
16879 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
16880 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
16881 not the same as cmp3) treat <= the same as < and >= the same as >.
16882 Don't require that cond2_phi_edge is true edge, instead take
16883 false/true edges into account based on cmp1/cmp2 comparison kinds.
16885 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
16888 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
16889 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
16890 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
16891 using SMAXMIN_MMXMODEI mode iterator.
16892 (*<smaxmin:code>v4qi3): New insn pattern.
16893 (*<smaxmin:code>v2hi3): Ditto.
16894 (SMAXMIN_VI_32): New mode iterator.
16895 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
16896 (UMAXMIN_MMXMODEI): New mode iterator.
16897 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
16898 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
16899 using UMAXMIN_MMXMODEI mode iterator.
16900 (*<umaxmin:code>v4qi3): New insn pattern.
16901 (*<umaxmin:code>v2hi3): Ditto.
16902 (UMAXMIN_VI_32): New mode iterator.
16903 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
16904 (abs<VI_32:mode>2): New insn pattern.
16905 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
16906 * config/i386/sse.md: ... here.
16908 2021-05-20 Clement Chigot <clement.chigot@atos.net>
16909 David Edelsohn <dje.gcc@gmail.com>
16911 * collect2.c (scan_prog_file): Issue non-fatal warning for
16914 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
16916 * doc/invoke.texi (-Wno-c++11-extensions)
16917 (-Wno-c++14-extensions, -Wno-c++17-extensions)
16918 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
16921 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
16923 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
16924 * config/darwin.c (darwin_override_options): Likewise.
16925 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
16926 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
16927 (DWARF2_FRAME_REG_OUT): Likewise.
16928 * config/mips/mips.c (mips_output_filename): Likewise.
16929 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
16931 (rs6000_dbx_register_number): Likewise.
16932 * dbxout.c: Include flags.h.
16933 * dwarf2cfi.c (cfi_label_required_p): Likewise.
16934 (dwarf2out_do_frame): Likewise.
16935 * except.c: Include flags.h.
16936 * final.c (dwarf2_debug_info_emitted_p): Likewise.
16937 (final_scan_insn_1): Likewise.
16938 * flags.h (dwarf_debuginfo_p): New function declaration.
16939 * opts.c (dwarf_debuginfo_p): New function definition.
16940 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
16941 * toplev.c (process_options): Likewise.
16943 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
16945 * common.opt: Change type to support bitmasks.
16946 * flag-types.h (enum debug_info_type): Rename enumerator constants.
16947 (NO_DEBUG): New bitmask.
16948 (DBX_DEBUG): Likewise.
16949 (DWARF2_DEBUG): Likewise.
16950 (XCOFF_DEBUG): Likewise.
16951 (VMS_DEBUG): Likewise.
16952 (VMS_AND_DWARF2_DEBUG): Likewise.
16953 * flags.h (debug_set_to_format): New function declaration.
16954 (debug_set_count): Likewise.
16955 (debug_set_names): Likewise.
16956 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
16957 (debug_set_to_format): New function definition.
16958 (debug_set_count): Likewise.
16959 (debug_set_names): Likewise.
16960 (set_debug_level): Update access to debug_type_names.
16961 * toplev.c: Likewise.
16963 2021-05-20 Martin Sebor <msebor@redhat.com>
16965 PR middle-end/100684
16966 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
16968 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
16971 * config/i386/i386.md (isa): Remove x64_bmi.
16972 (enabled): Remove x64_bmi.
16973 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
16974 Remove general register alternative.
16975 (*andnot<VI_32:mode>3): Ditto.
16976 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
16977 (*<any_logic:code><VI_32:mode>3): Ditto.
16979 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
16981 * config/arm/arm.c: Include head files tree-vectorizer.h and
16984 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
16987 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
16988 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
16989 (<s>mulv4hi3_highpart): New expander.
16990 (*<s>mulv2hi3_highpart): New insn pattern.
16991 (<s>mulv2hi3_higpart): New expander.
16992 (*<any_shift:insn>v2hi3): New insn pattern.
16993 (<any_shift:insn>v2hi3): New expander.
16994 * config/i386/sse.md (smulhrsv2hi3): New expander.
16995 (*smulhrsv2hi3): New insn pattern.
16997 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
16999 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
17001 * params.opt (vect-inner-loop-cost-factor): New.
17002 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
17003 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
17004 tree-vectorizer.h and its required ones.
17005 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
17006 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
17007 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
17008 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
17009 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
17010 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
17012 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
17013 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
17014 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
17016 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
17017 Torbjörn Svensson <torbjorn.svensson@st.com>
17020 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
17022 2021-05-20 Jakub Jelinek <jakub@redhat.com>
17024 PR middle-end/99928
17025 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
17026 explicit linear clause when combined with target, make it map(tofrom:)
17027 instead of no clause or firstprivate.
17029 2021-05-20 Jakub Jelinek <jakub@redhat.com>
17031 PR tree-optimization/94589
17032 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
17033 of integral conversions.
17035 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
17037 * gimple-range.cc (fur_source::get_operand): New.
17038 (gimple_range_fold): Delete.
17039 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
17040 (fold_using_range::range_of_range_op): Move from gimple_ranger.
17041 (fold_using_range::range_of_address): Ditto.
17042 (fold_using_range::range_of_phi): Ditto.
17043 (fold_using_range::range_of_call): Ditto.
17044 (fold_using_range::range_of_builtin_ubsan_call): Move from
17045 range_of_builtin_ubsan_call.
17046 (fold_using_range::range_of_builtin_call): Move from
17047 range_of_builtin_call.
17048 (gimple_ranger::range_of_builtin_call): Delete.
17049 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
17050 (gimple_ranger::fold_range_internal): New.
17051 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
17052 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
17053 gimple_ranger. Improve ranges of SSA_NAMES when possible.
17054 * gimple-range.h (gimple_ranger): Remove various range_of routines.
17055 (class fur_source): New.
17056 (class fold_using_range): New.
17057 (fur_source::fur_source): New.
17059 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
17060 instead of range_of_builtin_call.
17062 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
17064 * doc/cpp.texi (Common Predefined Macros): Update documentation
17065 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
17067 2021-05-19 Alex Coplan <alex.coplan@arm.com>
17070 * config/arm/arm.md (nonsecure_call_internal): Always ensure
17071 callee's address is in a register.
17073 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
17075 * common/config/riscv/riscv-common.c
17076 (riscv_subset_list::parsing_subset_version): Properly parse the letter
17078 (riscv_subset_list::parse_std_ext,
17079 riscv_subset_list::parse_multiletter_ext): To handle errors generated
17080 in riscv_subset_list::parsing_subset_version.
17082 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17084 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
17085 type attribute in patterns generating XTN(2).
17087 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17089 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
17090 Remove as duplicate of...
17091 (aarch64_xtn<mode>): This.
17092 (aarch64_xtn2<mode>_le): Move position in file.
17093 (aarch64_xtn2<mode>_be): Move position in file.
17094 (aarch64_xtn2<mode>): Move position in file.
17095 (vec_pack_trunc_<mode>): Define as an expander.
17097 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17099 * config/aarch64/aarch64-simd-builtins.def: Split builtin
17100 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
17101 separate scalar and vector generators.
17102 * config/aarch64/aarch64-simd.md
17103 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
17105 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
17106 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
17107 * config/aarch64/iterators.md: Define SD_HSDI iterator.
17109 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
17111 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
17113 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
17115 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17117 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
17118 Implement as an expand emitting a big/little endian
17119 instruction pattern.
17120 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
17121 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
17123 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17125 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
17126 Implement as an expand emitting a big/little endian
17127 instruction pattern.
17128 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
17129 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
17130 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
17131 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
17133 2021-05-19 Richard Biener <rguenther@suse.de>
17135 PR middle-end/100672
17136 * fold-const.c (fold_negate_expr_1): Use element_precision.
17137 (negate_expr_p): Likewise.
17139 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
17141 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
17142 (pred_load): New int attribute.
17143 * config/aarch64/aarch64-sve.md
17144 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
17145 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
17146 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
17147 code_for_aarch64_load.
17149 2021-05-19 Richard Biener <rguenther@suse.de>
17151 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
17152 sure TARGET_MEM_REF bases are expanded as memory.
17153 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
17154 Do not mark TARGET_MEM_REF bases addressable.
17155 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
17156 TARGET_MEM_REF bases as never rewritable.
17157 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
17158 walk TARGET_MEM_REF bases as address-takens.
17159 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
17161 2021-05-19 Richard Biener <rguenther@suse.de>
17163 * builtins.c (get_object_alignment_1): Strip outer
17165 * tree-dfa.c (get_ref_base_and_extent): Handle outer
17166 WITH_SIZE_EXPR for size processing and process the
17168 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
17169 outer WITH_SIZE_EXPR.
17170 (ao_ref_base_alias_ptr_type): Likewise.
17171 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
17172 and handle that accordingly, stripping it for the
17173 core alias workers.
17174 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
17175 looking through it instead of returning NULL.
17177 2021-05-19 Jakub Jelinek <jakub@redhat.com>
17179 PR middle-end/100576
17180 * builtins.c (check_read_access): Convert bound to size_type_node if
17183 2021-05-19 Richard Biener <rguenther@suse.de>
17185 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
17186 (verify_types_in_gimple_reference): ... here. Sanitize.
17187 (verify_gimple_call): Verify references in LHS and arguments.
17188 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
17190 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
17192 * config/i386/i386.h (VALID_INT_MODE_P):
17193 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
17194 * config/i386/i386.md (isa): Add x64_bmi.
17195 (enabled): Handle x64_bmi.
17196 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
17197 Add alternative using 64bit general registers.
17198 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
17200 2021-05-19 Jakub Jelinek <jakub@redhat.com>
17202 PR middle-end/99928
17203 * tree.h (OMP_MASTER_COMBINED): Define.
17204 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
17205 handling for outer combined/composite constructs to a loop.
17206 Handle lastprivate on combined target.
17207 (gimplify_expr): Formatting fix.
17209 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
17211 * passes.def: Add sink_code pass before store_merging.
17212 * tree-ssa-sink.c (pass_sink_code:clone): New.
17214 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
17216 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
17217 rs6000_special_adjust_field_align_p.
17218 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17219 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
17220 Remove ABI warning.
17221 (rs6000_function_arg): Likewise.
17222 * config/rs6000/rs6000-protos.h
17223 (rs6000_special_adjust_field_align_p): Remove prototype.
17224 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
17226 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
17227 rs6000_special_adjust_field_align_p.
17229 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
17232 * config/i386/i386.h (VALID_SSE2_REG_MODE):
17233 Add V4QI and V2HI modes.
17234 (VALID_INT_MODE_P): Ditto.
17235 * config/i386/mmx.md (VI_32): New mode iterator.
17236 (mmxvecsize): Handle V4QI and V2HI.
17238 (mov<VI_32:mode>): New expander.
17239 (*mov<mode>_internal): New insn pattern.
17240 (movmisalign<VI_32:mode>): New expander.
17241 (neg<VI_32:mode>): New expander.
17242 (<plusminus:insn><VI_32:mode>3): New expander.
17243 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
17244 (mulv2hi3): New expander.
17245 (*mulv2hi3): New insn pattern.
17246 (one_cmpl<VI_32:mode>2): New expander.
17247 (*andnot<VI_32:mode>3): New insn pattern.
17248 (<any_logic:code><VI_32:mode>3): New expander.
17249 (*<any_logic:code><VI_32:mode>3): New insn pattern.
17251 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
17253 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
17254 Fix a mode mismatch with operand 1.
17256 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
17259 * config/i386/i386-expand.c (split_double_mode): Return
17260 temporary register when simplify_gen_subreg fails with
17261 the high half od the paradoxical subreg.
17263 2021-05-18 Richard Biener <rguenther@suse.de>
17265 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
17266 and honor it when expanding.
17267 (expand_used_vars_for_block): Pass through forced_stack_var.
17268 (expand_used_vars): Likewise.
17269 (discover_nonconstant_array_refs_r): Set bits in
17270 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
17271 (avoid_type_punning_on_regs): Likewise.
17272 (discover_nonconstant_array_refs): Likewise.
17273 (pass_expand::execute): Create and pass down forced_stack_var
17274 bitmap. For parameters and returns temporarily set
17275 TREE_ADDRESSABLE when expand_function_start.
17277 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
17279 * doc/sourcebuild.texi: Document 'dg-note'.
17281 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
17284 * configure: Regenerate.
17285 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
17287 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
17289 * gimple.h (is_gimple_omp_oacc): Tighten.
17290 * omp-low.c (check_omp_nesting_restrictions): Adjust.
17292 2021-05-18 Richard Biener <rguenther@suse.de>
17294 * tree-ssa-operands.c (mark_address_taken): Simplify.
17296 2021-05-18 Martin Liska <mliska@suse.cz>
17298 * config/gcn/mkoffload.c (STR): Redefine.
17299 * config/i386/intelmic-mkoffload.c (STR): Likewise.
17300 * config/nvptx/mkoffload.c (STR): Likewise.
17302 2021-05-18 Martin Liska <mliska@suse.cz>
17304 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
17305 Use startswith function instead of strncmp.
17306 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
17307 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
17308 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
17309 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
17310 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
17311 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
17312 * config/arm/arm.c (arm_file_start): Likewise.
17313 (arm_valid_target_attribute_rec): Likewise.
17314 (thumb1_md_asm_adjust): Likewise.
17315 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
17316 * config/avr/avr.c (STR_PREFIX_P): Likewise.
17317 (avr_set_current_function): Likewise.
17318 (avr_handle_addr_attribute): Likewise.
17319 (avr_asm_output_aligned_decl_common): Likewise.
17320 (avr_asm_named_section): Likewise.
17321 (avr_section_type_flags): Likewise.
17322 (avr_asm_select_section): Likewise.
17323 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
17324 (c6x_section_type_flags): Likewise.
17325 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
17326 (darwin_objc_declare_unresolved_class_reference): Likewise.
17327 (darwin_objc_declare_class_definition): Likewise.
17328 * config/darwin.c (indirect_data): Likewise.
17329 (darwin_encode_section_info): Likewise.
17330 (darwin_objc2_section): Likewise.
17331 (darwin_objc1_section): Likewise.
17332 (machopic_select_section): Likewise.
17333 (darwin_globalize_label): Likewise.
17334 (darwin_label_is_anonymous_local_objc_name): Likewise.
17335 (darwin_asm_named_section): Likewise.
17336 (darwin_asm_output_dwarf_offset): Likewise.
17337 * config/frv/frv.c (frv_string_begins_with): Likewise.
17338 (frv_in_small_data_p): Likewise.
17339 * config/gcn/mkoffload.c (STR): Likewise.
17341 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
17342 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
17343 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
17344 (ix86_md_asm_adjust): Likewise.
17345 * config/i386/intelmic-mkoffload.c (STR): Likewise.
17346 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
17347 (i386_pe_file_end): Likewise.
17348 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
17349 (ia64_section_type_flags): Likewise.
17350 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
17351 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
17352 (mips16_stub_function_p): Likewise.
17353 (mips_function_rodata_section): Likewise.
17354 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
17355 (msp430_function_section): Likewise.
17356 (msp430_section_type_flags): Likewise.
17357 (msp430_expand_helper): Likewise.
17358 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
17359 (nios2_valid_target_attribute_rec): Likewise.
17360 * config/nvptx/mkoffload.c (process): Likewise.
17362 * config/pa/som.h: Likewise.
17363 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
17364 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
17365 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
17366 (rs6000_inner_target_options): Likewise.
17367 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
17368 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
17369 * config/vax/vax.c (vax_output_int_move): Likewise.
17370 * config/vms/vms-ld.c (startswith): Likewise.
17371 (process_args): Likewise.
17373 * config/vms/vms.c: Likewise.
17375 2021-05-18 Jakub Jelinek <jakub@redhat.com>
17377 PR rtl-optimization/100590
17378 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
17379 they are NONJUMP_INSN_P.
17381 2021-05-18 Jakub Jelinek <jakub@redhat.com>
17384 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
17385 DECL_ASSEMBLER_NAME on the fn_decl.
17387 2021-05-18 Jakub Jelinek <jakub@redhat.com>
17389 PR tree-optimization/94589
17390 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
17391 phi result used in (res & ~1) == 0 comparison as res >= 0 as
17392 res == 2 would be UB with -ffinite-math-only.
17394 2021-05-18 Martin Liska <mliska@suse.cz>
17396 * Makefile.in: genversion.o should depend on DATESTAMP.
17398 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
17400 * config/arc/simdext.md (negv2si2): Remove round bracket.
17402 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
17404 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
17405 _Bool as macro expanding to _Bool.
17407 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
17410 * tree.c (build_reference_type_for_mode)
17411 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
17413 (build_reference_type, build_pointer_type): Invoke
17414 build_*_type_for_mode with VOIDmode.
17416 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
17418 PR tree-optimization/100512
17419 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
17420 and non-zero pointer ranges as invariant.
17421 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
17422 processing from here.
17424 2021-05-17 Tom de Vries <tdevries@suse.de>
17427 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
17428 * config/nvptx/nvptx.c (nvptx_output_barrier)
17429 (nvptx_output_atomic_insn): New function.
17430 (nvptx_print_operand): Add support for 'B'.
17431 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
17434 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
17436 PR tree-optimization/100349
17437 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
17440 2021-05-17 Tamar Christina <tamar.christina@arm.com>
17442 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
17443 (host_detect_local_cpu): Use it.
17445 2021-05-17 Martin Liska <mliska@suse.cz>
17447 * doc/invoke.texi: Add 2 missing dots.
17449 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
17451 PR bootstrap/100552
17452 * configure.ac: Replace pattern substitution with call to sed.
17453 * configure: Regenerate.
17455 2021-05-17 Richard Biener <rguenther@suse.de>
17457 PR middle-end/100582
17458 * tree.c (array_at_struct_end_p): Get to the base of the
17459 reference before looking for the underlying decl.
17461 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
17463 * genoutput.c (validate_insn_alternatives) Make "wrong number of
17464 alternatives" message more specific, and remove assumption on where
17467 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
17469 * config/arm/iterators.md (V16): New iterator.
17470 (VH_cvtto): New iterator.
17471 (v_cmp_result): Added V4HF and V8HF support.
17472 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
17473 (vcond<mode><mode>): Likewise.
17474 (vcond_mask_<mode><v_cmp_result>): Likewise.
17475 (vcond<VH_cvtto><mode>): New expander.
17477 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
17479 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
17481 * config/arm/arm.c (arm_expand_vector_compare): Add support for
17483 (arm_expand_vcond): Likewise.
17484 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
17485 VCMPEQQ_N_S, VCMPNEQ_N_S.
17486 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
17487 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
17488 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
17489 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
17490 (@mve_vpselq_<supf><mode>): Likewise.
17491 (@mve_vpselq_f<mode>"): Likewise.
17492 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
17493 and move to vec-common.md.
17494 (vec_cmpu<mode><mode>): Likewise.
17495 (vcond<mode><mode>): Likewise.
17496 (vcond<V_cvtto><mode>): Likewise.
17497 (vcondu<mode><v_cmp_result>): Likewise.
17498 (vcond_mask_<mode><v_cmp_result>): Likewise.
17499 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
17500 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
17501 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
17502 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
17503 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
17504 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
17506 (vec_cmpu<mode><mode>): Likewise.
17507 (vcond<mode><mode>): Likewise.
17508 (vcond<V_cvtto><mode>): Likewise.
17509 (vcondu<mode><v_cmp_result>): Likewise.
17510 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
17513 2021-05-17 liuhongt <hongtao.liu@intel.com>
17516 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
17517 gsi_insert_seq_before instead.
17519 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
17521 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
17522 (arm_sat_ok): ...this.
17524 2021-05-17 Martin Liska <mliska@suse.cz>
17526 * lto-wrapper.c (merge_flto_options): Factor out a new function.
17527 (merge_and_complain): Use it.
17528 (run_gcc): Merge also linker command line -flto=foo argument
17531 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
17533 * config/arm/arm.h (CPP_SPEC): Remove error message about
17534 -mlittle-endian/-mbig-endian conflict.
17536 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
17538 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
17539 __ROP_PROTECT__ if -mrop-protect is selected.
17541 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
17543 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
17544 rop_hash_save_offset and rop_hash_size.
17545 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
17546 rop_hash_size and rop_hash_save_offset.
17547 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
17548 (rs6000_emit_prologue): Emit hashst[p] in prologue.
17549 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
17550 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
17552 (hashst): New define_insn.
17553 (hashchk): Likewise.
17555 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
17557 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17558 Disable shrink wrap when inserting ROP-protect instructions.
17559 * config/rs6000/rs6000.opt (mrop-protect): New option.
17560 (mprivileged): Likewise.
17561 * doc/invoke.texi: Document mrop-protect and mprivileged.
17563 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
17565 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
17568 2021-05-15 Martin Jambor <mjambor@suse.cz>
17571 2021-05-13 Martin Jambor <mjambor@suse.cz>
17573 PR tree-optimization/100453
17574 * tree-sra.c (sra_modify_assign): All const base accesses do not
17575 need refreshing, not just those from decl_pool.
17576 (sra_modify_assign): Do not refresh into a const base decl.
17578 2021-05-15 Jakub Jelinek <jakub@redhat.com>
17580 PR rtl-optimization/100342
17581 * regcprop.c (copy_value): When copying a source reg in a wider
17582 mode than it has recorded for the value, adjust recorded destination
17583 mode too or punt if !REG_CAN_CHANGE_MODE_P.
17585 2021-05-14 Jason Merrill <jason@redhat.com>
17587 * intl.h: Add comments.
17589 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17591 * config/aarch64/aarch64-simd.md
17592 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
17593 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
17594 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
17595 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
17596 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
17597 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
17598 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
17599 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
17600 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
17602 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17605 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
17606 boolean logic equivalent.
17607 (vtst_s16): Likewise.
17608 (vtst_s32): Likewise.
17609 (vtst_u8): Likewise.
17610 (vtst_u16): Likewise.
17611 (vtst_u32): Likewise.
17612 (vtst_p8): Likewise.
17613 (vtst_p16): Likewise.
17614 (vtstq_s8): Likewise.
17615 (vtstq_s16): Likewise.
17616 (vtstq_s32): Likewise.
17617 (vtstq_u8): Likewise.
17618 (vtstq_u16): Likewise.
17619 (vtstq_u32): Likewise.
17620 (vtstq_p8): Likewise.
17621 (vtstq_p16): Likewise.
17622 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
17623 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
17625 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17627 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
17628 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
17629 (aarch64_sqdmlsl2<mode>): Delete.
17630 (aarch64_sqdmlal2_lane<mode>): Merge this...
17631 (aarch64_sqdmlsl2_lane<mode>): ... And this...
17632 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
17633 (aarch64_sqdmlal2_laneq<mode>): Merge this...
17634 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
17635 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
17636 (aarch64_sqdmlal2_n<mode>): Merge this...
17637 (aarch64_sqdmlsl2_n<mode>): ... And this...
17638 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
17640 2021-05-13 Martin Sebor <msebor@redhat.com>
17642 PR middle-end/100574
17643 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
17644 all null arguments.
17646 2021-05-13 Martin Sebor <msebor@redhat.com>
17648 PR tree-optimization/93100
17649 PR middle-end/98583
17650 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
17651 don't modify referenced objects.
17653 2021-05-13 Martin Jambor <mjambor@suse.cz>
17655 PR tree-optimization/100453
17656 * tree-sra.c (sra_modify_assign): All const base accesses do not
17657 need refreshing, not just those from decl_pool.
17658 (sra_modify_assign): Do not refresh into a const base decl.
17660 2021-05-13 Martin Liska <mliska@suse.cz>
17662 * tree-ssa-dom.c: Remove m_simplifier.
17664 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
17667 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
17668 canonicalize DImode inequality comparisons against the
17669 maximum integral value.
17671 2021-05-13 Jakub Jelinek <jakub@redhat.com>
17673 PR tree-optimization/98856
17674 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
17675 Expect V2DI and V4DI arithmetic right shifts to be emulated.
17676 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
17678 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
17679 expand_vec_perm_2perm_pblendv): New functions.
17680 (ix86_expand_vec_perm_const_1): Use them.
17681 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
17682 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
17683 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
17684 (ashrv4di3): New define_expand.
17685 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
17686 and !TARGET_AVX512VL expansion.
17688 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
17691 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
17692 sizes < 16 to a register when constructing vpcmov pattern.
17693 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
17695 2021-05-13 Martin Liska <mliska@suse.cz>
17697 * gcov-io.c (gcov_write_block): Remove.
17698 (gcov_write_words): Likewise.
17699 (gcov_read_words): Re-implement using gcov_read_bytes.
17700 (gcov_allocate): Remove.
17701 (GCOV_BLOCK_SIZE): Likewise.
17702 (struct gcov_var): Remove most of the fields.
17703 (gcov_position): Implement with ftell.
17704 (gcov_rewrite): Remove setting of start and offset fields.
17705 (from_file): Re-format.
17706 (gcov_open): Remove setbuf call. It should not be needed.
17707 (gcov_close): Remove internal buffer handling.
17708 (gcov_magic): Use __builtin_bswap32.
17709 (gcov_write_counter): Use directly gcov_write_unsigned.
17710 (gcov_write_string): Use direct fwrite and do not round
17712 (gcov_seek): Use directly fseek.
17713 (gcov_write_tag): Use gcov_write_unsigned directly.
17714 (gcov_write_length): Likewise.
17715 (gcov_write_tag_length): Likewise.
17716 (gcov_read_bytes): Use directly fread.
17717 (gcov_read_unsigned): Use gcov_read_words.
17718 (gcov_read_counter): Likewise.
17719 (gcov_read_string): Use gcov_read_bytes.
17720 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
17721 that size is not in bytes, but words (4B).
17722 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
17723 (GCOV_TAG_ARCS_LENGTH): Likewise.
17724 (GCOV_TAG_ARCS_NUM): Likewise.
17725 (GCOV_TAG_COUNTER_LENGTH): Likewise.
17726 (GCOV_TAG_COUNTER_NUM): Likewise.
17727 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
17729 2021-05-13 liuhongt <hongtao.liu@intel.com>
17732 * config/i386/sse.md (ssedoublevecmode): Add attribute for
17733 V64QI/V32HI/V16SI/V4DI.
17734 (ssehalfvecmode): Add attribute for V2DI/V2DF.
17735 (*vec_concatv4si_0): Extend to VI124_128.
17736 (*vec_concat<mode>_0): New pre-reload splitter.
17737 * config/i386/predicates.md (movq_parallel): New predicate.
17739 2021-05-13 Alexandre Oliva <oliva@adacore.com>
17741 * targhooks.c (default_zero_call_used_regs): Retry using
17742 successfully-zeroed registers as sources.
17744 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
17746 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
17748 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
17751 * gimple-range.cc (range_of_builtin_call): Skip out on
17752 processing __builtin_clz when varying.
17754 2021-05-12 Tom de Vries <tdevries@suse.de>
17757 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
17758 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
17759 to ptx_version_option.
17760 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
17761 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
17762 (define_insn "nvptx_vote_ballot"): Use sync variant for
17764 * config/nvptx/nvptx.opt (ptx_version): Add enum.
17765 (mptx): Add option.
17766 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
17768 2021-05-12 Richard Biener <rguenther@suse.de>
17770 PR tree-optimization/100566
17771 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
17772 allow_back for all edge queries.
17774 2021-05-12 liuhongt <hongtao.liu@intel.com>
17777 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
17778 splitters for pblendvb of NOT mask register.
17780 2021-05-12 Richard Biener <rguenther@suse.de>
17782 PR tree-optimization/100519
17783 * tree-ssa-reassoc.c (can_associate_p): Split into...
17784 (can_associate_op_p): ... this
17785 (can_associate_type_p): ... and this.
17786 (is_reassociable_op): Call can_associate_op_p.
17787 (break_up_subtract_bb): Call the appropriate predicates.
17788 (reassociate_bb): Likewise.
17790 2021-05-12 Martin Liska <mliska@suse.cz>
17792 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
17793 (run_gcc): Use -flto argument detection for merged
17796 2021-05-12 Martin Liska <mliska@suse.cz>
17798 * lto-wrapper.c (print_lto_docs_link): New function.
17799 (run_gcc): Print warning about missing job server detection
17800 after we know NR of partitions. Do the same for -flto{,=1}.
17801 * opts.c (get_option_html_page): Support -flto option.
17803 2021-05-12 Martin Liska <mliska@suse.cz>
17805 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
17807 (append_option): Remove.
17808 (find_option): Rework to use the vector type.
17809 (remove_option): Remove.
17810 (merge_and_complain): Use vectors for cl_decoded_option data
17812 (append_compiler_options): Likewise.
17813 (append_diag_options): Likewise.
17814 (append_linker_options): Likewise.
17815 (append_offload_options): Likewise.
17816 (compile_offload_image): Likewise.
17817 (compile_images_for_offload_targets): Likewise.
17818 (find_and_merge_options): Likewise.
17819 (run_gcc): Likewise.
17821 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
17824 * dwarf2out.c (dwarf2out_finish): Set
17825 have_multiple_function_sections with multi-range text_section.
17827 2021-05-12 Martin Liska <mliska@suse.cz>
17829 PR bootstrap/100560
17830 * Makefile.in: Remove version.h from linker command line.
17832 2021-05-12 Richard Biener <rguenther@suse.de>
17834 PR middle-end/100547
17835 * rtl.h (rtvec_alloc): Make argument size_t.
17836 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
17838 2021-05-12 Jakub Jelinek <jakub@redhat.com>
17840 PR middle-end/100508
17841 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
17842 type, don't reuse DECL_RTL if it has different mode, instead force
17843 creation of a new DEBUG_EXPR.
17845 2021-05-12 Jakub Jelinek <jakub@redhat.com>
17846 Marc Glisse <marc.glisse@inria.fr>
17848 PR tree-optimization/94589
17849 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
17850 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
17852 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
17855 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
17856 * config/i386/mmx.md (MMXMODE124): New mode iterator.
17858 (mmxintvecmode): New mode attribute.
17859 (mmxintvecmodelower): Ditto.
17860 (*mmx_maskcmpv2sf3_comm): New insn pattern.
17861 (*mmx_maskcmpv2sf3): Ditto.
17862 (vec_cmpv2sfv2si): New expander.
17863 (vcond<V2FI:mode>v2si): Ditto.
17864 (mmx_vlendvps): New insn pattern.
17865 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
17866 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
17867 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
17869 2021-05-11 Martin Sebor <msebor@redhat.com>
17871 PR middle-end/21433
17872 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
17874 2021-05-11 Richard Biener <rguenther@suse.de>
17876 * gimple-fold.c (gimple_fold_call): Do not call
17877 maybe_fold_reference on call arguments or the static chain.
17878 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
17881 2021-05-11 Martin Liska <mliska@suse.cz>
17883 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
17884 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
17885 (DEF_HSAIL_SAT_BUILTIN): Likewise.
17886 (DEF_HSAIL_INTR_BUILTIN): Likewise.
17887 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
17888 * doc/frontends.texi: Remove BRIG.
17889 * doc/install.texi: Likewise.
17890 * doc/invoke.texi: Likewise.
17891 * doc/standards.texi: Likewise.
17892 * brig-builtins.def: Removed.
17893 * brig/ChangeLog: Removed.
17894 * brig/Make-lang.in: Removed.
17895 * brig/brig-builtins.h: Removed.
17896 * brig/brig-c.h: Removed.
17897 * brig/brig-lang.c: Removed.
17898 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
17899 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
17900 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
17901 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
17902 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
17903 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
17904 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
17905 * brig/brigfrontend/brig-comment-handler.cc: Removed.
17906 * brig/brigfrontend/brig-control-handler.cc: Removed.
17907 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
17908 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
17909 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
17910 * brig/brigfrontend/brig-function-handler.cc: Removed.
17911 * brig/brigfrontend/brig-function.cc: Removed.
17912 * brig/brigfrontend/brig-function.h: Removed.
17913 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
17914 * brig/brigfrontend/brig-label-handler.cc: Removed.
17915 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
17916 * brig/brigfrontend/brig-machine.c: Removed.
17917 * brig/brigfrontend/brig-machine.h: Removed.
17918 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
17919 * brig/brigfrontend/brig-module-handler.cc: Removed.
17920 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
17921 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
17922 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
17923 * brig/brigfrontend/brig-to-generic.cc: Removed.
17924 * brig/brigfrontend/brig-to-generic.h: Removed.
17925 * brig/brigfrontend/brig-util.cc: Removed.
17926 * brig/brigfrontend/brig-util.h: Removed.
17927 * brig/brigfrontend/brig-variable-handler.cc: Removed.
17928 * brig/brigfrontend/hsa-brig-format.h: Removed.
17929 * brig/brigfrontend/phsa.h: Removed.
17930 * brig/brigspec.c: Removed.
17931 * brig/config-lang.in: Removed.
17932 * brig/gccbrig.texi: Removed.
17933 * brig/lang-specs.h: Removed.
17934 * brig/lang.opt: Removed.
17936 2021-05-11 Richard Biener <rguenther@suse.de>
17939 * ipa-param-manipulation.c
17940 (ipa_param_body_adjustments::modify_call_stmt): Avoid
17941 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
17942 via gimple_call_lhs_ptr.
17944 2021-05-11 Alex Coplan <alex.coplan@arm.com>
17947 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
17948 Avoid emitting CFA adjusts on the sp if we have the fp.
17950 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
17952 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
17953 (VMULD): New iterator.
17954 (VCOND): Handle V4HF and V8HF.
17955 (VCONQ): Fix entry for V2SF.
17956 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
17957 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
17958 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
17959 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
17960 Use a 128-bit vector mode for the indexed operand. Use stype for
17961 the scheduling type.
17963 2021-05-11 Richard Biener <rguenther@suse.de>
17965 * gimple-fold.c (maybe_fold_reference): Only return
17966 is_gimple_min_invariant values.
17968 2021-05-11 Richard Biener <rguenther@suse.de>
17970 PR middle-end/100509
17971 * gimple-fold.c (fold_gimple_assign): Only call
17972 get_symbol_constant_value on register type symbols.
17974 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17975 Joe Ramsay <joe.ramsay@arm.com>
17978 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
17979 (__arm_vcmpneq): Remove duplicate definition.
17980 (__arm_vstrwq_scatter_offset_p): Likewise.
17981 (__arm_vmaxq_x): Likewise.
17982 (__arm_vmlsdavaq): Likewise.
17983 (__arm_vmlsdavaxq): Likewise.
17984 (__arm_vmlsdavq_p): Likewise.
17985 (__arm_vmlsdavxq_p): Likewise.
17986 (__arm_vrmlaldavhaq): Likewise.
17987 (__arm_vstrbq_p): Likewise.
17988 (__arm_vstrbq_scatter_offset): Likewise.
17989 (__arm_vstrbq_scatter_offset_p): Likewise.
17990 (__arm_vstrdq_scatter_offset): Likewise.
17991 (__arm_vstrdq_scatter_offset_p): Likewise.
17992 (__arm_vstrdq_scatter_shifted_offset): Likewise.
17993 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
17995 2021-05-11 Jakub Jelinek <jakub@redhat.com>
17997 PR middle-end/100471
17998 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
17999 is 0, bypass the reduction loop including
18000 GOMP_taskgroup_reduction_unregister call.
18002 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
18004 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
18005 costing_for_scalar.
18006 (rs6000_density_test): Early return if costing_for_scalar is true.
18007 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
18009 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
18011 * doc/tm.texi: Regenerated.
18012 * target.def (init_cost): Add new parameter costing_for_scalar.
18013 * targhooks.c (default_init_cost): Adjust for new parameter.
18014 * targhooks.h (default_init_cost): Likewise.
18015 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
18016 (vect_compute_single_scalar_iteration_cost): Likewise.
18017 (vect_analyze_loop_2): Likewise.
18018 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
18019 (vect_bb_vectorization_profitable_p): Likewise.
18020 * tree-vectorizer.h (init_cost): Likewise.
18021 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
18022 * config/i386/i386.c (ix86_init_cost): Likewise.
18023 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
18025 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
18027 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
18028 vect_nonmem and moved into...
18029 (struct rs6000_cost_data): ...here.
18030 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
18031 (rs6000_add_stmt_cost): Likewise.
18032 (rs6000_finish_cost): Likewise.
18034 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
18036 * range-op.cc (get_bool_state): Adjust head comment.
18037 (operator_not_equal::op1_range): Fix comment.
18038 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
18040 2021-05-10 Martin Sebor <msebor@redhat.com>
18042 PR middle-end/100425
18043 PR middle-end/100510
18044 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
18045 (pass_walloca::xlimit_certain_p): ...to this.
18046 (pass_walloca::gate): Execute for any kind of handled warning.
18047 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
18048 warnings when xlimit_certain_p is set.
18050 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
18052 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
18053 Return ALTIVEC_REGS if that is best_class.
18054 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
18056 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18058 * config/arm/arm.h (CPP_SPEC): Remove error message about
18061 2021-05-10 Martin Jambor <mjambor@suse.cz>
18063 * ipa-prop.h (IPA_NODE_REF): Removed.
18064 (IPA_NODE_REF_GET_CREATE): Likewise.
18065 (IPA_EDGE_REF): Likewise.
18066 (IPA_EDGE_REF_GET_CREATE): Likewise.
18067 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
18068 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
18069 use of ipa_node_params_sum.
18070 (ipcp_versionable_function_p): Likewise.
18071 (push_node_to_stack): Likewise.
18072 (pop_node_from_stack): Likewise.
18073 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
18074 direct use of ipa_node_params_sum.
18075 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
18076 ipa_node_params_sum.
18077 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
18079 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
18080 use of ipa_node_params_sum.
18081 (self_recursively_generated_p): Likewise.
18082 (propagate_scalar_across_jump_function): Likewise.
18083 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
18084 direct use of ipa_edge_args_sum, moved the lookup after the early
18085 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
18086 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
18087 direct uses of ipa_node_params_sum.
18088 (propagate_vr_across_jump_function): Likewise.
18089 (propagate_aggregate_lattice): Likewise.
18090 (propagate_aggs_across_jump_function): Likewise.
18091 (propagate_constants_across_call): Likewise, also replaced
18092 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
18093 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
18094 of ipa_node_params_sum.
18095 (estimate_local_effects): Likewise.
18096 (add_all_node_vals_to_toposort): Likewise.
18097 (propagate_constants_topo): Likewise.
18098 (ipcp_propagate_stage): Likewise.
18099 (ipcp_discover_new_direct_edges): Likewise.
18100 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
18101 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
18102 (get_info_about_necessary_edges): Likewise.
18103 (want_remove_some_param_p): Likewise.
18104 (create_specialized_node): Likewise.
18105 (self_recursive_pass_through_p): Likewise.
18106 (self_recursive_agg_pass_through_p): Likewise.
18107 (find_more_scalar_values_for_callers_subset): Likewise and also
18108 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
18109 case replacing two of those with a single query.
18110 (find_more_contexts_for_caller_subset): Likewise for the
18111 ipa_polymorphic_call_context overload.
18112 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
18113 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
18114 ipa_node_params_sum.
18115 (find_aggregate_values_for_callers_subset): Likewise, also reusing
18116 results of ipa_edge_args_sum->get.
18117 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
18118 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
18119 direct use of ipa_edge_args_sum.
18120 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
18121 summary query after the early exit and reused the result later.
18122 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
18123 ipa_node_params_sum.
18124 (decide_whether_version_node): Likewise. Removed re-querying for
18125 summaries after cloning.
18126 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
18127 ipa_node_params_sum.
18128 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
18130 (identify_dead_nodes): Likewise.
18131 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
18132 ipa_node_params_sum.
18133 (ipcp_store_vr_results): Likewise.
18134 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
18135 (ipa_fn_summary_t::duplicate): Likewise.
18136 (analyze_function_body): Likewise.
18137 (estimate_calls_size_and_time): Likewise.
18138 (ipa_cached_call_context::duplicate_from): Likewise.
18139 (ipa_call_context::equal_to): Likewise.
18140 (remap_edge_params): Likewise.
18141 (ipa_merge_fn_summary_after_inlining): Likewise.
18142 (inline_read_section): Likewise.
18143 * ipa-icf.c (sem_function::param_used_p): Likewise.
18144 * ipa-modref.c (compute_parm_map): Likewise.
18145 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
18147 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
18148 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
18150 * ipa-profile.c (check_argument_count): Likewise.
18151 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
18152 with a direct use of ipa_node_params_sum.
18153 (ipa_initialize_node_params): Likewise.
18154 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
18155 direct use of ipa_edge_args_sum and reused the query result.
18156 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
18157 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
18158 direct use of ipa_edge_args_sum.
18159 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
18160 ipa_node_params_sum and reused the result of the query.
18161 (ipa_analyze_node): Likewise.
18162 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
18163 of ipa_node_params_sum.
18164 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
18165 direct uses of ipa_edge_args_sum.
18166 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
18167 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
18168 direct use of ipa_edge_args_sum. Removed superficial re-querying the
18170 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
18171 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
18173 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
18174 direct use of ipa_edge_args_sum.
18175 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
18176 use of ipa_node_params_sum.
18177 (ipa_print_node_params): Likewise.
18178 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
18179 direct uses of ipa_edge_args_sum.
18180 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
18182 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
18183 ipa_node_params_sum.
18184 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
18185 scopes where it is used.
18187 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
18189 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
18190 <case E_V2SImode>: Force op_true to register.
18192 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18194 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
18195 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
18196 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
18198 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
18199 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
18200 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
18201 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
18202 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
18203 (mve_vcmpneq_n_f<mode>): Remove.
18204 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
18205 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
18206 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
18208 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18210 * config/arm/iterators.md (MVE_COMPARISONS): New.
18212 (mve_cmp_type): New.
18213 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
18215 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
18216 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
18217 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
18218 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
18219 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
18220 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
18221 (mve_vcmpneq_n_<mode>): Remove.
18223 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18225 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
18226 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
18227 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
18230 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18232 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
18233 (vcmpneq_n_u): Likewise.
18234 (vcmpeqq_u,): Likewise.
18235 (vcmpeqq_n_u): Likewise.
18236 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
18237 VCMPEQQ_N_U and VCMPNEQ_N_U.
18238 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
18239 (mve_vcmpeqq_n): Likewise.
18240 (mve_vcmpeqq): Likewise.
18241 (mve_vcmpneq_n): Likewise.
18243 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18245 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
18246 the 's' version of the builtin.
18248 2021-05-10 Richard Biener <rguenther@suse.de>
18250 PR tree-optimization/100492
18251 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
18252 Find nothing when the loop contains an irreducible region.
18254 2021-05-10 Richard Biener <rguenther@suse.de>
18256 PR middle-end/100464
18258 * gimple-fold.c (canonicalize_constructor_val): Do not set
18261 2021-05-10 Richard Biener <rguenther@suse.de>
18263 PR tree-optimization/100434
18264 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18266 (dse_optimize_stmt): Handle call LHS by dropping the
18267 LHS or the whole call if it doesn't have other
18269 (pass_dse::execute): Adjust.
18271 2021-05-10 Martin Liska <mliska@suse.cz>
18273 * Makefile.in: Add missing genversion rule.
18275 2021-05-10 Alex Coplan <alex.coplan@arm.com>
18278 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
18279 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
18281 2021-05-10 Martin Liska <mliska@suse.cz>
18283 * builtins.c (is_builtin_name): Use startswith
18284 function instead of strncmp.
18285 * collect2.c (main): Likewise.
18286 (has_lto_section): Likewise.
18287 (scan_libraries): Likewise.
18288 * coverage.c (coverage_checksum_string): Likewise.
18289 (coverage_init): Likewise.
18290 * dwarf2out.c (is_cxx): Likewise.
18291 (gen_compile_unit_die): Likewise.
18292 * gcc-ar.c (main): Likewise.
18293 * gcc.c (init_spec): Likewise.
18294 (read_specs): Likewise.
18295 (execute): Likewise.
18296 (check_live_switch): Likewise.
18297 * genattrtab.c (write_attr_case): Likewise.
18298 (IS_ATTR_GROUP): Likewise.
18299 * gencfn-macros.c (main): Likewise.
18300 * gengtype.c (type_for_name): Likewise.
18301 (gen_rtx_next): Likewise.
18302 (get_file_langdir): Likewise.
18303 (write_local): Likewise.
18304 * genmatch.c (get_operator): Likewise.
18305 (get_operand_type): Likewise.
18306 (expr::gen_transform): Likewise.
18307 * genoutput.c (validate_optab_operands): Likewise.
18308 * incpath.c (add_sysroot_to_chain): Likewise.
18309 * langhooks.c (lang_GNU_C): Likewise.
18310 (lang_GNU_CXX): Likewise.
18311 (lang_GNU_Fortran): Likewise.
18312 (lang_GNU_OBJC): Likewise.
18313 * lto-wrapper.c (run_gcc): Likewise.
18314 * omp-general.c (omp_max_simt_vf): Likewise.
18315 * omp-low.c (omp_runtime_api_call): Likewise.
18316 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
18317 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
18318 * real.c (real_from_string): Likewise.
18319 * selftest.c (assert_str_startswith): Likewise.
18320 * timevar.c (timer::validate_phases): Likewise.
18321 * tree.c (get_file_function_name): Likewise.
18322 * ubsan.c (ubsan_use_new_style_p): Likewise.
18323 * varasm.c (default_function_rodata_section): Likewise.
18324 (incorporeal_function_p): Likewise.
18325 (default_section_type_flags): Likewise.
18326 * system.h (startswith): Define startswith.
18328 2021-05-10 Martin Liska <mliska@suse.cz>
18330 * bitmap.h (class auto_bitmap): Remove
18331 __cplusplus >= 201103.
18332 * config/aarch64/aarch64.c: Likewise.
18333 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
18335 * sbitmap.h: Likewise.
18337 2021-05-10 Martin Liska <mliska@suse.cz>
18339 * Makefile.in: Rename gcov-iov to genversion and depend
18340 on version.h (instead of gcov-iov.h).
18341 * gcov-io.h: Include version.h instread of gcov-iov.h.
18342 * gengtype-state.c (read_state_version): Likewise.
18343 * gcov-iov.c: Moved to...
18344 * genversion.c: ...here.
18345 * lto-streamer.h (LTO_major_version): Define it with
18347 * version.c: Removed.
18348 * version.h: Removed.
18350 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
18352 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
18353 * config/arc/simdext.md (VCT): Add predicates for iterator
18356 (voptab): Likewise.
18357 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
18358 (<voptab>v2si3): New patterns.
18360 (reduc_plus_scal_v4hi): Likewise.
18361 (reduc_plus_scal_v2si): Likewise.
18362 (vec_duplicatev2si): Likewise.
18363 (vec_duplicatev4hi): Likewise.
18365 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
18367 * config/arc/simdext.md: Format and cleanup file.
18369 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
18371 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
18372 only when munaligned-access option is on.
18373 (movmisalign<mode>): Likewise.
18375 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
18377 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
18379 * config/arc/arc.c (arc_reorg): Remove underscore from string.
18381 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
18383 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
18384 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
18385 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
18386 (norm_f): Likewise.
18389 (clzsi2): Use fls instruction when available.
18390 (arc_clzsi2): Likewise.
18392 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
18394 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
18396 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
18398 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
18400 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
18402 PR middle-end/100467
18403 * toplev.c (compile_file): Call insn_locations_init before
18404 targetm.asm_out.code_end.
18406 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
18409 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
18411 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
18413 2021-05-07 Jakub Jelinek <jakub@redhat.com>
18414 Andrew Stubbs <amd@codesourcery.com>
18417 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
18418 emit_move_insn operands.
18420 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
18422 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
18423 location for the outgoing edges of an empty block.
18424 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
18425 type by means of the get_array_descr_info langhook, if it is set and
18426 returns true. Remove obsolete code dealing with unnamed subtypes.
18428 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
18430 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
18431 (sbr_vector): Renamed from ssa_block_cache.
18432 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
18433 (ssa_block_ranges::~ssa_block_ranges): Remove.
18434 (sbr_vector::set_bb_range): Use varying and undefined cached values.
18435 (ssa_block_ranges::set_bb_varying): Remove.
18436 (sbr_vector::get_bb_range): Adjust assert.
18437 (sbr_vector::bb_range_p): Adjust assert.
18438 (~block_range_cache): No freeing loop required.
18439 (block_range_cache::get_block_ranges): Remove.
18440 (block_range_cache::set_bb_range): Inline get_block_ranges.
18441 (block_range_cache::set_bb_varying): Remove.
18442 * gimple-range-cache.h (set_bb_varying): Remove prototype.
18443 * value-range.h (irange_allocator::get_memory): New.
18445 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
18447 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
18448 dominator tree is available and requested.
18449 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
18450 (ranger_cache::fill_block_cache): Don't search dom tree here either.
18451 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
18453 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
18455 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
18456 only PHI nodes better.
18458 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
18460 * gimple-range-edge.h (gimple_outgoing_range): Rename from
18462 (gcond_edge_range): Export prototype.
18463 * gimple-range-edge.cc (gcond_edge_range): New.
18464 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
18465 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
18467 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
18469 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
18470 default range into a temp and allocate only what is needed.
18472 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
18474 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
18476 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
18478 * gimple-range.h (gimple_range_global): Pick up parameter initial
18479 values, and use-before defined locals are UNDEFINED.
18481 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
18483 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
18485 * tree.h (reverse_storage_order_for_component_p): Return false if
18486 the type is a pointer.
18488 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
18490 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
18492 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
18495 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
18496 Handle V8QI, V4HI and V2SI modes.
18497 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
18498 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
18499 * config/i386/i386.md (unspec): ... here.
18501 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
18502 Tom de Vries <tdevries@suse.de>
18504 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
18505 a truth_value_p reduction variable is nonintegral.
18507 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
18510 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
18511 Return false for mode sizes < 16.
18513 2021-05-07 Jakub Jelinek <jakub@redhat.com>
18516 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
18518 2021-05-06 Martin Jambor <mjambor@suse.cz>
18520 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
18521 when there is no function summary.
18522 (ipa_sra_summarize_function): produce edge summaries even when
18525 2021-05-06 Tom Tromey <tom@tromey.com>
18527 * godump.c (string_hash_eq): Remove.
18528 (go_finish): Use htab_eq_string.
18530 2021-05-06 Tom Tromey <tom@tromey.com>
18532 * gengtype-state.c (read_state): Use htab_eq_string.
18533 (string_eq): Remove.
18535 2021-05-06 Tom Tromey <tom@tromey.com>
18537 * gensupport.c (htab_eq_string): Remove.
18539 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
18542 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
18543 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
18544 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
18545 set_ignored_loc callbacks.
18546 * debug.c (do_nothing_debug_hooks): Likewise.
18547 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18548 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
18549 (in_text_section_p, last_text_label, last_cold_label,
18550 switch_text_ranges, switch_cold_ranges): New data items.
18551 (dwarf2out_note_section_used): Remove.
18552 (dwarf2out_begin_prologue): Set fde->ignored_debug and
18554 (mark_ignored_debug_section): New helper function.
18555 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
18556 mark_ignored_debug_section.
18557 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
18558 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
18559 (size_of_aranges): Adjust formula for multi-part text ranges size.
18560 (output_aranges): Output multi-part text ranges.
18561 (dwarf2out_set_ignored_loc): New callback function.
18562 (dwarf2out_finish): Output multi-part text ranges.
18563 (dwarf2out_c_finalize): Clear new data items.
18564 * final.c (final_start_function_1): Call set_ignored_loc callback.
18565 (final_scan_insn_1): Likewise.
18566 * ggc-page.c (gt_ggc_mx): New helper function.
18567 * stringpool.c (gt_pch_nx): Likewise.
18569 2021-05-06 Richard Biener <rguenther@suse.de>
18571 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
18572 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
18573 (TV_TREE_INTO_SSA): New.
18574 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
18575 (rewrite_blocks): Likewise.
18576 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
18578 2021-05-06 Jakub Jelinek <jakub@redhat.com>
18580 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
18581 abs_replacement, xor_replacement,
18582 cond_removal_in_popcount_clz_ctz_pattern,
18583 replace_phi_edge_with_variable): Change type of phi argument from
18584 gimple * to gphi *.
18586 2021-05-06 Richard Biener <rguenther@suse.de>
18588 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
18589 Output an opt-info message.
18590 (do_split_loop_on_cond): Likewise.
18591 (tree_ssa_split_loops): Update SSA form here.
18593 2021-05-06 Richard Biener <rguenther@suse.de>
18595 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
18596 return variable removal.
18598 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
18600 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
18601 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
18602 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
18604 * config/s390/s390.c (s390_const_operand_ok): Remove unused
18607 2021-05-06 Jakub Jelinek <jakub@redhat.com>
18609 PR tree-optimization/94589
18610 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
18611 spaceship_replacement.
18612 (cond_only_block_p, spaceship_replacement): New functions.
18614 2021-05-06 Richard Biener <rguenther@suse.de>
18617 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
18618 dealing with a debug use and only query existing addresses
18620 (lower_emutls_1): Avoid splitting out addresses for debug
18621 stmts, reset the debug stmt when we fail to find existing
18623 (lower_emutls_phi_arg): Set wi.stmt.
18625 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
18628 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
18629 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
18630 (stack_protect_test): Use cbranch helper.
18632 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
18635 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
18636 always return the establisher frame for __builtin_frame_address (0).
18638 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
18641 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
18642 (ix86_cpu_model_var): Likewise.
18643 (ix86_cpu_features2_type_node): Likewise.
18644 (ix86_cpu_features2_var): Likewise.
18645 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
18648 2021-05-05 Martin Sebor <msebor@redhat.com>
18650 * passes.def (pass_warn_printf): Run after SSA.
18652 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18654 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
18655 * config/arm/predicates.md (minus_one_operand): New predicate.
18657 2021-05-05 Jeff Law <jlaw@tachyum.com>
18659 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
18661 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
18663 PR rtl-optimization/100263
18664 * postreload.c (move2add_valid_value_p): Ensure register can
18667 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
18669 PR rtl-optimization/100411
18670 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
18671 and beginning of function markers.
18673 2021-05-05 Jeff Law <jlaw@tachyum.com>
18675 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
18676 * config/cr16/cr16.c (notice_update_cc): Remove.
18677 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
18679 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
18682 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
18683 Handle V8QI, V4HI and V2SI modes.
18684 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
18685 (ix86_build_signbit_mask): Ditto.
18686 * config/i386/mmx.md (MMXMODE14): New mode iterator.
18687 (<smaxmin:code><MMXMODE14:mode>3): New expander.
18688 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
18689 (<umaxmin:code><MMXMODE24:mode>3): New expander.
18690 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
18691 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
18692 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
18693 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
18694 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
18695 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
18697 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
18699 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
18700 not expand the VALUE_EXPR of variables put in the non-local frame.
18701 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
18702 to be ignored for debug info, ensure its variable offsets are not.
18704 2021-05-05 Richard Biener <rguenther@suse.de>
18706 PR tree-optimization/79333
18707 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
18708 Fold stmt following SSA edges.
18710 2021-05-05 Richard Biener <rguenther@suse.de>
18712 PR middle-end/100394
18713 * calls.c (expand_call): Preserve possibly throwing calls.
18714 * cfgexpand.c (expand_call_stmt): When a call can throw signal
18715 RTL expansion there are side-effects.
18716 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
18717 mark all possibly throwing stmts necessary unless we can elide
18719 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
18720 -fdelete-dead-exceptions.
18721 * tree.h (DECL_PURE_P): Add note about exceptions.
18723 2021-05-05 Alexandre Oliva <oliva@adacore.com>
18725 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
18728 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
18730 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18731 get_fnname_from_decl for name of thunk.
18732 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
18733 and ASM_OUTPUT_LABEL.
18734 (rs6000_xcoff_declare_function_name): Use assemble_name and
18736 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
18737 (rs6000_xcoff_encode_section_info): Don't add mapping class
18738 for aliases. Always add [DS] mapping class to primary
18740 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
18742 2021-05-04 Martin Sebor <msebor@redhat.com>
18744 PR middle-end/100307
18745 * builtins.c (compute_objsize_r): Clear base0 for pointers.
18747 2021-05-04 Jeff Law <jlaw@tachyum.com>
18749 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
18751 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
18753 * caller-save.c: Remove CC0.
18754 * cfgcleanup.c: Remove CC0.
18755 * cfgrtl.c: Remove CC0.
18756 * combine.c: Remove CC0.
18757 * compare-elim.c: Remove CC0.
18758 * conditions.h: Remove CC0.
18759 * config/h8300/h8300.h: Remove CC0.
18760 * config/h8300/h8300-protos.h: Remove CC0.
18761 * config/h8300/peepholes.md: Remove CC0.
18762 * config/i386/x86-tune-sched.c: Remove CC0.
18763 * config/m68k/m68k.c: Remove CC0.
18764 * config/rl78/rl78.c: Remove CC0.
18765 * config/sparc/sparc.c: Remove CC0.
18766 * config/xtensa/xtensa.c: Remove CC0.
18767 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
18768 RTL where that is used as a placeholder only.
18769 * cprop.c: Remove CC0.
18770 * cse.c: Remove CC0.
18771 * cselib.c: Remove CC0.
18772 * df-problems.c: Remove CC0.
18773 * df-scan.c: Remove CC0.
18774 * doc/md.texi: Remove CC0. Adjust an example.
18775 * doc/rtl.texi: Remove CC0. Adjust an example.
18776 * doc/tm.texi: Regenerate.
18777 * doc/tm.texi.in: Remove CC0.
18778 * emit-rtl.c: Remove CC0.
18779 * final.c: Remove CC0.
18780 * fwprop.c: Remove CC0.
18781 * gcse-common.c: Remove CC0.
18782 * gcse.c: Remove CC0.
18783 * genattrtab.c: Remove CC0.
18784 * genconfig.c: Remove CC0.
18785 * genemit.c: Remove CC0.
18786 * genextract.c: Remove CC0.
18787 * gengenrtl.c: Remove CC0.
18788 * genrecog.c: Remove CC0.
18789 * haifa-sched.c: Remove CC0.
18790 * ifcvt.c: Remove CC0.
18791 * ira-costs.c: Remove CC0.
18792 * ira.c: Remove CC0.
18793 * jump.c: Remove CC0.
18794 * loop-invariant.c: Remove CC0.
18795 * lra-constraints.c: Remove CC0.
18796 * lra-eliminations.c: Remove CC0.
18797 * optabs.c: Remove CC0.
18798 * postreload-gcse.c: Remove CC0.
18799 * postreload.c: Remove CC0.
18800 * print-rtl.c: Remove CC0.
18801 * read-rtl-function.c: Remove CC0.
18802 * reg-notes.def: Remove CC0.
18803 * reg-stack.c: Remove CC0.
18804 * reginfo.c: Remove CC0.
18805 * regrename.c: Remove CC0.
18806 * reload.c: Remove CC0.
18807 * reload1.c: Remove CC0.
18808 * reorg.c: Remove CC0.
18809 * resource.c: Remove CC0.
18810 * rtl.c: Remove CC0.
18811 * rtl.def: Remove CC0.
18812 * rtl.h: Remove CC0.
18813 * rtlanal.c: Remove CC0.
18814 * sched-deps.c: Remove CC0.
18815 * sched-rgn.c: Remove CC0.
18816 * shrink-wrap.c: Remove CC0.
18817 * simplify-rtx.c: Remove CC0.
18818 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
18819 CC_STATUS_MDEP, and CC_STATUS.
18820 * target.def: Remove CC0.
18821 * valtrack.c: Remove CC0.
18822 * var-tracking.c: Remove CC0.
18824 2021-05-04 Richard Biener <rguenther@suse.de>
18826 PR tree-optimization/100414
18827 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
18829 (tree_ssa_phiopt_worker): But unconditionally here.
18831 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
18833 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
18834 && and || with floating-point and complex arguments.
18836 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
18838 * tree-inline.c (insert_debug_decl_map): Delete.
18839 (copy_debug_stmt): Minor tweak.
18840 (setup_one_parameter): Do not use a variable if the value is either
18841 a read-only DECL or a non-addressable local variable in the caller.
18842 In this case, insert the debug-only variable in the map manually.
18843 (expand_call_inline): Do not generate a CLOBBER for these values.
18844 * tree-inline.h (debug_map): Minor tweak.
18846 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
18848 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
18849 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
18851 2021-05-04 Richard Biener <rguenther@suse.de>
18853 PR tree-optimization/100329
18854 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
18856 (insert_stmt_after): Assert we're not running into asm goto.
18858 2021-05-04 Richard Biener <rguenther@suse.de>
18860 PR tree-optimization/100398
18861 * tree-ssa-dse.c (pass_dse::execute): Preserve control
18864 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18866 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
18868 2021-05-04 Alexandre Oliva <oliva@adacore.com>
18870 * builtins.c (try_store_by_multiple_pieces): New.
18871 (expand_builtin_memset_args): Use it. If target_char_cast
18872 fails, proceed as for non-constant val. Pass len's ctz to...
18873 * expr.c (clear_storage_hints): ... this. Try store by
18874 multiple pieces after setmem.
18875 (clear_storage): Adjust.
18876 * expr.h (clear_storage_hints): Likewise.
18877 (try_store_by_multiple_pieces): Declare.
18878 * passes.def: Replace the last copy_prop with ccp.
18880 2021-05-03 Tom de Vries <tdevries@suse.de>
18883 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
18886 2021-05-03 Richard Biener <rguenther@suse.de>
18888 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
18890 2021-05-03 Richard Biener <rguenther@suse.de>
18892 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
18893 (dse_dom_walker): Remove.
18894 (dse_dom_walker::dse_optimize_stmt): Rename...
18895 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
18896 (dse_dom_walker::before_dom_children): Inline ...
18897 (pass_dse::execute): ... here. Perform a reverse program
18900 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
18903 * configure: Regenerated.
18905 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
18908 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
18909 (s390_md_asm_adjust): Handle hard registers.
18911 2021-05-03 Jakub Jelinek <jakub@redhat.com>
18913 PR tree-optimization/100382
18914 * tree-ssa-dse.c: Include tree-eh.h.
18915 (dse_dom_walker::before_dom_children): Don't remove stmts if
18916 stmt_unremovable_because_of_non_call_eh_p is true.
18918 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
18920 * varasm.c (compute_reloc_for_var): Split out from...
18921 (get_variable_section): Use it.
18922 * output.h (compute_reloc_for_var): Declare.
18923 * config/rs6000/rs6000-protos.h
18924 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
18926 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
18927 Don't append storage mapping class to symbol.
18928 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
18929 Don't convert TLS BSS to common.
18930 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
18931 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
18933 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
18935 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
18936 If align is 0 from TLS class, use the same rules as varasm.c
18937 If not common, switch to BSS section manually.
18938 If common, emit appropriate comm or lcomm directive.
18939 (rs6000_xcoff_encode_section_info): Add logic to append all
18940 storage mapping classes.
18941 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
18942 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
18943 rs6000_xcoff_asm_output_aligned_decl_common.
18944 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
18945 rs6000_xcoff_asm_output_aligned_decl_common.
18946 (ASM_OUTPUT_TLS_COMMON): Use
18947 rs6000_xcoff_asm_output_aligned_decl_common.
18949 2021-05-02 Jakub Jelinek <jakub@redhat.com>
18952 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
18953 as first argument of pseudo_node_t constructors.
18955 2021-05-02 Jakub Jelinek <jakub@redhat.com>
18958 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
18960 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
18962 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
18963 (gt_pch_nx (int_range<1> *&)): New.
18964 (gt_ggc_mx (int_range<1> *&)): New.
18965 * value-range.h (class irange): Add GTY support for
18968 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
18970 * doc/options.texi (Negative): Change either or to both and.
18972 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
18974 * config/aarch64/aarch64-simd-builtins.def: Add
18975 float_ml[as][q]_laneq builtin generator macros.
18976 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
18977 (aarch64_float_mla_laneq<mode>): Define.
18978 (aarch64_float_mls_laneq<mode>): Define.
18979 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
18980 instead of GCC vector extensions.
18981 (vmlaq_laneq_f32): Likewise.
18982 (vmls_laneq_f32): Likewise.
18983 (vmlsq_laneq_f32): Likewise.
18985 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
18987 * config/aarch64/aarch64-simd-builtins.def: Add
18988 float_ml[as]_lane builtin generator macros.
18989 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
18991 (mul_lane<mode>3): This, and re-order arguments.
18992 (aarch64_float_mla_lane<mode>): Define.
18993 (aarch64_float_mls_lane<mode>): Define.
18994 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
18995 instead of GCC vector extensions.
18996 (vmlaq_lane_f32): Likewise.
18997 (vmls_lane_f32): Likewise.
18998 (vmlsq_lane_f32): Likewise.
19000 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
19002 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
19003 builtin generator macros.
19004 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
19006 (aarch64_float_mls<mode>): Define.
19007 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
19008 instead of relying on GCC vector extensions.
19009 (vmla_f64): Likewise.
19010 (vmlaq_f32): Likewise.
19011 (vmlaq_f64): Likewise.
19012 (vmls_f32): Likewise.
19013 (vmls_f64): Likewise.
19014 (vmlsq_f32): Likewise.
19015 (vmlsq_f64): Likewise.
19016 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
19018 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
19020 * config/aarch64/aarch64-simd-builtins.def: Add
19021 float_ml[as]_n_builtin generator macros.
19022 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
19024 (mul_n<mode>3): This, and re-order arguments.
19025 (aarch64_float_mla_n<mode>): Define.
19026 (aarch64_float_mls_n<mode>): Define.
19027 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
19028 instead of inline asm.
19029 (vmlaq_n_f32): Likewise.
19030 (vmls_n_f32): Likewise.
19031 (vmlsq_n_f32): Likewise.
19033 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
19035 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
19036 builtin generator macros.
19037 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
19038 (aarch64_pmull_hiv16qi_insn): Define.
19039 (aarch64_pmull_hiv16qi): Define.
19040 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
19041 instead of inline asm.
19042 (vmull_p8): Likewise.
19044 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
19046 * config/avr/avr.md: Adjust peepholes to match and
19047 generate parallels with clobber of REG_CC.
19048 (mov<mode>_insn): Rename to mov<mode>_insn_split.
19049 (*mov<mode>_insn): Rename to mov<mode>_insn.
19051 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
19053 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
19054 for VAR_DECLs if -fdata-sections enabled.
19056 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
19058 PR bootstrap/100327
19059 * config/rs6000/rs6000.c
19060 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
19061 (rs6000_libgcc_floating_mode_supported_p): New target hook.
19063 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
19065 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
19067 (class back_threader_registry): ...to here...
19068 (class back_threader_profitability): ...and here...
19069 (thread_jumps::thread_through_all_blocks): Remove argument.
19070 (back_threader_registry::back_threader_registry): New.
19071 (back_threader_registry::~back_threader_registry): New.
19072 (back_threader_registry::thread_through_all_blocks): New.
19073 (thread_jumps::profitable_jump_thread_path): Move from here...
19074 (back_threader_profitability::profitable_path_p): ...to here.
19075 (thread_jumps::find_taken_edge): New.
19076 (thread_jumps::convert_and_register_current_path): Move...
19077 (back_threader_registry::register_path): ...to here.
19078 (thread_jumps::register_jump_thread_path_if_profitable): Move...
19079 (thread_jumps::maybe_register_path): ...to here.
19080 (thread_jumps::handle_phi): Call find_taken_edge and
19081 maybe_register_path.
19082 (thread_jumps::handle_assignment): Same.
19083 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
19084 tree argument to handle_phi and handle_assignment.
19085 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
19086 set of m_speed_p and m_max_threaded_paths.
19087 (pass_thread_jumps::execute): Remove second argument from
19088 find_jump_threads_backwards.
19089 (pass_early_thread_jumps::execute): Same.
19091 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
19093 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
19094 (class dom_opt_dom_walker): Initialize some class variables.
19095 (pass_dominator::execute): Pass evrp_range_analyzer and
19096 dom_jump_threader_simplifier to dom_opt_dom_walker.
19097 Adjust for some functions moving into classes.
19098 (simplify_stmt_for_jump_threading): Adjust and move to...
19099 (jump_threader_simplifier::simplify): ...here.
19100 (dom_opt_dom_walker::before_dom_children): Adjust for
19101 m_evrp_range_analyzer.
19102 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
19103 (test_for_singularity): Place in dom_opt_dom_walker class.
19104 (dom_opt_dom_walker::optimize_stmt): The argument
19105 evrp_range_analyzer is now a class field.
19106 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
19107 (thread_jumps::thread_through_all_blocks): New.
19108 (thread_jumps::convert_and_register_current_path): Use m_registry.
19109 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
19110 being in the threader class.
19111 (pass_early_thread_jumps::execute): Same.
19112 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
19113 (jump_threader::jump_threader): ...here.
19114 (threadedge_finalize_values): Move...
19115 (jump_threader::~jump_threader): ...here.
19116 (jump_threader::remove_jump_threads_including): New.
19117 (jump_threader::thread_through_all_blocks): New.
19118 (record_temporary_equivalences_from_phis): Move...
19119 (jump_threader::record_temporary_equivalences_from_phis): ...here.
19120 (record_temporary_equivalences_from_stmts_at_dest): Move...
19121 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
19123 (simplify_control_stmt_condition_1): Move to jump_threader class.
19124 (simplify_control_stmt_condition): Move...
19125 (jump_threader::simplify_control_stmt_condition): ...here.
19126 (thread_around_empty_blocks): Move...
19127 (jump_threader::thread_around_empty_blocks): ...here.
19128 (thread_through_normal_block): Move...
19129 (jump_threader::thread_through_normal_block): ...here.
19130 (thread_across_edge): Move...
19131 (jump_threader::thread_across_edge): ...here.
19132 (thread_outgoing_edges): Move...
19133 (jump_threader::thread_outgoing_edges): ...here.
19134 * tree-ssa-threadedge.h: Move externally facing functings...
19135 (class jump_threader): ...here...
19136 (class jump_threader_simplifier): ...and here.
19137 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
19138 (jump_thread_path_allocator::jump_thread_path_allocator): New.
19139 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
19140 (jump_thread_path_allocator::allocate_thread_edge): New.
19141 (jump_thread_path_allocator::allocate_thread_path): New.
19142 (jump_thread_path_registry::jump_thread_path_registry): New.
19143 (jump_thread_path_registry::~jump_thread_path_registry): New.
19144 (jump_thread_path_registry::allocate_thread_edge): New.
19145 (jump_thread_path_registry::allocate_thread_path): New.
19146 (dump_jump_thread_path): Make extern.
19147 (debug (const vec<jump_thread_edge *> &path)): New.
19148 (struct removed_edges): Move to tree-ssa-threadupdate.h.
19149 (struct thread_stats_d): Remove.
19150 (remove_ctrl_stmt_and_useless_edges): Make static.
19151 (lookup_redirection_data): Move...
19152 (jump_thread_path_registry::lookup_redirection_data): ...here.
19153 (ssa_redirect_edges): Make static.
19154 (thread_block_1): Move...
19155 (jump_thread_path_registry::thread_block_1): ...here.
19156 (thread_block): Move...
19157 (jump_thread_path_registry::thread_block): ...here.
19158 (thread_through_loop_header): Move...
19159 (jump_thread_path_registry::thread_through_loop_header): ...here.
19160 (mark_threaded_blocks): Move...
19161 (jump_thread_path_registry::mark_threaded_blocks): ...here.
19162 (debug_path): Move...
19163 (jump_thread_path_registry::debug_path): ...here.
19164 (debug_all_paths): Move...
19165 (jump_thread_path_registry::dump): ..here.
19166 (rewire_first_differing_edge): Move...
19167 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
19168 (adjust_paths_after_duplication): Move...
19169 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
19170 (duplicate_thread_path): Move...
19171 (jump_thread_path_registry::duplicate_thread_path): ..here.
19172 (remove_jump_threads_including): Move...
19173 (jump_thread_path_registry::remove_jump_threads_including): ...here.
19174 (thread_through_all_blocks): Move to...
19175 (jump_thread_path_registry::thread_through_all_blocks): ...here.
19176 (delete_jump_thread_path): Remove.
19177 (register_jump_thread): Move...
19178 (jump_thread_path_registry::register_jump_thread): ...here.
19179 * tree-ssa-threadupdate.h: Move externally facing functions...
19180 (class jump_thread_path_allocator): ...here...
19181 (class jump_thread_path_registry): ...and here.
19182 (thread_through_all_blocks): Remove.
19183 (struct removed_edges): New.
19184 (register_jump_thread): Remove.
19185 (remove_jump_threads_including): Remove.
19186 (delete_jump_thread_path): Remove.
19187 (remove_ctrl_stmt_and_useless_edges): Remove.
19188 (free_dom_edge_info): New prototype.
19189 * tree-vrp.c: Remove x_vr_values hack.
19190 (class vrp_jump_threader_simplifier): New.
19191 (vrp_jump_threader_simplifier::simplify): New.
19192 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
19193 Remove m_dummy_cond.
19194 Instantiate m_simplifier and m_threader.
19195 (vrp_jump_threader::thread_through_all_blocks): New.
19196 (vrp_jump_threader::simplify_stmt): Remove.
19197 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
19198 Remove x_vr_values hack.
19199 (execute_vrp): Adjust for thread_through_all_blocks being in a
19202 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
19204 * genflags.c (gen_insn): Print failed expansion string.
19206 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
19208 * expr.c (alignment_for_piecewise_move): Call mode_for_size
19209 without limit to MAX_FIXED_MODE_SIZE.
19211 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
19213 PR middle-end/90773
19214 * builtins.c (builtin_memset_gen_str): Don't use return from
19215 simplify_gen_subreg.
19217 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
19220 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
19221 (*addsi3_carry_zext_0r): Ditto.
19222 (*sub<mode>3_carry_0): Ditto.
19223 (*subsi3_carry_zext_0r): Ditto.
19224 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
19226 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
19227 Also consider ix86_carry_flag_unset_operator to calculate
19228 the cost of adc/sbb insn.
19230 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
19232 PR rtl-optimization/100225
19233 PR rtl-optimization/84878
19234 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
19235 where we have an instruction which touches (writes) any hard
19236 register from df->regular_block_artificial_uses set.
19237 Allow not-single-set instruction only right before basic block
19240 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
19242 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
19244 2021-04-30 LevyHsu <admin@levyhsu.com>
19246 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
19247 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
19248 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
19249 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
19251 2021-04-29 Alexandre Oliva <oliva@adacore.com>
19253 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
19255 2021-04-29 Alexandre Oliva <oliva@adacore.com>
19257 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
19258 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
19259 * config/i386/i386.c: Adjust.
19260 * config/i386/i386.md: Adjust.
19261 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
19262 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19263 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19264 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19265 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19266 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19267 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19268 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19269 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19270 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19271 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
19273 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
19275 * config/i386/i386-expand.c (ix86_expand_int_compare):
19276 Swap operands of GTU and LEU comparison to emit carry flag comparison.
19277 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
19278 predicate to allow more combine opportunities with memory operands.
19279 (*sub<mode>3_carry_0): Ditto.
19281 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
19283 PR rtl-optimization/100303
19284 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
19285 boolean that indicates whether the use will only be used in
19286 debug instructions. Treat it in the same way that existing
19287 cross-EBB debug references would be handled if so.
19288 (function_info::make_uses_available): Likewise.
19289 * rtl-ssa/functions.h (function_info::make_uses_available): Update
19290 prototype accordingly.
19291 (function_info::make_uses_available): Likewise.
19292 * fwprop.c (try_fwprop_subst): Update call accordingly.
19294 2021-04-29 Jeff Law <jlaw@tachyum.com>
19296 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
19299 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
19300 Richard Biener <rguenther@suse.de>
19303 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
19304 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
19305 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
19306 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
19307 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
19308 to PURE_ARGS category.
19309 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
19310 Handle PURE_ARGS category.
19311 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
19313 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
19315 * configure.ac: Check for the presence of sys/locking.h header and
19316 for whether _LK_LOCK is supported by _locking.
19317 * configure: Regenerate.
19318 * config.in: Likewise.
19319 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
19320 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
19321 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
19323 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
19325 * config/i386/predicates.md (fcmov_comparison_operator):
19326 Do not check for trivial FP comparison operator.
19327 <case GEU, case LTU>: Allow CCGZmode.
19328 <case GTU, case LEU>: Do not allow CCCmode.
19329 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
19330 (ix86_carry_flag_operator): Match only LTU and UNLT code.
19331 Do not check for trivial FP comparison operator. Allow CCGZmode.
19333 2021-04-29 Tom de Vries <tdevries@suse.de>
19335 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
19336 fd->loop.step by either step or orig_step.
19338 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
19340 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
19341 (load_got_register): Do the PIC dance here.
19342 (sparc_legitimize_tls_address): Simplify.
19343 (sparc_emit_probe_stack_range): Likewise.
19344 (sparc32_initialize_trampoline): Likewise.
19345 (sparc64_initialize_trampoline): Likewise.
19346 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
19347 (probe_stack_range<P:mode>): Likewise.
19348 (flush<P:mode>): Likewise.
19349 (tgd_hi22<P:mode>): Likewise.
19350 (tgd_lo10<P:mode>): Likewise.
19351 (tgd_add<P:mode>): Likewise.
19352 (tgd_call<P:mode>): Likewise.
19353 (tldm_hi22<P:mode>): Likewise.
19354 (tldm_lo10<P:mode>): Likewise.
19355 (tldm_add<P:mode>): Likewise.
19356 (tldm_call<P:mode>): Likewise.
19357 (tldo_hix22<P:mode>): Likewise.
19358 (tldo_lox10<P:mode>): Likewise.
19359 (tldo_add<P:mode>): Likewise.
19360 (tie_hi22<P:mode>): Likewise.
19361 (tie_lo10<P:mode>): Likewise.
19362 (tie_add<P:mode>): Likewise.
19363 (tle_hix22<P:mode>): Likewise.
19364 (tle_lox10<P:mode>): Likewise.
19365 (stack_protect_setsi): Rename to...
19366 (stack_protect_set32): ...this.
19367 (stack_protect_setdi): Rename to...
19368 (stack_protect_set64): ...this.
19369 (stack_protect_set): Adjust calls to above.
19370 (stack_protect_testsi): Rename to...
19371 (stack_protect_test32): ...this.
19372 (stack_protect_testdi): Rename to...
19373 (stack_protect_test64): ...this.
19374 (stack_protect_test): Adjust calls to above.
19376 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
19378 PR middle-end/90773
19379 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
19380 (builtin_strncpy_read_str): Likewise.
19381 (builtin_memset_read_str): Add an argument for the previous RTL
19382 information and generate the new RTL from the previous RTL info.
19383 (builtin_memset_gen_str): Likewise.
19384 * builtins.h (builtin_strncpy_read_str): Update the prototype.
19385 (builtin_memset_read_str): Likewise.
19386 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
19387 returns true, round up size and alignment to the widest integer
19388 mode for maximum size.
19389 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
19390 and pass it to m_constfn.
19391 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
19392 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
19393 initialize m_push. Initialize m_overlap_op_by_pieces with
19394 targetm.overlap_op_by_pieces_p ().
19395 (op_by_pieces_d::run): Pass the previous RTL information to
19396 pieces_addr::adjust and generate overlapping operations if
19397 m_overlap_op_by_pieces is true.
19399 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
19401 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
19403 (can_store_by_pieces): Use by_pieces_constfn on constfun.
19404 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
19405 for op_by_pieces_d change.
19406 (clear_by_pieces_1): Add a dummy argument.
19407 (clear_by_pieces): Updated for op_by_pieces_d change.
19408 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
19409 (string_cst_read_str): Add a dummy argument.
19410 * expr.h (by_pieces_constfn): Add a dummy argument.
19411 (by_pieces_prev): New.
19412 * target.def (overlap_op_by_pieces_p): New target hook.
19413 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
19414 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
19415 * doc/tm.texi: Regenerated.
19417 2021-04-29 Richard Biener <rguenther@suse.de>
19419 PR tree-optimization/100253
19420 * tree-vect-stmts.c (vectorizable_load): Do not assume
19421 element alignment when DR_MISALIGNMENT is -1.
19422 (vectorizable_store): Likewise.
19424 2021-04-29 Jakub Jelinek <jakub@redhat.com>
19427 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
19428 absu_hwi instead of abs_hwi.
19430 2021-04-29 Richard Biener <rguenther@suse.de>
19432 PR middle-end/38474
19433 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
19434 forwarding when indirect forwarding through ESCAPED
19437 2021-04-29 Tom de Vries <tdevries@suse.de>
19440 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
19441 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
19442 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
19443 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
19445 2021-04-29 Richard Biener <rguenther@suse.de>
19447 PR tree-optimization/99912
19448 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
19449 (dse_dom_walker::todo): Likewise.
19450 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
19452 (dse_dom_walker::before_dom_children): Remove trivially
19453 dead SSA defs and schedule CFG cleanup if we removed all
19455 (pass_dse::execute): Get TODO as computed by the DOM walker
19456 and return it. Wipe dominator info earlier.
19458 2021-04-29 Richard Biener <rguenther@suse.de>
19461 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
19462 Track blocks to cleanup EH in new m_need_eh_cleanup.
19463 (ipcp_modif_dom_walker::cleanup_eh): New.
19464 (ipcp_transform_function): Release dominator info before
19467 2021-04-29 Martin Sebor <msebor@redhat.com>
19469 PR middle-end/100250
19470 * attribs.c (attr_access::array_as_string): Avoid dereferencing
19471 a pointer when it's null.
19473 2021-04-29 Martin Sebor <msebor@redhat.com>
19475 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
19476 * ipa-free-lang-data.cc: New file.
19477 * tree.c: Move pass free_lang_data to file above.
19478 (build_array_type_1): Declare extern.
19479 * tree.h (build_array_type_1): Declare.
19481 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19483 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
19484 make consistent with updated RTL pattern.
19485 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
19486 Implement using ss_truncate and us_truncate rather than
19488 * config/aarch64/iterators.md: Remove redundant unspecs and
19489 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
19491 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19493 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
19494 attributes consistent with those defined in arm_neon.h.
19496 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19498 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
19499 attributes consistent with those defined in arm_neon.h.
19501 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19503 * config/aarch64/aarch64-simd-builtins.def: Add
19504 float_trunc_rodd builtin generator macros.
19505 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
19507 (aarch64_float_trunc_rodd_lo_v2sf): Define.
19508 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
19509 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
19510 (aarch64_float_trunc_rodd_hi_v4sf): Define.
19511 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
19512 instead of inline asm.
19513 (vcvtx_high_f32_f64): Likewise.
19514 (vcvtxd_f32_f64): Likewise.
19515 * config/aarch64/iterators.md: Add FCVTXN unspec.
19517 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19519 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
19521 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
19523 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
19524 instead of inline asm.
19525 (vqtbx1_u8): Likewise.
19526 (vqtbx1_p8): Likewise.
19527 (vqtbx1q_s8): Likewise.
19528 (vqtbx1q_u8): Likewise.
19529 (vqtbx1q_p8): Likewise.
19530 (vtbx2_s8): Likewise.
19531 (vtbx2_u8): Likewise.
19532 (vtbx2_p8): Likewise.
19534 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19536 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
19538 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
19539 instead of inline asm.
19540 (vqtbl1_s8): Likewise.
19541 (vqtbl1_u8): Likewise.
19542 (vqtbl1q_p8): Likewise.
19543 (vqtbl1q_s8): Likewise.
19544 (vqtbl1q_u8): Likewise.
19545 (vtbl1_s8): Likewise.
19546 (vtbl1_u8): Likewise.
19547 (vtbl1_p8): Likewise.
19548 (vtbl2_s8): Likewise.
19549 (vtbl2_u8): Likewise.
19550 (vtbl2_p8): Likewise.
19552 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19554 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
19555 ssri_n buitin generator macro.
19556 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
19557 instead of inline asm.
19558 (vsri_n_p16): Likewise.
19559 (vsri_n_p64): Likewise.
19560 (vsriq_n_p8): Likewise.
19561 (vsriq_n_p16): Likewise.
19562 (vsriq_n_p64): Likewise.
19564 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19566 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
19567 iterator for polynomial ssli_n builtin generator macro.
19568 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
19569 instead of inline asm.
19570 (vsli_n_p16): Likewise.
19571 (vsliq_n_p8): Likewise.
19572 (vsliq_n_p16): Likewise.
19573 * config/aarch64/iterators.md: Define VALLP mode iterator.
19575 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19577 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
19578 iterator to generate [su]adalp RTL builtins.
19579 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
19580 [su]adalp RTL pattern.
19581 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
19582 instead of inline asm.
19583 (vpadal_u32): Likewise.
19585 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19587 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
19588 builtin generator macros.
19589 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
19591 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
19592 instead of inline asm.
19593 (vpaddl_s16): Likewise.
19594 (vpaddl_s32): Likewise.
19595 (vpaddl_u8): Likewise.
19596 (vpaddl_u16): Likewise.
19597 (vpaddl_u32): Likewise.
19598 (vpaddlq_s8): Likewise.
19599 (vpaddlq_s16): Likewise.
19600 (vpaddlq_s32): Likewise.
19601 (vpaddlq_u8): Likewise.
19602 (vpaddlq_u16): Likewise.
19603 (vpaddlq_u32): Liwewise.
19604 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
19605 appropriate attributes.
19607 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19609 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
19610 for aarch64_addp<mode> builtin macro generator.
19611 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
19612 aarch64_addp<mode> RTL pattern.
19613 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
19614 instead of inline asm.
19615 (vpaddq_s16): Likewise.
19616 (vpaddq_s32): Likewise.
19617 (vpaddq_s64): Likewise.
19618 (vpaddq_u8): Likewise.
19619 (vpaddq_u16): Likewise.
19620 (vpaddq_u32): Likewise.
19621 (vpaddq_u64): Likewise.
19623 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19625 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
19626 builtin generator macros.
19627 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
19629 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
19630 instead of inline asm.
19631 (vqdmulh_n_s32): Likewise.
19632 (vqdmulhq_n_s16): Likewise.
19633 (vqdmulhq_n_s32): Likewise.
19634 (vqrdmulh_n_s16): Likewise.
19635 (vqrdmulh_n_s32): Likewise.
19636 (vqrdmulhq_n_s16): Likewise.
19637 (vqrdmulhq_n_s32): Likewise.
19639 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
19641 * doc/install.texi (--enable-offload-defaulted): Document.
19643 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
19645 * config/avr/avr-dimode.md: Turn existing patterns into
19646 define_insn_and_split style patterns where the splitter
19647 adds a clobber of the condition code register. Drop "cc"
19648 attribute. Add new patterns to match output of
19650 * config/avr/avr-fixed.md: Likewise.
19651 * config/avr/avr.c (cc_reg_rtx): New.
19652 (avr_parallel_insn_from_insns): Adjust insn count
19653 for removal of set of cc0.
19654 (avr_is_casesi_sequence): Likewise.
19655 (avr_casei_sequence_check_operands): Likewise.
19656 (avr_optimize_casesi): Likewise. Also insert
19657 new insns after jump_insn.
19658 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
19659 for removal of set of cc0.
19660 (avr_init_expanders): Initialize cc_reg_rtx.
19661 (avr_regno_reg_class): Handle REG_CC.
19662 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
19663 (avr_notice_update_cc): Remove function.
19664 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
19665 (compare_condition): Adjust for PARALLEL with
19667 (out_shift_with_cnt): Likewise.
19668 (ashlhi3_out): Likewise.
19669 (ashrhi3_out): Likewise.
19670 (lshrhi3_out): Likewise.
19671 (avr_class_max_nregs): Return single reg for REG_CC.
19672 (avr_compare_pattern): Check for REG_CC instead
19674 (avr_reorg_remove_redundant_compare): Likewise.
19675 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
19676 (avr_hard_regno_nregs): Return single reg for REG_CC.
19677 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
19678 (avr_md_asm_adjust): Clobber REG_CC.
19679 (TARGET_HARD_REGNO_NREGS): Define.
19680 (TARGET_CLASS_MAX_NREGS): Define.
19681 (TARGET_MD_ASM_ADJUST): Define.
19682 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
19684 (enum reg_class): Add CC_REG class.
19685 (NOTICE_UPDATE_CC): Remove.
19686 (CC_OVERFLOW_UNUSABLE): Remove.
19687 (CC_NO_CARRY): Remove.
19688 * config/avr/avr.md: Turn existing patterns into
19689 define_insn_and_split style patterns where the splitter
19690 adds a clobber of the condition code register. Drop "cc"
19691 attribute. Add new patterns to match output of
19693 (sez): Remove unused pattern.
19695 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
19698 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
19701 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
19704 * config/aarch64/constraints.md (Utq): Require the address to
19705 be valid for both the element mode and for V2DImode.
19707 2021-04-28 Jakub Jelinek <jakub@redhat.com>
19708 Tobias Burnus <tobias@codesourcery.com>
19710 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
19711 * gcc.c (process_command): New variable.
19712 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
19713 set it if -foffload is defaulted.
19714 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
19715 (compile_offload_image): If OFFLOAD_DEFAULTED and
19716 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
19717 if corresponding mkoffload can't be found.
19718 (compile_images_for_offload_targets): Likewise. Free and clear
19719 offload_names if no valid offload is found.
19720 * config.in: Regenerate.
19721 * configure: Regenerate.
19723 2021-04-28 Richard Biener <rguenther@suse.de>
19725 PR tree-optimization/100292
19726 * tree-vect-generic.c (expand_vector_condition): Do not fold
19729 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
19731 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
19732 * config/rs6000/aix64.opt (m64): New.
19735 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
19737 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
19738 (index_term_p): Handle ASHIFT too.
19740 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
19742 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
19743 (sync_lock_test_and_set<mode>): Adjust accordingly.
19744 (sync_lock_release<mode>): Likewise.
19746 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
19748 * config/vax/vax-protos.h (adjacent_operands_p): Remove
19750 * config/vax/vax.c (adjacent_operands_p): Remove.
19752 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
19754 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
19755 through to the non-conditional execution case if getting the
19756 condition for conditional execution has failed.
19758 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
19760 PR middle-end/100284
19761 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
19762 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
19763 than asserting on it.
19765 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
19767 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
19768 with TARGET_AIX_OS.
19770 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
19773 * calls.c (precompute_register_parameters): Additionally test
19774 targetm.precompute_tls_p to pre-compute argument.
19775 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
19776 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
19777 * target.def (precompute_tls_p): New.
19778 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
19779 * doc/tm.texi: Regenerated.
19781 2021-04-27 Jakub Jelinek <jakub@redhat.com>
19784 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
19785 back to HOST_WIDE_INT.
19787 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
19790 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
19791 memory alignment for the outer mode.
19793 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
19795 PR middle-end/90773
19796 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
19797 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
19799 2021-04-27 Alex Coplan <alex.coplan@arm.com>
19802 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
19803 with negative immediates: ensure we expand cbranchsi4_scratch
19804 correctly and ensure we satisfy its constraints.
19805 * config/arm/sync.md
19806 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
19807 attempt to tie two output operands together with constraints;
19808 collapse two alternatives.
19809 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
19810 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
19812 2021-04-27 Jakub Jelinek <jakub@redhat.com>
19815 * config/aarch64/predicates.md (aarch64_sub_immediate,
19816 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
19817 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
19818 * config/aarch64/aarch64.c (aarch64_print_operand,
19819 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
19821 2021-04-27 Jakub Jelinek <jakub@redhat.com>
19823 PR tree-optimization/100239
19824 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
19825 permutations with all indices from the first zero element as vec_shl.
19827 2021-04-27 Jakub Jelinek <jakub@redhat.com>
19829 PR rtl-optimization/100254
19830 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
19831 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
19833 2021-04-27 Richard Biener <rguenther@suse.de>
19835 PR tree-optimization/99912
19836 * passes.def: Add comment about new TODO_remove_unused_locals.
19837 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
19840 2021-04-27 Richard Biener <rguenther@suse.de>
19842 PR tree-optimization/99912
19843 * passes.def (pass_all_optimizations): Add pass_dse before
19844 the first pass_dce, move the first pass_dse before the
19845 pass_dce following pass_pre.
19847 2021-04-27 Jakub Jelinek <jakub@redhat.com>
19849 PR tree-optimization/95527
19850 * generic-match-head.c: Include tm.h.
19851 * gimple-match-head.c: Include tm.h.
19852 * match.pd (CLZ == INTEGER_CST): Don't use
19853 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
19854 if clz == CFN_CLZ. Add missing val declaration.
19855 (CTZ cmp CST): New simplifications.
19857 2021-04-27 Jakub Jelinek <jakub@redhat.com>
19859 PR tree-optimization/96696
19860 * expr.c (expand_expr_divmod): New function.
19861 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
19862 divisions. Formatting fixes.
19863 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
19866 2021-04-27 Martin Jambor <mjambor@suse.cz>
19869 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
19870 If removing a call statement LHS SSA name, release it.
19872 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
19875 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
19876 is valid before including it in the mask.
19878 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
19881 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
19884 2021-04-27 Richard Biener <rguenther@suse.de>
19886 PR tree-optimization/100051
19887 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
19888 disambiguator based on access size vs. decl size.
19890 2021-04-27 Richard Biener <rguenther@suse.de>
19892 PR tree-optimization/100278
19893 * tree-ssa-pre.c (compute_avail): Give up when we cannot
19894 adjust TBAA beacuse of mismatching bases.
19896 2021-04-27 Jakub Jelinek <jakub@redhat.com>
19899 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
19900 For any_rotate define_insn_split and following splitters, use
19901 SWI iterator instead of SWI48.
19903 2021-04-27 Richard Biener <rguenther@suse.de>
19905 PR tree-optimization/99776
19906 * match.pd (bit_field_ref (ctor)): Relax element extract
19907 type compatibility checks.
19909 2021-04-27 Cui,Lili <lili.cui@intel.com>
19911 * common/config/i386/i386-common.c (processor_names):
19912 Sync processor_names with processor_type.
19913 * config/i386/i386-options.c (processor_cost_table):
19914 Sync processor_cost_table with processor_type.
19916 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
19918 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
19919 (irange::set): Call irange_set_1bit_anti_range for handling all
19920 1-bit ranges. Fall through on ~[MIN,MAX].
19922 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
19924 * value-range.cc (irange::legacy_num_pairs): Remove.
19925 (irange::invert): Change gcc_assert to gcc_checking_assert.
19926 * value-range.h (irange::num_pairs): Adjust for a cached
19927 num_pairs(). Also, rename all gcc_assert's to
19928 gcc_checking_assert's.
19930 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
19932 * value-range.cc (irange::operator=): Set m_kind.
19933 (irange::copy_to_legacy): Handle varying and undefined sources
19934 as a legacy copy since they can be easily copied.
19935 (irange::irange_set): Set m_kind.
19936 (irange::irange_set_anti_range): Same.
19937 (irange::set): Rename normalize_min_max to normalize_kind.
19938 (irange::verify_range): Adjust for multi-ranges having the
19940 (irange::irange_union): Set m_kind.
19941 (irange::irange_intersect): Same.
19942 (irange::invert): Same.
19943 * value-range.h (irange::kind): Always return m_kind.
19944 (irange::varying_p): Rename to...
19945 (irange::varying_comptaible_p): ...this.
19946 (irange::undefined_p): Only look at m_kind.
19947 (irange::irange): Always set VR_UNDEFINED if applicable.
19948 (irange::set_undefined): Always set VR_UNDEFINED.
19949 (irange::set_varying): Always set m_kind to VR_VARYING.
19950 (irange::normalize_min_max): Rename to...
19951 (irange::normalize_kind): ...this.
19953 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
19955 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
19956 Adjust for constant_p including varying_p.
19957 * tree-vrp.c (vrp_prop::finalize): Same.
19958 (determine_value_range): Same.
19959 * vr-values.c (vr_values::range_of_expr): Same.
19960 * value-range.cc (irange::symbolic_p): Do not check varying_p.
19961 (irange::constant_p): Same.
19963 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
19965 * value-range.cc (irange::legacy_lower_bound): Replace
19966 !undefined_p check with num_ranges > 0.
19967 (irange::legacy_upper_bound): Same.
19968 * value-range.h (irange::type): Same.
19969 (irange::lower_bound): Same.
19970 (irange::upper_bound): Same.
19972 2021-04-26 Richard Biener <rguenther@suse.de>
19974 PR tree-optimization/99956
19975 * gimple-loop-interchange.cc (compute_access_stride):
19976 Try instantiating the access in a shallower loop nest
19977 if instantiating failed.
19978 (compute_access_strides): Pass adjustable loop_nest
19979 to compute_access_stride.
19981 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
19983 * doc/sourcebuild.texi (arm_cmse_hw): Document.
19985 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19987 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
19989 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
19990 Nathan Sidwell <nathan@codesourcery.com>
19991 Tom de Vries <vries@codesourcery.com>
19992 Julian Brown <julian@codesourcery.com>
19993 Kwok Cheung Yeung <kcy@codesourcery.com>
19995 * omp-offload.c (oacc_validate_dims): Implement
19996 '-Wopenacc-parallelism'.
19997 * doc/invoke.texi (-Wopenacc-parallelism): Document.
19999 2021-04-26 Richard Biener <rguenther@suse.de>
20001 * tree-cfg.h (gimplify_build1): Remove.
20002 (gimplify_build2): Likewise.
20003 (gimplify_build3): Likewise.
20004 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
20005 (gimplify_build2): Likewise.
20006 (gimplify_build3): Likewise.
20007 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
20009 (gimplify_build2): Likewise.
20010 (gimplify_build3): Likewise.
20011 (tree_vec_extract): Use resimplify with following SSA edges.
20012 (expand_vector_parallel): Avoid passing NULL size/bitpos
20013 to tree_vec_extract.
20014 * expr.c (store_constructor): Deal with zero-element CTORs.
20015 * match.pd (bit_field_ref <vector CTOR>): Make sure to
20016 produce vector constants when possible.
20018 2021-04-26 Richard Biener <rguenther@suse.de>
20020 * tree-complex.c: Include gimple-fold.h.
20021 (expand_complex_addition): Use gimple_build.
20022 (expand_complex_multiplication_components): Likewise.
20023 (expand_complex_multiplication): Likewise.
20024 (expand_complex_div_straight): Likewise.
20025 (expand_complex_div_wide): Likewise.
20026 (expand_complex_division): Likewise.
20027 (expand_complex_conjugate): Likewise.
20028 (expand_complex_comparison): Likewise.
20030 2021-04-26 Richard Biener <rguenther@suse.de>
20032 * tree-ssa-phiopt.c (two_value_replacement): Remove use
20033 of legacy gimplify_buildN API.
20035 2021-04-26 Richard Biener <rguenther@suse.de>
20037 PR tree-optimization/99473
20038 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
20041 2021-04-26 Richard Biener <rguenther@suse.de>
20043 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
20044 Use replace_call_with_value.
20046 2021-04-26 Richard Biener <rguenther@suse.de>
20048 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
20049 (update_gimple_call): Likewise.
20050 (update_call_from_tree): Likewise.
20051 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
20052 (valid_gimple_call_p): Likewise.
20053 (move_ssa_defining_stmt_for_defs): Likewise.
20054 (finish_update_gimple_call): Likewise.
20055 (update_gimple_call): Likewise.
20056 (update_call_from_tree): Likewise.
20057 (propagate_tree_value_into_stmt): Use replace_call_with_value.
20058 * gimple-fold.h (update_gimple_call): Declare.
20059 * gimple-fold.c (valid_gimple_rhs_p): Move here from
20060 tree-ssa-propagate.c.
20061 (update_gimple_call): Likewise.
20062 (valid_gimple_call_p): Likewise.
20063 (finish_update_gimple_call): Likewise, and simplify.
20064 (gimplify_and_update_call_from_tree): Implement
20065 update_call_from_tree functionality, avoid excessive
20066 push/pop_gimplify_context.
20067 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
20068 (gimple_fold_call): Likewise.
20069 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
20070 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
20071 (pass_fold_builtins::execute): Likewise.
20072 (optimize_stack_restore): Use replace_call_with_value.
20073 * tree-cfg.c (fold_loop_internal_call): Likewise.
20074 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
20075 only gimplify_and_update_call_from_tree.
20076 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
20077 (handle_builtin_strchr): Likewise.
20078 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
20080 2021-04-26 Jakub Jelinek <jakub@redhat.com>
20083 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
20084 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
20087 2021-04-25 liuhongt <hongtao.liu@intel.com>
20090 * config/i386/i386-builtin.def (BDESC): Change the icode of
20091 the following builtins to CODE_FOR_nothing.
20092 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
20093 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
20094 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
20095 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
20096 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
20097 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
20098 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
20099 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
20100 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
20101 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
20102 (sse2_eq<mode>3): Ditto.
20103 (sse4_1_eqv2di3): Ditto.
20104 (sse2_gt<mode>3): Rename to ..
20105 (*sse2_gt<mode>3): .. this.
20107 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
20110 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
20113 * config/darwin.c (darwin_binds_local_p): Assume that any
20114 public symbol might be interposed for PIC code. Update function
20115 header comment to reflect current Darwin capability.
20117 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
20120 * config/darwin.c (darwin_binds_local_p): Assume that any
20121 public symbol might be interposed for PIC code. Update function
20122 header comment to reflect current Darwin capability.
20124 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
20126 * doc/sourcebuild.texi: Document no-opts and any-opts target
20129 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
20131 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
20133 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
20135 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
20137 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
20140 * config/i386/i386-options.c (ix86_option_override_internal):
20141 Error out when -m96bit-long-double is used with 64bit targets.
20142 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
20144 2021-04-23 Martin Liska <mliska@suse.cz>
20146 * lto-wrapper.c: Remove FIXME about usage of
20147 hardware_concurrency. The function is not on par with
20150 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
20153 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
20154 Copy operand 3 to operand 4. Use sse_reg_operand
20155 as operand 3 predicate.
20156 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
20157 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
20158 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
20159 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
20160 Copy operand 1 to operand 0.
20161 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
20162 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
20163 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
20165 2021-04-23 Alex Coplan <alex.coplan@arm.com>
20167 PR rtl-optimization/100230
20168 * early-remat.c (early_remat::sort_candidates): Use delete[]
20169 instead of delete for array allocated with new[].
20171 2021-04-23 Richard Biener <rguenther@suse.de>
20173 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
20174 (capture_info::capture_info): Likewise.
20175 (capture_info::walk_match): Likewise.
20176 (expr::gen_transform): Likewise.
20177 (dt_simplify::gen_1): Likewise.
20178 * gimple-match-head.c (maybe_resimplify_conditional_op):
20179 Remove VEC_COND_EXPR special-casing.
20180 (gimple_simplify): Likewise.
20181 * gimple.c (gimple_could_trap_p_1): Adjust.
20182 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
20183 to participate in PRE.
20185 2021-04-23 Richard Biener <rguenther@suse.de>
20187 * cfganal.c (connect_infinite_loops_to_exit): First call
20188 add_noreturn_fake_exit_edges.
20189 * ipa-sra.c (process_scan_results): Do not call the now redundant
20190 add_noreturn_fake_exit_edges.
20191 * predict.c (tree_estimate_probability): Likewise.
20192 (rebuild_frequencies): Likewise.
20193 * store-motion.c (one_store_motion_pass): Likewise.
20195 2021-04-23 Richard Biener <rguenther@suse.de>
20197 PR tree-optimization/100222
20198 * predict.c (pass_profile::execute): Remove redundant call to
20199 mark_irreducible_loops.
20200 (report_predictor_hitrates): Likewise.
20202 2021-04-23 Richard Biener <rguenther@suse.de>
20204 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
20205 valid_gimple_rhs_p by instead gimplifying to one.
20207 2021-04-23 Richard Biener <rguenther@suse.de>
20209 PR tree-optimization/99971
20210 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
20211 Always use TBAA for loads.
20213 2021-04-23 liuhongt <hongtao.liu@intel.com>
20216 * config/i386/i386-options.c (ix86_option_override_internal):
20217 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
20218 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
20219 by target attribute.
20221 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
20223 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
20225 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
20227 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
20229 * config.gcc (powerpc-ibm-aix6.*): Remove.
20230 * config/rs6000/aix61.h: Delete.
20232 2021-04-22 Martin Liska <mliska@suse.cz>
20234 PR testsuite/100159
20235 PR testsuite/100192
20236 * builtins.c (expand_builtin): Fix typos and missing comments.
20237 * dwarf2out.c (gen_subprogram_die): Likewise.
20238 (gen_struct_or_union_type_die): Likewise.
20240 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
20243 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
20244 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
20246 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
20248 * config/i386/darwin.h (TARGET_64BIT): Remove definition
20249 based on TARGET_ISA_64BIT.
20250 (TARGET_64BIT_P): Remove definition based on
20251 TARGET_ISA_64BIT_P().
20253 2021-04-21 Martin Liska <mliska@suse.cz>
20256 2021-04-21 Martin Liska <mliska@suse.cz>
20258 * lto-wrapper.c (cpuset_popcount): Remove.
20259 (init_num_threads): Remove and use hardware_concurrency.
20261 2021-04-21 Martin Liska <mliska@suse.cz>
20264 * main.c (main): Call toplev::finalize in CHECKING_P mode.
20265 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
20266 when incremental LTO linking happens.
20268 2021-04-21 Martin Liska <mliska@suse.cz>
20270 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
20271 makeserver cannot be detected, then use -flto=N fallback.
20273 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
20275 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
20276 default to yes for aarch64-linux-gnu.
20277 * configure: Regenerate.
20279 2021-04-21 Martin Liska <mliska@suse.cz>
20281 * lto-wrapper.c (cpuset_popcount): Remove.
20282 (init_num_threads): Remove and use hardware_concurrency.
20284 2021-04-21 Martin Liska <mliska@suse.cz>
20286 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
20287 which remains to be '(... || 0)' and clang complains about it.
20288 * dwarf2out.c (AT_vms_delta): Declare conditionally.
20289 (add_AT_vms_delta): Likewise.
20290 * tree.c (fld_simplified_type): Use rather more common pattern
20291 for disabling of something (#if 0).
20292 (get_tree_code_name): Likewise.
20293 (verify_type_variant): Likewise.
20295 2021-04-21 Martin Liska <mliska@suse.cz>
20297 * config/i386/i386-expand.c (decide_alignment): Use newly named
20298 macro TARGET_CPU_P.
20299 * config/i386/i386.c (ix86_decompose_address): Likewise.
20300 (ix86_address_cost): Likewise.
20301 (ix86_lea_outperforms): Likewise.
20302 (ix86_avoid_lea_for_addr): Likewise.
20303 (ix86_add_stmt_cost): Likewise.
20304 * config/i386/i386.h (TARGET_*): Remove.
20305 (TARGET_CPU_P): New macro.
20306 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
20307 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
20308 (swap_top_of_ready_list): Likewise.
20309 (ix86_atom_sched_reorder): Likewise.
20310 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
20311 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
20313 2021-04-21 Martin Liska <mliska@suse.cz>
20315 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
20317 (SET_TARGET_NO_SAHF): Likewise.
20318 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
20319 (SET_TARGET_PREFETCH_SSE): Likewise.
20320 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
20321 (SET_TARGET_NO_TUNE): Likewise.
20322 (TARGET_EXPLICIT_NO_80387_P): Likewise.
20323 (SET_TARGET_NO_80387): Likewise.
20325 * config/i386/i386.h (TARGET_*): Remove.
20326 * opth-gen.awk: Generate new used macros.
20328 2021-04-21 Martin Liska <mliska@suse.cz>
20330 * config/i386/i386.h (PTA_*): Remove.
20331 (enum pta_flag): New.
20332 (DEF_PTA): Generate PTA_* values from i386-isa.def.
20333 * config/i386/i386-isa.def: New file.
20335 2021-04-21 Alex Coplan <alex.coplan@arm.com>
20338 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
20339 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
20340 jump table targets.
20342 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
20344 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
20345 x86_64-*-* targets.
20346 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
20348 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
20349 (ix86_handle_option): Handle -mmwait.
20350 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
20351 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
20352 __builtin_ia32_monitor and __builtin_ia32_mwait.
20353 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
20354 (ix86_valid_target_attribute_inner_p): Likewise.
20355 (ix86_option_override_internal): Enable mwait/monitor
20356 instructions for -msse3.
20357 * config/i386/i386.h (TARGET_MWAIT): New.
20358 (TARGET_MWAIT_P): Likewise.
20359 * config/i386/i386.opt: Add -mmwait.
20360 * config/i386/mwaitintrin.h: New file.
20361 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
20362 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
20364 (@sse3_monitor_<mode>): Likewise.
20365 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
20366 * doc/extend.texi: Document mwait target attribute.
20367 * doc/invoke.texi: Document -mmwait.
20369 2021-04-21 Martin Liska <mliska@suse.cz>
20371 * config/i386/i386-options.c (DEF_ENUM): Remove it.
20372 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
20373 * config/i386/stringop.def (DEF_ENUM): Likewise.
20375 2021-04-21 Martin Liska <mliska@suse.cz>
20377 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
20378 of print_generic_expr.
20380 2021-04-21 Jakub Jelinek <jakub@redhat.com>
20382 PR rtl-optimization/100148
20383 * cprop.c (constprop_register): Use next_nondebug_insn instead of
20386 2021-04-21 Martin Liska <mliska@suse.cz>
20389 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
20390 free_dominance_info calls.
20392 2021-04-21 Richard Biener <rguenther@suse.de>
20394 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
20395 parameter (and assume it to be false).
20396 (fold_gimple_assign): Adjust, remove all callers of
20397 maybe_fold_reference calling it with is_lhs true.
20398 (gimple_fold_call): Likewise.
20399 (fold_stmt_1): Likewise.
20401 2021-04-21 Richard Biener <rguenther@suse.de>
20403 * fold-const.c (pedantic_non_lvalue_loc): Remove.
20404 (fold_binary_loc): Adjust.
20405 (fold_ternary_loc): Likewise.
20407 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
20409 PR middle-end/100130
20410 * varasm.c (get_block_for_decl): Make sure that any use of the
20411 retain attribute matches the section's retain flag.
20412 (switch_to_section): Check for retain mismatches even when
20413 changing sections, but do not warn if the given decl is the
20414 section's named.decl.
20415 (output_object_block): Pass the first decl in the block (if any)
20416 to switch_to_section.
20418 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
20420 * config/i386/i386-c.c (ix86_target_macros_internal): Define
20421 __CRC32__ for -mcrc32.
20422 * config/i386/i386-options.c (ix86_option_override_internal):
20423 Enable crc32 instruction for -msse4.2.
20424 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
20426 (sse4_2_crc32di): Likewise.
20427 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
20430 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
20433 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
20436 2021-04-20 Martin Liska <mliska@suse.cz>
20438 * doc/invoke.texi: Fix typo.
20439 * params.opt: Likewise.
20441 2021-04-20 Martin Liska <mliska@suse.cz>
20443 * doc/invoke.texi: Document new param.
20445 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
20447 PR tree-optimization/100081
20448 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
20449 rather than gori_compute_cache.
20450 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
20451 (range_def_chain::m_logical_depth): New member.
20452 (range_def_chain::range_def_chain): Initialize m_logical_depth.
20453 (range_def_chain::get_def_chain): Don't build defchains through more
20454 than LOGICAL_LIMIT logical expressions.
20455 * params.opt (param_ranger_logical_depth): New.
20457 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
20460 * config/arm/arm.c (arm_configure_build_target): Do not strip
20461 extended FPU/SIMD feature bits from the target ISA when -mfpu
20462 is specified (partial revert of r11-8168).
20464 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
20466 * params.opt (-param=openacc-kernels=): Add.
20467 * omp-oacc-kernels-decompose.cc
20468 (pass_omp_oacc_kernels_decompose::gate): Use it.
20469 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
20470 (--param): ... here, 'openacc-kernels'.
20472 2021-04-19 Martin Liska <mliska@suse.cz>
20475 * gengtype.c (finish_root_table): Align function arguments
20476 in between declaration and definition.
20478 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
20480 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
20481 frames larger than the SEH maximum frame size.
20483 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
20485 PR rtl-optimization/99927
20486 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
20487 is dead, just drop it.
20489 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
20492 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
20493 * doc/tm.texi: Regenerate.
20494 * doc/tm.texi.in (D language and ABI): Add @hook for
20495 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
20497 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
20499 * config/darwin-d.c (darwin_d_handle_target_object_format): New
20501 (darwin_d_register_target_info): New function.
20502 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20503 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
20505 (dragonfly_d_register_target_info): New function.
20506 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20507 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
20509 (freebsd_d_register_target_info): New function.
20510 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20511 * config/glibc-d.c (glibc_d_handle_target_object_format): New
20513 (glibc_d_register_target_info): New function.
20514 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20515 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
20517 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
20518 as handler for objectFormat key.
20519 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
20521 (winnt_d_register_target_info): New function.
20522 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20523 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
20525 (netbsd_d_register_target_info): New function.
20526 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20527 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
20529 (openbsd_d_register_target_info): New function.
20530 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20531 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
20532 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
20533 handler for objectFormat key.
20534 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
20536 (rs6000_d_register_target_info): Add
20537 rs6000_d_handle_target_object_format as handler for objectFormat key.
20538 * config/sol2-d.c (solaris_d_handle_target_object_format): New
20540 (solaris_d_register_target_info): New function.
20541 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20543 2021-04-16 Jakub Jelinek <jakub@redhat.com>
20546 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
20547 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
20549 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
20550 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
20551 the old and new alignment after applying MIN/MAX to it is different.
20553 2021-04-16 Tamar Christina <tamar.christina@arm.com>
20556 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
20557 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
20559 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
20561 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
20563 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
20564 this section and its subsections.
20566 2021-04-16 Jakub Jelinek <jakub@redhat.com>
20569 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
20570 define_insn patterns.
20572 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
20574 PR rtl-optimization/98689
20575 * reg-notes.def (UNTYPED_CALL): New note.
20576 * combine.c (distribute_notes): Handle it.
20577 * emit-rtl.c (try_split): Likewise.
20578 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
20579 that calls with the note implicitly set all return value registers.
20580 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
20583 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
20585 PR rtl-optimization/99596
20586 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
20587 register accesses for const calls. Assume that pure functions
20588 can only read from global registers. Ignore cases in which
20589 the stack pointer has been marked global.
20591 2021-04-16 Jakub Jelinek <jakub@redhat.com>
20594 * tree-vect-loop.c (vect_transform_loop): Don't remove just
20595 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
20596 them by their last argument.
20598 2021-04-15 Martin Liska <mliska@suse.cz>
20600 * doc/invoke.texi: Other params don't use it, remove it.
20602 2021-04-15 Richard Biener <rguenther@suse.de>
20604 * gimple-builder.h: Add deprecation note.
20606 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
20609 * attribs.h (restrict_type_identity_attributes_to): Declare.
20610 * attribs.c (restrict_type_identity_attributes_to): New function.
20612 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
20615 * attribs.h (affects_type_identity_attributes): Declare.
20616 * attribs.c (remove_attributes_matching): New function.
20617 (affects_type_identity_attributes): Likewise.
20619 2021-04-15 Jakub Jelinek <jakub@redhat.com>
20622 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
20623 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
20624 ZERO_EXTEND, SIGN_EXTEND or AND.
20626 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
20628 PR rtl-optimization/99929
20629 * rtl.h (same_vector_encodings_p): New function.
20630 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
20631 * cselib.c (rtx_equal_for_cselib_1): Likewise.
20632 * jump.c (rtx_renumbered_equal_p): Likewise.
20633 * lra-constraints.c (operands_match_p): Likewise.
20634 * reload.c (operands_match_p): Likewise.
20635 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
20637 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
20639 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
20640 more information about variable-length CONST_VECTORs.
20642 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
20644 PR rtl-optimization/100066
20645 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
20646 ordered modes when choosing splitting mode for hard reg.
20648 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
20651 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
20653 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
20655 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
20657 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
20658 for mask operand types.
20659 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
20660 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
20662 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
20664 * config/s390/s390.c (s390_const_operand_ok): Check the new
20665 operand types and generate a list of valid values.
20667 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
20669 * doc/tm.texi: Regenerate.
20670 * doc/tm.texi.in (D language and ABI): Add @hook for
20671 TARGET_D_REGISTER_OS_TARGET_INFO.
20673 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
20675 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
20677 (aarch64_d_register_target_info): New function.
20678 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
20680 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
20682 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
20683 (arm_d_register_target_info): New function.
20684 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
20685 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20686 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
20687 (ix86_d_register_target_info): New function.
20688 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
20689 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20690 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
20691 (mips_d_register_target_info): New function.
20692 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
20693 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20694 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
20695 (pa_d_register_target_info): New function.
20696 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
20697 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20698 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
20700 (riscv_d_register_target_info): New function.
20701 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
20702 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20703 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
20705 (rs6000_d_register_target_info): New function.
20706 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
20708 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20709 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
20710 (s390_d_register_target_info): New function.
20711 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
20712 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20713 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
20715 (sparc_d_register_target_info): New function.
20716 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
20717 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20718 * doc/tm.texi: Regenerate.
20719 * doc/tm.texi.in (D language and ABI): Add @hook for
20720 TARGET_D_REGISTER_CPU_TARGET_INFO.
20722 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
20724 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
20725 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
20726 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
20727 * doc/tm.texi: Regenerate.
20728 * doc/tm.texi.in (D language and ABI): Add @hook for
20729 TARGET_D_HAS_STDCALL_CONVENTION.
20731 2021-04-14 Richard Biener <rguenther@suse.de>
20733 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
20734 VEC_COND_EXPRs have a gimple_val condition.
20735 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
20736 can no longer have a GENERIC condition.
20738 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
20741 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
20742 from the isa_delta when -mfpu has been used.
20743 (arm_options_perform_arch_sanity_checks): It's the architecture that
20744 lacks an FPU not the processor.
20746 2021-04-13 Richard Biener <rguenther@suse.de>
20748 PR tree-optimization/100053
20749 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
20750 not use optimistic dominance queries for backedges to validate
20752 (dominated_by_p_w_unex): Add parameter to ignore executable
20753 state on backedges.
20754 (rpo_elim::eliminate_avail): Adjust.
20756 2021-04-13 Jakub Jelinek <jakub@redhat.com>
20759 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
20760 *aarch64_bfxilsi_extrdi): New define_insn patterns.
20762 2021-04-13 Jakub Jelinek <jakub@redhat.com>
20765 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
20766 outermode, return NULL if the result doesn't encode back to the
20767 original byte sequence.
20768 (simplify_gen_subreg): Don't create SUBREGs from constants to
20769 MODE_COMPOSITE_P outermode.
20771 2021-04-12 Jakub Jelinek <jakub@redhat.com>
20773 PR rtl-optimization/99905
20774 * combine.c (expand_compound_operation): If pos + len > modewidth,
20775 perform the right shift by pos in inner_mode and then convert to mode,
20776 instead of trying to simplify a shift of rtx with inner_mode by pos
20777 as if it was a shift in mode.
20779 2021-04-12 Jakub Jelinek <jakub@redhat.com>
20782 * combine.c (simplify_and_const_int_1): Don't optimize varop
20783 away if it has side-effects.
20785 2021-04-12 Martin Liska <mliska@suse.cz>
20787 * doc/extend.texi: Escape @smallexample content.
20789 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
20791 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
20792 alternative in order to load a DFP zero.
20794 2021-04-12 Martin Liska <mliska@suse.cz>
20796 * doc/extend.texi: Be more precise in documentation
20797 of symver attribute.
20799 2021-04-12 Martin Liska <mliska@suse.cz>
20802 * gimplify.c (gimplify_expr): Right now, we unpoison all
20803 variables before a goto <dest>. We should not do it if we are
20806 2021-04-12 Cui,Lili <lili.cui@intel.com>
20808 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
20810 * common/config/i386/i386-common.c (processor_names): Add
20812 (processor_alias_table): Add rocketlake.
20813 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
20814 INTEL_COREI7_ROCKETLAKE.
20815 * config.gcc: Add -march=rocketlake.
20816 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20818 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
20819 (processor_cost_table): Add rocketlake cost.
20820 * config/i386/i386.h (ix86_size_cost) : Define
20822 (processor_type) : Add PROCESSOR_ROCKETLAKE.
20823 (PTA_ROCKETLAKE): Ditto.
20824 * doc/extend.texi: Add rocketlake.
20825 * doc/invoke.texi: Add rocketlake.
20827 2021-04-12 Cui,Lili <lili.cui@intel.com>
20829 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
20830 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
20831 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
20832 * doc/invoke.texi: Change alderlake ISA list.
20834 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
20836 PR middle-end/98088
20837 * omp-expand.c (expand_oacc_collapse_init): Update condition in
20840 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
20843 * config/i386/serializeintrin.h (_serialize): Defined as macro.
20845 2021-04-10 Jakub Jelinek <jakub@redhat.com>
20848 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
20849 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
20851 2021-04-10 Jakub Jelinek <jakub@redhat.com>
20853 PR middle-end/99989
20854 * gimple-ssa-warn-alloca.c
20855 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
20856 0 with integer precision unconditionally.
20858 2021-04-10 Jakub Jelinek <jakub@redhat.com>
20860 PR rtl-optimization/98601
20861 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
20862 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
20863 unaligned_mems handle VOIDmode like BLKmode.
20865 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
20868 * tree.c (free_lang_data_in_decl): Do not release body of
20869 declare_variant_alt.
20871 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
20873 * config/aarch64/aarch64.c (aarch64_option_restore): If the
20874 architecture was specified explicitly and the tuning wasn't,
20875 tune for the architecture rather than the configured default CPU.
20877 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
20879 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
20880 as the temporary register.
20882 2021-04-09 Martin Liska <mliska@suse.cz>
20884 * doc/extend.texi: Move non-target attributes on the top level.
20886 2021-04-09 Martin Liska <mliska@suse.cz>
20888 * doc/invoke.texi: Document minimum and maximum value of the
20889 argument for both supported compression algorithms.
20891 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
20893 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
20894 TLS BSS before TLS data.
20895 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
20897 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
20899 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
20901 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
20903 * match.pd: Extend vec_cond folds to handle shifts.
20905 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
20907 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
20910 2021-04-08 Alex Coplan <alex.coplan@arm.com>
20913 * config/arm/iterators.md (MVE_vecs): New.
20914 (V_elem): Also handle V2DF.
20915 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
20916 (*mve_vdup<mode>): ... this. Remove second alternative since
20917 vec_duplicate of const_int is not canonical RTL, and we don't
20918 want to match symbol_refs.
20919 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
20921 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
20923 * fold-const.c (fold_single_bit_test): Fix typo.
20924 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
20927 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
20929 PR tree-optimization/97513
20930 * tree-vect-slp.c (vect_add_slp_permutation): New function,
20932 (vectorizable_slp_permutation): ...here. Detect cases in which
20933 all VEC_PERM_EXPRs are guaranteed to have the same stepped
20934 permute vector and only generate one permute vector for that case.
20935 Extend that case to handle variable-length vectors.
20937 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
20939 PR tree-optimization/99873
20940 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
20941 (vect_build_slp_instance): Don't split store groups that could
20942 use IFN_STORE_LANES.
20944 2021-04-07 Jakub Jelinek <jakub@redhat.com>
20947 * varasm.c (output_constant_pool_contents): Don't strip name encoding
20948 from XSTR (desc->sym, 0) or from label before passing those to
20951 2021-04-07 Richard Biener <rguenther@suse.de>
20953 PR tree-optimization/99954
20954 * tree-loop-distribution.c: Include tree-affine.h.
20955 (generate_memcpy_builtin): Try using tree-affine to prove
20957 (loop_distribution::classify_builtin_ldst): Always classify
20960 2021-04-07 Richard Biener <rguenther@suse.de>
20962 PR tree-optimization/99947
20963 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
20964 steps vector to avoid pushing elements from the reallocated
20967 2021-04-07 Richard Biener <rguenther@suse.de>
20969 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
20970 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
20972 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
20974 (debug_vn_reference_ops): New.
20976 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
20978 PR tree-optimization/98736
20979 * tree-loop-distribution.c
20980 * (loop_distribution::bb_top_order_init):
20981 Compute RPO with programing order preserved by calling function
20982 rev_post_order_and_mark_dfs_back_seme.
20984 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
20987 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
20988 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
20990 (process_bb_lives): Don't update biggest mode of hard reg for
20991 implicit in multi-register group. Use the new functions for
20992 updating dead_set and unused_set by register notes.
20994 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
20996 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
20999 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
21001 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
21002 (skylake_memset): Likewise.
21003 (skylake_cost): Change CLEAR_RATIO to 17.
21004 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
21005 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
21006 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
21008 2021-04-06 Richard Biener <rguenther@suse.de>
21010 PR tree-optimization/99880
21011 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
21012 set vectorized defs of relevant PHIs.
21014 2021-04-06 Richard Biener <rguenther@suse.de>
21016 PR tree-optimization/99924
21017 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
21018 nodes w/o scalar stmts as visited.
21020 2021-04-06 Alex Coplan <alex.coplan@arm.com>
21023 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
21024 PCS for [su]fix_optab.
21026 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
21028 * config/darwin.c (machopic_legitimize_pic_address): Check
21029 that the current pic register is one of the hard reg set
21030 before setting liveness.
21032 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
21034 * config/darwin.c (machopic_legitimize_pic_address): Fix
21035 whitespace, remove unused code.
21037 2021-04-03 Jakub Jelinek <jakub@redhat.com>
21039 PR tree-optimization/99882
21040 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
21043 2021-04-03 Jakub Jelinek <jakub@redhat.com>
21045 PR rtl-optimization/99863
21046 * dse.c (replace_read): Drop regs_live argument. Instead of
21047 regs_live, use store_insn->fixed_regs_live if non-NULL,
21048 otherwise punt if insns sequence clobbers or sets any hard
21051 2021-04-03 Jakub Jelinek <jakub@redhat.com>
21054 * targhooks.h (default_print_patchable_function_entry_1): Declare.
21055 * targhooks.c (default_print_patchable_function_entry_1): New function,
21056 copied from default_print_patchable_function_entry with an added flags
21058 (default_print_patchable_function_entry): Rewritten into a small
21059 wrapper around default_print_patchable_function_entry_1.
21060 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
21062 (rs6000_print_patchable_function_entry): New function.
21064 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
21066 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
21068 2021-04-01 Jason Merrill <jason@redhat.com>
21071 * common.opt: Document v15 and v16.
21073 2021-04-01 Richard Biener <rguenther@suse.de>
21075 PR tree-optimization/99863
21076 * gimplify.c (gimplify_init_constructor): Recompute vector
21079 2021-04-01 Jakub Jelinek <jakub@redhat.com>
21081 * doc/extend.texi (symver attribute): Fix up syntax errors
21084 2021-04-01 Jakub Jelinek <jakub@redhat.com>
21086 PR tree-optimization/96573
21087 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
21088 also pointer types.
21090 2021-04-01 Richard Biener <rguenther@suse.de>
21092 PR tree-optimization/99856
21093 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
21094 precision to vector element precision.
21096 2021-04-01 Martin Jambor <mjambor@suse.cz>
21098 PR tree-optimization/97009
21099 * tree-sra.c (access_or_its_child_written): New function.
21100 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
21103 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
21106 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
21108 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
21111 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
21112 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
21113 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
21114 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
21115 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
21116 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
21118 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
21119 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
21120 (define_attr "prefixed"): Update initializer.
21122 2021-03-31 Jakub Jelinek <jakub@redhat.com>
21125 * dwarf2out.c (debug_ranges_dwo_section): New variable.
21126 (DW_RANGES_IDX_SKELETON): Define.
21127 (struct dw_ranges): Add begin_entry and end_entry members.
21128 (DEBUG_DWO_RNGLISTS_SECTION): Define.
21129 (add_ranges_num): Adjust r initializer for addition of *_entry
21131 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
21132 set idx to DW_RANGES_IDX_SKELETON.
21133 (use_distinct_base_address_for_range): New function.
21134 (index_rnglists): Don't set r->idx if it is equal to
21135 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
21136 r->end_entry for -gsplit-dwarf if those will be needed by
21138 (output_rnglists): Add DWO argument. If true, switch to
21139 debug_ranges_dwo_section rather than debug_ranges_section.
21140 Adjust l1/l2 label indexes. Only output the offset table when
21141 dwo is true and don't include in there the skeleton range
21142 entry if present. For -gsplit-dwarf, skip ranges that belong
21143 to the other rnglists section. Change return type from void
21144 to bool and return true if there are any range entries for
21145 the other section. For dwarf_split_debug_info use
21146 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
21147 entries instead of DW_RLE_start_end, DW_RLE_start_length and
21148 DW_RLE_base_address. Use use_distinct_base_address_for_range.
21149 (init_sections_and_labels): Initialize debug_ranges_dwo_section
21150 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
21151 and range_base_label indexes.
21152 (dwarf2out_finish): Call index_rnglists earlier before finalizing
21153 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
21154 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
21155 with different dwo arguments.
21156 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
21158 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21160 PR tree-optimization/98268
21161 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
21162 recompute_tree_invariant_for_addr_expr after successfully
21163 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
21165 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21167 PR tree-optimization/99726
21168 * tree-data-ref.c (create_intersect_range_checks_index): Bail
21169 out if there is more than one access function SCEV for the loop
21172 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21174 PR rtl-optimization/97141
21175 PR rtl-optimization/98726
21176 * emit-rtl.c (valid_for_const_vector_p): Return true for
21178 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
21179 poly_wide_int instead of a wide_int.
21180 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
21182 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
21183 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
21184 false for CONST_VECTORs that cannot be forced to memory.
21185 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
21186 is too complex to force to memory, build it up from individual
21189 2021-03-31 Jan Hubicka <jh@suse.cz>
21192 * cgraph.c (cgraph_node::release_body): Fix overactive check.
21194 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
21197 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
21200 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
21202 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
21203 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
21205 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
21206 "rep movsb/stosb" only for known sizes.
21207 * config/i386/i386-options.c (processor_cost_table): Use Ice
21208 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
21209 Rapids and Alder Lake.
21210 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
21211 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
21212 (icelake_memset): Likewise.
21213 (icelake_cost): Likewise.
21214 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
21217 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21220 * config/aarch64/aarch64.c
21221 (aarch64_vectorize_preferred_vector_alignment): Query the size
21222 of the provided SVE vector; do not assume that all SVE vectors
21223 have the same size.
21225 2021-03-31 Jan Hubicka <jh@suse.cz>
21228 * cgraph.c (cgraph_node::release_body): Remove all callers and
21230 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
21231 * cgraphunit.c (cgraph_node::expand): And here.
21233 2021-03-31 Martin Liska <mliska@suse.cz>
21235 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
21236 and one negated condition.
21238 2021-03-31 Jakub Jelinek <jakub@redhat.com>
21239 Richard Sandiford <richard.sandiford@arm.com>
21242 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
21243 constraints on operands[2] and similarly 0 and rk constraints
21244 on operands[1] corresponding to that.
21246 2021-03-31 Jakub Jelinek <jakub@redhat.com>
21249 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
21250 linker doesn't support DWARF sections new in DWARF5.
21251 * config/i386/i386-options.c (ix86_option_override_internal): Default
21252 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
21254 * config.in: Regenerated.
21255 * configure: Regenerated.
21257 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21260 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
21261 available issue_info before using it.
21263 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21266 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
21269 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
21272 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
21273 (altivec_lvsl_reg_<mode>): ... this.
21274 (altivec_lvsr_reg): Change to ...
21275 (altivec_lvsr_reg_<mode>): ... this.
21276 * config/rs6000/predicates.md (vec_set_index_operand): New.
21277 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21278 Enable 32bit variable vec_insert for all TARGET_VSX.
21279 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
21280 Enable 32bit variable vec_insert for p9 and above.
21281 (rs6000_expand_vector_set_var_p8): Rename to ...
21282 (rs6000_expand_vector_set_var_p7): ... this.
21283 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
21285 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
21286 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
21287 gen_altivec_lvsr_reg_di.
21289 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
21292 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
21293 (__rdtscp): Likewise.
21295 2021-03-30 Tamar Christina <tamar.christina@arm.com>
21297 PR tree-optimization/99825
21298 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
21299 Reject non-mult 2 lanes.
21301 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
21304 * config/arm/arm.c (arm_file_start): Fix emission of
21305 Tag_ABI_VFP_args attribute.
21307 2021-03-30 Richard Biener <rguenther@suse.de>
21309 PR tree-optimization/99824
21310 * stor-layout.c (set_min_and_max_values_for_integral_type):
21311 Assert the precision is within the bounds of
21312 WIDE_INT_MAX_PRECISION.
21313 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
21314 the outermost component ref only to lower the access size
21315 and initialize that from the access type.
21317 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
21320 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
21321 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
21323 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
21325 * config/aarch64/aarch64.md
21326 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
21327 attribute to disambiguate between SIMD and FP variants of the
21330 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
21332 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
21333 (analyze_ssa_name_flags): Fix typo in comment.
21335 2021-03-29 Alex Coplan <alex.coplan@arm.com>
21338 * config/aarch64/aarch64-sve-builtins.cc
21339 (function_builder::add_function): Add placeholder_p argument, use
21340 placeholder decls if this is set.
21341 (function_builder::add_unique_function): Instead of conditionally adding
21342 direct overloads, unconditionally add either a direct overload or a
21344 (function_builder::add_overloaded_function): Set placeholder_p if we're
21345 using C++ overloads. Use the obstack for string storage instead
21346 of relying on the tree nodes.
21347 (function_builder::add_overloaded_functions): Don't return early for
21348 m_direct_overloads: we need to add placeholders.
21349 * config/aarch64/aarch64-sve-builtins.h
21350 (function_builder::add_function): Add placeholder_p argument.
21352 2021-03-29 Richard Biener <rguenther@suse.de>
21354 PR tree-optimization/99807
21355 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
21356 assert below VEC_PERM handling.
21358 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21361 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
21362 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
21363 matching const_int 0.
21364 (move_lo_quad_internal_be_<mode>): Likewise.
21365 (move_lo_quad_<mode>): Update for the above.
21366 * config/aarch64/iterators.md (VQ_2E): Delete.
21368 2021-03-29 Jakub Jelinek <jakub@redhat.com>
21370 PR tree-optimization/99777
21371 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
21372 types other than scalar integral types.
21374 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
21376 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
21377 XCOFF TLS reloc decorations.
21379 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
21381 * doc/analyzer.texi (Analyzer Internals): Update link to
21382 "A Memory Model for Static Analysis of C Programs".
21384 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
21386 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
21387 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
21389 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
21390 (rs6000_special_round_type_align): Recursively check innermost first
21393 2021-03-26 Jakub Jelinek <jakub@redhat.com>
21396 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
21397 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
21398 assignment with drap_reg active, queue reg save for hfp with offset 0
21399 and flush queued reg saves. When handling a push with rule18,
21400 defer queueing reg save for hfp and just assert the offset is 0.
21401 (scan_trace): Assert that fde->rule18 is false.
21403 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
21406 * ira-costs.c (record_reg_classes): Put case with
21407 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
21408 * ira.c (ira_setup_alts): Ditto.
21409 * lra-constraints.c (process_alt_operands): Ditto.
21410 * recog.c (asm_operand_ok): Ditto.
21411 * reload.c (find_reloads): Ditto.
21413 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21415 * config/aarch64/aarch64-protos.h
21416 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
21417 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
21418 * config/aarch64/aarch64.c (generic_addrcost_table): Update
21419 accordingly, using the same costs as for post_modify.
21420 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
21421 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
21422 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
21423 (a64fx_addrcost_table): Likewise.
21424 (neoversev1_addrcost_table): New.
21425 (neoversev1_tunings): Use neoversev1_addrcost_table.
21426 (aarch64_address_cost): Use the new post_modify costs for CImode
21429 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21431 * config/aarch64/aarch64.opt
21432 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
21433 * doc/invoke.texi: Document it.
21434 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
21435 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
21436 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
21437 (aarch64_vec_issue_info): New structures.
21438 (cpu_vector_cost): Write comments above the variables rather
21440 (cpu_vector_cost::issue_info): New member variable.
21441 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
21442 and tree-ssa-loop-niter.h.
21443 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
21444 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
21445 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
21446 (thunderx3t110_vector_cost): Initialize issue_info to null.
21447 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
21448 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
21449 (neoversev1_vector_cost): Use them.
21450 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
21451 (aarch64_vector_costs::saw_sve_only_op): New member variable.
21452 (aarch64_vector_costs::num_vector_iterations): Likewise.
21453 (aarch64_vector_costs::scalar_ops): Likewise.
21454 (aarch64_vector_costs::advsimd_ops): Likewise.
21455 (aarch64_vector_costs::sve_ops): Likewise.
21456 (aarch64_vector_costs::seen_loads): Likewise.
21457 (aarch64_simd_vec_costs_for_flags): New function.
21458 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
21459 Count the number of predicate operations required by SVE WHILE
21461 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
21462 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
21463 (aarch64_count_ops): Likewise.
21464 (aarch64_add_stmt_cost): Record whether see an SVE operation
21465 that cannot currently be implementing using Advanced SIMD.
21466 Record issue information about the scalar, Advanced SIMD
21467 and (where relevant) SVE versions of a loop.
21468 (aarch64_vec_op_count::dump): New function.
21469 (aarch64_sve_op_count::dump): Likewise.
21470 (aarch64_estimate_min_cycles_per_iter): Likewise.
21471 (aarch64_adjust_body_cost): If issue information is available,
21472 try to compare the issue rates of the various loop implementations
21473 and increase or decrease the vector body cost accordingly.
21475 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21477 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
21478 Assume a zero cost for induction phis.
21480 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21482 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
21484 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
21485 vector comparisons.
21487 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21489 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
21491 (aarch64_add_stmt_cost): Call it.
21493 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21495 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
21496 New tuning parameter.
21497 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
21498 (aarch64_estimated_sve_vq): New function.
21499 (aarch64_vector_costs::analyzed_vinfo): New member variable.
21500 (aarch64_vector_costs::is_loop): Likewise.
21501 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
21502 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
21503 (aarch64_record_potential_advsimd_unrolling): New function.
21504 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
21505 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
21506 aarch64_analyze_bb_vinfo on the first use of a costs structure.
21507 Detect whether we're vectorizing a loop for SVE that might be
21508 completely unrolled if it used Advanced SIMD instead.
21509 (aarch64_adjust_body_cost_for_latency): New function.
21510 (aarch64_finish_cost): Call it.
21512 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21514 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
21515 (aarch64_init_cost): New function.
21516 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
21517 the default unsigned[3].
21518 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
21519 (TARGET_VECTORIZE_INIT_COST): Override.
21520 (TARGET_VECTORIZE_FINISH_COST): Likewise.
21521 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
21523 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21525 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
21526 (neoversev1_sve_vector_cost): New cost structures.
21527 (neoversev1_vector_cost): Likewise.
21528 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
21530 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21532 * config/aarch64/aarch64-protos.h
21533 (sve_vec_cost::scatter_store_elt_cost): New member variable.
21534 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
21535 accordingly, taking the cost from the cost of a scalar_store.
21536 (a64fx_sve_vector_cost): Likewise.
21537 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
21539 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21541 * config/aarch64/aarch64-protos.h
21542 (simd_vec_cost::store_elt_extra_cost): New member variable.
21543 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
21544 accordingly, using the vec_to_scalar cost for the new field.
21545 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
21546 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
21547 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
21548 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
21549 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
21550 (thunderx3t110_advsimd_vector_cost): Likewise.
21551 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
21553 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21555 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
21556 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
21557 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
21558 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
21559 accordingly, using zero for the new costs.
21560 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
21561 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
21562 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
21563 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
21564 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
21565 (thunderx3t110_advsimd_vector_cost): Likewise.
21566 (aarch64_ld234_st234_vectors): New function.
21567 (aarch64_adjust_stmt_cost): Likewise.
21568 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
21569 the new vector costs.
21571 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21573 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
21574 derived class of simd_vec_cost. Add information about CLAST[AB]
21575 and FADDA instructions.
21576 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
21577 accordingly, using the vec_to_scalar costs for the new fields.
21578 (a64fx_sve_vector_cost): Likewise.
21579 (aarch64_reduc_type): New function.
21580 (aarch64_sve_in_loop_reduction_latency): Likewise.
21581 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
21582 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
21583 that occur in the loop body.
21584 (aarch64_add_stmt_cost): Update call accordingly.
21586 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21588 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
21590 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
21591 above the fields rather than to the right.
21592 (simd_vec_cost::reduc_i8_cost): New member variable.
21593 (simd_vec_cost::reduc_i16_cost): Likewise.
21594 (simd_vec_cost::reduc_i32_cost): Likewise.
21595 (simd_vec_cost::reduc_i64_cost): Likewise.
21596 (simd_vec_cost::reduc_f16_cost): Likewise.
21597 (simd_vec_cost::reduc_f32_cost): Likewise.
21598 (simd_vec_cost::reduc_f64_cost): Likewise.
21599 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
21600 accordingly, using the vec_to_scalar_cost for the new fields.
21601 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
21602 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
21603 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
21604 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
21605 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
21606 (thunderx3t110_advsimd_vector_cost): Likewise.
21607 (aarch64_use_new_vector_costs_p): New function.
21608 (aarch64_simd_vec_costs): New function, split out from...
21609 (aarch64_builtin_vectorization_cost): ...here.
21610 (aarch64_is_reduction): New function.
21611 (aarch64_detect_vector_stmt_subtype): Likewise.
21612 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
21613 using the new vector costs.
21615 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
21618 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
21619 TLS declarations as public.
21621 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
21623 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
21624 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
21625 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
21626 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
21627 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
21628 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
21629 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
21630 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
21631 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
21633 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
21636 * config.gcc (*-*-cygwin*): Add winnt-d.o
21637 (*-*-mingw*): Likewise.
21638 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
21639 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
21640 * config/i386/t-cygming: Add winnt-d.o.
21641 * config/i386/winnt-d.c: New file.
21643 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
21645 * config/freebsd-d.c: Include memmodel.h.
21647 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
21650 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
21651 * config/t-openbsd: Add openbsd-d.o.
21652 * config/openbsd-d.c: New file.
21654 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
21656 PR tree-optimization/96974
21657 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
21658 with graceful exit.
21660 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
21663 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
21667 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
21668 always_inline in system headers.
21670 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
21672 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
21674 2021-03-25 Jakub Jelinek <jakub@redhat.com>
21677 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
21678 * fold-const.c (operand_compare::operand_equal_p): Don't compare
21679 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
21681 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
21685 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
21686 always_inline in system headers.
21688 2021-03-25 Richard Biener <rguenther@suse.de>
21690 PR tree-optimization/99746
21691 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
21692 the scalar stmt as patterned. Instead set up required things
21695 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
21697 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
21700 2021-03-24 Martin Liska <mliska@suse.cz>
21703 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
21705 * config/i386/i386-options.c (ix86_option_override_internal):
21706 Add run-time assert.
21708 2021-03-24 Martin Jambor <mjambor@suse.cz>
21711 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
21712 parameters with unknown type.
21713 (ipacp_value_safe_for_type): New function.
21714 (propagate_vals_across_arith_jfunc): Verify that the constant type
21715 can be used for a type of the formal parameter.
21716 (propagate_vals_across_ancestor): Likewise.
21717 (propagate_scalar_across_jump_function): Likewise. Pass the type
21718 also to propagate_vals_across_ancestor.
21720 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
21723 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
21725 (movmisalign<mode>_mve_load): Likewise.
21727 2021-03-24 Jakub Jelinek <jakub@redhat.com>
21730 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
21731 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
21733 2021-03-24 Alexandre Oliva <oliva@adacore.com>
21735 * doc/sourcebuild.texi (sysconf): New effective target.
21737 2021-03-24 Alexandre Oliva <oliva@adacore.com>
21739 * config/i386/predicates.md (reg_or_const_vec_operand): New.
21740 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
21741 the now *-prefixed insn_and_split, turn the splitter const vec
21742 into an input for the insn, making it an ignored immediate for
21743 non-split cases, and loaded into the scratch register
21746 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
21749 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
21750 Use define_relaxed_memory_constraint for them.
21752 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
21755 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
21756 colon to the diagnostic message.
21758 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
21760 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
21762 (try_fwprop_subst_note): Use set_info instead of insn_info.
21763 (try_fwprop_subst_pattern): Likewise.
21764 (try_fwprop_subst_notes): Likewise.
21765 (try_fwprop_subst): Likewise.
21766 (forward_propagate_subreg): Likewise.
21767 (forward_propagate_and_simplify): Likewise.
21768 (forward_propagate_into): Likewise.
21769 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
21771 (set_info::single_nondebug_insn_use): Likewise.
21772 (set_info::single_phi_use): Likewise.
21773 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
21775 (set_info::single_nondebug_insn_use): Likewise.
21776 (set_info::single_phi_use): Likewise.
21778 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
21780 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
21782 2021-03-23 Jakub Jelinek <jakub@redhat.com>
21785 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
21786 expand_mult to perform an unsigned rather than a signed
21789 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
21792 * config/i386/cpuid.h (__cpuid): Add __volatile__.
21793 (__cpuid_count): Likewise.
21795 2021-03-23 Richard Biener <rguenther@suse.de>
21797 PR tree-optimization/99721
21798 * tree-vect-slp.c (vect_slp_analyze_node_operations):
21799 Make sure we can schedule the node.
21801 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
21803 * config/riscv/riscv.c (riscv_subword): Take endianness into
21804 account when calculating the byte offset.
21806 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
21808 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
21809 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
21810 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
21811 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
21812 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
21813 new predicate "subreg_lowpart_operator"
21815 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
21817 * config/riscv/riscv.c (riscv_swap_instruction): New function
21818 to byteswap an SImode rtx containing an instruction.
21819 (riscv_trampoline_init): Byteswap the generated instructions
21822 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
21824 * common/config/riscv/riscv-common.c
21825 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
21826 * config.gcc (riscv32be-*, riscv64be-*): Set
21827 TARGET_BIG_ENDIAN_DEFAULT to 1.
21828 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
21829 depending on default endianness.
21830 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
21831 * config/riscv/linux.h (LINK_SPEC): Likewise.
21832 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
21833 default endianness.
21834 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
21836 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
21838 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
21839 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
21840 * config/riscv/linux.h (LINK_SPEC): Likewise.
21841 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
21843 (BYTES_BIG_ENDIAN): Handle big endian.
21844 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
21845 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
21847 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
21849 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
21851 * regcprop.c (find_oldest_value_reg): Ask target whether
21852 different mode is fine for replacement register.
21854 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
21856 PR tree-optimization/99296
21857 * value-range.cc (irange::irange_set_1bit_anti_range): New.
21858 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
21859 * value-range.h (irange::irange_set_1bit_anti_range): New.
21861 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
21864 * config/aarch64/constraints.md (UtQ): Use
21865 define_relaxed_memory_constraint for it.
21866 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
21867 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
21868 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
21869 (have_relaxed_memory_constraints): New static var.
21870 (relaxed_memory_start, relaxed_memory_end): Ditto.
21871 (add_constraint): Add arg is_relaxed_memory. Check name for
21872 relaxed memory. Set up is_relaxed_memory in constraint_data and
21873 have_relaxed_memory_constraints. Adjust calls.
21874 (choose_enum_order): Process relaxed memory.
21875 (write_tm_preds_h): Ditto.
21876 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
21877 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
21878 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
21879 * ira-lives.c (single_reg_class): Use
21880 insn_extra_relaxed_memory_constraint.
21881 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
21882 * lra-constraints.c (valid_address_p): Use
21883 insn_extra_relaxed_memory_constraint instead of other memory
21885 (process_alt_operands): Process CT_RELAXED_MEMORY.
21886 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
21887 * recog.c (asm_operand_ok, preprocess_constraints): Process
21889 * reload.c (find_reloads): Ditto.
21890 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
21891 * stmt.c (parse_input_constraint): Use
21892 insn_extra_relaxed_memory_constraint.
21894 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
21897 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
21900 2021-03-22 Alex Coplan <alex.coplan@arm.com>
21903 * config/arm/arm-protos.h (neon_make_constant): Add generate
21904 argument to guard emitting insns, default to true.
21905 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
21906 CONST_VECTORs which neon_make_constant can't handle.
21907 (neon_vdup_constant): Add generate argument, avoid emitting
21908 insns if it's not set.
21909 (neon_make_constant): Plumb new generate argument through.
21910 * config/arm/constraints.md (Ui): New. Use it...
21911 * config/arm/mve.md (*mve_mov<mode>): ... here.
21912 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
21913 synthesize constants.
21915 2021-03-22 Richard Biener <rguenther@suse.de>
21917 * debug.h: Add deprecation warning.
21919 2021-03-22 Richard Biener <rguenther@suse.de>
21921 PR tree-optimization/99694
21922 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
21925 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
21928 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
21929 after type checking.
21931 2021-03-22 Jakub Jelinek <jakub@redhat.com>
21935 * dwarf2out.c (get_full_len): Use get_precision rather than
21937 (add_const_value_attribute): Make sure add_AT_wide argument has
21938 precision prec rather than some very wide one.
21940 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
21942 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
21943 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
21944 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
21945 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
21946 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
21947 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
21948 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
21949 *fix_trunc<mode>si2_internal): Fix empty split condition.
21950 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
21951 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
21952 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
21953 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
21955 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
21958 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
21959 Convert idx to DImode.
21960 (rs6000_expand_vector_set_var_p8): Likewise.
21962 2021-03-21 Jakub Jelinek <jakub@redhat.com>
21965 * dwarf2out.c (insert_float): Change return type from void to
21966 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
21967 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
21970 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
21973 * config/i386/i386.c (construct_container): Check cfun != NULL
21974 before accessing silent_p.
21976 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
21978 * asan.c: Fix typos in comments.
21980 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
21982 PR rtl-optimization/99680
21983 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
21984 (process_address_1): Check empty constraint before using
21987 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
21989 * config/rs6000/rs6000.c (power10_cost): New.
21990 (rs6000_option_override_internal): Set Power10 costs.
21991 (rs6000_issue_rate): Set Power10 issue rate.
21992 * config/rs6000/power10.md: Rewrite for Power10.
21994 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
21997 * lra-constraints.c (process_address_1): Don't use unknown
21998 constraint for address constraint.
22000 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
22003 * config.gcc (powerpc-*-darwin8): Delete the reference to
22004 the now removed darwin8.h.
22006 2021-03-19 Olivier Hainque <hainque@adacore.com>
22009 * config/vxworksae.h (VX_CPU_PREFIX): Define.
22011 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
22013 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
22015 2021-03-19 Tamar Christina <tamar.christina@arm.com>
22017 PR tree-optimization/99656
22018 * tree-vect-slp-patterns.c (linear_loads_p,
22019 complex_add_pattern::matches, is_eq_or_top,
22020 vect_validate_multiplication, complex_mul_pattern::matches,
22021 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
22022 * tree-vectorizer.h: (complex_load_perm_t): Removed.
22023 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
22024 complex_load_perm_t.
22026 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
22029 * config/i386/i386-options.c (ix86_init_machine_status): Set
22031 * config/i386/i386.c (init_cumulative_args): Set silent_p to
22033 (construct_container): Return early for return and argument
22034 errors if silent_p is true.
22035 * config/i386/i386.h (machine_function): Add silent_p.
22037 2021-03-19 Jakub Jelinek <jakub@redhat.com>
22040 * config/arm/constraints.md (Ds): New constraint.
22041 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
22042 constraint instead of w,Dm.
22044 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
22046 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
22049 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
22051 PR middle-end/99641
22052 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
22053 array type, do the computation of the current position in sizetype.
22055 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
22058 * lra-constraints.c (process_address_1): Use lookup_constraint
22059 only for a single constraint.
22061 2021-03-18 Martin Sebor <msebor@redhat.com>
22063 PR middle-end/99502
22064 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
22065 (inbounds_memaccess_p): ...to this. Check the ending offset of
22066 the accessed member.
22068 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
22070 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
22071 %> quote markers to error messages.
22072 (gcn_goacc_validate_dims): Likewise.
22073 (gcn_conditional_register_usage): Remove exclaimation mark from error
22075 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
22077 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
22079 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
22082 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
22083 Kito Cheng <kito.cheng@sifive.com>
22085 * config/riscv/riscv.c (riscv_block_move_straight): Change type
22086 to unsigned HOST_WIDE_INT for parameter and local variable with
22087 HOST_WIDE_INT type.
22088 (riscv_adjust_block_mem): Ditto.
22089 (riscv_block_move_loop): Ditto.
22090 (riscv_expand_block_move): Ditto.
22092 2021-03-18 Nick Clifton <nickc@redhat.com>
22094 * config/v850/v850.c (construct_restore_jr): Increase static
22096 (construct_save_jarl): Likewise.
22097 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
22099 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22101 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
22102 (aarch64_override_options_internal): Use it.
22103 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
22106 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
22108 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
22109 error message format issues.
22110 (nios2_option_override): Likewise.
22111 (nios2_expand_fpu_builtin): Likewise.
22112 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
22113 truncation warning.
22114 (nios2_expand_custom_builtin): More error message format fixes.
22115 (nios2_expand_rdwrctl_builtin): Likewise.
22116 (nios2_expand_rdprs_builtin): Likewise.
22117 (nios2_expand_eni_builtin): Likewise.
22118 (nios2_expand_builtin): Likewise.
22119 (nios2_register_custom_code): Likewise.
22120 (nios2_valid_target_attribute_rec): Likewise.
22121 (nios2_add_insn_asm): Fix uninitialized variable warning.
22123 2021-03-17 Jan Hubicka <jh@suse.cz>
22125 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
22126 of gather to match reality.
22127 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
22129 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22131 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
22132 to compare against CC_REG rather than NE.
22134 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
22137 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
22138 inline assembly statements.
22139 (ix86_print_operand): Update 'P' handling for -fno-plt.
22141 2021-03-17 Tamar Christina <tamar.christina@arm.com>
22144 * config/aarch64/aarch64.c
22145 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
22147 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
22150 * config/rs6000/predicates.md (branch_comparison_operator): Allow
22151 ordered and unordered for CCFPmode, if flag_finite_math_only.
22153 2021-03-16 Jakub Jelinek <jakub@redhat.com>
22156 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
22157 rather than ASHIFT.
22158 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
22160 2021-03-16 Martin Liska <mliska@suse.cz>
22163 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
22164 cl_optimization_compare function.
22166 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
22168 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
22171 2021-03-16 Jakub Jelinek <jakub@redhat.com>
22174 * config/i386/i386.h (struct machine_function): Add
22175 has_explicit_vzeroupper bitfield.
22176 * config/i386/i386-expand.c (ix86_expand_builtin): Set
22177 cfun->machine->has_explicit_vzeroupper when expanding
22178 IX86_BUILTIN_VZEROUPPER.
22179 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
22180 Do the mode switching only when TARGET_VZEROUPPER, expensive
22181 optimizations turned on and not optimizing for size.
22182 (pass_insert_vzeroupper::gate): Enable even when
22183 cfun->machine->has_explicit_vzeroupper is set.
22185 2021-03-16 Jakub Jelinek <jakub@redhat.com>
22188 * config/aarch64/aarch64.c
22189 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
22190 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
22191 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
22193 2021-03-15 Richard Biener <rguenther@suse.de>
22195 PR tree-optimization/98834
22196 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
22197 subsetting by truncating the access size.
22199 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
22201 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
22202 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
22205 2021-03-15 Martin Liska <mliska@suse.cz>
22207 * spellcheck.c: Add missing comma in initialization.
22209 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
22211 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
22212 alternative 2 and alternative 1 with alternative 3 using
22213 YW register constraint.
22214 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
22215 using YW register constraint.
22216 (*vec_extractv16qi_zext): Ditto.
22217 (*vec_extractv4si): Merge alternatives 4 and 5
22218 using Yw register constraint.
22219 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
22221 2021-03-13 Martin Sebor <msebor@redhat.com>
22223 PR tree-optimization/99489
22224 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
22225 is not a call statement.
22227 2021-03-13 Jakub Jelinek <jakub@redhat.com>
22229 PR tree-optimization/99544
22230 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
22231 if for vector types multiplication can't be done in type's mode.
22233 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
22236 * config/sparc/constraints.md (w): Rename to...
22237 (W): ... this and ditch previous implementation.
22238 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
22239 (*movdf_insn_sp64): Likewise.
22240 (*mov<VM64:mode>_insn_sp64): Likewise.
22241 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
22243 (atomic_compare_and_swap_leon3_1): Likewise.
22244 (*atomic_compare_and_swapdi_v8plus): Likewise.
22245 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
22246 architecture and add missing address validity check during LRA.
22248 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
22251 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
22252 occuring for assumed-size arrays in use_device_{ptr,addr}.
22254 2021-03-12 Jakub Jelinek <jakub@redhat.com>
22257 * config/i386/constraints.md (YW): New internal constraint.
22258 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
22259 (*<sse2_avx2>_<insn><mode>3<mask_name>,
22260 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
22261 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
22263 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
22264 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
22265 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
22266 into one, use Yw instead of former x,v.
22267 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
22268 the last alternative.
22269 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
22270 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
22271 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
22272 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
22273 into one, use <v_Yw> instead of former x,v.
22274 (avx2_interleave_highv32qi<mask_name>,
22275 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
22276 constraints. Add && <mask_avx512bw_condition> to condition.
22277 (avx2_interleave_lowv32qi<mask_name>,
22278 vec_interleave_lowv16qi<mask_name>,
22279 avx2_interleave_highv16hi<mask_name>,
22280 vec_interleave_highv8hi<mask_name>,
22281 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
22282 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
22283 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
22284 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
22285 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
22286 Yw instead of v in constraints.
22287 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
22288 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
22289 instead of Yv in constraints.
22290 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
22291 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
22292 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
22293 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
22294 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
22296 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
22297 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
22298 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
22299 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
22300 two, one with just x, another isa avx512vl with v.
22302 2021-03-12 Martin Liska <mliska@suse.cz>
22304 * doc/invoke.texi: Add missing param documentation.
22306 2021-03-11 David Malcolm <dmalcolm@redhat.com>
22309 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
22310 analyzer/trimmed-graph.o.
22311 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
22312 feasibility checking to reflect new implementation.
22313 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
22315 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
22317 2021-03-11 David Malcolm <dmalcolm@redhat.com>
22319 * digraph.cc (selftest::test_shortest_paths): Update
22320 shortest_paths init for new param. Add test of
22321 SPS_TO_GIVEN_TARGET.
22322 * shortest-paths.h (enum shortest_path_sense): New.
22323 (shortest_paths::shortest_paths): Add "sense" param.
22324 Update for renamings. Generalize to use "sense" param.
22325 (shortest_paths::get_shortest_path): Rename param.
22326 (shortest_paths::m_sense): New field.
22327 (shortest_paths::m_prev): Rename...
22328 (shortest_paths::m_best_edge): ...to this.
22329 (shortest_paths::get_shortest_path): Update for renamings.
22330 Conditionalize flipping of path on sense of traversal.
22332 2021-03-11 David Malcolm <dmalcolm@redhat.com>
22334 * digraph.cc (selftest::test_shortest_paths): Add test coverage
22335 for paths from B and C.
22336 * shortest-paths.h (shortest_paths::shortest_paths): Handle
22337 unreachable nodes, rather than asserting.
22339 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
22342 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
22343 xcoff_tbss_section_name.
22344 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
22345 * xcoffout.c (xcoff_tbss_section_name): Delete.
22346 * xcoffout.h (xcoff_tbss_section_name): Delete.
22348 2021-03-11 Richard Biener <rguenther@suse.de>
22350 PR tree-optimization/99523
22351 * tree-cfg.c (dump_function_to_file): Dump SSA names
22352 w/o identifier to the decls section as well, not only those
22353 without a VAR_DECL.
22355 2021-03-11 Jakub Jelinek <jakub@redhat.com>
22358 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
22359 function calls with lhs fail if the lhs don't have compatible types.
22361 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
22363 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
22364 Change FRAME_POINTER_REGNUM to correspond to a new faked
22365 register faked_fp, part of GENNONACR_REGS like faked_ap.
22366 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
22367 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
22368 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
22369 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
22370 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
22372 (CRIS_REAL_FP_REGNUM): New constant.
22373 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
22374 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
22375 (cris_initial_elimination_offset): Handle elimination changes
22376 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
22377 and add one from FRAME_POINTER_REGNUM to
22378 HARD_FRAME_POINTER_REGNUM.
22379 (cris_expand_prologue, cris_expand_epilogue): Emit code for
22380 hard_frame_pointer_rtx instead of frame_pointer_rtx.
22382 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
22385 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
22386 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
22388 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
22391 * lra-constraints.c (process_address_1): Don't check unknown
22392 constraint, use X for empty constraint.
22394 2021-03-10 Alex Coplan <alex.coplan@arm.com>
22396 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
22397 Fix typo in comment describing "is_ha" argument.
22399 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
22401 * doc/sourcebuild.texi: Document LRA target selector.
22403 2021-03-10 David Malcolm <dmalcolm@redhat.com>
22405 * doc/ux.texi: Add subsection contrasting interactive versus
22406 batch usage of GCC.
22408 2021-03-10 Joel Hutton <joel.hutton@arm.com>
22411 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
22413 (vectorizable_load): Fix gather load mask check condition.
22415 2021-03-10 Richard Biener <rguenther@suse.de>
22417 PR tree-optimization/99510
22418 * tree.c (check_aligned_type): Check that the candidate
22419 has TYPE_USER_ALIGN set instead of matching with the
22422 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
22424 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
22425 float and vector integer modes only if the mode is not larger.
22427 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
22429 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
22431 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
22433 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
22435 * ira-lives.c (single_reg_class): Ditto.
22437 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22439 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
22440 the architecture-specific rtems.h.
22441 (aarch64-*-rtems*): Likewise.
22442 (arm*-*-rtems*): Likewise.
22443 (epiphany-*-rtems*): Likewise.
22444 (riscv*-*-rtems*): Likewise.
22446 2021-03-09 Jakub Jelinek <jakub@redhat.com>
22448 PR tree-optimization/99305
22449 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
22450 before integer_all_onesp instead of vice versa.
22452 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
22454 * common/config/arm/arm-common.c (arm_config_default): Change type
22455 of 'i' to unsigned.
22457 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
22460 * lra-constraints.c (process_address_1): Process constraint 'g'
22461 separately and digital constraints containing more one digit.
22463 2021-03-09 Nick Clifton <nickc@redhat.com>
22465 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
22466 (DWARF"_DEBUGGING_INFO): Define.
22468 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
22471 * calls.c (initialize_argument_information): When the argument
22472 is passed by reference, do not make a copy in a thunk only if
22473 the argument is already in memory. Remove redundant test for
22474 the case of callee copy.
22476 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
22479 * lra-constraints.c (process_address_1): Process 0..9 constraints
22480 in process_address_1.
22482 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
22484 * config/s390/s390.c (struct s390_processor processor_table):
22485 Binutils name string must not be empty.
22487 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
22489 * config/arc/arc.c (arc_attr_type): Remove function.
22491 2021-03-09 Martin Liska <mliska@suse.cz>
22494 * config/i386/i386-options.c (ix86_option_override_internal):
22495 Set isa_flags for OPTS argument and not for the global
22498 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
22500 * config/rs6000/predicates.md (ds_form_mem_operand): Check
22503 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
22506 * config/rs6000/predicates.md (ds_form_mem_operand) New
22508 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
22509 ds_form_mem_operand in ld/lwa patterns.
22510 * config/rs6000/fusion.md: Regenerate file.
22512 2021-03-08 Martin Sebor <msebor@redhat.com>
22514 PR middle-end/98266
22515 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
22516 (array_bounds_checker::check_array_bounds): Call it.
22518 2021-03-08 Martin Sebor <msebor@redhat.com>
22520 PR middle-end/97631
22521 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
22522 (handle_builtin_stxncpy_strncat): Rename locals. Determine
22523 destination size from allocation calls. Issue a more appropriate
22525 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
22526 (handle_builtin_memset): Same.
22528 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
22531 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
22532 to ensure we do not have an Altivec style address.
22533 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
22534 an Altivec style address.
22535 (*vsx_le_perm_store_<mode>): Likewise.
22536 (splitters after *vsx_le_perm_store_<mode>): Likewise.
22537 (vsx_load_<mode>): Disable special expander if passed an Altivec
22539 (vsx_store_<mode>): Likewise.
22541 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22544 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
22545 (aarch64_simd_shift_imm_vec_hi): Likewise.
22546 (aarch64_simd_shift_imm_vec_si): Likewise.
22547 (aarch64_simd_shift_imm_vec_di): Likewise.
22548 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
22549 predicate from above.
22550 (aarch64_shrn<mode>_insn_be): Likewise.
22551 (aarch64_rshrn<mode>_insn_le): Likewise.
22552 (aarch64_rshrn<mode>_insn_be): Likewise.
22553 (aarch64_shrn2<mode>_insn_le): Likewise.
22554 (aarch64_shrn2<mode>_insn_be): Likewise.
22555 (aarch64_rshrn2<mode>_insn_le): Likewise.
22556 (aarch64_rshrn2<mode>_insn_be): Likewise.
22558 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
22561 * lra-constraints.c (skip_contraint_modifiers): New function.
22562 (process_address_1): Use it before lookup_constraint call.
22564 2021-03-08 Martin Liska <mliska@suse.cz>
22567 * config/i386/i386-options.c (ix86_option_override_internal):
22568 Enable UINTR and HRESET for -march that supports it.
22570 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
22572 * config/s390/s390.c (f_constraint_p): New function.
22573 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
22574 (TARGET_MD_ASM_ADJUST): Likewise.
22576 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
22579 * tree-nested.c (convert_local_reference_stmt): Avoid calling
22580 lookup_field_for_decl for Fortran module (= namespace context).
22582 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
22584 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
22585 comparison with arithmetic right shift.
22586 (s390_expand_vcond): No need for a force_reg anymore.
22587 s390_vec_compare will do it.
22588 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
22589 immediate operands.
22591 2021-03-07 Jakub Jelinek <jakub@redhat.com>
22594 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
22595 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
22597 * config/i386/sse.md (v_Yw): New define_mode_attr.
22598 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
22599 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
22601 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
22602 xYw in constraints.
22604 2021-03-06 Julian Brown <julian@codesourcery.com>
22606 * tree-pretty-print.c (dump_generic_node): Emit non-generic
22607 address space info for aggregates.
22609 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
22611 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
22613 2021-03-05 Jakub Jelinek <jakub@redhat.com>
22615 PR middle-end/99322
22616 * tree-cfg.c (bb_to_omp_idx): New variable.
22617 (execute_build_cfg): Release the bb_to_omp_idx vector after
22618 cleanup_tree_cfg returns.
22619 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
22620 for bb_to_omp_idx being a vec<int> instead of pointer to array
22622 (make_edges): Remove bb_to_omp_idx local variable, don't pass
22623 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
22624 vec<int> instead of pointer to array of ints and don't free/release
22626 (remove_bb): When removing a bb and placing forced label somewhere
22627 else, ensure it is put into the same OpenMP region during cfg
22628 pass if possible or to entry successor as fallback. Unregister
22629 bb from bb_to_omp_idx.
22631 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
22634 * lra-constraints.c (process_address_1): Skip decomposing address
22635 for asm insn operand with unknown constraint.
22637 2021-03-05 Martin Jambor <mjambor@suse.cz>
22640 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
22641 corresponding speculative edges if we are about to resolve
22642 sepculation. Make edge direct (and so resolve speculations) before
22643 removing it from call_site_hash.
22644 (cgraph_edge::make_direct): Relax the initial assert to allow calling
22645 the function on speculative direct edges.
22647 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
22649 PR rtl-optimization/99376
22650 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
22651 of low-order zero bits is too large, set the result to 0 directly.
22653 2021-03-04 Jakub Jelinek <jakub@redhat.com>
22655 PR middle-end/93235
22656 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
22657 SUBREG and a SUBREG to op_mode can't be created.
22659 2021-03-04 Alex Coplan <alex.coplan@arm.com>
22662 * config/aarch64/aarch64-sve-builtins.cc
22663 (function_resolver::require_vector_type): Handle error_mark_node.
22665 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
22667 * cfgexpand.c (expand_asm_loc): Pass new parameter.
22668 (expand_asm_stmt): Likewise.
22669 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
22671 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
22672 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
22673 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
22674 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
22675 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
22676 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
22677 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
22678 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
22679 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
22680 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
22681 * doc/tm.texi (md_asm_adjust): Likewise.
22682 * target.def (md_asm_adjust): Likewise.
22684 2021-03-04 Richard Biener <rguenther@suse.de>
22686 PR middle-end/97855
22687 * tree-pretty-print.c: Poison pp_printf.
22688 (dump_decl_name): Avoid use of pp_printf.
22689 (dump_block_node): Likewise.
22690 (dump_generic_node): Likewise.
22692 2021-03-04 Martin Sebor <msebor@redhat.com>
22694 PR middle-end/96963
22695 PR middle-end/94655
22696 * builtins.c (handle_array_ref): New helper.
22697 (handle_mem_ref): New helper.
22698 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
22699 into new helper functions. Correct a workaround for vectorized
22702 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
22704 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
22705 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
22706 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
22707 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
22708 attribute for Power10.
22709 * config/rs6000/mma.md (*movoo): Likewise.
22710 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
22711 (define_mode_attr bits): Add DD/TD modes.
22712 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
22713 store_conditionalpti): Update size attribute for Power10.
22715 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22718 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
22719 -Wuninitialized, -Wmaybe-uninitialized.
22720 (wide-int.o-warn): Likewise.
22722 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
22724 * common/config/arm/arm-common.c: Include configargs.h.
22725 (arm_config_default): New function.
22726 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
22727 processors that do not support Thumb. Take into account the
22728 --with-mode configuration setting for selecting the default.
22729 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
22730 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
22732 2021-03-03 Martin Liska <mliska@suse.cz>
22734 PR gcov-profile/97461
22735 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
22737 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
22740 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
22741 point back the hard frame pointer to its default location when the
22742 frame is larger than SEH_MAX_FRAME_SIZE.
22744 2021-03-03 Jakub Jelinek <jakub@redhat.com>
22747 * config/i386/predicates.md (logic_operator): New define_predicate.
22748 * config/i386/i386.md (mov + mem using comm arith peephole2):
22749 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
22750 and the inner mode is [QH]Imode.
22752 2021-03-03 Jakub Jelinek <jakub@redhat.com>
22755 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
22756 (new_loc_list): Clear end_entry.
22757 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
22758 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
22760 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
22761 initialize also end_entry.
22763 2021-03-03 Jakub Jelinek <jakub@redhat.com>
22766 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
22767 partitions, if in non-layout mode after reorder_blocks also move
22768 affected blocks to ensure a single partition transition.
22770 2021-03-03 Jason Merrill <jason@redhat.com>
22773 * cgraphunit.c (process_function_and_variable_attributes): Don't
22774 warn about flatten on an alias if the target also has it.
22775 * cgraph.h (symtab_node::get_alias_target_tree): New.
22777 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
22779 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
22780 period to symbol name.
22781 (tls_get_addr_internal<mode>): Same.
22783 2021-03-02 David Malcolm <dmalcolm@redhat.com>
22786 * diagnostic-show-locus.c
22787 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
22790 2021-03-02 Martin Sebor <msebor@redhat.com>
22792 PR middle-end/99276
22793 * builtins.c (warn_for_access): Remove stray warning text.
22795 2021-03-02 Martin Sebor <msebor@redhat.com>
22797 PR middle-end/99295
22798 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
22801 2021-03-02 Jakub Jelinek <jakub@redhat.com>
22804 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
22805 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
22806 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
22807 DW_MACRO_define_strx and DW_MACRO_undef_strx.
22808 (save_macinfo_strings): Use DW_MACRO_*_str* even with
22809 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
22810 DW_MACRO_undef_strx.
22812 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
22814 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
22816 (BT_FN_V8HI_V8HI_UINT): Likewise.
22817 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
22818 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
22819 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
22820 New builtin definitions.
22821 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
22822 vector extension version.
22823 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
22824 available with current -march level.
22825 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
22826 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
22827 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
22828 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
22829 (vec_extend_to_fp32_lo): Likewise.
22830 (vec_round_from_fp32): Likewise.
22831 (vec_convert_to_fp16): Likewise.
22832 (vec_convert_from_fp16): Likewise.
22833 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
22834 (vclfnls_v8hi): Likewise.
22835 (vcrnfs_v8hi): Likewise.
22836 (vcfn_v8hi): Likewise.
22837 (vcnf_v8hi): Likewise.
22839 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
22841 * common/config/s390/s390-common.c (processor_flags_table): New entry.
22842 * config.gcc: Enable arch14 for --with-arch and --with-tune.
22843 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
22844 arch14 for unknown CPU models.
22845 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
22846 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
22847 (s390_get_sched_attrmask): Likewise.
22848 (s390_get_unit_mask): Likewise.
22849 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
22850 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
22851 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
22852 (TARGET_NNPA_P): New macro definitions.
22853 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
22854 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
22856 2021-03-02 Jakub Jelinek <jakub@redhat.com>
22858 PR middle-end/95757
22859 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
22860 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
22861 != 1 comparisons if name is lhs of a comparison.
22863 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
22867 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
22868 * config/darwin.c (darwin_should_restore_cfa_state): New.
22869 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
22870 * doc/tm.texi: Regenerated.
22871 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
22872 * dwarf2cfi.c (connect_traces): If the target requests, restore
22873 the CFA expression after a DW_CFA_restore.
22874 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
22876 2021-03-01 Martin Liska <mliska@suse.cz>
22879 * optc-save-gen.awk: Add 4 more exceptions.
22881 2021-03-01 Nathan Sidwell <nathan@acm.org>
22884 * tree.h (TYPE_ALIGN_RAW): New accessor.
22885 (TYPE_ALIGN): Use it.
22887 2021-03-01 Jan Hubicka <jh@suse.cz>
22890 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
22892 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
22895 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
22896 point the hard frame pointer to the SSE register save area instead
22897 of the general register save area. Perform only minimal adjustment
22898 for small frames if it is initially not correctly aligned.
22899 (ix86_expand_prologue): Remove early saves for a SEH target.
22900 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
22902 2021-02-28 Jakub Jelinek <jakub@redhat.com>
22905 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
22906 typo - referneced -> referenced.
22907 * tree.c (component_ref_size): Fix comment typo -
22908 refernce -> reference.
22909 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
22910 traling -> trailing.
22911 (aliasing_component_refs_p): Fix comment typos -
22912 refernce -> reference and refernece -> reference and
22913 traling -> trailing.
22914 (nonoverlapping_refs_since_match_p): Fix comment typo -
22915 referneces -> references.
22916 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
22917 referneces -> references.
22919 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
22921 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
22922 diagnostic message to avoid use of a contraction and format
22925 2021-02-27 Jakub Jelinek <jakub@redhat.com>
22928 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
22929 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
22930 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
22931 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
22934 2021-02-26 Richard Biener <rguenther@suse.de>
22936 PR middle-end/99281
22937 * expr.c (store_field): For calls with return-slot optimization
22938 and addressable return type expand the store directly.
22940 2021-02-26 Richard Biener <rguenther@suse.de>
22943 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
22945 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
22948 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
22951 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
22953 * config.gcc: Add rs6000-pcrel-opt.o.
22954 * config/rs6000/rs6000-pcrel-opt.c: New file.
22955 * config/rs6000/pcrel-opt.md: New file.
22956 * config/rs6000/predicates.md: Add d_form_memory predicate.
22957 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
22958 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
22959 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
22960 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
22961 and make_pass_pcrel_opt().
22962 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
22963 (rs6000_option_override_internal): Add pcrel-opt.
22964 (rs6000_delegitimize_address): Support pcrel-opt.
22965 (rs6000_opt_masks): Add pcrel-opt.
22966 (pcrel_opt_valid_mem_p): New function.
22967 (reg_to_non_prefixed): Make global.
22968 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
22969 (output_pcrel_opt_reloc): New function.
22970 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
22971 (pcrel_extern_addr): Set loads_extern_addr.
22972 Add include for pcrel-opt.md.
22973 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
22974 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
22977 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
22980 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
22981 If TARGET_64BIT and dest is SUBREG, we check the width, if it
22982 equal to SImode, we use SImode operation, just like what we are
22985 2021-02-26 Marek Polacek <polacek@redhat.com>
22987 * builtins.c (warn_for_access): Fix typos.
22989 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
22991 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
22992 mark in front of the immediate quantity.
22993 (<optab>_rolsi3_uxtw): Likewise.
22995 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
22998 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
22999 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
23000 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
23001 address and disable when the FPCXT is not available.
23002 (nonsecure_call_value_reg_thumb2): Likewise.
23004 2021-02-25 Nathan Sidwell <nathan@acm.org>
23007 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
23009 2021-02-25 Tamar Christina <tamar.christina@arm.com>
23011 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
23013 2021-02-25 Richard Biener <rguenther@suse.de>
23015 PR tree-optimization/99253
23016 * tree-vect-loop.c (check_reduction_path): First compute
23017 code, then verify out-of-loop uses.
23019 2021-02-25 Jakub Jelinek <jakub@redhat.com>
23022 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
23024 2021-02-25 Jakub Jelinek <jakub@redhat.com>
23026 PR tree-optimization/80635
23027 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
23028 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
23029 has mode precision.
23031 2021-02-25 Richard Biener <rguenther@suse.de>
23033 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
23034 load_map population.
23035 (vect_match_slp_patterns_2): Revert part of last change.
23036 (vect_analyze_slp): Do not interleave optimize_load_redistribution
23037 with pattern detection but do it afterwards. Dump the
23038 whole SLP graph after pattern recognition and load
23039 redistribution optimization finished.
23041 2021-02-24 Jakub Jelinek <jakub@redhat.com>
23044 * omp-low.c (struct omp_context): Add teams_nested_p and
23045 nonteams_nested_p members.
23046 (scan_omp_target): Diagnose teams nested inside of target with other
23047 directives strictly nested inside of the same target.
23048 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
23049 ctx->nonteams_nested_p as needed.
23051 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
23053 PR inline-asm/99123
23054 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
23056 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
23058 * config/cris/cris.c (cris_expand_prologue): Set
23059 current_function_static_stack_size, if flag_stack_usage_info.
23061 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
23063 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
23064 (rs6000_final_prescan_insn): Adjust.
23065 (rs6000_asm_output_opcode): Likewise.
23067 2021-02-24 Martin Sebor <msebor@redhat.com>
23069 PR middle-end/97172
23070 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
23071 from function arguments.
23073 2021-02-24 Tamar Christina <tamar.christina@arm.com>
23075 PR tree-optimization/99220
23076 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
23077 node from cache when it's about to be deleted.
23079 2021-02-24 Jakub Jelinek <jakub@redhat.com>
23081 PR tree-optimization/99225
23082 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
23083 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
23084 build_int_cst (..., 1). Formatting fixes.
23086 2021-02-24 Tamar Christina <tamar.christina@arm.com>
23088 PR tree-optimization/99149
23089 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
23091 (vect_slp_reset_pattern): Remove.
23092 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
23093 (complex_mul_pattern::build, complex_fma_pattern::build,
23094 complex_fms_pattern::build): Fix ref counts.
23095 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
23096 when node is being deleted.
23097 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
23098 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
23100 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
23102 2021-02-24 Matthias Klose <doko@ubuntu.com>
23105 2020-12-07 Matthias Klose <doko@ubuntu.com>
23107 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
23108 and ENABLE_RTL_FLAG_CHECKING.
23110 2021-02-24 Richard Biener <rguenther@suse.de>
23113 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
23115 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
23117 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
23118 (vsx_assemble_pair): ...to this.
23119 (*mma_assemble_pair): Rename from this...
23120 (*vsx_assemble_pair): ...to this.
23121 (mma_disassemble_pair): Rename from this...
23122 (vsx_disassemble_pair): ...to this.
23123 (*mma_disassemble_pair): Rename from this...
23124 (*vsx_disassemble_pair): ...to this.
23125 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
23126 BU_COMPAT): New macros.
23127 (mma_assemble_pair): Rename from this...
23128 (vsx_assemble_pair): ...to this.
23129 (mma_disassemble_pair): Rename from this...
23130 (vsx_disassemble_pair): ...to this.
23131 (mma_assemble_pair): New compatibility built-in.
23132 (mma_disassemble_pair): Likewise.
23133 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
23134 (RS6000_BUILTIN_COMPAT): Define.
23135 (bdesc_compat): New.
23136 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
23137 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
23138 and VSX_BUILTIN_ASSEMBLE_PAIR.
23139 (rs6000_init_builtins): Register compatibility built-ins.
23140 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
23141 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
23142 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
23143 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
23144 (__builtin_vsx_assemble_pair): ...to this.
23145 (__builtin_mma_disassemble_pair): Rename from this...
23146 (__builtin_vsx_disassemble_pair): ...to this.
23148 2021-02-23 Martin Liska <mliska@suse.cz>
23151 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
23152 with different alignment. That leads to an invalid red zone
23153 size allocated in runtime.
23155 2021-02-23 Jakub Jelinek <jakub@redhat.com>
23157 PR tree-optimization/99204
23158 * fold-const.c (fold_read_from_constant_string): Check that
23159 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
23161 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
23162 Kewen Lin <linkw@gcc.gnu.org>
23164 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
23165 (rotl<mode>3_insert_3): ...this.
23166 (plus_ior_xor): New code_iterator.
23167 (define_split for GPR rl*imi): New splitter.
23168 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
23169 for integer merging.
23171 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23173 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
23175 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
23176 into a register when the above is enabled.
23177 * config/aarch64/aarch64.c (neoversev1_tunings):
23178 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
23179 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
23181 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
23183 * config/cris/cris.c (cris_print_operand) <'T'>: Change
23184 valid operand from is now an addi mult-value to shift-value.
23185 * config/cris/cris.md (*addi): Change expression of scaled
23186 operand from mult to ashift.
23187 * config/cris/cris.md (*addi_reload): New insn_and_split.
23189 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
23192 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
23193 hook_bool_const_tree_hwi_hwi_const_tree_true.
23194 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
23196 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
23198 PR rtl-optimization/98791
23199 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
23200 for unordered modes.
23202 2021-02-22 Martin Liska <mliska@suse.cz>
23204 * tree-inline.c (inline_forbidden_p): Set
23205 inline_forbidden_reason.
23207 2021-02-22 Richard Biener <rguenther@suse.de>
23209 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
23212 2021-02-22 Richard Biener <rguenther@suse.de>
23214 PR tree-optimization/99165
23215 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
23216 Accumulate changed to ret.
23218 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
23221 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
23223 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
23225 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
23228 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
23230 (trunctf<DFP_ALL:mode>2): Likewise.
23231 (trunctdtf2_vr): Likewise.
23232 (trunctdtf2): Likewise.
23233 (extend<DFP_ALL:mode>tf2_vr): Likewise.
23234 (extend<DFP_ALL:mode>tf2): Likewise.
23235 (extendtftd2_vr): Likewise.
23236 (extendtftd2): Likewise.
23238 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
23240 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
23241 add memory alternative.
23242 (tf_to_fprx2): New pattern.
23244 2021-02-19 Martin Sebor <msebor@redhat.com>
23247 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
23248 (attr_access::free_lang_data): Remove a spurious test.
23250 2021-02-19 Nathan Sidwell <nathan@acm.org>
23252 * doc/invoke.texi (flang-info-module-read): Document.
23254 2021-02-19 Martin Liska <mliska@suse.cz>
23256 PR translation/99167
23257 * params.opt: Fix typo.
23259 2021-02-19 Richard Biener <rguenther@suse.de>
23261 PR middle-end/99122
23262 * tree-inline.c (inline_forbidden_p): Do not inline functions
23263 with VLA arguments or return value.
23265 2021-02-19 Jakub Jelinek <jakub@redhat.com>
23268 * config/arm/arm.md (*stack_protect_combined_set_insn,
23269 *stack_protect_combined_test_insn): If force_const_mem result
23270 is not valid general operand, force its address into the destination
23273 2021-02-19 Jakub Jelinek <jakub@redhat.com>
23276 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
23277 pad or non-local label, put FORCED_LABELs from bb b after that label
23278 rather than before it.
23280 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
23283 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
23284 expand_vector_broadcast' to emit the vec_duplicate operand.
23286 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
23288 PR rtl-optimization/96264
23289 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
23292 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
23295 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
23296 looking up the retain attribute.
23297 (resolve_unique_section): Likewise.
23298 (get_variable_section): Likewise.
23299 (switch_to_section): Likewise. Warn when a symbol without the
23300 retain attribute and a symbol with the retain attribute are
23301 placed in the section with the same name, instead of the used
23303 * doc/extend.texi: Document the "retain" attribute.
23305 2021-02-18 Nathan Sidwell <nathan@acm.org>
23308 * doc/invoke.texi (flang-info-include-translate): Document header
23311 2021-02-18 Richard Biener <rguenther@suse.de>
23313 PR middle-end/99122
23314 * ipa-fnsummary.c (analyze_function_body): Set
23315 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
23316 * tree-inline.c (insert_init_debug_bind): Pass NULL for
23317 error_mark_node values.
23318 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
23320 (setup_one_parameter): Delay force_value_to_type until when
23323 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
23325 PR tree-optimization/99142
23326 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
23328 2021-02-18 Jakub Jelinek <jakub@redhat.com>
23330 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
23331 wide_int_bitmask::wide_int_bitmask (uint64_t),
23332 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
23333 wide_int_bitmask::operator ~ () const,
23334 wide_int_bitmask::operator | (wide_int_bitmask) const,
23335 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
23337 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
23338 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
23339 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
23340 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
23341 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
23342 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
23343 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
23344 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
23345 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
23346 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
23347 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
23348 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
23349 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
23350 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
23351 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
23352 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
23353 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
23354 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
23355 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
23356 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
23357 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
23358 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
23359 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
23360 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
23362 2021-02-18 Jakub Jelinek <jakub@redhat.com>
23364 PR middle-end/99109
23365 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
23366 (build_printable_array_type): ... this. Add nelts argument. For
23367 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
23368 nelts, call build_array_type_nelts.
23369 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
23370 instead of build_zero_elt_array_type and build_array_type_nelts.
23372 2021-02-18 Jakub Jelinek <jakub@redhat.com>
23375 * config/i386/i386.c (distance_non_agu_define): Don't call
23376 extract_insn_cached here.
23377 (ix86_lea_outperforms): Save and restore recog_data around call
23378 to distance_non_agu_define and distance_agu_use.
23379 (ix86_ok_to_clobber_flags): Remove.
23380 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
23381 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
23382 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
23383 into define_insn. Move the splitting to define_peephole2 and
23384 check there using peep2_regno_dead_p if FLAGS_REG is dead.
23386 2021-02-17 Julian Brown <julian@codesourcery.com>
23388 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
23391 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
23394 * config/mips/mips.c (mips_symbol_insns): Do not use
23395 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
23397 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
23399 PR inline-asm/98096
23400 * stmt.c (resolve_operand_name_1): Take inout operands into account
23401 for access to labels by names.
23402 * doc/extend.texi: Describe counting operands for accessing labels.
23404 2021-02-16 Richard Biener <rguenther@suse.de>
23406 PR tree-optimization/38474
23407 * tree-ssa-structalias.c (variable_info::address_taken): New.
23408 (new_var_info): Initialize address_taken.
23409 (process_constraint): Set address_taken.
23410 (solve_constraints): Use the new address_taken flag rather
23411 than is_reg_var for sorting variables.
23412 (dump_constraint): Dump the variable number if the name
23415 2021-02-16 Jakub Jelinek <jakub@redhat.com>
23418 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
23419 multiply by 4096 and for inbranch by 8192.
23420 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
23421 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
23423 2021-02-15 Maya Rashish <coypu@sdf.org>
23425 * config/aarch64/aarch64.c (aarch64_init_builtins):
23426 Call SUBTARGET_INIT_BUILTINS.
23428 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
23430 PR rtl-optimization/98872
23431 * init-regs.c (initialize_uninitialized_regs): Skip initialization
23432 if CONST0_RTX is NULL.
23434 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
23436 PR rtl-optimization/98863
23437 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
23438 (function_info::build_info): Turn into a declaration, moving the
23439 definition to internals.h.
23440 (function_info::bb_walker): Declare.
23441 (function_info::create_reg_use): Likewise.
23442 (function_info::calculate_potential_phi_regs): Take a build_info
23444 (function_info::place_phis, function_info::create_ebbs): Declare.
23445 (function_info::calculate_ebb_live_in_for_debug): Likewise.
23446 (function_info::populate_backedge_phis): Delete.
23447 (function_info::start_block, function_info::end_block): Declare.
23448 (function_info::populate_phi_inputs): Delete.
23449 (function_info::m_potential_phi_regs): Move information to build_info.
23450 * rtl-ssa/internals.h: New file.
23451 (function_info::bb_phi_info): New class.
23452 (function_info::build_info): Moved from functions.h.
23453 Add a constructor and destructor.
23454 (function_info::build_info::ebb_use): Delete.
23455 (function_info::build_info::ebb_def): Likewise.
23456 (function_info::build_info::bb_live_out): Likewise.
23457 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
23458 (function_info::build_info::potential_phi_regs): Likewise.
23459 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
23460 (function_info::build_info::ebb_def_regs): Likewise.
23461 (function_info::build_info::bb_phis): Likewise.
23462 (function_info::build_info::bb_mem_live_out): Likewise.
23463 (function_info::build_info::bb_to_rpo): Likewise.
23464 (function_info::build_info::def_stack): Likewise.
23465 (function_info::build_info::old_def_stack_limit): Likewise.
23466 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
23467 Remove the regno argument. Push the previous definition onto the
23468 definition stack where necessary.
23469 * rtl-ssa/accesses.cc: Include internals.h.
23470 * rtl-ssa/changes.cc: Likewise.
23471 * rtl-ssa/blocks.cc: Likewise.
23472 (function_info::build_info::build_info): Define.
23473 (function_info::build_info::~build_info): Likewise.
23474 (function_info::bb_walker): New class.
23475 (function_info::bb_walker::bb_walker): Define.
23476 (function_info::add_live_out_use): Convert a logarithmic-complexity
23477 test into a linear one. Allow the same definition to be passed
23479 (function_info::calculate_potential_phi_regs): Moved from
23480 functions.cc. Take a build_info parameter and store the
23481 information there instead.
23482 (function_info::place_phis): New function.
23483 (function_info::add_entry_block_defs): Update call to record_reg_def.
23484 (function_info::calculate_ebb_live_in_for_debug): New function.
23485 (function_info::add_phi_nodes): Use bb_phis to decide which
23486 registers need phi nodes and initialize ebb_def_regs accordingly.
23487 Do not add degenerate phis here.
23488 (function_info::add_artificial_accesses): Use create_reg_use.
23489 Assert that all definitions are listed in the DF LR sets.
23490 Update call to record_reg_def.
23491 (function_info::record_block_live_out): Record live-out register
23492 values in the phis of successor blocks. Use the live-out set
23493 when processing the last block in an EBB, instead of always
23494 using the live-in sets of successor blocks. AND the live sets
23495 with the set of registers that have been defined in the EBB,
23496 rather than with all potential phi registers. Cope correctly
23497 with branches back to the start of the current EBB.
23498 (function_info::start_block): New function.
23499 (function_info::end_block): Likewise.
23500 (function_info::populate_phi_inputs): Likewise.
23501 (function_info::create_ebbs): Likewise.
23502 (function_info::process_all_blocks): Rewrite into a multi-phase
23504 * rtl-ssa/functions.cc: Include internals.h.
23505 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
23506 (function_info::init_function_data): Remove caller.
23507 * rtl-ssa/insns.cc: Include internals.h
23508 (function_info::create_reg_use): New function. Lazily any
23509 degenerate phis needed by the linear RPO view.
23510 (function_info::record_use): Use create_reg_use. When processing
23511 debug uses, use potential_phi_regs and test it before checking
23512 whether the register is live on entry to the current EBB. Lazily
23513 calculate ebb_live_in_for_debug.
23514 (function_info::record_call_clobbers): Update call to record_reg_def.
23515 (function_info::record_def): Likewise.
23517 2021-02-15 Martin Liska <mliska@suse.cz>
23519 * toplev.c (init_asm_output): Free output of
23520 gen_command_line_string function.
23521 (process_options): Likewise.
23523 2021-02-15 Martin Liska <mliska@suse.cz>
23525 * params.opt: Add 2 missing Param keywords.
23527 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
23529 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
23531 2021-02-15 Jakub Jelinek <jakub@redhat.com>
23533 PR tree-optimization/99079
23534 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
23535 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
23536 require both type and TREE_TYPE (@1) to be integral types and either
23537 type having smaller or equal precision, or TREE_TYPE (@1) being
23538 unsigned type, or type being signed type. If TREE_TYPE (@1)
23539 doesn't have wrapping overflow, perform the subtraction of one in
23542 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
23543 Richard Biener <rguether@suse.de>
23546 * ipa-reference.c (ipa_init): Only conditinally initialize
23547 reference_vars_to_consider.
23548 (propagate): Conditionally deninitialize reference_vars_to_consider.
23549 (ipa_reference_write_optimization_summary): Sanity check that
23550 reference_vars_to_consider is not allocated.
23552 2021-02-13 Levy Hsu <admin@levyhsu.com>
23555 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
23556 extend parameter to get_si_mem_base_reg declaration.
23557 (get_si_mem_base_reg): Add extend parameter. Set it.
23558 (analyze): Pass extend arg to get_si_mem_base_reg.
23559 (transform): Likewise. Use it when rewriting mems.
23560 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
23561 loads and emit sign/zero extending load followed by subreg move.
23563 2021-02-13 Jim Wilson <jimw@sifive.com>
23566 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
23567 exit when !reload_completed. Only perform check for compressed reg
23568 if reload_completed.
23569 (riscv_rtx_costs): In MEM case, when optimizing for size and
23570 shorten memrefs, if not compressible, then increase cost.
23572 2021-02-13 Jakub Jelinek <jakub@redhat.com>
23574 PR rtl-optimization/98439
23575 * recog.c (pass_split_before_regstack::gate): Enable even when
23576 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
23579 2021-02-13 Jakub Jelinek <jakub@redhat.com>
23582 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
23583 swap of V2SImode elements in memory into DImode memory rotate by 32.
23585 2021-02-12 Martin Sebor <msebor@redhat.com>
23587 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
23589 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
23591 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
23592 m_temp_obstack rather than m_obstack to allocate the temporary use.
23594 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
23596 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
23597 as read-modify operations.
23599 2021-02-12 Richard Biener <rguenther@suse.de>
23601 PR middle-end/38474
23602 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
23603 fbi->aa_walk_budget is bigger than zero. Update
23604 fbi->aa_walk_budget.
23605 (param_change_prob): Likewise.
23606 * ipa-prop.c (detect_type_change_from_memory_writes):
23607 Properly account walk_aliased_vdefs.
23608 (parm_preserved_before_stmt_p): Canonicalize updates.
23609 (parm_ref_data_preserved_p): Likewise.
23610 (parm_ref_data_pass_through_p): Likewise.
23611 (determine_known_aggregate_parts): Account own alias queries.
23613 2021-02-12 Martin Liska <mliska@suse.cz>
23615 * opts-common.c (decode_cmdline_option): Release werror_arg.
23616 * opts.c (gen_producer_string): Release output of
23617 gen_command_line_string.
23619 2021-02-12 Richard Biener <rguenther@suse.de>
23621 PR tree-optimization/38474
23622 * params.opt (-param=max-store-chains-to-track=): New param.
23623 (-param=max-stores-to-track=): Likewise.
23624 * doc/invoke.texi (max-store-chains-to-track): Document.
23625 (max-stores-to-track): Likewise.
23626 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
23628 (pass_store_merging::m_n_stores): Likewise.
23629 (pass_store_merging::terminate_and_process_chain): Update
23630 m_n_stores and m_n_chains.
23631 (pass_store_merging::process_store): Likewise. Terminate
23632 oldest chains if the number of stores or chains get too large.
23633 (imm_store_chain_info::terminate_and_process_chain): Dump
23636 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
23638 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
23639 the cold section, emit a nop before the directive if the previous
23640 active instruction can throw.
23642 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
23645 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
23646 memory addresses that are legal for quad word accesses.
23648 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
23651 * config/arm/thumb2.md (*doloop_end_internal): Generate
23652 alternative sequence to handle long range branches.
23654 2021-02-11 Joel Hutton <joel.hutton@arm.com>
23656 PR tree-optimization/98772
23657 * optabs-tree.c (supportable_half_widening_operation): New function
23658 to check for supportable V8QI->V8HI widening patterns.
23659 * optabs-tree.h (supportable_half_widening_operation): New function.
23660 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
23661 to create promotion stmts for V8QI->V8HI widening patterns.
23662 (vectorizable_conversion): Add case for V8QI->V8HI.
23664 2021-02-11 Richard Biener <rguenther@suse.de>
23666 * sparseset.h (SPARSESET_ELT_BITS): Remove.
23667 (SPARSESET_ELT_TYPE): Use unsigned int.
23668 * fwprop.c: Do not include sparseset.h.
23670 2021-02-10 Jakub Jelinek <jakub@redhat.com>
23673 * varasm.c (declare_weak): For -fsyntax-only, allow even
23674 TREE_ASM_WRITTEN function decls.
23676 2021-02-10 Jakub Jelinek <jakub@redhat.com>
23679 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
23680 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
23681 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
23682 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
23683 calling simplify_gen_subreg on it.
23685 2021-02-10 Martin Liska <mliska@suse.cz>
23687 * config/nvptx/nvptx.c (nvptx_option_override): Use
23688 flag_patchable_function_entry instead of the removed
23689 function_entry_patch_area_size.
23691 2021-02-10 Martin Liska <mliska@suse.cz>
23693 PR tree-optimization/99002
23694 PR tree-optimization/99026
23695 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
23696 leak when adjacent cases are merged.
23697 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
23699 (make_pass_lower_switch): Remove trailing whitespace.
23700 * tree-switch-conversion.h (release_clusters): New.
23702 2021-02-10 Richard Biener <rguenther@suse.de>
23704 PR rtl-optimization/99054
23705 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
23706 (fixup_partitions): Adjust.
23707 (rtl_verify_edges): Likewise.
23709 2021-02-10 Jakub Jelinek <jakub@redhat.com>
23711 PR middle-end/99007
23712 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
23713 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
23716 2021-02-10 Richard Biener <rguenther@suse.de>
23719 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
23722 2021-02-10 Richard Biener <rguenther@suse.de>
23724 PR tree-optimization/99024
23725 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
23726 clear loop->aux if it is associated with the destroyed loop_vinfo.
23728 2021-02-10 Martin Liska <mliska@suse.cz>
23730 PR tree-optimization/99002
23731 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
23734 2021-02-10 Martin Liska <mliska@suse.cz>
23737 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
23738 a reference exists.
23740 2021-02-10 Jakub Jelinek <jakub@redhat.com>
23743 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
23744 at class scope for DWARF5+.
23746 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
23748 PR rtl-optimization/96015
23749 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
23750 (relax_delay_slots): When deleting a jump to the next active
23751 instruction over a barrier, first delete the barrier if the
23752 jump is the only way to reach the target label.
23754 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
23756 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
23757 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
23758 vector multiplies and vect.alu for SSRA.
23759 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
23760 vect.mul cost field.
23761 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
23762 * config/arm/arm.c: Likewise.
23764 2021-02-09 Richard Biener <rguenther@suse.de>
23766 PR tree-optimization/98863
23767 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
23768 * tree-ssa-sccvn.c (last_pushed_avail): New global.
23769 (rpo_elim::eliminate_push_avail): Chain pushed avails.
23770 (unwind_state::avail_top): Add.
23771 (do_unwind): Rewrite unwinding of avail entries.
23772 (do_rpo_vn): Initialize last_pushed_avail and
23773 avail_top of the undo state.
23775 2021-02-09 Jakub Jelinek <jakub@redhat.com>
23777 PR middle-end/99004
23778 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
23779 const char * to char * and free those pointers after use.
23781 2021-02-09 Richard Biener <rguenther@suse.de>
23783 PR tree-optimization/99017
23784 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
23785 zero vector cost entries.
23787 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
23789 PR middle-end/98974
23790 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
23791 parameter in vectorizable_condition.
23793 2021-02-08 Richard Biener <rguenther@suse.de>
23796 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
23798 2021-02-08 Martin Liska <mliska@suse.cz>
23801 * cfgexpand.c (pass_expand::execute): Parse per-function option
23802 flag_patchable_function_entry and use it.
23803 * common.opt: Remove function_entry_patch_area_size and
23804 function_entry_patch_area_start global variables.
23805 * opts.c (parse_and_check_patch_area): New function.
23806 (common_handle_option): Use it.
23807 * opts.h (parse_and_check_patch_area): New function.
23808 * toplev.c (process_options): Parse and use
23809 function_entry_patch_area_size.
23811 2021-02-08 Martin Sebor <msebor@redhat.com>
23813 * doc/extend.texi (attribute malloc): Correct typos.
23815 2021-02-05 Nathan Sidwell <nathan@acm.org>
23818 * gcc.c (driver::maybe_run_linker): Check for input file
23819 accessibility if not linking.
23821 2021-02-05 Richard Biener <rguenther@suse.de>
23823 PR tree-optimization/98855
23824 * tree-vectorizer.h (add_stmt_cost): New overload.
23825 * tree-vect-slp.c (li_cost_vec_cmp): New.
23826 (vect_bb_slp_scalar_cost): Cost individual loop regions
23827 separately. Account for the scalar instance root stmt.
23829 2021-02-05 Tom de Vries <tdevries@suse.de>
23832 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
23834 (bit_test_cluster::emit): Reuse location_t for newly created
23836 (switch_decision_tree::try_switch_expansion): Preserve
23838 * tree-switch-conversion.h: Change function signatures.
23840 2021-02-05 Jakub Jelinek <jakub@redhat.com>
23843 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
23844 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
23845 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
23846 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
23848 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23850 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
23851 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
23852 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
23853 (vget_high_f16): Reimplement using new builtin.
23854 (vget_high_f32): Likewise.
23855 (vget_high_f64): Likewise.
23856 (vget_high_p8): Likewise.
23857 (vget_high_p16): Likewise.
23858 (vget_high_p64): Likewise.
23859 (vget_high_s8): Likewise.
23860 (vget_high_s16): Likewise.
23861 (vget_high_s32): Likewise.
23862 (vget_high_s64): Likewise.
23863 (vget_high_u8): Likewise.
23864 (vget_high_u16): Likewise.
23865 (vget_high_u32): Likewise.
23866 (vget_high_u64): Likewise.
23868 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23870 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
23871 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
23872 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
23873 (vget_low_f16): Reimplement using new builtin.
23874 (vget_low_f32): Likewise.
23875 (vget_low_f64): Likewise.
23876 (vget_low_p8): Likewise.
23877 (vget_low_p16): Likewise.
23878 (vget_low_p64): Likewise.
23879 (vget_low_s8): Likewise.
23880 (vget_low_s16): Likewise.
23881 (vget_low_s32): Likewise.
23882 (vget_low_s64): Likewise.
23883 (vget_low_u8): Likewise.
23884 (vget_low_u16): Likewise.
23885 (vget_low_u32): Likewise.
23886 (vget_low_u64): Likewise.
23888 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
23890 * gcc.c (print_multilib_info): Check all required argument is provided
23893 2021-02-05 liuhongt <hongtao.liu@intel.com>
23896 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
23897 generate integer mask comparison for 128/256-bits vector when
23898 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
23899 delete redundant !maskcmp condition.
23900 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
23902 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
23903 condition directly to if (maskcmp), add extra check for
23904 cmpmode, it should be MODE_INT.
23905 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
23906 parameters op_true/op_false.
23907 (ix86_use_mask_cmp_p): New.
23909 2021-02-05 liuhongt <hongtao.liu@intel.com>
23912 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
23913 Remove m_GENERIC from ~list.
23914 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
23916 2021-02-04 David Malcolm <dmalcolm@redhat.com>
23919 * diagnostic-show-locus.c (compatible_locations_p): Require
23920 locations in the same macro map to be either both from the
23921 macro definition, or both from the macro arguments.
23923 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
23925 * config/aarch64/aarch64-simd-builtins.def: Add
23926 [su]mull_hi_lane[q] builtin generator macros.
23927 * config/aarch64/aarch64-simd.md
23928 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
23929 (aarch64_<su>mull_hi_lane<mode>): Define.
23930 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
23931 (aarch64_<su>mull_hi_laneq<mode>): Define.
23932 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
23933 builtin instead of inline asm.
23934 (vmull_high_lane_s32): Likewise.
23935 (vmull_high_lane_u16): Likewise.
23936 (vmull_high_lane_u32): Likewise.
23937 (vmull_high_laneq_s16): Likewise.
23938 (vmull_high_laneq_s32): Likewise.
23939 (vmull_high_laneq_u16): Likewise.
23940 (vmull_high_laneq_u32): Liekwise.
23942 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
23944 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
23945 builtin generator macros.
23946 * config/aarch64/aarch64-simd.md
23947 (aarch64_<su>mull_hi_n<mode>_insn): Define.
23948 (aarch64_<su>mull_hi_n<mode>): Define.
23949 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
23950 instead of inline asm.
23951 (vmull_high_n_s32): Likewise.
23952 (vmull_high_n_u16): Likewise.
23953 (vmull_high_n_u32): Likewise.
23955 2021-02-04 Richard Biener <rguenther@suse.de>
23957 PR tree-optimization/98855
23958 * tree-vect-loop.c (vectorizable_phi): Do not cost
23959 single-argument PHIs.
23960 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
23961 * tree-vect-stmts.c (vectorizable_bswap): Also perform
23962 costing for SLP operation.
23964 2021-02-04 Martin Liska <mliska@suse.cz>
23966 * doc/extend.texi: Mention -mprefer-vector-width in target
23969 2021-02-03 Martin Sebor <msebor@redhat.com>
23971 PR tree-optimization/98937
23972 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
23973 Flush pointer_query cache.
23975 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
23977 * config/rs6000/genfusion.pl (gen_2logical): Add missing
23978 fixes based on patch review.
23979 * config/rs6000/fusion.md: Regenerate file.
23981 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
23983 * config/rs6000/t-rs6000: Comment out auto generation of
23986 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
23988 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
23989 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
23990 (output_file_start): Add gfx908.
23991 * config/gcn/gcn.opt (gpu_type): Add gfx908.
23992 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
23993 (MULTILIB_DIRNAMES): Add gfx908.
23994 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
23995 (main): Recognize gfx908.
23996 * config/gcn/t-omp-device: Add gfx908.
23998 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24000 * config/aarch64/aarch64-simd-builtins.def: Add
24001 [su]mlsl_hi_lane[q] builtin macro generators.
24002 * config/aarch64/aarch64-simd.md
24003 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
24004 (aarch64_<su>mlsl_hi_lane<mode>): Define.
24005 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
24006 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
24007 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
24008 builtin instead of inline asm.
24009 (vmlsl_high_lane_s32): Likewise.
24010 (vmlsl_high_lane_u16): Likewise.
24011 (vmlsl_high_lane_u32): Likewise.
24012 (vmlsl_high_laneq_s16): Likewise.
24013 (vmlsl_high_laneq_s32): Likewise.
24014 (vmlsl_high_laneq_u16): Likewise.
24015 (vmlsl_high_laneq_u32): Likewise.
24016 (vmlal_high_laneq_u32): Likewise.
24018 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24020 * config/aarch64/aarch64-simd-builtins.def: Add
24021 [su]mlal_hi_lane[q] builtin generator macros.
24022 * config/aarch64/aarch64-simd.md
24023 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
24024 (aarch64_<su>mlal_hi_lane<mode>): Define.
24025 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
24026 (aarch64_<su>mlal_hi_laneq<mode>): Define.
24027 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
24028 builtin instead of inline asm.
24029 (vmlal_high_lane_s32): Likewise.
24030 (vmlal_high_lane_u16): Likewise.
24031 (vmlal_high_lane_u32): Likewise.
24032 (vmlal_high_laneq_s16): Likewise.
24033 (vmlal_high_laneq_s32): Likewise.
24034 (vmlal_high_laneq_u16): Likewise.
24035 (vmlal_high_laneq_u32): Likewise.
24037 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24039 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
24040 builtin generator macros.
24041 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
24043 (aarch64_<su>mlsl_hi_n<mode>): Define.
24044 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
24045 instead of inline asm.
24046 (vmlsl_high_n_s32): Likewise.
24047 (vmlsl_high_n_u16): Likewise.
24048 (vmlsl_high_n_u32): Likewise.
24050 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24052 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
24053 builtin generator macros.
24054 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
24056 (aarch64_<su>mlal_hi_n<mode>): Define.
24057 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
24058 instead of inline asm.
24059 (vmlal_high_n_s32): Likewise.
24060 (vmlal_high_n_u16): Likewise.
24061 (vmlal_high_n_u32): Likewise.
24063 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24065 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
24067 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
24069 (aarch64_<su>mlal_hi<mode>_insn): This.
24070 (aarch64_<su>mlal_hi<mode>): Define.
24071 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
24072 instead of inline asm.
24073 (vmlal_high_s16): Likewise.
24074 (vmlal_high_s32): Likewise.
24075 (vmlal_high_u8): Likewise.
24076 (vmlal_high_u16): Likewise.
24077 (vmlal_high_u32): Likewise.
24079 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
24081 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
24082 after calling alter_subreg() on a (mem).
24084 2021-02-03 Martin Liska <mliska@suse.cz>
24087 * lto-streamer-out.c (produce_lto_section): Fill up missing
24089 * lto-streamer.h (struct lto_section): Add _padding field.
24091 2021-02-03 Richard Biener <rguenther@suse.de>
24093 * lto-streamer.c (lto_get_section_name): Free temporary
24095 * tree-loop-distribution.c
24096 (loop_distribution::merge_dep_scc_partitions): Free edge data.
24098 2021-02-03 Jakub Jelinek <jakub@redhat.com>
24100 PR middle-end/97487
24101 * ifcvt.c (noce_can_force_operand): New function.
24102 (noce_emit_move_insn): Use it.
24103 (noce_try_sign_mask): Likewise. Formatting fix.
24105 2021-02-03 Jakub Jelinek <jakub@redhat.com>
24107 PR middle-end/97971
24108 * lra-constraints.c (process_alt_operands): For inline asm, don't call
24109 fatal_insn, but instead return false.
24111 2021-02-03 Jakub Jelinek <jakub@redhat.com>
24113 PR tree-optimization/98287
24114 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
24117 2021-02-03 Tamar Christina <tamar.christina@arm.com>
24119 PR tree-optimization/98928
24120 * tree-vect-loop.c (vect_analyze_loop_2): Change
24121 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
24122 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
24123 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
24124 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
24126 2021-02-02 Richard Biener <rguenther@suse.de>
24128 * gimple-loop-interchange.cc (prepare_data_references):
24130 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
24131 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
24132 * tree-vect-stmts.c (vectorizable_condition): Do not
24134 (vectorizable_comparison): Likewise.
24136 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24138 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
24139 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
24140 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
24141 (vrsqrteq_u32): Likewise.
24143 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24145 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
24146 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
24147 (aarch64_sqxtun2<mode>_be): Likewise.
24148 (aarch64_sqxtun2<mode>): Likewise.
24149 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
24150 (vqmovun_high_s32): Likewise.
24151 (vqmovun_high_s64): Likewise.
24152 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
24154 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24156 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
24158 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
24160 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24162 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
24163 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
24164 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
24165 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
24166 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
24167 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
24168 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
24169 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
24171 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24173 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
24174 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
24175 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
24177 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24179 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
24180 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
24182 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24184 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
24185 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
24186 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
24187 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
24188 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
24189 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
24190 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
24191 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
24192 NONE builtin flags.
24194 2021-02-02 Jakub Jelinek <jakub@redhat.com>
24196 PR tree-optimization/98848
24197 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
24198 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
24200 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
24203 * expr.c: Check mode before calling store_expr.
24205 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
24207 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
24209 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
24210 instruction using expression ior.
24211 (mve_vornq_u<mode>): New expander.
24212 (mve_vornq_f<mode>): Use ior code instead of unspec.
24213 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
24215 2021-02-02 Alexandre Oliva <oliva@adacore.com>
24217 * tree-nested.c (convert_nonlocal_reference_op): Move
24218 current_function_decl restore after re-gimplification.
24219 (convert_local_reference_op): Likewise.
24221 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24223 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
24225 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
24227 (aarch64_rshrn<mode>_insn_be): Likewise.
24228 (aarch64_rshrn<mode>): Likewise.
24229 (aarch64_rshrn2<mode>_insn_le): Likewise.
24230 (aarch64_rshrn2<mode>_insn_be): Likewise.
24231 (aarch64_rshrn2<mode>): Likewise.
24232 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
24233 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
24235 (vrshrn_high_n_s32): Likewise.
24236 (vrshrn_high_n_s64): Likewise.
24237 (vrshrn_high_n_u16): Likewise.
24238 (vrshrn_high_n_u32): Likewise.
24239 (vrshrn_high_n_u64): Likewise.
24240 (vrshrn_n_s16): Likewise.
24241 (vrshrn_n_s32): Likewise.
24242 (vrshrn_n_s64): Likewise.
24243 (vrshrn_n_u16): Likewise.
24244 (vrshrn_n_u32): Likewise.
24245 (vrshrn_n_u64): Likewise.
24247 2021-02-01 Sergei Trofimovich <siarheit@google.com>
24249 PR tree-optimization/98499
24250 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
24251 conservatively and assume all possible side-effects.
24253 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24255 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
24256 vec_unpacku_hi_): Define builtins.
24257 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
24259 (vmovl_high_s16): Likewise.
24260 (vmovl_high_s32): Likewise.
24261 (vmovl_high_u8): Likewise.
24262 (vmovl_high_u16): Likewise.
24263 (vmovl_high_u32): Likewise.
24265 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24267 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
24269 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
24271 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
24273 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
24275 (vabdl_s16): Likewise.
24276 (vabdl_s32): Likewise.
24277 (vabdl_u8): Likewise.
24278 (vabdl_u16): Likewise.
24279 (vabdl_u32): Likewise.
24280 * config/aarch64/iterators.md (ABDL): New int iterator.
24281 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
24283 2021-02-01 Martin Sebor <msebor@redhat.com>
24285 * tree.h (BLOCK_VARS): Add comment.
24286 (BLOCK_SUBBLOCKS): Same.
24287 (BLOCK_SUPERCONTEXT): Same.
24288 (BLOCK_ABSTRACT_ORIGIN): Same.
24289 (inlined_function_outer_scope_p): Same.
24291 2021-02-01 Martin Sebor <msebor@redhat.com>
24293 PR middle-end/97172
24294 * attribs.c (attr_access::free_lang_data): Define new function.
24295 * attribs.h (attr_access::free_lang_data): Declare new function.
24297 2021-02-01 Richard Biener <rguenther@suse.de>
24299 * vec.h (auto_vec::auto_vec): Add memory stat parameters
24301 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
24303 2021-02-01 Tamar Christina <tamar.christina@arm.com>
24305 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
24306 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
24308 2021-02-01 Richard Biener <rguenther@suse.de>
24310 PR rtl-optimization/98863
24311 * config/i386/i386-features.c (convert_scalars_to_vector):
24312 Set DF_RD_PRUNE_DEAD_DEFS.
24314 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
24316 * system.h (SIZE_MAX): Define if not already defined.
24318 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
24320 * config/rs6000/genfusion.pl (gen_2logical): New function to
24321 generate patterns for logical-logical fusion.
24322 * config/rs6000/fusion.md: Regenerated patterns.
24323 * config/rs6000/rs6000-cpus.def: Add
24324 OPTION_MASK_P10_FUSION_2LOGICAL.
24325 * config/rs6000/rs6000.c (rs6000_option_override_internal):
24326 Enable logical-logical fusion for p10.
24327 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
24329 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
24331 * config/rs6000/rs6000.opt: Add periods to new AIX options.
24333 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
24335 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
24336 (mabi=vec-default): New.
24337 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24338 __EXTABI__ for AIX Vector extended ABI.
24339 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
24341 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
24343 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
24345 2021-01-30 Jakub Jelinek <jakub@redhat.com>
24347 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
24348 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
24350 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
24353 * lra-constraints.c (in_class_p): Don't narrow class only for REG
24356 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
24358 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
24359 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
24360 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
24362 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
24364 PR tree-optimization/98866
24365 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
24366 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
24367 (gori_map::m_maybe_invariant): Rename from all_outgoing.
24368 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
24369 (gori_map::is_export_p): Ditto.
24370 (gori_map::calculate_gori): Ditto.
24371 (gori_compute::set_range_invariant): New.
24372 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
24373 invariant for pointers evaluating to [1, +INF].
24375 2021-01-29 Richard Biener <rguenther@suse.de>
24377 PR rtl-optimization/98863
24378 * config/i386/i386-features.c (remove_partial_avx_dependency):
24379 Do not perform DF analysis.
24380 (pass_data_remove_partial_avx_dependency): Remove
24383 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
24385 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
24386 builtin generator macros.
24387 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
24389 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
24390 instead of inline asm.
24391 (vmull_n_s32): Likewise.
24392 (vmull_n_u16): Likewise.
24393 (vmull_n_u32): Likewise.
24395 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24397 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
24399 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
24401 (aarch64_<sur>abdl2<mode>): ... This.
24402 (<sur>sadv16qi): Adjust use of above.
24403 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
24405 (vabdl_high_s16): Likewise.
24406 (vabdl_high_s32): Likewise.
24407 (vabdl_high_u8): Likewise.
24408 (vabdl_high_u16): Likewise.
24409 (vabdl_high_u32): Likewise.
24411 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24413 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
24415 (uabal2): Likewise.
24416 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
24418 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
24420 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
24422 (vabal_high_s16): Likewise.
24423 (vabal_high_s32): Likewise.
24424 (vabal_high_u8): Likewise.
24425 (vabal_high_u16): Likewise.
24426 (vabal_high_u32): Likewise.
24427 * config/aarch64/iterators.md (ABAL2): New mode iterator.
24428 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
24430 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24432 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
24435 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
24437 (aarch64_<sur>abal<mode>): ... This
24438 (<sur>sadv16qi): Adust use of the above.
24439 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
24441 (vabal_s16): Likewise.
24442 (vabal_s32): Likewise.
24443 (vabal_u8): Likewise.
24444 (vabal_u16): Likewise.
24445 (vabal_u32): Likewise.
24447 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24449 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
24451 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
24453 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
24455 (vaddlv_s16): Likewise.
24456 (vaddlv_u8): Likewise.
24457 (vaddlv_u16): Likewise.
24458 (vaddlvq_s8): Likewise.
24459 (vaddlvq_s16): Likewise.
24460 (vaddlvq_s32): Likewise.
24461 (vaddlvq_u8): Likewise.
24462 (vaddlvq_u16): Likewise.
24463 (vaddlvq_u32): Likewise.
24464 (vaddlv_s32): Likewise.
24465 (vaddlv_u32): Likewise.
24466 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
24467 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
24468 (Vwstype): New mode attribute.
24470 (VWIDE_S): Likewise.
24471 (USADDLV): New int iterator.
24472 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
24474 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
24476 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
24477 builtin generator macros.
24478 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
24480 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
24481 instead of inline asm.
24482 (vmlsl_lane_s32): Likewise.
24483 (vmlsl_lane_u16): Likewise.
24484 (vmlsl_lane_u32): Likewise.
24485 (vmlsl_laneq_s16): Likewise.
24486 (vmlsl_laneq_s32): Likewise.
24487 (vmlsl_laneq_u16): Likewise.
24488 (vmlsl_laneq_u32): Likewise.
24490 2021-01-29 Richard Biener <rguenther@suse.de>
24492 * doc/invoke.texi (--param max-gcse-memory): Document unit
24494 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
24495 * params.opt (--param max-gcse-memory): Adjust default and
24496 document unit of size.
24498 2021-01-29 Richard Biener <rguenther@suse.de>
24500 PR rtl-optimization/98863
24501 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
24502 HOST_WIDE_INT for the memory estimate.
24504 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
24505 Richard Biener <rguenther@suse.de>
24507 PR tree-optimization/97627
24508 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
24509 Do not analyze fake edges.
24511 2021-01-29 Richard Biener <rguenther@suse.de>
24513 PR rtl-optimization/98144
24514 * df.h (df_mir_bb_info): Add con_visited member.
24515 * df-problems.c (df_mir_alloc): Initialize con_visited,
24516 do not fully populate IN and OUT.
24517 (df_mir_reset): Likewise.
24518 (df_mir_confluence_0): Set con_visited.
24519 (df_mir_confluence_n): Properly handle implicitely
24520 fully populated IN and OUT as designated by con_visited
24521 and update con_visited accordingly.
24523 2021-01-29 Jakub Jelinek <jakub@redhat.com>
24526 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
24527 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
24528 && !TARGET_REALLY_IWMMXT to conditions.
24530 2021-01-29 Jakub Jelinek <jakub@redhat.com>
24533 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
24536 2021-01-28 Marek Polacek <polacek@redhat.com>
24539 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
24540 the main variant, maybe reset it in its variants too.
24541 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
24542 (check_aligned_type): Check if TYPE_USER_ALIGN match.
24544 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
24547 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
24548 of constant zero for comparisons.
24550 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
24552 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
24553 support for mapping built-in function names for long double
24554 built-in functions if long double is IEEE 128-bit.
24556 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
24558 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
24559 builtin generator macros.
24560 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
24562 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
24563 instead of inline asm.
24564 (vmlsl_n_s32): Likewise.
24565 (vmlsl_n_u16): Likewise.
24566 (vmlsl_n_u32): Likewise.
24568 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
24570 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
24571 builtin generator macros.
24572 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
24574 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
24575 instead of inline asm.
24576 (vmlal_n_s32): Likewise.
24577 (vmlal_n_u16): Likewise.
24578 (vmlal_n_u32): Likewise.
24580 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24582 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
24584 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
24586 (aarch64_shrn2<mode>_insn_be): Likewise.
24587 (aarch64_shrn2<mode>): Likewise.
24588 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
24590 (vshrn_high_n_s32): Likewise.
24591 (vshrn_high_n_s64): Likewise.
24592 (vshrn_high_n_u16): Likewise.
24593 (vshrn_high_n_u32): Likewise.
24594 (vshrn_high_n_u64): Likewise.
24596 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24598 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
24600 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
24602 (aarch64_shrn<mode>_insn_be): Likewise.
24603 (aarch64_shrn<mode>): Likewise.
24604 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
24606 (vshrn_n_s32): Likewise.
24607 (vshrn_n_s64): Likewise.
24608 (vshrn_n_u16): Likewise.
24609 (vshrn_n_u32): Likewise.
24610 (vshrn_n_u64): Likewise.
24611 * config/aarch64/iterators.md (vn_mode): New mode attribute.
24613 2021-01-28 Richard Biener <rguenther@suse.de>
24615 PR rtl-optimization/80960
24616 * dse.c (check_mem_read_rtx): Call get_addr on the
24619 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
24620 David Edelsohn <dje.gcc@gmail.com>
24623 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24624 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
24626 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
24628 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
24629 wrapper call rs6000_expand_vector_set_var for cleanup. Call
24630 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
24632 (rs6000_expand_vector_set_var): Delete.
24633 (rs6000_expand_vector_set_var_p9): Make static.
24634 (rs6000_expand_vector_set_var_p8): Make static.
24636 2021-01-28 Xing GUO <higuoxing@gmail.com>
24638 * common/config/riscv/riscv-common.c
24639 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
24640 when `p` extension exists.
24642 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
24644 PR rtl-optimization/97684
24645 * ira.c (ira): Call ira_set_pseudo_classes before
24646 update_equiv_regs when it is necessary.
24648 2021-01-27 Jakub Jelinek <jakub@redhat.com>
24651 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
24652 %w0, %w1 and %2 instead of %0, %1 and %2.
24654 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
24656 * config/rs6000/genfusion.pl: New script to generate
24657 define_insn_and_split patterns so combine can arrange fused
24658 instructions next to each other.
24659 * config/rs6000/fusion.md: New file, generated fused instruction
24660 patterns for combine.
24661 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
24662 (non_update_memory_operand): New predicate.
24663 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
24664 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
24666 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
24668 * config/rs6000/rs6000.c (rs6000_option_override_internal):
24669 Automatically set OPTION_MASK_P10_FUSION and
24670 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
24671 (rs600_opt_masks): Allow -mpower10-fusion
24672 in function attributes.
24673 (address_is_non_pfx_d_or_x): New function.
24674 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
24675 * config/rs6000/rs6000.md: Include fusion.md.
24676 * config/rs6000/rs6000.opt: Add -mpower10-fusion
24677 and -mpower10-fusion-ld-cmpi.
24678 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
24680 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
24682 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
24683 builtin generator macros.
24684 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
24686 (aarch64_<su>mlal<mode>): This.
24687 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
24688 instead of inline asm.
24689 (vmlal_s16): Likewise.
24690 (vmlal_s32): Likewise.
24691 (vmlal_u8): Likewise.
24692 (vmlal_u16): Likewise.
24693 (vmlal_u32): Likewise.
24695 2021-01-27 Richard Biener <rguenther@suse.de>
24697 PR tree-optimization/98854
24698 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
24699 PHIs from scalars when the number of CTORs matches the
24700 number of children.
24702 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
24704 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
24706 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
24708 (aarch64_mls_n<mode>): This.
24709 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
24711 (vmls_n_s32): Likewise.
24712 (vmls_n_u16): Likewise.
24713 (vmls_n_u32): Likewise.
24714 (vmlsq_n_s16): Likewise.
24715 (vmlsq_n_s32): Likewise.
24716 (vmlsq_n_u16): Likewise.
24717 (vmlsq_n_u32): Likewise.
24719 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
24721 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
24723 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
24725 (vmls_s16): Likewise.
24726 (vmls_s32): Likewise.
24727 (vmls_u8): Likewise.
24728 (vmls_u16): Likewise.
24729 (vmls_u32): Likewise.
24730 (vmlsq_s8): Likewise.
24731 (vmlsq_s16): Likewise.
24732 (vmlsq_s32): Likewise.
24733 (vmlsq_u8): Likewise.
24734 (vmlsq_u16): Likewise.
24735 (vmlsq_u32): Likewise.
24737 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
24739 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
24741 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
24743 (aarch64_mla_n<mode>): This.
24744 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
24746 (vmla_n_s32): Likewise.
24747 (vmla_n_u16): Likewise.
24748 (vmla_n_u32): Likewise.
24749 (vmlaq_n_s16): Likewise.
24750 (vmlaq_n_s32): Likewise.
24751 (vmlaq_n_u16): Likewise.
24752 (vmlaq_n_u32): Likewise.
24754 2021-01-27 liuhongt <hongtao.liu@intel.com>
24757 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
24758 (*sse2_eq<mode>3): Ditto.
24760 2021-01-27 Jakub Jelinek <jakub@redhat.com>
24762 * tree-pass.h (PROP_trees): Rename to ...
24763 (PROP_gimple): ... this.
24764 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
24765 * passes.c (execute_function_dump, execute_function_todo,
24766 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
24767 * varpool.c (ctor_for_folding): Likewise.
24769 2021-01-27 Jakub Jelinek <jakub@redhat.com>
24771 PR tree-optimization/97260
24772 * varpool.c: Include tree-pass.h.
24773 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
24774 non-TREE_SIDE_EFFECTS automatic variables.
24776 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
24778 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
24780 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
24781 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
24782 (gen_compile_unit_die): Recognise C++23.
24784 2021-01-26 Jakub Jelinek <jakub@redhat.com>
24787 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
24790 2021-01-26 Jakub Jelinek <jakub@redhat.com>
24793 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
24794 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
24795 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
24797 2021-01-26 Richard Biener <rguenther@suse.de>
24799 * gimple-pretty-print.c (dump_binary_rhs): Handle
24800 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
24802 2021-01-26 Richard Biener <rguenther@suse.de>
24804 PR middle-end/98726
24805 * tree.h (vector_cst_int_elt): Remove.
24806 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
24809 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
24811 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
24812 for V64DFmode min/max reductions.
24814 2021-01-26 Jakub Jelinek <jakub@redhat.com>
24816 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
24817 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
24818 two halves, one with x and the other with const0_rtx, ordered
24819 depending on endianity.
24821 2021-01-26 Alexandre Oliva <oliva@adacore.com>
24823 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
24824 temporaries not seen in binding block, and not about to be
24825 added as gimple variables.
24827 2021-01-25 Martin Sebor <msebor@redhat.com>
24830 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
24832 2021-01-25 Martin Liska <mliska@suse.cz>
24834 * value-prof.c (get_nth_most_common_value): Use %s instead
24837 2021-01-25 Jakub Jelinek <jakub@redhat.com>
24840 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
24841 readelf -wi is able to read the emitted .debug_info back.
24842 * configure: Regenerated.
24844 2021-01-25 Martin Liska <mliska@suse.cz>
24846 PR gcov-profile/98739
24847 * common.opt: Add missing sign symbol.
24848 * value-prof.c (get_nth_most_common_value): Restore handling
24849 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
24850 PROFILE_REPRODUCIBILITY_MULTITHREADED.
24852 2021-01-25 Richard Biener <rguenther@suse.de>
24854 PR middle-end/98807
24855 * tree.c (vector_element_bits): Always use precision of
24856 the element type for boolean vectors.
24858 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
24860 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
24861 (ENDFILE_SPEC): Evaluate qnolinkcmds.
24863 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
24865 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
24866 nostartfiles handling since this is already done by
24867 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
24868 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
24869 is already done by LINK_COMMAND_SPEC.
24870 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
24871 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
24874 2021-01-25 Jakub Jelinek <jakub@redhat.com>
24877 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
24878 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
24879 value rather than host size_t.
24880 (fold_const_call): Change type of s2 from size_t to
24881 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
24882 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
24883 instead of s2 as last argument.
24885 2021-01-25 Tamar Christina <tamar.christina@arm.com>
24887 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
24888 VCMLA_OP, VCMUL_OP): New.
24889 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
24890 * config/arm/neon.md (cmul<conj_op><mode>3): New.
24891 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
24892 UNSPEC_VCMUL_CONJ): New.
24893 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
24894 cml<fcmac1><conj_op><mode>4): New.
24896 2021-01-23 Jakub Jelinek <jakub@redhat.com>
24899 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
24901 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
24903 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
24905 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
24907 (vmla_s16): Likewise.
24908 (vmla_s32): Likewise.
24909 (vmla_u8): Likewise.
24910 (vmla_u16): Likewise.
24911 (vmla_u32): Likewise.
24912 (vmlaq_s8): Likewise.
24913 (vmlaq_s16): Likewise.
24914 (vmlaq_s32): Likewise.
24915 (vmlaq_u8): Likewise.
24916 (vmlaq_u16): Likewise.
24917 (vmlaq_u32): Likewise.
24919 2021-01-22 David Malcolm <dmalcolm@redhat.com>
24921 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
24924 2021-01-22 Jakub Jelinek <jakub@redhat.com>
24927 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
24928 filenames to emit, still emit the required 0 index directory and
24929 filename entries that match DW_AT_comp_dir and DW_AT_name of the
24932 2021-01-22 Marek Polacek <polacek@redhat.com>
24935 * doc/invoke.texi: Update C++ ABI Version 15 description.
24937 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24939 PR tree-optimization/98766
24940 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
24941 comparing against type size with param_avoid_fma_max_bits.
24943 2021-01-22 Richard Biener <rguenther@suse.de>
24945 PR middle-end/98793
24946 * tree.c (vector_element_bits): Key single-bit bool vector on
24947 integer mode rather than not vector mode.
24949 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
24952 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24953 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
24955 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
24956 to call different path for P8 and P9.
24957 (rs6000_expand_vector_set_var_p9): New function.
24958 (rs6000_expand_vector_set_var_p8): New function.
24960 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
24964 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24965 Ajdust variable index vec_insert from address dereference to
24966 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
24967 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
24969 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
24971 2021-01-22 Martin Liska <mliska@suse.cz>
24973 PR gcov-profile/98739
24974 * profile.c (compute_value_histograms): Drop time profile for
24975 -fprofile-reproducible=multithreaded.
24977 2021-01-22 Nathan Sidwell <nathan@acm.org>
24979 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
24982 2021-01-22 Richard Biener <rguenther@suse.de>
24984 PR middle-end/98773
24985 * tree-data-ref.c (initalize_matrix_A): Revert previous
24986 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
24988 2021-01-22 Jakub Jelinek <jakub@redhat.com>
24990 PR tree-optimization/90248
24991 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
24992 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
24994 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
24995 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
24997 2021-01-22 Jakub Jelinek <jakub@redhat.com>
24999 PR tree-optimization/98255
25000 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
25001 extend index - low_bound from sizetype's precision rather than index
25003 (get_addr_base_and_unit_offset_1): Likewise.
25004 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
25005 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
25007 2021-01-22 Richard Biener <rguenther@suse.de>
25009 PR tree-optimization/98786
25010 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
25011 adding new uses of abnormals. Verify we deal with a conditional
25014 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25017 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
25019 2021-01-22 liuhongt <hongtao.liu@intel.com>
25023 * config/i386/sse.md (VI_128_256): New mode iterator.
25024 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
25025 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
25026 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
25027 define_insn_and_split to lower avx512 vector comparison to avx
25028 version when dest is vector.
25029 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
25030 define_insn_and_split for negating the comparison result.
25031 * config/i386/predicates.md (float_vector_all_ones_operand):
25033 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
25034 general NOT operator without UNSPEC_MASKOP.
25036 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
25038 PR rtl-optimization/98777
25039 * lra-int.h (lra_pmode_pseudo): New extern.
25040 * lra.c (lra_pmode_pseudo): New global.
25042 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
25044 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
25046 * fwprop.c (fwprop_propagation::classify_result): Allow
25047 (subreg (mem)) simplifications.
25049 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25051 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
25053 (aarch64_sqdmlal<mode>): ... This...
25054 (aarch64_sqdmlsl<mode>): ... And this.
25055 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
25056 (aarch64_sqdmlal_lane<mode>): ... This...
25057 (aarch64_sqdmlsl_lane<mode>): ... And this.
25058 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
25059 (aarch64_sqdmlsl_laneq<mode>): ... This...
25060 (aarch64_sqdmlal_laneq<mode>): ... And this.
25061 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
25062 (aarch64_sqdmlsl_n<mode>): ... This...
25063 (aarch64_sqdmlal_n<mode>): ... And this.
25064 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
25065 (aarch64_sqdmlal2<mode>_internal): ... This...
25066 (aarch64_sqdmlsl2<mode>_internal): ... And this.
25068 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
25070 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
25072 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
25075 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
25077 2021-01-21 liuhongt <hongtao.liu@intel.com>
25079 PR rtl-optimization/98694
25080 * regcprop.c (copy_value): If SRC had been assigned a mode
25081 narrower than the copy, we can't link DEST into the chain even
25082 they have same hard_regno_nregs(i.e. HImode/SImode in i386
25085 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25087 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
25088 Convert to define_insn_and_split. Split into simple move when moving
25091 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
25093 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
25094 Adjust comment. Simplify code.
25096 2021-01-20 Jakub Jelinek <jakub@redhat.com>
25099 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
25100 with DW_FORM_line_strp form.
25101 (prune_unused_types_update_strings): Don't add into debug_str_hash
25102 indirect strings with DW_FORM_line_strp form.
25103 (adjust_name_comp_dir): New function.
25104 (dwarf2out_finish): Call it on CU DIEs after resetting
25105 debug_line_str_hash.
25107 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
25109 PR rtl-optimization/98722
25110 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
25111 has no 3-op add insn to transform insns containing two pluses.
25113 2021-01-20 Richard Biener <rguenther@suse.de>
25115 * hwint.h (add_hwi): New function.
25116 (mul_hwi): Likewise.
25117 * tree-data-ref.c (initialize_matrix_A): Properly translate
25118 tree constants and avoid HOST_WIDE_INT_MIN.
25119 (lambda_matrix_row_add): Avoid undefined integer overflow
25120 and return true on such overflow.
25121 (lambda_matrix_right_hermite): Handle overflow from
25122 lambda_matrix_row_add gracefully. Simplify previous fix.
25123 (analyze_subscript_affine_affine): Likewise.
25125 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
25127 PR tree-optimization/96674
25128 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
25129 x >= y && y != XXX_MIN --> x > y - 1
25131 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
25133 PR tree-optimization/98535
25134 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
25135 If the high and low permutes are the same, remove the high permutes
25136 from the working set and only continue with the low ones.
25138 2021-01-20 Jakub Jelinek <jakub@redhat.com>
25140 PR tree-optimization/98721
25141 * builtins.c (access_ref::inform_access): Don't assume
25142 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
25143 object whenever allocfn is NULL, rather than only when DECL_P
25144 is true. Use %qE instead of %qD for that. Formatting fixes.
25146 2021-01-20 Richard Biener <rguenther@suse.de>
25148 PR tree-optimization/98758
25149 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
25150 (lambda_matrix_right_hermite): Avoid undefinedness with
25151 signed integer abs and multiplication.
25152 (analyze_subscript_affine_affine): Use lambda_int.
25154 2021-01-20 David Malcolm <dmalcolm@redhat.com>
25157 * dwarf2out.c (output_line_info): Rename static variable
25158 "generation", moving it out of the function to...
25159 (output_line_info_generation): New.
25160 (init_sections_and_labels): Likewise, renaming the variable to...
25161 (init_sections_and_labels_generation): New.
25162 (dwarf2out_c_finalize): Reset the new variables.
25164 2021-01-19 Martin Sebor <msebor@redhat.com>
25166 PR middle-end/98664
25167 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
25168 all functions, even if they're not declared artificial or inline.
25169 * tree.c (tree_inlined_location): Use macro expansion location
25170 only if scope traversal fails to expose one.
25172 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
25174 PR rtl-optimization/92294
25175 * alias.c (compare_base_symbol_refs): Take an extra parameter
25176 and add the distance between two symbols to it. Enshrine in
25177 comments that -1 means "either 0 or 1, but we can't tell
25178 which at compile time".
25179 (memrefs_conflict_p): Update call accordingly.
25180 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
25183 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25185 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
25186 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
25187 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
25188 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
25189 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
25190 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
25191 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
25192 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
25193 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
25194 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
25195 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
25196 sqmovun): Use NONE flags.
25198 2021-01-19 Richard Biener <rguenther@suse.de>
25201 * ipa-modref.c (analyze_stmt): Only record a summary for a
25204 2021-01-19 Richard Biener <rguenther@suse.de>
25206 PR middle-end/98638
25207 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
25209 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
25211 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
25212 built-in define __FIX_LEON3FT_TN0018.
25214 2021-01-19 Richard Biener <rguenther@suse.de>
25217 * tree-inline.c (tree_function_versioning): Set input_location
25218 to UNKNOWN_LOCATION throughout the function.
25220 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
25223 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
25225 2021-01-19 Martin Jambor <mjambor@suse.cz>
25228 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
25229 whether non-call exceptions allow removal of a statement.
25230 (isra_analyze_call): Pass the appropriate function to
25231 ssa_name_only_returned_p.
25233 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
25235 * config/riscv/arch-canonicalize (longext_sort): New function for
25236 sorting 'multi-letter'.
25237 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
25238 'alts'. The 'arch' may not be the first of 'alts'.
25239 (_expand_combination): Add underline for the 'ext' without '*'.
25240 This is because, a single-letter extension can always be treated well
25241 with a '_' prefix, but it cannot be separated out if it is appended
25244 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
25247 * ira.c (ira): Skip abnormal critical edge splitting.
25249 2021-01-18 Jakub Jelinek <jakub@redhat.com>
25251 PR tree-optimization/98727
25252 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
25253 second .MUL_OVERFLOW operand for signed multiplication with overflow
25254 checking if the second operand of multiplication is not constant.
25256 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
25258 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
25259 defaults to version 4.
25261 2021-01-18 David Malcolm <dmalcolm@redhat.com>
25263 * attribs.h (fndecl_dealloc_argno): New decl.
25264 * builtins.c (call_dealloc_argno): Split out second half of
25266 (fndecl_dealloc_argno): New.
25267 * doc/extend.texi (Common Function Attributes): Document the
25268 interaction between the analyzer and the malloc attribute.
25269 * doc/invoke.texi (Static Analyzer Options): Likewise.
25271 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
25273 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
25274 dwarf_version to 4.
25275 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
25277 2021-01-17 Martin Jambor <mjambor@suse.cz>
25280 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
25283 2021-01-17 Mark Wielaard <mark@klomp.org>
25285 * common.opt (gdwarf-): Init(5).
25286 * doc/invoke.texi (-gdwarf): Document default to 5.
25288 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
25290 * builtin-types.def
25291 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
25293 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
25294 ...this. Add extra argument.
25295 * gimplify.c (omp_default_clause): Ensure that event handle is
25296 firstprivate in a task region.
25297 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
25298 (gimplify_adjust_omp_clauses): Likewise.
25299 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
25300 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
25301 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
25302 if detach clause specified. Add detach argument when generating
25304 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
25306 (finish_taskreg_scan): Move field for variable containing the event
25307 handle to the front of the struct.
25308 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
25310 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
25311 OMP_CLAUSE_DETACH clause.
25312 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
25313 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
25314 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
25316 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
25318 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
25320 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
25322 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
25323 multilib directory names. Use MULTILIB_REQUIRED instead of
25324 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
25325 -mcustom-fpu-cfg=fph2 multilib.
25327 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
25329 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
25330 (nios2_init_fpu_configs): Provide register values for new
25331 -mcustom-fpu-cfg=fph2 option variant.
25332 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
25335 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
25337 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
25338 custom instruction warnings.
25340 2021-01-16 Jakub Jelinek <jakub@redhat.com>
25342 PR tree-optimization/96669
25343 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
25345 2021-01-16 Jakub Jelinek <jakub@redhat.com>
25347 PR tree-optimization/96271
25348 * passes.def: Pass false argument to first two pass_cd_dce
25349 instances and true to last instance. Add comment that
25350 last instance rewrites no longer addressed locals.
25351 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
25353 (pass_cd_dce::set_pass_param): New method.
25354 (pass_cd_dce::execute): Return TODO_update_address_taken from
25355 last cd_dce instance.
25357 2021-01-15 Carl Love <cel@us.ibm.com>
25359 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
25361 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
25362 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
25363 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
25364 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
25365 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
25366 Add builtin define.
25367 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
25368 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
25369 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
25370 New overloaded definitions.
25371 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
25372 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
25373 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
25374 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
25375 P10V_BUILTIN_MULHU_V4SI]: Add case
25376 statement for builtins.
25377 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
25378 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
25379 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
25380 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
25381 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
25382 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
25383 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
25384 Add define_insn, mode is VIlong.
25385 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
25386 Add builtin descriptions.
25388 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
25390 * final.c (final_start_function_1): Reset force_source_line.
25392 2021-01-15 Jakub Jelinek <jakub@redhat.com>
25394 PR tree-optimization/96669
25395 * match.pd (((1 << A) & 1) != 0 -> A == 0,
25396 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
25397 possibly different power of two constants and to right shift too.
25399 2021-01-15 Jakub Jelinek <jakub@redhat.com>
25401 PR tree-optimization/96681
25402 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
25403 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
25404 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
25405 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
25407 2021-01-15 Alexandre Oliva <oliva@adacore.com>
25409 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
25411 2021-01-15 Tamar Christina <tamar.christina@arm.com>
25413 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
25414 cmul<conj_op><mode>3): New.
25415 * config/aarch64/iterators.md (UNSPEC_FCMUL,
25416 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
25417 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
25418 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
25419 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
25420 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
25421 (rot_op): Renamed to conj_op.
25422 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
25423 cmul<conj_op><mode>3): New.
25424 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
25425 cmul<conj_op><mode>3): New.
25427 2021-01-15 David Malcolm <dmalcolm@redhat.com>
25431 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
25432 Escape the tempfile name when constructing the expected output.
25434 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25436 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
25438 (aarch64_<su>mlsl_hi<mode>): ... This.
25439 (aarch64_<su>mlsl_hi<mode>): Define.
25440 (*aarch64_<su>mlsl<mode): Rename to...
25441 (aarch64_<su>mlsl<mode): ... This.
25442 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
25443 smlsl_hi, umlsl_hi): Define builtins.
25444 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
25445 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
25446 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
25447 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
25449 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
25451 * config/i386/i386-c.c (ix86_target_macros):
25452 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
25454 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
25457 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
25458 * Makefile.in (RTL_SSA_H): New variable.
25459 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
25460 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
25461 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
25463 * config/aarch64/aarch64-cc-fusion.cc: New file.
25465 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
25467 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
25468 calling cancel_changes for changes that no longer exist.
25470 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
25472 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
25473 (function_info::reg_defs): ...this.
25474 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
25475 (function_info::reg_defs): ...this.
25477 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
25480 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
25482 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
25485 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
25488 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
25490 2021-01-15 Richard Biener <rguenther@suse.de>
25492 PR tree-optimization/96376
25493 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
25494 for VMAT_INVARIANT.
25496 2021-01-15 Martin Liska <mliska@suse.cz>
25498 * doc/install.texi: Document that some tests need pytest module.
25499 * doc/sourcebuild.texi: Likewise.
25501 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
25504 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
25506 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
25508 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
25509 (mve_vshrq_n_u<mode>_imm): Likewise.
25510 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
25511 * config/arm/vec-common.md: ... here.
25513 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
25515 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
25517 * config/arm/neon.md (vashl<mode>3): Delete.
25518 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
25519 (vasl<mode>3): New expander.
25521 2021-01-15 Richard Biener <rguenther@suse.de>
25523 PR tree-optimization/98685
25524 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
25525 of vector extern defs.
25527 2021-01-14 David Malcolm <dmalcolm@redhat.com>
25530 * diagnostic.c (diagnostic_kind_text): Break out this array
25532 (diagnostic_build_prefix): ...here.
25533 (fancy_abort): Detect when diagnostic_initialize has not yet been
25534 called and fall back to a minimal implementation of printing the
25535 ICE, rather than segfaulting in internal_error.
25537 2021-01-14 David Malcolm <dmalcolm@redhat.com>
25539 * diagnostic.c (diagnostic_initialize): Eliminate
25540 parseable_fixits_p in favor of initializing extra_output_kind from
25541 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
25542 (convert_column_unit): New function, split out from...
25543 (diagnostic_converted_column): ...this.
25544 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
25545 Use them to call convert_column_unit on the column values.
25546 (diagnostic_report_diagnostic): Eliminate conditional on
25547 parseable_fixits_p in favor of a switch statement on
25548 extra_output_kind, passing the appropriate values to the new
25549 params of print_parseable_fixits.
25550 (selftest::test_print_parseable_fixits_none): Update for new
25551 params of print_parseable_fixits.
25552 (selftest::test_print_parseable_fixits_insert): Likewise.
25553 (selftest::test_print_parseable_fixits_remove): Likewise.
25554 (selftest::test_print_parseable_fixits_replace): Likewise.
25555 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
25557 (selftest::diagnostic_c_tests): Call it.
25558 * diagnostic.h (enum diagnostics_extra_output_kind): New.
25559 (diagnostic_context::parseable_fixits_p): Delete field in favor
25561 (diagnostic_context::extra_output_kind): ...this new field.
25562 * doc/invoke.texi (Environment Variables): Add
25563 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
25564 * opts.c (common_handle_option): Update handling of
25565 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
25568 2021-01-14 Tamar Christina <tamar.christina@arm.com>
25570 * tree-vect-slp-patterns.c (class complex_operations_pattern,
25571 complex_operations_pattern::matches,
25572 complex_operations_pattern::recognize,
25573 complex_operations_pattern::build): New.
25574 (slp_patterns): Use it.
25576 2021-01-14 Tamar Christina <tamar.christina@arm.com>
25578 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
25579 * optabs.def (cmls_optab, cmls_conj_optab): New.
25580 * doc/md.texi: Document them.
25581 * tree-vect-slp-patterns.c (class complex_fms_pattern,
25582 complex_fms_pattern::matches, complex_fms_pattern::recognize,
25583 complex_fms_pattern::build): New.
25585 2021-01-14 Tamar Christina <tamar.christina@arm.com>
25587 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
25588 * optabs.def (cmla_optab, cmla_conj_optab): New.
25589 * doc/md.texi: Document them.
25590 * tree-vect-slp-patterns.c (vect_match_call_p,
25591 class complex_fma_pattern, vect_slp_reset_pattern,
25592 complex_fma_pattern::matches, complex_fma_pattern::recognize,
25593 complex_fma_pattern::build): New.
25595 2021-01-14 Tamar Christina <tamar.christina@arm.com>
25597 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
25598 * optabs.def (cmul_optab, cmul_conj_optab): New.
25599 * doc/md.texi: Document them.
25600 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
25601 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
25602 vect_build_combine_node, class complex_mul_pattern,
25603 complex_mul_pattern::matches, complex_mul_pattern::recognize,
25604 complex_mul_pattern::build): New.
25606 2021-01-14 Tamar Christina <tamar.christina@arm.com>
25608 * tree-vect-slp.c (optimize_load_redistribution_1): New.
25609 (optimize_load_redistribution, vect_is_slp_load_node): New.
25610 (vect_match_slp_patterns): Use it.
25612 2021-01-14 Tamar Christina <tamar.christina@arm.com>
25614 * tree-vect-slp-patterns.c (complex_add_pattern::build):
25617 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
25619 * config/gcn/mkoffload.c (main): Create an offload image only in
25620 64-bit configurations.
25622 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
25625 * config/i386/i386-options.c (ix86_option_override_internal):
25626 Issue an error for -fcf-protection with CF_BRANCH when compiling
25627 for 32-bit non-TARGET_CMOV targets.
25629 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
25632 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
25633 Remove declaration and initialization of shadow variable "ret".
25634 (ix86_option_override_internal): Remove delcaration of
25635 shadow variable "i". Redeclare shadowed variable to unsigned.
25636 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
25637 * config/i386/i386-builtins.c (get_builtin_code_for_version):
25638 Update for redeclaration.
25639 * config/i386/i386.h (pta_size): Ditto.
25641 2021-01-14 Richard Biener <rguenther@suse.de>
25643 PR tree-optimization/98674
25644 * tree-data-ref.c (base_supports_access_fn_components_p): New.
25645 (initialize_data_dependence_relation): For two bases without
25646 possible access fns resort to type size equality when determining
25647 shape compatibility.
25649 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25652 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
25653 <=, >= operators in vcle and vcge intrinsics respectively.
25654 * config/arm/arm_neon_builtins.def: Remove entry for
25657 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
25660 * config/i386/i386-options.c (ix86_function_specific_save):
25661 Remove redundant assignment to opts->x_ix86_branch_cost.
25662 * config/i386/i386.c (ix86_prefetch_sse):
25663 Rename from x86_prefetch_sse. Update all uses.
25664 * config/i386/i386.h: Update for rename.
25665 * config/i386/i386-options.h: Ditto.
25667 2021-01-14 Jakub Jelinek <jakub@redhat.com>
25670 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
25671 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
25672 Use Bm instead of m for non-avx. Add isa attribute.
25674 2021-01-14 Jakub Jelinek <jakub@redhat.com>
25676 PR tree-optimization/96688
25677 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
25678 ~X can be simplified.
25680 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
25682 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
25683 IFN_LOAD_LANES results.
25685 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25687 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
25689 (aarch64_xtn<mode>): Likewise.
25690 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
25693 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
25695 (vmovl_s16): Likewise.
25696 (vmovl_s32): Likewise.
25697 (vmovl_u8): Likewise.
25698 (vmovl_u16): Likewise.
25699 (vmovl_u32): Likewise.
25700 (vmovn_s16): Likewise.
25701 (vmovn_s32): Likewise.
25702 (vmovn_s64): Likewise.
25703 (vmovn_u16): Likewise.
25704 (vmovn_u32): Likewise.
25705 (vmovn_u64): Likewise.
25707 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25709 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
25711 (aarch64_<su>qxtn2<mode>_be): Likewise.
25712 (aarch64_<su>qxtn2<mode>): Likewise.
25713 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
25715 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
25716 (su): Handle ss_truncate and us_truncate.
25717 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
25719 (vqmovn_high_s32): Likewise.
25720 (vqmovn_high_s64): Likewise.
25721 (vqmovn_high_u16): Likewise.
25722 (vqmovn_high_u32): Likewise.
25723 (vqmovn_high_u64): Likewise.
25725 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25727 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
25729 (aarch64_xtn2<mode>_be): Likewise.
25730 (aarch64_xtn2<mode>): Likewise.
25731 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
25733 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
25735 (vmovn_high_s32): Likewise.
25736 (vmovn_high_s64): Likewise.
25737 (vmovn_high_u16): Likewise.
25738 (vmovn_high_u32): Likewise.
25739 (vmovn_high_u64): Likewise.
25741 2021-01-13 Stafford Horne <shorne@gmail.com>
25743 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
25745 2021-01-13 Stafford Horne <shorne@gmail.com>
25747 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
25749 2021-01-13 Stafford Horne <shorne@gmail.com>
25751 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
25752 define for __or1k_hard_float__.
25754 2021-01-13 Stafford Horne <shorne@gmail.com>
25756 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
25757 (PROFILE_HOOK): Define to call _mcount.
25758 (FUNCTION_PROFILER): Change from abort to no-op.
25760 2021-01-13 Jakub Jelinek <jakub@redhat.com>
25762 PR tree-optimization/96691
25763 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
25764 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
25765 (~D ^ C) or (D ^ C) can be simplified.
25767 2021-01-13 Richard Biener <rguenther@suse.de>
25769 PR tree-optimization/92645
25770 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
25771 until after vector lowering.
25773 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
25775 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
25777 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
25778 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
25780 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
25782 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
25784 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
25785 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
25787 2021-01-13 Richard Biener <rguenther@suse.de>
25789 PR tree-optimization/92645
25790 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
25791 BIT_FIELD_REF argument.
25792 (vect_build_slp_tree_2): Record the desired vector type
25793 on the external vector def.
25794 (vectorizable_slp_permutation): Handle required punning
25795 of existing vector defs.
25797 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
25799 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
25801 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
25803 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
25805 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
25807 * config.gcc [$target == *-*-gnu*]: Enable
25808 'default_gnu_indirect_function'.
25810 2021-01-13 Jakub Jelinek <jakub@redhat.com>
25813 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
25814 registers before calling targetm.vectorize.vec_perm_const, only after
25816 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
25817 two argument permutation when one operand is zero vector and only
25818 after that force operands into registers.
25819 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
25820 define_insn_and_split pattern.
25821 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
25822 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
25823 (*avx2_zero_extendv8hiv8si2_1): Likewise.
25824 (*avx512f_zero_extendv8siv8di2_1): Likewise.
25825 (*avx2_zero_extendv4siv4di2_1): Likewise.
25826 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
25828 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
25829 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
25830 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
25831 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
25832 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
25833 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
25835 2021-01-13 Martin Liska <mliska@suse.cz>
25837 PR tree-optimization/98455
25838 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
25839 Record also virtual PHIs.
25840 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
25843 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
25845 * doc/invoke.texi (C++ Modules): Fix typos.
25847 2021-01-13 Richard Biener <rguenther@suse.de>
25849 PR tree-optimization/98640
25850 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
25851 handle plus or minus from a truncated operand to be
25854 2021-01-13 Jakub Jelinek <jakub@redhat.com>
25857 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
25858 define_insn_and_split patterns.
25859 (splitter after *btr<mode>_2): New splitter.
25861 2021-01-13 Martin Liska <mliska@suse.cz>
25864 * cgraphunit.c (analyze_functions): Remove dead code.
25866 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
25868 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
25869 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
25870 (a64fx_regmove_cost, a64fx_vector_cost): New.
25871 (a64fx_tunings): Use the new added cost tables.
25873 2021-01-13 Jakub Jelinek <jakub@redhat.com>
25876 * config/i386/predicates.md (pmovzx_parallel): New predicate.
25877 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
25878 define_insn_and_split pattern.
25879 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
25880 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
25882 2021-01-13 Julian Brown <julian@codesourcery.com>
25884 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
25885 to fix v0 register.
25887 2021-01-13 Julian Brown <julian@codesourcery.com>
25889 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
25892 2021-01-13 Julian Brown <julian@codesourcery.com>
25894 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
25895 for reciprocal-approximation instructions.
25896 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
25897 refinement and division result.
25898 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
25900 2021-01-13 Julian Brown <julian@codesourcery.com>
25902 * config/gcn/gcn-valu.md (subdf): Rename to...
25905 2021-01-12 Martin Liska <mliska@suse.cz>
25907 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
25909 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
25911 * function-abi.h: Fix typo.
25913 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
25917 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
25918 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
25919 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
25920 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
25921 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
25922 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
25923 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
25924 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
25925 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
25926 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
25927 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
25928 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
25929 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
25930 (ARM_HAVE_V2DI_LDST): Likewise.
25931 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
25932 (*movmisalign<mode>_mve_load): New pattern.
25933 * config/arm/neon.md (movmisalign<mode>): Move to ...
25934 * config/arm/vec-common.md: ... here.
25936 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
25939 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
25940 of pattern 'plus (plus (hard reg, const), pseudo)'.
25942 2021-01-12 Richard Biener <rguenther@suse.de>
25944 PR tree-optimization/98550
25945 * tree-vect-slp.c (vect_record_max_nunits): Check whether
25946 the group size is a multiple of the vector element count.
25947 (vect_build_slp_tree_1): When we need to fail because
25948 the vector type choosen causes unrolling do so lazily
25949 without affecting matches only at the end to guide group splitting.
25951 2021-01-12 Martin Liska <mliska@suse.cz>
25954 * optc-save-gen.awk: Compare also n_target_save vars with
25957 2021-01-12 Martin Liska <mliska@suse.cz>
25959 * gcov.c (source_info::debug): New.
25960 (print_usage): Add --debug (-D) option.
25961 (process_args): Likewise.
25962 (generate_results): Call src->debug after
25963 accumulate_line_counts.
25964 (read_graph_file): Properly assign id for EXIT_BLOCK.
25965 * profile.c (branch_prob): Dump function body before it is
25968 2021-01-12 Jakub Jelinek <jakub@redhat.com>
25970 PR tree-optimization/98629
25971 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
25972 unless returning non-zero.
25974 2021-01-12 Jakub Jelinek <jakub@redhat.com>
25976 PR tree-optimization/95731
25977 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
25978 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
25979 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
25980 only after optimize_range_tests_var_bound.
25982 2021-01-12 Jakub Jelinek <jakub@redhat.com>
25984 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
25985 * configure: Regenerated.
25987 2021-01-12 liuhongt <hongtao.liu@intel.com>
25990 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
25992 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
25995 2021-01-12 Alexandre Oliva <oliva@adacore.com>
25997 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
25999 (auto_end_imm_use_stmt_traverse): New struct.
26000 (FOR_EACH_IMM_USE_STMT): Use it.
26001 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
26003 * gimple-ssa-strength-reduction.c: ... here, ...
26004 * graphite-scop-detection.c: ... here, ...
26005 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
26006 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
26007 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
26008 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
26009 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
26010 * tree-vect-slp.c: ... and here, ...
26011 * doc/tree-ssa.texi: ... and the example here.
26013 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26015 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
26016 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
26017 (*sdiv_pow2<mode>3): New pattern.
26018 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
26019 Wrap the ASRD in an UNSPEC_PRED_X.
26020 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
26021 predicate with a constant PTRUE, if it isn't already.
26022 (*cond_<sve_int_op><mode>_z): Replace with...
26023 (*cond_<sve_int_op><mode>_any): ...this new pattern.
26025 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26027 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
26028 SVE_FULL_I to SVE_I.
26029 (*cond_bic<mode>_any): Likewise.
26031 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26033 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
26034 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
26037 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26039 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
26040 SVE_FULL_I to SVE_I.
26041 (*aarch64_cond_<su>abd<mode>_2): Likewise.
26042 (*aarch64_cond_<su>abd<mode>_any): Likewise.
26043 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
26044 for the max and min but not for the minus.
26045 (*aarch64_cond_<su>abd<mode>_3): New pattern.
26047 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26049 * config/aarch64/iterators.md (SVE_24I): New iterator.
26050 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
26051 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
26053 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26055 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
26056 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
26058 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
26059 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
26060 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
26061 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
26063 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26065 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
26066 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
26067 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
26070 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26072 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
26073 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
26074 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
26076 2021-01-11 Martin Liska <mliska@suse.cz>
26079 * symtab-clones.h (clone_info::release): Release
26080 symtab::m_clones with ggc_delete as it's a GGC memory.
26082 2021-01-11 Matthias Klose <doko@ubuntu.com>
26084 * Makefile.in (LINK_PROGRESS): Show the link target.
26086 2021-01-11 Richard Biener <rguenther@suse.de>
26088 PR tree-optimization/91403
26089 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
26090 single-element interleaving group size at 4096 elements.
26092 2021-01-11 Richard Biener <rguenther@suse.de>
26094 PR tree-optimization/98526
26095 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
26096 of the actual reduction op for the regular case.
26097 (vectorizable_reduction): Cost the stmts
26098 vect_transform_reduction produces here.
26100 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
26102 * tree-ssa-forwprop.c (simplify_vector_constructor): For
26103 big-endian, use UNPACK[_FLOAT]_HI.
26105 2021-01-11 Tamar Christina <tamar.christina@arm.com>
26107 * tree-vect-slp-patterns.c (class complex_pattern,
26108 class complex_add_pattern): Add parameters to matches.
26109 (complex_add_pattern::build): Free memory.
26110 (complex_add_pattern::matches): Move validation end of match.
26111 (complex_add_pattern::recognize): Likewise.
26113 2021-01-11 Tamar Christina <tamar.christina@arm.com>
26115 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
26117 2021-01-11 Tamar Christina <tamar.christina@arm.com>
26119 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
26121 2021-01-11 Jakub Jelinek <jakub@redhat.com>
26123 PR tree-optimization/95867
26124 * tree-ssa-math-opts.h: New header.
26125 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
26126 (powi_as_mults): No longer static. Use build_one_cst instead of
26127 build_real. Formatting fix.
26128 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
26129 (attempt_builtin_powi): Handle multiplication reassociation without
26130 powi_fndecl using powi_as_mults.
26131 (reassociate_bb): For integral types don't require
26132 -funsafe-math-optimizations to call attempt_builtin_powi.
26134 2021-01-11 Jakub Jelinek <jakub@redhat.com>
26136 PR tree-optimization/95852
26137 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
26138 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
26139 allow in the bb any of the stmts in that vector, div_stmt and
26140 up to 3 cast stmts.
26141 (arith_cast_equal_p): New function.
26142 (arith_overflow_check_p): Add cast_stmt argument, handle signed
26143 multiply overflow checks.
26144 (match_arith_overflow): Adjust caller. Handle signed multiply
26147 2021-01-11 Jakub Jelinek <jakub@redhat.com>
26149 PR tree-optimization/95852
26150 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
26151 (uaddsub_overflow_check_p): Renamed to ...
26152 (arith_overflow_check_p): ... this. Handle also multiplication
26153 with overflow check.
26154 (match_uaddsub_overflow): Renamed to ...
26155 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
26156 also multiplication with overflow check. Adjust function comment.
26157 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
26158 match_arith_overflow also for MULT_EXPR.
26160 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26162 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
26163 __builtin_convertvector.
26164 (vmovl_s16): Likewise.
26165 (vmovl_s32): Likewise.
26166 (vmovl_u8): Likewise.
26167 (vmovl_u16): Likewise.
26168 (vmovl_u32): Likewise.
26169 (vmovn_s16): Likewise.
26170 (vmovn_s32): Likewise.
26171 (vmovn_s64): Likewise.
26172 (vmovn_u16): Likewise.
26173 (vmovn_u32): Likewise.
26174 (vmovn_u64): Likewise.
26176 2021-01-11 Martin Liska <mliska@suse.cz>
26178 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
26179 (if_chain::is_beneficial): Delete clusters
26180 (find_conditions): Make second argument of conditions_in_bbs a
26181 pointer so that we control over it's lifetime.
26182 (pass_if_to_switch::execute): Delete them.
26184 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
26186 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
26189 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26191 * config/vax/vax.md (cc): Remove mode attribute.
26192 (subst_<cc>, subst_f<cc>): Rename to...
26193 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
26194 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
26195 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
26196 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
26198 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26200 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
26201 `const_double_zero'.
26203 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26205 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
26206 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
26209 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26211 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
26213 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
26214 with `const_double_zero'.
26215 * doc/rtl.texi (Constant Expression Types): Document it.
26217 2021-01-09 Jakub Jelinek <jakub@redhat.com>
26220 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
26221 POINTER_DIFF_EXPR to be any integral type.
26223 2021-01-09 Jakub Jelinek <jakub@redhat.com>
26225 PR rtl-optimization/98603
26226 * function.c (instantiate_virtual_regs_in_insn): For asm goto
26227 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
26228 if any, set ASM_OPERANDS mode to VOIDmode and change
26229 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
26231 2021-01-09 Alexandre Oliva <oliva@gnu.org>
26234 * final.c (notice_source_line): Narrow down the condition to
26235 skip a line-0 marker.
26237 2021-01-08 Sergei Trofimovich <siarheit@google.com>
26239 * ipa-modref.c (merge_call_side_effects): Fix
26240 linebreak split by reordering two print calls.
26242 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
26244 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
26245 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
26246 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
26247 consistency, fix constraint.
26249 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
26251 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
26252 callables instead of mask values.
26253 (struct target_flag_set_p): New predicate.
26254 (s390_cpu_cpp_builtins_internal): Define or undefine
26255 __LONG_DOUBLE_VX__ macro.
26257 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
26260 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
26261 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
26264 2021-01-08 Richard Biener <rguenther@suse.de>
26266 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
26268 2021-01-08 Richard Biener <rguenther@suse.de>
26270 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
26271 (vect_build_slp_tree): On cache hit release the matched
26272 scalar stmts vector.
26273 * tree-vect-stmts.c (vectorizable_store): Properly free
26274 vec_oprnds before possibly gathering them again.
26276 2021-01-08 Richard Biener <rguenther@suse.de>
26278 PR tree-optimization/98544
26279 * tree-vect-slp.c (vect_optimize_slp): Always materialize
26280 permutes at a permute node.
26282 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
26285 * config/i386/i386.c (x86_function_profiler): Use R10 to call
26286 mcount in large model. Sorry for large model with PIC.
26288 2021-01-08 Jakub Jelinek <jakub@redhat.com>
26291 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
26292 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
26293 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
26294 TargetSave and initialize for variables with enum types.
26295 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
26296 mstack-protector-guard-symbol=): Add Save.
26297 * config/i386/i386-options.c (ix86_function_specific_save,
26298 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
26299 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
26300 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
26301 x_ix86_veclibabi_type.
26303 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
26305 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
26306 SVE_FULL_I to SVE_I.
26307 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
26309 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
26311 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
26312 SVE_FULL_I to SVE_I.
26313 (*cond_uxt<mode>_any): Likewise.
26315 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26317 * config/aarch64/iterators.md (Vwhalf): New iterator.
26318 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
26320 (aarch64_<sur>adalp<mode>): ... This. Make more
26322 (<sur>sadv16qi): Adjust callsite of the above.
26323 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
26325 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
26327 (vpadal_s16): Likewise.
26328 (vpadal_u8): Likewise.
26329 (vpadal_u16): Likewise.
26330 (vpadalq_s8): Likewise.
26331 (vpadalq_s16): Likewise.
26332 (vpadalq_s32): Likewise.
26333 (vpadalq_u8): Likewise.
26334 (vpadalq_u16): Likewise.
26335 (vpadalq_u32): Likewise.
26337 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26339 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
26341 (aarch64_<su>abd<mode>): ... This.
26342 (<sur>sadv16qi): Adjust callsite of the above.
26343 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
26345 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
26347 (vabd_s16): Likewise.
26348 (vabd_s32): Likewise.
26349 (vabd_u8): Likewise.
26350 (vabd_u16): Likewise.
26351 (vabd_u32): Likewise.
26352 (vabdq_s8): Likewise.
26353 (vabdq_s16): Likewise.
26354 (vabdq_s32): Likewise.
26355 (vabdq_u8): Likewise.
26356 (vabdq_u16): Likewise.
26357 (vabdq_u32): Likewise.
26359 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26361 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
26363 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
26364 (vaba_s16): Likewise.
26365 (vaba_s32): Likewise.
26366 (vaba_u8): Likewise.
26367 (vaba_u16): Likewise.
26368 (vaba_u32): Likewise.
26369 (vabaq_s8): Likewise.
26370 (vabaq_s16): Likewise.
26371 (vabaq_s32): Likewise.
26372 (vabaq_u8): Likewise.
26373 (vabaq_u16): Likewise.
26374 (vabaq_u32): Likewise.
26376 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26378 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
26379 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
26380 Change RTL pattern to match.
26382 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
26384 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
26385 * config/riscv/riscv-c.c (riscv-subset.h): New.
26386 (INCLUDE_STRING): Define.
26387 (riscv_cpu_cpp_builtins): Add new style architecture extension
26389 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
26390 (riscv_subset_list::end): New.
26391 (riscv_current_subset_list): New.
26393 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
26395 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
26396 Move to riscv-subset.h.
26397 (struct riscv_subset_t): Ditto.
26398 (class riscv_subset_list): Ditto.
26399 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
26400 from riscv-common.c.
26401 (struct riscv_subset_t): Ditto.
26402 (class riscv_subset_list): Ditto.
26403 * config/riscv/t-riscv ($(common_out_file)): Add file
26406 2021-01-07 Jakub Jelinek <jakub@redhat.com>
26409 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
26410 New define_insn patterns.
26412 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
26414 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
26415 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
26416 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
26418 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
26420 PR tree-optimization/98560
26421 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
26422 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
26424 (vec_cond_direct): Likewise argument 2.
26425 (vec_condu_direct, vec_condeq_direct): Delete.
26426 (expand_vect_cond_optab_fn): Rename to...
26427 (expand_vec_cond_optab_fn): ...this, replacing old macro.
26428 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
26429 (expand_vect_cond_mask_optab_fn): Rename to...
26430 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
26431 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
26433 (direct_vec_cond_optab_supported_p): Likewise.
26434 (direct_vec_condu_optab_supported_p): Delete.
26435 (direct_vec_condeq_optab_supported_p): Delete.
26436 * gimple-isel.cc: Include internal-fn.h.
26437 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
26440 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
26442 PR tree-optimization/98560
26443 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
26444 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
26446 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
26448 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
26449 rotate_insn and optab code attributes.
26450 Update all uses to merged code attribute.
26451 * config/i386/sse.md: Update all uses to merged code attribute.
26452 * config/i386/mmx.md: Update all uses to merged code attribute.
26454 2021-01-07 Jakub Jelinek <jakub@redhat.com>
26456 PR tree-optimization/98568
26457 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
26458 (bswap_replace): Use it.
26460 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
26462 PR rtl-optimization/97978
26463 * lra-int.h (lra_hard_reg_split_p): New external.
26464 * lra.c (lra_hard_reg_split_p): New global.
26465 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
26466 * lra-assigns.c (lra_assign): Don't check allocation correctness
26467 after hard reg splitting.
26469 2021-01-06 Martin Sebor <msebor@redhat.com>
26472 * builtins.c (new_delete_mismatch_p): New overload.
26473 (new_delete_mismatch_p (tree, tree)): Call it.
26475 2021-01-06 Alexandre Oliva <oliva@adacore.com>
26477 * Makefile.in (T_GLIMITS_H): New.
26478 (stmp-int-hdrs): Depend on it, use it.
26479 * config/t-vxworks (T_GLIMITS_H): Override it.
26480 (vxw-glimits.h): New.
26482 2021-01-06 Richard Biener <rguenther@suse.de>
26484 PR tree-optimization/98513
26485 * value-range.cc (intersect_ranges): Compare the upper bounds
26486 for the expected relation.
26488 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
26491 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
26493 * doc/standards.texi (HSAIL): Remove section.
26495 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
26497 * configure: Re-generate.
26499 2021-01-05 Jakub Jelinek <jakub@redhat.com>
26501 * doc/invoke.texi (-std=c++20): Adjust for the publication of
26502 ISO 14882:2020 standard.
26503 * doc/standards.texi: Likewise.
26505 2021-01-05 Jakub Jelinek <jakub@redhat.com>
26507 PR tree-optimization/94802
26508 * expr.h (maybe_optimize_sub_cmp_0): Declare.
26509 * expr.c: Include tree-pretty-print.h and flags.h.
26510 (maybe_optimize_sub_cmp_0): New function.
26511 (do_store_flag): Use it.
26512 * cfgexpand.c (expand_gimple_cond): Likewise.
26514 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
26516 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
26517 * rtlanal.c (simple_regno_set): Tweak description to clarify the
26520 2021-01-05 Richard Biener <rguenther@suse.de>
26522 PR tree-optimization/98516
26523 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
26524 lanes when materializing on a VEC_PERM node.
26525 (vectorizable_slp_permutation): Dump the permute properly.
26527 2021-01-05 Richard Biener <rguenther@suse.de>
26529 * tree-vect-slp.c (vect_slp_region): Move debug counter
26530 to cover individual subgraphs.
26532 2021-01-05 Richard Biener <rguenther@suse.de>
26534 PR tree-optimization/98428
26535 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
26536 vector lane extracts for loop vectorization.
26538 2021-01-05 Jakub Jelinek <jakub@redhat.com>
26540 PR tree-optimization/98514
26541 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
26543 (operand_rank): Change type from hash_map<tree, long> to
26544 hash_map<tree, int64_t>.
26545 (phi_rank): Change return type from long to int64_t.
26546 (loop_carried_phi): Change block_rank variable type from long to
26548 (propagate_rank): Change return type, rank parameter type and
26549 op_rank variable type from long to int64_t.
26550 (find_operand_rank): Change return type from long to int64_t
26551 and change slot variable type from long * to int64_t *.
26552 (insert_operand_rank): Change rank parameter type from long to
26554 (get_rank): Change return type and rank variable type from long to
26555 int64_t. Use PRId64 instead of ld to print the rank.
26556 (init_reassoc): Change rank variable type from long to int64_t
26557 and adjust correspondingly bb_rank and operand_rank initialization.
26559 2021-01-05 Jakub Jelinek <jakub@redhat.com>
26561 PR tree-optimization/96928
26562 * tree-ssa-phiopt.c (xor_replacement): New function.
26563 (tree_ssa_phiopt_worker): Call it.
26565 2021-01-05 Jakub Jelinek <jakub@redhat.com>
26567 PR tree-optimization/96930
26568 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
26569 from narrower value which has the same type as 1 << B, perform
26570 the right shift on the narrower value followed by extension.
26572 2021-01-05 Jakub Jelinek <jakub@redhat.com>
26574 PR tree-optimization/96239
26575 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
26577 (get_status_for_store_merging): Don't return BB_INVALID for blocks
26578 with potential bswap optimizable CONSTRUCTORs.
26579 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
26582 2021-01-05 Richard Biener <rguenther@suse.de>
26584 PR tree-optimization/98381
26585 * tree.c (vector_element_bits): Properly compute bool vector
26587 * tree-vect-loop.c (vectorizable_live_operation): Properly
26588 compute the last lane bit offset.
26590 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
26593 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
26594 Clear the top 64 bytes of the input XMM register.
26595 (sse_cvttps2pi): Ditto.
26597 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
26600 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
26602 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
26605 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
26608 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
26610 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
26611 (umaddsidi4_split): Likewise.
26613 2021-01-05 liuhongt <hongtao.liu@intel.com>
26616 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
26617 define_insn_and_split for zero_extend of subreg HI of pmovskb
26619 (*sse2_pmovskb_zexthisi): Add new combine splitters for
26620 zero_extend of not of subreg HI of pmovskb result.
26622 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
26625 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
26627 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
26628 convert_memory_address to convert symbolic immediates to ptr_mode
26629 before forcing them to memory.
26631 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
26633 PR rtl-optimization/97144
26634 * recog.c (constrain_operands): Initialize matching_operand
26635 for each alternative, rather than only doing it once.
26637 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
26639 PR rtl-optimization/98403
26640 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
26641 why we don't remove call clobbers.
26642 (function_info::apply_changes_to_insn): Don't attempt to add
26643 call clobbers here.
26645 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
26647 PR tree-optimization/98371
26648 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
26649 (vect_analyze_loop): If an epilogue loop appears to be cheaper
26650 than the main loop, re-analyze it as a main loop before adopting
26653 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26656 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
26657 * aclocal.m4, configure: Regenerate.
26658 * Makefile.in (NETLIBS): Define.
26659 (BACKEND): Remove $(CODYLIB).
26661 2021-01-05 Jakub Jelinek <jakub@redhat.com>
26663 PR rtl-optimization/98334
26664 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
26665 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
26667 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
26669 * tree-inline.c (expand_call_inline): Restore input_location.
26670 Return result from recursive call.
26672 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
26674 PR tree-optimization/95401
26675 * config/aarch64/aarch64-sve-builtins.cc
26676 (gimple_folder::load_store_cookie): Use bits rather than bytes
26677 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
26678 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
26679 * tree-vect-stmts.c (vectorizable_store): Likewise.
26680 (vectorizable_load): Likewise.
26682 2021-01-04 Richard Biener <rguenther@suse.de>
26684 PR tree-optimization/98308
26685 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
26688 2021-01-04 Jakub Jelinek <jakub@redhat.com>
26690 PR tree-optimization/95771
26691 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
26692 with precision smaller than int's precision and types with precision
26693 twice as large as long long. Formatting fixes.
26695 2021-01-04 Richard Biener <rguenther@suse.de>
26697 PR tree-optimization/98464
26698 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
26699 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
26700 (process_bb): Adjust.
26702 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
26705 * doc/invoke.texi (-fsanitize=address): Fix wording describing
26706 clash with -fsanitize=hwaddress.
26708 2021-01-04 Richard Biener <rguenther@suse.de>
26710 PR tree-optimization/98282
26711 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
26712 invariants as VN_NARY.
26714 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
26717 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
26718 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
26719 to handle zero operands.
26721 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
26723 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
26724 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
26725 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
26728 2021-01-04 Richard Biener <rguenther@suse.de>
26730 PR tree-optimization/98393
26731 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
26732 when hitting the limit.
26734 2021-01-04 Richard Biener <rguenther@suse.de>
26736 PR tree-optimization/98291
26737 * tree-vect-loop.c (vectorizable_reduction): Bypass
26738 associativity check for SLP reductions with VF 1.
26740 2021-01-04 Jakub Jelinek <jakub@redhat.com>
26742 PR tree-optimization/96782
26743 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
26745 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
26747 * collect-utils.c (collect_execute): Check dumppfx.
26748 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
26749 to collect_execute.
26750 (do_link): Add new parameter atsuffix.
26751 (main): Handle -dumpdir option. Skip one argument for
26752 -o, -isystem and -B options.
26753 * gcc.c (make_at_file): New helper function.
26754 (close_at_file): Use it.
26756 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
26758 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
26759 Amend handling for LD64_VERSION fallback defaults.
26761 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
26763 * config.gcc: Compute default version information
26764 from the configured target. Likewise defaults for
26766 * config/darwin10.h: Removed.
26767 * config/darwin12.h: Removed.
26768 * config/darwin9.h: Removed.
26769 * config/rs6000/darwin8.h: Removed.
26771 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
26773 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
26775 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
26777 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
26778 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
26780 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
26782 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
26784 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
26786 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
26788 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
26789 for the Darwin10 unwinder stub from here ...
26790 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
26792 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
26794 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
26795 (ASM_DEBUG_SPEC):Only define if the assembler supports
26797 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
26798 (DARWIN_PREFER_DWARF): Define.
26799 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
26800 (DARWIN_PREFER_DWARF): Likewise
26801 (DSYMUTIL_SPEC): Likewise.
26802 (COLLECT_RUN_DSYMUTIL): Likewise.
26803 (ASM_DEBUG_SPEC): Likewise.
26804 (ASM_DEBUG_OPTION_SPEC): Likewise.
26806 2021-01-02 Jan Hubicka <jh@suse.cz>
26808 * cfg.c (free_block): ggc_free bb.
26810 2021-01-01 Jakub Jelinek <jakub@redhat.com>
26812 * gcc.c (process_command): Update copyright notice dates.
26813 * gcov-dump.c (print_version): Ditto.
26814 * gcov.c (print_version): Ditto.
26815 * gcov-tool.c (print_version): Ditto.
26816 * gengtype.c (create_file): Ditto.
26817 * doc/cpp.texi: Bump @copying's copyright year.
26818 * doc/cppinternals.texi: Ditto.
26819 * doc/gcc.texi: Ditto.
26820 * doc/gccint.texi: Ditto.
26821 * doc/gcov.texi: Ditto.
26822 * doc/install.texi: Ditto.
26823 * doc/invoke.texi: Ditto.
26825 2021-01-01 Jakub Jelinek <jakub@redhat.com>
26827 * ChangeLog-2020: Rotate ChangeLog. New file.
26830 Copyright (C) 2021 Free Software Foundation, Inc.
26832 Copying and distribution of this file, with or without modification,
26833 are permitted in any medium without royalty provided the copyright
26834 notice and this notice are preserved.