1 2021-10-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3 * config/i386/x86-tune-sched-bd.c (dispatch_group): Commentary
6 2021-10-23 Jan Hubicka <hubicka@ucw.cz>
8 * tree-ssa-structalias.c (compute_points_to_sets): Cleanup.
10 2021-10-23 Roger Sayle <roger@nextmovesoftware.com>
12 * config/i386/sse.md (<any_logic>v1ti3): New define_insn to
13 implement V1TImode AND, IOR and XOR on TARGET_SSE2 (and above).
14 (one_cmplv1ti2): New define expand.
16 2021-10-22 Eric Gallager <egallager@gcc.gnu.org>
19 * Makefile.in: Handle dvidir and install-dvi target.
20 * configure: Regenerate.
21 * configure.ac: Add install-dvi to target_list.
23 2021-10-22 Gerald Pfeifer <gerald@pfeifer.com>
25 * doc/install.texi (Binaries): Convert mingw-w64.org to https.
28 2021-10-22 Richard Biener <rguenther@suse.de>
30 PR tree-optimization/102893
31 * tree-ssa-dce.c (find_obviously_necessary_stmts): Fix the
32 test for an exit edge.
34 2021-10-22 Aldy Hernandez <aldyh@redhat.com>
35 Andrew MacLeod <amacleod@redhat.com>
37 * gimple-range-path.cc (path_range_query::compute_phi_relations):
38 Kill any global relations we may know before registering a new
40 * value-relation.cc (path_oracle::killing_def): New.
41 * value-relation.h (path_oracle::killing_def): New.
43 2021-10-22 Richard Biener <rguenther@suse.de>
46 * tree-ssa-sccvn.c (vn_phi_insert): For undefined SSA args
48 (vn_phi_lookup): Likewise.
50 2021-10-21 H.J. Lu <hjl.tools@gmail.com>
53 * doc/invoke.texi: Document -fcf-protection requires i686 or
56 2021-10-21 Eric Botcazou <ebotcazou@adacore.com>
59 * cfgexpand.c (expand_gimple_basic_block): Robustify latest change.
61 2021-10-21 Jonathan Wright <jonathan.wright@arm.com>
63 * config/aarch64/arm_neon.h (__STRUCTN): Delete function
64 macro and all invocations.
66 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
68 * doc/invoke.texi (ranger-debug): Document.
69 * flag-types.h (enum ranger_debug): New.
70 (enum evrp_mode): Remove debug values.
71 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Use new debug flag.
72 * gimple-range-gori.cc (gori_compute::gori_compute): Ditto.
73 * gimple-range.cc (gimple_ranger::gimple_ranger): Ditto.
74 * gimple-ssa-evrp.c (hybrid_folder::choose_value): Ditto.
75 (execute_early_vrp): Use evrp-mode directly.
76 * params.opt (enum evrp_mode): Remove debug values.
78 (ranger-logical-depth): Relocate to be in alphabetical order.
80 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
82 * doc/invoke.texi: (vrp1-mode, vrp2-mode): Document.
83 * flag-types.h: (enum vrp_mode): New.
84 * params.opt: (vrp1-mode, vrp2-mode): New.
85 * tree-vrp.c (vrp_pass_num): New.
86 (pass_vrp::pass_vrp): Set pass number.
87 (pass_vrp::execute): Choose which VRP mode to execute.
89 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
91 * gimple-ssa-evrp.c (class rvrp_folder): Move to tree-vrp.c.
92 (execute_early_vrp): For ranger only mode, invoke ranger_vrp.
93 * tree-vrp.c (class rvrp_folder): Relocate here.
94 (execute_ranger_vrp): New.
95 * tree-vrp.h (execute_ranger_vrp): Export.
97 2021-10-21 Martin Liska <mliska@suse.cz>
101 * opts.c (finish_options): Process flag_var_tracking* options
102 here as they can be adjusted by optimize attribute.
103 Process also flag_syntax_only and flag_gtoggle.
104 * toplev.c (process_options): Remove it here.
105 * common.opt: Make debug_nonbind_markers_p as PerFunction
106 attribute as it depends on optimization level.
108 2021-10-21 Martin Jambor <mjambor@suse.cz>
110 PR tree-optimization/102505
111 * tree-sra.c (totally_scalarize_subtree): Check that the
112 encountered field fits within the acces we would like to put it
115 2021-10-21 Aldy Hernandez <aldyh@redhat.com>
117 * tree-ssa-threadbackward.c
118 (back_threader::maybe_register_path): Remove circular paths check.
120 2021-10-21 Richard Biener <rguenther@suse.de>
122 * toplev.c (process_options): Move the initial debug_hooks
124 (toplev::main): ... before the call of the post_options
127 2021-10-21 Richard Biener <rguenther@suse.de>
129 PR tree-optimization/102847
130 * tree-vect-stmts.c (vect_model_load_cost): Add the scalar
131 load cost in the prologue for VMAT_INVARIANT.
133 2021-10-21 Richard Biener <rguenther@suse.de>
135 PR tree-optimization/102847
136 * tree-vect-stmts.c (vect_model_load_cost): Explicitely
137 handle VMAT_INVARIANT as a splat in the prologue.
139 2021-10-21 Hongyu Wang <hongyu.wang@intel.com>
142 * config/i386/i386.c (ix86_get_ssemov): Adjust HFmode vector
143 move to use the same logic as HImode.
145 2021-10-21 Richard Biener <rguenther@suse.de>
147 * tree-vect-slp.c (vect_build_slp_tree_1): Remove
148 superfluous gimple_call_nothrow_p check.
150 2021-10-21 Andrew Pinski <apinski@marvell.com>
152 * tree-cfg.c (maybe_remove_writeonly_store): Add dce_ssa_names argument.
153 Mark the ssa-name of the rhs as one to be removed.
154 (execute_fixup_cfg): Update call to maybe_remove_writeonly_store.
155 Call simple_dce_from_worklist at the end to a simple dce.
157 2021-10-21 Andrew Pinski <apinski@marvell.com>
159 * tree-cfg.c (maybe_remove_writeonly_store): New function
160 factored out from ...
161 (execute_fixup_cfg): Here. Call maybe_remove_writeonly_store.
163 2021-10-21 Andrew Pinski <apinski@marvell.com>
165 * tree-cfg.c (execute_fixup_cfg): Remove comment
166 about standalone pass.
168 2021-10-21 Andrew Pinski <apinski@marvell.com>
170 * tree-cfg.c (execute_fixup_cfg): Output when the statement
171 is removed when it is a write only var.
173 2021-10-21 Aldy Hernandez <aldyh@redhat.com>
175 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
176 Avoid threading circular paths.
178 2021-10-20 Alex Coplan <alex.coplan@arm.com>
180 * calls.c (initialize_argument_information): Remove some dead
181 code, remove handling for function_arg returning const_int.
182 * doc/tm.texi: Delete documentation for unused target hooks.
183 * doc/tm.texi.in: Likewise.
184 * target.def (load_bounds_for_arg): Delete.
185 (store_bounds_for_arg): Delete.
186 (load_returned_bounds): Delete.
187 (store_returned_bounds): Delete.
188 * targhooks.c (default_load_bounds_for_arg): Delete.
189 (default_store_bounds_for_arg): Delete.
190 (default_load_returned_bounds): Delete.
191 (default_store_returned_bounds): Delete.
192 * targhooks.h (default_load_bounds_for_arg): Delete.
193 (default_store_bounds_for_arg): Delete.
194 (default_load_returned_bounds): Delete.
195 (default_store_returned_bounds): Delete.
197 2021-10-20 Jonathan Wakely <jwakely@redhat.com>
199 * doc/extend.texi (Basic Asm): Clarify that asm is not an
201 * doc/invoke.texi (-fno-asm): Fix description for C++.
203 2021-10-20 Jonathan Wakely <jwakely@redhat.com>
205 * doc/install.texi: Remove link to old.html
207 2021-10-20 Tamar Christina <tamar.christina@arm.com>
209 * config/aarch64/aarch64-simd.md (*aarch64_cmtst_same_<mode>): New.
211 2021-10-20 Tamar Christina <tamar.christina@arm.com>
213 * config/aarch64/aarch64-simd.md (*aarch64_narrow_trunc<mode>): New.
215 2021-10-20 Tamar Christina <tamar.christina@arm.com>
217 * config/aarch64/aarch64-simd.md (aarch64_simd_ashr<mode>): Add case cmp
219 * config/aarch64/constraints.md (D1): New.
221 2021-10-20 Tamar Christina <tamar.christina@arm.com>
223 * config/aarch64/aarch64-simd.md
224 (*aarch64_<srn_op>topbits_shuffle<mode>_le): New.
225 (*aarch64_topbits_shuffle<mode>_le): New.
226 (*aarch64_<srn_op>topbits_shuffle<mode>_be): New.
227 (*aarch64_topbits_shuffle<mode>_be): New.
228 * config/aarch64/predicates.md
229 (aarch64_simd_shift_imm_vec_exact_top): New.
231 2021-10-20 Tamar Christina <tamar.christina@arm.com>
233 * config/aarch64/aarch64-simd.md (*aarch64_<srn_op>shrn<mode>_vect,
234 *aarch64_<srn_op>shrn<mode>2_vect_le,
235 *aarch64_<srn_op>shrn<mode>2_vect_be): New.
236 * config/aarch64/iterators.md (srn_op): New.
238 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
240 * omp-low.c (omp_copy_decl_2): For !ctx, use record_vars to add new copy
242 (scan_sharing_clauses): Place copy of OMP_CLAUSE_IN_REDUCTION decl in
243 ctx->outer instead of ctx.
245 2021-10-20 Martin Liska <mliska@suse.cz>
248 2021-10-19 Martin Liska <mliska@suse.cz>
251 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
252 * system.h (strip_whilespaces): New function.
254 2021-10-20 Martin Liska <mliska@suse.cz>
257 2021-10-19 Martin Liska <mliska@suse.cz>
260 * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
263 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
265 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
266 Change to 8 with -Os, 11 otherwise.
268 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
270 * config/aarch64/aarch64.c (neoversev1_tunings):
271 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
272 (neoversen2_tunings): Likewise.
274 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
277 * config/aarch64/aarch64.md (frint_pattern): Update comment.
278 * config/aarch64/aarch64-simd-builtins.def: Change frintn to roundeven.
279 * config/aarch64/arm_fp16.h: Change frintn to roundeven.
280 * config/aarch64/arm_neon.h: Likewise.
281 * config/aarch64/iterators.md (frint_pattern): Use roundeven for FRINTN.
283 2021-10-20 Martin Liska <mliska@suse.cz>
285 * config/arm/arm.c (arm_unwind_emit_sequence): Do not declare
286 already declared global variable.
287 (arm_unwind_emit_set): Use out_file as function argument.
288 (arm_unwind_emit): Likewise.
289 * config/darwin.c (machopic_output_data_section_indirection): Likewise.
290 (machopic_output_stub_indirection): Likewise.
291 (machopic_output_indirection): Likewise.
292 (machopic_finish): Likewise.
293 * config/i386/i386.c (ix86_asm_output_function_label): Likewise.
294 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
295 * config/ia64/ia64.c (process_epilogue): Likewise.
296 (process_cfa_adjust_cfa): Likewise.
297 (process_cfa_register): Likewise.
298 (process_cfa_offset): Likewise.
299 (ia64_asm_unwind_emit): Likewise.
300 * config/s390/s390.c (s390_asm_output_function_label): Likewise.
302 2021-10-20 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
304 * config/aarch64/aarch64-builtins.c
305 (aarch64_general_gimple_fold_builtin):
306 lower vld1 and vst1 variants of the neon builtins
307 * config/aarch64/aarch64-protos.h:
308 (aarch64_general_gimple_fold_builtin): Add gsi parameter.
309 * config/aarch64/aarch64.c (aarch64_general_gimple_fold_builtin):
312 2021-10-20 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
314 * match.pd: Generate IFN_TRUNC.
316 2021-10-20 Richard Biener <rguenther@suse.de>
318 PR tree-optimization/102853
319 * tree-data-ref.c (split_constant_offset_1): Bail out
320 immediately if the expression traps on overflow.
322 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
324 * tree-ssa-threadbackward.c (back_threader::~back_threader): Remove.
326 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
328 * tree-ssa-threadupdate.c (back_jt_path_registry::adjust_paths_after_duplication):
329 Remove superflous debugging message.
330 (back_jt_path_registry::duplicate_thread_path): Same.
332 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
334 * tree-ssa-threadbackward.c (back_threader_registry::back_threader_registry):
336 (back_threader_registry::register_path): Remove m_threaded_paths.
338 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
340 PR tree-optimization/102814
341 * doc/invoke.texi: Document --param=max-fsm-thread-length.
342 * params.opt: Add --param=max-fsm-thread-length.
343 * tree-ssa-threadbackward.c
344 (back_threader_profitability::profitable_path_p): Fail on paths
345 longer than max-fsm-thread-length.
347 2021-10-20 Eric Botcazou <ebotcazou@adacore.com>
350 * cfgexpand.c (expand_gimple_basic_block): Disregard a final debug
351 statement to reset the current location for the outgoing edges.
353 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
354 Richard Biener <rguenther@suse.de>
356 * tree-ssa-threadupdate.c (cancel_thread): Dump threading reason
357 on the same line as the threading cancellation.
358 (jt_path_registry::cancel_invalid_paths): Avoid rotating loops.
359 Avoid threading through loop headers where the path remains in the
362 2021-10-20 Siddhesh Poyarekar <siddhesh@gotplt.org>
364 * tree-object-size.c (unknown): Make into a function. Adjust
366 (unknown_object_size): Simplify implementation.
368 2021-10-20 Hongtao Liu <hongtao.liu@intel.com>
369 Kewen Lin <linkw@linux.ibm.com>
371 * doc/sourcebuild.texi (Effective-Target Keywords): Document
372 vect_slp_v2qi_store, vect_slp_v4qi_store, vect_slp_v8qi_store,
373 vect_slp_v16qi_store, vect_slp_v2hi_store,
374 vect_slp_v4hi_store, vect_slp_v2si_store, vect_slp_v4si_store.
376 2021-10-19 Jonathan Wakely <jwakely@redhat.com>
378 * doc/extend.texi (Basic PowerPC Built-in Functions): Fix typo.
380 2021-10-19 Paul A. Clarke <pc@us.ibm.com>
384 * config/rs6000/emmintrin.h: Guard POWER8 intrinsics.
385 * config/rs6000/pmmintrin.h: Same.
386 * config/rs6000/smmintrin.h: Same.
387 * config/rs6000/tmmintrin.h: Same.
389 2021-10-19 Paul A. Clarke <pc@us.ibm.com>
391 * config.gcc (extra_headers): Add nmmintrin.h.
393 2021-10-19 Richard Biener <rguenther@suse.de>
395 * tree-vectorizer.h (vect_supportable_dr_alignment): Add
396 misalignment parameter.
397 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
398 Do not change DR_MISALIGNMENT in place, instead pass the
399 adjusted misalignment to vect_supportable_dr_alignment.
400 (vect_peeling_supportable): Likewise.
401 (vect_peeling_hash_get_lowest_cost): Adjust.
402 (vect_enhance_data_refs_alignment): Likewise.
403 (vect_vfa_access_size): Likewise.
404 (vect_supportable_dr_alignment): Add misalignment
405 parameter and simplify.
406 * tree-vect-stmts.c (get_negative_load_store_type): Adjust.
407 (get_group_load_store_type): Likewise.
408 (get_load_store_type): Likewise.
410 2021-10-19 Clément Chigot <clement.chigot@atos.net>
412 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): Move
413 __tls_get_addr reference to .text csect.
415 2021-10-19 Martin Liska <mliska@suse.cz>
418 * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
421 2021-10-19 Richard Biener <rguenther@suse.de>
423 * tree-vectorizer.h (vect_get_store_cost): Adjust signature.
424 (vect_get_load_cost): Likewise.
425 * tree-vect-data-refs.c (vect_get_data_access_cost): Get
426 alignment support scheme and misalignment as arguments
428 (vect_get_peeling_costs_all_drs): Compute that info here
429 and note that we shouldn't need to.
430 * tree-vect-stmts.c (vect_model_store_cost): Get
431 alignment support scheme and misalignment as arguments.
432 (vect_get_store_cost): Likewise.
433 (vect_model_load_cost): Likewise.
434 (vect_get_load_cost): Likewise.
435 (vectorizable_store): Pass down alignment support scheme
436 and misalignment to costing.
437 (vectorizable_load): Likewise.
439 2021-10-19 Richard Biener <rguenther@suse.de>
441 * tree-vect-stmts.c (get_negative_load_store_type): Add
442 offset output parameter and initialize it.
443 (get_group_load_store_type): Likewise.
444 (get_load_store_type): Likewise.
445 (vectorizable_store): Use offset as computed by
447 (vectorizable_load): Likewise.
449 2021-10-19 Richard Biener <rguenther@suse.de>
451 PR tree-optimization/102827
452 * tree-if-conv.c (predicate_statements): Add pe parameter
453 and use that edge to insert invariant stmts on.
454 (combine_blocks): Pass through pe.
455 (tree_if_conversion): Compute the edge to insert invariant
456 stmts on and pass it along.
458 2021-10-19 Roger Sayle <roger@nextmovesoftware.com>
461 * config/bfin/bfin.md (addsubv2hi3, subaddv2hi3, ssaddsubv2hi3,
462 sssubaddv2hi3): Swap the order of operators in vec_concat.
464 2021-10-19 Xionghu Luo <luoxhu@linux.ibm.com>
466 * config/rs6000/altivec.md (*altivec_vmrghb_internal): Delete.
467 (altivec_vmrghb_direct): New.
468 (*altivec_vmrghh_internal): Delete.
469 (altivec_vmrghh_direct): New.
470 (*altivec_vmrghw_internal): Delete.
471 (altivec_vmrghw_direct_<mode>): New.
472 (altivec_vmrghw_direct): Delete.
473 (*altivec_vmrglb_internal): Delete.
474 (altivec_vmrglb_direct): New.
475 (*altivec_vmrglh_internal): Delete.
476 (altivec_vmrglh_direct): New.
477 (*altivec_vmrglw_internal): Delete.
478 (altivec_vmrglw_direct_<mode>): New.
479 (altivec_vmrglw_direct): Delete.
480 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Adjust.
481 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):
483 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust.
484 (vsx_xxmrglw_<mode>): Adjust.
486 2021-10-19 Aldy Hernandez <aldyh@redhat.com>
488 * passes.def: Change threading comment before pass_ccp pass.
490 2021-10-19 Haochen Gui <guihaoc@gcc.gnu.org>
492 * config/rs6000/rs6000-call.c (altivec_expand_lxvr_builtin):
493 Modify the expansion for sign extension. All extensions are done
494 within VSX registers.
496 2021-10-19 Richard Biener <rguenther@suse.de>
498 * tree-vect-stmts.c (get_group_load_store_type): Add
499 misalignment output parameter and initialize it.
500 (get_group_load_store_type): Likewise.
501 (vectorizable_store): Remove now redundant queries.
502 (vectorizable_load): Likewise.
504 2021-10-19 Richard Biener <rguenther@suse.de>
506 * tree-vectorizer.h (vect_supportable_dr_alignment): Remove
507 check_aligned argument.
508 * tree-vect-data-refs.c (vect_supportable_dr_alignment):
510 (vect_peeling_hash_insert): Add supportable_if_not_aligned
511 argument and do not call vect_supportable_dr_alignment here.
512 (vect_peeling_supportable): Adjust.
513 (vect_enhance_data_refs_alignment): Compute whether the
514 access is supported with different alignment here and
515 pass that down to vect_peeling_hash_insert.
516 (vect_vfa_access_size): Adjust.
517 * tree-vect-stmts.c (vect_get_store_cost): Likewise.
518 (vect_get_load_cost): Likewise.
519 (get_negative_load_store_type): Likewise.
520 (get_group_load_store_type): Likewise.
521 (get_load_store_type): Likewise.
523 2021-10-19 Martin Liska <mliska@suse.cz>
526 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
527 * system.h (strip_whilespaces): New function.
529 2021-10-19 dianhong xu <dianhong.xu@intel.com>
531 * config/i386/avx512fp16intrin.h:
532 (_mm512_set1_pch): New intrinsic.
533 * config/i386/avx512fp16vlintrin.h:
534 (_mm256_set1_pch): New intrinsic.
535 (_mm_set1_pch): Ditto.
537 2021-10-18 Andrew MacLeod <amacleod@redhat.com>
539 PR tree-optimization/102796
540 * gimple-range.cc (gimple_ranger::range_on_edge): Process EH edges
541 normally. Return get_tree_range for non gimple_range_ssa_p names.
542 (gimple_ranger::range_of_stmt): Use get_tree_range for non
543 gimple_range_ssa_p names.
545 2021-10-18 Uroš Bizjak <ubizjak@gmail.com>
548 * config/i386/i386.c (ix86_print_operand_address):
549 Error out for non-address_operand asm operands.
551 2021-10-18 Richard Biener <rguenther@suse.de>
553 * tree-vect-data-refs.c (vect_peeling_hash_insert): Do
554 not auto-convert dr_alignment_support to bool.
555 (vect_peeling_supportable): Likewise.
556 (vect_enhance_data_refs_alignment): Likewise.
557 (vect_supportable_dr_alignment): Commonize read/write case.
558 * tree-vect-stmts.c (vect_get_store_cost): Use
559 dr_alignment_support, not int, for the vect_supportable_dr_alignment
561 (vect_get_load_cost): Likewise.
563 2021-10-18 Siddhesh Poyarekar <siddhesh@gotplt.org>
565 * tree-object-size.c (object_sizes_execute): Consolidate LHS
566 null check and do it early.
568 2021-10-18 Richard Biener <rguenther@suse.de>
570 * tree-vect-stmts.c (vectorizable_store): Use the
571 computed alignment scheme instead of querying
574 2021-10-18 Richard Biener <rguenther@suse.de>
576 * tree-vect-stmts.c (vectorizable_store): Do not recompute
577 alignment scheme already determined by get_load_store_type.
579 2021-10-18 Aldy Hernandez <aldyh@redhat.com>
581 * tree-ssa-threadbackward.c (class pass_thread_jumps_full):
582 Clone corresponding pass.
584 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
586 * combine.c (recog_for_combine): For an unrecognized move/set of
587 a constant, try force_const_mem to place it in the constant pool.
588 * cse.c (constant_pool_entries_cost, constant_pool_entries_regcost):
589 Delete global variables (that are no longer assigned a cost value).
590 (cse_insn): Simplify logic for deciding whether to place a folded
591 constant in the constant pool using force_const_mem.
592 (cse_main): Remove zero initialization of constant_pool_entries_cost
593 and constant_pool_entries_regcost.
594 * config/i386/i386.c (ix86_rtx_costs): Make memory accesses
595 fractionally more expensive, when optimizing for speed.
597 2021-10-18 Martin Liska <mliska@suse.cz>
599 PR gcov-profile/102746
600 PR gcov-profile/102747
601 * gcov.c (main): Return return_code.
602 (output_gcov_file): Mark return_code when error happens.
603 (generate_results): Likewise.
604 (read_graph_file): Likewise.
605 (read_count_file): Likewise.
607 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
609 * config/bfin/bfin.md (define_constants): Remove UNSPEC_ONES.
610 (define_insn "ones"): Replace UNSPEC_ONES with a truncate of
611 a popcount, allowing compile-time evaluation/simplification.
612 (popcountsi2, popcounthi2): New expanders using a "ones" insn.
614 2021-10-18 Richard Biener <rguenther@suse.de>
616 PR tree-optimization/102788
617 * tree-vect-patterns.c (vect_init_pattern_stmt): Allow
619 (vect_pattern_recog_1): Likewise.
620 (vect_recog_bool_pattern): Continue matching the pattern
621 even if we do not have a vector type for a conversion
624 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
626 * simplify-rtx.c (simplify_const_unary_operation) [SS_NEG, SS_ABS]:
627 Evalute SS_NEG and SS_ABS of a constant argument.
629 2021-10-18 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
632 * gimple-match-head.c (try_conditional_simplification): Add case for single operand.
633 * internal-fn.def: Add entry for COND_NEG internal function.
634 * internal-fn.c (FOR_EACH_CODE_MAPPING): Add entry for
635 NEGATE_EXPR, COND_NEG mapping.
636 * optabs.def: Add entry for cond_neg_optab.
637 * match.pd (UNCOND_UNARY, COND_UNARY): New operator lists.
638 (vec_cond COND (foo A) B) -> (IFN_COND_FOO COND A B): New pattern.
639 (vec_cond COND B (foo A)) -> (IFN_COND_FOO ~COND A B): Likewise.
641 2021-10-18 Aldy Hernandez <aldyh@redhat.com>
643 * tree-ssa-strlen.c (class strlen_pass): Rename from
645 (handle_builtin_stxncpy_strncat): Move to strlen_pass.
646 (handle_assign): Same.
647 (adjust_last_stmt): Same.
648 (maybe_warn_overflow): Same.
649 (handle_builtin_strlen): Same.
650 (handle_builtin_strchr): Same.
651 (handle_builtin_strcpy): Same.
652 (handle_builtin_strncat): Same.
653 (handle_builtin_stxncpy_strncat): Same.
654 (handle_builtin_memcpy): Same.
655 (handle_builtin_strcat): Same.
656 (handle_alloc_call): Same.
657 (handle_builtin_memset): Same.
658 (handle_builtin_memcmp): Same.
659 (get_len_or_size): Same.
660 (strxcmp_eqz_result): Same.
661 (handle_builtin_string_cmp): Same.
662 (handle_pointer_plus): Same.
663 (count_nonzero_bytes_addr): Same.
664 (count_nonzero_bytes): Same.
665 (handle_store): Same.
666 (strlen_check_and_optimize_call): Same.
667 (handle_integral_assign): Same.
668 (check_and_optimize_stmt): Same.
669 (printf_strlen_execute): Rename strlen_dom_walker to strlen_pass.
671 2021-10-18 Richard Biener <rguenther@suse.de>
673 PR tree-optimization/102798
674 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
675 Only copy points-to info to newly generated SSA names.
677 2021-10-18 Martin Liska <mliska@suse.cz>
679 * dbgcnt.c (dbg_cnt_process_opt): Remove unused but set variable.
680 * gcov.c (get_cycles_count): Likewise.
681 * lto-compress.c (lto_compression_zlib): Likewise.
682 (lto_uncompression_zlib): Likewise.
683 * targhooks.c (default_pch_valid_p): Likewise.
685 2021-10-17 Aldy Hernandez <aldyh@redhat.com>
687 * tree-pass.h (make_pass_thread_jumps_full): New.
688 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Inline.
689 (try_thread_blocks): Add resolve and speed arguments.
690 (pass_thread_jumps::execute): Inline.
691 (do_early_thread_jumps): New.
692 (do_thread_jumps): New.
693 (make_pass_thread_jumps): Move.
694 (pass_early_thread_jumps::gate): Inline.
695 (pass_early_thread_jumps::execute): Inline.
696 (class pass_thread_jumps_full): New.
698 2021-10-16 Piotr Kubaj <pkubaj@FreeBSD.org>
700 * configure.ac: Treat powerpc64*-*-freebsd* the same as
701 powerpc64-*-freebsd*.
702 * configure: Regenerate.
704 2021-10-16 H.J. Lu <hjl.tools@gmail.com>
706 * value-query.cc (get_ssa_name_ptr_info_nonnull): Change
707 set_ptr_nonull to set_ptr_nonnull in comments.
709 2021-10-16 Jan Hubicka <hubicka@ucw.cz>
711 PR tree-optimization/102720
712 * tree-ssa-structalias.c (compute_points_to_sets): Fix producing
713 of call used and clobbered sets.
715 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
717 * config/darwin.h (LINK_COMMAND_SPEC_A): Update 'r' handling to
718 skip gomp and itm when r or nodefaultlibs is given.
719 (DSYMUTIL_SPEC): Do not call dsymutil for '-r' link lines.
720 Update ordering of exclusions, remove duplicate 'v' addition
721 (collect2 will add this from the main command line).
723 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
725 * config/darwin-driver.c (darwin_driver_init): Revise comments, handle
726 filelist and framework options in specs instead of code.
727 * config/darwin.h (SUBTARGET_DRIVER_SELF_SPECS): Update to handle link
728 specs that are really driver ones.
729 (DARWIN_CC1_SPEC): Likewise.
730 (CPP_SPEC): Likewise.
731 (SYSROOT_SPEC): Append space.
732 (LINK_SYSROOT_SPEC): Remove most driver link specs.
733 (STANDARD_STARTFILE_PREFIX_2): Update link-related specs.
734 (STARTFILE_SPEC): Likewise.
735 (ASM_MMACOSX_VERSION_MIN_SPEC): Fix line wrap.
736 (ASM_SPEC): Update driver-related specs.
737 (ASM_FINAL_SPEC): Likewise.
738 * config/darwin.opt: Remove now unused option aliases.
739 * config/i386/darwin.h (EXTRA_ASM_OPTS): Ensure space after opt.
740 (ASM_SPEC): Update driver-related specs.
742 2021-10-15 Roger Sayle <roger@nextmovesoftware.com>
744 * config/i386/i386.c (ix86_hardreg_mov_ok): For vector modes,
745 allow standard_sse_constant_p immediate constants.
747 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
749 * config.gcc: Add tm-dwarf2.h to tm_d-file.
751 2021-10-15 Andrew MacLeod <amacleod@redhat.com>
753 * gimple-range-fold.h (gimple_range_ssa_p): Don't process names
754 that occur in abnormal phis.
755 * gimple-range.cc (gimple_ranger::range_on_edge): Return false for
756 abnormal and EH edges.
757 * gimple-ssa-evrp.c (rvrp_folder::value_of_expr): Ditto.
758 (rvrp_folder::value_on_edge): Ditto.
759 (rvrp_folder::value_of_stmt): Ditto.
760 (hybrid_folder::value_of_expr): Ditto for ranger queries.
761 (hybrid_folder::value_on_edge): Ditto.
762 (hybrid_folder::value_of_stmt): Ditto.
763 * value-query.cc (gimple_range_global): Always return a range if
764 the type is supported.
766 2021-10-15 John David Anglin <danglin@gcc.gnu.org>
768 * config/pa/pa.md: Consistently use "rG" constraint for copy
769 instruction in move patterns.
771 2021-10-15 Andrew Stubbs <ams@codesourcery.com>
773 * config/gcn/gcn-hsa.h (S_FIJI): Set unconditionally.
776 * config/gcn/gcn.c: Hard code SRAM ECC settings for old architectures.
777 * config/gcn/mkoffload.c (ELFABIVERSION_AMDGPU_HSA): Rename to ...
778 (ELFABIVERSION_AMDGPU_HSA_V3): ... this.
779 (ELFABIVERSION_AMDGPU_HSA_V4): New.
780 (SET_SRAM_ECC_UNSUPPORTED): New.
781 (copy_early_debug_info): Create elf flags to match the other objects.
782 (main): Just let the attribute flags pass through.
784 2021-10-15 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
786 * tree-loop-distribution.c (reduction_var_overflows_first):
787 Pass the type of reduction_var as first argument as it is also
788 done for the load type.
789 (loop_distribution::transform_reduction_loop): Add missing
790 TREE_TYPE while determining precission of reduction_var.
792 2021-10-15 Richard Biener <rguenther@suse.de>
794 * defaults.h (PREFERRED_DEBUGGING_TYPE): Choose DWARF2_DEBUG
796 * toplev.c (process_options): Warn when STABS debugging is
797 enabled but not the preferred format.
798 * config/pa/som.h (PREFERRED_DEBUGGING_TYPE): Define to
800 * config/pdp11/pdp11.h (PREFERRED_DEBUGGING_TYPE): Likewise.
802 2021-10-15 Richard Biener <rguenther@suse.de>
805 * tree-inline.c (copy_bb): Avoid underflowing nargs.
807 2021-10-15 Hongyu Wang <hongyu.wang@intel.com>
809 * config/i386/i386-expand.c (ix86_expand_vec_perm): Convert
810 HFmode input operand to HImode.
811 (ix86_vectorize_vec_perm_const): Likewise.
812 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1_hf):
814 (*avx512f_permvar_truncv8siv8hi_1_hf):
817 2021-10-15 Richard Biener <rguenther@suse.de>
820 * expmed.c (store_bit_field_1): Ensure a LHS subreg would
821 not create a paradoxical subreg.
823 2021-10-15 Hongyu Wang <hongyu.wang@intel.com>
825 * config/i386/i386-expand.c (ix86_expand_vector_init):
826 For half_vector concat for HFmode, handle them like HImode.
828 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
830 * tree-ssa-threadbackward.c (class back_threader): Add m_resolve.
831 (back_threader::back_threader): Same.
832 (back_threader::resolve_phi): Try to solve without looking back if
834 (back_threader::find_paths_to_names): Same.
835 (try_thread_blocks): Pass resolve argument to back threader.
836 (pass_early_thread_jumps::execute): Same.
838 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
840 * doc/invoke.texi: Remove max-fsm-thread-length,
841 max-fsm-thread-paths, and fsm-maximum-phi-arguments.
843 * tree-ssa-threadbackward.c (back_threader::back_threader): Remove
845 (back_threader_registry::back_threader_registry): Same.
846 (back_threader_profitability::profitable_path_p): Remove
847 param_max_fsm_thread-length.
848 (back_threader_registry::register_path): Remove
849 m_max_allowable_paths.
851 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
853 * tree-ssa-threadbackward.c (class back_threader): Make m_imports
855 (back_threader::~back_threader): Do not release m_path.
857 2021-10-14 Andrew MacLeod <amacleod@redhat.com>
859 PR tree-optimization/102738
860 * vr-values.c (simplify_using_ranges::simplify): Handle RSHIFT_EXPR.
862 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
864 * omp-general.c (omp_check_context_selector): Move from c-omp.c.
865 (omp_mark_declare_variant): Move from c-omp.c.
866 (omp_context_name_list_prop): Update for Fortran strings.
867 * omp-general.h (omp_check_context_selector): New prototype.
868 (omp_mark_declare_variant): New prototype.
870 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
872 * config/rs6000/rs6000.c (rs6000_density_test): Move early
873 exit test further up the function.
875 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
877 * config/arm/arm.c (arm_add_stmt_cost): Delete.
878 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
880 2021-10-14 Martin Jambor <mjambor@suse.cz>
882 * doc/invoke.texi (Optimize Options): Add entry for
883 ipa-cp-recursive-freq-factor.
885 2021-10-14 Tamar Christina <tamar.christina@arm.com>
887 * match.pd: New rule.
889 2021-10-14 Jan Hubicka <hubicka@ucw.cz>
892 * ipa-modref-tree.h (modref_access_node::update2):
893 Also check that parm_offset is unchanged.
894 (modref_ref_node::insert_access): Fix updating of
897 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
899 * tree-ssa-threadbackward.c (back_threader::resolve_phi): Add
902 2021-10-14 Richard Biener <rguenther@suse.de>
904 PR tree-optimization/102659
905 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Also
906 rewrite pointer typed undefined overflow operations.
907 (predicate_statements): Likewise. Make sure to emit invariant
908 conversions in the preheader.
909 * tree-vectorizer.c (vect_loop_vectorized_call): Look through
910 non-empty preheaders.
911 * tree-data-ref.c (dr_analyze_indices): Strip useless
912 conversions to the MEM_REF base type.
914 2021-10-14 Martin Liska <mliska@suse.cz>
916 * common.opt: Stop using AUTODETECT_VALUE
917 and use EnabledBy where possible.
918 * opts.c: Enable OPT_fvar_tracking with optimize >= 1.
919 * toplev.c (AUTODETECT_VALUE): Remove macro.
920 (process_options): Simplify by using EnabledBy and
921 OPT_fvar_tracking. Use OPTION_SET_P macro instead of
924 2021-10-14 Jonathan Wright <jonathan.wright@arm.com>
926 * config/aarch64/arm_neon.h (vld1_s8_x3): Use signed type for
928 (vld1_s32_x3): Likewise.
930 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
932 PR tree-optimization/102736
933 PR tree-optimization/102736
934 * gimple-range-path.cc (path_range_query::range_on_path_entry):
935 Assert that the requested range is defined outside the path.
936 (path_range_query::ssa_range_in_phi): Do not call
937 range_on_path_entry for SSA names that are defined within the
940 2021-10-14 Iain Sandoe <iain@sandoe.co.uk>
942 * config/darwin-driver.c (darwin_find_version_from_kernel):
943 Quote internal identifiers and avoid contractions in
945 (darwin_default_min_version): Likewise.
946 (darwin_driver_init): Likewise.
948 2021-10-14 Martin Jambor <mjambor@suse.cz>
950 * params.opt (ipa-cp-recursive-freq-factor): New.
951 * ipa-cp.c (ipcp_value): Switch to inline initialization. New members
952 scc_no, self_recursion_generated_level, same_scc and
953 self_recursion_generated_p.
954 (ipcp_lattice::add_value): Replaced parameter unlimited with
955 same_lat_gen_level, usit it determine limit of values and store it to
957 (ipcp_lattice<valtype>::print): Dump the new fileds.
958 (allocate_and_init_ipcp_value): Take same_lat_gen_level as a new
959 parameter and store it to the new value.
960 (self_recursively_generated_p): Removed.
961 (propagate_vals_across_arith_jfunc): Use self_recursion_generated_p
962 instead of self_recursively_generated_p, store self generation level
964 (value_topo_info<valtype>::add_val): Set scc_no.
965 (value_topo_info<valtype>::propagate_effects): Multiply frequencies of
966 recursively feeding values and self generated values by appropriate
969 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
971 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Remove
972 redundant test for flag_vect_cost_model.
974 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
976 * bitmap.c (debug): New overloaded function for auto_bitmaps.
977 * bitmap.h (debug): Same.
979 2021-10-14 Hongyu Wang <hongyu.wang@intel.com>
981 * config/i386/avx512fp16intrin.h (_mm512_mask_fcmadd_pch):
983 (_mm512_mask3_fcmadd_pch): Likewise.
984 (_mm512_mask_fmadd_pch): Likewise
985 (_mm512_mask3_fmadd_pch): Likewise
986 (_mm512_mask_fcmadd_round_pch): Likewise
987 (_mm512_mask3_fcmadd_round_pch): Likewise
988 (_mm512_mask_fmadd_round_pch): Likewise
989 (_mm512_mask3_fmadd_round_pch): Likewise
990 (_mm_mask_fcmadd_sch): Likewise
991 (_mm_mask3_fcmadd_sch): Likewise
992 (_mm_mask_fmadd_sch): Likewise
993 (_mm_mask3_fmadd_sch): Likewise
994 (_mm_mask_fcmadd_round_sch): Likewise
995 (_mm_mask3_fcmadd_round_sch): Likewise
996 (_mm_mask_fmadd_round_sch): Likewise
997 (_mm_mask3_fmadd_round_sch): Likewise
998 (_mm_fcmadd_round_sch): Likewise
999 * config/i386/avx512fp16vlintrin.h (_mm_mask_fmadd_pch):
1000 Adjust builtin call.
1001 (_mm_mask3_fmadd_pch): Likewise
1002 (_mm256_mask_fmadd_pch): Likewise
1003 (_mm256_mask3_fmadd_pch): Likewise
1004 (_mm_mask_fcmadd_pch): Likewise
1005 (_mm_mask3_fcmadd_pch): Likewise
1006 (_mm256_mask_fcmadd_pch): Likewise
1007 (_mm256_mask3_fcmadd_pch): Likewise
1008 * config/i386/i386-builtin.def: Add mask3 builtin for complex
1009 fma, and adjust mask_builtin to corresponding expander.
1010 * config/i386/i386-expand.c (ix86_expand_round_builtin):
1011 Skip eraseing embedded rounding for expanders that emits
1013 * config/i386/sse.md (complexmove): New mode_attr.
1014 (<avx512>_fmaddc_<mode>_mask1<round_expand_name>): New expander.
1015 (<avx512>_fcmaddc_<mode>_mask1<round_expand_name>): Likewise.
1016 (avx512fp16_fmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
1017 (avx512fp16_fcmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
1018 (avx512fp16_fcmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
1019 (avx512fp16_fmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
1020 * config/i386/subst.md (round_embedded_complex): New subst.
1022 2021-10-14 John David Anglin <danglin@gcc.gnu.org>
1024 * config/pa/pa.md (cbranchsf4): Disable if TARGET_SOFT_FLOAT.
1025 (cbranchdf4): Likewise.
1026 Add missing move patterns for TARGET_SOFT_FLOAT.
1028 2021-10-13 Roger Sayle <roger@nextmovesoftware.com>
1030 * config/i386/i386-expand.c (ix86_expand_vector_move): Use a
1031 pseudo intermediate when moving a SUBREG into a hard register,
1032 by checking ix86_hardreg_mov_ok.
1033 (ix86_expand_vector_extract): Store zero-extended SImode
1034 intermediate in a pseudo, then set target using a SUBREG_PROMOTED
1036 * config/i386/sse.md (mov<VMOVE>_internal): Prevent CSE creating
1037 complex (SUBREG) sets of (vector) hard registers before reload, by
1038 checking ix86_hardreg_mov_ok.
1040 2021-10-13 Indu Bhagat <indu.bhagat@oracle.com>
1042 * ctfc.h (enum ctf_dtu_d_union_enum): Remove redundant comma.
1044 2021-10-13 Indu Bhagat <indu.bhagat@oracle.com>
1046 * dwarf2ctf.c (gen_ctf_array_type): Fix typo in comment.
1048 2021-10-13 Martin Sebor <msebor@redhat.com>
1050 PR middle-end/102630
1051 * pointer-query.cc (compute_objsize_r): Handle named address spaces.
1053 2021-10-13 Iain Sandoe <iain@sandoe.co.uk>
1055 * collect2.c (is_lto_object_file): Release simple-object
1056 resources, close files.
1058 2021-10-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
1060 * config/arm/arm.c (thumb2_legitimate_address_p): Use VALID_MVE_MODE
1061 when checking mve addressing modes.
1062 (mve_vector_mem_operand): Fix the way we handle pre, post and offset
1064 (arm_print_operand): Fix printing of POST_ and PRE_MODIFY.
1065 * config/arm/mve.md: Use mve_memory_operand predicate everywhere where
1066 there is a single Ux constraint.
1068 2021-10-13 John David Anglin <danglin@gcc.gnu.org>
1070 * config/pa/pa.md (muldi3): Add support for inlining 64-bit
1071 multiplication on 32-bit PA 1.1 and 2.0 targets.
1073 2021-10-13 Martin Liska <mliska@suse.cz>
1075 PR gcov-profile/90364
1076 * coverage.c (build_info): Emit checksum to the global variable.
1077 (build_info_type): Add new field for checksum.
1078 (coverage_obj_finish): Pass object_checksum.
1079 (coverage_init): Use 0 as checksum for .gcno files.
1080 * gcov-dump.c (dump_gcov_file): Dump also new checksum field.
1081 * gcov.c (read_graph_file): Read also checksum.
1082 * doc/invoke.texi: Document the behaviour change.
1084 2021-10-13 Richard Biener <rguenther@suse.de>
1086 * gimple-iterator.h (gsi_iterator_update): Add GSI_LAST_NEW_STMT,
1087 start at integer value 2.
1088 * gimple-iterator.c (gsi_insert_seq_nodes_before): Update
1089 the iterator for GSI_LAST_NEW_STMT.
1090 (gsi_insert_seq_nodes_after): Likewise.
1091 * tree-if-conv.c (predicate_statements): Use GSI_LAST_NEW_STMT.
1092 * tree-ssa.c (execute_update_addresses_taken): Correct bogus
1093 arguments to gsi_replace.
1095 2021-10-13 Martin Liska <mliska@suse.cz>
1098 * common.opt: Use EnabledBy instead of detection in
1099 finish_options and process_options.
1100 * opts.c (finish_options): Remove handling of
1101 x_flag_unroll_all_loops.
1102 * toplev.c (process_options): Likewise for flag_web and
1103 flag_rename_registers.
1105 2021-10-13 Richard Biener <rguenther@suse.de>
1107 PR tree-optimization/102659
1108 * tree-if-conv.c (need_to_rewrite_undefined): New flag.
1109 (if_convertible_gimple_assign_stmt_p): Mark the loop for
1110 rewrite when stmts with undefined behavior on integer
1112 (combine_blocks): Predicate also when we need to rewrite stmts.
1113 (predicate_statements): Rewrite affected stmts to something
1114 with well-defined behavior on overflow.
1115 (tree_if_conversion): Initialize need_to_rewrite_undefined.
1117 2021-10-13 Richard Biener <rguenther@suse.de>
1120 * ipa-sra.c (ptr_parm_has_nonarg_uses): Fix volatileness
1123 2021-10-13 Jose E. Marchesi <jose.marchesi@oracle.com>
1125 * dwarf2ctf.c: Fix typo in comment.
1127 2021-10-12 Bill Schmidt <wschmidt@linux.ibm.com>
1130 * config/rs6000/altivec.h (vec_cpsgn): Swap operand order.
1131 * config/rs6000/rs6000-overload.def (VEC_COPYSIGN): Use SKIP to
1132 avoid generating an automatic #define of vec_cpsgn. Use the
1133 correct built-in for V4SFmode that doesn't depend on VSX.
1135 2021-10-12 Uroš Bizjak <ubizjak@gmail.com>
1139 * config/i386/i386.md (*add<mode>_1_slp): Rewrite as
1140 define_insn_and_split pattern. Add alternative 1 and split it
1141 post reload to insert operand 1 into the low part of operand 0.
1142 (*sub<mode>_1_slp): Ditto.
1143 (*and<mode>_1_slp): Ditto.
1144 (*<any_or:code><mode>_1_slp): Ditto.
1145 (*ashl<mode>3_1_slp): Ditto.
1146 (*<any_shiftrt:insn><mode>3_1_slp): Ditto.
1147 (*<any_rotate:insn><mode>3_1_slp): Ditto.
1148 (*neg<mode>_1_slp): New insn_and_split pattern.
1149 (*one_cmpl<mode>_1_slp): Ditto.
1151 2021-10-12 David Edelsohn <dje.gcc@gmail.com>
1153 * doc/install.texi: Update MinGW and mingw-64 Binaries
1156 2021-10-12 Daniel Le Duc Khoi Nguyen <greenrecyclebin@gmail.com>
1158 * doc/extend.texi (Common Variable Attributes): Fix typos in
1159 alloc_size documentation.
1161 2021-10-12 Richard Biener <rguenther@suse.de>
1163 PR tree-optimization/102696
1164 * tree-vect-slp.c (vect_build_slp_tree_2): Properly mark
1165 the tree fatally failed when we reject a BIT_FIELD_REF.
1167 2021-10-12 Richard Biener <rguenther@suse.de>
1169 PR tree-optimization/102572
1170 * tree-vect-stmts.c (vect_build_gather_load_calls): When
1171 gathering the vectorized defs for the mask pass in the
1172 desired mask vector type so invariants will be handled
1175 2021-10-12 Tamar Christina <tamar.christina@arm.com>
1177 * config/aarch64/aarch64-sve.md (*fcm<cmp_op><mode>_bic_combine,
1178 *fcm<cmp_op><mode>_nor_combine, *fcmuo<mode>_bic_combine,
1179 *fcmuo<mode>_nor_combine): New.
1181 2021-10-12 Eric Botcazou <ebotcazou@adacore.com>
1184 * config/sparc/sparc-modes.def (OI): New integer mode.
1186 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1188 * gimple-fold.h (clear_padding_type_may_have_padding_p): Declare.
1189 * gimple-fold.c (clear_padding_type_may_have_padding_p): No longer
1192 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1194 * tree-vectorizer.h (loop_cost_model): New function.
1195 (unlimited_cost_model): Use it.
1196 * tree-vect-loop.c (vect_analyze_loop_costing): Use loop_cost_model
1197 call instead of flag_vect_cost_model.
1198 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
1199 (vect_prune_runtime_alias_test_list): Likewise. Also use it instead
1200 of flag_simd_cost_model.
1202 2021-10-12 liuhongt <hongtao.liu@intel.com>
1205 * config/i386/i386-expand.c (emit_reduc_half): Handle
1207 * config/i386/mmx.md (reduc_<code>_scal_v4qi): New expander.
1208 (reduc_plus_scal_v4qi): Ditto.
1210 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
1212 * config/rs6000/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
1213 _mm_mullo_epi32, _mm_mul_epi32, _mm_packus_epi32): New.
1214 * config/rs6000/nmmintrin.h: Copy from i386, tweak to suit.
1216 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
1218 * config/rs6000/smmintrin.h (_mm_cvtepi8_epi16, _mm_cvtepi8_epi32,
1219 _mm_cvtepi8_epi64, _mm_cvtepi16_epi32, _mm_cvtepi16_epi64,
1220 _mm_cvtepi32_epi64, _mm_cvtepu8_epi16, _mm_cvtepu8_epi32,
1221 _mm_cvtepu8_epi64, _mm_cvtepu16_epi32, _mm_cvtepu16_epi64,
1222 _mm_cvtepu32_epi64): New.
1224 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
1226 * config/rs6000/smmintrin.h (_mm_test_all_zeros,
1227 _mm_test_all_ones, _mm_test_mix_ones_zeros): Rewrite as macro.
1229 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
1231 * config/rs6000/smmintrin.h (_mm_min_epi8, _mm_min_epu16,
1232 _mm_min_epi32, _mm_min_epu32, _mm_max_epi8, _mm_max_epu16,
1233 _mm_max_epi32, _mm_max_epu32): New.
1235 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
1237 * ipa-modref-tree.h (struct modref_access_node): Revert
1239 (struct modref_ref_node): Likewise.
1241 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
1243 * ipa-modref-tree.h (modref_tree::global_access_p): New member
1246 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
1247 ignore_stores_eaf_flags): Move to ipa-modref.h
1248 (remove_useless_eaf_flags): Remove early exit on NOCLOBBER.
1249 (modref_summary::global_memory_read_p): New member function.
1250 (modref_summary::global_memory_written_p): New member function.
1251 * ipa-modref.h (modref_summary::global_memory_read_p,
1252 modref_summary::global_memory_written_p): Declare.
1253 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
1254 ignore_stores_eaf_flags): move here.
1255 * tree-ssa-structalias.c: Include ipa-modref-tree.h, ipa-modref.h
1257 (handle_rhs_call): Rewrite.
1258 (handle_call_arg): New function.
1259 (determine_global_memory_access): New function.
1260 (handle_const_call): Remove
1261 (handle_pure_call): Remove
1262 (find_func_aliases_for_call): Update use of handle_rhs_call.
1263 (compute_points_to_sets): Handle global memory acccesses
1266 2021-10-11 Diane Meirowitz <diane.meirowitz@oracle.com>
1268 * doc/invoke.texi: Add link to UndefinedBehaviorSanitizer
1269 documentation, mention UBSAN_OPTIONS, similar to what is done
1270 for AddressSanitizer.
1272 2021-10-11 Richard Biener <rguenther@suse.de>
1274 PR middle-end/102683
1275 * internal-fn.c (expand_DEFERRED_INIT): Check for mode
1276 availability before building an integer type for storage
1279 2021-10-11 Richard Biener <rguenther@suse.de>
1281 PR middle-end/101480
1282 * gimple.c (gimple_call_fnspec): Do not mark operator new/delete
1285 2021-10-11 Martin Liska <mliska@suse.cz>
1287 * common.opt: Remove Init(2) for some options.
1288 * toplev.c (process_options): Do not use AUTODETECT_VALUE, but
1289 use rather OPTION_SET_P.
1291 2021-10-11 Martin Liska <mliska@suse.cz>
1293 * common.opt: Remove usage of IRA_REGION_AUTODETECT.
1294 * flag-types.h (enum ira_region): Likewise.
1295 * toplev.c (process_options): Use OPTION_SET_P instead of
1296 IRA_REGION_AUTODETECT.
1298 2021-10-11 Jakub Jelinek <jakub@redhat.com>
1300 * omp-low.c (omp_runtime_api_call): Handle omp_get_max_teams,
1301 omp_[sg]et_teams_thread_limit and omp_set_num_teams.
1303 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1305 * config/s390/s390-protos.h (s390_rawmemchr): Add prototype.
1306 * config/s390/s390.c (s390_rawmemchr): New function.
1307 * config/s390/s390.md (rawmemchr<SINT:mode>): New expander.
1308 * config/s390/vector.md (@vec_vfees<mode>): Basically a copy of
1309 the pattern vfees<mode> from vx-builtins.md.
1310 * config/s390/vx-builtins.md (*vfees<mode>): Remove.
1312 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1314 * builtins.c (get_memory_rtx): Change to external linkage.
1315 * builtins.h (get_memory_rtx): Add function prototype.
1316 * doc/md.texi (rawmemchr<mode>): Document.
1317 * internal-fn.c (expand_RAWMEMCHR): Define.
1318 * internal-fn.def (RAWMEMCHR): Add.
1319 * optabs.def (rawmemchr_optab): Add.
1320 * tree-loop-distribution.c (find_single_drs): Change return code
1321 behaviour by also returning true if no single store was found
1323 (loop_distribution::classify_partition): Respect the new return
1324 code behaviour of function find_single_drs.
1325 (loop_distribution::execute): Call new function
1326 transform_reduction_loop in order to replace rawmemchr or strlen
1327 like loops by calls into builtins.
1328 (generate_reduction_builtin_1): New function.
1329 (generate_rawmemchr_builtin): New function.
1330 (generate_strlen_builtin_1): New function.
1331 (generate_strlen_builtin): New function.
1332 (generate_strlen_builtin_using_rawmemchr): New function.
1333 (reduction_var_overflows_first): New function.
1334 (determine_reduction_stmt_1): New function.
1335 (determine_reduction_stmt): New function.
1336 (loop_distribution::transform_reduction_loop): New function.
1338 2021-10-11 Martin Liska <mliska@suse.cz>
1340 * tree.c (cl_option_hasher::hash): Use cl_optimization_hash
1341 and remove legacy hashing code.
1343 2021-10-11 Kito Cheng <kito.cheng@sifive.com>
1346 * builtins.c (maybe_emit_call_builtin___clear_cache): Allow
1347 CONST_INT for BEGIN and END, and use gcc_assert rather than
1350 2021-10-10 Jakub Jelinek <jakub@redhat.com>
1353 * var-tracking.c (add_stores): For cselib_sp_derived_value_p values
1354 use MO_VAL_SET if loc is not sp.
1356 2021-10-10 Andrew Pinski <apinski@marvell.com>
1358 PR tree-optimization/102622
1359 * match.pd: Swap the order of a?pow2cst:0 and a?-1:0 transformations.
1360 Swap the order of a?0:pow2cst and a?0:-1 transformations.
1362 2021-10-09 liuhongt <hongtao.liu@intel.com>
1365 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Handle
1367 (ix86_use_mask_cmp_p): Ditto.
1368 (ix86_expand_sse_movcc): Ditto.
1369 * config/i386/i386.md (setcc_hf_mask): New define_insn.
1370 (movhf_mask): Ditto.
1371 (UNSPEC_MOVCC_MASK): New unspec.
1372 * config/i386/sse.md (UNSPEC_PCMP): Move to i386.md.
1374 2021-10-08 Vladimir N. Makarov <vmakarov@redhat.com>
1376 PR rtl-optimization/102627
1377 * lra-constraints.c (split_reg): Use at least natural mode of hard reg.
1379 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
1381 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Grow
1384 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
1386 * value-range.cc (irange::debug): New.
1387 * value-range.h (irange::debug): New.
1389 2021-10-08 Richard Sandiford <richard.sandiford@arm.com>
1391 PR tree-optimization/102385
1392 * predict.h (change_edge_frequency): Declare.
1393 * predict.c (change_edge_frequency): New function.
1394 * tree-ssa-loop-manip.h (tree_transform_and_unroll_loop): Remove
1396 (tree_unroll_loop): Likewise.
1397 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Update accordingly.
1398 * tree-predcom.c (pcom_worker::tree_predictive_commoning_loop):
1400 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Likewise.
1401 * tree-ssa-loop-manip.c (tree_unroll_loop): Likewise.
1402 (tree_transform_and_unroll_loop): Likewise. Use single_dom_exit
1403 to retrieve the exit edges. Make all the old profile update code
1404 conditional on !single_loop_p -- the case it was written for --
1405 and use a different approach for the single-loop case.
1407 2021-10-08 Martin Liska <mliska@suse.cz>
1409 * config/alpha/alpha.c (alpha_option_override): Use new macro
1411 * config/arc/arc.c (arc_override_options): Likewise.
1412 * config/arm/arm.c (arm_option_override): Likewise.
1413 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
1414 * config/c6x/c6x.c (c6x_option_override): Likewise.
1415 * config/csky/csky.c: Likewise.
1416 * config/darwin.c (darwin_override_options): Likewise.
1417 * config/frv/frv.c (frv_option_override): Likewise.
1418 * config/i386/djgpp.h: Likewise.
1419 * config/i386/i386.c (ix86_stack_protect_guard): Likewise.
1420 (ix86_max_noce_ifcvt_seq_cost): Likewise.
1421 * config/ia64/ia64.c (ia64_option_override): Likewise.
1422 (ia64_override_options_after_change): Likewise.
1423 * config/m32c/m32c.c (m32c_option_override): Likewise.
1424 * config/m32r/m32r.c (m32r_init): Likewise.
1425 * config/m68k/m68k.c (m68k_option_override): Likewise.
1426 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
1427 * config/mips/mips.c (mips_option_override): Likewise.
1428 * config/nios2/nios2.c (nios2_option_override): Likewise.
1429 * config/nvptx/nvptx.c (nvptx_option_override): Likewise.
1430 * config/pa/pa.c (pa_option_override): Likewise.
1431 * config/riscv/riscv.c (riscv_option_override): Likewise.
1432 * config/rs6000/aix71.h: Likewise.
1433 * config/rs6000/aix72.h: Likewise.
1434 * config/rs6000/aix73.h: Likewise.
1435 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Likewise.
1436 (rs6000_override_options_after_change): Likewise.
1437 (rs6000_linux64_override_options): Likewise.
1438 (glibc_supports_ieee_128bit): Likewise.
1439 (rs6000_option_override_internal): Likewise.
1440 (rs6000_file_start): Likewise.
1441 (rs6000_darwin_file_start): Likewise.
1442 * config/rs6000/rtems.h: Likewise.
1443 * config/rs6000/sysv4.h: Likewise.
1444 * config/rs6000/vxworks.h (SUB3TARGET_OVERRIDE_OPTIONS): Likewise.
1445 * config/s390/s390.c (s390_option_override): Likewise.
1446 * config/sh/linux.h: Likewise.
1447 * config/sh/netbsd-elf.h (while): Likewise.
1448 * config/sh/sh.c (sh_option_override): Likewise.
1449 * config/sol2.c (solaris_override_options): Likewise.
1450 * config/sparc/sparc.c (sparc_option_override): Likewise.
1451 * config/tilegx/tilegx.c (tilegx_option_override): Likewise.
1452 * config/visium/visium.c (visium_option_override): Likewise.
1453 * config/vxworks.c (vxworks_override_options): Likewise.
1454 * lto-opts.c (lto_write_options): Likewise.
1455 * omp-expand.c (expand_omp_simd): Likewise.
1456 * omp-general.c (omp_max_vf): Likewise.
1457 * omp-offload.c (oacc_xform_loop): Likewise.
1458 * opts.h (OPTION_SET_P): Likewise.
1459 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
1460 * toplev.c (process_options): Likewise.
1461 * tree-predcom.c: Likewise.
1462 * tree-sra.c (analyze_all_variable_accesses): Likewise.
1464 2021-10-08 liuhongt <hongtao.liu@intel.com>
1467 * config/i386/i386.c (ix86_optab_supported_p):
1468 Return true for HFmode.
1469 * match.pd: Simplify (_Float16) ceil ((double) x) to
1470 __builtin_ceilf16 (a) when a is _Float16 type and
1471 direct_internal_fn_supported_p.
1473 2021-10-08 liuhongt <hongtao.liu@intel.com>
1476 * config/i386/i386-expand.c (emit_reduc_half): Hanlde V4HImode.
1477 * config/i386/mmx.md (reduc_plus_scal_v4hi): New.
1478 (reduc_<code>_scal_v4hi): New.
1480 2021-10-08 liuhongt <hongtao.liu@intel.com>
1482 * common.opt (ftree-vectorize): Add Var(flag_tree_vectorize).
1483 * doc/invoke.texi (Options That Control Optimization): Update
1485 * opts.c (default_options_table): Enable auto-vectorization at
1486 O2 with very-cheap cost model.
1487 (finish_options): Use cheap cost model for
1488 explicit -ftree{,-loop}-vectorize.
1490 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
1492 * ctfc.c (ctfc_delete_container): Free hash table contents.
1494 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
1496 * toplev.c (process_options): Do not warn for GNU GIMPLE.
1498 2021-10-07 Siddhesh Poyarekar <siddhesh@gotplt.org>
1500 * tree-object-size.c (addr_object_size,
1501 compute_builtin_object_size): Drop PDECL and POFF arguments.
1502 (addr_object_size): Adjust calls.
1503 * tree-object-size.h (compute_builtin_object_size): Drop PDECL
1506 2021-10-07 Roger Sayle <roger@nextmovesoftware.com>
1508 * rtl.def (SMUL_HIGHPART, UMUL_HIGHPART): New RTX codes for
1509 representing signed and unsigned high-part multiplication resp.
1510 * simplify-rtx.c (simplify_binary_operation_1) [SMUL_HIGHPART,
1511 UMUL_HIGHPART]: Simplify high-part multiplications by zero.
1512 [SS_PLUS, US_PLUS, SS_MINUS, US_MINUS, SS_MULT, US_MULT,
1513 SS_DIV, US_DIV]: Similar simplifications for saturating
1515 (simplify_const_binary_operation) [SS_PLUS, US_PLUS, SS_MINUS,
1516 US_MINUS, SS_MULT, US_MULT, SMUL_HIGHPART, UMUL_HIGHPART]:
1517 Implement compile-time evaluation for constant operands.
1518 * dwarf2out.c (mem_loc_descriptor): Skip SMUL_HIGHPART and
1520 * doc/rtl.texi (smul_highpart, umul_highpart): Document RTX codes.
1521 * doc/md.texi (smul@var{m}3_highpart, umul@var{m3}_highpart):
1522 Mention the new smul_highpart and umul_highpart RTX codes.
1523 * doc/invoke.texi: Silence @xref "compilation" warnings.
1525 2021-10-07 Martin Jambor <mjambor@suse.cz>
1528 * ipa-prop.c (ipa_edge_args_sum_t::duplicate): Also handle the
1529 case when the source reference description corresponds to a
1530 referance taken in a function src->caller is inlined to.
1532 2021-10-07 Jan Hubicka <hubicka@ucw.cz>
1535 * ipa-modref-tree.h (modref_access_node::contains_p): Handle offsets
1537 (modref_access_node::try_merge_with): Add sanity check that there
1538 are no redundant entries in the list.
1540 2021-10-07 Richard Biener <rguenther@suse.de>
1542 PR tree-optimization/102608
1543 * tree-ssa-sccvn.c (visit_stmt): Drop .DEFERRED_INIT to
1546 2021-10-07 Martin Liska <mliska@suse.cz>
1548 * toplev.c (toplev::main): Make
1549 save_opt_decoded_options a pointer type
1550 * toplev.h: Likewise.
1552 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
1554 * config/gcn/gcn-valu.md (gather<mode>_insn_2offsets<exec>): Apply
1555 HAVE_GCN_ASM_GLOBAL_LOAD_FIXED.
1556 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
1558 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
1560 * config/gcn/gcn-hsa.h (SRAMOPT): Include the whole option string.
1561 Adjust for new -msram-ecc=any behaviour.
1562 (ASM_SPEC): Adjust -mxnack and -msram-ecc usage.
1563 * config/gcn/gcn.c (output_file_start): Implement -msram-ecc=any.
1564 * config/gcn/mkoffload.c (EF_AMDGPU_XNACK): Rename to ...
1565 (EF_AMDGPU_XNACK_V3): ... this.
1566 (EF_AMDGPU_SRAM_ECC): Rename to ...
1567 (EF_AMDGPU_SRAM_ECC_V3): ... this.
1568 (EF_AMDGPU_FEATURE_XNACK_V4): New.
1569 (EF_AMDGPU_FEATURE_XNACK_UNSUPPORTED_V4): New.
1570 (EF_AMDGPU_FEATURE_XNACK_ANY_V4): New.
1571 (EF_AMDGPU_FEATURE_XNACK_OFF_V4): New.
1572 (EF_AMDGPU_FEATURE_XNACK_ON_V4): New.
1573 (EF_AMDGPU_FEATURE_SRAMECC_V4): New.
1574 (EF_AMDGPU_FEATURE_SRAMECC_UNSUPPORTED_V4): New.
1575 (EF_AMDGPU_FEATURE_SRAMECC_ANY_V4): New.
1576 (EF_AMDGPU_FEATURE_SRAMECC_OFF_V4): New.
1577 (EF_AMDGPU_FEATURE_SRAMECC_ON_V4): New.
1578 (SET_XNACK_ON): New.
1579 (SET_XNACK_OFF): New.
1581 (SET_SRAM_ECC_ON): New.
1582 (SET_SRAM_ECC_ANY): New.
1583 (SET_SRAM_ECC_OFF): New.
1584 (TEST_SRAM_ECC_ANY): New.
1585 (TEST_SRAM_ECC_ON): New.
1586 (main): Implement HSACOv4 and -msram-ecc=any.
1588 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
1590 * config.in: Regenerate.
1591 * config/gcn/gcn-hsa.h (X_FIJI): New macro.
1595 (A_FIJI): Rename to ...
1597 (A_900): Rename to ...
1599 (A_906): Rename to ...
1601 (A_908): Rename to ...
1603 (SRAMOPT): New macro.
1604 (ASM_SPEC): Adjust xnack option usage.
1605 * config/gcn/gcn.c (output_file_start): Adjust amdgcn_target usage.
1606 * configure: Regenerate.
1607 * configure.ac: Detect LLVM assembler dialect.
1609 2021-10-07 Richard Biener <rguenther@suse.de>
1611 * tree-pretty-print.c (dump_generic_node): Do not elide
1612 printing '&' when dumping with -gimple.
1614 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
1616 * gimple-range-cache.cc (non_null_ref::adjust_range): Call new
1618 * gimple-range-fold.cc (adjust_pointer_diff_expr): Ditto.
1619 (adjust_imagpart_expr): Ditto.
1620 * value-range.cc (irange::irange_intersect): Call new routine if
1621 RHS is a single pair.
1622 (irange::intersect): New wide_int version.
1623 * value-range.h (class irange): New prototype.
1625 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
1627 * gimple-range-edge.cc (gimple_outgoing_range::gimple_outgoing_range):
1628 Add parameter to limit size when recognizing switches.
1629 (gimple_outgoing_range::edge_range_p): Check size limit.
1630 * gimple-range-edge.h (gimple_outgoing_range): Add size field.
1631 * gimple-range-gori.cc (gori_map::calculate_gori): Ignore switches
1632 that exceed the size limit.
1633 (gori_compute::gori_compute): Add initializer.
1634 * params.opt (evrp-switch-limit): New.
1635 * doc/invoke.texi: Update docs.
1637 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
1639 * value-range.h (irange::set_varying): Use TYPE_MIN_VALUE and
1640 TYPE_MAX_VALUE instead of creating new trees when possible.
1642 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
1644 * gimple-range-cache.cc (non_null_ref::adjust_range): Check for
1645 zero and non-zero more efficently.
1647 2021-10-06 Richard Biener <rguenther@suse.de>
1650 * dumpfile.h (TDF_GIMPLE_VAL): New.
1651 (dump_flag): Re-order and adjust TDF_* flags. Make
1652 the enum uint32_t. Use std::underlying_type in the
1654 (optgroup_flag): Likewise for the operator overloads.
1655 * tree-pretty-print.c (dump_generic_node): Wrap ADDR_EXPR
1656 in _Literal if TDF_GIMPLE_VAL.
1657 * gimple-pretty-print.c (dump_gimple_assign): Add
1658 TDF_GIMPLE_VAL to flags when dumping operands where only
1659 is_gimple_val are allowed.
1660 (dump_gimple_cond): Likewise.
1662 2021-10-06 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
1664 * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove redundant if
1667 2021-10-05 qing zhao <qing.zhao@oracle.com>
1669 PR middle-end/102359
1670 * gimplify.c (gimplify_decl_expr): Not add initialization for an
1671 auto variable when it has been initialized by frontend.
1673 2021-10-05 Aldy Hernandez <aldyh@redhat.com>
1675 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
1678 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1680 * common/config/avr/avr-common.c (avr_handle_option): Mark
1681 argument as ATTRIBUTE_UNUSED.
1683 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1685 * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC):
1686 Undefine before redefinition.
1688 2021-10-05 Richard Biener <rguenther@suse.de>
1690 * toplev.c (no_backend): Remove global var.
1691 (process_options): Pass in no_backend, move post_options
1692 langhook call to toplev::main.
1693 (do_compile): Pass in no_backend, move process_options call
1695 (toplev::run_self_tests): Check no_backend at the caller.
1696 (toplev::main): Call post_options and process_options
1697 split out from do_compile, do self-tests only if
1698 no_backend is initialized.
1700 2021-10-05 Richard Biener <rguenther@suse.de>
1702 * tree-cfg.c (dump_function_to_file): Dump the UID of the
1703 function as part of the name when requested.
1704 * tree-pretty-print.c (dump_function_name): Dump the UID when
1705 requested and the langhook produced the actual name.
1707 2021-10-05 Richard Biener <rguenther@suse.de>
1709 PR middle-end/102587
1710 PR middle-end/102285
1711 * internal-fn.c (expand_DEFERRED_INIT): Fall back to
1712 zero-initialization as last resort, use the constant
1713 size as given by the DEFERRED_INIT argument to build
1716 2021-10-04 Marek Polacek <polacek@redhat.com>
1719 * doc/invoke.texi: Document -Warray-compare.
1721 2021-10-04 Richard Biener <rguenther@suse.de>
1723 * gimplify.c (is_var_need_auto_init): DECL_HARD_REGISTER
1724 variables are not to be initialized.
1726 2021-10-04 Richard Biener <rguenther@suse.de>
1728 * expr.h (non_mem_decl_p): Declare.
1729 (mem_ref_refers_to_non_mem_p): Likewise.
1730 * expr.c (non_mem_decl_p): Export.
1731 (mem_ref_refers_to_non_mem_p): Likewise.
1732 * internal-fn.c (expand_DEFERRED_INIT): Do not expand the LHS
1733 but check the base with mem_ref_refers_to_non_mem_p
1736 2021-10-04 Richard Biener <rguenther@suse.de>
1738 PR tree-optimization/102570
1739 * tree-ssa-sccvn.h (vn_reference_op_struct): Document
1740 we are using clique for the internal function code.
1741 * tree-ssa-sccvn.c (vn_reference_op_eq): Compare the
1742 internal function code.
1743 (print_vn_reference_ops): Print the internal function code.
1744 (vn_reference_op_compute_hash): Hash it.
1745 (copy_reference_ops_from_call): Record it.
1746 (visit_stmt): Remove the restriction around internal function
1748 (fully_constant_vn_reference_p): Use fold_const_call and handle
1750 (vn_reference_eq): Compare call return types.
1751 * tree-ssa-pre.c (create_expression_by_pieces): Handle
1752 generating calls to internal functions.
1753 (compute_avail): Remove the restriction around internal function
1756 2021-10-04 Aldy Hernandez <aldyh@redhat.com>
1758 PR tree-optimization/102560
1759 * gimple-ssa-warn-alloca.c (alloca_call_type): Remove static
1760 marker for invalid_range.
1762 2021-10-04 Richard Biener <rguenther@suse.de>
1764 PR middle-end/102587
1765 * internal-fn.c (expand_DEFERRED_INIT): Guard register
1766 initialization path an avoid initializing VLA registers
1769 2021-10-04 Eric Botcazou <ebotcazou@adacore.com>
1771 * config/rs6000/vxworks.h (TARGET_INIT_LIBFUNCS): Delete.
1773 2021-10-03 Martin Liska <mliska@suse.cz>
1775 * toplev.c (toplev::main): Check opt_index if it is a part
1778 2021-10-02 Aldy Hernandez <aldyh@redhat.com>
1780 PR tree-optimization/102563
1781 * range-op.cc (operator_lshift::op1_range): Do not clobber
1784 2021-10-02 Martin Liska <mliska@suse.cz>
1786 * toplev.c (toplev::main): save_decoded_options[0] is program
1787 name and so it should be skipped.
1789 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
1791 PR tree-optimization/102546
1792 * range-op.cc (operator_lshift::op1_range): Teach range-ops that
1793 X << Y is non-zero implies X is also non-zero.
1795 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1797 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
1799 * config/aarch64/aarch64-tune.md: Regenerate.
1800 * doc/invoke.texi: Update docs.
1802 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1804 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
1806 * config/aarch64/aarch64-tune.md: Regenerate.
1807 * doc/invoke.texi: Update docs.
1809 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1811 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
1813 * config/aarch64/aarch64-tune.md: Regenerate.
1814 * doc/invoke.texi: Update docs.
1816 2021-10-01 Martin Sebor <msebor@redhat.com>
1819 * doc/invoke.texi (-Waddress): Update.
1820 * gengtype.c (write_types): Avoid -Waddress.
1821 * poly-int.h (POLY_SET_COEFF): Avoid using null.
1823 2021-10-01 John David Anglin <danglin@gcc.gnu.org>
1826 * config/pa/pa.c (pa_option_override): Default to dwarf version 4
1829 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1831 * config/aarch64/aarch64.h (AARCH64_FL_V9): Update value.
1833 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
1835 * gimple-range-path.cc (path_range_query::compute_ranges): Use
1837 * gimple-range-path.h (class path_range_query): Remove shadowed
1839 (path_range_query::get_path_oracle): New.
1841 2021-10-01 Jakub Jelinek <jakub@redhat.com>
1842 Richard Biener <rguenther@suse.de>
1845 * doc/invoke.texi (-fsanitize=integer-divide-by-zero): Remove
1846 INT_MIN / -1 division detection from here ...
1847 (-fsanitize=signed-integer-overflow): ... and add it here.
1849 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1851 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): Added
1853 * config/aarch64/aarch64.h (AARCH64_FL_V9): New.
1854 (AARCH64_FL_FOR_ARCH9): New flags for Armv9-A.
1855 (AARCH64_ISA_V9): New ISA flag.
1856 * doc/invoke.texi: Update docs.
1858 2021-10-01 Martin Liska <mliska@suse.cz>
1860 * toplev.c (toplev::main): Save decoded optimization options.
1861 * toplev.h (save_opt_decoded_options): New.
1862 * doc/extend.texi: Be more clear about optimize and target
1865 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
1867 * explow.c: Include langhooks.h.
1868 (set_stack_check_libfunc): Build a proper function type.
1870 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
1873 * config/i386/i386.c (legitimate_pic_address_disp_p): For PE-COFF do
1874 not return true for external weak function symbols in medium model.
1876 2021-10-01 Jakub Jelinek <jakub@redhat.com>
1878 * tree.h (OMP_CLAUSE_ORDER_REPRODUCIBLE): Define.
1879 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_ORDER>: Print
1880 reproducible: for OMP_CLAUSE_ORDER_REPRODUCIBLE.
1881 * omp-general.c (omp_extract_for_data): If OMP_CLAUSE_ORDER is seen
1882 without OMP_CLAUSE_ORDER_UNCONSTRAINED, overwrite sched_kind to
1883 OMP_CLAUSE_SCHEDULE_STATIC.
1885 2021-10-01 Richard Biener <rguenther@suse.de>
1887 PR middle-end/102518
1888 * tree-inline.c (setup_one_parameter): Avoid substituting
1889 an invariant into contexts where a GIMPLE register is not valid.
1891 2021-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1893 * config/arm/arm-cpus.in: Add Cortex-R52+ CPU.
1894 * config/arm/arm-tables.opt: Regenerate.
1895 * config/arm/arm-tune.md: Regenerate.
1896 * doc/invoke.texi: Update docs.
1898 2021-09-30 Uroš Bizjak <ubizjak@gmail.com>
1901 * config/i386/i386.md
1902 (sign_extend:WIDE (any_logic:NARROW (memory, immediate)) splitters):
1905 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
1907 * omp-low.c (omp_runtime_api_call): Add omp_aligned_{,c}alloc and
1908 omp_{c,re}alloc, fix omp_alloc/omp_free.
1910 2021-09-30 Martin Liska <mliska@suse.cz>
1912 * defaults.h (ASM_OUTPUT_ASCII): Do not hide global variable
1913 asm_out_file and stream directly to MYFILE.
1915 2021-09-30 Richard Biener <rguenther@suse.de>
1917 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
1918 Restore and fix condition under which we apply npeel to
1919 the DRs misalignment value.
1921 2021-09-30 Richard Biener <rguenther@suse.de>
1923 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
1924 Fix npeel check for variable amount of peeling.
1926 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
1928 * lto-wrapper.c (run_gcc): Plug snprintf overflow.
1930 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
1932 * gimple-range.cc (gimple_ranger::debug): New.
1933 * gimple-range.h (class gimple_ranger): Add debug.
1935 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
1937 PR middle-end/102519
1938 * tree-vrp.c (hybrid_threader::~hybrid_threader): Free m_query.
1940 2021-09-29 Indu Bhagat <indu.bhagat@oracle.com>
1943 * btfout.c (GTY): Add GTY (()) albeit for cosmetic only purpose.
1944 (btf_finalize): Empty the hash_map btf_var_ids.
1946 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
1948 * tree-vrp.c (thread_through_all_blocks): Return bool.
1949 (execute_vrp_threader): Return TODO_* flags.
1950 (pass_data_vrp_threader): Set todo_flags_finish to 0.
1952 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
1954 * timevar.def (TV_TREE_VRP_THREADER): New.
1955 * tree-vrp.c: Use TV_TREE_VRP_THREADER for VRP threader pass.
1957 2021-09-29 David Faust <david.faust@oracle.com>
1959 * config.gcc (bpf-*-*): Do not overwrite extra_headers.
1961 2021-09-29 Jonathan Wright <jonathan.wright@arm.com>
1963 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_PPU): Define
1964 new type qualifier enum.
1965 (TYPES_TERNOP_SSSU): Likewise.
1966 (TYPES_TERNOP_PPPU): Likewise.
1967 * config/aarch64/aarch64-simd-builtins.def: Define PPU, SSU,
1968 PPPU and SSSU builtin generator macros for qtbl1 and qtbx1
1970 * config/aarch64/arm_neon.h (vqtbl1_p8): Use type-qualified
1971 builtin and remove casts.
1972 (vqtbl1_s8): Likewise.
1973 (vqtbl1q_p8): Likewise.
1974 (vqtbl1q_s8): Likewise.
1975 (vqtbx1_s8): Likewise.
1976 (vqtbx1_p8): Likewise.
1977 (vqtbx1q_s8): Likewise.
1978 (vqtbx1q_p8): Likewise.
1979 (vtbl1_p8): Likewise.
1980 (vtbl2_p8): Likewise.
1981 (vtbx2_p8): Likewise.
1983 2021-09-29 Richard Biener <rguenther@suse.de>
1985 * tree-vect-data-refs.c (vect_dr_misalign_for_aligned_access):
1987 (vect_update_misalignment_for_peel): Use it to update
1988 misaligned to the value necessary for an aligned access.
1989 (vect_get_peeling_costs_all_drs): Likewise.
1990 (vect_enhance_data_refs_alignment): Likewise.
1992 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1994 * config/aarch64/aarch64.c (aarch64_expand_cpymem): Count number of
1995 emitted operations and adjust heuristic for code size.
1997 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1999 * config/aarch64/aarch64.c (aarch64_expand_setmem): Count number of
2000 emitted operations and adjust heuristic for code size.
2002 2021-09-29 Jakub Jelinek <jakub@redhat.com>
2004 PR middle-end/102504
2005 * gimplify.c (gimplify_scan_omp_clauses): Use omp_check_private even
2006 in OMP_SCOPE clauses, not just on worksharing construct clauses.
2008 2021-09-28 Geng Qi <gengqi@linux.alibaba.com>
2010 * config/riscv/riscv.md (mulv<mode>4): Call gen_smul<mode>3_highpart.
2011 (<u>mulditi3): Call <su>muldi3_highpart.
2012 (<u>muldi3_highpart): Rename to <su>muldi3_highpart.
2013 (<u>mulsidi3): Call <su>mulsi3_highpart.
2014 (<u>mulsi3_highpart): Rename to <su>mulsi3_highpart.
2016 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
2018 * config/darwin.h (DSYMUTIL_SPEC): Recognize D sources.
2020 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
2022 * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
2023 (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
2026 2021-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2028 * config/aarch64/aarch64.h (AARCH64_FL_LS64): Define
2029 (AARCH64_FL_V8_7): Likewise.
2030 (AARCH64_FL_FOR_ARCH8_7): Likewise.
2031 * config/aarch64/aarch64-arches.def (armv8.7-a): Define.
2032 * config/aarch64/aarch64-option-extensions.def (ls64): Define.
2033 * doc/invoke.texi: Document the above.
2035 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2037 * dbgcnt.c (dbg_cnt_counter): New.
2038 * dbgcnt.h (dbg_cnt_counter): New.
2039 * dumpfile.c (dump_options): Add entry for TDF_THREADING.
2040 * dumpfile.h (enum dump_flag): Add TDF_THREADING.
2041 * gimple-range-path.cc (DEBUG_SOLVER): Use TDF_THREADING.
2042 * tree-ssa-threadupdate.c (dump_jump_thread_path): Dump out
2045 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2047 * cfgcleanup.c (pass_jump::execute): Check
2048 flag_expensive_optimizations.
2049 (pass_jump_after_combine::gate): Same.
2050 * doc/invoke.texi (-fthread-jumps): Enable for -O1.
2051 * opts.c (default_options_table): Enable -fthread-jumps at -O1.
2052 * tree-ssa-threadupdate.c
2053 (fwd_jt_path_registry::remove_jump_threads_including): Bail unless
2056 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
2058 * tree-ssa-reassoc.c (biased_names): New global.
2059 (propagate_bias_p): New function.
2060 (loop_carried_phi): Remove.
2061 (propagate_rank): Propagate bias along single uses.
2062 (get_rank): Update biased_names when needed.
2064 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
2066 * passes.def (pass_reassoc): Rename parameter to early_p.
2067 * tree-ssa-reassoc.c (reassoc_bias_loop_carried_phi_ranks_p):
2069 (phi_rank): Don't bias loop-carried phi ranks
2070 before vectorization pass.
2071 (execute_reassoc): Add bias_loop_carried_phi_ranks_p parameter.
2072 (pass_reassoc::pass_reassoc): Add bias_loop_carried_phi_ranks_p
2074 (pass_reassoc::set_param): Set bias_loop_carried_phi_ranks_p
2076 (pass_reassoc::execute): Pass bias_loop_carried_phi_ranks_p to
2078 (pass_reassoc::bias_loop_carried_phi_ranks_p): New member.
2080 2021-09-28 Jakub Jelinek <jakub@redhat.com>
2083 * config/i386/i386.c (standard_80387_constant_p): Don't recognize
2084 special 80387 instruction XFmode constants if flag_rounding_math.
2086 2021-09-28 Richard Biener <rguenther@suse.de>
2088 PR tree-optimization/100112
2089 * tree-ssa-sccvn.c (visit_reference_op_load): Record the
2090 referece into the hashtable twice in case last_vuse is
2091 different from the original vuse on the stmt.
2093 2021-09-28 Jakub Jelinek <jakub@redhat.com>
2095 PR middle-end/102492
2096 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't call the
2097 omp_finish_clause langhook on implicitly added OMP_CLAUSE_PRIVATE
2098 clauses on SIMD constructs.
2100 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2102 PR tree-optimization/102511
2103 * gimple-range-path.cc (path_range_query::range_on_path_entry):
2104 Return VARYING when nothing found.
2106 2021-09-28 Hongyu Wang <hongyu.wang@intel.com>
2109 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): Add
2111 (VALID_SSE2_REG_VHF_MODE): Add V4HFmode and V2HFmode.
2112 (VALID_MMX_REG_MODE): Add V4HFmode.
2113 (SSE_REG_MODE_P): Replace VALID_AVX512FP16_REG_MODE with
2114 vector mode condition.
2115 * config/i386/i386.c (classify_argument): Parse V4HF/V2HF
2117 (function_arg_32): Add V4HFmode.
2118 (function_arg_advance_32): Likewise.
2119 * config/i386/i386.md (mode): Add V4HF/V2HF.
2120 (MODE_SIZE): Likewise.
2121 * config/i386/mmx.md (MMXMODE): Add V4HF mode.
2122 (V_32): Add V2HF mode.
2123 (VHF_32_64): New mode iterator.
2124 (*mov<mode>_internal): Adjust sse alternatives to support
2126 (*mov<mode>_internal): Adjust sse alternatives to support
2128 (<insn><mode>3): New define_insn for add/sub/mul/div.
2130 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2132 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Check
2134 (pass_early_thread_jumps::gate): Same.
2135 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
2136 Return if !flag_thread_jumps.
2137 * tree-ssa-threadupdate.c
2138 (jt_path_registry::register_jump_thread): Assert that
2139 flag_thread_jumps is true.
2141 2021-09-28 liuhongt <hongtao.liu@intel.com>
2144 (simplify_context::simplify_binary_operation_1): Relax
2145 condition of simplifying (vec_concat:M (vec_select op0
2146 index0)(vec_select op1 index1)) to allow different modes
2147 between op0 and M, but have same inner mode.
2149 2021-09-28 liuhongt <hongtao.liu@intel.com>
2151 * config/i386/i386-expand.c (emit_reduc_half): Handle
2152 V8HF/V16HF/V32HFmode.
2153 * config/i386/sse.md (REDUC_SSE_PLUS_MODE): Add V8HF.
2154 (REDUC_SSE_SMINMAX_MODE): Ditto.
2155 (REDUC_PLUS_MODE): Add V16HF and V32HF.
2156 (REDUC_SMINMAX_MODE): Ditto.
2158 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2160 * gimple-range-path.cc
2161 (path_range_query::precompute_ranges_in_block): Rename to...
2162 (path_range_query::compute_ranges_in_block): ...this.
2163 (path_range_query::precompute_ranges): Rename to...
2164 (path_range_query::compute_ranges): ...this.
2165 (path_range_query::precompute_relations): Rename to...
2166 (path_range_query::compute_relations): ...this.
2167 (path_range_query::precompute_phi_relations): Rename to...
2168 (path_range_query::compute_phi_relations): ...this.
2169 * gimple-range-path.h: Rename precompute* to compute*.
2170 * tree-ssa-threadbackward.c
2171 (back_threader::find_taken_edge_switch): Same.
2172 (back_threader::find_taken_edge_cond): Same.
2173 * tree-ssa-threadedge.c
2174 (hybrid_jt_simplifier::compute_ranges_from_state): Same.
2175 (hybrid_jt_state::register_equivs_stmt): Inline...
2176 * tree-ssa-threadedge.h: ...here.
2178 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2180 * tree-vrp.c (lhs_of_dominating_assert): Remove.
2181 (class vrp_jt_state): Remove.
2182 (class vrp_jt_simplifier): Remove.
2183 (vrp_jt_simplifier::simplify): Remove.
2184 (class vrp_jump_threader): Remove.
2185 (vrp_jump_threader::vrp_jump_threader): Remove.
2186 (vrp_jump_threader::~vrp_jump_threader): Remove.
2187 (vrp_jump_threader::before_dom_children): Remove.
2188 (vrp_jump_threader::after_dom_children): Remove.
2190 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2192 * passes.def (pass_vrp_threader): New.
2193 * tree-pass.h (make_pass_vrp_threader): Add make_pass_vrp_threader.
2194 * tree-ssa-threadedge.c (hybrid_jt_state::register_equivs_stmt): New.
2195 (hybrid_jt_simplifier::hybrid_jt_simplifier): New.
2196 (hybrid_jt_simplifier::simplify): New.
2197 (hybrid_jt_simplifier::compute_ranges_from_state): New.
2198 * tree-ssa-threadedge.h (class hybrid_jt_state): New.
2199 (class hybrid_jt_simplifier): New.
2200 * tree-vrp.c (execute_vrp): Remove ASSERT_EXPR based jump
2202 (class hybrid_threader): New.
2203 (hybrid_threader::hybrid_threader): New.
2204 (hybrid_threader::~hybrid_threader): New.
2205 (hybrid_threader::before_dom_children): New.
2206 (hybrid_threader::after_dom_children): New.
2207 (execute_vrp_threader): New.
2208 (class pass_vrp_threader): New.
2209 (make_pass_vrp_threader): New.
2211 2021-09-27 Martin Liska <mliska@suse.cz>
2213 * output.h (enum section_flag): New.
2214 (SECTION_FORGET): Remove.
2215 (SECTION_ENTSIZE): Make it (1UL << 8) - 1.
2216 (SECTION_STYLE_MASK): Define it based on other enum
2218 * varasm.c (switch_to_section): Remove unused handling of
2221 2021-09-27 Martin Liska <mliska@suse.cz>
2223 * common.opt: Add new variable flag_default_complex_method.
2224 * opts.c (finish_options): Handle flags related to
2225 x_flag_complex_method.
2226 * toplev.c (process_options): Remove option handling related
2227 to flag_complex_method.
2229 2021-09-27 Richard Biener <rguenther@suse.de>
2231 PR middle-end/102450
2232 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid using
2233 type_for_size, instead use int_mode_for_size.
2235 2021-09-27 Andrew Pinski <apinski@marvell.com>
2238 * gimplify.c (gimplify_save_expr): Return early
2239 if the type of val is error_mark_node.
2241 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2243 * tree-ssanames.c (ssa_name_has_boolean_range): Use
2246 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2248 * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Remove
2249 vrp_visit_cond_stmt.
2250 * tree-ssa-dom.c (cprop_operand): Convert to range_query API.
2251 (cprop_into_stmt): Same.
2252 (dom_opt_dom_walker::optimize_stmt): Same.
2254 2021-09-27 Richard Biener <rguenther@suse.de>
2256 PR tree-optimization/97351
2257 PR tree-optimization/97352
2258 PR tree-optimization/82426
2259 * tree-vectorizer.h (dr_misalignment): Add vector type
2261 (aligned_access_p): Likewise.
2262 (known_alignment_for_access_p): Likewise.
2263 (vect_supportable_dr_alignment): Likewise.
2264 (vect_known_alignment_in_bytes): Likewise. Refactor.
2265 (DR_MISALIGNMENT): Remove.
2266 (vect_update_shared_vectype): Likewise.
2267 * tree-vect-data-refs.c (dr_misalignment): Refactor, handle
2268 a vector type with larger alignment requirement and apply
2269 the negative step adjustment here.
2270 (vect_calculate_target_alignment): Remove.
2271 (vect_compute_data_ref_alignment): Get explicit vector type
2272 argument, do not apply a negative step alignment adjustment
2274 (vect_slp_analyze_node_alignment): Re-analyze alignment
2275 when we re-visit the DR with a bigger desired alignment but
2276 keep more precise results from smaller alignments.
2277 * tree-vect-slp.c (vect_update_shared_vectype): Remove.
2278 (vect_slp_analyze_node_operations_1): Do not update the
2279 shared vector type on stmts.
2280 * tree-vect-stmts.c (vect_analyze_stmt): Push/pop the
2281 vector type of an SLP node to the representative stmt-info.
2282 (vect_transform_stmt): Likewise.
2284 2021-09-27 liuhongt <hongtao.liu@intel.com>
2287 2021-09-09 liuhongt <hongtao.liu@intel.com>
2290 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
2291 (reduc_plus_scal_v4sf): .. this, New define_expand.
2292 (reduc_plus_scal_v2df): .. and this, New define_expand.
2294 2021-09-26 liuhongt <hongtao.liu@intel.com>
2296 * doc/extend.texi (Half-Precision): Remove storage only
2297 description for _Float16 w/o avx512fp16.
2299 2021-09-25 Dimitar Dimitrov <dimitar@dinux.eu>
2301 * config/pru/constraints.md (Rrio): New constraint.
2302 * config/pru/predicates.md (regio_operand): New predicate.
2303 * config/pru/pru-pragma.c (pru_register_pragmas): Register
2304 the __regio_symbol address space.
2305 * config/pru/pru-protos.h (pru_symref2ioregno): Declaration.
2306 * config/pru/pru.c (pru_symref2ioregno): New helper function.
2307 (pru_legitimate_address_p): Remove.
2308 (pru_addr_space_legitimate_address_p): Use the address space
2310 (pru_nongeneric_pointer_addrspace): New helper function.
2311 (pru_insert_attributes): New function to validate __regio_symbol
2313 (TARGET_INSERT_ATTRIBUTES): New macro.
2314 (TARGET_LEGITIMATE_ADDRESS_P): Remove.
2315 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): New macro.
2316 * config/pru/pru.h (enum reg_class): Add REGIO_REGS class.
2317 * config/pru/pru.md (*regio_readsi): New pattern to read I/O
2319 (*regio_nozext_writesi): New pattern to write to I/O registers.
2320 (*regio_zext_write_r30<EQS0:mode>): Ditto.
2321 * doc/extend.texi: Document the new PRU Named Address Space.
2323 2021-09-24 Patrick Palka <ppalka@redhat.com>
2327 * real.c (encode_ieee_double): Avoid unwanted sign extension.
2328 (encode_ieee_quad): Likewise.
2330 2021-09-24 Vladimir Makarov <vmakarov@redhat.com>
2332 PR rtl-optimization/102147
2333 * ira-build.c (ira_conflict_vector_profitable_p): Make
2334 profitability calculation independent of host compiler pointer and
2337 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
2339 * gimple-range-path.cc (path_range_query::path_range_query):
2340 Move debugging header...
2341 (path_range_query::precompute_ranges): ...here.
2342 (path_range_query::internal_range_of_expr): Do not call
2343 range_on_path_entry if NAME is defined in the current block.
2345 2021-09-24 Richard Biener <rguenther@suse.de>
2347 * cfghooks.c (verify_flow_info): Verify unallocated BB and
2348 edge flags are not set.
2350 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
2352 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
2354 (jt_path_registry::register_jump_thread): Call
2355 cancel_invalid_paths.
2356 * tree-ssa-threadupdate.h (class jt_path_registry): Add
2357 cancel_invalid_paths.
2359 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
2361 PR tree-optimization/102400
2362 * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize
2363 result_vdef to zero value.
2365 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
2367 PR tree-optimization/102451
2368 * tree-ssa-dse.c (delete_dead_or_redundant_call): Record bb of stmt
2371 2021-09-24 Hongyu Wang <hongyu.wang@intel.com>
2373 * config/i386/sse.md (cond_<insn><mode>): Extend to support
2375 (cond_mul<mode>): Likewise.
2376 (cond_div<mode>): Likewise.
2377 (cond_<code><mode>): Likewise.
2378 (cond_fma<mode>): Likewise.
2379 (cond_fms<mode>): Likewise.
2380 (cond_fnma<mode>): Likewise.
2381 (cond_fnms<mode>): Likewise.
2383 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
2385 PR tree-optimization/102463
2386 * gimple-range-fold.cc (fold_using_range::relation_fold_and_or): If
2387 there is no range-ops handler, don't look for a relation.
2389 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
2391 * gimple-range-cache.cc (ranger_cache::ranger_cache): Take
2392 non-executable_edge flag as parameter.
2393 * gimple-range-cache.h (ranger_cache): Adjust prototype.
2394 * gimple-range-gori.cc (gori_compute::gori_compute): Take
2395 non-executable_edge flag as parameter.
2396 (gori_compute::outgoing_edge_range_p): Check new flag.
2397 * gimple-range-gori.h (gori_compute): Adjust prototype.
2398 * gimple-range.cc (gimple_ranger::gimple_ranger): Create new flag.
2399 (gimple_ranger::range_on_edge): Check new flag.
2400 * gimple-range.h (gimple_ranger::non_executable_edge_flag): New.
2401 * gimple-ssa-evrp.c (rvrp_folder): Pass ranger flag to simplifer.
2402 (hybrid_folder::hybrid_folder): Set ranger non-executable flag value.
2403 (hybrid_folder::fold_stmt): Set flag value in the simplifer.
2404 * vr-values.c (simplify_using_ranges::set_and_propagate_unexecutable):
2405 Use not_executable flag if provided inmstead of EDGE_EXECUTABLE.
2406 (simplify_using_ranges::simplify_switch_using_ranges): Clear
2407 EDGE_EXECUTABLE like it originally did.
2408 (simplify_using_ranges::cleanup_edges_and_switches): Clear any
2409 NON_EXECUTABLE flags.
2410 (simplify_using_ranges::simplify_using_ranges): Adjust.
2411 * vr-values.h (class simplify_using_ranges): Adjust.
2412 (simplify_using_ranges::set_range_query): Add non-executable flag param.
2414 2021-09-23 Bill Schmidt <wschmidt@linux.ibm.com>
2417 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Detect
2418 zero-width bit fields and return indicator.
2419 (rs6000_discover_homogeneous_aggregate): Diagnose when the
2420 presence of a zero-width bit field changes parameter passing in
2423 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
2425 * gimple-range-fold.cc (fold_using_range::range_of_phi):
2426 Remove dominator check.
2428 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
2430 * gimple-range-path.cc (path_range_query::precompute_relations):
2431 Hoist edge calculations before using EDGE_SUCC.
2433 2021-09-23 Jonathan Wakely <jwakely@redhat.com>
2435 * configure.ac: Fix --with-multilib-list description.
2436 * configure: Regenerate.
2438 2021-09-23 Richard Biener <rguenther@suse.de>
2440 PR tree-optimization/102448
2441 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
2442 Clear alignment info copied from DR_PTR_INFO.
2444 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
2446 * config/i386/i386-expand.c (ix86_use_mask_cmp_p): Enable
2448 * config/i386/sse.md (sseintvecmodelower): Add HF vector modes.
2449 (<avx512>_store<mode>_mask): Extend to support HF vector modes.
2450 (vec_cmp<mode><avx512fmaskmodelower>): Likewise.
2451 (vcond_mask_<mode><avx512fmaskmodelower>): Likewise.
2452 (vcond<mode><mode>): New expander.
2453 (vcond<mode><sseintvecmodelower>): Likewise.
2454 (vcond<sseintvecmodelower><mode>): Likewise.
2455 (vcondu<mode><sseintvecmodelower>): Likewise.
2457 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
2459 * config/i386/sse.md (extend<ssePHmodelower><mode>2):
2461 (extendv4hf<mode>2): Likewise.
2462 (extendv2hfv2df2): Likewise.
2463 (trunc<mode><ssePHmodelower>2): Likewise.
2464 (avx512fp16_vcvt<castmode>2ph_<mode>): Rename to ...
2465 (trunc<mode>v4hf2): ... this, and drop constraints.
2466 (avx512fp16_vcvtpd2ph_v2df): Rename to ...
2467 (truncv2dfv2hf2): ... this, and likewise.
2469 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
2471 * config/i386/sse.md (float<floatunssuffix><mode><ssePHmodelower>2):
2473 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>):
2475 (float<floatunssuffix><mode>v4hf2): ... this, and drop constraints.
2476 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Rename to ...
2477 (float<floatunssuffix>v2div2hf2): ... this, and likewise.
2479 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
2481 * config/i386/i386.md (fix<fixunssuffix>_trunchf<mode>2): New expander.
2482 (fixuns_trunchfhi2): Likewise.
2483 (*fixuns_trunchfsi2zext): New define_insn.
2484 * config/i386/sse.md (ssePHmodelower): New mode_attr.
2485 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
2486 New expander for same element vector fix_truncate.
2487 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
2488 Likewise for V4HF to V4SI/V4DI fix_truncate.
2489 (fix<fixunssuffix>_truncv2hfv2di2):
2490 Likeise for V2HF to V2DI fix_truncate.
2492 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
2494 * config/i386/i386.md (<code>hf3): New expander.
2496 2021-09-23 liuhongt <hongtao.liu@intel.com>
2498 * config/i386/sse.md (FMAMODEM): extend to handle FP16.
2499 (VFH_SF_AVX512VL): Extend to handle HFmode.
2500 (VF_SF_AVX512VL): Deleted.
2502 2021-09-23 liuhongt <hongtao.liu@intel.com>
2504 * config/i386/i386.md (rinthf2): New expander.
2505 (nearbyinthf2): New expander.
2507 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
2509 * tree-ssa-dom.c (class dom_jump_threader_simplifier): Rename...
2510 (class dom_jt_state): ...this and provide virtual overrides.
2511 (dom_jt_state::register_equiv): New.
2512 (class dom_jt_simplifier): Rename from
2513 dom_jump_threader_simplifier.
2514 (dom_jump_threader_simplifier::simplify): Rename...
2515 (dom_jt_simplifier::simplify): ...to this.
2516 (pass_dominator::execute): Use dom_jt_simplifier and
2518 * tree-ssa-threadedge.c (jump_threader::jump_threader):
2520 (jt_state::register_equivs_stmt): Abstract out...
2521 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
2523 (jump_threader::thread_around_empty_blocks): Update state.
2524 (jump_threader::thread_through_normal_block): Same.
2525 (jt_state::jt_state): Remove.
2526 (jt_state::push): Remove pass specific bits. Keep block vector
2528 (jt_state::append_path): New.
2529 (jt_state::pop): Remove pass specific bits.
2530 (jt_state::register_equiv): Same.
2531 (jt_state::record_ranges_from_stmt): Same.
2532 (jt_state::register_equivs_on_edge): Same. Rename...
2533 (jt_state::register_equivs_edge): ...to this.
2534 (jt_state::dump): New.
2535 (jt_state::debug): New.
2536 (jump_threader_simplifier::simplify): Remove.
2537 (jt_state::get_path): New.
2538 * tree-ssa-threadedge.h (class jt_simplifier): Make into a base
2539 class. Expose common functionality as virtual methods.
2540 (class jump_threader_simplifier): Same. Rename...
2541 (class jt_simplifier): ...to this.
2542 * tree-vrp.c (class vrp_jump_threader_simplifier): Rename...
2543 (class vrp_jt_simplifier): ...to this. Provide pass specific
2545 (class vrp_jt_state): New.
2546 (vrp_jump_threader_simplifier::simplify): Rename...
2547 (vrp_jt_simplifier::simplify): ...to this. Inline code from
2548 what used to be the base class.
2549 (vrp_jump_threader::vrp_jump_threader): Use vrp_jt_state and
2552 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
2555 * doc/invoke.texi (-Wno-missing-include-dirs.): Document Fortran
2558 2021-09-22 Roger Sayle <roger@nextmovesoftware.com>
2559 Richard Biener <rguenther@suse.de>
2561 * match.pd (negation simplifications): Implement some negation
2562 folding transformations from fold-const.c's fold_negate_expr.
2563 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Add a SIMPLIFY
2564 argument, to control whether the op should be simplified prior
2565 to looking up/assigning a value number.
2566 (vn_nary_build_or_lookup): Update call to vn_nary_build_or_lookup_1.
2567 (vn_nary_simplify): Likewise.
2568 (visit_nary_op): Likewise, but when constructing a NEGATE_EXPR
2569 now call vn_nary_build_or_lookup_1 disabling simplification.
2571 2021-09-22 Jiufu Guo <guojiufu@linux.ibm.com>
2573 PR tree-optimization/102087
2574 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
2575 Update bound/cmp/control for niter.
2577 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
2579 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
2580 Move check for non-empty BB here.
2581 (fur_source::register_outgoing_edges): ...from here.
2583 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
2585 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
2586 Remove call to improve_range_with_equivs.
2587 (path_range_query::improve_range_with_equivs): Remove
2588 * gimple-range-path.h: Remove improve_range_with_equivs.
2590 2021-09-22 dianhong xu <dianhong.xu@intel.com>
2592 * config/i386/avx512fp16intrin.h:
2593 (_mm512_mask_blend_ph): New intrinsic.
2594 (_mm512_permutex2var_ph): Ditto.
2595 (_mm512_permutexvar_ph): Ditto.
2596 * config/i386/avx512fp16vlintrin.h:
2597 (_mm256_mask_blend_ph): New intrinsic.
2598 (_mm256_permutex2var_ph): Ditto.
2599 (_mm256_permutexvar_ph): Ditto.
2600 (_mm_mask_blend_ph): Ditto.
2601 (_mm_permutex2var_ph): Ditto.
2602 (_mm_permutexvar_ph): Ditto.
2604 2021-09-22 dianhong xu <dianhong.xu@intel.com>
2606 * config/i386/avx512fp16intrin.h: Add new intrinsics.
2607 (_mm512_conj_pch): New intrinsic.
2608 (_mm512_mask_conj_pch): Ditto.
2609 (_mm512_maskz_conj_pch): Ditto.
2610 * config/i386/avx512fp16vlintrin.h: Add new intrinsics.
2611 (_mm256_conj_pch): New intrinsic.
2612 (_mm256_mask_conj_pch): Ditto.
2613 (_mm256_maskz_conj_pch): Ditto.
2614 (_mm_conj_pch): Ditto.
2615 (_mm_mask_conj_pch): Ditto.
2616 (_mm_maskz_conj_pch): Ditto.
2618 2021-09-22 dianhong xu <dianhong.xu@intel.com>
2620 * config/i386/avx512fp16intrin.h (_MM512_REDUCE_OP): New macro
2621 (_mm512_reduce_add_ph): New intrinsic.
2622 (_mm512_reduce_mul_ph): Ditto.
2623 (_mm512_reduce_min_ph): Ditto.
2624 (_mm512_reduce_max_ph): Ditto.
2625 * config/i386/avx512fp16vlintrin.h
2626 (_MM256_REDUCE_OP/_MM_REDUCE_OP): New macro.
2627 (_mm256_reduce_add_ph): New intrinsic.
2628 (_mm256_reduce_mul_ph): Ditto.
2629 (_mm256_reduce_min_ph): Ditto.
2630 (_mm256_reduce_max_ph): Ditto.
2631 (_mm_reduce_add_ph): Ditto.
2632 (_mm_reduce_mul_ph): Ditto.
2633 (_mm_reduce_min_ph): Ditto.
2634 (_mm_reduce_max_ph): Ditto.
2636 2021-09-22 dianhong xu <dianhong.xu@intel.com>
2638 * config/i386/avx512fp16intrin.h (__m512h_u, __m256h_u,
2639 __m128h_u): New typedef.
2640 (_mm512_load_ph): New intrinsic.
2641 (_mm256_load_ph): Ditto.
2642 (_mm_load_ph): Ditto.
2643 (_mm512_loadu_ph): Ditto.
2644 (_mm256_loadu_ph): Ditto.
2645 (_mm_loadu_ph): Ditto.
2646 (_mm512_store_ph): Ditto.
2647 (_mm256_store_ph): Ditto.
2648 (_mm_store_ph): Ditto.
2649 (_mm512_storeu_ph): Ditto.
2650 (_mm256_storeu_ph): Ditto.
2651 (_mm_storeu_ph): Ditto.
2652 (_mm512_abs_ph): Ditto.
2653 * config/i386/avx512fp16vlintrin.h
2654 (_mm_abs_ph): Ditto.
2655 (_mm256_abs_ph): Ditto.
2657 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
2659 * config/s390/tpf.md (prologue_tpf, epilogue_tpf): Add cc clobber.
2661 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
2664 * config/s390/s390.c (s390_expand_insv): Emit a normal move if it
2665 is actually a full copy of the source operand into the target.
2666 Don't emit a strict low part move if source and target mode match.
2668 2021-09-22 Jakub Jelinek <jakub@redhat.com>
2670 PR middle-end/102415
2671 * omp-expand.c (expand_omp_single): If region->exit is NULL,
2672 assert region->entry is GIMPLE_OMP_SCOPE region and return.
2674 2021-09-22 Jakub Jelinek <jakub@redhat.com>
2676 * tree.h (OMP_CLAUSE_ALLOCATE_ALIGN): Define.
2677 * tree.c (omp_clause_num_ops): Change number of OMP_CLAUSE_ALLOCATE
2678 arguments from 2 to 3.
2679 * tree-pretty-print.c (dump_omp_clause): Print allocator() around
2680 allocate clause allocator and print align if present.
2681 * omp-low.c (scan_sharing_clauses): Force allocate_map entry even
2682 for omp_default_mem_alloc if align modifier is present. If align
2683 modifier is present, use TREE_LIST to encode both allocator and
2685 (lower_private_allocate, lower_rec_input_clauses, create_task_copyfn):
2686 Handle align modifier on allocator clause if present.
2688 2021-09-22 liuhongt <hongtao.liu@intel.com>
2690 * config/i386/i386.md (define_attr "isa"): Add
2692 (define_attr "enabled"): Correspond fma_or_avx512vl to
2693 TARGET_FMA || TARGET_AVX512VL.
2694 * config/i386/mmx.md (fmav2sf4): Extend to AVX512 fma.
2699 2021-09-22 liuhongt <hongtao.liu@intel.com>
2701 * config/i386/i386.md (cstorehf3): New define_expand.
2703 2021-09-22 liuhongt <hongtao.liu@intel.com>
2705 * config/i386/i386.md (<rounding_insn>hf2): New expander.
2706 (sse4_1_round<mode>2): Extend from MODEF to MODEFH.
2707 * config/i386/sse.md (*sse4_1_round<ssescalarmodesuffix>):
2708 Extend from VF_128 to VFH_128.
2710 2021-09-22 liuhongt <hongtao.liu@intel.com>
2712 * config/i386/i386-features.c (i386-features.c): Handle
2714 * config/i386/i386.md (sqrthf2): New expander.
2715 (*sqrthf2): New define_insn.
2716 * config/i386/sse.md
2717 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
2720 2021-09-22 liuhongt <hongtao.liu@intel.com>
2722 * config/i386/avx512fp16intrin.h (_mm_mask_fcmadd_sch):
2724 (_mm_mask3_fcmadd_sch): Likewise.
2725 (_mm_maskz_fcmadd_sch): Likewise.
2726 (_mm_fcmadd_sch): Likewise.
2727 (_mm_mask_fmadd_sch): Likewise.
2728 (_mm_mask3_fmadd_sch): Likewise.
2729 (_mm_maskz_fmadd_sch): Likewise.
2730 (_mm_fmadd_sch): Likewise.
2731 (_mm_mask_fcmadd_round_sch): Likewise.
2732 (_mm_mask3_fcmadd_round_sch): Likewise.
2733 (_mm_maskz_fcmadd_round_sch): Likewise.
2734 (_mm_fcmadd_round_sch): Likewise.
2735 (_mm_mask_fmadd_round_sch): Likewise.
2736 (_mm_mask3_fmadd_round_sch): Likewise.
2737 (_mm_maskz_fmadd_round_sch): Likewise.
2738 (_mm_fmadd_round_sch): Likewise.
2739 (_mm_fcmul_sch): Likewise.
2740 (_mm_mask_fcmul_sch): Likewise.
2741 (_mm_maskz_fcmul_sch): Likewise.
2742 (_mm_fmul_sch): Likewise.
2743 (_mm_mask_fmul_sch): Likewise.
2744 (_mm_maskz_fmul_sch): Likewise.
2745 (_mm_fcmul_round_sch): Likewise.
2746 (_mm_mask_fcmul_round_sch): Likewise.
2747 (_mm_maskz_fcmul_round_sch): Likewise.
2748 (_mm_fmul_round_sch): Likewise.
2749 (_mm_mask_fmul_round_sch): Likewise.
2750 (_mm_maskz_fmul_round_sch): Likewise.
2751 * config/i386/i386-builtin.def: Add corresponding new builtins.
2752 * config/i386/sse.md
2753 (avx512fp16_fmaddcsh_v8hf_maskz<round_expand_name>): New expander.
2754 (avx512fp16_fcmaddcsh_v8hf_maskz<round_expand_name>): Ditto.
2755 (avx512fp16_fma_<complexopname>sh_v8hf<mask_scalarcz_name><round_scalarcz_name>):
2757 (avx512fp16_<complexopname>sh_v8hf_mask<round_name>): Ditto.
2758 (avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>):
2760 * config/i386/subst.md (mask_scalarcz_name): New.
2761 (mask_scalarc_name): Ditto.
2762 (mask_scalarc_operand3): Ditto.
2763 (mask_scalarcz_operand4): Ditto.
2764 (round_scalarcz_name): Ditto.
2765 (round_scalarc_mask_operand3): Ditto.
2766 (round_scalarcz_mask_operand4): Ditto.
2767 (round_scalarc_mask_op3): Ditto.
2768 (round_scalarcz_mask_op4): Ditto.
2769 (round_scalarcz_constraint): Ditto.
2770 (round_scalarcz_nimm_predicate): Ditto.
2771 (mask_scalarcz): Ditto.
2772 (mask_scalarc): Ditto.
2773 (round_scalarcz): Ditto.
2775 2021-09-22 liuhongt <hongtao.liu@intel.com>
2777 * config/i386/avx512fp16intrin.h (_mm512_fcmadd_pch):
2779 (_mm512_mask_fcmadd_pch): Likewise.
2780 (_mm512_mask3_fcmadd_pch): Likewise.
2781 (_mm512_maskz_fcmadd_pch): Likewise.
2782 (_mm512_fmadd_pch): Likewise.
2783 (_mm512_mask_fmadd_pch): Likewise.
2784 (_mm512_mask3_fmadd_pch): Likewise.
2785 (_mm512_maskz_fmadd_pch): Likewise.
2786 (_mm512_fcmadd_round_pch): Likewise.
2787 (_mm512_mask_fcmadd_round_pch): Likewise.
2788 (_mm512_mask3_fcmadd_round_pch): Likewise.
2789 (_mm512_maskz_fcmadd_round_pch): Likewise.
2790 (_mm512_fmadd_round_pch): Likewise.
2791 (_mm512_mask_fmadd_round_pch): Likewise.
2792 (_mm512_mask3_fmadd_round_pch): Likewise.
2793 (_mm512_maskz_fmadd_round_pch): Likewise.
2794 (_mm512_fcmul_pch): Likewise.
2795 (_mm512_mask_fcmul_pch): Likewise.
2796 (_mm512_maskz_fcmul_pch): Likewise.
2797 (_mm512_fmul_pch): Likewise.
2798 (_mm512_mask_fmul_pch): Likewise.
2799 (_mm512_maskz_fmul_pch): Likewise.
2800 (_mm512_fcmul_round_pch): Likewise.
2801 (_mm512_mask_fcmul_round_pch): Likewise.
2802 (_mm512_maskz_fcmul_round_pch): Likewise.
2803 (_mm512_fmul_round_pch): Likewise.
2804 (_mm512_mask_fmul_round_pch): Likewise.
2805 (_mm512_maskz_fmul_round_pch): Likewise.
2806 * config/i386/avx512fp16vlintrin.h (_mm_fmadd_pch):
2808 (_mm_mask_fmadd_pch): Likewise.
2809 (_mm_mask3_fmadd_pch): Likewise.
2810 (_mm_maskz_fmadd_pch): Likewise.
2811 (_mm256_fmadd_pch): Likewise.
2812 (_mm256_mask_fmadd_pch): Likewise.
2813 (_mm256_mask3_fmadd_pch): Likewise.
2814 (_mm256_maskz_fmadd_pch): Likewise.
2815 (_mm_fcmadd_pch): Likewise.
2816 (_mm_mask_fcmadd_pch): Likewise.
2817 (_mm_mask3_fcmadd_pch): Likewise.
2818 (_mm_maskz_fcmadd_pch): Likewise.
2819 (_mm256_fcmadd_pch): Likewise.
2820 (_mm256_mask_fcmadd_pch): Likewise.
2821 (_mm256_mask3_fcmadd_pch): Likewise.
2822 (_mm256_maskz_fcmadd_pch): Likewise.
2823 (_mm_fmul_pch): Likewise.
2824 (_mm_mask_fmul_pch): Likewise.
2825 (_mm_maskz_fmul_pch): Likewise.
2826 (_mm256_fmul_pch): Likewise.
2827 (_mm256_mask_fmul_pch): Likewise.
2828 (_mm256_maskz_fmul_pch): Likewise.
2829 (_mm_fcmul_pch): Likewise.
2830 (_mm_mask_fcmul_pch): Likewise.
2831 (_mm_maskz_fcmul_pch): Likewise.
2832 (_mm256_fcmul_pch): Likewise.
2833 (_mm256_mask_fcmul_pch): Likewise.
2834 (_mm256_maskz_fcmul_pch): Likewise.
2835 * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF_V8HF_V8HF,
2836 V8HF_FTYPE_V16HF_V16HF_V16HF, V16HF_FTYPE_V16HF_V16HF_V16HF_UQI,
2837 V32HF_FTYPE_V32HF_V32HF_V32HF_INT,
2838 V32HF_FTYPE_V32HF_V32HF_V32HF_UHI_INT): Add new builtin types.
2839 * config/i386/i386-builtin.def: Add new builtins.
2840 * config/i386/i386-expand.c: Handle new builtin types.
2841 * config/i386/subst.md (SUBST_CV): New.
2842 (maskc_name): Ditto.
2843 (maskc_operand3): Ditto.
2845 (sdc_maskz_name): Ditto.
2846 (sdc_mask_op4): Ditto.
2847 (sdc_mask_op5): Ditto.
2848 (sdc_mask_mode512bit_condition): Ditto.
2850 (round_maskc_operand3): Ditto.
2851 (round_sdc_mask_operand4): Ditto.
2852 (round_maskc_op3): Ditto.
2853 (round_sdc_mask_op4): Ditto.
2854 (round_saeonly_sdc_mask_operand5): Ditto.
2855 * config/i386/sse.md (unspec): Add complex fma unspecs.
2856 (avx512fmaskcmode): New.
2857 (UNSPEC_COMPLEX_F_C_MA): Ditto.
2858 (UNSPEC_COMPLEX_F_C_MUL): Ditto.
2859 (complexopname): Ditto.
2860 (<avx512>_fmaddc_<mode>_maskz<round_expand_name>): New expander.
2861 (<avx512>_fcmaddc_<mode>_maskz<round_expand_name>): Ditto.
2862 (fma_<complexopname>_<mode><sdc_maskz_name><round_name>): New
2864 (<avx512>_<complexopname>_<mode>_mask<round_name>): Ditto.
2865 (<avx512>_<complexopname>_<mode><maskc_name><round_name>): Ditto.
2867 2021-09-22 Kewen Lin <linkw@linux.ibm.com>
2869 * config/rs6000/rs6000.opt (rs6000-density-pct-threshold,
2870 rs6000-density-size-threshold, rs6000-density-penalty,
2871 rs6000-density-load-pct-threshold,
2872 rs6000-density-load-num-threshold): New parameter.
2873 * config/rs6000/rs6000.c (rs6000_density_test): Adjust with
2874 corresponding parameters.
2876 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
2878 * gimple-range-path.cc (path_range_query::defined_outside_path):
2880 (path_range_query::range_on_path_entry): New.
2881 (path_range_query::internal_range_of_expr): Resolve unknowns
2883 (path_range_query::improve_range_with_equivs): New.
2884 (path_range_query::ssa_range_in_phi): Resolve unknowns with
2886 * gimple-range-path.h (class path_range_query): Add
2887 defined_outside_path, range_on_path_entry, and
2888 improve_range_with_equivs.
2890 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
2892 * gimple-range-path.cc (path_range_query::add_to_imports): New.
2893 (path_range_query::add_copies_to_imports): New.
2894 (path_range_query::precompute_ranges): Call
2895 add_copies_to_imports.
2896 * gimple-range-path.h (class path_range_query): Add prototypes
2897 for add_copies_to_imports and add_to_imports.
2899 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
2901 * gimple-range-path.cc (path_range_query::range_defined_in_block):
2902 Remove useless code.
2904 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
2906 * gimple-range-fold.h (class fur_source): Make oracle protected.
2907 * gimple-range-path.cc (path_range_query::path_range_query): Add
2908 resolve argument. Initialize oracle.
2909 (path_range_query::~path_range_query): Delete oracle.
2910 (path_range_query::range_of_stmt): Adapt to use relations.
2911 (path_range_query::precompute_ranges): Pre-compute relations.
2912 (class jt_fur_source): New
2913 (jt_fur_source::jt_fur_source): New.
2914 (jt_fur_source::register_relation): New.
2915 (jt_fur_source::query_relation): New.
2916 (path_range_query::precompute_relations): New.
2917 (path_range_query::precompute_phi_relations): New.
2918 * gimple-range-path.h (path_range_query): Add resolve argument.
2919 Add oracle, precompute_relations, precompute_phi_relations.
2920 * tree-ssa-threadbackward.c (back_threader::back_threader): Pass
2921 resolve argument to solver.
2923 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
2925 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
2926 Rename postfold_gcond_edges to register_outgoing_edges and
2928 (fold_using_range::postfold_gcond_edges): Rename...
2929 (fur_source::register_outgoing_edges): ...to this.
2930 * gimple-range-fold.h (postfold_gcond_edges): Rename to
2931 register_outgoing_edges and move to fur_source.
2933 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
2935 * gimple-range-fold.cc (fold_using_range::range_of_phi): Check
2936 dom_info_available_p.
2938 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
2940 * gimple-range-cache.cc (non_null_ref::non_null_ref): Use create
2941 and quick_grow_cleared instead of safe_grow_cleared.
2943 2021-09-21 Thomas Schwinge <thomas@codesourcery.com>
2946 * omp-oacc-neuter-broadcast.cc (oacc_do_neutering): Evaluate
2949 2021-09-21 Richard Earnshaw <rearnsha@arm.com>
2951 * configure.ac: Detect when the assembler supports new-style
2952 architecture extensions.
2953 * common/config/arm/arm-common.c (arm_rewrite_mcpu): Return
2954 the full CPU string if the assembler can grok it.
2955 (arm_rewrite_march): Likewise but for the architecture.
2956 * config.in: Regenerate.
2957 * configure: Regenerate.
2959 2021-09-21 Richard Biener <rguenther@suse.de>
2961 PR tree-optimization/102421
2962 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Copy and
2963 adjust alignment info.
2965 2021-09-21 Kewen Lin <linkw@linux.ibm.com>
2967 * ipa-fnsummary.c (ipa_fn_summary_write): Remove inconsistent
2968 bitfield stream out.
2970 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
2972 * gimple-range-fold.cc (fold_using_range::range_of_phi): Ignore
2973 undefined edges, apply an equivalence if appropriate.
2974 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Return
2975 UNDEFINED if EDGE_EXECUTABLE is not set.
2976 * gimple-range.cc (gimple_ranger::gimple_ranger): Set all edges
2977 as EXECUTABLE upon startup.
2978 (gimple_ranger::range_on_edge): Return UNDEFINED for edges without
2979 EDGE_EXECUTABLE set.
2980 * vr-values.c (set_and_propagate_unexecutable): New.
2981 (simplify_using_ranges::fold_cond): Call set_and_propagate.
2982 (simplify_using_ranges::simplify_switch_using_ranges): Ditto.
2983 * vr-values.h: Add prototype.
2985 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
2987 * value-relation.cc (equiv_oracle::register_initial_def): New.
2988 (equiv_oracle::register_relation): Call register_initial_def.
2989 (equiv_oracle::add_equiv_to_block): New. Split register_relation.
2990 (relation_oracle::register_stmt): Check def block of PHI arguments.
2991 * value-relation.h (equiv_oracle): Add new prototypes.
2993 2021-09-20 Matthias Kretz <m.kretz@gsi.de>
2995 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
2996 Define __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
2997 __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
2998 __ROUNDING_MATH__ according to their corresponding flags.
2999 * doc/cpp.texi: Document __RECIPROCAL_MATH__,
3000 __NO_SIGNED_ZEROS__, __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__,
3001 and __ROUNDING_MATH__.
3003 2021-09-20 Richard Biener <rguenther@suse.de>
3005 * tree-vect-stmts.c (vectorizable_load): Use the vectype
3008 2021-09-20 Richard Biener <rguenther@suse.de>
3010 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
3011 Do not compute alignment of the vectorized access here.
3013 2021-09-20 Richard Biener <rguenther@suse.de>
3015 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3016 Store -1 for runtime alias peeling iterations.
3018 2021-09-20 Richard Biener <rguenther@suse.de>
3020 * config.gcc: Obsolete hppa[12]*-*-hpux10* and hppa[12]*-*-hpux11*.
3022 2021-09-20 Thomas Schwinge <thomas@codesourcery.com>
3024 * input.c (string_concat_db::record_string_concatenation)
3025 (string_concat_db::get_string_concatenation): Skip for
3026 'RESERVED_LOCATION_P'.
3028 2021-09-20 Richard Biener <rguenther@suse.de>
3030 PR tree-optimization/65206
3031 * tree-data-ref.h (struct data_reference): Add alt_indices,
3033 * tree-data-ref.c (free_data_ref): Release alt_indices.
3034 (dr_analyze_indices): Work on struct indices and get DR_REF as tree.
3035 (create_data_ref): Adjust.
3036 (initialize_data_dependence_relation): Split into head
3037 and tail. When the base objects fail to match up try
3038 again with pointer-based analysis of indices.
3039 * tree-vectorizer.c (vec_info_shared::check_datarefs): Do
3040 not compare the lazily computed alternate set of indices.
3042 2021-09-20 Iain Sandoe <iain@sandoe.co.uk>
3044 * gcc.c: Test for execute OK when we find the
3045 programs for assembler linker and dsymutil and those
3046 were specified at configure-time.
3048 2021-09-19 Martin Sebor <msebor@redhat.com>
3050 PR middle-end/102403
3051 * gimple-predicate-analysis.cc (predicate::init_from_control_deps):
3052 Correct a function pre/postcondition.
3054 2021-09-19 Martin Sebor <msebor@redhat.com>
3056 PR middle-end/102243
3057 * tree-ssa-strlen.c (get_range): Handle null cfun.
3059 2021-09-19 Iain Sandoe <iain@sandoe.co.uk>
3061 * config/darwin.h (LINK_COMMAND_SPEC_A): Use Darwin10
3062 unwinder shim as a convenience library.
3064 2021-09-19 Andrew Pinski <apinski@marvell.com>
3066 * doc/install.texi: Add note about
3067 binutils 2.35 is required for LTO usage.
3069 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
3071 * tree-ssa-threadbackward.c
3072 (back_threader_registry::register_path): Use push_edge.
3073 * tree-ssa-threadedge.c
3074 (jump_threader::thread_around_empty_blocks): Same.
3075 (jump_threader::thread_through_normal_block): Same.
3076 (jump_threader::thread_across_edge): Same. Also, use auto_bitmap.
3078 * tree-ssa-threadupdate.c
3079 (jt_path_registry::allocate_thread_edge): Remove.
3080 (jt_path_registry::push_edge): New.
3081 (dump_jump_thread_path): Make static.
3082 * tree-ssa-threadupdate.h (allocate_thread_edge): Remove.
3085 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
3087 * gimple-range-path.cc (path_range_query::path_range_query): Add
3089 (path_range_query::dump): Remove extern declaration of dump_ranger.
3090 * gimple-range-trace.cc (dump_ranger): Add DEBUG_FUNCTION marker.
3091 * gimple-range-trace.h (dump_ranger): Add prototype.
3093 2021-09-19 John Ericson <git@JohnEricson.me>
3095 * gcc.c (find_a_program): New function, factored out of...
3096 (find_a_file): Here.
3097 (execute): Use find_a_program when looking for programs rather
3100 2021-09-19 Matwey V. Kornilov <matwey.kornilov@gmail.com>
3102 * config/avr/avr-mcus.def: Add atmega324pb.
3103 * doc/avr-mmcu.texi: Corresponding changes.
3105 2021-09-19 Roger Sayle <roger@nextmovesoftware.com>
3108 * match.pd (cmp @0 REAL_CST@1): When @0 is also REAL_CST, apply
3109 the same transformations as to @1. For comparisons against NaN,
3110 don't check HONOR_SNANS but confirm that neither operand is a
3113 2021-09-19 Benjamin Peterson <benjamin@locrian.net>
3115 * attribs.c (make_unique_name): Delete.
3116 * attribs.h (make_unique_name): Delete.
3118 2021-09-19 Andrew Pinski <apinski@marvell.com>
3120 * lra-constraints.c (check_and_process_move): Assert
3121 that dclass and sclass are greater than or equal to NO_REGS.
3123 2021-09-18 Jakub Jelinek <jakub@redhat.com>
3125 * tree.h (OMP_CLAUSE_ORDER_UNCONSTRAINED): Define.
3126 * tree-pretty-print.c (dump_omp_clause): Print unconstrained:
3127 for OMP_CLAUSE_ORDER_UNCONSTRAINED.
3129 2021-09-18 liuhongt <hongtao.liu@intel.com>
3131 * config/i386/i386-features.c (remove_partial_avx_dependency):
3132 Restrict TARGET_USE_VECTOR_FP_CONVERTS and
3133 TARGET_USE_VECTOR_CONVERTS to conversion instructions only.
3135 2021-09-18 Jakub Jelinek <jakub@redhat.com>
3137 * gimplify.c (omp_default_clause): For C/C++ default({,first}private),
3138 if file/namespace scope variable doesn't have predetermined sharing,
3139 treat it as if there was default(none).
3141 2021-09-18 liuhongt <hongtao.liu@intel.com>
3143 * config/i386/avx512fp16intrin.h (_mm_fmadd_sh):
3145 (_mm_mask_fmadd_sh): Likewise.
3146 (_mm_mask3_fmadd_sh): Likewise.
3147 (_mm_maskz_fmadd_sh): Likewise.
3148 (_mm_fmadd_round_sh): Likewise.
3149 (_mm_mask_fmadd_round_sh): Likewise.
3150 (_mm_mask3_fmadd_round_sh): Likewise.
3151 (_mm_maskz_fmadd_round_sh): Likewise.
3152 (_mm_fnmadd_sh): Likewise.
3153 (_mm_mask_fnmadd_sh): Likewise.
3154 (_mm_mask3_fnmadd_sh): Likewise.
3155 (_mm_maskz_fnmadd_sh): Likewise.
3156 (_mm_fnmadd_round_sh): Likewise.
3157 (_mm_mask_fnmadd_round_sh): Likewise.
3158 (_mm_mask3_fnmadd_round_sh): Likewise.
3159 (_mm_maskz_fnmadd_round_sh): Likewise.
3160 (_mm_fmsub_sh): Likewise.
3161 (_mm_mask_fmsub_sh): Likewise.
3162 (_mm_mask3_fmsub_sh): Likewise.
3163 (_mm_maskz_fmsub_sh): Likewise.
3164 (_mm_fmsub_round_sh): Likewise.
3165 (_mm_mask_fmsub_round_sh): Likewise.
3166 (_mm_mask3_fmsub_round_sh): Likewise.
3167 (_mm_maskz_fmsub_round_sh): Likewise.
3168 (_mm_fnmsub_sh): Likewise.
3169 (_mm_mask_fnmsub_sh): Likewise.
3170 (_mm_mask3_fnmsub_sh): Likewise.
3171 (_mm_maskz_fnmsub_sh): Likewise.
3172 (_mm_fnmsub_round_sh): Likewise.
3173 (_mm_mask_fnmsub_round_sh): Likewise.
3174 (_mm_mask3_fnmsub_round_sh): Likewise.
3175 (_mm_maskz_fnmsub_round_sh): Likewise.
3176 * config/i386/i386-builtin-types.def
3177 (V8HF_FTYPE_V8HF_V8HF_V8HF_UQI_INT): New builtin type.
3178 * config/i386/i386-builtin.def: Add new builtins.
3179 * config/i386/i386-expand.c: Handle new builtin type.
3180 * config/i386/sse.md (fmai_vmfmadd_<mode><round_name>):
3181 Ajdust to support FP16.
3182 (fmai_vmfmsub_<mode><round_name>): Ditto.
3183 (fmai_vmfnmadd_<mode><round_name>): Ditto.
3184 (fmai_vmfnmsub_<mode><round_name>): Ditto.
3185 (*fmai_fmadd_<mode>): Ditto.
3186 (*fmai_fmsub_<mode>): Ditto.
3187 (*fmai_fnmadd_<mode><round_name>): Ditto.
3188 (*fmai_fnmsub_<mode><round_name>): Ditto.
3189 (avx512f_vmfmadd_<mode>_mask<round_name>): Ditto.
3190 (avx512f_vmfmadd_<mode>_mask3<round_name>): Ditto.
3191 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): Ditto.
3192 (avx512f_vmfmadd_<mode>_maskz_1<round_name>): Ditto.
3193 (*avx512f_vmfmsub_<mode>_mask<round_name>): Ditto.
3194 (avx512f_vmfmsub_<mode>_mask3<round_name>): Ditto.
3195 (*avx512f_vmfmsub_<mode>_maskz_1<round_name>): Ditto.
3196 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
3197 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): Ditto.
3198 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
3199 (*avx512f_vmfnmadd_<mode>_mask<round_name>): Renamed to ...
3200 (avx512f_vmfnmadd_<mode>_mask<round_name>) ... this, and
3201 adjust to support FP16.
3202 (avx512f_vmfnmadd_<mode>_mask3<round_name>): Ditto.
3203 (avx512f_vmfnmadd_<mode>_maskz_1<round_name>): Ditto.
3204 (avx512f_vmfnmadd_<mode>_maskz<round_expand_name>): New
3207 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
3209 * config/i386/sse.md (avx512fmaskmodelower): Extend to support
3211 (maskload<mode><avx512fmaskmodelower>): Ditto.
3212 (maskstore<mode><avx512fmaskmodelower>): Ditto.
3214 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
3216 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
3218 (ix86_expand_copysign): Ditto.
3219 (ix86_expand_xorsign): Ditto.
3220 * config/i386/i386.c (ix86_build_const_vector): Handle HF vector
3222 (ix86_build_signbit_mask): Ditto.
3223 (ix86_can_change_mode_class): Ditto.
3224 * config/i386/i386.md
3225 (SSEMODEF): Add HFmode.
3226 (ssevecmodef): Ditto.
3227 (<code>hf2): New define_expand.
3228 (*<code>hf2_1): New define_insn_and_split.
3229 (copysign<mode>): Extend to support HFmode under AVX512FP16.
3230 (xorsign<mode>): Ditto.
3231 * config/i386/sse.md (VFB): New mode iterator.
3232 (VFB_128_256): Ditto.
3234 (sseintvecmode2): Support HF vector mode.
3235 (<code><mode>2): Use new mode iterator.
3236 (*<code><mode>2): Ditto.
3237 (copysign<mode>3): Ditto.
3238 (xorsign<mode>3): Ditto.
3239 (<code><mode>3<mask_name>): Ditto.
3240 (<code><mode>3<mask_name>): Ditto.
3241 (<sse>_andnot<mode>3<mask_name>): Adjust for HF vector mode.
3242 (<sse>_andnot<mode>3<mask_name>): Ditto.
3243 (*<code><mode>3<mask_name>): Ditto.
3244 (*<code><mode>3<mask_name>): Ditto.
3246 2021-09-18 liuhongt <hongtao.liu@intel.com>
3248 * config/i386/avx512fp16intrin.h (_mm512_mask_fmadd_ph):
3250 (_mm512_mask3_fmadd_ph): Likewise.
3251 (_mm512_maskz_fmadd_ph): Likewise.
3252 (_mm512_fmadd_round_ph): Likewise.
3253 (_mm512_mask_fmadd_round_ph): Likewise.
3254 (_mm512_mask3_fmadd_round_ph): Likewise.
3255 (_mm512_maskz_fmadd_round_ph): Likewise.
3256 (_mm512_fnmadd_ph): Likewise.
3257 (_mm512_mask_fnmadd_ph): Likewise.
3258 (_mm512_mask3_fnmadd_ph): Likewise.
3259 (_mm512_maskz_fnmadd_ph): Likewise.
3260 (_mm512_fnmadd_round_ph): Likewise.
3261 (_mm512_mask_fnmadd_round_ph): Likewise.
3262 (_mm512_mask3_fnmadd_round_ph): Likewise.
3263 (_mm512_maskz_fnmadd_round_ph): Likewise.
3264 (_mm512_fmsub_ph): Likewise.
3265 (_mm512_mask_fmsub_ph): Likewise.
3266 (_mm512_mask3_fmsub_ph): Likewise.
3267 (_mm512_maskz_fmsub_ph): Likewise.
3268 (_mm512_fmsub_round_ph): Likewise.
3269 (_mm512_mask_fmsub_round_ph): Likewise.
3270 (_mm512_mask3_fmsub_round_ph): Likewise.
3271 (_mm512_maskz_fmsub_round_ph): Likewise.
3272 (_mm512_fnmsub_ph): Likewise.
3273 (_mm512_mask_fnmsub_ph): Likewise.
3274 (_mm512_mask3_fnmsub_ph): Likewise.
3275 (_mm512_maskz_fnmsub_ph): Likewise.
3276 (_mm512_fnmsub_round_ph): Likewise.
3277 (_mm512_mask_fnmsub_round_ph): Likewise.
3278 (_mm512_mask3_fnmsub_round_ph): Likewise.
3279 (_mm512_maskz_fnmsub_round_ph): Likewise.
3280 * config/i386/avx512fp16vlintrin.h (_mm256_fmadd_ph):
3282 (_mm256_mask_fmadd_ph): Likewise.
3283 (_mm256_mask3_fmadd_ph): Likewise.
3284 (_mm256_maskz_fmadd_ph): Likewise.
3285 (_mm_fmadd_ph): Likewise.
3286 (_mm_mask_fmadd_ph): Likewise.
3287 (_mm_mask3_fmadd_ph): Likewise.
3288 (_mm_maskz_fmadd_ph): Likewise.
3289 (_mm256_fnmadd_ph): Likewise.
3290 (_mm256_mask_fnmadd_ph): Likewise.
3291 (_mm256_mask3_fnmadd_ph): Likewise.
3292 (_mm256_maskz_fnmadd_ph): Likewise.
3293 (_mm_fnmadd_ph): Likewise.
3294 (_mm_mask_fnmadd_ph): Likewise.
3295 (_mm_mask3_fnmadd_ph): Likewise.
3296 (_mm_maskz_fnmadd_ph): Likewise.
3297 (_mm256_fmsub_ph): Likewise.
3298 (_mm256_mask_fmsub_ph): Likewise.
3299 (_mm256_mask3_fmsub_ph): Likewise.
3300 (_mm256_maskz_fmsub_ph): Likewise.
3301 (_mm_fmsub_ph): Likewise.
3302 (_mm_mask_fmsub_ph): Likewise.
3303 (_mm_mask3_fmsub_ph): Likewise.
3304 (_mm_maskz_fmsub_ph): Likewise.
3305 (_mm256_fnmsub_ph): Likewise.
3306 (_mm256_mask_fnmsub_ph): Likewise.
3307 (_mm256_mask3_fnmsub_ph): Likewise.
3308 (_mm256_maskz_fnmsub_ph): Likewise.
3309 (_mm_fnmsub_ph): Likewise.
3310 (_mm_mask_fnmsub_ph): Likewise.
3311 (_mm_mask3_fnmsub_ph): Likewise.
3312 (_mm_maskz_fnmsub_ph): Likewise.
3313 * config/i386/i386-builtin.def: Add corresponding new builtins.
3314 * config/i386/sse.md
3315 (<avx512>_fmadd_<mode>_maskz<round_expand_name>): Adjust to
3316 support HF vector modes.
3317 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
3319 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
3320 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
3321 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
3322 (<avx512>_fmadd_<mode>_mask<round_name>): Ditto.
3323 (<avx512>_fmadd_<mode>_mask3<round_name>): Ditto.
3324 (<avx512>_fmsub_<mode>_maskz<round_expand_name>): Ditto.
3325 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
3327 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
3328 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
3329 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
3330 (<avx512>_fmsub_<mode>_mask<round_name>): Ditto.
3331 (<avx512>_fmsub_<mode>_mask3<round_name>): Ditto.
3332 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
3334 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
3335 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
3336 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
3337 (<avx512>_fnmadd_<mode>_mask<round_name>): Ditto.
3338 (<avx512>_fnmadd_<mode>_mask3<round_name>): Ditto.
3339 (<avx512>_fnmsub_<mode>_maskz<round_expand_name>): Ditto.
3340 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
3342 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
3343 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
3344 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
3345 (<avx512>_fnmsub_<mode>_mask<round_name>): Ditto.
3346 (<avx512>_fnmsub_<mode>_mask3<round_name>): Ditto.
3348 2021-09-18 liuhongt <hongtao.liu@intel.com>
3350 * config/i386/avx512fp16intrin.h (_mm512_fmaddsub_ph):
3352 (_mm512_mask_fmaddsub_ph): Likewise.
3353 (_mm512_mask3_fmaddsub_ph): Likewise.
3354 (_mm512_maskz_fmaddsub_ph): Likewise.
3355 (_mm512_fmaddsub_round_ph): Likewise.
3356 (_mm512_mask_fmaddsub_round_ph): Likewise.
3357 (_mm512_mask3_fmaddsub_round_ph): Likewise.
3358 (_mm512_maskz_fmaddsub_round_ph): Likewise.
3359 (_mm512_mask_fmsubadd_ph): Likewise.
3360 (_mm512_mask3_fmsubadd_ph): Likewise.
3361 (_mm512_maskz_fmsubadd_ph): Likewise.
3362 (_mm512_fmsubadd_round_ph): Likewise.
3363 (_mm512_mask_fmsubadd_round_ph): Likewise.
3364 (_mm512_mask3_fmsubadd_round_ph): Likewise.
3365 (_mm512_maskz_fmsubadd_round_ph): Likewise.
3366 * config/i386/avx512fp16vlintrin.h (_mm256_fmaddsub_ph):
3368 (_mm256_mask_fmaddsub_ph): Likewise.
3369 (_mm256_mask3_fmaddsub_ph): Likewise.
3370 (_mm256_maskz_fmaddsub_ph): Likewise.
3371 (_mm_fmaddsub_ph): Likewise.
3372 (_mm_mask_fmaddsub_ph): Likewise.
3373 (_mm_mask3_fmaddsub_ph): Likewise.
3374 (_mm_maskz_fmaddsub_ph): Likewise.
3375 (_mm256_fmsubadd_ph): Likewise.
3376 (_mm256_mask_fmsubadd_ph): Likewise.
3377 (_mm256_mask3_fmsubadd_ph): Likewise.
3378 (_mm256_maskz_fmsubadd_ph): Likewise.
3379 (_mm_fmsubadd_ph): Likewise.
3380 (_mm_mask_fmsubadd_ph): Likewise.
3381 (_mm_mask3_fmsubadd_ph): Likewise.
3382 (_mm_maskz_fmsubadd_ph): Likewise.
3383 * config/i386/i386-builtin.def: Add corresponding new builtins.
3384 * config/i386/sse.md (VFH_SF_AVX512VL): New mode iterator.
3385 * (<avx512>_fmsubadd_<mode>_maskz<round_expand_name>): New expander.
3386 * (<avx512>_fmaddsub_<mode>_maskz<round_expand_name>): Use
3388 * (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
3390 * (<avx512>_fmaddsub_<mode>_mask<round_name>): Ditto.
3391 * (<avx512>_fmaddsub_<mode>_mask3<round_name>): Ditto.
3392 * (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
3394 * (<avx512>_fmsubadd_<mode>_mask<round_name>): Ditto.
3395 * (<avx512>_fmsubadd_<mode>_mask3<round_name>): Ditto.
3397 2021-09-18 liuhongt <hongtao.liu@intel.com>
3400 * config/i386/i386.c (ix86_print_operand): Handle
3401 V8HF/V16HF/V32HFmode.
3402 * config/i386/i386.h (VALID_BCST_MODE_P): Add HFmode.
3403 * config/i386/sse.md (avx512bcst): Remove.
3405 2021-09-17 Martin Sebor <msebor@redhat.com>
3407 * Makefile.in (OBJS): Add gimple-predicate-analysis.o.
3408 * tree-ssa-uninit.c (max_phi_args): Move to gimple-predicate-analysis.
3409 (MASK_SET_BIT, MASK_TEST_BIT, MASK_EMPTY): Same.
3410 (check_defs): Add comment.
3411 (can_skip_redundant_opnd): Update comment.
3412 (compute_uninit_opnds_pos): Adjust to namespace change.
3413 (find_pdom): Move to gimple-predicate-analysis.cc.
3415 (struct uninit_undef_val_t): New.
3416 (is_non_loop_exit_postdominating): Move to gimple-predicate-analysis.cc.
3417 (find_control_equiv_block): Same.
3418 (MAX_NUM_CHAINS, MAX_CHAIN_LEN, MAX_POSTDOM_CHECK): Same.
3419 (MAX_SWITCH_CASES): Same.
3420 (compute_control_dep_chain): Same.
3421 (find_uninit_use): Use predicate analyzer.
3422 (struct pred_info): Move to gimple-predicate-analysis.
3423 (convert_control_dep_chain_into_preds): Same.
3424 (find_predicates): Same.
3425 (collect_phi_def_edges): Same.
3426 (warn_uninitialized_phi): Use predicate analyzer.
3427 (find_def_preds): Move to gimple-predicate-analysis.
3428 (dump_pred_info): Same.
3429 (dump_pred_chain): Same.
3430 (dump_predicates): Same.
3431 (destroy_predicate_vecs): Remove.
3432 (execute_late_warn_uninitialized): New.
3433 (get_cmp_code): Move to gimple-predicate-analysis.
3434 (is_value_included_in): Same.
3435 (value_sat_pred_p): Same.
3436 (find_matching_predicate_in_rest_chains): Same.
3437 (is_use_properly_guarded): Same.
3438 (prune_uninit_phi_opnds): Same.
3439 (find_var_cmp_const): Same.
3440 (use_pred_not_overlap_with_undef_path_pred): Same.
3441 (pred_equal_p): Same.
3442 (is_neq_relop_p): Same.
3443 (is_neq_zero_form_p): Same.
3444 (pred_expr_equal_p): Same.
3445 (is_pred_expr_subset_of): Same.
3446 (is_pred_chain_subset_of): Same.
3447 (is_included_in): Same.
3448 (is_superset_of): Same.
3450 (simplify_pred): Same.
3451 (simplify_preds_2): Same.
3452 (simplify_preds_3): Same.
3453 (simplify_preds_4): Same.
3454 (simplify_preds): Same.
3456 (push_to_worklist): Same.
3457 (get_pred_info_from_cmp): Same.
3458 (is_degenerated_phi): Same.
3459 (normalize_one_pred_1): Same.
3460 (normalize_one_pred): Same.
3461 (normalize_one_pred_chain): Same.
3462 (normalize_preds): Same.
3463 (can_one_predicate_be_invalidated_p): Same.
3464 (can_chain_union_be_invalidated_p): Same.
3465 (uninit_uses_cannot_happen): Same.
3466 (pass_late_warn_uninitialized::execute): Define.
3467 * gimple-predicate-analysis.cc: New file.
3468 * gimple-predicate-analysis.h: New file.
3470 2021-09-17 Julian Brown <julian@codesourcery.com>
3472 * config/gcn/gcn.c (gimple.h): Include.
3473 (gcn_fork_join): Emit barrier for worker-level joins.
3474 * omp-oacc-neuter-broadcast.cc (find_local_vars_to_propagate): Add
3475 writes_gang_private bitmap parameter. Set bit for blocks
3476 containing gang-private variable writes.
3477 (worker_single_simple): Don't emit barrier after predicated block.
3478 (worker_single_copy): Don't emit barrier if we're not broadcasting
3479 anything and the block contains no gang-private writes.
3480 (neuter_worker_single): Don't predicate blocks that only contain
3481 NOPs or internal marker functions. Pass has_gang_private_write
3482 argument to worker_single_copy.
3483 (oacc_do_neutering): Add writes_gang_private bitmap handling.
3485 2021-09-17 Julian Brown <julian@codesourcery.com>
3487 * config/gcn/gcn-protos.h
3488 (gcn_goacc_create_worker_broadcast_record): Update prototype.
3489 * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Use
3490 preallocated block of LDS memory. Do not cache/share decls for
3491 reduction temporaries between invocations.
3492 (gcn_goacc_reduction_teardown): Unshare VAR on second use.
3493 (gcn_goacc_create_worker_broadcast_record): Add OFFSET parameter
3494 and return temporary LDS space at that offset. Return pointer in
3496 * config/gcn/gcn.c (acc_lds_size, gang_private_hwm, lds_allocs):
3498 (ACC_LDS_SIZE): Define as acc_lds_size.
3499 (gcn_init_machine_status): Don't initialise lds_allocated,
3500 lds_allocs, reduc_decls fields of machine function struct.
3501 (gcn_option_override): Handle default size for gang-private
3502 variables and -mgang-private-size option.
3503 (gcn_expand_prologue): Use LDS_SIZE instead of LDS_SIZE-1 when
3504 initialising M0_REG.
3505 (gcn_shared_mem_layout): New function.
3506 (gcn_print_lds_decl): Update comment. Use global lds_allocs map and
3507 gang_private_hwm variable.
3508 (TARGET_GOACC_SHARED_MEM_LAYOUT): Define target hook.
3509 * config/gcn/gcn.h (machine_function): Remove lds_allocated,
3510 lds_allocs, reduc_decls. Add reduction_base, reduction_limit.
3511 * config/gcn/gcn.opt (gang_private_size_opt): New global.
3512 (mgang-private-size=): New option.
3513 * doc/tm.texi.in (TARGET_GOACC_SHARED_MEM_LAYOUT): Place
3515 * doc/tm.texi: Regenerate.
3516 * omp-oacc-neuter-broadcast.cc (targhooks.h, diagnostic-core.h):
3518 (build_sender_ref): Handle sender_decl being pointer.
3519 (worker_single_copy): Add PLACEMENT and ISOLATE_BROADCASTS
3520 parameters. Pass placement argument to
3521 create_worker_broadcast_record hook invocations. Handle
3522 sender_decl being pointer and isolate_broadcasts inserting extra
3524 (blk_offset_map_t): Add typedef.
3525 (neuter_worker_single): Add BLK_OFFSET_MAP parameter. Pass
3526 preallocated range to worker_single_copy call.
3527 (dfs_broadcast_reachable_1): New function.
3528 (idx_decl_pair_t, used_range_vec_t): New typedefs.
3529 (sort_size_descending): New function.
3530 (addr_range): New class.
3531 (splay_tree_compare_addr_range, splay_tree_free_key)
3532 (first_fit_range, merge_ranges_1, merge_ranges): New functions.
3533 (execute_omp_oacc_neuter_broadcast): Rename to...
3534 (oacc_do_neutering): ... this. Add BOUNDS_LO, BOUNDS_HI
3535 parameters. Arrange layout of shared memory for broadcast
3537 (execute_omp_oacc_neuter_broadcast): New function.
3538 (pass_omp_oacc_neuter_broadcast::gate): Remove num_workers==1
3539 handling from here. Enable pass for all OpenACC routines in order
3540 to call shared memory-layout hook.
3541 * target.def (create_worker_broadcast_record): Add OFFSET
3543 (shared_mem_layout): New hook.
3545 2021-09-17 Julian Brown <julian@codesourcery.com>
3546 Thomas Schwinge <thomas@codesourcery.com>
3548 * omp-oacc-neuter-broadcast.cc
3549 (pass_omp_oacc_neuter_broadcast::gate): Disable if num_workers is
3551 (execute_omp_oacc_neuter_broadcast): Adjust.
3553 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
3555 * value-relation.cc (class equiv_chain): Move to header file.
3556 (path_oracle::path_oracle): New.
3557 (path_oracle::~path_oracle): New.
3558 (path_oracle::register_relation): New.
3559 (path_oracle::query_relation): New.
3560 (path_oracle::reset_path): New.
3561 (path_oracle::dump): New.
3562 * value-relation.h (class equiv_chain): Move to here.
3563 (class path_oracle): New.
3565 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
3567 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a DOM
3569 * gimple-range-fold.cc (fur_depend::register_relation): Use
3570 register_stmt/edge routines.
3571 * value-relation.cc (equiv_chain::find): Relocate from equiv_oracle.
3572 (equiv_oracle::equiv_oracle): Create self equivalence cache.
3573 (equiv_oracle::~equiv_oracle): Release same.
3574 (equiv_oracle::equiv_set): Return entry from self equiv cache if there
3575 are no equivalences.
3576 (equiv_oracle::find_equiv_block): Move list find to equiv_chain.
3577 (equiv_oracle::register_relation): Rename from register_equiv.
3578 (relation_chain_head::find_relation): Relocate from dom_oracle.
3579 (relation_oracle::register_stmt): New.
3580 (relation_oracle::register_edge): New.
3581 (dom_oracle::*): Rename from relation_oracle.
3582 (dom_oracle::register_relation): Adjust to call equiv_oracle.
3583 (dom_oracle::set_one_relation): Split from register_relation.
3584 (dom_oracle::register_transitives): Consolidate 2 methods.
3585 (dom_oracle::find_relation_block): Move core to relation_chain.
3586 (dom_oracle::query_relation): Rename from find_relation_dom and adjust.
3587 * value-relation.h (class relation_oracle): New pure virtual base.
3588 (class equiv_oracle): Inherit from relation_oracle and adjust.
3589 (class dom_oracle): Rename from old relation_oracle and adjust.
3591 2021-09-17 Martin Sebor <msebor@redhat.com>
3593 PR middle-end/102200
3594 * pointer-query.cc (access_ref::inform_access): Handle MIN/MAX_EXPR.
3595 (handle_min_max_size): Change argument. Store original SSA_NAME for
3596 operands to potentially distinct (sub)objects.
3597 (compute_objsize_r): Adjust call to the above.
3599 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
3601 * config/rs6000/rs6000.c (rs6000-builtins.h): New include.
3602 (rs6000_new_builtin_vectorized_function): New function.
3603 (rs6000_new_builtin_md_vectorized_function): Likewise.
3604 (rs6000_builtin_vectorized_function): Call
3605 rs6000_new_builtin_vectorized_function.
3606 (rs6000_builtin_md_vectorized_function): Call
3607 rs6000_new_builtin_md_vectorized_function.
3609 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
3611 * config/rs6000/rs6000-builtin-new.def (ASSEMBLE_ACC): Add mmaint flag.
3612 (ASSEMBLE_PAIR): Likewise.
3613 (BUILD_ACC): Likewise.
3614 (DISASSEMBLE_ACC): Likewise.
3615 (DISASSEMBLE_PAIR): Likewise.
3616 (PMXVBF16GER2): Likewise.
3617 (PMXVBF16GER2NN): Likewise.
3618 (PMXVBF16GER2NP): Likewise.
3619 (PMXVBF16GER2PN): Likewise.
3620 (PMXVBF16GER2PP): Likewise.
3621 (PMXVF16GER2): Likewise.
3622 (PMXVF16GER2NN): Likewise.
3623 (PMXVF16GER2NP): Likewise.
3624 (PMXVF16GER2PN): Likewise.
3625 (PMXVF16GER2PP): Likewise.
3626 (PMXVF32GER): Likewise.
3627 (PMXVF32GERNN): Likewise.
3628 (PMXVF32GERNP): Likewise.
3629 (PMXVF32GERPN): Likewise.
3630 (PMXVF32GERPP): Likewise.
3631 (PMXVF64GER): Likewise.
3632 (PMXVF64GERNN): Likewise.
3633 (PMXVF64GERNP): Likewise.
3634 (PMXVF64GERPN): Likewise.
3635 (PMXVF64GERPP): Likewise.
3636 (PMXVI16GER2): Likewise.
3637 (PMXVI16GER2PP): Likewise.
3638 (PMXVI16GER2S): Likewise.
3639 (PMXVI16GER2SPP): Likewise.
3640 (PMXVI4GER8): Likewise.
3641 (PMXVI4GER8PP): Likewise.
3642 (PMXVI8GER4): Likewise.
3643 (PMXVI8GER4PP): Likewise.
3644 (PMXVI8GER4SPP): Likewise.
3645 (XVBF16GER2): Likewise.
3646 (XVBF16GER2NN): Likewise.
3647 (XVBF16GER2NP): Likewise.
3648 (XVBF16GER2PN): Likewise.
3649 (XVBF16GER2PP): Likewise.
3650 (XVF16GER2): Likewise.
3651 (XVF16GER2NN): Likewise.
3652 (XVF16GER2NP): Likewise.
3653 (XVF16GER2PN): Likewise.
3654 (XVF16GER2PP): Likewise.
3655 (XVF32GER): Likewise.
3656 (XVF32GERNN): Likewise.
3657 (XVF32GERNP): Likewise.
3658 (XVF32GERPN): Likewise.
3659 (XVF32GERPP): Likewise.
3660 (XVF64GER): Likewise.
3661 (XVF64GERNN): Likewise.
3662 (XVF64GERNP): Likewise.
3663 (XVF64GERPN): Likewise.
3664 (XVF64GERPP): Likewise.
3665 (XVI16GER2): Likewise.
3666 (XVI16GER2PP): Likewise.
3667 (XVI16GER2S): Likewise.
3668 (XVI16GER2SPP): Likewise.
3669 (XVI4GER8): Likewise.
3670 (XVI4GER8PP): Likewise.
3671 (XVI8GER4): Likewise.
3672 (XVI8GER4PP): Likewise.
3673 (XVI8GER4SPP): Likewise.
3674 (XXMFACC): Likewise.
3675 (XXMTACC): Likewise.
3676 (XXSETACCZ): Likewise.
3677 (ASSEMBLE_PAIR_V): Likewise.
3678 (BUILD_PAIR): Likewise.
3679 (DISASSEMBLE_PAIR_V): Likewise.
3682 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_mma_builtin):
3683 Handle RS6000_BIF_LXVP and RS6000_BIF_STXVP.
3684 * config/rs6000/rs6000-gen-builtins.c (attrinfo): Add ismmaint.
3685 (parse_bif_attrs): Handle ismmaint.
3686 (write_decls): Add bif_mmaint_bit and bif_is_mmaint.
3687 (write_bif_static_init): Handle ismmaint.
3689 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
3691 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin): New
3693 (rs6000_gimple_fold_builtin): Call rs6000_gimple_fold_new_builtin.
3694 (rs6000_new_builtin_valid_without_lhs): New function.
3695 (rs6000_gimple_fold_new_mma_builtin): Likewise.
3696 (rs6000_gimple_fold_new_builtin): Likewise.
3698 2021-09-17 Thomas Schwinge <thomas@codesourcery.com>
3700 * hash-table.h (hash_table<Descriptor, Lazy, Allocator>::expand):
3701 Destruct stale Value objects.
3702 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
3705 2021-09-17 Roger Sayle <roger@nextmovesoftware.com>
3708 * match.pd (shift optimizations): Disable recent sign-changing
3709 optimization for shifts by zero, these will be folded later.
3711 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
3713 * config/rs6000/rs6000-builtin-new.def (__builtin_mffsl): Move from
3714 [power9] to [always].
3716 2021-09-17 Richard Biener <rguenther@suse.de>
3718 * tree-vect-stmts.c (vectorizable_load): Do not frob
3721 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
3723 * config/i386/i386-features.c (remove_partial_avx_dependency):
3724 Also check TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY and
3725 and TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY before generating
3727 * config/i386/i386.h (TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY):
3729 (TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
3730 * config/i386/i386.md (SSE FP to FP splitters): Replace
3731 TARGET_SSE_PARTIAL_REG_DEPENDENCY with
3732 TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY.
3733 (SSE INT to FP splitter): Replace TARGET_SSE_PARTIAL_REG_DEPENDENCY
3734 with TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY.
3735 * config/i386/x86-tune.def
3736 (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): New.
3737 (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
3739 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
3742 * config/i386/i386-features.c (remove_partial_avx_dependency):
3743 Check TARGET_USE_VECTOR_FP_CONVERTS and TARGET_USE_VECTOR_CONVERTS
3744 before generating vxorps.
3746 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
3748 * config/i386/i386-options.c (processor_cost_table): Use
3749 tremont_cost for Tremont.
3750 * config/i386/x86-tune-costs.h (tremont_memcpy): New.
3751 (tremont_memset): Likewise.
3752 (tremont_cost): Likewise.
3753 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
3756 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
3758 * common/config/i386/i386-common.c: Use Haswell scheduling model
3760 * config/i386/i386.c (ix86_sched_init_global): Prepare for Tremont
3762 * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Tremont
3764 (ix86_adjust_cost): Handle Tremont.
3765 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
3767 (X86_TUNE_USE_LEAVE): Likewise.
3768 (X86_TUNE_PUSH_MEMORY): Likewise.
3769 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
3770 (X86_TUNE_USE_CLTD): Likewise.
3771 (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
3772 (X86_TUNE_AVOID_MFENCE): Likewise.
3773 (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
3774 (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
3775 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS): Disable for Tremont.
3776 (X86_TUNE_FOUR_JUMP_LIMIT): Likewise.
3777 (X86_TUNE_OPT_AGU): Likewise.
3778 (X86_TUNE_AVOID_LEA_FOR_ADDR): Likewise.
3779 (X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE): Likewise.
3780 (X86_TUNE_EXPAND_ABS): Likewise.
3781 (X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS): Likewise.
3782 (X86_TUNE_SLOW_PSHUFB): Likewise.
3784 2021-09-17 Eric Botcazou <ebotcazou@adacore.com>
3786 PR rtl-optimization/102306
3787 * combine.c (try_combine): Abort the combination if we are about to
3788 duplicate volatile references.
3790 2021-09-17 liuhongt <hongtao.liu@intel.com>
3792 * config/i386/avx512fp16intrin.h (_mm_undefined_ph):
3794 (_mm256_undefined_ph): Likewise.
3795 (_mm512_undefined_ph): Likewise.
3796 (_mm_cvtsh_h): Likewise.
3797 (_mm256_cvtsh_h): Likewise.
3798 (_mm512_cvtsh_h): Likewise.
3799 (_mm512_castph_ps): Likewise.
3800 (_mm512_castph_pd): Likewise.
3801 (_mm512_castph_si512): Likewise.
3802 (_mm512_castph512_ph128): Likewise.
3803 (_mm512_castph512_ph256): Likewise.
3804 (_mm512_castph128_ph512): Likewise.
3805 (_mm512_castph256_ph512): Likewise.
3806 (_mm512_zextph128_ph512): Likewise.
3807 (_mm512_zextph256_ph512): Likewise.
3808 (_mm512_castps_ph): Likewise.
3809 (_mm512_castpd_ph): Likewise.
3810 (_mm512_castsi512_ph): Likewise.
3811 * config/i386/avx512fp16vlintrin.h (_mm_castph_ps):
3813 (_mm256_castph_ps): Likewise.
3814 (_mm_castph_pd): Likewise.
3815 (_mm256_castph_pd): Likewise.
3816 (_mm_castph_si128): Likewise.
3817 (_mm256_castph_si256): Likewise.
3818 (_mm_castps_ph): Likewise.
3819 (_mm256_castps_ph): Likewise.
3820 (_mm_castpd_ph): Likewise.
3821 (_mm256_castpd_ph): Likewise.
3822 (_mm_castsi128_ph): Likewise.
3823 (_mm256_castsi256_ph): Likewise.
3824 (_mm256_castph256_ph128): Likewise.
3825 (_mm256_castph128_ph256): Likewise.
3826 (_mm256_zextph128_ph256): Likewise.
3828 2021-09-17 liuhongt <hongtao.liu@intel.com>
3830 * config/i386/avx512fp16intrin.h (_mm_cvtsh_ss):
3832 (_mm_mask_cvtsh_ss): Likewise.
3833 (_mm_maskz_cvtsh_ss): Likewise.
3834 (_mm_cvtsh_sd): Likewise.
3835 (_mm_mask_cvtsh_sd): Likewise.
3836 (_mm_maskz_cvtsh_sd): Likewise.
3837 (_mm_cvt_roundsh_ss): Likewise.
3838 (_mm_mask_cvt_roundsh_ss): Likewise.
3839 (_mm_maskz_cvt_roundsh_ss): Likewise.
3840 (_mm_cvt_roundsh_sd): Likewise.
3841 (_mm_mask_cvt_roundsh_sd): Likewise.
3842 (_mm_maskz_cvt_roundsh_sd): Likewise.
3843 (_mm_cvtss_sh): Likewise.
3844 (_mm_mask_cvtss_sh): Likewise.
3845 (_mm_maskz_cvtss_sh): Likewise.
3846 (_mm_cvtsd_sh): Likewise.
3847 (_mm_mask_cvtsd_sh): Likewise.
3848 (_mm_maskz_cvtsd_sh): Likewise.
3849 (_mm_cvt_roundss_sh): Likewise.
3850 (_mm_mask_cvt_roundss_sh): Likewise.
3851 (_mm_maskz_cvt_roundss_sh): Likewise.
3852 (_mm_cvt_roundsd_sh): Likewise.
3853 (_mm_mask_cvt_roundsd_sh): Likewise.
3854 (_mm_maskz_cvt_roundsd_sh): Likewise.
3855 * config/i386/i386-builtin-types.def
3856 (V8HF_FTYPE_V2DF_V8HF_V8HF_UQI_INT,
3857 V8HF_FTYPE_V4SF_V8HF_V8HF_UQI_INT,
3858 V2DF_FTYPE_V8HF_V2DF_V2DF_UQI_INT,
3859 V4SF_FTYPE_V8HF_V4SF_V4SF_UQI_INT): Add new builtin types.
3860 * config/i386/i386-builtin.def: Add corrresponding new builtins.
3861 * config/i386/i386-expand.c: Handle new builtin types.
3862 * config/i386/sse.md (VF48_128): New mode iterator.
3863 (avx512fp16_vcvtsh2<ssescalarmodesuffix><mask_scalar_name><round_saeonly_scalar_name>):
3865 (avx512fp16_vcvt<ssescalarmodesuffix>2sh<mask_scalar_name><round_scalar_name>):
3868 2021-09-17 liuhongt <hongtao.liu@intel.com>
3870 * config/i386/avx512fp16intrin.h (_mm512_cvtph_pd):
3872 (_mm512_mask_cvtph_pd): Likewise.
3873 (_mm512_maskz_cvtph_pd): Likewise.
3874 (_mm512_cvt_roundph_pd): Likewise.
3875 (_mm512_mask_cvt_roundph_pd): Likewise.
3876 (_mm512_maskz_cvt_roundph_pd): Likewise.
3877 (_mm512_cvtxph_ps): Likewise.
3878 (_mm512_mask_cvtxph_ps): Likewise.
3879 (_mm512_maskz_cvtxph_ps): Likewise.
3880 (_mm512_cvtx_roundph_ps): Likewise.
3881 (_mm512_mask_cvtx_roundph_ps): Likewise.
3882 (_mm512_maskz_cvtx_roundph_ps): Likewise.
3883 (_mm512_cvtxps_ph): Likewise.
3884 (_mm512_mask_cvtxps_ph): Likewise.
3885 (_mm512_maskz_cvtxps_ph): Likewise.
3886 (_mm512_cvtx_roundps_ph): Likewise.
3887 (_mm512_mask_cvtx_roundps_ph): Likewise.
3888 (_mm512_maskz_cvtx_roundps_ph): Likewise.
3889 (_mm512_cvtpd_ph): Likewise.
3890 (_mm512_mask_cvtpd_ph): Likewise.
3891 (_mm512_maskz_cvtpd_ph): Likewise.
3892 (_mm512_cvt_roundpd_ph): Likewise.
3893 (_mm512_mask_cvt_roundpd_ph): Likewise.
3894 (_mm512_maskz_cvt_roundpd_ph): Likewise.
3895 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_pd):
3897 (_mm_mask_cvtph_pd): Likewise.
3898 (_mm_maskz_cvtph_pd): Likewise.
3899 (_mm256_cvtph_pd): Likewise.
3900 (_mm256_mask_cvtph_pd): Likewise.
3901 (_mm256_maskz_cvtph_pd): Likewise.
3902 (_mm_cvtxph_ps): Likewise.
3903 (_mm_mask_cvtxph_ps): Likewise.
3904 (_mm_maskz_cvtxph_ps): Likewise.
3905 (_mm256_cvtxph_ps): Likewise.
3906 (_mm256_mask_cvtxph_ps): Likewise.
3907 (_mm256_maskz_cvtxph_ps): Likewise.
3908 (_mm_cvtxps_ph): Likewise.
3909 (_mm_mask_cvtxps_ph): Likewise.
3910 (_mm_maskz_cvtxps_ph): Likewise.
3911 (_mm256_cvtxps_ph): Likewise.
3912 (_mm256_mask_cvtxps_ph): Likewise.
3913 (_mm256_maskz_cvtxps_ph): Likewise.
3914 (_mm_cvtpd_ph): Likewise.
3915 (_mm_mask_cvtpd_ph): Likewise.
3916 (_mm_maskz_cvtpd_ph): Likewise.
3917 (_mm256_cvtpd_ph): Likewise.
3918 (_mm256_mask_cvtpd_ph): Likewise.
3919 (_mm256_maskz_cvtpd_ph): Likewise.
3920 * config/i386/i386-builtin.def: Add corresponding new builtins.
3921 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
3922 * config/i386/i386-expand.c: Handle new builtin types.
3923 * config/i386/sse.md
3924 (VF4_128_8_256): New.
3925 (VF48H_AVX512VL): Ditto.
3926 (ssePHmode): Add HF vector modes.
3927 (castmode): Add new convertable modes.
3930 (avx512fp16_vcvt<castmode>2ph_<mode><mask_name><round_name>): Ditto.
3931 (avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
3932 (*avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
3933 (avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
3934 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
3935 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask_1): Ditto.
3936 (avx512fp16_float_extend_ph<mode>2<mask_name><round_saeonly_name>):
3938 (avx512fp16_float_extend_ph<mode>2<mask_name>): Ditto.
3939 (*avx512fp16_float_extend_ph<mode>2_load<mask_name>): Ditto.
3940 (avx512fp16_float_extend_phv2df2<mask_name>): Ditto.
3941 (*avx512fp16_float_extend_phv2df2_load<mask_name>): Ditto.
3943 2021-09-17 liuhongt <hongtao.liu@intel.com>
3945 * config/i386/avx512fp16intrin.h (_mm_cvttsh_i32):
3947 (_mm_cvttsh_u32): Likewise.
3948 (_mm_cvtt_roundsh_i32): Likewise.
3949 (_mm_cvtt_roundsh_u32): Likewise.
3950 (_mm_cvttsh_i64): Likewise.
3951 (_mm_cvttsh_u64): Likewise.
3952 (_mm_cvtt_roundsh_i64): Likewise.
3953 (_mm_cvtt_roundsh_u64): Likewise.
3954 * config/i386/i386-builtin.def: Add corresponding new builtins.
3955 * config/i386/sse.md
3956 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<round_saeonly_name>):
3959 2021-09-17 liuhongt <hongtao.liu@intel.com>
3961 * config/i386/avx512fp16intrin.h (_mm512_cvttph_epi32):
3963 (_mm512_mask_cvttph_epi32): Likewise.
3964 (_mm512_maskz_cvttph_epi32): Likewise.
3965 (_mm512_cvtt_roundph_epi32): Likewise.
3966 (_mm512_mask_cvtt_roundph_epi32): Likewise.
3967 (_mm512_maskz_cvtt_roundph_epi32): Likewise.
3968 (_mm512_cvttph_epu32): Likewise.
3969 (_mm512_mask_cvttph_epu32): Likewise.
3970 (_mm512_maskz_cvttph_epu32): Likewise.
3971 (_mm512_cvtt_roundph_epu32): Likewise.
3972 (_mm512_mask_cvtt_roundph_epu32): Likewise.
3973 (_mm512_maskz_cvtt_roundph_epu32): Likewise.
3974 (_mm512_cvttph_epi64): Likewise.
3975 (_mm512_mask_cvttph_epi64): Likewise.
3976 (_mm512_maskz_cvttph_epi64): Likewise.
3977 (_mm512_cvtt_roundph_epi64): Likewise.
3978 (_mm512_mask_cvtt_roundph_epi64): Likewise.
3979 (_mm512_maskz_cvtt_roundph_epi64): Likewise.
3980 (_mm512_cvttph_epu64): Likewise.
3981 (_mm512_mask_cvttph_epu64): Likewise.
3982 (_mm512_maskz_cvttph_epu64): Likewise.
3983 (_mm512_cvtt_roundph_epu64): Likewise.
3984 (_mm512_mask_cvtt_roundph_epu64): Likewise.
3985 (_mm512_maskz_cvtt_roundph_epu64): Likewise.
3986 (_mm512_cvttph_epi16): Likewise.
3987 (_mm512_mask_cvttph_epi16): Likewise.
3988 (_mm512_maskz_cvttph_epi16): Likewise.
3989 (_mm512_cvtt_roundph_epi16): Likewise.
3990 (_mm512_mask_cvtt_roundph_epi16): Likewise.
3991 (_mm512_maskz_cvtt_roundph_epi16): Likewise.
3992 (_mm512_cvttph_epu16): Likewise.
3993 (_mm512_mask_cvttph_epu16): Likewise.
3994 (_mm512_maskz_cvttph_epu16): Likewise.
3995 (_mm512_cvtt_roundph_epu16): Likewise.
3996 (_mm512_mask_cvtt_roundph_epu16): Likewise.
3997 (_mm512_maskz_cvtt_roundph_epu16): Likewise.
3998 * config/i386/avx512fp16vlintrin.h (_mm_cvttph_epi32):
4000 (_mm_mask_cvttph_epi32): Likewise.
4001 (_mm_maskz_cvttph_epi32): Likewise.
4002 (_mm256_cvttph_epi32): Likewise.
4003 (_mm256_mask_cvttph_epi32): Likewise.
4004 (_mm256_maskz_cvttph_epi32): Likewise.
4005 (_mm_cvttph_epu32): Likewise.
4006 (_mm_mask_cvttph_epu32): Likewise.
4007 (_mm_maskz_cvttph_epu32): Likewise.
4008 (_mm256_cvttph_epu32): Likewise.
4009 (_mm256_mask_cvttph_epu32): Likewise.
4010 (_mm256_maskz_cvttph_epu32): Likewise.
4011 (_mm_cvttph_epi64): Likewise.
4012 (_mm_mask_cvttph_epi64): Likewise.
4013 (_mm_maskz_cvttph_epi64): Likewise.
4014 (_mm256_cvttph_epi64): Likewise.
4015 (_mm256_mask_cvttph_epi64): Likewise.
4016 (_mm256_maskz_cvttph_epi64): Likewise.
4017 (_mm_cvttph_epu64): Likewise.
4018 (_mm_mask_cvttph_epu64): Likewise.
4019 (_mm_maskz_cvttph_epu64): Likewise.
4020 (_mm256_cvttph_epu64): Likewise.
4021 (_mm256_mask_cvttph_epu64): Likewise.
4022 (_mm256_maskz_cvttph_epu64): Likewise.
4023 (_mm_cvttph_epi16): Likewise.
4024 (_mm_mask_cvttph_epi16): Likewise.
4025 (_mm_maskz_cvttph_epi16): Likewise.
4026 (_mm256_cvttph_epi16): Likewise.
4027 (_mm256_mask_cvttph_epi16): Likewise.
4028 (_mm256_maskz_cvttph_epi16): Likewise.
4029 (_mm_cvttph_epu16): Likewise.
4030 (_mm_mask_cvttph_epu16): Likewise.
4031 (_mm_maskz_cvttph_epu16): Likewise.
4032 (_mm256_cvttph_epu16): Likewise.
4033 (_mm256_mask_cvttph_epu16): Likewise.
4034 (_mm256_maskz_cvttph_epu16): Likewise.
4035 * config/i386/i386-builtin.def: Add new builtins.
4036 * config/i386/sse.md
4037 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name><round_saeonly_name>):
4039 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name>): Ditto.
4040 (*avx512fp16_fix<fixunssuffix>_trunc<mode>2_load<mask_name>): Ditto.
4041 (avx512fp16_fix<fixunssuffix>_truncv2di2<mask_name>): Ditto.
4042 (avx512fp16_fix<fixunssuffix>_truncv2di2_load<mask_name>): Ditto.
4044 2021-09-17 liuhongt <hongtao.liu@intel.com>
4046 * config/i386/avx512fp16intrin.h (_mm_cvtsh_i32): New intrinsic.
4047 (_mm_cvtsh_u32): Likewise.
4048 (_mm_cvt_roundsh_i32): Likewise.
4049 (_mm_cvt_roundsh_u32): Likewise.
4050 (_mm_cvtsh_i64): Likewise.
4051 (_mm_cvtsh_u64): Likewise.
4052 (_mm_cvt_roundsh_i64): Likewise.
4053 (_mm_cvt_roundsh_u64): Likewise.
4054 (_mm_cvti32_sh): Likewise.
4055 (_mm_cvtu32_sh): Likewise.
4056 (_mm_cvt_roundi32_sh): Likewise.
4057 (_mm_cvt_roundu32_sh): Likewise.
4058 (_mm_cvti64_sh): Likewise.
4059 (_mm_cvtu64_sh): Likewise.
4060 (_mm_cvt_roundi64_sh): Likewise.
4061 (_mm_cvt_roundu64_sh): Likewise.
4062 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4063 * config/i386/i386-builtin.def: Add corresponding new builtins.
4064 * config/i386/i386-expand.c (ix86_expand_round_builtin):
4065 Handle new builtin types.
4066 * config/i386/sse.md
4067 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix><round_name>):
4069 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix>_2): Likewise.
4070 (avx512fp16_vcvt<floatsuffix>si2sh<rex64namesuffix><round_name>): Likewise.
4072 2021-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
4074 * config/rs6000/rs6000-c.c (rs6000-builtins.h): New include.
4075 (altivec_resolve_new_overloaded_builtin): New forward decl.
4076 (rs6000_new_builtin_type_compatible): New function.
4077 (altivec_resolve_overloaded_builtin): Call
4078 altivec_resolve_new_overloaded_builtin.
4079 (altivec_build_new_resolved_builtin): New function.
4080 (altivec_resolve_new_overloaded_builtin): Likewise.
4081 * config/rs6000/rs6000-call.c (rs6000_new_builtin_is_supported):
4083 * config/rs6000/rs6000-gen-builtins.c (write_decls): Remove _p from
4084 name of rs6000_new_builtin_is_supported.
4086 2021-09-16 Uroš Bizjak <ubizjak@gmail.com>
4088 * config/i386/i386-protos.h (ix86_decompose_address):
4089 Change return type to bool.
4090 * config/i386/i386.c (ix86_decompose_address): Ditto.
4092 2021-09-16 Tobias Burnus <tobias@codesourcery.com>
4095 * config/rs6000/t-rs6000 (build/rs6000-gen-builtins.o, build/rbtree.o):
4096 Added 'build/' to target, use build/%.o rule.
4097 (build/rs6000-gen-builtins$(build_exeext)): Add 'build/' and
4098 '$(build_exeext)' to target and 'build/' for the *.o files.
4099 (rs6000-builtins.c): Update for those changes; run rs6000-gen-builtins
4102 2021-09-16 Martin Jambor <mjambor@suse.cz>
4104 * cgraph.c (cgraph_node::dump): Do not check caller count sums if
4105 the body has been removed. Remove trailing whitespace.
4107 2021-09-16 Richard Biener <rguenther@suse.de>
4109 PR middle-end/102360
4110 * internal-fn.c (expand_DEFERRED_INIT): Make pattern-init
4111 of non-memory more robust.
4113 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4115 * config/sparc/sparc-opts.h (enum sparc_processor_type): Add LEON5
4116 * config/sparc/sparc.c (struct processor_costs): Add LEON5 costs
4117 (leon5_adjust_cost): Increase cost of store with data dependency
4118 on ALU instruction and FPU anti-dependencies.
4119 (sparc_option_override): Add LEON5 costs
4120 (sparc_adjust_cost): Add LEON5 cost adjustments
4121 * config/sparc/sparc.h: Add LEON5
4122 * config/sparc/sparc.md: Include LEON5 scheduling information
4123 * config/sparc/sparc.opt: Add LEON5
4124 * doc/invoke.texi: Add LEON5
4125 * config/sparc/leon5.md: New file.
4127 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4129 * config/sparc/sparc.md (stack_protect_set32): Add NOP to prevent
4130 sensitive sequence for B2BST errata workaround.
4132 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4134 * config/sparc/sparc.c (sparc_do_work_around_errata): Do not begin
4135 functions with atomic instruction in the UT700 errata workaround.
4137 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4139 * config/sparc/sparc.c (next_active_non_empty_insn): New function
4140 that returns next active non empty assembly instruction.
4141 (sparc_do_work_around_errata): Use new function.
4143 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4145 * config/sparc/sparc.c (store_insn_p): Add predicate for store
4147 (load_insn_p): Add predicate for load attributes.
4148 (sparc_do_work_around_errata): Use new predicates.
4150 2021-09-16 Andreas Larsson <andreas@gaisler.com>
4152 * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
4155 2021-09-16 Martin Liska <mliska@suse.cz>
4157 * config/mips/netbsd.h: Fix typo in name of a macro.
4159 2021-09-16 liuhongt <hongtao.liu@intel.com>
4161 PR middle-end/102080
4162 * match.pd: Check mask type when doing cond_op related gimple
4164 * tree.c (is_truth_type_for): New function.
4165 * tree.h (is_truth_type_for): New declaration.
4167 2021-09-16 liuhongt <hongtao.liu@intel.com>
4169 * config/i386/avx512fp16intrin.h (_mm512_cvtepi32_ph): New
4171 (_mm512_mask_cvtepi32_ph): Likewise.
4172 (_mm512_maskz_cvtepi32_ph): Likewise.
4173 (_mm512_cvt_roundepi32_ph): Likewise.
4174 (_mm512_mask_cvt_roundepi32_ph): Likewise.
4175 (_mm512_maskz_cvt_roundepi32_ph): Likewise.
4176 (_mm512_cvtepu32_ph): Likewise.
4177 (_mm512_mask_cvtepu32_ph): Likewise.
4178 (_mm512_maskz_cvtepu32_ph): Likewise.
4179 (_mm512_cvt_roundepu32_ph): Likewise.
4180 (_mm512_mask_cvt_roundepu32_ph): Likewise.
4181 (_mm512_maskz_cvt_roundepu32_ph): Likewise.
4182 (_mm512_cvtepi64_ph): Likewise.
4183 (_mm512_mask_cvtepi64_ph): Likewise.
4184 (_mm512_maskz_cvtepi64_ph): Likewise.
4185 (_mm512_cvt_roundepi64_ph): Likewise.
4186 (_mm512_mask_cvt_roundepi64_ph): Likewise.
4187 (_mm512_maskz_cvt_roundepi64_ph): Likewise.
4188 (_mm512_cvtepu64_ph): Likewise.
4189 (_mm512_mask_cvtepu64_ph): Likewise.
4190 (_mm512_maskz_cvtepu64_ph): Likewise.
4191 (_mm512_cvt_roundepu64_ph): Likewise.
4192 (_mm512_mask_cvt_roundepu64_ph): Likewise.
4193 (_mm512_maskz_cvt_roundepu64_ph): Likewise.
4194 (_mm512_cvtepi16_ph): Likewise.
4195 (_mm512_mask_cvtepi16_ph): Likewise.
4196 (_mm512_maskz_cvtepi16_ph): Likewise.
4197 (_mm512_cvt_roundepi16_ph): Likewise.
4198 (_mm512_mask_cvt_roundepi16_ph): Likewise.
4199 (_mm512_maskz_cvt_roundepi16_ph): Likewise.
4200 (_mm512_cvtepu16_ph): Likewise.
4201 (_mm512_mask_cvtepu16_ph): Likewise.
4202 (_mm512_maskz_cvtepu16_ph): Likewise.
4203 (_mm512_cvt_roundepu16_ph): Likewise.
4204 (_mm512_mask_cvt_roundepu16_ph): Likewise.
4205 (_mm512_maskz_cvt_roundepu16_ph): Likewise.
4206 * config/i386/avx512fp16vlintrin.h (_mm_cvtepi32_ph): New
4208 (_mm_mask_cvtepi32_ph): Likewise.
4209 (_mm_maskz_cvtepi32_ph): Likewise.
4210 (_mm256_cvtepi32_ph): Likewise.
4211 (_mm256_mask_cvtepi32_ph): Likewise.
4212 (_mm256_maskz_cvtepi32_ph): Likewise.
4213 (_mm_cvtepu32_ph): Likewise.
4214 (_mm_mask_cvtepu32_ph): Likewise.
4215 (_mm_maskz_cvtepu32_ph): Likewise.
4216 (_mm256_cvtepu32_ph): Likewise.
4217 (_mm256_mask_cvtepu32_ph): Likewise.
4218 (_mm256_maskz_cvtepu32_ph): Likewise.
4219 (_mm_cvtepi64_ph): Likewise.
4220 (_mm_mask_cvtepi64_ph): Likewise.
4221 (_mm_maskz_cvtepi64_ph): Likewise.
4222 (_mm256_cvtepi64_ph): Likewise.
4223 (_mm256_mask_cvtepi64_ph): Likewise.
4224 (_mm256_maskz_cvtepi64_ph): Likewise.
4225 (_mm_cvtepu64_ph): Likewise.
4226 (_mm_mask_cvtepu64_ph): Likewise.
4227 (_mm_maskz_cvtepu64_ph): Likewise.
4228 (_mm256_cvtepu64_ph): Likewise.
4229 (_mm256_mask_cvtepu64_ph): Likewise.
4230 (_mm256_maskz_cvtepu64_ph): Likewise.
4231 (_mm_cvtepi16_ph): Likewise.
4232 (_mm_mask_cvtepi16_ph): Likewise.
4233 (_mm_maskz_cvtepi16_ph): Likewise.
4234 (_mm256_cvtepi16_ph): Likewise.
4235 (_mm256_mask_cvtepi16_ph): Likewise.
4236 (_mm256_maskz_cvtepi16_ph): Likewise.
4237 (_mm_cvtepu16_ph): Likewise.
4238 (_mm_mask_cvtepu16_ph): Likewise.
4239 (_mm_maskz_cvtepu16_ph): Likewise.
4240 (_mm256_cvtepu16_ph): Likewise.
4241 (_mm256_mask_cvtepu16_ph): Likewise.
4242 (_mm256_maskz_cvtepu16_ph): Likewise.
4243 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4244 * config/i386/i386-builtin.def: Add corresponding new builtins.
4245 * config/i386/i386-expand.c
4246 (ix86_expand_args_builtin): Handle new builtin types.
4247 (ix86_expand_round_builtin): Ditto.
4248 * config/i386/i386-modes.def: Declare V2HF and V6HF.
4249 * config/i386/sse.md (VI2H_AVX512VL): New.
4251 (sseintvecmode): Add HF vector modes.
4252 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode><mask_name><round_name>):
4254 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
4255 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
4256 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
4257 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
4258 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask_1): Ditto.
4259 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
4260 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
4261 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
4262 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
4263 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask_1): Ditto.
4264 * config/i386/subst.md (round_qq2phsuff): New subst_attr.
4266 2021-09-16 liuhongt <hongtao.liu@intel.com>
4268 * config/i386/avx512fp16intrin.h (_mm512_cvtph_epi32):
4270 (_mm512_mask_cvtph_epi32): Likewise.
4271 (_mm512_maskz_cvtph_epi32): Likewise.
4272 (_mm512_cvt_roundph_epi32): Likewise.
4273 (_mm512_mask_cvt_roundph_epi32): Likewise.
4274 (_mm512_maskz_cvt_roundph_epi32): Likewise.
4275 (_mm512_cvtph_epu32): Likewise.
4276 (_mm512_mask_cvtph_epu32): Likewise.
4277 (_mm512_maskz_cvtph_epu32): Likewise.
4278 (_mm512_cvt_roundph_epu32): Likewise.
4279 (_mm512_mask_cvt_roundph_epu32): Likewise.
4280 (_mm512_maskz_cvt_roundph_epu32): Likewise.
4281 (_mm512_cvtph_epi64): Likewise.
4282 (_mm512_mask_cvtph_epi64): Likewise.
4283 (_mm512_maskz_cvtph_epi64): Likewise.
4284 (_mm512_cvt_roundph_epi64): Likewise.
4285 (_mm512_mask_cvt_roundph_epi64): Likewise.
4286 (_mm512_maskz_cvt_roundph_epi64): Likewise.
4287 (_mm512_cvtph_epu64): Likewise.
4288 (_mm512_mask_cvtph_epu64): Likewise.
4289 (_mm512_maskz_cvtph_epu64): Likewise.
4290 (_mm512_cvt_roundph_epu64): Likewise.
4291 (_mm512_mask_cvt_roundph_epu64): Likewise.
4292 (_mm512_maskz_cvt_roundph_epu64): Likewise.
4293 (_mm512_cvtph_epi16): Likewise.
4294 (_mm512_mask_cvtph_epi16): Likewise.
4295 (_mm512_maskz_cvtph_epi16): Likewise.
4296 (_mm512_cvt_roundph_epi16): Likewise.
4297 (_mm512_mask_cvt_roundph_epi16): Likewise.
4298 (_mm512_maskz_cvt_roundph_epi16): Likewise.
4299 (_mm512_cvtph_epu16): Likewise.
4300 (_mm512_mask_cvtph_epu16): Likewise.
4301 (_mm512_maskz_cvtph_epu16): Likewise.
4302 (_mm512_cvt_roundph_epu16): Likewise.
4303 (_mm512_mask_cvt_roundph_epu16): Likewise.
4304 (_mm512_maskz_cvt_roundph_epu16): Likewise.
4305 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_epi32):
4307 (_mm_mask_cvtph_epi32): Likewise.
4308 (_mm_maskz_cvtph_epi32): Likewise.
4309 (_mm256_cvtph_epi32): Likewise.
4310 (_mm256_mask_cvtph_epi32): Likewise.
4311 (_mm256_maskz_cvtph_epi32): Likewise.
4312 (_mm_cvtph_epu32): Likewise.
4313 (_mm_mask_cvtph_epu32): Likewise.
4314 (_mm_maskz_cvtph_epu32): Likewise.
4315 (_mm256_cvtph_epu32): Likewise.
4316 (_mm256_mask_cvtph_epu32): Likewise.
4317 (_mm256_maskz_cvtph_epu32): Likewise.
4318 (_mm_cvtph_epi64): Likewise.
4319 (_mm_mask_cvtph_epi64): Likewise.
4320 (_mm_maskz_cvtph_epi64): Likewise.
4321 (_mm256_cvtph_epi64): Likewise.
4322 (_mm256_mask_cvtph_epi64): Likewise.
4323 (_mm256_maskz_cvtph_epi64): Likewise.
4324 (_mm_cvtph_epu64): Likewise.
4325 (_mm_mask_cvtph_epu64): Likewise.
4326 (_mm_maskz_cvtph_epu64): Likewise.
4327 (_mm256_cvtph_epu64): Likewise.
4328 (_mm256_mask_cvtph_epu64): Likewise.
4329 (_mm256_maskz_cvtph_epu64): Likewise.
4330 (_mm_cvtph_epi16): Likewise.
4331 (_mm_mask_cvtph_epi16): Likewise.
4332 (_mm_maskz_cvtph_epi16): Likewise.
4333 (_mm256_cvtph_epi16): Likewise.
4334 (_mm256_mask_cvtph_epi16): Likewise.
4335 (_mm256_maskz_cvtph_epi16): Likewise.
4336 (_mm_cvtph_epu16): Likewise.
4337 (_mm_mask_cvtph_epu16): Likewise.
4338 (_mm_maskz_cvtph_epu16): Likewise.
4339 (_mm256_cvtph_epu16): Likewise.
4340 (_mm256_mask_cvtph_epu16): Likewise.
4341 (_mm256_maskz_cvtph_epu16): Likewise.
4342 * config/i386/i386-builtin-types.def: Add new builtin types.
4343 * config/i386/i386-builtin.def: Add new builtins.
4344 * config/i386/i386-expand.c
4345 (ix86_expand_args_builtin): Handle new builtin types.
4346 (ix86_expand_round_builtin): Ditto.
4347 * config/i386/sse.md (sseintconvert): New.
4349 (UNSPEC_US_FIX_NOTRUNC): Ditto.
4350 (sseintconvertsignprefix): Ditto.
4351 (avx512fp16_vcvtph2<sseintconvertsignprefix><sseintconvert>_<mode><mask_name><round_name>):
4354 2021-09-16 liuhongt <hongtao.liu@intel.com>
4356 * config/i386/avx512fp16intrin.h: (_mm_cvtsi16_si128):
4358 (_mm_cvtsi128_si16): Likewise.
4359 (_mm_mask_load_sh): Likewise.
4360 (_mm_maskz_load_sh): Likewise.
4361 (_mm_mask_store_sh): Likewise.
4362 (_mm_move_sh): Likewise.
4363 (_mm_mask_move_sh): Likewise.
4364 (_mm_maskz_move_sh): Likewise.
4365 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4366 * config/i386/i386-builtin.def: Add corresponding new builtins.
4367 * config/i386/i386-expand.c
4368 (ix86_expand_special_args_builtin): Handle new builtin types.
4369 (ix86_expand_vector_init_one_nonzero): Adjust for FP16 target.
4370 * config/i386/sse.md (VI2F): New mode iterator.
4371 (vec_set<mode>_0): Use new mode iterator.
4372 (avx512f_mov<ssescalarmodelower>_mask): Adjust for HF vector mode.
4373 (avx512f_store<mode>_mask): Ditto.
4375 2021-09-16 Kewen Lin <linkw@linux.ibm.com>
4377 * config/rs6000/rs6000.opt (-mtoc-fusion): Remove.
4379 2021-09-15 David Edelsohn <dje.gcc@gmail.com>
4381 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
4382 Proceed if no symbol summary or the symbol alias flag is false.
4384 2021-09-15 Jakub Jelinek <jakub@redhat.com>
4388 * varasm.c (output_constructor_regular_field): Instead of assertion
4389 that array_size_for_constructor result is equal to size of
4390 TREE_TYPE (local->val) in bytes, assert that the type size is greater
4391 or equal to array_size_for_constructor result and use type size as
4394 2021-09-15 Martin Liska <mliska@suse.cz>
4397 * config/i386/vxworks.h: Use new macro TARGET_CPU_P.
4399 2021-09-15 Martin Liska <mliska@suse.cz>
4402 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
4403 Check that we have a symbol summary for a symbol.
4405 2021-09-15 Richard Biener <rguenther@suse.de>
4408 * config/rs6000/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
4409 to inherit from elfos.h
4411 2021-09-15 liuhongt <hongtao.liu@intel.com>
4414 * config/i386/i386-expand.c
4415 (ix86_expand_vector_init_interleave): Use puncklwd to pack 2
4417 (ix86_expand_vector_set): Use blendw instead of pinsrw.
4418 * config/i386/i386.c (ix86_can_change_mode_class): Adjust for
4419 AVX512FP16 which supports 16bit vector load.
4420 * config/i386/sse.md (avx512bw_interleave_highv32hi<mask_name>):
4422 (avx512bw_interleave_high<mode><mask_name>): .. this, and
4423 extend to V32HFmode.
4424 (avx2_interleave_highv16hi<mask_name>): Rename to ..
4425 (avx2_interleave_high<mode><mask_name>): .. this, and extend
4427 (vec_interleave_highv8hi<mask_name>): Rename to ..
4428 (vec_interleave_high<mode><mask_name>): .. this, and extend to V8HFmode.
4429 (<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>):
4431 (<mask_codefor>avx512bw_interleave_low<mode><mask_name>):
4432 this, and extend to V32HFmode.
4433 (avx2_interleave_lowv16hi<mask_name>): Rename to ..
4434 (avx2_interleave_low<mode><mask_name>): .. this, and extend to V16HFmode.
4435 (vec_interleave_lowv8hi<mask_name>): Rename to ..
4436 (vec_interleave_low<mode><mask_name>): .. this, and extend to V8HFmode.
4437 (sse4_1_pblendw): Rename to ..
4438 (sse4_1_pblend<blendsuf>): .. this, and extend to V8HFmode.
4439 (avx2_pblendph): New define_expand.
4440 (<sse2p4_1>_pinsr<ssemodesuffix>): Refactor, use
4441 sseintmodesuffix instead of ssemodesuffix.
4442 (blendsuf): New mode attr.
4444 2021-09-15 Richard Biener <rguenther@suse.de>
4446 * tree-vectorizer.h (dr_misalignment): Move out of line.
4447 (dr_target_alignment): New.
4448 (DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
4449 (set_dr_target_alignment): New.
4450 (SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
4451 * tree-vect-data-refs.c (dr_misalignment): Compute and
4452 return the group members misalignment.
4453 (vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
4454 (vect_analyze_data_refs_alignment): Compute alignment only
4455 for the first element of a DR group.
4456 (vect_slp_analyze_node_alignment): Likewise.
4458 2021-09-15 Hongyu Wang <hongyu.wang@intel.com>
4460 * config/i386/avx512fp16intrin.h: Adjust all builtin calls.
4461 * config/i386/avx512fp16vlintrin.h: Likewise.
4462 * config/i386/i386-builtin.def: Adjust builtin name and
4463 enumeration to match AVX512F style.
4465 2021-09-15 Richard Biener <rguenther@suse.de>
4467 PR tree-optimization/102318
4468 * tree-vect-loop.c (vect_transform_cycle_phi): Revert
4469 previous change and do the mode conversion separately from
4470 the sign conversion.
4472 2021-09-15 Hongtao Liu <hongtao.liu@intel.com>
4473 Peter Cordes <peter@cordes.ca>
4476 * config/i386/sse.md (extract_suf): Add V8SF/V8SI/V4DF/V4DI.
4477 (*vec_extract<mode><ssescalarmodelower>_valign): Output
4478 vextract{i,f}{32x4,64x2} instruction when byte_offset % 16 ==
4481 2021-09-15 Richard Biener <rguenther@suse.de>
4483 * config.gcc: Remove vax-*-openbsd* configuration.
4485 2021-09-15 Richard Biener <rguenther@suse.de>
4487 * config.gcc: Remove m68k-openbsd.
4489 2021-09-15 Max Filippov <jcmvbkbc@gmail.com>
4492 * config/xtensa/t-xtensa (TM_H): Add include/xtensa-config.h.
4494 2021-09-14 Peter Bergner <bergner@linux.ibm.com>
4496 * config/rs6000/mma.md (unspec): Delete UNSPEC_MMA_XXSETACCZ.
4497 (unspecv): Add UNSPECV_MMA_XXSETACCZ.
4498 (*mma_xxsetaccz): Delete.
4499 (mma_xxsetaccz): Change to define_insn. Remove operand 1.
4500 Use UNSPECV_MMA_XXSETACCZ. Update comment.
4501 * config/rs6000/rs6000.c (rs6000_rtx_costs): Use UNSPECV_MMA_XXSETACCZ.
4503 2021-09-14 Iain Sandoe <iain@sandoe.co.uk>
4505 * Makefile.in: Remove variables related to applying no-PIE
4506 to the exes on $build.
4507 * configure: Regenerate.
4508 * configure.ac: Remove configuration related to applying
4509 no-PIE to the exes on $build.
4511 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
4513 * config/arc/arc.md (doloop_end): Add missing mode.
4514 (loop_end): Likewise.
4516 2021-09-14 Jakub Jelinek <jakub@redhat.com>
4518 * gimplify.c (goa_stabilize_expr): Add depth argument, propagate
4519 it to recursive calls, for depth above 7 just gimplify or return.
4520 Perform a test even for MODIFY_EXPR, ADDR_EXPR, COMPOUND_EXPR with
4521 __builtin_clear_padding and TARGET_EXPR.
4522 (gimplify_omp_atomic): Adjust goa_stabilize_expr callers.
4524 2021-09-14 liuhongt <hongtao.liu@intel.com>
4526 * config/i386/avx512fp16intrin.h (_mm_fpclass_sh_mask):
4528 (_mm_mask_fpclass_sh_mask): Likewise.
4529 (_mm512_mask_fpclass_ph_mask): Likewise.
4530 (_mm512_fpclass_ph_mask): Likewise.
4531 (_mm_getexp_sh): Likewise.
4532 (_mm_mask_getexp_sh): Likewise.
4533 (_mm_maskz_getexp_sh): Likewise.
4534 (_mm512_getexp_ph): Likewise.
4535 (_mm512_mask_getexp_ph): Likewise.
4536 (_mm512_maskz_getexp_ph): Likewise.
4537 (_mm_getexp_round_sh): Likewise.
4538 (_mm_mask_getexp_round_sh): Likewise.
4539 (_mm_maskz_getexp_round_sh): Likewise.
4540 (_mm512_getexp_round_ph): Likewise.
4541 (_mm512_mask_getexp_round_ph): Likewise.
4542 (_mm512_maskz_getexp_round_ph): Likewise.
4543 (_mm_getmant_sh): Likewise.
4544 (_mm_mask_getmant_sh): Likewise.
4545 (_mm_maskz_getmant_sh): Likewise.
4546 (_mm512_getmant_ph): Likewise.
4547 (_mm512_mask_getmant_ph): Likewise.
4548 (_mm512_maskz_getmant_ph): Likewise.
4549 (_mm_getmant_round_sh): Likewise.
4550 (_mm_mask_getmant_round_sh): Likewise.
4551 (_mm_maskz_getmant_round_sh): Likewise.
4552 (_mm512_getmant_round_ph): Likewise.
4553 (_mm512_mask_getmant_round_ph): Likewise.
4554 (_mm512_maskz_getmant_round_ph): Likewise.
4555 * config/i386/avx512fp16vlintrin.h (_mm_mask_fpclass_ph_mask):
4557 (_mm_fpclass_ph_mask): Likewise.
4558 (_mm256_mask_fpclass_ph_mask): Likewise.
4559 (_mm256_fpclass_ph_mask): Likewise.
4560 (_mm256_getexp_ph): Likewise.
4561 (_mm256_mask_getexp_ph): Likewise.
4562 (_mm256_maskz_getexp_ph): Likewise.
4563 (_mm_getexp_ph): Likewise.
4564 (_mm_mask_getexp_ph): Likewise.
4565 (_mm_maskz_getexp_ph): Likewise.
4566 (_mm256_getmant_ph): Likewise.
4567 (_mm256_mask_getmant_ph): Likewise.
4568 (_mm256_maskz_getmant_ph): Likewise.
4569 (_mm_getmant_ph): Likewise.
4570 (_mm_mask_getmant_ph): Likewise.
4571 (_mm_maskz_getmant_ph): Likewise.
4572 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4573 * config/i386/i386-builtin.def: Add corresponding new builtins.
4574 * config/i386/i386-expand.c
4575 (ix86_expand_args_builtin): Handle new builtin types.
4576 (ix86_expand_round_builtin): Ditto.
4577 * config/i386/sse.md (vecmemsuffix): Add HF vector modes.
4578 (<avx512>_getexp<mode><mask_name><round_saeonly_name>): Adjust
4579 to support HF vector modes.
4580 (avx512f_sgetexp<mode><mask_scalar_name><round_saeonly_scalar_name):
4582 (avx512dq_fpclass<mode><mask_scalar_merge_name>): Ditto.
4583 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Ditto.
4584 (<avx512>_getmant<mode><mask_name><round_saeonly_name>): Ditto.
4585 (avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
4588 2021-09-14 liuhongt <hongtao.liu@intel.com>
4590 * config/i386/avx512fp16intrin.h (_mm512_reduce_ph):
4592 (_mm512_mask_reduce_ph): Likewise.
4593 (_mm512_maskz_reduce_ph): Likewise.
4594 (_mm512_reduce_round_ph): Likewise.
4595 (_mm512_mask_reduce_round_ph): Likewise.
4596 (_mm512_maskz_reduce_round_ph): Likewise.
4597 (_mm_reduce_sh): Likewise.
4598 (_mm_mask_reduce_sh): Likewise.
4599 (_mm_maskz_reduce_sh): Likewise.
4600 (_mm_reduce_round_sh): Likewise.
4601 (_mm_mask_reduce_round_sh): Likewise.
4602 (_mm_maskz_reduce_round_sh): Likewise.
4603 (_mm512_roundscale_ph): Likewise.
4604 (_mm512_mask_roundscale_ph): Likewise.
4605 (_mm512_maskz_roundscale_ph): Likewise.
4606 (_mm512_roundscale_round_ph): Likewise.
4607 (_mm512_mask_roundscale_round_ph): Likewise.
4608 (_mm512_maskz_roundscale_round_ph): Likewise.
4609 (_mm_roundscale_sh): Likewise.
4610 (_mm_mask_roundscale_sh): Likewise.
4611 (_mm_maskz_roundscale_sh): Likewise.
4612 (_mm_roundscale_round_sh): Likewise.
4613 (_mm_mask_roundscale_round_sh): Likewise.
4614 (_mm_maskz_roundscale_round_sh): Likewise.
4615 * config/i386/avx512fp16vlintrin.h: (_mm_reduce_ph):
4617 (_mm_mask_reduce_ph): Likewise.
4618 (_mm_maskz_reduce_ph): Likewise.
4619 (_mm256_reduce_ph): Likewise.
4620 (_mm256_mask_reduce_ph): Likewise.
4621 (_mm256_maskz_reduce_ph): Likewise.
4622 (_mm_roundscale_ph): Likewise.
4623 (_mm_mask_roundscale_ph): Likewise.
4624 (_mm_maskz_roundscale_ph): Likewise.
4625 (_mm256_roundscale_ph): Likewise.
4626 (_mm256_mask_roundscale_ph): Likewise.
4627 (_mm256_maskz_roundscale_ph): Likewise.
4628 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4629 * config/i386/i386-builtin.def: Add corresponding new builtins.
4630 * config/i386/i386-expand.c
4631 (ix86_expand_args_builtin): Handle new builtin types.
4632 (ix86_expand_round_builtin): Ditto.
4633 * config/i386/sse.md (<mask_codefor>reducep<mode><mask_name>):
4635 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
4636 ... this, and adjust for round operands.
4637 (reduces<mode><mask_scalar_name>): Likewise, with ...
4638 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name):
4640 (<avx512>_rndscale<mode><mask_name><round_saeonly_name>):
4641 Adjust for HF vector modes.
4642 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
4644 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
4646 2021-09-14 liuhongt <hongtao.liu@intel.com>
4648 * config/i386/avx512fp16intrin.h: (_mm512_rcp_ph):
4650 (_mm512_mask_rcp_ph): Likewise.
4651 (_mm512_maskz_rcp_ph): Likewise.
4652 (_mm_rcp_sh): Likewise.
4653 (_mm_mask_rcp_sh): Likewise.
4654 (_mm_maskz_rcp_sh): Likewise.
4655 (_mm512_scalef_ph): Likewise.
4656 (_mm512_mask_scalef_ph): Likewise.
4657 (_mm512_maskz_scalef_ph): Likewise.
4658 (_mm512_scalef_round_ph): Likewise.
4659 (_mm512_mask_scalef_round_ph): Likewise.
4660 (_mm512_maskz_scalef_round_ph): Likewise.
4661 (_mm_scalef_sh): Likewise.
4662 (_mm_mask_scalef_sh): Likewise.
4663 (_mm_maskz_scalef_sh): Likewise.
4664 (_mm_scalef_round_sh): Likewise.
4665 (_mm_mask_scalef_round_sh): Likewise.
4666 (_mm_maskz_scalef_round_sh): Likewise.
4667 * config/i386/avx512fp16vlintrin.h (_mm_rcp_ph):
4669 (_mm256_rcp_ph): Likewise.
4670 (_mm_mask_rcp_ph): Likewise.
4671 (_mm256_mask_rcp_ph): Likewise.
4672 (_mm_maskz_rcp_ph): Likewise.
4673 (_mm256_maskz_rcp_ph): Likewise.
4674 (_mm_scalef_ph): Likewise.
4675 (_mm256_scalef_ph): Likewise.
4676 (_mm_mask_scalef_ph): Likewise.
4677 (_mm256_mask_scalef_ph): Likewise.
4678 (_mm_maskz_scalef_ph): Likewise.
4679 (_mm256_maskz_scalef_ph): Likewise.
4680 * config/i386/i386-builtin.def: Add new builtins.
4681 * config/i386/sse.md (VFH_AVX512VL): New.
4682 (avx512fp16_rcp<mode>2<mask_name>): Ditto.
4683 (avx512fp16_vmrcpv8hf2<mask_scalar_name>): Ditto.
4684 (avx512f_vmscalef<mode><mask_scalar_name><round_scalar_name>):
4685 Adjust to support HF vector modes.
4686 (<avx512>_scalef<mode><mask_name><round_name>): Ditto.
4688 2021-09-14 liuhongt <hongtao.liu@intel.com>
4690 * config/i386/avx512fp16intrin.h: (_mm512_sqrt_ph):
4692 (_mm512_mask_sqrt_ph): Likewise.
4693 (_mm512_maskz_sqrt_ph): Likewise.
4694 (_mm512_sqrt_round_ph): Likewise.
4695 (_mm512_mask_sqrt_round_ph): Likewise.
4696 (_mm512_maskz_sqrt_round_ph): Likewise.
4697 (_mm512_rsqrt_ph): Likewise.
4698 (_mm512_mask_rsqrt_ph): Likewise.
4699 (_mm512_maskz_rsqrt_ph): Likewise.
4700 (_mm_rsqrt_sh): Likewise.
4701 (_mm_mask_rsqrt_sh): Likewise.
4702 (_mm_maskz_rsqrt_sh): Likewise.
4703 (_mm_sqrt_sh): Likewise.
4704 (_mm_mask_sqrt_sh): Likewise.
4705 (_mm_maskz_sqrt_sh): Likewise.
4706 (_mm_sqrt_round_sh): Likewise.
4707 (_mm_mask_sqrt_round_sh): Likewise.
4708 (_mm_maskz_sqrt_round_sh): Likewise.
4709 * config/i386/avx512fp16vlintrin.h (_mm_sqrt_ph): New intrinsic.
4710 (_mm256_sqrt_ph): Likewise.
4711 (_mm_mask_sqrt_ph): Likewise.
4712 (_mm256_mask_sqrt_ph): Likewise.
4713 (_mm_maskz_sqrt_ph): Likewise.
4714 (_mm256_maskz_sqrt_ph): Likewise.
4715 (_mm_rsqrt_ph): Likewise.
4716 (_mm256_rsqrt_ph): Likewise.
4717 (_mm_mask_rsqrt_ph): Likewise.
4718 (_mm256_mask_rsqrt_ph): Likewise.
4719 (_mm_maskz_rsqrt_ph): Likewise.
4720 (_mm256_maskz_rsqrt_ph): Likewise.
4721 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4722 * config/i386/i386-builtin.def: Add corresponding new builtins.
4723 * config/i386/i386-expand.c
4724 (ix86_expand_args_builtin): Handle new builtins.
4725 (ix86_expand_round_builtin): Ditto.
4726 * config/i386/sse.md (VF_AVX512FP16VL): New.
4727 (sqrt<mode>2): Adjust for HF vector modes.
4728 (<sse>_sqrt<mode>2<mask_name><round_name>): Likewise.
4729 (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
4731 (<sse>_rsqrt<mode>2<mask_name>): New.
4732 (avx512fp16_vmrsqrtv8hf2<mask_scalar_name>): Likewise.
4734 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
4737 * diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
4738 'RESERVED_LOCATION_P' locations.
4739 * warning-control.cc (get_nowarn_spec, suppress_warning)
4740 (copy_warning): Likewise.
4742 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
4744 * diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
4745 (typedef key_type_t): ... this. Remove.
4746 (nowarn_map): Document.
4747 * diagnostic-spec.c (nowarn_map): Likewise.
4748 * warning-control.cc (convert_to_key): Evolve functions into...
4749 (get_location): ... these. Adjust all users.
4751 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
4753 * warning-control.cc (copy_warning): Remove 'nowarn_map' setup.
4755 2021-09-13 Jason Merrill <jason@redhat.com>
4757 * params.opt: Add destructive-interference-size and
4758 constructive-interference-size.
4759 * doc/invoke.texi: Document them.
4760 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4762 * config/arm/arm.c (arm_option_override): Set them.
4763 * config/i386/i386-options.c (ix86_option_override_internal):
4766 2021-09-13 Martin Liska <mliska@suse.cz>
4767 H.J. Lu <hjl.tools@gmail.com>
4770 * common/config/i386/cpuinfo.h (cpu_indicator_init): Add support
4771 for x86-64 micro levels for __builtin_cpu_supports.
4772 * common/config/i386/i386-cpuinfo.h (enum feature_priority):
4773 Add priorities for the micro-arch levels.
4774 (enum processor_features): Add new features.
4775 * common/config/i386/i386-isas.h: Add micro-arch features.
4776 * config/i386/i386-builtins.c (get_builtin_code_for_version):
4777 Support the micro-arch levels by callsing
4778 __builtin_cpu_supports.
4779 * doc/extend.texi: Document that the levels are support by
4780 __builtin_cpu_supports.
4782 2021-09-13 Andrew Pinski <apinski@marvell.com>
4785 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
4787 (aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
4788 (aarch64_general_gimple_fold_builtin): Likewise.
4790 2021-09-13 Andrew Pinski <apinski@marvell.com>
4792 * config.gcc: Add m32r-*-linux* and m32rle-*-linux*
4793 to the Unsupported targets list.
4794 Remove support for m32r-*-linux* and m32rle-*-linux*.
4795 * config/m32r/linux.h: Removed.
4796 * config/m32r/t-linux: Removed.
4798 2021-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4801 * config/aarch64/aarch64.c (aarch64_classify_address): Don't allow
4802 register index for SVE predicate modes.
4804 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
4806 * tree-ssa-threadbackward.c
4807 (back_threader_profitability::profitable_path_p): Remove FSM
4809 (back_threader_registry::register_path): Same.
4810 * tree-ssa-threadedge.c
4811 (jump_threader::simplify_control_stmt_condition): Same.
4812 * tree-ssa-threadupdate.c (jt_path_registry::jt_path_registry):
4813 Add backedge_threads argument.
4814 (fwd_jt_path_registry::fwd_jt_path_registry): Pass
4815 backedge_threads argument.
4816 (back_jt_path_registry::back_jt_path_registry): Same.
4817 (dump_jump_thread_path): Adjust for FSM removal.
4818 (back_jt_path_registry::rewire_first_differing_edge): Same.
4819 (back_jt_path_registry::adjust_paths_after_duplication): Same.
4820 (back_jt_path_registry::update_cfg): Same.
4821 (jt_path_registry::register_jump_thread): Same.
4822 * tree-ssa-threadupdate.h (enum jump_thread_edge_type): Remove
4824 (class back_jt_path_registry): Add backedge_threads to
4827 2021-09-13 Martin Liska <mliska@suse.cz>
4830 * asan.h (sanitize_coverage_p): Handle when fn == NULL.
4832 2021-09-13 H.J. Lu <hjl.tools@gmail.com>
4835 * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): New.
4836 (TARGET_AVX256_STORE_BY_PIECES): Likewise.
4837 (MOVE_MAX): Check TARGET_AVX256_MOVE_BY_PIECES and
4838 TARGET_AVX256_STORE_BY_PIECES instead of
4839 TARGET_AVX256_SPLIT_UNALIGNED_LOAD and
4840 TARGET_AVX256_SPLIT_UNALIGNED_STORE.
4841 (STORE_MAX_PIECES): Check TARGET_AVX256_STORE_BY_PIECES instead
4842 of TARGET_AVX256_SPLIT_UNALIGNED_STORE.
4843 * config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES): New.
4844 (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
4846 2021-09-13 liuhongt <hongtao.liu@intel.com>
4849 * expmed.c (extract_bit_field_using_extv): Use
4850 gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
4852 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
4854 * Makefile.in (OBJS): Add value-pointer-equiv.o.
4855 * gimple-ssa-evrp.c (class ssa_equiv_stack): Move to
4856 value-pointer-equiv.*.
4857 (ssa_equiv_stack::ssa_equiv_stack): Same.
4858 (ssa_equiv_stack::enter): Same.
4859 (ssa_equiv_stack::leave): Same.
4860 (ssa_equiv_stack::push_replacement): Same.
4861 (ssa_equiv_stack::get_replacement): Same.
4862 (is_pointer_ssa): Same.
4863 (class pointer_equiv_analyzer): Same.
4864 (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
4865 (pointer_equiv_analyzer::~pointer_equiv_analyzer): Same.
4866 (pointer_equiv_analyzer::set_global_equiv): Same.
4867 (pointer_equiv_analyzer::set_cond_equiv): Same.
4868 (pointer_equiv_analyzer::get_equiv): Same.
4869 (pointer_equiv_analyzer::enter): Same.
4870 (pointer_equiv_analyzer::leave): Same.
4871 (pointer_equiv_analyzer::get_equiv_expr): Same.
4872 (pta_valueize): Same.
4873 (pointer_equiv_analyzer::visit_stmt): Same.
4874 (pointer_equiv_analyzer::visit_edge): Same.
4875 (hybrid_folder::value_of_expr): Same.
4876 (hybrid_folder::value_on_edge): Same.
4877 * value-pointer-equiv.cc: New file.
4878 * value-pointer-equiv.h: New file.
4880 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
4883 * gimple-fold.c (gimple_fold_builtin_memory_op): Allow folding
4884 memcpy if the size is not more than MOVE_MAX * MOVE_RATIO.
4886 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
4889 * config/arm/arm.md (movmisaligndi): New define_expand.
4890 * config/arm/vec-common.md (movmisalign<mode>): Iterate over VDQ mode.
4892 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
4895 * emit-rtl.c (gen_highpart): Use adjust_address to handle
4896 MEM rather than calling simplify_gen_subreg.
4898 2021-09-13 Jan-Benedict Glaw <jbglaw@ług-owl.de>
4900 * config/alpha/vms.h (INIT_CUMULATIVE_ARGS): Wrap multi-statment
4901 define into a block.
4903 2021-09-13 Richard Biener <rguenther@suse.de>
4905 * config/darwin.h (DARWIN_PREFER_DWARF): Do not define.
4906 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Do not
4907 change based on DARWIN_PREFER_DWARF not being defined.
4909 2021-09-13 Richard Biener <rguenther@suse.de>
4911 * config/i386/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
4912 to inherit from elfos.h
4914 2021-09-13 Richard Biener <rguenther@suse.de>
4916 * config.gcc: Add cr16-*-* to the list of obsoleted targets.
4918 2021-09-13 Richard Biener <rguenther@suse.de>
4920 * config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
4921 override, pick up DWARF2_DEBUG define from elfos.h
4923 2021-09-13 Richard Biener <rguenther@suse.de>
4925 * config/rx/rx.h (PREFERRED_DEBUGGING_TYPE): Always define to
4928 2021-09-13 Richard Biener <rguenther@suse.de>
4930 * config/alpha/vms.h (PREFERRED_DEBUGGING_TYPE): Define to
4933 2021-09-13 Richard Biener <rguenther@suse.de>
4935 * config/i386/cygming.h: Always default to DWARF2 debugging.
4936 Do not define DBX_DEBUGGING_INFO, that's done via dbxcoff.h
4938 * doc/install.texi: Document binutils 2.16 as minimum
4939 requirement for mingw.
4941 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
4943 * config/rs6000/rs6000.c (struct rs6000_cost_data): New members
4944 nstmts, nloads and extra_ctor_cost.
4945 (rs6000_density_test): Add load density related heuristics. Do
4946 extra costing on vector construction statements if need.
4947 (rs6000_init_cost): Init new members.
4948 (rs6000_update_target_cost_per_stmt): New function.
4949 (rs6000_add_stmt_cost): Factor vect_nonmem hunk out to function
4950 rs6000_update_target_cost_per_stmt and call it.
4952 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
4954 * config/rs6000/rs6000.c (struct rs6000_cost_data): Remove typedef.
4955 (rs6000_init_cost): Adjust.
4957 2021-09-13 liuhongt <hongtao.liu@intel.com>
4959 * config/i386/i386.md: (UNSPEC_COPYSIGN): Remove.
4960 (UNSPEC_XORSIGN): Ditto.
4962 2021-09-12 Roger Sayle <roger@nextmovesoftware.com>
4964 * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when
4965 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
4968 2021-09-11 Aldy Hernandez <aldyh@redhat.com>
4970 * tree-ssa-threadbackward.c (class back_threader_registry): Use
4971 back_jt_path_registry.
4972 * tree-ssa-threadedge.c (jump_threader::jump_threader): Use
4973 fwd_jt_path_registry.
4974 * tree-ssa-threadedge.h (class jump_threader): Same..
4975 * tree-ssa-threadupdate.c
4976 (jump_thread_path_registry::jump_thread_path_registry): Rename...
4977 (jt_path_registry::jt_path_registry): ...to this.
4978 (jump_thread_path_registry::~jump_thread_path_registry): Rename...
4979 (jt_path_registry::~jt_path_registry): ...this.
4980 (fwd_jt_path_registry::fwd_jt_path_registry): New.
4981 (fwd_jt_path_registry::~fwd_jt_path_registry): New.
4982 (jump_thread_path_registry::allocate_thread_edge): Rename...
4983 (jt_path_registry::allocate_thread_edge): ...to this.
4984 (jump_thread_path_registry::allocate_thread_path): Rename...
4985 (jt_path_registry::allocate_thread_path): ...to this.
4986 (jump_thread_path_registry::lookup_redirection_data): Rename...
4987 (fwd_jt_path_registry::lookup_redirection_data): ...to this.
4988 (jump_thread_path_registry::thread_block_1): Rename...
4989 (fwd_jt_path_registry::thread_block_1): ...to this.
4990 (jump_thread_path_registry::thread_block): Rename...
4991 (fwd_jt_path_registry::thread_block): ...to this.
4992 (jt_path_registry::thread_through_loop_header): Rename...
4993 (fwd_jt_path_registry::thread_through_loop_header): ...to this.
4994 (jump_thread_path_registry::mark_threaded_blocks): Rename...
4995 (fwd_jt_path_registry::mark_threaded_blocks): ...to this.
4996 (jump_thread_path_registry::debug_path): Rename...
4997 (jt_path_registry::debug_path): ...to this.
4998 (jump_thread_path_registry::dump): Rename...
4999 (jt_path_registry::debug): ...to this.
5000 (jump_thread_path_registry::rewire_first_differing_edge): Rename...
5001 (back_jt_path_registry::rewire_first_differing_edge): ...to this.
5002 (jump_thread_path_registry::adjust_paths_after_duplication): Rename...
5003 (back_jt_path_registry::adjust_paths_after_duplication): ...to this.
5004 (jump_thread_path_registry::duplicate_thread_path): Rename...
5005 (back_jt_path_registry::duplicate_thread_path): ...to this. Also,
5006 drop ill-formed candidates.
5007 (jump_thread_path_registry::remove_jump_threads_including): Rename...
5008 (fwd_jt_path_registry::remove_jump_threads_including): ...to this.
5009 (jt_path_registry::thread_through_all_blocks): New.
5010 (back_jt_path_registry::update_cfg): New.
5011 (fwd_jt_path_registry::update_cfg): New.
5012 (jump_thread_path_registry::register_jump_thread): Rename...
5013 (jt_path_registry::register_jump_thread): ...to this.
5014 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
5016 (class jt_path_registry): ...here.
5017 (class fwd_jt_path_registry): New.
5018 (class back_jt_path_registry): New.
5020 2021-09-10 liuhongt <hongtao.liu@intel.com>
5023 2021-09-01 liuhongt <hongtao.liu@intel.com>
5025 * emit-rtl.c (validate_subreg): Get rid of all float-int
5028 2021-09-10 Jakub Jelinek <jakub@redhat.com>
5030 * tree-core.h (enum omp_memory_order): Add OMP_MEMORY_ORDER_MASK,
5031 OMP_FAIL_MEMORY_ORDER_UNSPECIFIED, OMP_FAIL_MEMORY_ORDER_RELAXED,
5032 OMP_FAIL_MEMORY_ORDER_ACQUIRE, OMP_FAIL_MEMORY_ORDER_RELEASE,
5033 OMP_FAIL_MEMORY_ORDER_ACQ_REL, OMP_FAIL_MEMORY_ORDER_SEQ_CST and
5034 OMP_FAIL_MEMORY_ORDER_MASK enumerators.
5035 (OMP_FAIL_MEMORY_ORDER_SHIFT): Define.
5036 * gimple-pretty-print.c (dump_gimple_omp_atomic_load,
5037 dump_gimple_omp_atomic_store): Print [weak] for weak atomic
5039 * gimple.h (enum gf_mask): Change GF_OMP_ATOMIC_MEMORY_ORDER
5040 to 6-bit mask, adjust GF_OMP_ATOMIC_NEED_VALUE value and add
5042 (gimple_omp_atomic_weak_p, gimple_omp_atomic_set_weak): New inline
5044 * tree.h (OMP_ATOMIC_WEAK): Define.
5045 * tree-pretty-print.c (dump_omp_atomic_memory_order): Adjust for
5046 fail memory order being encoded in the same enum and also print
5047 fail clause if present.
5048 (dump_generic_node): Print weak clause if OMP_ATOMIC_WEAK.
5049 * gimplify.c (goa_stabilize_expr): Add target_expr and rhs arguments,
5050 handle pre_p == NULL case as a test mode that only returns value
5051 but doesn't change gimplify nor change anything otherwise, adjust
5052 recursive calls, add MODIFY_EXPR, ADDR_EXPR, COND_EXPR, TARGET_EXPR
5053 and CALL_EXPR handling, adjust COMPOUND_EXPR handling for
5054 __builtin_clear_padding calls, for !rhs gimplify as lvalue rather
5056 (gimplify_omp_atomic): Adjust goa_stabilize_expr caller. Handle
5057 COND_EXPR rhs. Set weak flag on gimple load/store for
5059 * omp-expand.c (omp_memory_order_to_fail_memmodel): New function.
5060 (omp_memory_order_to_memmodel): Adjust for fail clause encoded
5062 (expand_omp_atomic_cas): New function.
5063 (expand_omp_atomic_pipeline): Use omp_memory_order_to_fail_memmodel
5065 (expand_omp_atomic): Attempt to optimize atomic compare and exchange
5066 using expand_omp_atomic_cas.
5068 2021-09-10 Aldy Hernandez <aldyh@redhat.com>
5069 Michael Matz <matz@suse.de>
5071 * tree-pass.h (PROP_loop_opts_done): New.
5072 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
5073 Intersect with global range.
5074 * tree-ssa-loop.c (tree_ssa_loop_done): Set PROP_loop_opts_done.
5075 * tree-ssa-threadbackward.c
5076 (back_threader_profitability::profitable_path_p): Disable
5077 threading through latches until after loop optimizations have run.
5079 2021-09-10 David Faust <david.faust@oracle.com>
5081 * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32
5084 2021-09-10 David Faust <david.faust@oracle.com>
5086 * config/bpf/bpf-opts.h (bpf_isa_version): New enum.
5087 * config/bpf/bpf-protos.h (bpf_expand_cbranch): New.
5088 * config/bpf/bpf.c (bpf_option_override): Handle -mcpu option.
5089 (bpf_expand_cbranch): New function.
5090 * config/bpf/bpf.md (AM mode iterator): Conditionalize support for SI
5092 (zero_extendsidi2): Only use mov32 instruction if it is available.
5093 (SIM mode iterator): Conditionalize support for SI mode.
5094 (JM mode iterator): New.
5095 (cbranchdi4): Update name, use new JM iterator. Use bpf_expand_cbranch.
5096 (*branch_on_di): Update name, use new JM iterator.
5097 * config/bpf/bpf.opt: (mjmpext): New option.
5101 (bpf_isa): New enum.
5103 2021-09-10 David Faust <david.faust@oracle.com>
5105 * config/bpf/bpf.md (zero_extendhidi2): Add new output template
5106 for register-to-register extensions.
5107 (zero_extendqidi2): Likewise.
5109 2021-09-10 Richard Biener <rguenther@suse.de>
5111 PR middle-end/102273
5112 * internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.
5114 2021-09-10 Richard Biener <rguenther@suse.de>
5116 PR middle-end/102269
5117 * gimplify.c (is_var_need_auto_init): Empty types do not need
5120 2021-09-10 Richard Biener <rguenther@suse.de>
5122 * configure.ac (--with-stabs): Remove.
5123 * configure: Regenerate.
5124 * doc/install.texi: Remove --with-stabs documentation.
5126 2021-09-10 liuhongt <hongtao.liu@intel.com>
5128 * config/i386/avx512fp16intrin.h: (_mm512_cmp_ph_mask):
5130 (_mm512_mask_cmp_ph_mask): Likewise.
5131 (_mm512_cmp_round_ph_mask): Likewise.
5132 (_mm512_mask_cmp_round_ph_mask): Likewise.
5133 (_mm_cmp_sh_mask): Likewise.
5134 (_mm_mask_cmp_sh_mask): Likewise.
5135 (_mm_cmp_round_sh_mask): Likewise.
5136 (_mm_mask_cmp_round_sh_mask): Likewise.
5137 (_mm_comieq_sh): Likewise.
5138 (_mm_comilt_sh): Likewise.
5139 (_mm_comile_sh): Likewise.
5140 (_mm_comigt_sh): Likewise.
5141 (_mm_comige_sh): Likewise.
5142 (_mm_comineq_sh): Likewise.
5143 (_mm_ucomieq_sh): Likewise.
5144 (_mm_ucomilt_sh): Likewise.
5145 (_mm_ucomile_sh): Likewise.
5146 (_mm_ucomigt_sh): Likewise.
5147 (_mm_ucomige_sh): Likewise.
5148 (_mm_ucomineq_sh): Likewise.
5149 (_mm_comi_round_sh): Likewise.
5150 (_mm_comi_sh): Likewise.
5151 * config/i386/avx512fp16vlintrin.h (_mm_cmp_ph_mask): New intrinsic.
5152 (_mm_mask_cmp_ph_mask): Likewise.
5153 (_mm256_cmp_ph_mask): Likewise.
5154 (_mm256_mask_cmp_ph_mask): Likewise.
5155 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5156 * config/i386/i386-builtin.def: Add corresponding new builtins.
5157 * config/i386/i386-expand.c
5158 (ix86_expand_args_builtin): Handle new builtin types.
5159 (ix86_expand_round_builtin): Ditto.
5160 * config/i386/i386.md (ssevecmode): Add HF mode.
5161 (MODEFH): New mode iterator.
5162 * config/i386/sse.md
5163 (V48H_AVX512VL): New mode iterator to support HF vector modes.
5164 Ajdust corresponding description.
5165 (ssecmpintprefix): New.
5166 (VI12_AVX512VL): Adjust to support HF vector modes.
5167 (cmp_imm_predicate): Likewise.
5168 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
5170 (avx512f_vmcmp<mode>3<round_saeonly_name>): Likewise.
5171 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Likewise.
5172 (<sse>_<unord>comi<round_saeonly_name>): Likewise.
5174 2021-09-10 liuhongt <hongtao.liu@intel.com>
5176 * config/i386/avx512fp16intrin.h: (_mm512_max_ph): New intrinsic.
5177 (_mm512_mask_max_ph): Likewise.
5178 (_mm512_maskz_max_ph): Likewise.
5179 (_mm512_min_ph): Likewise.
5180 (_mm512_mask_min_ph): Likewise.
5181 (_mm512_maskz_min_ph): Likewise.
5182 (_mm512_max_round_ph): Likewise.
5183 (_mm512_mask_max_round_ph): Likewise.
5184 (_mm512_maskz_max_round_ph): Likewise.
5185 (_mm512_min_round_ph): Likewise.
5186 (_mm512_mask_min_round_ph): Likewise.
5187 (_mm512_maskz_min_round_ph): Likewise.
5188 (_mm_max_sh): Likewise.
5189 (_mm_mask_max_sh): Likewise.
5190 (_mm_maskz_max_sh): Likewise.
5191 (_mm_min_sh): Likewise.
5192 (_mm_mask_min_sh): Likewise.
5193 (_mm_maskz_min_sh): Likewise.
5194 (_mm_max_round_sh): Likewise.
5195 (_mm_mask_max_round_sh): Likewise.
5196 (_mm_maskz_max_round_sh): Likewise.
5197 (_mm_min_round_sh): Likewise.
5198 (_mm_mask_min_round_sh): Likewise.
5199 (_mm_maskz_min_round_sh): Likewise.
5200 * config/i386/avx512fp16vlintrin.h (_mm_max_ph): New intrinsic.
5201 (_mm256_max_ph): Likewise.
5202 (_mm_mask_max_ph): Likewise.
5203 (_mm256_mask_max_ph): Likewise.
5204 (_mm_maskz_max_ph): Likewise.
5205 (_mm256_maskz_max_ph): Likewise.
5206 (_mm_min_ph): Likewise.
5207 (_mm256_min_ph): Likewise.
5208 (_mm_mask_min_ph): Likewise.
5209 (_mm256_mask_min_ph): Likewise.
5210 (_mm_maskz_min_ph): Likewise.
5211 (_mm256_maskz_min_ph): Likewise.
5212 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5213 * config/i386/i386-builtin.def: Add corresponding new builtins.
5214 * config/i386/i386-expand.c
5215 (ix86_expand_args_builtin): Handle new builtin types.
5216 * config/i386/sse.md
5217 (<code><mode>3<mask_name><round_saeonly_name>): Adjust to
5218 support HF vector modes.
5219 (*<code><mode>3<mask_name><round_saeonly_name>): Likewise.
5220 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
5222 (<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
5224 * config/i386/subst.md (round_saeonly_mode512bit_condition):
5225 Adjust for HF vector modes.
5227 2021-09-10 Liu, Hongtao <hongtao.liu@intel.com>
5229 * config/i386/avx512fp16intrin.h (_mm_add_sh): New intrinsic.
5230 (_mm_mask_add_sh): Likewise.
5231 (_mm_maskz_add_sh): Likewise.
5232 (_mm_sub_sh): Likewise.
5233 (_mm_mask_sub_sh): Likewise.
5234 (_mm_maskz_sub_sh): Likewise.
5235 (_mm_mul_sh): Likewise.
5236 (_mm_mask_mul_sh): Likewise.
5237 (_mm_maskz_mul_sh): Likewise.
5238 (_mm_div_sh): Likewise.
5239 (_mm_mask_div_sh): Likewise.
5240 (_mm_maskz_div_sh): Likewise.
5241 (_mm_add_round_sh): Likewise.
5242 (_mm_mask_add_round_sh): Likewise.
5243 (_mm_maskz_add_round_sh): Likewise.
5244 (_mm_sub_round_sh): Likewise.
5245 (_mm_mask_sub_round_sh): Likewise.
5246 (_mm_maskz_sub_round_sh): Likewise.
5247 (_mm_mul_round_sh): Likewise.
5248 (_mm_mask_mul_round_sh): Likewise.
5249 (_mm_maskz_mul_round_sh): Likewise.
5250 (_mm_div_round_sh): Likewise.
5251 (_mm_mask_div_round_sh): Likewise.
5252 (_mm_maskz_div_round_sh): Likewise.
5253 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5254 * config/i386/i386-builtin.def: Add corresponding new builtins.
5255 * config/i386/i386-expand.c
5256 (ix86_expand_round_builtin): Handle new builtins.
5257 * config/i386/sse.md (VF_128): Change description.
5258 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>):
5259 Adjust to support HF vector modes.
5260 (<sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>):
5263 2021-09-10 H.J. Lu <hjl.tools@gmail.com>
5265 * config/i386/i386-expand.c
5266 (ix86_avx256_split_vector_move_misalign): Handle V16HF mode.
5267 * config/i386/i386.c
5268 (ix86_preferred_simd_mode): Handle HF mode.
5269 * config/i386/sse.md (V_256H): New mode iterator.
5270 (avx_vextractf128<mode>): Use it.
5271 (VEC_INIT_MODE): Align vector HFmode condition to vector
5272 HImodes since there're no real HF instruction used.
5273 (VEC_INIT_HALF_MODE): Ditto.
5275 (VIHF_AVX512BW): Ditto.
5276 (*vec_extracthf): Ditto.
5277 (VEC_EXTRACT_MODE): Ditto.
5279 2021-09-10 Richard Biener <rguenther@suse.de>
5282 * config/dbx.h: Remove.
5283 * config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
5284 * config/lynx.h: Likewise.
5286 2021-09-10 liuhongt <hongtao.liu@intel.com>
5288 * config/i386/i386-expand.c (ix86_expand_copysign): Expand
5289 right into ANDNOT + AND + IOR, using paradoxical subregs.
5290 (ix86_split_copysign_const): Remove.
5291 (ix86_split_copysign_var): Ditto.
5292 * config/i386/i386-protos.h (ix86_split_copysign_const): Dotto.
5293 (ix86_split_copysign_var): Ditto.
5294 * config/i386/i386.md (@copysign<mode>3_const): Ditto.
5295 (@copysign<mode>3_var): Ditto.
5297 2021-09-09 qing zhao <qing.zhao@oracle.com>
5299 * builtins.c (expand_builtin_memset): Make external visible.
5300 * builtins.h (expand_builtin_memset): Declare extern.
5301 * common.opt (ftrivial-auto-var-init=): New option.
5302 * doc/extend.texi: Document the uninitialized attribute.
5303 * doc/invoke.texi: Document -ftrivial-auto-var-init.
5304 * flag-types.h (enum auto_init_type): New enumerated type
5306 * gimple-fold.c (clear_padding_type): Add one new parameter.
5307 (clear_padding_union): Likewise.
5308 (clear_padding_emit_loop): Likewise.
5309 (clear_type_padding_in_mask): Likewise.
5310 (gimple_fold_builtin_clear_padding): Handle this new parameter.
5311 * gimplify.c (gimple_add_init_for_auto_var): New function.
5312 (gimple_add_padding_init_for_auto_var): New function.
5313 (is_var_need_auto_init): New function.
5314 (gimplify_decl_expr): Add initialization to automatic variables per
5316 (gimplify_call_expr): Add one new parameter for call to
5317 __builtin_clear_padding.
5318 (gimplify_init_constructor): Add padding initialization in the end.
5319 * internal-fn.c (INIT_PATTERN_VALUE): New macro.
5320 (expand_DEFERRED_INIT): New function.
5321 * internal-fn.def (DEFERRED_INIT): New internal function.
5322 * tree-cfg.c (verify_gimple_call): Verify calls to .DEFERRED_INIT.
5323 * tree-sra.c (generate_subtree_deferred_init): New function.
5324 (scan_function): Avoid setting cannot_scalarize_away_bitmap for
5325 calls to .DEFERRED_INIT.
5326 (sra_modify_deferred_init): New function.
5327 (sra_modify_function_body): Handle calls to DEFERRED_INIT specially.
5328 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
5329 * tree-ssa-uninit.c (warn_uninit): Handle calls to DEFERRED_INIT
5331 (check_defs): Likewise.
5332 (warn_uninitialized_vars): Likewise.
5333 * tree-ssa.c (ssa_undefined_value_p): Likewise.
5334 * tree.c (build_common_builtin_nodes): Build tree node for
5335 BUILT_IN_CLEAR_PADDING when needed.
5337 2021-09-09 Richard Biener <rguenther@suse.de>
5339 * tree-ssa-loop-im.c (fill_always_executed_in_1): Walk
5342 2021-09-09 Richard Biener <rguenther@suse.de>
5344 * tree-ssa-loop-im.c (fill_always_executed_in_1): Integrate
5345 DOM walk from get_loop_body_in_dom_order using a worklist
5348 2021-09-09 liuhongt <hongtao.liu@intel.com>
5350 * config.gcc: Add avx512fp16vlintrin.h.
5351 * config/i386/avx512fp16intrin.h: (_mm512_add_ph): New intrinsic.
5352 (_mm512_mask_add_ph): Likewise.
5353 (_mm512_maskz_add_ph): Likewise.
5354 (_mm512_sub_ph): Likewise.
5355 (_mm512_mask_sub_ph): Likewise.
5356 (_mm512_maskz_sub_ph): Likewise.
5357 (_mm512_mul_ph): Likewise.
5358 (_mm512_mask_mul_ph): Likewise.
5359 (_mm512_maskz_mul_ph): Likewise.
5360 (_mm512_div_ph): Likewise.
5361 (_mm512_mask_div_ph): Likewise.
5362 (_mm512_maskz_div_ph): Likewise.
5363 (_mm512_add_round_ph): Likewise.
5364 (_mm512_mask_add_round_ph): Likewise.
5365 (_mm512_maskz_add_round_ph): Likewise.
5366 (_mm512_sub_round_ph): Likewise.
5367 (_mm512_mask_sub_round_ph): Likewise.
5368 (_mm512_maskz_sub_round_ph): Likewise.
5369 (_mm512_mul_round_ph): Likewise.
5370 (_mm512_mask_mul_round_ph): Likewise.
5371 (_mm512_maskz_mul_round_ph): Likewise.
5372 (_mm512_div_round_ph): Likewise.
5373 (_mm512_mask_div_round_ph): Likewise.
5374 (_mm512_maskz_div_round_ph): Likewise.
5375 * config/i386/avx512fp16vlintrin.h: New header.
5376 * config/i386/i386-builtin-types.def (V16HF, V8HF, V32HF):
5377 Add new builtin types.
5378 * config/i386/i386-builtin.def: Add corresponding builtins.
5379 * config/i386/i386-expand.c
5380 (ix86_expand_args_builtin): Handle new builtin types.
5381 (ix86_expand_round_builtin): Likewise.
5382 * config/i386/immintrin.h: Include avx512fp16vlintrin.h
5383 * config/i386/sse.md (VFH): New mode_iterator.
5385 (avx512fmaskmode): Add HF vector modes.
5386 (avx512fmaskhalfmode): Likewise.
5387 (<plusminus_insn><mode>3<mask_name><round_name>): Adjust to for
5389 (*<plusminus_insn><mode>3<mask_name><round_name>): Likewise.
5390 (mul<mode>3<mask_name><round_name>): Likewise.
5391 (*mul<mode>3<mask_name><round_name>): Likewise.
5392 (div<mode>3): Likewise.
5393 (<sse>_div<mode>3<mask_name><round_name>): Likewise.
5394 * config/i386/subst.md (SUBST_V): Add HF vector modes.
5395 (SUBST_A): Likewise.
5396 (round_mode512bit_condition): Adjust for V32HFmode.
5398 2021-09-09 liuhongt <hongtao.liu@intel.com>
5401 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
5402 (reduc_plus_scal_v4sf): .. this, New define_expand.
5403 (reduc_plus_scal_v2df): .. and this, New define_expand.
5405 2021-09-09 liuhongt <hongtao.liu@intel.com>
5408 * config/i386/sse.md (*vec_extract<mode><ssescalarmodelower>_valign):
5411 2021-09-08 Jonathan Wakely <jwakely@redhat.com>
5414 * doc/trouble.texi (Copy Assignment): Fix description of
5415 behaviour and fix code in example.
5417 2021-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5420 * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use
5421 r11 instead of r12 for restoring CR.
5423 2021-09-08 Jakub Jelinek <jakub@redhat.com>
5424 liuhongt <hongtao.liu@intel.com>
5427 * config/i386/i386.md (@xorsign<mode>3_1): Remove.
5428 * config/i386/i386-expand.c (ix86_expand_xorsign): Expand right away
5429 into AND with mask and XOR, using paradoxical subregs.
5430 (ix86_split_xorsign): Remove.
5431 * config/i386/i386-protos.h (ix86_split_xorsign): Remove.
5433 2021-09-08 Di Zhao <dizhao@os.amperecomputing.com>
5435 * tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
5437 2021-09-08 Jakub Jelinek <jakub@redhat.com>
5440 * config/i386/i386.md (xorsign<mode>3): If operands[1] is equal to
5441 operands[2], emit abs<mode>2 instead.
5442 (@xorsign<mode>3_1): Add early-clobbers for output operand, enable
5443 first alternative even for avx, add another alternative with
5444 =&Yv <- 0, Yv, Yvm constraints.
5445 * config/i386/i386-expand.c (ix86_split_xorsign): If op0 is equal
5446 to op1, emit vpandn instead.
5448 2021-09-08 liuhongt <hongtao.liu@intel.com>
5450 * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic.
5451 (_mm256_set_ph): Likewise.
5452 (_mm512_set_ph): Likewise.
5453 (_mm_setr_ph): Likewise.
5454 (_mm256_setr_ph): Likewise.
5455 (_mm512_setr_ph): Likewise.
5456 (_mm_set1_ph): Likewise.
5457 (_mm256_set1_ph): Likewise.
5458 (_mm512_set1_ph): Likewise.
5459 (_mm_setzero_ph): Likewise.
5460 (_mm256_setzero_ph): Likewise.
5461 (_mm512_setzero_ph): Likewise.
5462 (_mm_set_sh): Likewise.
5463 (_mm_load_sh): Likewise.
5464 (_mm_store_sh): Likewise.
5465 * config/i386/i386-builtin-types.def (V8HF): New type.
5466 (DEF_FUNCTION_TYPE (V8HF, V8HI)): New builtin function type
5467 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
5468 Support vector HFmodes.
5469 (ix86_expand_vector_init_one_nonzero): Likewise.
5470 (ix86_expand_vector_init_one_var): Likewise.
5471 (ix86_expand_vector_init_interleave): Likewise.
5472 (ix86_expand_vector_init_general): Likewise.
5473 (ix86_expand_vector_set): Likewise.
5474 (ix86_expand_vector_extract): Likewise.
5475 (ix86_expand_vector_init_concat): Likewise.
5476 (ix86_expand_sse_movcc): Handle vector HFmodes.
5477 (ix86_expand_vector_set_var): Ditto.
5478 * config/i386/i386-modes.def: Add HF vector modes in comment.
5479 * config/i386/i386.c (classify_argument): Add HF vector modes.
5480 (ix86_hard_regno_mode_ok): Allow HF vector modes for AVX512FP16.
5481 (ix86_vector_mode_supported_p): Likewise.
5482 (ix86_set_reg_reg_cost): Handle vector HFmode.
5483 (ix86_get_ssemov): Handle vector HFmode.
5484 (function_arg_advance_64): Pass unamed V16HFmode and V32HFmode
5486 (function_arg_advance_32): Pass V8HF/V16HF/V32HF by sse reg for 32bit
5488 (function_arg_advance_32): Ditto.
5489 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): New.
5490 (VALID_AVX256_REG_OR_OI_MODE): Rename to ..
5491 (VALID_AVX256_REG_OR_OI_VHF_MODE): .. this, and add V16HF.
5492 (VALID_SSE2_REG_VHF_MODE): New.
5493 (VALID_AVX512VL_128_REG_MODE): Add V8HF and TImode.
5494 (SSE_REG_MODE_P): Add vector HFmode.
5495 * config/i386/i386.md (mode): Add HF vector modes.
5496 (MODE_SIZE): Likewise.
5497 (ssemodesuffix): Add ph suffix for HF vector modes.
5498 * config/i386/sse.md (VFH_128): New mode iterator.
5499 (VMOVE): Adjust for HF vector modes.
5501 (V_256_512): Likewise.
5503 (avx512fmaskmode): Likewise.
5504 (shuffletype): Likewise.
5505 (sseinsnmode): Likewise.
5506 (ssedoublevecmode): Likewise.
5507 (ssehalfvecmode): Likewise.
5508 (ssehalfvecmodelower): Likewise.
5509 (ssePScmode): Likewise.
5510 (ssescalarmode): Likewise.
5511 (ssescalarmodelower): Likewise.
5512 (sseintprefix): Likewise.
5514 (bcstscalarsuff): Likewise.
5515 (xtg_mode): Likewise.
5516 (VI12HF_AVX512VL): New mode_iterator.
5517 (VF_AVX512FP16): Likewise.
5519 (VIHF_256): Likewise.
5520 (VIHF_AVX512BW): Likewise.
5521 (V16_256): Likewise.
5522 (V32_512): Likewise.
5523 (sseintmodesuffix): New mode_attr.
5524 (sse): Add scalar and vector HFmodes.
5525 (ssescalarmode): Add vector HFmode mapping.
5526 (ssescalarmodesuffix): Add sh suffix for HFmode.
5527 (*<sse>_vm<insn><mode>3): Use VFH_128.
5528 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
5529 (*ieee_<ieee_maxmin><mode>3): Likewise.
5530 (<avx512>_blendm<mode>): New define_insn.
5531 (vec_setv8hf): New define_expand.
5532 (vec_set<mode>_0): New define_insn for HF vector set.
5533 (*avx512fp16_movsh): Likewise.
5534 (avx512fp16_movsh): Likewise.
5535 (vec_extract_lo_v32hi): Rename to ...
5536 (vec_extract_lo_<mode>): ... this, and adjust to allow HF
5538 (vec_extract_hi_v32hi): Likewise.
5539 (vec_extract_hi_<mode>): Likewise.
5540 (vec_extract_lo_v16hi): Likewise.
5541 (vec_extract_lo_<mode>): Likewise.
5542 (vec_extract_hi_v16hi): Likewise.
5543 (vec_extract_hi_<mode>): Likewise.
5544 (vec_set_hi_v16hi): Likewise.
5545 (vec_set_hi_<mode>): Likewise.
5546 (vec_set_lo_v16hi): Likewise.
5547 (vec_set_lo_<mode>): Likewise.
5548 (*vec_extract<mode>_0): New define_insn_and_split for HF
5550 (*vec_extracthf): New define_insn.
5551 (VEC_EXTRACT_MODE): Add HF vector modes.
5552 (PINSR_MODE): Add V8HF.
5553 (sse2p4_1): Likewise.
5554 (pinsr_evex_isa): Likewise.
5555 (<sse2p4_1>_pinsr<ssemodesuffix>): Adjust to support
5556 insert for V8HFmode.
5557 (pbroadcast_evex_isa): Add HF vector modes.
5558 (AVX2_VEC_DUP_MODE): Likewise.
5559 (VEC_INIT_MODE): Likewise.
5560 (VEC_INIT_HALF_MODE): Likewise.
5561 (avx2_pbroadcast<mode>): Adjust to support HF vector mode
5563 (avx2_pbroadcast<mode>_1): Likewise.
5564 (<avx512>_vec_dup<mode>_1): Likewise.
5565 (<avx512>_vec_dup<mode><mask_name>): Likewise.
5566 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>):
5569 2021-09-08 Guo, Xuepeng <xuepeng.guo@intel.com>
5570 H.J. Lu <hongjiu.lu@intel.com>
5571 Liu Hongtao <hongtao.liu@intel.com>
5572 Wang Hongyu <hongyu.wang@intel.com>
5573 Xu Dianhong <dianhong.xu@intel.com>
5575 * common/config/i386/cpuinfo.h (get_available_features):
5576 Detect FEATURE_AVX512FP16.
5577 * common/config/i386/i386-common.c
5578 (OPTION_MASK_ISA_AVX512FP16_SET,
5579 OPTION_MASK_ISA_AVX512FP16_UNSET,
5580 OPTION_MASK_ISA2_AVX512FP16_SET,
5581 OPTION_MASK_ISA2_AVX512FP16_UNSET): New.
5582 (OPTION_MASK_ISA2_AVX512BW_UNSET,
5583 OPTION_MASK_ISA2_AVX512BF16_UNSET): Add AVX512FP16.
5584 (ix86_handle_option): Handle -mavx512fp16.
5585 * common/config/i386/i386-cpuinfo.h (enum processor_features):
5586 Add FEATURE_AVX512FP16.
5587 * common/config/i386/i386-isas.h: Add entry for AVX512FP16.
5588 * config.gcc: Add avx512fp16intrin.h.
5589 * config/i386/avx512fp16intrin.h: New intrinsic header.
5590 * config/i386/cpuid.h: Add bit_AVX512FP16.
5591 * config/i386/i386-builtin-types.def: (FLOAT16): New primitive type.
5592 * config/i386/i386-builtins.c: Support _Float16 type for i386
5594 (ix86_register_float16_builtin_type): New function.
5595 (ix86_float16_type_node): New.
5596 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5598 * config/i386/i386-expand.c (ix86_expand_branch): Support
5600 (ix86_prepare_fp_compare_args): Adjust TARGET_SSE_MATH &&
5601 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
5602 (ix86_expand_fp_movcc): Ditto.
5603 * config/i386/i386-isa.def: Add PTA define for AVX512FP16.
5604 * config/i386/i386-options.c (isa2_opts): Add -mavx512fp16.
5605 (ix86_valid_target_attribute_inner_p): Add avx512fp16 attribute.
5606 * config/i386/i386.c (ix86_get_ssemov): Use
5607 vmovdqu16/vmovw/vmovsh for HFmode/HImode scalar or vector.
5608 (ix86_get_excess_precision): Use
5609 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when TARGET_AVX512FP16
5611 (sse_store_index): Use SFmode cost for HFmode cost.
5612 (inline_memory_move_cost): Add HFmode, and perfer SSE cost over
5613 GPR cost for HFmode.
5614 (ix86_hard_regno_mode_ok): Allow HImode in sse register.
5615 (ix86_mangle_type): Add manlging for _Float16 type.
5616 (inline_secondary_memory_needed): No memory is needed for
5617 16bit movement between gpr and sse reg under
5619 (ix86_multiplication_cost): Adjust TARGET_SSE_MATH &&
5620 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
5621 (ix86_division_cost): Ditto.
5622 (ix86_rtx_costs): Ditto.
5623 (ix86_add_stmt_cost): Ditto.
5624 (ix86_optab_supported_p): Ditto.
5625 * config/i386/i386.h (VALID_AVX512F_SCALAR_MODE): Add HFmode.
5626 (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Add HFmode.
5627 (PTA_SAPPHIRERAPIDS): Add PTA_AVX512FP16.
5628 * config/i386/i386.md (mode): Add HFmode.
5629 (MODE_SIZE): Add HFmode.
5630 (isa): Add avx512fp16.
5631 (enabled): Handle avx512fp16.
5632 (ssemodesuffix): Add sh suffix for HFmode.
5633 (comm): Add mult, div.
5634 (plusminusmultdiv): New code iterator.
5635 (insn): Add mult, div.
5636 (*movhf_internal): Adjust for avx512fp16 instruction.
5637 (*movhi_internal): Ditto.
5638 (*cmpi<unord>hf): New define_insn for HFmode.
5639 (*ieee_s<ieee_maxmin>hf3): Likewise.
5640 (extendhf<mode>2): Likewise.
5641 (trunc<mode>hf2): Likewise.
5642 (float<floatunssuffix><mode>hf2): Likewise.
5643 (*<insn>hf): Likewise.
5644 (cbranchhf4): New expander.
5645 (movhfcc): Likewise.
5646 (<insn>hf3): Likewise.
5649 * config/i386/i386.opt: Add mavx512fp16.
5650 * config/i386/immintrin.h: Include avx512fp16intrin.h.
5651 * doc/invoke.texi: Add mavx512fp16.
5652 * doc/extend.texi: Add avx512fp16 Usage Notes.
5654 2021-09-08 liuhongt <hongtao.liu@intel.com>
5656 * common.opt: Support -fexcess-precision=16.
5657 * config/aarch64/aarch64.c (aarch64_excess_precision): Return
5658 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when
5659 EXCESS_PRECISION_TYPE_FLOAT16.
5660 * config/arm/arm.c (arm_excess_precision): Ditto.
5661 * config/i386/i386.c (ix86_get_excess_precision): Ditto.
5662 * config/m68k/m68k.c (m68k_excess_precision): Issue an error
5663 when EXCESS_PRECISION_TYPE_FLOAT16.
5664 * config/s390/s390.c (s390_excess_precision): Ditto.
5665 * coretypes.h (enum excess_precision_type): Add
5666 EXCESS_PRECISION_TYPE_FLOAT16.
5667 * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Update documents.
5668 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): Ditto.
5669 * doc/extend.texi (Half-Precision): Document
5670 -fexcess-precision=16.
5671 * flag-types.h (enum excess_precision): Add
5672 EXCESS_PRECISION_FLOAT16.
5673 * target.def (excess_precision): Update document.
5674 * tree.c (excess_precision_type): Set excess_precision_type to
5675 EXCESS_PRECISION_FLOAT16 when -fexcess-precision=16.
5677 2021-09-08 liuhongt <hongtao.liu@intel.com>
5679 * doc/extend.texi: (@node Floating Types): Adjust the wording.
5680 (@node Half-Precision): Ditto.
5682 2021-09-07 Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
5685 * config/xtensa/xtensa.c (xtensa_emit_move_sequence): Add
5686 'CONST_INT_P (src)' to the condition of the block that tries to
5687 eliminate literal when loading integer contant.
5689 2021-09-07 David Faust <david.faust@oracle.com>
5691 * doc/extend.texi (BPF Type Attributes) New node.
5692 Document new preserve_access_index attribute.
5693 Document new preserve_access_index builtin.
5694 * doc/invoke.texi: Document -mco-re and -mno-co-re options.
5696 2021-09-07 David Faust <david.faust@oracle.com>
5698 * config/bpf/bpf.c: Adjust includes.
5699 (bpf_handle_preserve_access_index_attribute): New function.
5700 (bpf_attribute_table): Use it here.
5701 (bpf_builtins): Add BPF_BUILTIN_PRESERVE_ACCESS_INDEX.
5702 (bpf_option_override): Handle "-mco-re" option.
5703 (bpf_asm_init_sections): New.
5704 (TARGET_ASM_INIT_SECTIONS): Redefine.
5705 (bpf_file_end): New.
5706 (TARGET_ASM_FILE_END): Redefine.
5707 (bpf_init_builtins): Add "__builtin_preserve_access_index".
5708 (bpf_core_compute, bpf_core_get_index): New.
5709 (is_attr_preserve_access): New.
5710 (bpf_expand_builtin): Handle new builtins.
5711 (bpf_core_newdecl, bpf_core_is_maybe_aggregate_access): New.
5712 (bpf_core_walk): New.
5713 (bpf_resolve_overloaded_builtin): New.
5714 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Redefine.
5716 (pass_bpf_core_attr): New RTL pass.
5717 * config/bpf/bpf-passes.def: New file.
5718 * config/bpf/bpf-protos.h (make_pass_bpf_core_attr): New.
5719 * config/bpf/coreout.c: New file.
5720 * config/bpf/coreout.h: Likewise.
5721 * config/bpf/t-bpf (TM_H): Add $(srcdir)/config/bpf/coreout.h.
5722 (coreout.o): New rule.
5723 (PASSES_EXTRA): Add $(srcdir)/config/bpf/bpf-passes.def.
5724 * config.gcc (bpf): Add coreout.h to extra_headers.
5725 Add coreout.o to extra_objs.
5726 Add $(srcdir)/config/bpf/coreout.c to target_gtfiles.
5728 2021-09-07 David Faust <david.faust@oracle.com>
5730 * btfout.c (get_btf_id): Function is no longer static.
5731 * ctfc.h: Expose it here.
5733 2021-09-07 David Faust <david.faust@oracle.com>
5735 * ctfc.c (ctf_lookup_tree_type): New function.
5738 2021-09-07 David Faust <david.faust@oracle.com>
5740 * ctfc.c (ctf_dtd_lookup): Function is no longer static.
5741 * ctfc.h: Analogous change.
5743 2021-09-07 David Faust <david.faust@oracle.com>
5745 * dwarf2out.c (lookup_type_die): Function is no longer static.
5746 * dwarf2out.h: Expose it here.
5748 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
5750 * dwarf2ctf.c (ctf_debug_finalize): Make it static.
5751 (ctf_debug_early_finish): New definition.
5752 (ctf_debug_finish): Likewise.
5753 * dwarf2ctf.h (ctf_debug_finalize): Remove declaration.
5754 (ctf_debug_early_finish): New declaration.
5755 (ctf_debug_finish): Likewise.
5756 * dwarf2out.c (dwarf2out_finish): Invoke ctf_debug_finish.
5757 (dwarf2out_early_finish): Invoke ctf_debug_early_finish.
5759 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
5761 * config/bpf/bpf.c (bpf_option_override): For BPF backend, disable LTO
5762 support when compiling for CO-RE.
5763 * config/bpf/bpf.opt: Add new command line option -mco-re.
5765 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
5767 * flag-types.h (enum debug_info_type): Add new enum
5768 DINFO_TYPE_BTF_WITH_CORE.
5769 (BTF_WITH_CORE_DEBUG): New bitmask.
5770 * flags.h (btf_with_core_debuginfo_p): New declaration.
5771 * opts.c (btf_with_core_debuginfo_p): New definition.
5773 2021-09-07 Jason Merrill <jason@redhat.com>
5775 * tree.h (error_operand_p): Change to inline function.
5777 2021-09-07 Aldy Hernandez <aldyh@redhat.com>
5779 * tree-ssa-threadedge.c (forwarder_block_p): Rename to...
5780 (empty_block_with_phis_p): ...this.
5781 (potentially_threadable_block): Same.
5782 (jump_threader::thread_through_normal_block): Same.
5784 2021-09-07 Eric Botcazou <ebotcazou@adacore.com>
5787 * dwarf2out.c (mark_base_types): New overloaded function.
5788 (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
5789 as the compilation unit, and call move_marked_base_types afterward.
5791 2021-09-07 H.J. Lu <hjl.tools@gmail.com>
5794 * config/i386/i386-expand.c (ix86_expand_convert_uns_sisf_sse):
5796 (ix86_expand_vector_convert_uns_vsivsf): Likewise.
5798 2021-09-07 Richard Biener <rguenther@suse.de>
5800 PR tree-optimization/102226
5801 * tree-vect-loop.c (vect_transform_cycle_phi): Record
5802 the converted value for the epilogue PHI use.
5804 2021-09-07 Martin Liska <mliska@suse.cz>
5806 PR gcov-profile/80223
5807 * ipa-inline.c (can_inline_edge_p): Similarly to sanitizer
5808 options, do not inline when no_profile_instrument_function
5809 attributes are different in early inliner. It's fine to inline
5810 it after PGO instrumentation.
5812 2021-09-07 Richard Biener <rguenther@suse.de>
5814 PR tree-optimization/101555
5815 * tree-ssa-pre.c (translate_vuse_through_block): Do not
5816 perform an alias walk to determine the validity of the
5817 mem at the start of the block which is already guaranteed
5818 by means of prune_clobbered_mems.
5819 (phi_translate_1): Pass edge to translate_vuse_through_block.
5821 2021-09-07 Xionghu Luo <luoxhu@linux.ibm.com>
5824 * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
5825 (remainder<mode>3): Likewise.
5827 2021-09-07 YunQiang Su <yunqiang.su@cipunited.com>
5829 * config/mips/mips.c (mips_file_start): add .module for
5832 2021-09-06 Roger Sayle <roger@nextmovesoftware.com>
5834 * wide-int.cc (wi::clz): Reorder tests to ensure the result
5835 is zero for all negative values.
5837 2021-09-06 Tobias Burnus <tobias@codesourcery.com>
5839 * doc/invoke.texi (-foffload-options): Fix @opindex.
5841 2021-09-06 H.J. Lu <hjl.tools@gmail.com>
5844 * config/i386/i386-expand.c (ix86_split_xorsign): Use operands[2].
5845 * config/i386/i386.md (@xorsign<mode>3_1): Add non-destructive
5846 source alternative for AVX.
5848 2021-09-06 liuhongt <hongtao.liu@intel.com>
5850 PR middle-end/102182
5851 * optabs.c (expand_fix): Add from1 to avoid from being
5854 2021-09-06 Eric Botcazou <ebotcazou@adacore.com>
5856 * dwarf2out.c (modified_type_die): Deal with all array types earlier
5857 and use local variable consistently throughout the function.
5859 2021-09-06 Jakub Jelinek <jakub@redhat.com>
5861 PR tree-optimization/102207
5862 * match.pd: Don't demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
5863 were promoted from signed to wider unsigned type.
5865 2021-09-06 Andrew Pinski <apinski@marvell.com>
5867 PR tree-optimization/63184
5868 * match.pd: Add simplification of pointer_diff of two pointer_plus
5869 with addr_expr in the first operand of each pointer_plus.
5870 Add simplificatoin of ne/eq of two pointer_plus with addr_expr
5871 in the first operand of each pointer_plus.
5873 2021-09-06 Richard Biener <rguenther@suse.de>
5875 PR tree-optimization/102176
5876 * tree-vect-slp.c (vect_slp_gather_vectorized_scalar_stmts):
5878 (vect_bb_slp_scalar_cost): Use the computed set of
5879 vectorized scalar stmts instead of relying on the out-of-date
5880 and not accurate PURE_SLP_STMT.
5881 (vect_bb_vectorization_profitable_p): Compute the set
5882 of vectorized scalar stmts.
5884 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
5886 * gimple-range-path.cc (path_range_query::range_of_stmt): Remove
5887 GIMPLE_COND special casing.
5888 (path_range_query::range_defined_in_block): Use range_of_stmt
5889 instead of calling fold_range directly.
5891 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
5893 * gimple-range-path.cc (path_range_query::range_of_expr): Set
5894 m_undefined_path when appropriate.
5895 (path_range_query::internal_range_of_expr): Copy from range_of_expr.
5896 (path_range_query::unreachable_path_p): New.
5897 (path_range_query::precompute_ranges): Set m_undefined_path.
5898 * gimple-range-path.h (path_range_query::unreachable_path_p): New.
5899 (path_range_query::internal_range_of_expr): New.
5900 * tree-ssa-threadbackward.c (back_threader::find_taken_edge_cond):
5901 Use unreachable_path_p.
5903 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
5905 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
5906 Remove argument and call find_taken_edge.
5907 (back_threader::resolve_phi): Do not calculate taken edge before
5908 calling maybe_register_path.
5909 (back_threader::find_paths_to_names): Same.
5911 2021-09-05 Jeff Law <jlaw@localhost.localdomain>
5913 * config/h8300/h8300.md (QHSI2 mode iterator): New mode iterator.
5914 * config/h8300/testcompare.md (store_c): Update name, use new
5916 (store_neg_c, store_shifted_c): New patterns.
5918 2021-09-03 Segher Boessenkool <segher@kernel.crashing.org>
5921 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): On ELFv2 use r11
5922 instead of r12 for CR save, in all cases.
5924 2021-09-03 Andrew Pinski <apinski@marvell.com>
5926 * config/aarch64/aarch64-sve-builtins.cc (register_vector_type):
5927 Handle error_mark_node as the type of the type_decl.
5929 2021-09-03 Andrew Pinski <apinski@marvell.com>
5931 * config/aarch64/aarch64-builtins.c (struct aarch64_simd_type_info):
5933 (aarch64_simd_types): Likewise.
5934 (aarch64_simd_intOI_type_node): Likewise.
5935 (aarch64_simd_intCI_type_node): Likewise.
5936 (aarch64_simd_intXI_type_node): Likewise.
5937 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Likewise.
5938 (aarch64_fp16_ptr_type_node): Likewise.
5939 (aarch64_bf16_type_node): Likewise.
5940 (aarch64_bf16_ptr_type_node): Likewise.
5942 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
5944 * range-op.cc (operator_minus::op1_op2_relation_effect): Abstract
5946 (minus_op1_op2_relation_effect): ...here.
5947 (class operator_pointer_diff): New.
5948 (operator_pointer_diff::op1_op2_relation_effect): Call
5949 minus_op1_op2_relation_effect.
5950 (integral_table::integral_table): Add entry for POINTER_DIFF_EXPR.
5952 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
5954 * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
5955 Add may_peel_loop_headers.
5956 (back_threader_registry::thread_through_all_blocks): Same.
5957 (try_thread_blocks): Pass may_peel_loop_headers argument.
5958 (pass_early_thread_jumps::execute): Same.
5960 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
5962 * tree-ssa-threadedge.c (has_phis_p): New.
5963 (forwarder_block_p): New.
5964 (potentially_threadable_block): Call forwarder_block_p.
5965 (jump_threader::thread_around_empty_blocks): Call has_phis_p.
5966 (jump_threader::thread_through_normal_block): Call
5969 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
5971 * tree-ssa-threadbackward.c (back_threader::dump): New.
5972 (back_threader::debug): New.
5973 (back_threader_profitability::profitable_path_p): Dump blocks
5974 even if we are bailing early.
5976 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
5978 * tree-ssa-threadupdate.c (cancel_thread): New.
5979 (jump_thread_path_registry::thread_block_1): Use cancel_thread.
5980 (jump_thread_path_registry::mark_threaded_blocks): Same.
5981 (jump_thread_path_registry::register_jump_thread): Same.
5983 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
5985 * tree-ssa-threadedge.c (jt_state::push): Only call methods for
5986 which objects are available.
5987 (jt_state::pop): Same.
5988 (jt_state::register_equiv): Same.
5989 (jt_state::register_equivs_on_edge): Same.
5991 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
5993 * tree-ssa-threadedge.c (jump_threader::thread_across_edge):
5994 Move pop until after a thread is registered.
5996 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
5998 * tree-ssa-threadupdate.c (debug): New.
6000 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6002 * gimple-range-trace.cc (push_dump_file::push_dump_file): New.
6003 (push_dump_file::~push_dump_file): New.
6004 (dump_ranger): Change dump_file temporarily while dumping
6006 * gimple-range-trace.h (class push_dump_file): New.
6008 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6010 * gimple-range-trace.cc (debug_seed_ranger): Remove static.
6011 (dump_ranger): Dump function name.
6013 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6015 * gimple-range-path.cc (path_range_query::range_defined_in_block):
6016 Adjust for non-null.
6017 (path_range_query::adjust_for_non_null_uses): New.
6018 (path_range_query::precompute_ranges): Call
6019 adjust_for_non_null_uses.
6020 * gimple-range-path.h: Add m_non_null and
6021 adjust_for_non_null_uses.
6023 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6025 * gimple-range-path.cc (path_range_query::dump): Dump path
6027 (path_range_query::precompute_ranges): Dump entire path.
6029 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6031 * value-relation.cc (relation_oracle::debug): New.
6032 * value-relation.h (relation_oracle::debug): New.
6034 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6036 * tree-ssa-loop-ch.c: Remove unnecessary include file.
6038 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6040 * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges):
6041 Skip statements with no defining BB.
6042 * gimple-range-path.cc (path_range_query::range_defined_in_block):
6043 Do not get confused by statements with no defining BB.
6045 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6047 * gimple-range-fold.cc (adjust_imagpart_expr): Move from
6048 gimple_range_adjustment. Add support for constants.
6049 (adjust_realpart_expr): New.
6050 (gimple_range_adjustment): Move IMAGPART_EXPR code to
6051 adjust_imagpart_expr.
6052 * range-op.cc (integral_table::integral_table): Add entry for
6055 2021-09-03 Jakub Jelinek <jakub@redhat.com>
6057 * omp-expand.c (expand_omp_atomic_pipeline): Use
6058 IFN_ATOMIC_COMPARE_EXCHANGE instead of
6059 BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_? so that memory order
6062 2021-09-03 Jakub Jelinek <jakub@redhat.com>
6065 * tree.h (DECL_FIELD_ABI_IGNORED): Changed into rvalue only macro
6066 that is false if DECL_BIT_FIELD.
6067 (SET_DECL_FIELD_ABI_IGNORED, DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD,
6068 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD): Define.
6069 * tree-streamer-out.c (pack_ts_decl_common_value_fields): For
6070 DECL_BIT_FIELD stream DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead
6071 of DECL_FIELD_ABI_IGNORED.
6072 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
6073 SET_DECL_FIELD_ABI_IGNORED instead of writing to
6074 DECL_FIELD_ABI_IGNORED and for DECL_BIT_FIELD use
6075 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead.
6076 * lto-streamer-out.c (hash_tree): For DECL_BIT_FIELD hash
6077 DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead of DECL_FIELD_ABI_IGNORED.
6079 2021-09-03 liuhongt <hongtao.liu@intel.com>
6082 * config/i386/amxbf16intrin.h : Remove macro check for __AMX_BF16__.
6083 * config/i386/amxint8intrin.h : Remove macro check for __AMX_INT8__.
6084 * config/i386/amxtileintrin.h : Remove macro check for __AMX_TILE__.
6086 2021-09-02 Martin Sebor <msebor@redhat.com>
6088 PR tree-optimization/17506
6090 * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
6092 2021-09-02 Richard Biener <rguenther@suse.de>
6094 * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
6095 fix for PR78185 and continue processing when leaving
6098 2021-09-02 Jakub Jelinek <jakub@redhat.com>
6100 PR tree-optimization/99591
6101 * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
6104 2021-09-02 Richard Biener <rguenther@suse.de>
6107 2021-09-02 Richard Biener <rguenther@suse.de>
6109 PR tree-optimization/102155
6110 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
6111 over a part of the RPO array and do not recurse here.
6112 Dump blocks marked as always executed.
6113 (fill_always_executed_in): Walk over the RPO array and
6114 process loops whose header we run into.
6115 (loop_invariant_motion_in_fun): Compute the first RPO
6116 using rev_post_order_and_mark_dfs_back_seme in iteration
6117 order and pass that to fill_always_executed_in.
6119 2021-09-02 liuhongt <hongtao.liu@intel.com>
6121 * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
6122 * config/i386/i386.c (enum x86_64_reg_class): Add
6124 (merge_classes): Handle X86_64_SSEHF_CLASS.
6125 (examine_argument): Ditto.
6126 (construct_container): Ditto.
6127 (classify_argument): Ditto, and set HFmode/HCmode to
6129 (function_value_32): Return _FLoat16/Complex Float16 by
6131 (function_value_64): Return _Float16/Complex Float16 by SSE
6133 (ix86_print_operand): Handle CONST_DOUBLE HFmode.
6134 (ix86_secondary_reload): Require gpr as intermediate register
6135 to store _Float16 from sse register when sse4 is not
6137 (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
6139 (ix86_scalar_mode_supported_p): Ditto.
6140 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
6141 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
6142 (VALID_INT_MODE_P): Add HFmode and HCmode.
6143 * config/i386/i386.md (*pushhf_rex64): New define_insn.
6145 (*movhf_internal): Ditto.
6146 * doc/extend.texi (Half-Precision Floating Point): Documemt
6149 2021-09-02 Richard Biener <rguenther@suse.de>
6151 PR tree-optimization/102155
6152 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
6153 over a part of the RPO array and do not recurse here.
6154 Dump blocks marked as always executed.
6155 (fill_always_executed_in): Walk over the RPO array and
6156 process loops whose header we run into.
6157 (loop_invariant_motion_in_fun): Compute the first RPO
6158 using rev_post_order_and_mark_dfs_back_seme in iteration
6159 order and pass that to fill_always_executed_in.
6161 2021-09-02 YunQiang Su <syq@debian.org>
6164 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
6166 * config/mips/mips.c (mips_module_isa_name): New.
6167 mips_file_start: add .module mipsREV to all asm output
6169 2021-09-01 Jeff Law <jlaw@localhost.localdomain>
6171 PR tree-optimization/102152
6172 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
6173 comparison to a scalar comparison before calling
6174 update_stmt_if_modified.
6176 2021-09-01 Andrew Pinski <apinski@marvell.com>
6179 * config/aarch64/aarch64.c (aarch64_expand_setmem):
6180 Check STRICT_ALIGNMENT before creating an overlapping
6183 2021-09-01 Martin Sebor <msebor@redhat.com>
6185 * gimple-ssa-warn-access.cc (get_size_range): Add argument.
6186 (check_access): Pass additional argument.
6187 (check_memop_access): Remove template and make a member function.
6188 (maybe_check_dealloc_call): Make a pass_waccess member function.
6189 (class pass_waccess): Add, rename, and remove members.
6190 (pass_waccess::pass_waccess): Adjust to name change.
6191 (pass_waccess::~pass_waccess): Same.
6192 (check_alloca): Make a member function.
6193 (check_alloc_size_call): Same.
6194 (check_strcat): Same.
6195 (check_strncat): Same.
6196 (check_stxcpy): Same.
6197 (check_stxncpy): Same.
6198 (check_strncmp): Same.
6199 (maybe_warn_rdwr_sizes): Rename...
6200 (pass_waccess::maybe_check_access_sizes): ...to this.
6201 (pass_waccess::check_call): Adjust to name changes.
6202 (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
6204 (pass_waccess::execute): Adjust to name changes.
6205 * gimple-ssa-warn-access.h (check_memop_access): Remove.
6206 * pointer-query.cc (access_ref::phi): Handle null pointer.
6207 (access_ref::inform_access): Same.
6208 (pointer_query::put_ref): Modify a cached value, not a copy of it.
6209 (pointer_query::dump): New function.
6210 (compute_objsize_r): Avoid overwriting access_ref::bndrng. Cache
6212 * pointer-query.h (pointer_query::dump): Declare.
6213 * tree-ssa-strlen.c (get_range): Simplify. Use function query.
6214 (dump_strlen_info): Use function query.
6215 (printf_strlen_execute): Factor code out into pointer_query::put_ref.
6217 2021-09-01 Thomas Schwinge <thomas@codesourcery.com>
6219 * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
6221 2021-09-01 Iain Sandoe <iain@sandoe.co.uk>
6223 * doc/extend.texi: Document unavailable attribute.
6224 * print-tree.c (print_node): Handle unavailable attribute.
6225 * tree-core.h (struct tree_base): Add a bit to carry unavailability.
6226 * tree.c (error_unavailable_use): New.
6227 * tree.h (TREE_UNAVAILABLE): New.
6228 (error_unavailable_use): New.
6230 2021-09-01 Jakub Jelinek <jakub@redhat.com>
6232 PR tree-optimization/102124
6233 * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
6234 MINUS_EXPR, if itype is unsigned with smaller precision than type,
6235 add an extra cast to signed variant of itype to ensure sign-extension.
6237 2021-09-01 Martin Liska <mliska@suse.cz>
6239 * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
6240 edges and rather use colors for TRUE and FALSE edges.
6242 2021-09-01 Richard Biener <rguenther@suse.de>
6244 PR tree-optimization/93491
6245 * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
6246 after processing the stmt itself. Do not consider
6247 pure functions possibly not returning. Properly avoid
6248 adding possibly trapping calls to EXP_GEN when there's
6249 a preceeding possibly not returning call.
6250 * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
6253 2021-09-01 Richard Biener <rguenther@suse.de>
6255 PR tree-optimization/102139
6256 * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
6257 type to record a std::pair of the stmt-info and the innermost
6259 (dr_vec_info::group): New member.
6260 * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
6261 (vect_compute_data_ref_alignment): Verify the recorded
6262 base alignment can be used.
6263 (data_ref_pair): Remove.
6264 (dr_group_sort_cmp): Adjust.
6265 (vect_analyze_data_ref_accesses): Store the group-ID in the
6266 dr_vec_info and operate on a vector of dr_vec_infos.
6268 2021-09-01 YunQiang Su <yunqiang.su@cipunited.com>
6270 * read-md.c (md_reader::handle_enum): support value assignation.
6271 * doc/md.texi: record define_c_enum value assignation support.
6273 2021-09-01 Jakub Jelinek <jakub@redhat.com>
6275 PR tree-optimization/102141
6276 * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
6277 argument. If false, emit stmts after gsi instead of before, and
6279 (bswap_replace): Adjust callers. When converting output of bswap,
6280 emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
6283 2021-09-01 liuhongt <hongtao.liu@intel.com>
6285 * emit-rtl.c (validate_subreg): Get rid of all float-int
6288 2021-09-01 liuhongt <hongtao.liu@intel.com>
6291 2021-08-30 liuhongt <hongtao.liu@intel.com>
6293 * expmed.c (extract_bit_field_1): Make sure we're playing with
6294 integral modes before call extract_integral_bit_field.
6295 (extract_integral_bit_field): Add a parameter of type
6296 scalar_int_mode which corresponds to of tmode.
6297 And call extract_and_convert_fixed_bit_field instead of
6298 extract_fixed_bit_field and convert_extracted_bit_field.
6299 (extract_and_convert_fixed_bit_field): New function, it's a
6300 combination of extract_fixed_bit_field and
6301 convert_extracted_bit_field.
6303 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
6305 * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
6307 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
6309 * omp-general.h (omp_is_reference): Rename to...
6310 (omp_privatize_by_reference): ... this. Adjust all users...
6311 * omp-general.c: ... here, ...
6312 * gimplify.c: ... here, ...
6313 * omp-expand.c: ... here, ...
6314 * omp-low.c: ... here.
6316 2021-08-31 Martin Sebor <msebor@redhat.com>
6318 * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
6319 pointer element for equality to zero, not that of the cotaining
6322 2021-08-31 Martin Sebor <msebor@redhat.com>
6324 * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
6326 2021-08-31 Martin Sebor <msebor@redhat.com>
6328 * function.h (function): Add comments.
6329 (get_range_query): Same. Add attribute returns nonnull.
6331 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
6333 * expr.c (convert_modes): Don't use subreg_promoted_mode on a
6334 SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
6335 Instead use the standard (safer) is_a <scalar_int_mode> idiom.
6337 2021-08-31 Jeff Law <jlaw@localhost.localdomain>
6339 * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
6341 (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
6342 (mn10300-*-*, am33_2.0-*-linux*): Likewise.
6343 (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
6344 (m32c-*-elf*, m32c-*-rtems*): Likewise.
6345 * config/cris/cris.h (DBX_NO_XREFS): Remove.
6346 (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
6347 * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
6348 (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
6349 * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
6350 * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
6352 2021-08-31 Marcel Vollweiler <marcel@codesourcery.com>
6354 * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
6355 allowed on target constructs and only with particular other clauses.
6356 * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
6358 * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
6359 structs when 'ancestor' is used.
6360 (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
6362 * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
6363 * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
6365 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
6367 * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
6368 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
6370 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
6371 Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
6372 partial subreg from a SUBREG_PROMOTED_VAR_P subreg. Generate
6373 SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
6374 [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
6375 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
6376 subreg. Generate ZERO_EXTEND of the SUBREG_REG when a subreg
6377 would be paradoxical.
6379 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
6381 * combine.c (combine_simplify_rtx): Avoid converting an explicit
6382 TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
6383 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6385 2021-08-31 Richard Biener <rguenther@suse.de>
6387 PR tree-optimization/102142
6388 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
6389 condition under which to unset the visited flag.
6391 2021-08-31 Richard Biener <rguenther@suse.de>
6393 PR middle-end/102129
6394 * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
6395 possibly trapping expressions across calls.
6397 2021-08-31 Jakub Jelinek <jakub@redhat.com>
6399 PR tree-optimization/102134
6400 * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
6401 UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
6404 2021-08-31 Andrew Pinski <apinski@marvell.com>
6407 * collect-utils.c (setup_signals): New declaration.
6408 * collect-utils.h (setup_signals): New function.
6409 * collect2.c (handler): Delete.
6410 (main): Instead of manually setting up the signals,
6411 just call setup_signals.
6412 * lto-wrapper.c (main): Likewise.
6414 2021-08-31 Andrew Pinski <apinski@marvell.com>
6417 * config/i386/i386-protos.h (x86_output_aligned_bss):
6418 Change align argument to unsigned type.
6419 (x86_elf_aligned_decl_common): Likewise.
6420 * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
6421 (x86_output_aligned_bss): Likewise.
6423 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
6425 * config/mips/mips.c (mips_module_isa_name): New.
6426 mips_file_start: add .module mipsREV to all asm output
6428 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
6430 * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
6431 use enum instead of int for 'isa' member.
6432 * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
6433 config/mips/netbsd.h: replace hardcoded numbers with enum.
6435 2021-08-31 liuhongt <hongtao.liu@intel.com>
6437 * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
6438 define_split to define_insn_and_split.
6439 (*avx2_eq<mode>3): Removed.
6440 (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
6441 (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
6442 (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
6444 (*avx2_gt<mode>3): Removed.
6445 (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
6446 define_insn to define_expand, and adjust pattern.
6447 (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
6449 2021-08-30 David Malcolm <dmalcolm@redhat.com>
6452 * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
6454 2021-08-30 Jason Merrill <jason@redhat.com>
6456 * doc/invoke.texi: Document -Wmissing-requires.
6458 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
6460 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
6461 TARGET_EXTRA_BUILTINS guard.
6463 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
6465 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
6466 initialization of V2DI_type_node and unsigned_V2DI_type_node.
6468 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
6470 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
6471 decl when new_builtins_are_live.
6472 * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
6475 2021-08-30 Pat Haugen <pthaugen@linux.ibm.com>
6477 * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
6478 OPTION_MASK_P10_FUSION_2STORE.
6479 (POWERPC_MASKS): Likewise.
6480 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
6481 store fusion for Power10.
6482 (is_fusable_store): New.
6483 (power10_sched_reorder): Likewise.
6484 (rs6000_sched_reorder): Do Power10 specific reordering.
6485 (rs6000_sched_reorder2): Likewise.
6486 * config/rs6000/rs6000.opt: Add new option.
6488 2021-08-30 Richard Biener <rguenther@suse.de>
6490 PR tree-optimization/102128
6491 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
6492 Move scanning for if-converted scalar code to the caller
6493 and instead delay clearing the visited flag for profitable
6495 (vect_slp_region): Cost all subgraphs before scheduling.
6496 For if-converted BB vectorization scan for scalar COND_EXPRs
6497 and do not vectorize if any found and the cost model is
6500 2021-08-30 Richard Biener <rguenther@suse.de>
6502 * common.opt (fexceptions): Mark
6503 EnabledBy(fnon-call-exceptions).
6504 * doc/invoke.texi (fnon-call-exceptions): Document this
6505 enables -fexceptions.
6507 2021-08-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
6509 * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
6510 is not already defined.
6512 2021-08-30 liuhongt <hongtao.liu@intel.com>
6514 * expmed.c (extract_bit_field_1): Make sure we're playing with
6515 integral modes before call extract_integral_bit_field.
6516 (extract_integral_bit_field): Add a parameter of type
6517 scalar_int_mode which corresponds to of tmode.
6518 And call extract_and_convert_fixed_bit_field instead of
6519 extract_fixed_bit_field and convert_extracted_bit_field.
6520 (extract_and_convert_fixed_bit_field): New function, it's a
6521 combination of extract_fixed_bit_field and
6522 convert_extracted_bit_field.
6524 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
6526 * config/darwin.c (darwin_libc_has_function): Do not run
6527 the checks for x86 or modern Darwin. Make sure that there
6528 is a value set for darwin_macosx_version_min before testing.
6530 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
6532 * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
6534 2021-08-28 Jan Hubicka <hubicka@ucw.cz>
6536 * ipa-modref-tree.h (modref_access_node::merge): Break out
6537 logic combining offsets and logic merging ranges to ...
6538 (modref_access_node::combined_offsets): ... here
6539 (modref_access_node::update2): ... here
6540 (modref_access_node::closer_pair_p): New member function.
6541 (modref_access_node::forced_merge): New member function.
6542 (modre_ref_node::insert): Do merging when table is full.
6544 2021-08-28 YunQiang Su <yunqiang.su@cipunited.com>
6547 * config.gcc: MIPS: use N64 ABI by default if the triple end
6548 with -gnuabi64, which is used by Debian since 2013.
6550 2021-08-28 Alexandre Oliva <oliva@adacore.com>
6552 * ipa-modref.c (analyze_function): Skip debug stmts.
6553 * tree-inline.c (estimate_num_insn): Consider builtins even
6554 without a cgraph_node.
6556 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
6558 * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
6559 * config/h8300/h8300.c (h8300_expand_branch): Remove function.
6560 * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
6561 * config/h8300/h8300.md (eqne): New code iterator.
6562 (geultu, geultu_to_c): Similarly.
6563 * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
6564 (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
6565 (cmp<mode>_c): New pattern
6567 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
6569 * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
6571 (dom_opt_dom_walker::optimize_stmt): Use it.
6573 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
6575 * config/darwin.c (finalize_ctors): Add a section-start linker-
6577 (finalize_dtors): Likewise.
6578 * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
6580 2021-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
6582 * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
6583 (rs6000_init_builtins): Call rs6000_init_generated_builtins. Skip the
6584 old initialization logic when new builtins are enabled.
6585 * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
6586 rs6000_autoinit_builtins to rs6000_init_generated_builtins.
6587 (write_init_file): Likewise.
6589 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
6591 * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
6592 gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
6593 (amdgcn-* | gcn-*) Likewise.
6595 2021-08-27 Anthony Sharp <anthonysharp15@gmail.com>
6597 * symbol-summary.h: Added missing template keyword.
6599 2021-08-27 Richard Biener <rguenther@suse.de>
6601 PR tree-optimization/45178
6602 * tree-ssa-dce.c (find_obviously_necessary_stmts): For
6603 infinite loops without exit do not mark control dependent
6604 edges of the latch necessary.
6606 2021-08-27 konglin1 <lingling.kong@intel.com>
6609 * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
6611 (<avx512>scattersi<mode>): Likewise.
6612 (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
6613 (*avx512f_scatterdi<VI48F:mode>): Likewise
6615 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
6617 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
6618 support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
6619 MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
6620 P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
6621 P10_BUILTIN_PEXTD on Power10.
6623 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
6625 * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
6626 signedness for some Power10 bifs.
6628 2021-08-27 David Edelsohn <dje.gcc@gmail.com>
6631 * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
6632 computed alignment if the entire struct has attribute packed.
6634 2021-08-27 liuhongt <hongtao.liu@intel.com>
6638 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
6639 IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
6640 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
6641 IX86_BUILTIN_SHUFPS256.
6642 (ix86_masked_all_ones): New function.
6644 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
6646 * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
6647 (conditional moves with memory inputs splitters): Ditto.
6648 * config/i386/sse.md (one_cmpl<mode>2): Simplify.
6650 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
6652 * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
6653 search after merging.
6655 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
6657 * config/rs6000/rs6000-overload.def: Add remaining overloads.
6659 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
6661 * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
6663 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
6665 * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
6666 crypto, and htm stanzas.
6668 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
6670 * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
6672 2021-08-26 Martin Sebor <msebor@redhat.com>
6674 * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
6675 (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
6676 (warn_uninitialized_vars): Same. Reduce visibility of locals.
6677 (warn_uninitialized_phi): Same.
6679 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
6681 * tree-ssa-ccp.c (get_individual_bits): Helper function to
6682 extract the individual bits from a widest_int constant (mask).
6683 (gray_code_bit_flips): New read-only table for effiently
6684 enumerating permutations/combinations of bits.
6685 (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
6686 by unknown counts that are guaranteed less than the target
6687 precision and four or fewer unknown bits by enumeration.
6688 [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
6689 enumeration under the same conditions. Handle remaining
6690 shifts as a mask based upon the minimum possible shift value.
6692 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
6693 Richard Biener <rguenther@suse.de>
6695 * match.pd (shift transformations): Remove a redundant
6696 !POINTER_TYPE_P check.
6698 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
6701 * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
6702 Set all_regs to true in the call to replace_rtx.
6704 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
6706 * ipa-modref-tree.c (test_insert_search_collapse): Update test.
6707 * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
6708 hiting --param modref-max-refs limit.
6709 (modref_tree:insert_base): Be smarter when hitting
6710 --param modref-max-bases limit. Add new parameter REF.
6711 (modref_tree:insert): Update.
6712 (modref_tree:merge): Update.
6713 * ipa-modref.c (read_modref_records): Update.
6715 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
6717 * params.opt: (modref-max-adjustments): Add full stop.
6719 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
6721 * ipa-modref-tree.h (modref_ref_node::verify): New member
6723 (modref_ref_node::insert): Use it.
6724 (modref_ref_node::try_mere_with): Fix off by one error.
6726 2021-08-26 Martin Liska <mliska@suse.cz>
6727 Stefan Kneifel <stefan.kneifel@bluewin.ch>
6729 * cgraph.h (create_version_clone_with_body): Add new parameter.
6730 * cgraphclones.c: Likewise.
6731 * multiple_target.c (create_dispatcher_calls): Do not use
6733 (create_target_clone): Likewise here.
6735 2021-08-26 Jonathan Yong <10walls@gmail.com>
6737 * doc/extend.texi: Add note about reserved priorities
6738 to the constructor attribute.
6740 2021-08-25 Martin Sebor <msebor@redhat.com>
6742 * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
6743 range table header alone.
6744 * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
6746 2021-08-25 Jan Hubicka <hubicka@ucw.cz>
6748 * doc/invoke.texi: Document --param modref-max-adjustments.
6749 * ipa-modref-tree.c (test_insert_search_collapse): Update.
6750 (test_merge): Update.
6751 * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
6752 (modref_access_node::operator==): Fix handling of access ranges.
6753 (modref_access_node::contains): Constify parameter; handle also
6754 mismatched parm offsets.
6755 (modref_access_node::update): New function.
6756 (modref_access_node::merge): New function.
6757 (unspecified_modref_access_node): Update constructor.
6758 (modref_ref_node::insert_access): Add record_adjustments parameter;
6760 (modref_ref_node::try_merge_with): New private function.
6761 (modref_tree::insert): New record_adjustments parameter.
6762 (modref_tree::merge): New record_adjustments parameter.
6763 (modref_tree::copy_from): Update.
6764 * ipa-modref.c (dump_access): Dump adjustments field.
6765 (get_access): Update constructor.
6766 (record_access): Update call of insert.
6767 (record_access_lto): Update call of insert.
6768 (merge_call_side_effects): Add record_adjustments parameter.
6769 (get_access_for_fnspec): Update.
6770 (process_fnspec): Update.
6771 (analyze_call): Update.
6772 (analyze_function): Update.
6773 (read_modref_records): Update.
6774 (ipa_merge_modref_summary_after_inlining): Update.
6775 (propagate_unknown_call): Update.
6776 (modref_propagate_in_scc): Update.
6777 * params.opt (param-max-modref-adjustments=): New.
6779 2021-08-25 Michael Meissner <meissner@linux.ibm.com>
6781 * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
6783 (xxspltiw_v4si): Use vecperm type attribute.
6784 (xxspltiw_v4si_inst): Use vecperm type attribute.
6785 (xxspltiw_v4sf_inst): Likewise.
6786 (xxspltidp_v2df): Use vecperm type attribute. Use
6787 UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
6788 (xxspltidp_v2df_inst): Likewise.
6789 (xxsplti32dx_v4si): Use vecperm type attribute.
6790 (xxsplti32dx_v4si_inst): Likewise.
6791 (xxsplti32dx_v4sf_inst): Likewise.
6792 (xxblend_<mode>): Likewise.
6793 (xxpermx): Likewise.
6794 (xxpermx_inst): Likewise.
6797 2021-08-25 Lewis Hyatt <lhyatt@gmail.com>
6800 * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
6801 * diagnostic.c (diagnostic_initialize_input_context): New function.
6802 * diagnostic.h (diagnostic_initialize_input_context): Declare.
6803 * input.c (default_charset_callback): New function.
6804 (file_cache::initialize_input_context): New function.
6805 (file_cache_slot::create): Added ability to convert the input
6806 according to the input context.
6807 (file_cache::file_cache): Initialize the new input context.
6808 (class file_cache_slot): Added new m_alloc_offset member.
6809 (file_cache_slot::file_cache_slot): Initialize the new member.
6810 (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
6811 (file_cache_slot::maybe_grow): Likewise.
6812 (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
6813 (file_cache_slot::get_next_line): Likewise.
6814 * input.h (class file_cache): Added input context member.
6816 2021-08-25 Richard Biener <rguenther@suse.de>
6818 PR tree-optimization/102046
6819 * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
6820 update ->any_pattern when swapping operands.
6822 2021-08-25 Hongyu Wang <hongyu.wang@intel.com>
6825 * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
6826 (ix86_decompose_address): Remove retval check for ASHIFT,
6827 allow non-canonical zero extend if AND mask covers ASHIFT
6829 (ix86_legitimate_address_p): Adjust condition for decompose.
6830 (ix86_rtx_costs): Adjust cost for lea with non-canonical
6832 Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
6834 2021-08-25 Jiufu Guo <guojiufu@linux.ibm.com>
6836 PR tree-optimization/101145
6837 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
6839 (number_of_iterations_lt): Invoke above function.
6840 (adjust_cond_for_loop_until_wrap):
6841 Merge to number_of_iterations_until_wrap.
6842 (number_of_iterations_cond): Update invokes for
6843 adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
6845 2021-08-25 konglin1 <lingling.kong@intel.com>
6848 * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
6850 (_mm512_mask_fpclass_ps_mask): Ditto.
6852 2021-08-25 Kewen Lin <linkw@linux.ibm.com>
6854 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
6855 (vec_unpacku_hi_v8hi): Likewise.
6856 (vec_unpacku_lo_v16qi): Likewise.
6857 (vec_unpacku_lo_v8hi): Likewise.
6858 (vec_unpacku_hi_<VP_small_lc>): New define_expand.
6859 (vec_unpacku_lo_<VP_small_lc>): Likewise.
6861 2021-08-24 David Edelsohn <dje.gcc@gmail.com>
6863 * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
6864 * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
6865 * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
6866 * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
6868 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
6870 PR middle-end/102031
6871 * simplify-rtx.c (simplify_truncation): When comparing precisions
6872 use "subreg_prec" variable, not "subreg_mode".
6874 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
6876 * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
6879 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
6881 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
6882 various pointer type nodes.
6883 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
6884 values for various pointer types.
6885 (ptr_V16QI_type_node): New macro.
6886 (ptr_V1TI_type_node): New macro.
6887 (ptr_V2DI_type_node): New macro.
6888 (ptr_V2DF_type_node): New macro.
6889 (ptr_V4SI_type_node): New macro.
6890 (ptr_V4SF_type_node): New macro.
6891 (ptr_V8HI_type_node): New macro.
6892 (ptr_unsigned_V16QI_type_node): New macro.
6893 (ptr_unsigned_V1TI_type_node): New macro.
6894 (ptr_unsigned_V8HI_type_node): New macro.
6895 (ptr_unsigned_V4SI_type_node): New macro.
6896 (ptr_unsigned_V2DI_type_node): New macro.
6897 (ptr_bool_V16QI_type_node): New macro.
6898 (ptr_bool_V8HI_type_node): New macro.
6899 (ptr_bool_V4SI_type_node): New macro.
6900 (ptr_bool_V2DI_type_node): New macro.
6901 (ptr_bool_V1TI_type_node): New macro.
6902 (ptr_pixel_type_node): New macro.
6903 (ptr_intQI_type_node): New macro.
6904 (ptr_uintQI_type_node): New macro.
6905 (ptr_intHI_type_node): New macro.
6906 (ptr_uintHI_type_node): New macro.
6907 (ptr_intSI_type_node): New macro.
6908 (ptr_uintSI_type_node): New macro.
6909 (ptr_intDI_type_node): New macro.
6910 (ptr_uintDI_type_node): New macro.
6911 (ptr_intTI_type_node): New macro.
6912 (ptr_uintTI_type_node): New macro.
6913 (ptr_long_integer_type_node): New macro.
6914 (ptr_long_unsigned_type_node): New macro.
6915 (ptr_float_type_node): New macro.
6916 (ptr_double_type_node): New macro.
6917 (ptr_long_double_type_node): New macro.
6918 (ptr_dfloat64_type_node): New macro.
6919 (ptr_dfloat128_type_node): New macro.
6920 (ptr_ieee128_type_node): New macro.
6921 (ptr_ibm128_type_node): New macro.
6922 (ptr_vector_pair_type_node): New macro.
6923 (ptr_vector_quad_type_node): New macro.
6924 (ptr_long_long_integer_type_node): New macro.
6925 (ptr_long_long_unsigned_type_node): New macro.
6927 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
6929 * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
6930 and power9-64 stanzas.
6932 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
6933 Tom de Vries <tdevries@suse.de>
6935 * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
6936 * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
6937 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
6938 a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
6939 * config/nvptx/t-nvptx (nvptx-c.o): New rule.
6940 * config/nvptx/nvptx-c.c: New source file.
6941 (nvptx_cpu_cpp_builtins): Move implementation here.
6943 2021-08-24 Martin Sebor <msebor@redhat.com>
6945 PR middle-end/101600
6946 PR middle-end/101977
6947 * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
6948 the phrasing of a warning.
6949 (check_access): Use the remaining size after subtracting any offset
6950 rather than the whole object size.
6951 * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
6952 clear for any nonnull PHI argument.
6953 (compute_objsize): Clear argument.
6955 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
6957 * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
6959 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
6961 * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
6964 2021-08-24 Andrew MacLeod <amacleod@redhat.com>
6966 * value-relation.cc (rr_transitive_table): New.
6967 (relation_transitive): New.
6968 (value_relation::swap): Remove.
6969 (value_relation::apply_transitive): New.
6970 (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
6971 (relation_oracle::register_relation): Call register_transitives.
6972 (relation_oracle::register_transitives): New.
6973 * value-relation.h (relation_oracle): Add new temporary bitmap and
6976 2021-08-24 H.J. Lu <hjl.tools@gmail.com>
6979 * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
6980 from integer to a pseudo vector register.
6982 2021-08-24 Richard Biener <rguenther@suse.de>
6984 PR tree-optimization/100089
6985 * tree-vectorizer.h (vect_slp_bb): Rename to ...
6986 (vect_slp_if_converted_bb): ... this and get the original
6987 loop as new argument.
6988 * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
6989 pass original loop to vect_slp_if_converted_bb.
6990 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
6991 If orig_loop was passed scan the not vectorized stmts
6992 for COND_EXPRs and force not profitable if found.
6993 (vect_slp_region): Pass down all SLP instances to costing
6994 if orig_loop was specified.
6995 (vect_slp_bbs): Pass through orig_loop.
6996 (vect_slp_bb): Rename to ...
6997 (vect_slp_if_converted_bb): ... this and get the original
6998 loop as new argument.
6999 (vect_slp_function): Adjust.
7001 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
7004 * config/arm/arm.md (attribute arch): Add fix_vlldm.
7005 (arch_enabled): Use it.
7006 * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
7007 use when erratum mitigation is needed.
7009 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
7012 * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
7013 * doc/invoke.texi (Arm Options): Document it.
7014 * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
7015 (ALL_QUIRKS): Add quirk_vlldm.
7016 (cortex-m33): Add quirk_vlldm.
7017 (cortex-m35p, cortex-m55): Likewise.
7018 * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
7019 targetting an affected CPU and not explicitly controlled on
7022 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
7024 * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
7025 (lazy_load_multiple_insn): Likewise.
7027 2021-08-24 liuhongt <hongtao.liu@intel.com>
7030 * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
7031 Enable avx512 embedded broadcast.
7032 (*<avx512>_vternlog<mode>_all): Ditto.
7033 (<avx512>_vternlog<mode>_mask): Ditto.
7035 2021-08-24 liuhongt <hongtao.liu@intel.com>
7038 * config/i386/i386.c (ix86_rtx_costs): Define cost for
7040 * config/i386/i386.h (STRIP_UNARY): New macro.
7041 * config/i386/predicates.md (reg_or_notreg_operand): New
7043 * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
7044 (*<avx512>_vternlog<mode>_1): New pre_reload
7045 define_insn_and_split.
7046 (*<avx512>_vternlog<mode>_2): Ditto.
7047 (*<avx512>_vternlog<mode>_3): Ditto.
7048 (any_logic1,any_logic2): New code iterator.
7049 (logic_op): New code attribute.
7050 (ternlogsuffix): Extend to VNxDF and VNxSF.
7052 2021-08-24 Richard Biener <rguenther@suse.de>
7054 * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
7055 * params.opt (--param vect-inner-loop-cost-factor): Adjust
7057 * tree-vect-loop.c (vect_analyze_loop_form): Initialize
7058 inner_loop_cost_factor to the minimum of the estimated number
7059 of iterations of the inner loop and vect-inner-loop-cost-factor.
7061 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
7062 Richard Biener <rguenther@suse.de>
7064 * config/i386/i386-features.c (compute_convert_gain): Provide
7065 more accurate values for CONST_INT, when optimizing for size.
7066 * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
7067 * config/i386/i386.h (COSTS_N_BYTES): to here.
7069 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
7070 Jakub Jelinek <jakub@redhat.com>
7072 PR middle-end/102029
7073 * match.pd (shift transformations): Add an additional check for
7074 !POINTER_TYPE_P in the recently added left shift transformation.
7076 2021-08-24 liuhongt <hongtao.liu@intel.com>
7078 PR tree-optimization/100089
7079 * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
7080 loop vectorizer when cost model is very-cheap.
7082 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7084 * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
7085 asprintf, which is not available on AIX.
7087 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7089 * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
7090 * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
7092 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7094 * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
7095 * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
7097 * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
7098 (rbtree.o): Likewise.
7099 (rs6000-gen-builtins): Likewise.
7100 (rs6000-builtins.c): Likewise.
7101 (rs6000-builtins.h): Likewise.
7102 (rs6000.o): Add dependency.
7103 (EXTRA_HEADERS): Add rs6000-vecdefines.h.
7104 (rs6000-vecdefines.h): New target.
7105 (rs6000-builtins.o): Likewise.
7106 (rs6000-call.o): Add rs6000-builtins.h as a dependency.
7107 (rs6000-c.o): Likewise.
7109 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7112 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
7113 Diagnose buffer overrun.
7114 (safe_inc_pos): Fix overrun detection.
7115 (match_identifier): Diagnose buffer overrun.
7116 (match_integer): Likewise.
7117 (match_to_right_bracket): Likewise.
7119 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
7121 * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
7122 Improve range compare.
7123 (modref_access_node::contains): New member function.
7124 (modref_access_node::search): Remove.
7125 (modref_access_node::insert): Be smarter about subaccesses.
7127 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
7129 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
7130 <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
7131 * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
7134 2021-08-23 Jeff Law <jlaw@localhost.localdomain>
7136 * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
7138 * config/h8300/jumpcall.md (call, call_value): Restrict to
7139 !SIBLING_CALL_P cases.
7140 (subcall, sibcall_value): New patterns & expanders.
7141 * config/h8300/proepi.md (epilogue): Pass new argument to
7142 h8300_expand_epilogue.
7143 (sibcall_epilogue): New expander.
7144 * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
7146 (h8300_ok_for_sibcall_p): New function.
7147 (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
7149 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7151 * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
7152 Handle case where the operand is already the desired mode.
7154 2021-08-23 Richard Biener <rguenther@suse.de>
7157 * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
7158 in addition to has_gimple_body.
7160 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
7162 PR middle-end/101949
7163 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
7166 2021-08-23 Martin Liska <mliska@suse.cz>
7168 * doc/invoke.texi: Put the option out of -mxl-mode-app-model
7171 2021-08-23 Richard Biener <rguenther@suse.de>
7173 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
7174 Properly scale the inner loop cost only once.
7176 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7178 * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
7179 Provide bounds for unsigned (and signed with non-negative operands)
7180 division and modulus.
7182 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7184 * simplify-rtx.c (simplify_truncation): Generalize simplification
7185 of (truncate:A (subreg:B X)).
7186 (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
7187 SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
7188 already has the desired machine mode.
7189 (test_scalar_int_ops): Add tests that useless extensions and
7190 truncations are optimized away.
7191 (test_scalar_int_ext_ops): New self-test function to confirm
7192 that truncations of extensions are correctly simplified.
7193 (test_scalar_int_ext_ops2): New self-test function to check
7194 truncations of truncations, extensions of extensions, and
7195 truncations of extensions.
7196 (test_scalar_ops): Call the above two functions with a
7197 representative sampling of integer machine modes.
7199 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7201 * match.pd (shift transformations): Change the sign of an
7202 LSHIFT_EXPR if it reduces the number of explicit conversions.
7204 2021-08-23 Jakub Jelinek <jakub@redhat.com>
7206 PR tree-optimization/86723
7207 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
7208 cast64_to_32 argument, set *cast64_to_32 to false, unless n is
7209 non-memory permutation of 64-bit src which only has bytes of
7210 0 or [5..8] and n->range is 4.
7211 (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
7212 find_bswap_or_nop_finalize caller, support bswap with some bytes
7213 zeroed, as long as at least two bytes are not zeroed.
7214 (bswap_replace): Add mask argument and handle masking of bswap
7216 (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
7217 caller, punt if cast64_to_32 or mask is not all ones.
7218 (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
7219 caller, for now punt if cast64_to_32.
7221 2021-08-23 Richard Biener <rguenther@suse.de>
7223 PR tree-optimization/79334
7224 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
7225 a type also for COMPONENT_REFs.
7226 (vn_reference_may_trap): Check ARRAY_REF with constant index
7227 against the array domain.
7229 2021-08-23 liuhongt <hongtao.liu@intel.com>
7232 * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
7233 TARGET_AVX512BW to condition.
7235 2021-08-23 Jakub Jelinek <jakub@redhat.com>
7238 * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
7239 register variables already during early_dwarf if possible.
7241 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
7243 * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
7245 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
7248 * config/arm/arm.opt: Fix typo.
7249 * config/arm/t-rmprofile: Fix typo.
7251 2021-08-23 Jakub Jelinek <jakub@redhat.com>
7253 * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
7254 (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
7255 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
7256 case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
7257 * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
7258 if either grainsize or num_tasks clause has the strict modifier.
7260 2021-08-23 Martin Liska <mliska@suse.cz>
7262 * dbgcnt.def (DEBUG_COUNTER): New counter.
7263 * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
7265 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
7267 * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
7269 2021-08-23 Xi Ruoyao <xry111@mengyan1223.wang>
7272 * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
7274 * config/mips/mips.c (mips_msa_output_shift_immediate): New
7276 * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
7277 vlshr<mode>3): Call it.
7279 2021-08-22 Jan Hubicka <hubicka@ucw.cz>
7280 Martin Liska <mliska@suse.cz>
7282 PR middle-end/101949
7283 * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
7286 2021-08-21 Dragan Mladjenovic <OT_Dragan.Mladjenovic@mediatek.com>
7288 * config/mips/mips.c (mips_function_rodata_section,
7289 TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
7291 2021-08-21 John David Anglin <danglin@gcc.gnu.org>
7293 * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
7295 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
7297 * configure.ac (thread-local storage support): Remove tls_first_major
7298 and tls_first_minor. Use "$conftest_s" to check support.
7299 * configure: Regenerate.
7301 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
7303 * configure.ac: Fixup formatting.
7305 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
7307 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
7308 * configure.ac: ... update all callers.
7310 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
7313 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
7314 (gcc_GAS_VERSION_GTE_IFELSE): Remove.
7315 (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
7316 * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
7317 Remove remaining checks for in-tree assembler.
7318 * configure: Regenerate.
7320 2021-08-20 Jeff Law <jlaw@localhost.localdomain>
7322 * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
7323 by 15 bits for H8/300H and H8/S. Improve logical shifts by 12
7325 (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
7326 H8/300H. Improve arithmetic shift right by 15 bits for H8/S.
7327 Improve logical shifts by 27 bits for H8/S.
7328 (get_shift_alg): Corresponding changes.
7329 (h8300_option_override): Revert to loops for -Os when profitable.
7331 2021-08-20 Richard Biener <rguenther@suse.de>
7333 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
7335 (vect_analyze_data_ref_accesses): Likewise. Assign the BB
7336 index as group_id when dataref_groups were not computed.
7337 * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
7338 we advace to the next BB.
7340 2021-08-20 Jakub Jelinek <jakub@redhat.com>
7342 * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
7345 2021-08-20 Martin Liska <mliska@suse.cz>
7347 PR gcov-profile/89961
7348 * gcov.c (make_gcov_file_name): Rewrite using std::string.
7349 (mangle_name): Simplify, do not used the second argument.
7350 (strip_extention): New function.
7351 (get_md5sum): Likewise.
7352 (get_gcov_intermediate_filename): Handle properly -p and -x
7354 (output_gcov_file): Use string type.
7355 (generate_results): Likewise.
7356 (md5sum_to_hex): Remove.
7358 2021-08-20 Michael Meissner <meissner@linux.ibm.com>
7360 * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
7361 (UNSPEC_XXSPLTIW): Move to vsx.md.
7362 (UNSPEC_XXSPLTID): Move to vsx.md.
7363 (UNSPEC_XXSPLTI32DX): Move to vsx.md.
7364 (UNSPEC_XXBLEND): Move to vsx.md.
7365 (UNSPEC_XXPERMX): Move to vsx.md.
7366 (VM3): Move to vsx.md.
7367 (VM3_char): Move to vsx.md.
7368 (xxspltiw_v4si): Move to vsx.md.
7369 (xxspltiw_v4sf): Move to vsx.md.
7370 (xxspltiw_v4sf_inst): Move to vsx.md.
7371 (xxspltidp_v2df): Move to vsx.md.
7372 (xxspltidp_v2df_inst): Move to vsx.md.
7373 (xxsplti32dx_v4si_inst): Move to vsx.md.
7374 (xxsplti32dx_v4sf): Move to vsx.md.
7375 (xxsplti32dx_v4sf_inst): Move to vsx.md.
7376 (xxblend_<mode>): Move to vsx.md.
7377 (xxpermx): Move to vsx.md.
7378 (xxpermx_inst): Move to vsx.md.
7379 * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
7380 (UNSPEC_XXSPLTIW): Move from altivec.md.
7381 (UNSPEC_XXSPLTID): Move from altivec.md.
7382 (UNSPEC_XXSPLTI32DX): Move from altivec.md.
7383 (UNSPEC_XXBLEND): Move from altivec.md.
7384 (UNSPEC_XXPERMX): Move from altivec.md.
7385 (VM3): Move from altivec.md.
7386 (VM3_char): Move from altivec.md.
7387 (xxspltiw_v4si): Move from altivec.md.
7388 (xxspltiw_v4sf): Move from altivec.md.
7389 (xxspltiw_v4sf_inst): Move from altivec.md.
7390 (xxspltidp_v2df): Move from altivec.md.
7391 (xxspltidp_v2df_inst): Move from altivec.md.
7392 (xxsplti32dx_v4si_inst): Move from altivec.md.
7393 (xxsplti32dx_v4sf): Move from altivec.md.
7394 (xxsplti32dx_v4sf_inst): Move from altivec.md.
7395 (xxblend_<mode>): Move from altivec.md.
7396 (xxpermx): Move from altivec.md.
7397 (xxpermx_inst): Move from altivec.md.
7399 2021-08-19 Roger Sayle <roger@nextmovesoftware.com>
7401 * tree-vect-generic.c (expand_vector_operations_1): Use either
7402 gimplify_build1 or gimplify_build2 instead of gimple_build_assign
7403 when constructing scalar splat expressions.
7405 2021-08-19 Peter Bergner <bergner@linux.ibm.com>
7408 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
7409 pointer to __vector_pair *.
7411 2021-08-19 Martin Sebor <msebor@redhat.com>
7413 * gimple-range.cc: Add comments.
7414 * gimple-range.h: Same.
7416 2021-08-19 Martin Sebor <msebor@redhat.com>
7418 PR middle-end/101984
7419 * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
7422 2021-08-19 Jeff Law <jlaw@localhost.localdomain>
7424 * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
7425 (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
7426 * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
7428 2021-08-19 Jakub Jelinek <jakub@redhat.com>
7430 PR middle-end/101950
7431 * optabs.c (expand_clrsb_using_clz): New function.
7432 (expand_unop): Use it as another clrsb expansion fallback.
7434 2021-08-19 liuhongt <hongtao.liu@intel.com>
7437 2021-07-28 liuhongt <hongtao.liu@intel.com>
7440 * config/i386/i386.h (processor_costs): Add new member
7442 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
7443 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
7444 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
7445 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
7446 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
7447 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
7448 generic_cost, core_cost): Initialize integer_to_sse same value
7450 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
7451 * config/i386/i386.c (ix86_builtin_vectorization_cost):
7452 Use integer_to_sse instead of sse_op to calculate the cost of
7455 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
7457 * config.gcc: Include rpath.opt for Darwin.
7458 * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
7460 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
7463 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
7466 2021-08-18 Jonathan Wright <jonathan.wright@arm.com>
7468 * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
7469 pattern and type cast.
7470 (vld4_lane_f32): Use float RTL pattern.
7471 (vld4q_lane_f64): Use float type cast.
7473 2021-08-18 Jan Hubicka <hubicka@ucw.cz>
7475 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
7478 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
7480 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
7481 (test_map_of_type_with_ctor_and_dtor_expand): Add function.
7482 (hash_map_tests_c_tests): Call it.
7484 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
7486 * ggc.h (enum ggc_collect): New.
7487 (ggc_collect): Use it.
7488 * ggc-page.c: Adjust.
7489 * ggc-common.c: Likewise.
7490 * ggc-tests.c: Likewise.
7491 * read-rtl-function.c: Likewise.
7492 * selftest-run-tests.c: Likewise.
7493 * doc/gty.texi (Invoking the garbage collector): Likewise.
7495 2021-08-18 liuhongt <hongtao.liu@intel.com>
7498 * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
7500 * config/i386/sse.md (*sse3_haddv2df3_low): Add
7501 TARGET_V2DF_REDUCTION_PREFER_HADDPD.
7502 (*sse3_hsubv2df3_low): Ditto.
7503 * config/i386/x86-tune.def
7504 (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
7506 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
7508 * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
7509 (gori_compute::compute_operand_range): Add tracing.
7510 (gori_compute::logical_combine): Ditto.
7511 (gori_compute::compute_logical_operands): Ditto.
7512 (gori_compute::compute_operand1_range): Ditto.
7513 (gori_compute::compute_operand2_range): Ditto.
7514 (gori_compute::outgoing_edge_range_p): Ditto.
7515 * gimple-range-gori.h (class gori_compute): Add range_tracer.
7517 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
7519 * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
7520 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
7521 * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
7522 * params.opt (--param=evrp-mode): Adjust options.
7524 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
7526 * Makefile.in (OBJS): Add gimple-range-trace.o.
7527 * gimple-range-cache.h (enable_new_values): Remove unused prototype.
7528 * gimple-range-fold.cc: Adjust headers.
7529 * gimple-range-trace.cc: New.
7530 * gimple-range-trace.h: New.
7531 * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
7532 (gimple_ranger::range_of_expr): Add tracing.
7533 (gimple_ranger::range_on_entry): Ditto.
7534 (gimple_ranger::range_on_exit): Ditto.
7535 (gimple_ranger::range_on_edge): Ditto.
7536 (gimple_ranger::fold_range_internal): Ditto.
7537 (gimple_ranger::dump_bb): Do not calculate edge range twice.
7538 (trace_ranger::*): Remove.
7539 (enable_ranger): Never create a trace_ranger.
7540 (debug_seed_ranger): Move to gimple-range-trace.cc.
7541 (dump_ranger): Ditto.
7542 (debug_ranger): Ditto.
7543 * gimple-range.h: Include gimple-range-trace.h.
7544 (range_on_entry, range_on_exit): No longer virtual.
7545 (class trace_ranger): Remove.
7546 (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
7548 2021-08-17 Martin Sebor <msebor@redhat.com>
7550 PR middle-end/101854
7551 * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
7552 in gimple-ssa-warn-access.cc.
7553 * calls.c (alloc_max_size): Move code to check_alloca.
7554 (get_size_range): Move to pointer-query.cc.
7555 (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
7556 (get_attr_nonstring_decl): Move to tree.c.
7557 (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
7558 (append_attrname): Same.
7559 (maybe_warn_rdwr_sizes): Same.
7560 (initialize_argument_information): Move code to
7561 gimple-ssa-warn-access.cc.
7562 * calls.h (maybe_warn_alloc_args_overflow): Move to
7563 gimple-ssa-warn-access.h.
7564 (get_attr_nonstring_decl): Move to tree.h.
7565 (maybe_warn_nonstring_arg): Move to gimple-ssa-warn-access.h.
7566 (enum size_range_flags): Move to pointer-query.h.
7567 (get_size_range): Same.
7568 * gimple-ssa-warn-access.cc (has_location): Remove unused overload
7569 to avoid Clang -Wunused-function.
7570 (get_size_range): Declare static.
7571 (maybe_emit_free_warning): Rename...
7572 (maybe_check_dealloc_call): ...to this for consistency.
7573 (class pass_waccess): Add members.
7574 (pass_waccess::~pass_waccess): Defined.
7575 (alloc_max_size): Move here from calls.c.
7576 (maybe_warn_alloc_args_overflow): Same.
7577 (check_alloca): New function.
7578 (check_alloc_size_call): New function.
7579 (check_strncat): Handle another warning flag.
7580 (pass_waccess::check_builtin): Handle alloca.
7581 (fntype_argno_type): Move here from calls.c.
7582 (append_attrname): Same.
7583 (maybe_warn_rdwr_sizes): Same.
7584 (pass_waccess::check_call): Define.
7585 (check_nonstring_args): New function.
7586 (pass_waccess::check): Call new member functions.
7587 (pass_waccess::execute): Enable ranger.
7588 * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
7589 (maybe_warn_nonstring_arg): Same.
7590 * gimple-ssa-warn-restrict.c: Remove #include.
7591 * pointer-query.cc (get_size_range): Move here from calls.c.
7592 * pointer-query.h (enum size_range_flags): Same.
7593 (get_size_range): Same.
7594 * tree.c (get_attr_nonstring_decl): Move here from calls.c.
7595 * tree.h (get_attr_nonstring_decl): Move here from calls.h.
7597 2021-08-17 Thomas Schwinge <thomas@codesourcery.com>
7599 * ggc.h (ggc_collect): Add 'force_collect' parameter.
7600 * ggc-page.c (ggc_collect): Use that one instead of global
7601 'ggc_force_collect'. Adjust all users.
7602 * doc/gty.texi (Invoking the garbage collector): Update.
7603 * ggc-internal.h (ggc_force_collect): Remove.
7604 * ggc-common.c (ggc_force_collect): Likewise.
7605 * selftest.h (forcibly_ggc_collect): Remove.
7606 * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
7607 * read-rtl-function.c (test_loading_labels): Adjust.
7608 * selftest-run-tests.c (run_tests): Likewise.
7610 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
7612 * config/darwin.c (darwin_file_end): Reset and reclaim the
7613 section names table at the end of compile.
7615 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
7618 * config.in: Regenerate.
7619 * config/i386/darwin.h (EXTRA_ASM_OPTS): New
7620 (ASM_SPEC): Pass options to disable branch shortening where
7622 * configure: Regenerate.
7623 * configure.ac: Detect versions of 'as' that support the
7624 optimisation which has the bug.
7626 2021-08-17 Richard Biener <rguenther@suse.de>
7628 * optabs-query.c (supports_vec_gather_load_p): Also check
7630 (supports_vec_scatter_store_p): Likewise.
7631 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
7632 back to masked variants if non-masked are not supported.
7633 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
7634 When we need to use masked gather/scatter but do not have
7635 a mask set up a constant true one.
7636 * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
7639 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
7641 * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
7642 algorithm as PLUS_EXPR to improve subtraction bit bounds.
7643 [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
7645 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
7647 * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
7648 calculate the mask-value pair result of a multiplication by an
7650 (bit_value_binop) [MULT_EXPR]: Call it from here for
7651 multiplications by (sparse) non-negative constants.
7653 2021-08-17 Christophe Lyon <christophe.lyon@foss.st.com>
7656 * config.gcc (gcc_cv_initfini_array): Leave undefined for
7657 uclinuxfdpiceabi targets.
7659 2021-08-17 Alexandre Oliva <oliva@adacore.com>
7661 * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
7662 reverse debug stmts.
7664 2021-08-17 Alexandre Oliva <oliva@adacore.com>
7666 * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
7668 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
7670 * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
7671 (__LD4Q_LANE_FUNC): Likewise.
7672 (vld4_lane_u8): Define without macro.
7673 (vld4_lane_u16): Likewise.
7674 (vld4_lane_u32): Likewise.
7675 (vld4_lane_u64): Likewise.
7676 (vld4_lane_s8): Likewise.
7677 (vld4_lane_s16): Likewise.
7678 (vld4_lane_s32): Likewise.
7679 (vld4_lane_s64): Likewise.
7680 (vld4_lane_f16): Likewise.
7681 (vld4_lane_f32): Likewise.
7682 (vld4_lane_f64): Likewise.
7683 (vld4_lane_p8): Likewise.
7684 (vld4_lane_p16): Likewise.
7685 (vld4_lane_p64): Likewise.
7686 (vld4q_lane_u8): Likewise.
7687 (vld4q_lane_u16): Likewise.
7688 (vld4q_lane_u32): Likewise.
7689 (vld4q_lane_u64): Likewise.
7690 (vld4q_lane_s8): Likewise.
7691 (vld4q_lane_s16): Likewise.
7692 (vld4q_lane_s32): Likewise.
7693 (vld4q_lane_s64): Likewise.
7694 (vld4q_lane_f16): Likewise.
7695 (vld4q_lane_f32): Likewise.
7696 (vld4q_lane_f64): Likewise.
7697 (vld4q_lane_p8): Likewise.
7698 (vld4q_lane_p16): Likewise.
7699 (vld4q_lane_p64): Likewise.
7700 (vld4_lane_bf16): Likewise.
7701 (vld4q_lane_bf16): Likewise.
7703 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
7705 * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
7706 (__LD3Q_LANE_FUNC): Delete.
7707 (vld3_lane_u8): Define without macro.
7708 (vld3_lane_u16): Likewise.
7709 (vld3_lane_u32): Likewise.
7710 (vld3_lane_u64): Likewise.
7711 (vld3_lane_s8): Likewise.
7712 (vld3_lane_s16): Likewise.
7713 (vld3_lane_s32): Likewise.
7714 (vld3_lane_s64): Likewise.
7715 (vld3_lane_f16): Likewise.
7716 (vld3_lane_f32): Likewise.
7717 (vld3_lane_f64): Likewise.
7718 (vld3_lane_p8): Likewise.
7719 (vld3_lane_p16): Likewise.
7720 (vld3_lane_p64): Likewise.
7721 (vld3q_lane_u8): Likewise.
7722 (vld3q_lane_u16): Likewise.
7723 (vld3q_lane_u32): Likewise.
7724 (vld3q_lane_u64): Likewise.
7725 (vld3q_lane_s8): Likewise.
7726 (vld3q_lane_s16): Likewise.
7727 (vld3q_lane_s32): Likewise.
7728 (vld3q_lane_s64): Likewise.
7729 (vld3q_lane_f16): Likewise.
7730 (vld3q_lane_f32): Likewise.
7731 (vld3q_lane_f64): Likewise.
7732 (vld3q_lane_p8): Likewise.
7733 (vld3q_lane_p16): Likewise.
7734 (vld3q_lane_p64): Likewise.
7735 (vld3_lane_bf16): Likewise.
7736 (vld3q_lane_bf16): Likewise.
7738 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
7740 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
7741 (__LD2Q_LANE_FUNC): Likewise.
7742 (vld2_lane_u8): Define without macro.
7743 (vld2_lane_u16): Likewise.
7744 (vld2_lane_u32): Likewise.
7745 (vld2_lane_u64): Likewise.
7746 (vld2_lane_s8): Likewise.
7747 (vld2_lane_s16): Likewise.
7748 (vld2_lane_s32): Likewise.
7749 (vld2_lane_s64): Likewise.
7750 (vld2_lane_f16): Likewise.
7751 (vld2_lane_f32): Likewise.
7752 (vld2_lane_f64): Likewise.
7753 (vld2_lane_p8): Likewise.
7754 (vld2_lane_p16): Likewise.
7755 (vld2_lane_p64): Likewise.
7756 (vld2q_lane_u8): Likewise.
7757 (vld2q_lane_u16): Likewise.
7758 (vld2q_lane_u32): Likewise.
7759 (vld2q_lane_u64): Likewise.
7760 (vld2q_lane_s8): Likewise.
7761 (vld2q_lane_s16): Likewise.
7762 (vld2q_lane_s32): Likewise.
7763 (vld2q_lane_s64): Likewise.
7764 (vld2q_lane_f16): Likewise.
7765 (vld2q_lane_f32): Likewise.
7766 (vld2q_lane_f64): Likewise.
7767 (vld2q_lane_p8): Likewise.
7768 (vld2q_lane_p16): Likewise.
7769 (vld2q_lane_p64): Likewise.
7770 (vld2_lane_bf16): Likewise.
7771 (vld2q_lane_bf16): Likewise.
7773 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7775 * haifa-sched.c (advance_one_cycle): Output more context-synchronization
7778 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7780 * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
7781 (rank_for_schedule): Use it.
7783 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7785 PR rtl-optimization/91598
7786 * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
7787 insns after memory reads and before memory writes.
7789 2021-08-17 Alistair_Lee <alistair.lee@arm.com>
7791 * rtl.h (CONST_VECTOR_P): New macro.
7792 * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
7793 code testing macros.
7794 (aarch64_ptrue_all_mode): Likewise.
7795 (aarch64_expand_mov_immediate): Likewise.
7796 (aarch64_const_vec_all_in_range_p): Likewise.
7797 (aarch64_rtx_costs): Likewise.
7798 (aarch64_legitimate_constant_p): Likewise.
7799 (aarch64_simd_valid_immediate): Likewise.
7800 (aarch64_simd_make_constant): Likewise.
7801 (aarch64_convert_mult_to_shift): Likewise.
7802 (aarch64_expand_sve_vec_perm): Likewise.
7803 (aarch64_vec_fpconst_pow_of_2): Likewise.
7805 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
7807 PR tree-optimization/101938
7808 * range-op.cc (operator_abs::op1_range): Special case
7809 -TYPE_MIN_VALUE for flag_wrapv.
7811 2021-08-17 Kewen Lin <linkw@linux.ibm.com>
7813 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
7816 2021-08-17 Jakub Jelinek <jakub@redhat.com>
7818 * tree.def (OMP_SCOPE): New tree code.
7819 * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
7820 * tree-nested.c (convert_nonlocal_reference_stmt,
7821 convert_local_reference_stmt, convert_gimple_call): Handle
7823 * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
7824 * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
7825 * gimple.c (gimple_build_omp_scope): New function.
7826 (gimple_copy): Handle GIMPLE_OMP_SCOPE.
7827 * gimple.h (gimple_build_omp_scope): Declare.
7828 (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
7829 (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
7830 gimple_omp_scope_set_clauses): New inline functions.
7831 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
7832 * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
7833 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
7834 * gimple-walk.c (walk_gimple_stmt): Likewise.
7835 * gimple-low.c (lower_stmt): Likewise.
7836 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
7837 (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
7838 like ORT_WORKSHARE constructs. Adjust diagnostics for %<scope%>
7839 allowing task reductions. Reject inscan reductions on scope.
7840 (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
7841 (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
7842 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
7843 (estimate_num_insns): Likewise.
7844 * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
7845 contexts if var isn't privatized there.
7846 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
7847 (scan_omp_1_stmt): Likewise.
7848 (maybe_add_implicit_barrier_cancel): Look through outer
7850 (lower_omp_scope): New function.
7851 (lower_omp_task_reductions): Handle OMP_SCOPE.
7852 (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
7853 (diagnose_sb_1, diagnose_sb_2): Likewise.
7854 * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
7855 (expand_omp): Handle GIMPLE_OMP_SCOPE.
7856 (omp_make_gimple_edges): Likewise.
7857 * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
7859 2021-08-17 Richard Biener <rguenther@suse.de>
7861 PR tree-optimization/101925
7862 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
7863 reverse on COMPONENT_REF and ARRAY_REF according to
7864 what reverse_storage_order_for_component_p does.
7865 (vn_reference_eq): Compare reversed on reference ops.
7866 (reverse_storage_order_for_component_p): New overload.
7867 (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
7868 on the reference looked up.
7870 2021-08-17 Jeff Law <jlaw@localhost.localdomain>
7872 * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
7874 (h8300_option_override): Use loops on H8/S more often when optimizing
7876 (get_shift_alg): Handle new "special" cases on H8/S. Simplify
7877 accordingly. Handle various arithmetic right shifts with special
7878 sequences that we couldn't handle before.
7880 2021-08-16 Jeff Law <jlaw@localhost.localdomain>
7882 * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
7884 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
7886 * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
7887 * config/sparc/sparc.c (sparc_gcov_type_size): New.
7888 (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
7889 * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
7890 * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
7891 * doc/tm.texi.in: Regenerate.
7892 * target.def (gcov_type_size): New target hook.
7893 * targhooks.c (default_gcov_type_size): New.
7894 * targhooks.h (default_gcov_type_size): Declare.
7895 * tree-profile.c (gimple_gen_edge_profiler): Use precision of
7897 (gimple_gen_time_profiler): Likewise.
7899 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
7901 * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
7903 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
7905 PR middle-end/101931
7906 * omp-low.c (omp_runtime_api_call): Update for routines
7907 added in the meanwhile.
7909 2021-08-16 Martin Liska <mliska@suse.cz>
7911 PR tree-optimization/100393
7912 * tree-switch-conversion.c (group_cluster::dump): Use
7913 get_comparison_count.
7914 (jump_table_cluster::find_jump_tables): Pre-compute number of
7915 comparisons and then decrement it. Cache also max_ratio.
7916 (jump_table_cluster::can_be_handled): Change signature.
7917 * tree-switch-conversion.h (get_comparison_count): New.
7919 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
7921 * dwarf2out.c (add_data_member_location_attribute): Use GNAT
7922 encodings only when -fgnat-encodings=all is specified.
7923 (add_bound_info): Likewise.
7924 (add_byte_size_attribute): Likewise.
7925 (gen_member_die): Likewise.
7927 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
7929 * omp-oacc-neuter-broadcast.cc
7930 (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
7932 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
7934 * omp-oacc-neuter-broadcast.cc
7935 (execute_omp_oacc_neuter_broadcast): Clarify memory management for
7938 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
7940 * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
7941 (execute_omp_oacc_neuter_broadcast): ... here.
7942 (install_var_field, build_receiver_ref, build_sender_ref): Take
7943 'field_map_t *' parameter. Adjust all users.
7944 (worker_single_copy, neuter_worker_single): Take a
7945 'record_field_map_t *' parameter. Adjust all users.
7947 2021-08-16 liuhongt <hongtao.liu@intel.com>
7950 * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
7953 2021-08-16 Martin Liska <mliska@suse.cz>
7956 * multiple_target.c (create_dispatcher_calls): Make default
7957 function local only if it is a definition.
7959 2021-08-16 Martin Liska <mliska@suse.cz>
7962 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
7963 consider equal SSA_NAMEs when one is a param.
7965 2021-08-16 liuhongt <hongtao.liu@intel.com>
7968 * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
7969 Support vpermi2b for V32QI/V16QImode.
7970 (ix86_extract_perm_from_pool_constant): New function.
7971 (ix86_expand_vec_one_operand_perm_avx512): Support
7972 vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
7973 (expand_vec_perm_1): Adjust comments for upper.
7974 * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
7976 * config/i386/predicates.md (permvar_truncate_operand): New predicate.
7977 (pshufb_truncv4siv4hi_operand): Ditto.
7978 (pshufb_truncv8hiv8qi_operand): Ditto.
7979 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
7980 New pre_reload define_insn_and_split.
7981 (*avx512f_permvar_truncv8siv8hi_1): Ditto.
7982 (*avx512f_vpermvar_truncv8div8si_1): Ditto.
7983 (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
7984 (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
7985 (*avx512f_permvar_truncv4div4si_1): Ditto.
7986 (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
7987 (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
7988 (*avx512f_pshufd_truncv2div2si_1): Ditto.
7990 2021-08-16 Kito Cheng <kito.cheng@sifive.com>
7992 * config/riscv/multilib-generator: Support code model option for
7994 * doc/install.texi: Add document of new option for
7995 --with-multilib-generator.
7997 2021-08-15 Clément Chigot <clement.chigot@atos.net>
7999 * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
8000 (rs6000_legitimize_tls_address_aix): Use it.
8001 (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
8002 xcoff_tls_exec_model_detected is true.
8004 2021-08-15 Jeff Law <jlaw@localhost.localdomain>
8006 * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
8007 to allow a bit more code growth, saving many dozens of cycles.
8008 (h8300_option_override): Adjus shift_alg_si if optimizing for
8010 (get_shift_alg): Use special + inline shifts for residuals
8013 2021-08-14 Stafford Horne <shorne@gmail.com>
8016 * config/or1k/or1k-opts.h: New file.
8017 * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
8018 Support generating gotha relocations if -mcmodel=large is
8020 * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
8022 * config/or1k/or1k.opt (mcmodel=): New option.
8023 * doc/invoke.texi (OpenRISC Options): Document mcmodel.
8025 2021-08-14 Martin Sebor <msebor@redhat.com>
8027 PR middle-end/101791
8028 * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
8029 to valid_new_delete_pair_p.
8030 * tree.c (valid_new_delete_pair_p): Add argument.
8031 * tree.h (valid_new_delete_pair_p): Same.
8033 2021-08-14 Jakub Jelinek <jakub@redhat.com>
8036 * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
8037 <case E_V64QImode>: For this mode assert
8038 !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
8040 2021-08-13 Michael Meissner <meissner@linux.ibm.com>
8043 * config/rs6000/altivec.md (xxeval): Use register_predicate
8044 instead of altivec_register_predicate.
8046 2021-08-13 Martin Sebor <msebor@redhat.com>
8048 PR middle-end/101734
8049 * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
8050 (maybe_warn_operand): Call it.
8052 2021-08-13 Martin Liska <mliska@suse.cz>
8055 * attribs.c (decl_attributes): Make naked functions "noipa"
8058 2021-08-13 Martin Liska <mliska@suse.cz>
8061 * symtab.c (symtab_node::noninterposable_alias): Do not create
8062 local aliases for target_clone functions as the clonning pass
8065 2021-08-13 Martin Liska <mliska@suse.cz>
8067 * opts.c (LIVE_PATCHING_OPTION): Define.
8068 (control_options_for_live_patching): Use it in error messages.
8070 2021-08-13 Jan Hubicka <hubicka@ucw.cz>
8072 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
8073 (implicit_const_eaf_flags, implicit_pure_eaf_flags,
8074 ignore_stores_eaf_flags): New constants.
8075 (remove_useless_eaf_flags): New function.
8076 (eaf_flags_useful_p): Use it.
8077 (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
8079 (modref_lattice::init): Add EAF_NOREAD.
8080 (modref_lattice::add_escape_point): Do not reacord escape point if
8082 (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
8083 use remove_useless_eaf_flags.
8084 (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
8085 (modref_lattice::merge_direct_load): Add EAF_NOREAD
8086 (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
8087 (analyze_parms): Use remove_useless_eaf_flags.
8088 (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
8089 (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
8090 use remove_useless_eaf_flags.
8091 (modref_propagate_flags_in_scc): Update.
8092 * ipa-modref.h: Turn eaf_flags_t back to char.
8093 * tree-core.h (EAF_NOT_RETURNED): Fix.
8094 (EAF_NOREAD): New constant
8095 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
8097 * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
8098 (handle_pure_call): Likewise.
8100 2021-08-12 Jakub Jelinek <jakub@redhat.com>
8102 * tree.def (OMP_MASKED): New tree code.
8103 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
8104 * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
8105 OMP_CLAUSE_FILTER_EXPR): Define.
8106 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
8107 (omp_clause_code_name): Likewise.
8108 (walk_tree_1): Handle OMP_CLAUSE_FILTER.
8109 * tree-nested.c (convert_nonlocal_omp_clauses,
8110 convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
8111 (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
8112 convert_gimple_call): Handle GIMPLE_OMP_MASTER.
8113 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
8114 (dump_generic_node): Handle OMP_MASTER.
8115 * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
8116 * gimple.c (gimple_build_omp_masked): New function.
8117 (gimple_copy): Handle GIMPLE_OMP_MASKED.
8118 * gimple.h (gimple_build_omp_masked): Declare.
8119 (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
8120 (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
8121 gimple_omp_masked_set_clauses): New inline functions.
8122 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
8123 * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
8124 (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
8125 * gimple-walk.c (walk_gimple_stmt): Likewise.
8126 * gimple-low.c (lower_stmt): Likewise.
8127 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
8128 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER. For clauses
8129 that take one expression rather than decl or constant, force
8130 gimplification of that into a SSA_NAME or temporary unless min
8132 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
8133 (gimplify_expr): Handle OMP_MASKED.
8134 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
8135 (estimate_num_insns): Likewise.
8136 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
8137 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED. Adjust
8138 diagnostics for existence of masked construct.
8139 (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
8140 diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
8141 * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
8144 2021-08-12 Uroš Bizjak <ubizjak@gmail.com>
8147 * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
8148 (ldexp<mode>3): Use avx512f_scalef<mode>2.
8149 (UNSPEC_SCALEF): Move from ...
8150 * config/i386/sse.md (UNSPEC_SCALEF): ... here.
8152 2021-08-12 Jan Hubicka <hubicka@ucw.cz>
8154 * ipa-split.c (consider_split): Fix condition testing void functions.
8156 2021-08-12 Aldy Hernandez <aldyh@redhat.com>
8158 * doc/invoke.texi: Remove docs for threader-mode param.
8159 * flag-types.h (enum threader_mode): Remove.
8160 * params.opt: Remove threader-mode param.
8161 * tree-ssa-threadbackward.c (class back_threader): Remove
8162 path_is_unreachable_p.
8163 Make find_paths private.
8164 Add maybe_thread and thread_through_all_blocks.
8165 Remove reference marker for m_registry.
8166 Remove reference marker for m_profit.
8167 (back_threader::back_threader): Adjust for registry and profit not
8169 (dump_path): Move down.
8171 (class thread_jumps): Remove.
8172 (class back_threader_registry): Remove m_all_paths.
8174 (thread_jumps::thread_through_all_blocks): Move to back_threader
8176 (fsm_find_thread_path): Remove
8177 (back_threader::maybe_thread): New.
8178 (back_threader::thread_through_all_blocks): Move from
8180 (back_threader_registry::back_threader_registry): Remove
8182 (back_threader_registry::~back_threader_registry): Remove.
8183 (thread_jumps::find_taken_edge): Remove.
8184 (thread_jumps::check_subpath_and_update_thread_path): Remove.
8185 (thread_jumps::maybe_register_path): Remove.
8186 (thread_jumps::handle_phi): Remove.
8187 (handle_assignment_p): Remove.
8188 (thread_jumps::handle_assignment): Remove.
8189 (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
8190 (thread_jumps::find_jump_threads_backwards): Remove.
8191 (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
8192 (try_thread_blocks): Rename find_jump_threads_backwards to
8194 (pass_early_thread_jumps::execute): Same.
8196 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
8198 * tree-core.h (omp_clause_proc_bind_kind): Add
8199 OMP_CLAUSE_PROC_BIND_PRIMARY.
8200 * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
8201 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
8203 2021-08-12 Claudiu Zissulescu <claziss@synopsys.com>
8205 * common/config/arc/arc-common.c (arc_option_init_struct): Remove
8206 fno-common reference.
8207 * config/arc/arc.c (arc_override_options): Remove overriding of
8210 2021-08-12 Jakub Jelinek <jakub@redhat.com>
8213 * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
8214 If d->testing_p, return true after performing checks instead of
8215 actually expanding the insn.
8216 (expand_vec_perm_broadcast_1): Handle V32HImode - assert
8217 !TARGET_AVX512BW and return false.
8219 2021-08-12 Eric Botcazou <ebotcazou@gcc.gnu.org>
8221 * configure.ac (PE linker --disable-dynamicbase support): New check.
8222 * configure: Regenerate.
8223 * config.in: Likewise.
8224 * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
8225 (LINK_SPEC): Use it.
8226 * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
8227 (LINK_SPEC): Likewise.
8229 2021-08-12 liuhongt <hongtao.liu@intel.com>
8232 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
8233 post_reload define_insn_and_split.
8234 (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
8235 (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
8236 (*avx512f_zero_extendv16hiv16si2_2): Ditto.
8237 (*avx2_zero_extendv8hiv8si2_2): Ditto.
8238 (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
8239 (*avx512f_zero_extendv8siv8di2_2): Ditto.
8240 (*avx2_zero_extendv4siv4di2_2): Ditto.
8241 (*sse4_1_zero_extendv2siv2di2_4): Ditto.
8242 (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
8245 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
8247 * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
8250 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
8252 * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
8254 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
8256 * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
8257 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
8258 initialization of pcvoid_type_node here...
8259 (altivec_init_builtins): ...from here.
8260 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
8261 RS6000_BTI_const_ptr_void.
8262 (pcvoid_type_node): New macro.
8264 2021-08-11 Richard Biener <rguenther@suse.de>
8267 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
8268 hard-register accesses.
8270 2021-08-11 Richard Biener <rguenther@suse.de>
8272 * tree-ssa-operands.c (operands_scanner::get_expr_operands):
8273 Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
8274 to determine has_volatile_ops.
8276 2021-08-11 Eric Botcazou <ebotcazou@gcc.gnu.org>
8278 * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
8280 2021-08-11 Jan Hubicka <hubicka@ucw.cz>
8281 Alexandre Oliva <oliva@adacore.com>
8283 * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
8285 (modref_lattice::merge_deref): Fix handling of indirect scape points.
8286 (update_escape_summary_1): Likewise.
8287 (update_escape_summary): Likewise.
8288 (ipa_merge_modref_summary_after_inlining): Likewise.
8290 2021-08-11 Richard Biener <rguenther@suse.de>
8292 PR middle-end/101858
8293 * fold-const.c (fold_binary_loc): Guard simplification
8294 of X < (cast) (1 << Y) to integer types.
8296 2021-08-11 Richard Biener <rguenther@suse.de>
8298 PR tree-optimization/101861
8299 * tree-vect-stmts.c (vectorizable_load): Fix error in
8300 previous change with regard to gather vectorization.
8302 2021-08-11 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
8305 * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
8307 (vdup_n_s16): Likewise.
8308 (vdup_n_s32): Likewise.
8309 (vdup_n_s64): Likewise.
8310 (vdup_n_u8): Likewise.
8311 (vdup_n_u16): Likewise.
8312 (vdup_n_u32): Likewise.
8313 (vdup_n_u64): Likewise.
8314 (vdup_n_p8): Likewise.
8315 (vdup_n_p16): Likewise.
8316 (vdup_n_p64): Likewise.
8317 (vdup_n_f16): Likewise.
8318 (vdup_n_f32): Likewise.
8319 (vdupq_n_s8): Likewise.
8320 (vdupq_n_s16): Likewise.
8321 (vdupq_n_s32): Likewise.
8322 (vdupq_n_s64): Likewise.
8323 (vdupq_n_u8): Likewise.
8324 (vdupq_n_u16): Likewise.
8325 (vdupq_n_u32): Likewise.
8326 (vdupq_n_u64): Likewise.
8327 (vdupq_n_p8): Likewise.
8328 (vdupq_n_p16): Likewise.
8329 (vdupq_n_p64): Likewise.
8330 (vdupq_n_f16): Likewise.
8331 (vdupq_n_f32): Likewise.
8332 (vmov_n_s8): Replace call to builtin with call to corresponding
8334 (vmov_n_s16): Likewise.
8335 (vmov_n_s32): Likewise.
8336 (vmov_n_s64): Likewise.
8337 (vmov_n_u8): Likewise.
8338 (vmov_n_u16): Likewise.
8339 (vmov_n_u32): Likewise.
8340 (vmov_n_u64): Likewise.
8341 (vmov_n_p8): Likewise.
8342 (vmov_n_p16): Likewise.
8343 (vmov_n_f16): Likewise.
8344 (vmov_n_f32): Likewise.
8345 (vmovq_n_s8): Likewise.
8346 (vmovq_n_s16): Likewise.
8347 (vmovq_n_s32): Likewise.
8348 (vmovq_n_s64): Likewise.
8349 (vmovq_n_u8): Likewise.
8350 (vmovq_n_u16): Likewise.
8351 (vmovq_n_u32): Likewise.
8352 (vmovq_n_u64): Likewise.
8353 (vmovq_n_p8): Likewise.
8354 (vmovq_n_p16): Likewise.
8355 (vmovq_n_f16): Likewise.
8356 (vmovq_n_f32): Likewise.
8357 * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
8359 2021-08-11 liuhongt <hongtao.liu@intel.com>
8362 * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
8363 when TARGET_AVX512F and TARGET_SSE_MATH.
8365 2021-08-10 Jakub Jelinek <jakub@redhat.com>
8368 * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
8369 for V32HImode if !TARGET_AVX512BW.
8370 (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
8371 If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
8372 early, but actually check the permutation.
8374 2021-08-10 Richard Biener <rguenther@suse.de>
8376 PR tree-optimization/101809
8377 * tree-vect-stmts.c (get_load_store_type): Allow emulated
8378 gathers with offset vector nunits being a constant multiple
8379 of the data vector nunits.
8380 (vect_get_gather_scatter_ops): Use the appropriate nunits
8381 for the offset vector defs.
8382 (vectorizable_store): Adjust call to
8383 vect_get_gather_scatter_ops.
8384 (vectorizable_load): Likewise. Handle the case of less
8385 offset vectors than data vectors.
8387 2021-08-10 Jakub Jelinek <jakub@redhat.com>
8390 * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
8391 *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
8394 2021-08-10 Richard Biener <rguenther@suse.de>
8396 PR tree-optimization/101801
8397 PR tree-optimization/101819
8398 * tree-vectorizer.h (vect_emulated_vector_p): Declare.
8399 * tree-vect-loop.c (vect_emulated_vector_p): New function.
8400 (vectorizable_reduction): Re-instantiate a check for emulated
8402 * tree-vect-stmts.c (vectorizable_shift): Likewise.
8403 (vectorizable_operation): Likewise. Cost emulated vector
8404 operations according to the scalar sequence synthesized by
8407 2021-08-10 Richard Biener <rguenther@suse.de>
8409 PR middle-end/101824
8410 * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
8411 volatile in case the variable was.
8413 2021-08-10 H.J. Lu <hjl.tools@gmail.com>
8416 * config/i386/constraints.md (BC): Document for integer SSE
8417 constant all bits set operand.
8418 (BF): New constraint for const floating-point all bits set
8420 * config/i386/i386.c (standard_sse_constant_p): Likewise.
8421 (standard_sse_constant_opcode): Likewise.
8422 * config/i386/sse.md (sseconstm1): New mode attribute.
8423 (mov<mode>_internal): Replace BC with <sseconstm1>.
8425 2021-08-10 liuhongt <hongtao.liu@intel.com>
8427 * config/i386/sse.md (cond_<insn><mode>): New expander.
8428 (VI248_AVX512VLBW): New mode iterator.
8429 * config/i386/predicates.md
8430 (nonimmediate_or_const_vec_dup_operand): New predicate.
8432 2021-08-09 Andrew MacLeod <amacleod@redhat.com>
8434 PR tree-optimization/101741
8435 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
8436 type of parameter for toupper/tolower.
8438 2021-08-09 Martin Jambor <mjambor@suse.cz>
8441 * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
8443 2021-08-09 Pat Haugen <pthaugen@linux.ibm.com>
8445 * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
8447 (is_store_insn1): Verify source is a register.
8449 2021-08-09 Uroš Bizjak <ubizjak@gmail.com>
8452 * config/i386/mmx.md (<any_logic:code>v2sf3):
8453 Rename from *mmx_<any_logic:code>v2sf3
8455 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
8457 * config/nvptx/nvptx.c: Cross-reference parts adapted in
8458 'gcc/omp-oacc-neuter-broadcast.cc'.
8459 * omp-low.c: Likewise.
8460 * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
8463 2021-08-09 Julian Brown <julian@codesourcery.com>
8464 Kwok Cheung Yeung <kcy@codesourcery.com>
8465 Thomas Schwinge <thomas@codesourcery.com>
8467 * config/gcn/gcn.c (gcn_init_builtins): Override decls for
8468 BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
8469 BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
8470 (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
8471 (gcn_fork_join): Update comment.
8472 * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
8473 (macc_experimental_workers): Remove unused option.
8475 2021-08-09 Julian Brown <julian@codesourcery.com>
8476 Nathan Sidwell <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
8477 Kwok Cheung Yeung <kcy@codesourcery.com>
8478 Thomas Schwinge <thomas@codesourcery.com>
8480 * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
8481 * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
8482 Add documentation hook.
8483 * doc/tm.texi: Regenerate.
8484 * omp-oacc-neuter-broadcast.cc: New file.
8485 * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
8486 (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
8487 (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
8488 * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
8489 * target.def (goacc.create_worker_broadcast_record): Add target
8491 * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
8493 * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
8494 Rename prototype to...
8495 (gcn_goacc_create_worker_broadcast_record): ... this.
8496 * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
8498 (gcn_goacc_create_worker_broadcast_record): ... this.
8499 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
8501 (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
8503 2021-08-09 Tejas Belagod <tejas.belagod@arm.com>
8506 * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
8509 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
8511 * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
8513 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
8515 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
8516 consider '-foffload-abi'.
8517 * common.opt (-foffload-abi): Remove 'Var', 'Init'.
8518 * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
8521 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
8523 * optc-gen.awk: Sanity check that 'Init' doesn't appear without
8526 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
8528 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
8530 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
8532 * doc/gty.texi (Files): Update.
8534 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
8536 * doc/gty.texi (Files): Fix GTY header file example.
8538 2021-08-09 Roger Sayle <roger@nextmovesoftware.com>
8540 * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
8541 determine the upper and lower bounds from a mask-value pair.
8542 (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
8543 absolute value and unsigned absolute value expressions.
8544 (bit_value_binop): Initialize *VAL's precision.
8545 [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
8546 upper and lower bounds of operands. Add LE_EXPR/GE_EXPR
8547 support when the operands are unknown but potentially equal.
8548 [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
8550 2021-08-09 Bin Cheng <bin.cheng@linux.alibaba.com>
8552 * config/aarch64/aarch64.md
8553 (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
8555 2021-08-08 Sergei Trofimovich <siarheit@google.com>
8557 * lra-constraints.c: Fix s/otput/output/ typo.
8559 2021-08-06 Martin Sebor <msebor@redhat.com>
8561 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
8562 (expand_builtin_strcat): Same.
8563 (expand_builtin_stpncpy): Same.
8564 (expand_builtin_strncat): Same.
8565 (check_read_access): Same.
8566 (check_memop_access): Same.
8567 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
8568 (expand_builtin_strnlen): Same.
8569 (expand_builtin_memcpy): Same.
8570 (expand_builtin_memmove): Same.
8571 (expand_builtin_mempcpy): Same.
8572 (expand_builtin_strcpy): Same.
8573 (expand_builtin_strcpy_args): Same.
8574 (expand_builtin_stpcpy_1): Same.
8575 (expand_builtin_strncpy): Same.
8576 (expand_builtin_memset): Same.
8577 (expand_builtin_bzero): Same.
8578 (expand_builtin_strcmp): Same.
8579 (expand_builtin_strncmp): Same.
8580 (expand_builtin): Remove handlers.
8581 (fold_builtin_strlen): Add a comment.
8582 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
8583 * calls.c (maybe_warn_nonstring_arg): Same.
8584 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
8585 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
8586 (gimple_fold_builtin_stpcpy): Same.
8587 * gimple-ssa-warn-access.cc (has_location): New function.
8588 (get_location): Same.
8589 (get_callee_fndecl): Same.
8592 (warn_string_no_nul): Define.
8593 (unterminated_array): Same.
8594 (check_nul_terminated_array): Same.
8595 (maybe_warn_nonstring_arg): Same.
8596 (maybe_warn_for_bound): Same.
8597 (warn_for_access): Same.
8598 (check_access): Same.
8599 (check_memop_access): Same.
8600 (check_read_access): Same.
8601 (warn_dealloc_offset): Use helper functions.
8602 (maybe_emit_free_warning): Same.
8603 (class pass_waccess): Add members.
8604 (check_strcat): New function.
8605 (check_strncat): New function.
8606 (check_stxcpy): New function.
8607 (check_stxncpy): New function.
8608 (check_strncmp): New function.
8609 (pass_waccess::check_builtin): New function.
8610 (pass_waccess::check): Call it.
8611 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
8613 (maybe_warn_for_bound): Same.
8614 (check_access): Same.
8615 (check_memop_access): Same.
8616 (check_read_access): Same.
8617 * pointer-query.h (struct access_data): Define a ctor overload.
8619 2021-08-06 Richard Biener <rguenther@suse.de>
8621 PR tree-optimization/101801
8622 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
8623 (vect_can_vectorize_without_simd_p): ... to this.
8624 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
8625 (vect_can_vectorize_without_simd_p): ... to this and fold
8626 in vect_min_worthwhile_factor.
8627 (vect_min_worthwhile_factor): Remove.
8628 (vectorizable_reduction): Adjust and remove the cost part.
8629 * tree-vect-stmts.c (vectorizable_shift): Likewise.
8630 (vectorizable_operation): Likewise.
8632 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
8635 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
8636 Add general_gr_operand predicate to operand 3.
8638 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
8640 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
8641 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
8643 2021-08-06 Tamar Christina <tamar.christina@arm.com>
8645 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
8646 register_svprfop): Pass vec<> by pointer.
8647 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
8648 * langhooks.c (lhd_simulate_enum_decl): Likewise.
8649 * langhooks.h (struct lang_hooks_for_types): Likewise.
8651 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
8653 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
8654 __builtin_memcpy instead of constructing an additional
8655 __builtin_aarch64_simd_oi one vector at a time.
8656 (vst1q_bf16_x2): Likewise.
8657 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
8658 an additional __builtin_aarch64_simd_ci one vector at a time.
8659 (vst1q_bf16_x3): Likewise.
8660 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
8661 (vst1q_bf16_x4): Likewise.
8662 (vst2_bf16): Use __builtin_memcpy instead of constructing an
8663 additional __builtin_aarch64_simd_oi one vector at a time.
8664 (vst2q_bf16): Likewise.
8665 (vst3_bf16): Use __builtin_memcpy instead of constructing an
8666 additional __builtin_aarch64_simd_ci mode one vector at a
8668 (vst3q_bf16): Likewise.
8669 (vst4_bf16): Use __builtin_memcpy instead of constructing an
8670 additional __builtin_aarch64_simd_xi one vector at a time.
8671 (vst4q_bf16): Likewise.
8673 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
8675 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
8676 (__ST2Q_LANE_FUNC): Delete.
8677 (vst2_lane_f16): Use __builtin_memcpy to copy vector
8678 structure instead of constructing __builtin_aarch64_simd_oi
8679 one vector at a time.
8680 (vst2_lane_f32): Likewise.
8681 (vst2_lane_f64): Likewise.
8682 (vst2_lane_p8): Likewise.
8683 (vst2_lane_p16): Likewise.
8684 (vst2_lane_p64): Likewise.
8685 (vst2_lane_s8): Likewise.
8686 (vst2_lane_s16): Likewise.
8687 (vst2_lane_s32): Likewise.
8688 (vst2_lane_s64): Likewise.
8689 (vst2_lane_u8): Likewise.
8690 (vst2_lane_u16): Likewise.
8691 (vst2_lane_u32): Likewise.
8692 (vst2_lane_u64): Likewise.
8693 (vst2_lane_bf16): Likewise.
8694 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
8695 structure instead of using a union.
8696 (vst2q_lane_f32): Likewise.
8697 (vst2q_lane_f64): Likewise.
8698 (vst2q_lane_p8): Likewise.
8699 (vst2q_lane_p16): Likewise.
8700 (vst2q_lane_p64): Likewise.
8701 (vst2q_lane_s8): Likewise.
8702 (vst2q_lane_s16): Likewise.
8703 (vst2q_lane_s32): Likewise.
8704 (vst2q_lane_s64): Likewise.
8705 (vst2q_lane_u8): Likewise.
8706 (vst2q_lane_u16): Likewise.
8707 (vst2q_lane_u32): Likewise.
8708 (vst2q_lane_u64): Likewise.
8709 (vst2q_lane_bf16): Likewise.
8711 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
8713 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
8714 (__ST3Q_LANE_FUNC): Delete.
8715 (vst3_lane_f16): Use __builtin_memcpy to copy vector
8716 structure instead of constructing __builtin_aarch64_simd_ci
8717 one vector at a time.
8718 (vst3_lane_f32): Likewise.
8719 (vst3_lane_f64): Likewise.
8720 (vst3_lane_p8): Likewise.
8721 (vst3_lane_p16): Likewise.
8722 (vst3_lane_p64): Likewise.
8723 (vst3_lane_s8): Likewise.
8724 (vst3_lane_s16): Likewise.
8725 (vst3_lane_s32): Likewise.
8726 (vst3_lane_s64): Likewise.
8727 (vst3_lane_u8): Likewise.
8728 (vst3_lane_u16): Likewise.
8729 (vst3_lane_u32): Likewise.
8730 (vst3_lane_u64): Likewise.
8731 (vst3_lane_bf16): Likewise.
8732 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
8733 structure instead of using a union.
8734 (vst3q_lane_f32): Likewise.
8735 (vst3q_lane_f64): Likewise.
8736 (vst3q_lane_p8): Likewise.
8737 (vst3q_lane_p16): Likewise.
8738 (vst3q_lane_p64): Likewise.
8739 (vst3q_lane_s8): Likewise.
8740 (vst3q_lane_s16): Likewise.
8741 (vst3q_lane_s32): Likewise.
8742 (vst3q_lane_s64): Likewise.
8743 (vst3q_lane_u8): Likewise.
8744 (vst3q_lane_u16): Likewise.
8745 (vst3q_lane_u32): Likewise.
8746 (vst3q_lane_u64): Likewise.
8747 (vst3q_lane_bf16): Likewise.
8749 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
8751 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
8752 (__ST4Q_LANE_FUNC): Delete.
8753 (vst4_lane_f16): Use __builtin_memcpy to copy vector
8754 structure instead of constructing __builtin_aarch64_simd_xi
8755 one vector at a time.
8756 (vst4_lane_f32): Likewise.
8757 (vst4_lane_f64): Likewise.
8758 (vst4_lane_p8): Likewise.
8759 (vst4_lane_p16): Likewise.
8760 (vst4_lane_p64): Likewise.
8761 (vst4_lane_s8): Likewise.
8762 (vst4_lane_s16): Likewise.
8763 (vst4_lane_s32): Likewise.
8764 (vst4_lane_s64): Likewise.
8765 (vst4_lane_u8): Likewise.
8766 (vst4_lane_u16): Likewise.
8767 (vst4_lane_u32): Likewise.
8768 (vst4_lane_u64): Likewise.
8769 (vst4_lane_bf16): Likewise.
8770 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
8771 structure instead of using a union.
8772 (vst4q_lane_f32): Likewise.
8773 (vst4q_lane_f64): Likewise.
8774 (vst4q_lane_p8): Likewise.
8775 (vst4q_lane_p16): Likewise.
8776 (vst4q_lane_p64): Likewise.
8777 (vst4q_lane_s8): Likewise.
8778 (vst4q_lane_s16): Likewise.
8779 (vst4q_lane_s32): Likewise.
8780 (vst4q_lane_s64): Likewise.
8781 (vst4q_lane_u8): Likewise.
8782 (vst4q_lane_u16): Likewise.
8783 (vst4q_lane_u32): Likewise.
8784 (vst4q_lane_u64): Likewise.
8785 (vst4q_lane_bf16): Likewise.
8787 2021-08-06 Martin Liska <mliska@suse.cz>
8789 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
8790 a target option is restored, it can have
8791 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
8792 and error should not be emitted.
8794 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
8796 * gcov-io.h (gcov_write): Declare.
8797 * gcov-io.c (gcov_write): New.
8798 (gcov_write_counter): Remove.
8799 (gcov_write_tag_length): Likewise.
8800 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
8801 gcov_write_unsigned().
8802 * doc/invoke.texi (fprofile-info-section): Mention
8803 __gcov_info_to_gdca().
8805 2021-08-06 Martin Sebor <msebor@redhat.com>
8807 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
8808 arguments to by-reference.
8809 (iterate_fix_dominators): Same.
8810 * dominance.h (iterate_fix_dominators): Same.
8811 * ipa-prop.h: Call auto_vec::to_vec_legacy.
8812 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
8813 arguments to by-reference.
8814 (debug_data_dependence_relation): Same.
8815 (dump_data_dependence_relations): Same.
8816 * tree-data-ref.h (debug_data_dependence_relation): Same.
8817 (dump_data_dependence_relations): Same.
8818 * tree-predcom.c (dump_chains): Same.
8819 (initialize_root_vars_lm): Same.
8820 (determine_unroll_factor): Same.
8821 (replace_phis_by_defined_names): Same.
8822 (insert_init_seqs): Same.
8823 (pcom_worker::tree_predictive_commoning_loop): Call
8824 auto_vec::to_vec_legacy.
8825 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
8826 arguments to by-reference.
8827 * tree-ssa-threadbackward.c (populate_worklist): Same.
8828 (back_threader::resolve_def): Same.
8829 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
8830 (vect_enhance_data_refs_alignment): Same.
8831 (vect_check_lower_bound): Same.
8832 (vect_prune_runtime_alias_test_list): Same.
8833 (vect_permute_store_chain): Same.
8834 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
8835 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
8836 * tree-vectorizer.h (vect_permute_store_chain): Same.
8837 * vec.c (test_init): New function.
8838 (vec_c_tests): Call new function.
8839 * vec.h (vec): Declare ctors, dtor, and assignment.
8840 (auto_vec::vec_to_legacy): New function.
8841 (vec::copy): Adjust initialization.
8843 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
8846 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
8847 callee only uses GPRs.
8848 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
8849 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
8850 * config/i386/x86gprintrin.h: Add
8851 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
8852 to disable non-GPR ISAs.
8854 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
8856 PR middle-end/101787
8857 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
8859 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
8861 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
8862 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
8863 (vect_is_extending_load, vect_is_integer_truncation): New functions,
8864 moved from aarch64.c but given different names.
8865 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
8866 (aarch64_is_reduction, aarch64_reduc_type)
8867 (aarch64_embedded_comparison_type, aarch64_comparison_type)
8868 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
8869 in favor of the above. Update callers accordingly.
8871 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
8874 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
8875 writing .cpu directive in asm output.
8876 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
8877 (arm_last_printed_arch_string): Delete.
8878 (arm_last-printed_fpu_string): Delete.
8879 (arm_configure_build_target): If use of floating-point/SIMD is
8880 disabled, remove all fp/simd related features from the target ISA.
8881 (last_arm_targ_options): New variable.
8882 (arm_print_asm_arch_directives): Add new parameters. Change order
8883 of emitted directives and handle all cases here.
8884 (arm_file_start): Always call arm_print_asm_arch_directives, move
8885 all generation of .arch/.arch_extension here.
8886 (arm_file_end): Call arm_print_asm_arch.
8887 (arm_declare_function_name): Call arm_print_asm_arch_directives
8888 instead of printing .arch/.fpu directives directly.
8890 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
8892 * config/arm/arm.c (arm_configure_build_target): Don't call
8893 arm_option_reconfigure_globals.
8894 (arm_option_restore): Call arm_option_reconfigure_globals after
8895 reconfiguring the target.
8896 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
8898 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
8900 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
8901 arch_name is always set.
8903 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
8905 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
8906 of vec_select high-half from being added into Neon subtract
8909 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
8911 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
8912 of vec_select high-half from being added into Neon add cost.
8914 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
8916 * cfgloop.h (loops_list::loops_list): Add one optional argument
8917 root and adjust accordingly, update loop tree walking and factor
8919 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
8921 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
8923 PR tree-optimization/101626
8924 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
8925 reverse scalar storage order on a pointer or vector component.
8927 2021-08-05 liuhongt <hongtao.liu@intel.com>
8929 * config/i386/sse.md (cond_<code><mode>): New expander.
8931 2021-08-05 liuhongt <hongtao.liu@intel.com>
8933 * config/i386/sse.md (cond_<code><mode>): New expander.
8935 2021-08-05 liuhongt <hongtao.liu@intel.com>
8937 * config/i386/sse.md (cond_<code><mode>): New expander.
8939 2021-08-04 David Malcolm <dmalcolm@redhat.com>
8942 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
8944 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
8947 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
8948 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
8950 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
8953 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
8954 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
8955 data with SSE register from one memory location to another.
8957 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
8959 * config/s390/s390.c (expand_perm_with_vpdi): New function.
8960 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
8961 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
8962 parameterized expander.
8963 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
8965 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
8967 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
8968 (struct expand_vec_perm_d): Define struct.
8969 (expand_perm_with_merge): New function.
8970 (vectorize_vec_perm_const_1): New function.
8971 (s390_vectorize_vec_perm_const): New function.
8972 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
8974 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
8976 * config/s390/vector.md (V_HW_64): Remove mode iterator.
8977 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
8978 * config/s390/vx-builtins.md
8979 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
8982 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
8984 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
8986 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
8988 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
8989 instead of an unspec.
8991 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
8993 * config/s390/s390-modes.def: Add more vector modes to support
8994 concatenation of two vectors.
8995 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
8997 (s390_expand_merge): Likewise.
8998 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
8999 (s390_expand_merge): New function.
9000 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
9001 Remove constant definitions.
9002 * config/s390/vector.md (V_HW_2): Add mode iterators.
9003 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
9004 (vec_2x_nelts, vec_2x_wide): New mode attributes.
9005 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
9006 New pattern definitions.
9007 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
9008 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
9009 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
9010 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
9012 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
9014 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
9015 emit vec merge pattern.
9017 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
9019 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
9021 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
9022 vec_select high-half from being added into Neon multiply
9024 * rtlanal.c (vec_series_highpart_p): Define.
9025 * rtlanal.h (vec_series_highpart_p): Declare.
9027 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
9029 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
9031 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
9032 vec_select cost from being added into Neon multiply cost.
9034 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
9036 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
9037 which old_loop_vinfo is an epilogue loop that handles a constant
9038 number of iterations.
9040 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
9042 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
9043 when a reanalyzed loop fails to be cheaper than the current
9046 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
9048 * config/aarch64/aarch64.c: Fix a typo.
9050 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
9052 PR gcov-profile/101773
9053 * gcov-io.c (gcov_close): Check return code of a fclose.
9055 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9058 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
9059 .file statement when needed.
9061 2021-08-04 Richard Biener <rguenther@suse.de>
9063 * tree-vect-data-refs.c (vect_check_gather_scatter):
9064 Include widening conversions only when the result is
9065 still handed by native gather or the current offset
9066 size not already matches the data size.
9067 Also succeed analysis in case there's no native support,
9068 noted by a IFN_LAST ifn and a NULL decl.
9069 (vect_analyze_data_refs): Always consider gathers.
9070 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
9071 Test for no IFN gather rather than decl gather.
9072 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
9073 gather-scatter info and cost emulated gathers accordingly.
9074 (vect_truncate_gather_scatter_offset): Properly test for
9076 (vect_use_strided_gather_scatters_p): Likewise.
9077 (get_load_store_type): Handle emulated gathers and its
9079 (vectorizable_load): Likewise. Emulate them by extracting
9080 scalar offsets, doing scalar loads and a vector construct.
9082 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
9085 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
9086 argument to set m_max_size.
9087 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
9088 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
9089 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
9091 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
9092 Marc Glisse <marc.glisse@inria.fr>
9094 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
9095 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
9096 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
9098 2021-08-04 Richard Biener <rguenther@suse.de>
9100 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
9101 out code to decompose vector loads ...
9102 (optimize_vector_load): ... here. Generalize it to
9103 handle intermediate widening and TARGET_MEM_REF loads
9104 and apply it to loads with a supported vector mode as well.
9106 2021-08-04 Richard Biener <rguenther@suse.de>
9108 PR tree-optimization/101756
9109 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
9110 the result of the reduction epilogue is compatible to the original
9113 2021-08-04 liuhongt <hongtao.liu@intel.com>
9116 * config/i386/i386.md (peephole2): Refine predicate from
9117 register_operand to general_reg_operand.
9119 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
9121 * gimple-range-path.h (path_range_query::dump): Mark override.
9123 2021-08-04 Richard Biener <rguenther@suse.de>
9125 PR tree-optimization/101769
9126 * tree-tailcall.c (eliminate_tail_call): Add the created loop
9127 for the first recursion and return it via the new output parameter.
9128 (optimize_tail_call): Pass through new output param.
9129 (tree_optimize_tail_calls_1): After creating all latches,
9130 add the created loop to the loop tree. Do not mark loops for fixup.
9132 2021-08-04 Martin Liska <mliska@suse.cz>
9134 * doc/invoke.texi: Document threader-mode param.
9136 2021-08-04 liuhongt <hongtao.liu@intel.com>
9138 * config/i386/sse.md (cond_fma<mode>): New expander.
9139 (cond_fms<mode>): Ditto.
9140 (cond_fnma<mode>): Ditto.
9141 (cond_fnms<mode>): Ditto.
9143 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
9145 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
9147 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
9149 * config/rs6000/constraints.md: Remove "e" from the list of available
9150 constraint characters.
9152 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
9154 PR gcov-profile/71672
9155 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
9157 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
9159 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
9161 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
9163 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
9164 try XMM31 to avoid vzeroupper.
9166 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9168 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
9169 -mcpu=neoverse-512tvb.
9170 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
9171 * config/aarch64/aarch64-tune.md: Regenerate.
9172 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
9173 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
9174 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
9175 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
9176 (aarch64_adjust_body_cost): Likewise.
9178 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9180 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
9181 record issue information for operations that occur in the
9184 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9186 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
9187 parameter. Detect cases in which an Advanced SIMD MLA would almost
9188 certainly require a MOV.
9189 (aarch64_count_ops): Update accordingly.
9191 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9193 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
9194 function, split out from...
9195 (aarch64_detect_vector_stmt_subtype): ...here.
9196 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
9198 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9200 * config/aarch64/aarch64-protos.h (sve_vec_cost):
9201 Add gather_load_x32_cost and gather_load_x64_cost.
9202 * config/aarch64/aarch64.c (generic_sve_vector_cost)
9203 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
9204 accordingly, using the values given by the scalar_load * number
9205 of elements calculation that we used previously.
9206 (aarch64_detect_vector_stmt_subtype): Use the new fields.
9208 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9210 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
9211 function, split out from...
9212 (aarch64_adjust_body_cost): ...here.
9214 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9216 * config/aarch64/fractional-cost.h: New file.
9217 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
9218 and cost_fraction.h.
9219 (vec_cost_fraction): New typedef.
9220 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
9221 (aarch64_detect_vector_stmt_subtype): Likewise.
9222 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
9223 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
9225 (aarch64_adjust_body_cost): Likewise.
9226 (aarch64_test_cost_fraction): New function.
9227 (aarch64_run_selftests): Call it.
9229 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9231 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
9233 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
9235 (aarch64_estimated_poly_value): Likewise. Use the least significant
9236 set bit for the minimum and likely values. Use the most significant
9237 set bit for the maximum value.
9239 2021-08-03 liuhongt <hongtao.liu@intel.com>
9241 * config/i386/sse.md (cond_<insn><mode>): New expander.
9242 (cond_mul<mode>): Ditto.
9244 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
9246 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
9248 2021-08-03 liuhongt <hongtao.liu@intel.com>
9250 * config/i386/sse.md (cond_<insn><mode>):New expander.
9251 (cond_mul<mode>): Ditto.
9252 (cond_div<mode>): Ditto.
9254 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
9256 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
9257 check stack_realign_needed for stack realignment.
9258 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
9259 than the largest integer supported by vector register.
9260 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
9261 (MOVE_MAX): Set to bytes of the largest integer supported by
9263 (STORE_MAX_PIECES): New.
9265 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
9267 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
9268 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
9269 data from one memory location to another.
9271 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
9274 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
9276 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
9278 PR tree-optimization/101724
9279 * params.opt: Remove --param=threader-iterative.
9280 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
9283 2021-08-02 Tom de Vries <tdevries@suse.de>
9285 PR middle-end/101665
9286 * doc/extend.texi (nonnull attribute): Improve documentation.
9288 2021-08-02 Andrew Pinski <apinski@marvell.com>
9290 PR rtl-optimization/101683
9291 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
9293 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
9295 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
9296 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
9297 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
9298 (tree_ssa_phiop_worker): Update call to function above.
9300 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
9303 * config/i386/i386.md (bsr_rex64_1_zext): New.
9304 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
9305 with gen_bsr_rex64_1_zext.
9307 2021-07-31 Jakub Jelinek <jakub@redhat.com>
9310 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
9311 define_insn patterns.
9312 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
9313 Add combine splitters for constant - clz.
9314 (clz<mode>2): Use a temporary pseudo for bsr result.
9316 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
9318 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
9319 _mm_floor_sd, _mm_floor_ss): New.
9321 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
9323 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
9324 _mm_ceil_sd, _mm_ceil_ss): New.
9326 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
9328 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
9329 _mm_blend_ps, _mm_blendv_ps): New.
9331 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
9332 Uroš Bizjak <ubizjak@gmail.com>
9334 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
9335 to generate a conditional move using the carry flag after sub $1.
9336 (peephole2): Eliminate a register-to-register move by inverting
9337 the condition of a conditional move.
9339 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
9341 * config/mmix/mmix.md ("call", "call_value", "*call_real")
9342 ("*call_value_real"): Don't generate rtx mentioning the generic
9343 operands 1 and 2 to "call", and similarly for "call_value".
9344 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
9345 (mmix_print_operand): Use '!' instead of 'p'.
9347 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
9349 * doc/md.texi (call): Correct information about operand 2.
9350 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
9352 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
9354 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
9356 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
9358 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
9360 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
9362 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
9364 (*::get_bb_range): Ditto.
9365 (*::bb_range_p): Ditto.
9366 * gimple-range-cache.h: Change prototypes.
9368 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
9371 * builtins.c (builtin_memcpy_read_str): Change the mode argument
9372 from scalar_int_mode to fixed_size_mode.
9373 (builtin_strncpy_read_str): Likewise.
9374 (gen_memset_value_from_prev): New function.
9375 (builtin_memset_read_str): Change the mode argument from
9376 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
9377 and support CONST_VECTOR.
9378 (builtin_memset_gen_str): Likewise.
9379 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
9381 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
9382 with fixed_size_mode.
9383 (builtin_memset_read_str): Likewise.
9384 * expr.c (widest_int_mode_for_size): Renamed to ...
9385 (widest_fixed_size_mode_for_size): Add a bool argument to
9386 indicate if QI vector mode can be used.
9387 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
9388 instead of widest_int_mode_for_size.
9389 (pieces_addr::adjust): Change the mode argument from
9390 scalar_int_mode to fixed_size_mode.
9391 (op_by_pieces_d): Make m_len read-only. Add a bool member,
9392 m_qi_vector_mode, to indicate that QI vector mode can be used.
9393 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
9394 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
9395 instead of widest_int_mode_for_size.
9396 (op_by_pieces_d::get_usable_mode): Change the mode argument from
9397 scalar_int_mode to fixed_size_mode. Call
9398 widest_fixed_size_mode_for_size instead of
9399 widest_int_mode_for_size.
9400 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
9401 function to return the smallest integer or QI vector mode.
9402 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
9403 instead of widest_int_mode_for_size. Call
9404 smallest_fixed_size_mode_for_size instead of
9405 smallest_int_mode_for_size.
9406 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
9407 indicate that QI vector mode can be used and pass it to
9408 op_by_pieces_d::op_by_pieces_d.
9409 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
9410 instead of widest_int_mode_for_size. Pass memsetp to
9411 widest_fixed_size_mode_for_size to support QI vector mode.
9412 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
9413 (store_by_pieces): Pass memsetp to
9414 store_by_pieces_d::store_by_pieces_d.
9415 (clear_by_pieces_1): Removed.
9416 (clear_by_pieces): Replace clear_by_pieces_1 with
9417 builtin_memset_read_str and pass true to store_by_pieces_d to
9418 support vector mode broadcast.
9419 (string_cst_read_str): Change the mode argument from
9420 scalar_int_mode to fixed_size_mode.
9421 * expr.h (by_pieces_constfn): Change scalar_int_mode to
9423 (by_pieces_prev): Likewise.
9424 * rtl.h (lowpart_subreg_regno): New.
9425 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
9426 simplify_subreg_regno.
9427 * target.def (gen_memset_scratch_rtx): New hook.
9428 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
9429 * doc/tm.texi: Regenerated.
9431 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
9434 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
9435 TARGET_EXPR instead of MODIFY_EXPR.
9437 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
9440 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
9441 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
9442 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
9444 (vec_cmpu<IMSA:mode><mode_i>): New expander.
9446 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
9449 * config/i386/i386-options.c (ix86_option_override_internal):
9450 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
9452 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
9455 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
9456 explicitly dereferencing __a.
9457 (vld1_s64): Likewise.
9458 (vld1_u64): Likewise.
9459 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
9460 and change to VAR13.
9462 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
9464 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
9465 use of m_range_analyzer.
9466 (loop_versioning::lv_dom_walker::before_dom_children): Same.
9467 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
9468 (loop_versioning::prune_loop_conditions): Replace vr_values use
9469 with range_query interface.
9470 (pass_loop_versioning::execute): Use ranger.
9472 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
9475 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
9476 enum values, and emit a warning if they mismatch.
9478 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
9480 * cfgloop.h (as_const): New function.
9481 (class loop_iterator): Rename to ...
9482 (class loops_list): ... this.
9483 (loop_iterator::next): Rename to ...
9484 (loops_list::Iter::fill_curr_loop): ... this and adjust.
9485 (loop_iterator::loop_iterator): Rename to ...
9486 (loops_list::loops_list): ... this and adjust.
9487 (loops_list::Iter): New class.
9488 (loops_list::iterator): New type.
9489 (loops_list::const_iterator): New type.
9490 (loops_list::begin): New function.
9491 (loops_list::end): Likewise.
9492 (loops_list::begin const): Likewise.
9493 (loops_list::end const): Likewise.
9494 (FOR_EACH_LOOP): Remove.
9495 (FOR_EACH_LOOP_FN): Remove.
9496 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
9497 for loop with loops_list instance.
9498 (sort_sibling_loops): Likewise.
9499 (disambiguate_loops_with_multiple_latches): Likewise.
9500 (verify_loop_structure): Likewise.
9501 * cfgloopmanip.c (create_preheaders): Likewise.
9502 (force_single_succ_latches): Likewise.
9503 * config/aarch64/falkor-tag-collision-avoidance.c
9504 (execute_tag_collision_avoidance): Likewise.
9505 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
9506 * config/s390/s390.c (s390_adjust_loops): Likewise.
9507 * doc/loop.texi: Likewise.
9508 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
9509 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
9510 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
9511 (loop_versioning::make_versioning_decisions): Likewise.
9512 * gimple-ssa-split-paths.c (split_paths): Likewise.
9513 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
9514 * graphite.c (canonicalize_loop_form): Likewise.
9515 (graphite_transform_loops): Likewise.
9516 * ipa-fnsummary.c (analyze_function_body): Likewise.
9517 * ipa-pure-const.c (analyze_function): Likewise.
9518 * loop-doloop.c (doloop_optimize_loops): Likewise.
9519 * loop-init.c (loop_optimizer_finalize): Likewise.
9520 (fix_loop_structure): Likewise.
9521 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9522 (move_loop_invariants): Likewise.
9523 * loop-unroll.c (decide_unrolling): Likewise.
9524 (unroll_loops): Likewise.
9525 * modulo-sched.c (sms_schedule): Likewise.
9526 * predict.c (predict_loops): Likewise.
9527 (pass_profile::execute): Likewise.
9528 * profile.c (branch_prob): Likewise.
9529 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
9530 (sel_find_rgns): Likewise.
9531 * tree-cfg.c (replace_loop_annotate): Likewise.
9532 (replace_uses_by): Likewise.
9533 (move_sese_region_to_fn): Likewise.
9534 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
9535 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
9536 * tree-parloops.c (parallelize_loops): Likewise.
9537 * tree-predcom.c (tree_predictive_commoning): Likewise.
9538 * tree-scalar-evolution.c (scev_initialize): Likewise.
9539 (scev_reset): Likewise.
9540 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
9541 * tree-ssa-live.c (remove_unused_locals): Likewise.
9542 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
9543 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
9544 (tree_ssa_lim_initialize): Likewise.
9545 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
9546 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
9547 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
9548 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
9549 (free_numbers_of_iterations_estimates): Likewise.
9550 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
9551 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
9552 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
9553 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
9554 (pass_scev_cprop::execute): Likewise.
9555 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
9556 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
9557 * tree-ssa-threadupdate.c
9558 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
9559 * tree-vectorizer.c (vectorize_loops): Likewise.
9560 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
9562 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
9564 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
9565 generating a VOIDmode register for e.g the
9566 function_arg_info::end_marker.
9568 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
9570 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
9571 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
9572 (cc mode_attr): Similarly.
9573 (ccz subst_attr): Similarly.
9574 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
9575 * config/h8300/testcompare.md: Remove various cc0 based patterns
9576 that had been commented out. Add pattern to set CCZ from a bit
9579 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
9580 Julian Brown <julian@codesourcery.com>
9581 Kwok Cheung Yeung <kcy@codesourcery.com>
9583 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
9584 'update_stmt' after modification.
9585 (pass_oacc_loop_designation): New function, extracted out of...
9586 (pass_oacc_device_lower): ... this.
9587 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
9588 (make_pass_oacc_loop_designation): New
9589 * passes.def: Add it.
9590 * tree-parloops.c (create_parallel_loop): Adjust.
9591 * tree-pass.h (make_pass_oacc_loop_designation): New.
9593 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
9595 * flag-types.h (enum threader_mode): New.
9596 * params.opt: Add entry for --param=threader-mode.
9597 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
9598 (class back_threader): New.
9599 (back_threader::back_threader): New.
9600 (back_threader::~back_threader): New.
9601 (back_threader::maybe_register_path): New.
9602 (back_threader::find_taken_edge): New.
9603 (back_threader::find_taken_edge_switch): New.
9604 (back_threader::find_taken_edge_cond): New.
9605 (back_threader::resolve_def): New.
9606 (back_threader::resolve_phi): New.
9607 (back_threader::find_paths_to_names): New.
9608 (back_threader::find_paths): New.
9611 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
9612 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
9613 (pass_thread_jumps::execute): Abstract out code...
9614 (try_thread_blocks): ...here.
9615 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
9616 Abstract out threading candidate code to...
9617 (single_succ_to_potentially_threadable_block): ...here.
9618 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
9620 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
9621 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
9622 Return bool from register_jump_thread.
9624 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
9626 * target.def: in0 and in1 do not need to be registers.
9627 * doc/tm.texi: Regenerate.
9629 2021-07-29 liuhongt <hongtao.liu@intel.com>
9632 * config/i386/i386.c (ix86_widen_mult_cost): New function.
9633 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
9636 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
9639 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
9640 (rs6000_preferred_doloop_mode): New hook.
9641 * doc/tm.texi: Regenerate.
9642 * doc/tm.texi.in: Add hook preferred_doloop_mode.
9643 * target.def (preferred_doloop_mode): New hook.
9644 * targhooks.c (default_preferred_doloop_mode): New hook.
9645 * targhooks.h (default_preferred_doloop_mode): New hook.
9646 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
9647 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
9648 and compute_doloop_base_on_mode.
9650 2021-07-28 Martin Sebor <msebor@redhat.com>
9652 PR middle-end/101494
9653 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
9654 and size computation.
9656 2021-07-28 Martin Sebor <msebor@redhat.com>
9658 PR middle-end/101601
9659 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
9661 Handle pointers to functions.
9663 2021-07-28 Martin Sebor <msebor@redhat.com>
9665 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
9666 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
9667 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
9668 (access_ref::access_ref): Same.
9669 (access_ref::phi): Same.
9670 (access_ref::get_ref): Same.
9671 (access_ref::size_remaining): Same.
9672 (access_ref::offset_in_range): Same.
9673 (access_ref::add_offset): Same.
9674 (access_ref::inform_access): Same.
9675 (ssa_name_limit_t::visit_phi): Same.
9676 (ssa_name_limit_t::leave_phi): Same.
9677 (ssa_name_limit_t::next): Same.
9678 (ssa_name_limit_t::next_phi): Same.
9679 (ssa_name_limit_t::~ssa_name_limit_t): Same.
9680 (pointer_query::pointer_query): Same.
9681 (pointer_query::get_ref): Same.
9682 (pointer_query::put_ref): Same.
9683 (pointer_query::flush_cache): Same.
9684 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
9685 (check_nul_terminated_array): Same.
9686 (unterminated_array): Same.
9687 (maybe_warn_for_bound): Same.
9688 (check_read_access): Same.
9689 (warn_for_access): Same.
9690 (get_size_range): Same.
9691 (check_access): Same.
9692 (gimple_call_alloc_size): Move to tree.c.
9693 (gimple_parm_array_size): Move to pointer-query.cc.
9694 (get_offset_range): Same.
9695 (gimple_call_return_array): Same.
9696 (handle_min_max_size): Same.
9697 (handle_array_ref): Same.
9698 (handle_mem_ref): Same.
9699 (compute_objsize): Same.
9700 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
9701 (call_dealloc_argno): Same.
9702 (fndecl_dealloc_argno): Same.
9703 (new_delete_mismatch_p): Same.
9704 (matching_alloc_calls_p): Same.
9705 (warn_dealloc_offset): Same.
9706 (maybe_emit_free_warning): Same.
9707 * builtins.h (check_nul_terminated_array): Move to
9708 gimple-ssa-warn-access.h.
9709 (check_nul_terminated_array): Same.
9710 (warn_string_no_nul): Same.
9711 (unterminated_array): Same.
9712 (class ssa_name_limit_t): Same.
9713 (class pointer_query): Same.
9714 (struct access_ref): Same.
9715 (class range_query): Same.
9716 (struct access_data): Same.
9717 (gimple_call_alloc_size): Same.
9718 (gimple_parm_array_size): Same.
9719 (compute_objsize): Same.
9720 (class access_data): Same.
9721 (maybe_emit_free_warning): Same.
9722 * calls.c (initialize_argument_information): Remove call to
9723 maybe_emit_free_warning.
9724 * gimple-array-bounds.cc: Include new header..
9725 * gimple-fold.c: Same.
9726 * gimple-ssa-sprintf.c: Same.
9727 * gimple-ssa-warn-restrict.c: Same.
9728 * passes.def: Add pass_warn_access.
9729 * tree-pass.h (make_pass_warn_access): Declare.
9730 * tree-ssa-strlen.c: Include new headers.
9731 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
9732 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
9733 * gimple-ssa-warn-access.cc: New file.
9734 * gimple-ssa-warn-access.h: New file.
9735 * pointer-query.cc: New file.
9736 * pointer-query.h: New file.
9738 2021-07-28 Jakub Jelinek <jakub@redhat.com>
9740 PR middle-end/101624
9741 * ubsan.c (maybe_instrument_pointer_overflow,
9742 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
9743 PARM_DECLs or RESULT_DECLs.
9744 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
9746 2021-07-28 Jakub Jelinek <jakub@redhat.com>
9748 PR middle-end/101642
9749 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
9750 to type of bswap16 for comparison.
9751 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
9753 2021-07-28 Richard Biener <rguenther@suse.de>
9755 PR tree-optimization/101615
9756 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
9757 at CTOR SLP graph entries.
9759 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9761 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
9762 Add "r,w" alternative.
9764 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
9767 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
9768 AVX_U128_DIRTY when all bits are zero.
9770 2021-07-28 Richard Biener <rguenther@suse.de>
9772 PR tree-optimization/101615
9773 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
9774 external nodes cannot be permuted so make them perm_out 0.
9776 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
9779 * config.in: Regenerate.
9780 * config/gcn/gcn-hsa.h (A_FIJI): New define.
9781 (A_900): New define.
9782 (A_906): New define.
9783 (A_908): New define.
9784 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
9785 * config/gcn/gcn.c (output_file_start): Adjust attributes according
9786 to the assembler capabilities.
9787 * config/gcn/mkoffload.c (main): Likewise.
9788 * configure: Regenerate.
9789 * configure.ac: Add tests for LLVM assembler attribute features.
9791 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
9793 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
9794 cond_false and cond_true on branches.
9796 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
9798 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
9801 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
9803 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
9805 2021-07-28 Jakub Jelinek <jakub@redhat.com>
9808 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
9809 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
9810 and has special !TARGET_AVX512VL expansion.
9811 (vashrv2di3<mask_name>): Rename to ...
9812 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
9813 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
9815 2021-07-28 Martin Uecker <muecker@gwdg.de>
9817 * calls.c (maybe_warn_rdwr_sizes): Correct argument
9818 numbers in warning that were switched.
9820 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
9822 PR tree-optimization/101596
9823 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
9824 by using new_type's precision instead.
9826 2021-07-28 liuhongt <hongtao.liu@intel.com>
9829 * config/i386/i386.h (processor_costs): Add new member
9831 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
9832 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
9833 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
9834 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
9835 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
9836 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
9837 generic_cost, core_cost): Initialize integer_to_sse same value
9839 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
9840 * config/i386/i386.c (ix86_builtin_vectorization_cost):
9841 Use integer_to_sse instead of sse_op to calculate the cost of
9844 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
9846 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
9848 (write_init_file): Call write_ovld_static_init.
9850 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
9852 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
9854 (write_init_file): Call write_bif_static_init.
9856 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
9858 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
9859 (TYPE_MAP_SIZE): New macro.
9860 (type_map): New initialized variable.
9861 (typemap_cmp): New function.
9862 (write_type_node): Likewise.
9863 (write_fntype_init): Implement.
9865 2021-07-27 Martin Sebor <msebor@redhat.com>
9867 PR tree-optimization/101584
9868 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
9869 (check_defs): Call it.
9871 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
9873 * tree-ssa-dom.c (dom_jump_threader_simplifier):
9874 Put avail_exprs_stack in the class, instead of passing it to
9875 jump_threader_simplifier.
9876 (dom_jump_threader_simplifier::simplify): Add state argument.
9877 (dom_opt_dom_walker): Add state.
9878 (pass_dominator::execute): Pass state to threader.
9879 (dom_opt_dom_walker::before_dom_children): Use state.
9880 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
9882 (jump_threader::record_temporary_equivalences_from_phis):
9883 Register equivalences through the state variable.
9884 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
9885 Record ranges in a statement through the state variable.
9886 (jump_threader::simplify_control_stmt_condition): Pass state to
9888 (jump_threader::simplify_control_stmt_condition_1): Same.
9889 (jump_threader::thread_around_empty_blocks): Remove obsolete
9891 (jump_threader::thread_through_normal_block): Record equivalences
9892 on edge through the state variable.
9893 (jump_threader::thread_across_edge): Abstract state pushing.
9894 (jt_state::jt_state): New.
9895 (jt_state::push): New.
9896 (jt_state::pop): New.
9897 (jt_state::register_equiv): New.
9898 (jt_state::record_ranges_from_stmt): New.
9899 (jt_state::register_equivs_on_edge): New.
9900 (jump_threader_simplifier::jump_threader_simplifier): Move from
9902 (jump_threader_simplifier::simplify): Add state argument.
9903 * tree-ssa-threadedge.h (class jt_state): New.
9904 (class jump_threader): Add state to constructor.
9905 (class jump_threader_simplifier): Add state to simplify. Remove
9906 avail_exprs_stack from class.
9907 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
9909 (vrp_jump_threader::vrp_jump_threader): Add state.
9910 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
9912 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
9914 * Makefile.in (OBJS): Add gimple-range-path.o.
9915 * gimple-range-path.cc: New file.
9916 * gimple-range-path.h: New file.
9918 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
9920 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
9921 inside vec_duplicate for all patterns.
9922 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
9923 Push sign/zero-extension inside vec_duplicate.
9925 2021-07-27 Richard Biener <rguenther@suse.de>
9927 PR tree-optimization/101573
9928 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
9929 looking at uninitialized PHI arg defs in some constrained cases.
9930 (warn_uninitialized_vars): Call it.
9931 (execute_early_warn_uninitialized): Calculate dominators.
9933 2021-07-27 Richard Biener <rguenther@suse.de>
9935 PR tree-optimization/39821
9936 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
9937 vector_stmt for widening arithmetic.
9938 (vectorizable_conversion): Adjust.
9940 2021-07-27 Martin Jambor <mjambor@suse.cz>
9942 * cgraph.h (ipa_replace_map): New field force_load_ref.
9943 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
9944 aded new flag load_dereferenced, adjusted comments.
9945 (ipa_get_param_dereferenced): New function.
9946 (ipa_set_param_dereferenced): Likewise.
9947 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
9948 * ipa-cp.c: Include gimple.h.
9949 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
9950 (get_replacement_map): New parameter force_load_ref, set the
9951 appropriate flag in ipa_replace_map if set.
9952 (struct symbol_and_index_together): New type.
9953 (adjust_refs_in_act_callers): New function.
9954 (adjust_references_in_caller): Likewise.
9955 (create_specialized_node): When appropriate, call
9956 adjust_references_in_caller and force only load references.
9957 * ipa-prop.c (load_from_dereferenced_name): New function.
9958 (ipa_analyze_controlled_uses): Also detect loads from a
9959 dereference, harden testing of call statements.
9960 (ipa_write_node_info): Stream the dereferenced flag.
9961 (ipa_read_node_info): Likewise.
9962 (ipa_set_jf_constant): Also create refdesc when jump function
9963 references a variable.
9964 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
9965 also on references of variables and return a symtab_node. Adjust
9967 (propagate_controlled_uses): Also remove references to VAR_DECLs.
9969 2021-07-27 Jakub Jelinek <jakub@redhat.com>
9971 PR middle-end/101586
9972 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
9973 positions above or equal to sz except for diagnostics of flexible
9976 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
9978 PR tree-optimization/78888
9979 * gimple-range-fold.cc (get_letter_range): New.
9980 (fold_using_range::range_of_builtin_call): Call get_letter_range.
9982 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
9984 PR tree-optimization/78888
9985 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
9986 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
9988 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
9989 Marc Glisse <marc.glisse@inria.fr>
9991 * match.pd (rotate): Simplify equality/inequality of rotations.
9992 (bswap): Simplify equality/inequality tests of byte swapping.
9994 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
9996 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
9999 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10001 * range-op.cc (operator_lshift::fold_range): Pass rel to
10002 base class fold_range.
10003 (operator_rshift::fold_range): Same.
10005 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
10008 * toplev.h (min_align_loops_log): Remove declaration.
10009 (min_align_jumps_log, min_align_labels_log): Likewise.
10010 (min_align_functions_log): Likewise.
10012 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10014 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
10016 (execute_vrp): Abstract out simplification of conditionals...
10017 (simplify_casted_conds): ...here.
10019 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10021 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
10022 Add gimple argument.
10023 (array_bounds_checker::check_array_ref): Same.
10024 (array_bounds_checker::check_addr_expr): Same.
10025 (array_bounds_checker::check_array_bounds): Pass statement to
10026 check_array_bounds and check_addr_expr.
10027 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
10028 (check_addr_expr): Same.
10029 (get_value_range): Same.
10031 2021-07-26 Tamar Christina <tamar.christina@arm.com>
10033 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
10034 (sdot_prod, udot_prod): ... This.
10035 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
10037 (<sur>dot_prod<vsi2qi>): ... this.
10038 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
10039 Change operands order.
10040 (<sur>sadv16qi): Use new operands order.
10041 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
10042 vdotq_s32): Use new RTL ordering.
10044 2021-07-26 Tamar Christina <tamar.christina@arm.com>
10046 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
10047 aarch64_types_ternop_suss_qualifiers): New.
10048 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
10049 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
10050 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
10052 2021-07-23 Jakub Jelinek <jakub@redhat.com>
10054 PR rtl-optimization/101562
10055 * expmed.c (store_integral_bit_field): Only use movstrict_optab
10056 if the operand isn't paradoxical.
10058 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
10060 * gimple-array-bounds.h (class array_bounds_checker): Change
10061 ranges type to range_query.
10063 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10065 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
10066 __builtin_memcpy instead of constructing
10067 __builtin_aarch64_simd_oi one vector at a time.
10068 (vst1_u64_x2): Likewise.
10069 (vst1_f64_x2): Likewise.
10070 (vst1_s8_x2): Likewise.
10071 (vst1_p8_x2): Likewise.
10072 (vst1_s16_x2): Likewise.
10073 (vst1_p16_x2): Likewise.
10074 (vst1_s32_x2): Likewise.
10075 (vst1_u8_x2): Likewise.
10076 (vst1_u16_x2): Likewise.
10077 (vst1_u32_x2): Likewise.
10078 (vst1_f16_x2): Likewise.
10079 (vst1_f32_x2): Likewise.
10080 (vst1_p64_x2): Likewise.
10081 (vst1q_s8_x2): Likewise.
10082 (vst1q_p8_x2): Likewise.
10083 (vst1q_s16_x2): Likewise.
10084 (vst1q_p16_x2): Likewise.
10085 (vst1q_s32_x2): Likewise.
10086 (vst1q_s64_x2): Likewise.
10087 (vst1q_u8_x2): Likewise.
10088 (vst1q_u16_x2): Likewise.
10089 (vst1q_u32_x2): Likewise.
10090 (vst1q_u64_x2): Likewise.
10091 (vst1q_f16_x2): Likewise.
10092 (vst1q_f32_x2): Likewise.
10093 (vst1q_f64_x2): Likewise.
10094 (vst1q_p64_x2): Likewise.
10096 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10098 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
10099 __builtin_memcpy instead of constructing
10100 __builtin_aarch64_simd_ci one vector at a time.
10101 (vst1_u64_x3): Likewise.
10102 (vst1_f64_x3): Likewise.
10103 (vst1_s8_x3): Likewise.
10104 (vst1_p8_x3): Likewise.
10105 (vst1_s16_x3): Likewise.
10106 (vst1_p16_x3): Likewise.
10107 (vst1_s32_x3): Likewise.
10108 (vst1_u8_x3): Likewise.
10109 (vst1_u16_x3): Likewise.
10110 (vst1_u32_x3): Likewise.
10111 (vst1_f16_x3): Likewise.
10112 (vst1_f32_x3): Likewise.
10113 (vst1_p64_x3): Likewise.
10114 (vst1q_s8_x3): Likewise.
10115 (vst1q_p8_x3): Likewise.
10116 (vst1q_s16_x3): Likewise.
10117 (vst1q_p16_x3): Likewise.
10118 (vst1q_s32_x3): Likewise.
10119 (vst1q_s64_x3): Likewise.
10120 (vst1q_u8_x3): Likewise.
10121 (vst1q_u16_x3): Likewise.
10122 (vst1q_u32_x3): Likewise.
10123 (vst1q_u64_x3): Likewise.
10124 (vst1q_f16_x3): Likewise.
10125 (vst1q_f32_x3): Likewise.
10126 (vst1q_f64_x3): Likewise.
10127 (vst1q_p64_x3): Likewise.
10129 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
10132 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
10133 hard register when LRA is in progress.
10135 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10137 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
10138 __builtin_memcpy instead of using a union.
10139 (vst1q_s8_x4): Likewise.
10140 (vst1_s16_x4): Likewise.
10141 (vst1q_s16_x4): Likewise.
10142 (vst1_s32_x4): Likewise.
10143 (vst1q_s32_x4): Likewise.
10144 (vst1_u8_x4): Likewise.
10145 (vst1q_u8_x4): Likewise.
10146 (vst1_u16_x4): Likewise.
10147 (vst1q_u16_x4): Likewise.
10148 (vst1_u32_x4): Likewise.
10149 (vst1q_u32_x4): Likewise.
10150 (vst1_f16_x4): Likewise.
10151 (vst1q_f16_x4): Likewise.
10152 (vst1_f32_x4): Likewise.
10153 (vst1q_f32_x4): Likewise.
10154 (vst1_p8_x4): Likewise.
10155 (vst1q_p8_x4): Likewise.
10156 (vst1_p16_x4): Likewise.
10157 (vst1q_p16_x4): Likewise.
10158 (vst1_s64_x4): Likewise.
10159 (vst1_u64_x4): Likewise.
10160 (vst1_p64_x4): Likewise.
10161 (vst1q_s64_x4): Likewise.
10162 (vst1q_u64_x4): Likewise.
10163 (vst1q_p64_x4): Likewise.
10164 (vst1_f64_x4): Likewise.
10165 (vst1q_f64_x4): Likewise.
10167 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
10169 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
10170 instead of constructing __builtin_aarch64_simd_oi one vector
10172 (vst2_u64): Likewise.
10173 (vst2_f64): Likewise.
10174 (vst2_s8): Likewise.
10175 (vst2_p8): Likewise.
10176 (vst2_s16): Likewise.
10177 (vst2_p16): Likewise.
10178 (vst2_s32): Likewise.
10179 (vst2_u8): Likewise.
10180 (vst2_u16): Likewise.
10181 (vst2_u32): Likewise.
10182 (vst2_f16): Likewise.
10183 (vst2_f32): Likewise.
10184 (vst2_p64): Likewise.
10185 (vst2q_s8): Likewise.
10186 (vst2q_p8): Likewise.
10187 (vst2q_s16): Likewise.
10188 (vst2q_p16): Likewise.
10189 (vst2q_s32): Likewise.
10190 (vst2q_s64): Likewise.
10191 (vst2q_u8): Likewise.
10192 (vst2q_u16): Likewise.
10193 (vst2q_u32): Likewise.
10194 (vst2q_u64): Likewise.
10195 (vst2q_f16): Likewise.
10196 (vst2q_f32): Likewise.
10197 (vst2q_f64): Likewise.
10198 (vst2q_p64): Likewise.
10200 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10202 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
10203 instead of constructing __builtin_aarch64_simd_ci one vector
10205 (vst3_u64): Likewise.
10206 (vst3_f64): Likewise.
10207 (vst3_s8): Likewise.
10208 (vst3_p8): Likewise.
10209 (vst3_s16): Likewise.
10210 (vst3_p16): Likewise.
10211 (vst3_s32): Likewise.
10212 (vst3_u8): Likewise.
10213 (vst3_u16): Likewise.
10214 (vst3_u32): Likewise.
10215 (vst3_f16): Likewise.
10216 (vst3_f32): Likewise.
10217 (vst3_p64): Likewise.
10218 (vst3q_s8): Likewise.
10219 (vst3q_p8): Likewise.
10220 (vst3q_s16): Likewise.
10221 (vst3q_p16): Likewise.
10222 (vst3q_s32): Likewise.
10223 (vst3q_s64): Likewise.
10224 (vst3q_u8): Likewise.
10225 (vst3q_u16): Likewise.
10226 (vst3q_u32): Likewise.
10227 (vst3q_u64): Likewise.
10228 (vst3q_f16): Likewise.
10229 (vst3q_f32): Likewise.
10230 (vst3q_f64): Likewise.
10231 (vst3q_p64): Likewise.
10233 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10235 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
10236 instead of constructing __builtin_aarch64_simd_xi one vector
10238 (vst4_u64): Likewise.
10239 (vst4_f64): Likewise.
10240 (vst4_s8): Likewise.
10241 (vst4_p8): Likewise.
10242 (vst4_s16): Likewise.
10243 (vst4_p16): Likewise.
10244 (vst4_s32): Likewise.
10245 (vst4_u8): Likewise.
10246 (vst4_u16): Likewise.
10247 (vst4_u32): Likewise.
10248 (vst4_f16): Likewise.
10249 (vst4_f32): Likewise.
10250 (vst4_p64): Likewise.
10251 (vst4q_s8): Likewise.
10252 (vst4q_p8): Likewise.
10253 (vst4q_s16): Likewise.
10254 (vst4q_p16): Likewise.
10255 (vst4q_s32): Likewise.
10256 (vst4q_s64): Likewise.
10257 (vst4q_u8): Likewise.
10258 (vst4q_u16): Likewise.
10259 (vst4q_u32): Likewise.
10260 (vst4q_u64): Likewise.
10261 (vst4q_f16): Likewise.
10262 (vst4q_f32): Likewise.
10263 (vst4q_f64): Likewise.
10264 (vst4q_p64): Likewise.
10266 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10268 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
10269 instead of constructing __builtin_aarch64_simd_oi one vector
10271 (vtbx4_u8): Likewise.
10272 (vtbx4_p8): Likewise.
10274 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10276 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
10277 instead of constructing __builtin_aarch64_simd_oi one vector
10279 (vtbl3_u8): Likewise.
10280 (vtbl3_p8): Likewise.
10281 (vtbl4_s8): Likewise.
10282 (vtbl4_u8): Likewise.
10283 (vtbl4_p8): Likewise.
10285 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10287 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
10288 instead of constructing __builtin_aarch64_simd_oi one vector
10290 (vqtbx2_u8): Likewise.
10291 (vqtbx2_p8): Likewise.
10292 (vqtbx2q_s8): Likewise.
10293 (vqtbx2q_u8): Likewise.
10294 (vqtbx2q_p8): Likewise.
10295 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
10296 __builtin_aarch64_simd_ci one vector at a time.
10297 (vqtbx3_u8): Likewise.
10298 (vqtbx3_p8): Likewise.
10299 (vqtbx3q_s8): Likewise.
10300 (vqtbx3q_u8): Likewise.
10301 (vqtbx3q_p8): Likewise.
10302 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
10303 __builtin_aarch64_simd_xi one vector at a time.
10304 (vqtbx4_u8): Likewise.
10305 (vqtbx4_p8): Likewise.
10306 (vqtbx4q_s8): Likewise.
10307 (vqtbx4q_u8): Likewise.
10308 (vqtbx4q_p8): Likewise.
10310 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10312 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
10313 instead of constructing __builtin_aarch64_simd_oi one vector
10315 (vqtbl2_u8): Likewise.
10316 (vqtbl2_p8): Likewise.
10317 (vqtbl2q_s8): Likewise.
10318 (vqtbl2q_u8): Likewise.
10319 (vqtbl2q_p8): Likewise.
10320 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
10321 __builtin_aarch64_simd_ci one vector at a time.
10322 (vqtbl3_u8): Likewise.
10323 (vqtbl3_p8): Likewise.
10324 (vqtbl3q_s8): Likewise.
10325 (vqtbl3q_u8): Likewise.
10326 (vqtbl3q_p8): Likewise.
10327 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
10328 __builtin_aarch64_simd_xi one vector at a time.
10329 (vqtbl4_u8): Likewise.
10330 (vqtbl4_p8): Likewise.
10331 (vqtbl4q_s8): Likewise.
10332 (vqtbl4q_u8): Likewise.
10333 (vqtbl4q_p8): Likewise.
10335 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
10338 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
10340 2021-07-22 Andrew Pinski <apinski@marvell.com>
10342 PR tree-optimization/10153
10343 * tree-tailcall.c (create_tailcall_accumulator):
10344 Don't call fold_convert as the type should be correct already.
10345 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
10346 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
10348 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
10350 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
10351 varying_p check for null/non-null check.
10353 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
10355 PR tree-optimization/101511
10356 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
10357 is in ssa2's equiv set, and don't trap if so.
10359 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
10361 PR tree-optimization/101497
10362 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
10365 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
10367 PR tree-optimization/101496
10368 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
10369 first, then vrp_visit_cond_Stmt.
10371 2021-07-22 liuhongt <hongtao.liu@intel.com>
10373 * config/i386/i386-expand.c
10374 (ix86_broadcast_from_integer_constant): Rename to ..
10375 (ix86_broadcast_from_constant): .. this, and extend it to
10377 (ix86_expand_vector_move): Extend to float mode.
10378 * config/i386/i386-features.c
10379 (replace_constant_pool_with_broadcast): Remove.
10380 (remove_partial_avx_dependency_gate): Ditto.
10381 (constant_pool_broadcast): Ditto.
10382 (class pass_constant_pool_broadcast): Ditto.
10383 (make_pass_constant_pool_broadcast): Ditto.
10384 (remove_partial_avx_dependency): Adjust gate.
10385 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
10386 * config/i386/i386-protos.h
10387 (make_pass_constant_pool_broadcast): Remove.
10389 2021-07-22 liuhongt <hongtao.liu@intel.com>
10391 * config/i386/constraints.md (Wb): New constraint.
10393 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
10395 (*ashlqi3_1): Ditto.
10396 (*<insn><mode>3_1): Split to ..
10397 (*ashr<mode>3_1): this, ...
10398 (*lshr<mode>3_1): and this, also extend this pattern to avx512
10400 (*<insn><mode>3_1): Split to ..
10401 (*ashr<mode>3_1): this, ...
10402 (*lshrqi3_1): and this, also extend this pattern to avx512
10404 (*lshrhi3_1): And this, also extend this pattern to avx512
10406 * config/i386/sse.md (k<code><mode>): New define_split after
10407 it to convert generic shift pattern to mask shift ones.
10409 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
10410 Joseph Myers <joseph@codesourcery.com>
10411 Cesar Philippidis <cesar@codesourcery.com>
10413 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
10414 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
10416 * tree-pretty-print.c (dump_omp_clause): Likewise.
10417 * omp-general.c (oacc_verify_routine_clauses): Likewise.
10418 * gimplify.c (gimplify_scan_omp_clauses)
10419 (gimplify_adjust_omp_clauses): Likewise.
10420 * tree-nested.c (convert_nonlocal_omp_clauses)
10421 (convert_local_omp_clauses): Likewise.
10422 * omp-low.c (scan_sharing_clauses): Likewise.
10423 * omp-offload.c (execute_oacc_device_lower): Update.
10425 2021-07-21 Martin Sebor <msebor@redhat.com>
10427 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
10429 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10431 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
10434 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10436 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
10438 (write_fntype_init): New stub function.
10439 (write_init_bif_table): Likewise.
10440 (write_init_ovld_table): New function.
10441 (write_init_file): Implement.
10443 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10445 * config/rs6000/rs6000-gen-builtins.c
10446 (write_autogenerated_header): New function.
10447 (write_decls): Likewise.
10448 (write_extern_fntype): New callback function.
10449 (write_header_file): Implement.
10451 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10453 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
10456 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10458 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
10460 (complete_base_type): Likewise.
10461 (construct_fntype_id): Likewise.
10462 (parse_bif_entry): Call contruct_fntype_id.
10463 (parse_ovld_entry): Likewise.
10465 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10467 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
10468 (MAXOVLDSTANZAS): New macro.
10469 (ovld_stanzas): New variable.
10470 (curr_ovld_stanza): Likewise.
10471 (MAXOVLDS): New macro.
10472 (ovlddata): New struct.
10473 (ovlds): New variable.
10474 (curr_ovld): Likewise.
10475 (max_ovld_args): Likewise.
10476 (parse_ovld_entry): New function.
10477 (parse_ovld_stanza): Likewise.
10478 (parse_ovld): Implement.
10480 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10482 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
10485 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10487 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
10488 (parse_prototype): Implement.
10490 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10492 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
10493 (curr_bif_stanza): New variable.
10494 (stanza_entry): New struct.
10495 (stanza_map): New initialized variable.
10496 (enable_string): Likewise.
10497 (fnkinds): New enum.
10498 (typelist): New struct.
10499 (attrinfo): Likewise.
10500 (MAXRESTROPNDS): New macro.
10501 (prototype): New struct.
10502 (MAXBIFS): New macro.
10503 (bifdata): New struct.
10504 (bifs): New variable.
10505 (curr_bif): Likewise.
10506 (bif_order): Likewise.
10507 (bif_index): Likewise.
10508 (fatal): New function.
10509 (stanza_name_to_stanza): Likewise.
10510 (parse_bif_attrs): New stub function.
10511 (parse_prototype): Likewise.
10512 (parse_bif_entry): New function.
10513 (parse_bif_stanza): Likewise.
10514 (parse_bif): Implement.
10515 (set_bif_order): New function.
10516 (create_bif_order): Implement.
10518 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
10520 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
10521 (num_bifs): New variable.
10522 (num_ovld_stanzas): Likewise.
10523 (num_ovlds): Likewise.
10524 (parse_codes): New enum.
10525 (bif_rbt): New variable.
10526 (ovld_rbt): Likewise.
10527 (fntype_rbt): Likewise.
10528 (bifo_rbt): Likewise.
10529 (parse_bif): New stub function.
10530 (create_bif_order): Likewise.
10531 (parse_ovld): Likewise.
10532 (write_header_file): Likewise.
10533 (write_init_file): Likewise.
10534 (write_defines_file): Likewise.
10535 (delete_output_files): New function.
10538 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
10541 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
10542 from CRC32 _builtin functions.
10544 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
10546 * coverage.c (build_gcov_info_var_registration): Mark the object placed
10547 in the linker set as referenced so that it does not get optimized away.
10549 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
10552 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
10554 * config.gcc (riscv*-*-*): Detect which python is available.
10556 2021-07-21 Jakub Jelinek <jakub@redhat.com>
10558 PR middle-end/101535
10559 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
10560 contexts in which decl isn't privatized and for ORT_TARGET return
10561 false if decl is mapped.
10563 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
10565 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
10566 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
10567 has been successfully unrolled.
10569 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
10571 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
10572 exit condition if no tail loop is needed, and if the original exit
10573 condition should therefore be kept as-is.
10574 (tree_transform_and_unroll_loop): Handle that case here too.
10576 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
10578 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
10580 (free_data_refs): Likewise.
10581 * tree-data-ref.h (free_dependence_relations): Likewise.
10582 (free_data_refs): Likewise.
10583 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
10585 (struct component): Likewise.
10586 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
10587 (pcom_worker::~pcom_worker): Likewise.
10588 (pcom_worker::release_chain): Adjust as auto_vec changes.
10589 (pcom_worker::loop): Rename to ...
10590 (pcom_worker::m_loop): ... this.
10591 (pcom_worker::datarefs): Rename to ...
10592 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
10593 (pcom_worker::dependences): Rename to ...
10594 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
10595 (pcom_worker::chains): Rename to ...
10596 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
10597 (pcom_worker::looparound_phis): Rename to ...
10598 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
10600 (pcom_worker::cache): Rename to ...
10601 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
10602 (pcom_worker::release_chain): Adjust for auto_vec changes.
10603 (pcom_worker::release_chains): Adjust for auto_vec and renaming
10605 (release_component): Remove.
10606 (release_components): Adjust for release_component removal.
10607 (component_of): Adjust to use vec.
10608 (merge_comps): Likewise.
10609 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
10610 (pcom_worker::determine_offset): Likewise.
10611 (class comp_ptrs): Remove.
10612 (pcom_worker::split_data_refs_to_components): Adjust for renaming
10613 changes, for comp_ptrs removal with auto_vec.
10614 (pcom_worker::suitable_component_p): Adjust for renaming changes.
10615 (pcom_worker::filter_suitable_components): Adjust for release_component
10617 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
10618 (pcom_worker::find_looparound_phi): Likewise.
10619 (pcom_worker::add_looparound_copies): Likewise.
10620 (pcom_worker::determine_roots_comp): Likewise.
10621 (pcom_worker::single_nonlooparound_use): Likewise.
10622 (pcom_worker::execute_pred_commoning_chain): Likewise.
10623 (pcom_worker::execute_pred_commoning): Likewise.
10624 (pcom_worker::try_combine_chains): Likewise.
10625 (pcom_worker::prepare_initializers_chain): Likewise.
10626 (pcom_worker::prepare_initializers): Likewise.
10627 (pcom_worker::prepare_finalizers_chain): Likewise.
10628 (pcom_worker::prepare_finalizers): Likewise.
10629 (pcom_worker::tree_predictive_commoning_loop): Likewise.
10631 2021-07-20 Martin Sebor <msebor@redhat.com>
10633 PR middle-end/101397
10634 * builtins.c (gimple_call_return_array): Add argument. Correct
10635 offsets for memchr, mempcpy, stpcpy, and stpncpy.
10636 (compute_objsize_r): Adjust offset computation for argument returning
10639 2021-07-20 Martin Sebor <msebor@redhat.com>
10641 PR middle-end/101300
10642 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
10644 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
10646 * function.c (assign_parm_setup_block): Use adjust_address instead
10647 of change_address to preserve MEM_EXPR and friends.
10649 2021-07-20 Martin Sebor <msebor@redhat.com>
10651 * cfgloop.h (single_likely_exit): Adjust by-value argument to
10652 by-const-reference.
10653 * cfgloopanal.c (single_likely_exit): Same.
10654 * cgraph.h (struct cgraph_node): Same.
10655 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
10656 * genautomata.c (merge_states): Same.
10657 * genextract.c (VEC_char_to_string): Same.
10658 * genmatch.c (dt_node::gen_kids_1): Same.
10659 (walk_captures): Adjust by-value argument to by-reference.
10660 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
10661 to by-const-reference.
10662 * gimple.c (gimple_build_call_vec): Same.
10663 (gimple_build_call_internal_vec): Same.
10664 (gimple_build_switch): Same.
10665 (sort_case_labels): Same.
10666 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
10668 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
10669 by-const-reference.
10670 (gimple_build_call_internal_vec): Same.
10671 (gimple_build_switch): Same.
10672 (sort_case_labels): Same.
10673 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
10675 * haifa-sched.c (calc_priorities): Adjust by-value argument to
10676 by-const-reference.
10677 (sched_init_luids): Same.
10678 (haifa_init_h_i_d): Same.
10679 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
10680 (adjust_callers_for_value_intersection): Adjust by-value argument to
10682 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
10683 by-const-reference.
10684 (find_more_contexts_for_caller_subset): Same.
10685 (find_aggregate_values_for_callers_subset): Same.
10686 (copy_useful_known_contexts): Same.
10687 * ipa-fnsummary.c (remap_edge_summaries): Same.
10688 (remap_freqcounting_predicate): Same.
10689 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
10691 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
10692 to by-const-reference.
10693 * ipa-predicate.h (predicate::remap_after_inlining): Same.
10694 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
10695 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
10696 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
10697 * read-rtl.c (add_overload_instance): Same.
10698 * rtl.h (native_decode_rtx): Same.
10699 (native_decode_vector_rtx): Same.
10700 * sched-int.h (sched_init_luids): Same.
10701 (haifa_init_h_i_d): Same.
10702 * simplify-rtx.c (native_decode_vector_rtx): Same.
10703 (native_decode_rtx): Same.
10704 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
10705 (shrink_wrap_one_built_in_call_with_conds): Same.
10706 (shrink_wrap_conditional_dead_built_in_calls): Same.
10707 * tree-data-ref.c (create_runtime_alias_checks): Same.
10708 (compute_all_dependences): Same.
10709 * tree-data-ref.h (compute_all_dependences): Same.
10710 (create_runtime_alias_checks): Same.
10711 (index_in_loop_nest): Same.
10712 * tree-if-conv.c (mask_exists): Same.
10713 * tree-loop-distribution.c (class loop_distribution): Same.
10714 (loop_distribution::create_rdg_vertices): Same.
10715 (dump_rdg_partitions): Same.
10716 (debug_rdg_partitions): Same.
10717 (partition_contains_all_rw): Same.
10718 (loop_distribution::distribute_loop): Same.
10719 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
10720 (oacc_entry_exit_single_gang): Same.
10721 * tree-ssa-loop-im.c (hoist_memory_references): Same.
10722 (loop_suitable_for_sm): Same.
10723 * tree-ssa-loop-niter.c (bound_index): Same.
10724 * tree-ssa-reassoc.c (update_ops): Same.
10725 (swap_ops_for_binary_stmt): Same.
10726 (rewrite_expr_tree): Same.
10727 (rewrite_expr_tree_parallel): Same.
10728 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
10729 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
10730 * tree-ssa-structalias.c (process_all_all_constraints): Same.
10731 (make_constraints_to): Same.
10732 (handle_lhs_call): Same.
10733 (find_func_aliases_for_builtin_call): Same.
10734 (sort_fieldstack): Same.
10735 (check_for_overlaps): Same.
10736 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
10737 (vect_create_cond_for_unequal_addrs): Same.
10738 (vect_create_cond_for_lower_bounds): Same.
10739 (vect_create_cond_for_alias_checks): Same.
10740 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
10741 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
10742 (vect_make_slp_decision): Same.
10743 (vect_slp_bbs): Same.
10744 (duplicate_and_interleave): Same.
10745 (vect_transform_slp_perm_load): Same.
10746 (vect_schedule_slp): Same.
10747 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
10748 (vect_schedule_slp): Same.
10749 (duplicate_and_interleave): Same.
10750 * tree.c (build_vector_from_ctor): Same.
10751 (build_vector): Same.
10752 (check_vector_cst): Same.
10753 (check_vector_cst_duplicate): Same.
10754 (check_vector_cst_fill): Same.
10755 (check_vector_cst_stepped): Same.
10756 * tree.h (build_vector_from_ctor): Same.
10758 2021-07-20 Jakub Jelinek <jakub@redhat.com>
10761 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
10762 type from bool to int.
10763 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
10764 EASY_VECTOR_MSB case if either step or copies is not 1.
10765 (vspltis_shifted): Fix comment typo.
10766 (easy_altivec_constant): Change return type from bool to int, instead
10767 of returning true return byte size of the element mode that should be
10768 used to synthetize the constant.
10769 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
10770 that vspltis_shifted is 0, handle the case where easy_altivec_constant
10771 assumes using different vector mode from CONST_VECTOR's mode.
10772 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
10773 easy_altivec_constant to determine mode in which -1 >> -1 should be
10774 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
10776 2021-07-20 Richard Biener <rguenther@suse.de>
10779 * dwarf2out.h (dwarf_file_data): Add key member.
10780 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
10781 (dwarf_file_hasher::hash): Hash key.
10782 (lookup_filename): Remap the filename and store it in the
10783 filename member of dwarf_file_data when creating a new
10785 (file_name_acquire): Do not remap the filename again.
10786 (maybe_emit_file): Likewise.
10788 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
10790 * config/aarch64/aarch64-simd-builtins.def: Use two variant
10791 generators for all TBL/TBX intrinsics and rename to
10792 consistent forms: qtbl[1234] or qtbx[1234].
10793 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
10795 (aarch64_qtbl1<mode>): This.
10796 (aarch64_tbx1<mode>): Rename to...
10797 (aarch64_qtbx1<mode>): This.
10798 (aarch64_tbl2v16qi): Delete.
10799 (aarch64_tbl3<mode>): Rename to...
10800 (aarch64_qtbl2<mode>): This.
10801 (aarch64_tbx4<mode>): Rename to...
10802 (aarch64_qtbx2<mode>): This.
10803 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
10804 renamed qtbl1 and qtbl2 RTL patterns.
10805 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
10807 (vqtbl1_s8): Likewise.
10808 (vqtbl1_u8): Likewise.
10809 (vqtbl1q_p8): Likewise.
10810 (vqtbl1q_s8): Likewise.
10811 (vqtbl1q_u8): Likewise.
10812 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
10813 (vqtbx1_u8): Likewise.
10814 (vqtbx1_p8): Likewise.
10815 (vqtbx1q_s8): Likewise.
10816 (vqtbx1q_u8): Likewise.
10817 (vqtbx1q_p8): Likewise.
10818 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
10819 (vtbl1_u8): Likewise.
10820 (vtbl1_p8): Likewise.
10821 (vtbl2_s8): Likewise
10822 (vtbl2_u8): Likewise.
10823 (vtbl2_p8): Likewise.
10824 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
10825 (vtbl3_u8): Likewise.
10826 (vtbl3_p8): Likewise.
10827 (vtbl4_s8): Likewise.
10828 (vtbl4_u8): Likewise.
10829 (vtbl4_p8): Likewise.
10830 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
10831 (vtbx2_u8): Likewise.
10832 (vtbx2_p8): Likewise.
10833 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
10834 (vqtbl2_u8): Likewise.
10835 (vqtbl2_p8): Likewise.
10836 (vqtbl2q_s8): Likewise.
10837 (vqtbl2q_u8): Likewise.
10838 (vqtbl2q_p8): Likewise.
10839 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
10840 (vqtbx2_u8): Likewise.
10841 (vqtbx2_p8): Likewise.
10842 (vqtbx2q_s8): Likewise.
10843 (vqtbx2q_u8): Likewise.
10844 (vqtbx2q_p8): Likewise.
10845 (vtbx4_s8): Likewise.
10846 (vtbx4_u8): Likewise.
10847 (vtbx4_p8): Likewise.
10849 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
10852 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
10854 (define_peephole2 atomic_loaddi_fpu): Ditto.
10856 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
10858 * config.gcc (riscv*-*-*): Detect which python is available.
10860 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
10862 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
10863 (smul<mode>3_highpart): ... this.
10864 (mulhu_<mode>): Rename to...
10865 (umul<mode>3_highpart): ... this.
10866 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
10867 MULHU_V2DI, MULHU_V4SI): Adjust.
10869 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
10871 PR tree-optimization/100696
10872 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
10873 * internal-fn.def (IFN_MULH): New internal function.
10874 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
10875 recog normal multiply highpart as IFN_MULH.
10876 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
10879 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
10881 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
10882 (BTF_DEBUGGING_INFO): Likewise.
10883 * doc/tm.texi.in: Document the new macros.
10884 * doc/tm.texi: Regenerated.
10885 * toplev.c: Guard initialization of debug hooks.
10887 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
10889 * flags.h (ctf_debuginfo_p): New function declaration.
10890 * opts.c (ctf_debuginfo_p): New function definition.
10892 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
10895 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
10896 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
10897 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
10898 * config/gcn/gcn-valu.md: Add a warning comment.
10899 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
10900 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
10901 * config/gcn/gcn.md: Add a warning comment.
10902 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
10903 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
10905 (EF_AMDGPU_XNACK): New.
10906 (EF_AMDGPU_SRAM_ECC): New.
10908 (copy_early_debug_info): Use elf_flags.
10909 (main): Handle -mxnack and -msram-ecc options.
10910 * doc/invoke.texi: Document -mxnack and -msram-ecc.
10912 2021-07-19 Andrew Pinski <apinski@marvell.com>
10915 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
10916 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
10918 2021-07-19 Richard Biener <rguenther@suse.de>
10920 PR tree-optimization/101505
10921 * tree-vect-patterns.c (vect_determine_precisions): Walk
10922 PHIs also for loop vectorization.
10924 2021-07-19 Richard Biener <rguenther@suse.de>
10926 * gimple.h (gimple_expr_type): Remove.
10927 * doc/gimple.texi: Remove gimple_expr_type documentation.
10929 2021-07-19 Richard Biener <rguenther@suse.de>
10931 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
10932 (ao_ref_init_from_vn_reference): Likewise.
10933 (fully_constant_reference): Likewise.
10934 (vn_reference_lookup_call): Do not set vr->type to random
10936 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
10938 * tree-vect-generic.c (expand_vector_piecewise): Pass in
10939 whether we expanded parallel.
10940 (expand_vector_parallel): Adjust.
10941 (expand_vector_addition): Likewise.
10942 (expand_vector_comparison): Likewise.
10943 (expand_vector_operation): Likewise.
10944 (expand_vector_scalar_condition): Likewise.
10945 (expand_vector_conversion): Likewise.
10947 2021-07-19 Richard Biener <rguenther@suse.de>
10949 * tree-vrp.c (register_edge_assert_for_2): Use the
10951 (vrp_folder::fold_predicate_in): Likewise.
10952 * vr-values.c (gimple_assign_nonzero_p): Likewise.
10953 (vr_values::extract_range_from_comparison): Likewise.
10954 (vr_values::extract_range_from_ubsan_builtin): Use the
10955 type of the first operand.
10956 (vr_values::extract_range_basic): Push down type
10957 computation, use the appropriate LHS.
10958 (vr_values::extract_range_from_assignment): Use the
10961 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
10964 * common/config/i386/i386-common.c (ix86_handle_option): For
10965 -mgeneral-regs-only, enable the GPR only instructions which are
10966 enabled implicitly by SSE ISAs unless they have been disabled
10969 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
10972 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
10973 ix86_avx_u128_mode_needed.
10974 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
10975 returns AVX register.
10977 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
10979 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
10980 (handle_const_call): Liekise
10981 (handle_pure_call): Liekise
10983 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
10985 PR tree-optimization/96542
10986 * range-op.cc (range_operator::wi_fold_in_parts): New.
10987 (range_operator::fold_range): Call wi_fold_in_parts.
10988 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
10989 * range-op.h (wi_fold_in_parts): Add prototype.
10991 2021-07-16 David Malcolm <dmalcolm@redhat.com>
10993 * doc/analyzer.texi: Add __analyzer_dump_state.
10995 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
10997 * config/rs6000/rbtree.c: New file.
10998 * config/rs6000/rbtree.h: New file.
11000 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11002 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
11003 (typeinfo): Add restr field.
11004 (match_bracketed_pair): New function.
11005 (match_const_restriction): Implement.
11007 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11009 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
11011 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11013 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
11014 (basetype): Likewise.
11015 (typeinfo): Likewise.
11016 (handle_pointer): New function.
11017 (match_basetype): New stub function.
11018 (match_const_restriction): Likewise.
11019 (match_type): New function.
11021 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11023 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
11025 (advance_line): Likewise.
11026 (safe_inc_pos): Likewise.
11027 (match_identifier): Likewise.
11028 (match_integer): Likewise.
11029 (match_to_right_bracket): Likewise.
11031 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11033 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
11034 (ovld_file): Likewise.
11035 (header_file): Likewise.
11036 (init_file): Likewise.
11037 (defines_file): Likewise.
11038 (pgm_path): Likewise.
11039 (bif_path): Likewise.
11040 (ovld_path): Likewise.
11041 (header_path): Likewise.
11042 (init_path): Likewise.
11043 (defines_path): Likewise.
11044 (LINELEN): New macro.
11045 (linebuf): New variable.
11049 (bif_diag): New function.
11050 (ovld_diag): Likewise.
11052 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11054 * config/rs6000/rs6000-builtin-new.def: New.
11055 * config/rs6000/rs6000-overload.def: New.
11057 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11059 * config/rs6000/rs6000-gen-builtins.c: New.
11061 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11063 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
11064 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
11065 * gengtype-state.c (state_writer::write_state_file_list): Add a
11066 parameter to the fileslist expression for the number of build
11068 (read_state_files_list): Detect build headers and strip the
11069 initial "./" or ".\" from their names.
11070 * gengtype.c (build_headers): New global variable.
11071 (num_build_headers): Likewise.
11072 (open_base_files): Emit #include for each build header.
11073 (main): Detect and count build headers.
11074 * gengtype.h (build_headers): New extern variable.
11075 (num_build_headers): Likewise.
11077 2021-07-16 Richard Biener <rguenther@suse.de>
11079 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
11080 the type of the LHS.
11081 (find_bswap_or_nop_1): Likewise.
11082 (find_bswap_or_nop): Likewise.
11083 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
11085 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
11086 Remove unused parameters, pass in the scalar type. Fix
11087 internal store function handling.
11088 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
11089 (vect_get_vector_types_for_stmt): Move down check for
11090 existing vector stmt after we've determined a scalar type.
11091 Pass down the used scalar type to vect_get_smallest_scalar_type.
11092 * tree-vect-generic.c (expand_vector_condition): Use
11093 the type of the LHS.
11094 (expand_vector_scalar_condition): Likewise.
11095 (expand_vector_operations_1): Likewise.
11096 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
11097 (vect_recog_dot_prod_pattern): Likewise.
11098 (vect_recog_sad_pattern): Likewise.
11099 (vect_recog_widen_op_pattern): Likewise.
11100 (vect_recog_widen_sum_pattern): Likewise.
11101 (vect_recog_mixed_size_cond_pattern): Likewise.
11103 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
11105 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
11106 (dump_eaf_flags): Dump EAF_NOT_RETURNED
11107 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
11108 and EAF_NOT_RETURNED.
11109 (modref_summary::useful_p): Likewise.
11110 (modref_summary_lto::useful_p): Likewise.
11111 (struct) modref_summary_lto: Use eaf_fleags_t.
11112 (deref_flags): Handle EAF_NOT_RETURNED.
11113 (struct escape_point): Use min_flags.
11114 (modref_lattice::init): Add EAF_NOT_RETURNED.
11115 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
11116 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
11118 (analyze_parms): Also analyze const functions; update conition on
11120 (modref_write): Update streaming.
11121 (read_section): Update streaming.
11122 (remap_arg_flags): Use eaf_flags_t.
11123 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
11124 * ipa-modref.h: (eaf_flags_t): New typedef.
11125 (struct modref_summary): Use eaf_flags_t.
11126 * tree-core.h (EAF_NOT_RETURNED): New constant.
11128 2021-07-16 Richard Biener <rguenther@suse.de>
11130 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
11131 the type of the LHS.
11132 (gimple_assign_nonnegative_warnv_p): Likewise.
11133 (gimple_call_nonnegative_warnv_p): Likewise. Return false
11134 if the call has no LHS.
11135 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
11136 * tree-eh.c (stmt_could_throw_1_p): Likewise.
11137 * tree-inline.c (insert_init_stmt): Likewise.
11138 * tree-ssa-loop-niter.c (get_val_for): Likewise.
11139 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
11141 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
11142 gassign *. Use the type of the lhs.
11143 (vn_nary_op_lookup_stmt): Adjust.
11144 (vn_nary_op_insert_stmt): Likewise.
11146 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
11148 * config/s390/predicates.md (bras_sym_operand): Accept all
11149 functions in 64-bit mode, use UNSPEC_PLT31.
11150 (larl_operand): Use UNSPEC_PLT31.
11151 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
11152 (legitimize_pic_address): Likewise.
11153 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
11155 (s390_delegitimize_address): Use UNSPEC_PLT31.
11156 (s390_output_addr_const_extra): Likewise.
11157 (print_operand): Add @PLT to TLS calls, handle %K.
11158 (s390_function_profiler): Mark __fentry__/_mcount as function,
11159 use %K, use UNSPEC_PLT31.
11160 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
11161 (s390_emit_call): Use UNSPEC_PLT31.
11162 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
11163 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
11164 (*movdi_64): Use %K.
11165 (reload_base_64): Likewise.
11166 (*sibcall_brc): Likewise.
11167 (*sibcall_brcl): Likewise.
11168 (*sibcall_value_brc): Likewise.
11169 (*sibcall_value_brcl): Likewise.
11171 (*brasl): Likewise.
11172 (*bras_r): Likewise.
11173 (*brasl_r): Likewise.
11174 (*bras_tls): Likewise.
11175 (*brasl_tls): Likewise.
11176 (main_base_64): Likewise.
11177 (reload_base_64): Likewise.
11178 (@split_stack_call<mode>): Likewise.
11180 2021-07-16 Richard Biener <rguenther@suse.de>
11182 PR tree-optimization/101467
11183 * tree-vect-stmts.c (vect_gen_while): Properly guard
11184 make_temp_ssa_name usage.
11186 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
11188 * config.gcc: Don't use forked print-sysroot-suffix.sh and
11189 t-sysroot-suffix for C-SKY.
11190 * config/csky/print-sysroot-suffix.sh: Delete.
11191 * config/csky/t-csky-linux: Delete.
11192 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
11193 instead of CSKY_MULTILIB_DIRNAMES.
11195 2021-07-16 Richard Biener <rguenther@suse.de>
11197 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
11198 conversion issues with the partial reduction of the reused
11199 vector accumulator.
11201 2021-07-16 Richard Biener <rguenther@suse.de>
11203 * config/i386/i386-options.c (ix86_option_override_internal): Set
11204 param_vect_partial_vector_usage to zero if not set.
11206 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
11209 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
11210 (VALID_INT_MODE_P): Add SDmode and DDmode.
11211 Add TDmode for TARGET_64BIT.
11212 (VALID_DFP_MODE_P): Remove.
11213 * config/i386/i386.c (ix86_hard_regno_mode_ok):
11214 Do not use VALID_DFP_MODE_P.
11216 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
11218 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
11220 (fold_using_range::fold_stmt): Ditto.
11221 (fold_using_range::range_of_range_op): Ditto.
11222 (fold_using_range::range_of_phi): Ditto.
11223 (fold_using_range::range_of_call): Ditto.
11224 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
11225 (fold_using_range::range_of_builtin_call): Ditto.
11226 (fold_using_range::range_of_cond_expr): Ditto.
11227 * gimple-range-fold.h (gimple_range_type): New.
11229 2021-07-15 Martin Sebor <msebor@redhat.com>
11231 PR middle-end/97027
11232 * tree-ssa-strlen.c (handle_assign): New function.
11233 (maybe_warn_overflow): Add argument.
11234 (nonzero_bytes_for_type): New function.
11235 (count_nonzero_bytes): Handle more tree types. Call
11236 nonzero_bytes_for_tye.
11237 (count_nonzero_bytes): Handle types.
11238 (handle_store): Handle stores from function calls.
11239 (strlen_check_and_optimize_call): Move code to handle_assign. Call
11240 it for assignments from function calls.
11242 2021-07-15 David Malcolm <dmalcolm@redhat.com>
11247 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
11249 2021-07-15 David Malcolm <dmalcolm@redhat.com>
11251 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
11253 2021-07-15 Martin Sebor <msebor@redhat.com>
11257 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
11258 (operand_compare::verify_hash_value): Same.
11259 * tree-core.h (OEP_DECL_NAME): New.
11261 2021-07-15 Martin Jambor <mjambor@suse.cz>
11263 * profile-count.h (profile_count::value): Change the return type to
11265 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
11267 * tree-cfg.c (dump_function_to_file): Likewise.
11269 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
11272 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
11273 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
11276 2021-07-15 Richard Biener <rguenther@suse.de>
11278 * tree-vectorizer.h (vect_gen_while): Match up with
11279 vect_gen_while_not.
11280 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
11281 of vect_gen_while_not.
11282 (vect_gen_while_not): Adjust.
11283 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
11285 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
11287 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
11288 (ranger_cache::range_of_def): Call adjust_range.
11289 (ranger_cache::entry_range): Same.
11290 * gimple-range-cache.h (non_null_ref::adjust_range): New.
11291 * gimple-range.cc (gimple_ranger::range_of_expr): Call
11293 (gimple_ranger::range_on_entry): Same.
11295 2021-07-15 Tamar Christina <tamar.christina@arm.com>
11298 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11300 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
11302 2021-07-15 Tamar Christina <tamar.christina@arm.com>
11305 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11307 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
11308 (sdot_prod, udot_prod): ...These.
11309 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
11310 (aarch64_<sur>dot<vsi2qi>): Rename to...
11311 (<sur>dot_prod<vsi2qi>): ...This.
11312 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
11315 2021-07-15 Jakub Jelinek <jakub@redhat.com>
11317 PR middle-end/101437
11318 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
11319 types even if they have non-BLKmode TYPE_MODE.
11321 2021-07-15 Richard Biener <rguenther@suse.de>
11324 * gcc.c (process_command): Process -gtoggle like process_options
11325 would after parsing options.
11327 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
11329 * cfgexpand.c (expand_asm_loc): Adjust.
11330 (expand_asm_stmt): Likewise.
11331 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
11332 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
11333 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
11334 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
11335 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
11336 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
11337 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
11338 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
11339 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
11340 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
11341 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
11342 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
11343 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
11344 * doc/tm.texi: Regenerate.
11345 * target.def: Add location argument to md_asm_adjust.
11347 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
11349 * tree-diagnostic.c (diagnostic_report_current_function): Use the
11350 diagnostic's location, not input_location.
11352 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
11354 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
11356 (expand_asm_stmt): Likewise.
11358 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
11360 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
11361 addressed memory rtx, if any.
11362 (rs6000_split_multireg_move): Fix code formatting.
11363 Handle MMA build built-ins with operands in adjacent memory locations.
11365 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
11367 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
11370 2021-07-14 Jason Merrill <jason@redhat.com>
11372 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
11374 2021-07-14 Jason Merrill <jason@redhat.com>
11376 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
11379 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11381 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
11382 Remove erroneous line.
11384 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
11386 * params.opt (param_evrp_mode): Change default.
11388 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11390 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
11391 (sdot_prod, udot_prod): ...These.
11392 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
11393 (aarch64_<sur>dot<vsi2qi>): Rename to...
11394 (<sur>dot_prod<vsi2qi>): ...This.
11395 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
11398 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11400 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
11402 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11404 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
11406 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11408 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
11410 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11412 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
11413 (usdot_prod<vsi2qi>): ... This.
11414 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
11415 (usdot_prod): ...This.
11416 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
11417 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
11419 (@<sur>dot_prod<vsi2qi>): ...This.
11420 * config/aarch64/aarch64-sve-builtins-base.cc
11421 (svusdot_impl::expand): Use it.
11423 2021-07-14 Tamar Christina <tamar.christina@arm.com>
11425 * optabs.def (usdot_prod_optab): New.
11426 * doc/md.texi: Document it and clarify other dot prod optabs.
11427 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
11428 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
11429 * optabs.c (expand_widen_pattern_expr): Likewise.
11430 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
11431 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
11432 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
11434 (vect_widened_op_tree): Optionally ignore
11436 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
11438 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
11441 * config/i386/driver-i386.c (host_detect_local_cpu): Check
11442 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
11443 Enable UINTR only for 64-bit codegen.
11444 * config/i386/i386-options.c
11445 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
11447 * config/i386/i386.h (ARCH_ARG): New.
11448 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
11449 "[arch|tune] 64" for 64-bit codegen.
11451 2021-07-14 Richard Biener <rguenther@suse.de>
11453 PR tree-optimization/101445
11454 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
11455 of the IV in the correct direction for negative stride
11458 2021-07-14 Jakub Jelinek <jakub@redhat.com>
11461 * godump.c (godump_str_hash): New type.
11462 (godump_container::pot_dummy_types): Use string_hash instead of
11463 ptr_hash in the hash_set.
11465 2021-07-14 Richard Biener <rguenther@suse.de>
11467 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
11468 vector types where the old vector type has a multiple of
11469 the new vector type elements.
11470 (vect_create_partial_epilog): New function, split out from...
11471 (vect_create_epilog_for_reduction): ... here.
11472 (vect_transform_cycle_phi): Reduce the re-used accumulator
11473 to the new vector type.
11475 2021-07-14 Alexandre Oliva <oliva@adacore.com>
11477 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
11478 non-'t'-sized arg check.
11480 2021-07-14 Alexandre Oliva <oliva@adacore.com>
11482 * tree-cfg.c (cleanup_dead_labels_eh): Update
11483 post_landing_pad label upon change of landing pad block's
11485 (cleanup_dead_labels): Check that a removed label is not that
11488 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
11490 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
11492 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
11493 Add Neon to general purpose register case for zero-extend
11495 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
11496 case to prevent some cases opting to go through memory.
11497 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
11498 * rtl.c (rtvec_series_p): Define predicate to determine
11499 whether a vector contains a linear series of integers.
11500 * rtl.h (rtvec_series_p): Define.
11501 * rtlanal.c (vec_series_lowpart_p): Define predicate to
11502 determine if a vector selection is equivalent to the low part
11504 * rtlanal.h (vec_series_lowpart_p): Define.
11505 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
11506 Add vec_select -> subreg simplification.
11508 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
11510 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
11511 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
11512 _mm_test_mix_ones_zeros): New.
11514 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
11515 Richard Biener <rguenther@suse.de>
11517 * gimple.c (gimple_could_trap_p_1): Make S argument a
11518 "const gimple*". Preserve constness in call to
11519 gimple_asm_volatile_p.
11520 (gimple_could_trap_p): Make S argument a "const gimple*".
11521 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
11522 Update function prototypes.
11524 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11526 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
11527 (_loop_vec_info::main_loop_edge): New field.
11528 (_loop_vec_info::skip_main_loop_edge): Likewise.
11529 (_loop_vec_info::skip_this_loop_edge): Likewise.
11530 (_loop_vec_info::reusable_accumulators): Likewise.
11531 (_stmt_vec_info::reduc_scalar_results): Likewise.
11532 (_stmt_vec_info::reused_accumulator): Likewise.
11533 (vect_get_main_loop_result): Declare.
11534 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11535 reduc_scalar_inputs.
11536 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
11537 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
11538 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
11539 skip_main_loop_edge and skip_this_loop_edge fields.
11540 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
11541 (vect_emit_reduction_init_stmts): New function.
11542 (get_initial_def_for_reduction): Use it.
11543 (get_initial_defs_for_reduction): Likewise. Change the vinfo
11544 parameter to a loop_vec_info.
11545 (vect_create_epilog_for_reduction): Store the scalar results
11546 in the reduc_info. If an epilogue loop is reusing an accumulator
11547 from the main loop, and if the epilogue loop can also be skipped,
11548 try to place the reduction code in the join block. Record
11549 accumulators that could potentially be reused by epilogue loops.
11550 (vect_transform_cycle_phi): When vectorizing epilogue loops,
11551 try to reuse accumulators from the main loop. Record the initial
11552 value in reduc_info for non-SLP reductions too.
11554 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11556 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
11557 adjustment handling. Take the neutral value as an argument,
11558 in place of the code argument.
11559 (vect_transform_cycle_phi): Update accordingly. Handle the
11560 initial values of cond reductions separately from code reductions.
11561 Choose the adjustment here rather than in
11562 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
11564 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11566 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
11567 (neutral_op_for_reduction): ...this, providing a more general
11569 (vect_create_epilog_for_reduction): Update accordingly.
11570 (vectorizable_reduction): Likewise.
11571 (vect_transform_cycle_phi): Likewise.
11573 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11575 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
11576 reduc_info instead of the original stmt_vec_info.
11577 (vect_transform_cycle_phi): Update accordingly.
11579 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11581 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
11582 reduc_info as an additional parameter.
11583 (vect_transform_cycle_phi): Update accordingly.
11585 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11587 * tree-vectorizer.h: Include tree-ssa-operands.h.
11588 (vect_phi_initial_value): New function.
11589 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
11590 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
11591 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
11592 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
11594 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11596 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
11597 the phi results to vectype after creating them. Remove later
11598 conversion code that thus becomes redundant.
11600 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11602 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
11603 the new_phis vector with a reduc_inputs vector. Combine handling
11604 of reduction chains and ncopies > 1.
11606 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11608 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
11609 scalar_results to group_size elements after reducing down from
11610 N*group_size elements. Construct an array_slice of the live-out
11611 stmts and assert that there is one stmt per scalar result.
11613 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11615 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
11616 nested_in_vect_loop and use double_reduc everywhere. Remove dead
11617 assignment to "loop".
11619 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
11621 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
11622 vector types first. For scalar types, consider both the preferred
11623 vector mode and the alternative vector modes.
11624 * optabs-query.c (can_vec_mask_load_store_p): Use the same
11625 structure as above, in particular using related_vector_mode
11626 for modes provided by autovectorize_vector_modes.
11628 2021-07-13 Jakub Jelinek <jakub@redhat.com>
11629 Richard Biener <rguenther@suse.de>
11631 PR tree-optimization/101419
11632 * tree-pass.h (PROP_objsz): Define.
11633 (make_pass_early_object_sizes): Declare.
11634 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
11635 there to pass_early_object_sizes, drop parameter.
11636 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
11637 drop parameter, move pass_post_ipa_warn right after that.
11638 * tree-object-size.c (pass_object_sizes::execute): Rename to...
11639 (object_sizes_execute): ... this. Add insert_min_max_p argument.
11640 (pass_data_object_sizes): Move after object_sizes_execute.
11641 (pass_object_sizes): Likewise. In execute method call
11642 object_sizes_execute, drop set_pass_param method and insert_min_max_p
11643 non-static data member and its initializer in the ctor.
11644 (pass_data_early_object_sizes, pass_early_object_sizes,
11645 make_pass_early_object_sizes): New.
11646 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
11647 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
11649 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
11652 * config/riscv/constraints.md ("S"): Update description and remove
11654 * doc/md.texi (Machine Constraints): Document the 'S' constraints
11657 2021-07-13 Richard Biener <rguenther@suse.de>
11660 2021-07-12 Richard Biener <rguenther@suse.de>
11662 * tree-vect-slp.c (vect_slp_region): Show the number of
11663 SLP graph entries in the optimization message.
11665 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
11667 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
11669 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
11670 return type to long.
11671 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
11674 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
11676 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
11677 Query relation between the 2 operands and use it.
11679 2021-07-12 Sergei Trofimovich <siarheit@google.com>
11681 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
11683 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
11686 * config/i386/predicates.md (vec_setm_sse41_operand):
11687 Rename from vec_setm_operand.
11688 (vec_setm_avx2_operand): New predicate.
11689 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
11690 Use vec_setm_sse41_operand as operand 2 predicate.
11691 (vec_set<V_256_512:mode): New expander.
11692 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
11693 as operand 2 predicate.
11695 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
11697 PR tree-optimization/101335
11698 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
11700 2021-07-12 Andrew Pinski <apinski@marvell.com>
11702 * tree-ssa-phiopt.c (match_simplify_replacement): Move
11703 insert of the sequence before the movement of the
11704 statement. Check if to see if the statement is used
11705 outside of the original phi to see if we should move it.
11707 2021-07-12 Richard Biener <rguenther@suse.de>
11709 * dump-context.h (debug_dump_context::debug_dump_context):
11710 Add FILE * parameter defaulted to stderr.
11711 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
11712 * tree-vect-slp.c (dot_slp_tree): New functions.
11714 2021-07-12 Richard Biener <rguenther@suse.de>
11716 PR tree-optimization/101373
11717 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
11718 references when the BB may not return.
11719 (compute_avail): Pass in the function we're working on and
11720 replace cfun references with it. Externally throwing
11721 const calls also possibly terminate the function.
11722 (pass_pre::execute): Pass down the function we're working on.
11723 * gcse.c (compute_hash_table_work): Externally throwing
11724 const/pure calls also need record_last_mem_set_info.
11725 * postreload-gcse.c (record_opr_changes): Looping or externally
11726 throwing const/pure calls also need record_last_mem_set_info.
11728 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
11730 * recog.c (memory_address_addr_space_p): Change the type to bool.
11731 Return true/false instead of 1/0.
11732 (offsettable_memref_p): Ditto.
11733 (offsettable_nonstrict_memref_p): Ditto.
11734 (offsettable_address_addr_space_p): Ditto.
11735 Change the type of addressp indirect function to bool.
11736 * recog.h (memory_address_addr_space_p): Change the type to bool.
11737 (strict_memory_address_addr_space_p): Ditto.
11738 (offsettable_memref_p): Ditto.
11739 (offsettable_nonstrict_memref_p): Ditto.
11740 (offsettable_address_addr_space_p): Ditto.
11741 * reload.c (maybe_memory_address_addr_space_p): Ditto.
11742 (strict_memory_address_addr_space_p): Change the type to bool.
11743 Return true/false instead of 1/0.
11744 (maybe_memory_address_addr_space_p): Change the type to bool.
11746 2021-07-12 Richard Biener <rguenther@suse.de>
11748 * tree-vect-slp.c (vect_slp_region): Show the number of
11749 SLP graph entries in the optimization message.
11751 2021-07-12 Richard Biener <rguenther@suse.de>
11753 PR tree-optimization/101394
11754 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
11755 copies from abnormals for a full redundancy.
11757 2021-07-12 Richard Biener <rguenther@suse.de>
11759 PR middle-end/101423
11760 * gimple.c (gimple_could_trap_p_1): Internal function calls
11762 * tree-eh.c (tree_could_trap_p): Likewise.
11764 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
11767 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
11769 (vmulq_n_u32): Likewise.
11770 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
11771 (vmulq_n_f32): Likewise.
11772 (vmul_n_f16): Likewise.
11773 (vmulq_n_f16): Likewise.
11775 2021-07-12 Martin Liska <mliska@suse.cz>
11777 PR sanitizer/101425
11778 * gcc.c (check_offload_target_name): Call
11779 candidates_list_and_hint only if we have a candidate.
11781 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
11784 * config/arm/neon.md (vec_init): Move to ...
11785 * config/arm/vec-common.md (vec_init): ... here.
11786 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
11788 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
11790 PR tree-optimization/101403
11791 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
11792 signedness of the shift is not the same as the signedness of
11793 the type extension.
11795 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
11796 Uroš Bizjak <ubizjak@gmail.com>
11798 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
11799 divmod of a constant numerator with new define_insn_and_split.
11801 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
11804 * config/i386/i386-expand.c (ix86_expand_call): If a call is
11805 to a non-local-binding, or local but to a public symbol, then
11806 assume that it might be indirected via the lazy symbol binder.
11807 Mark R10 and R10 as clobbered in that case.
11809 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
11812 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
11813 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
11814 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
11816 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
11818 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
11819 log2 range of operands[3] to [1,31].
11820 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
11822 2021-07-09 Sergei Trofimovich <siarheit@google.com>
11824 * doc/md.texi: Don't split @smallexample in multiple @groups.
11826 2021-07-09 Sergei Trofimovich <siarheit@google.com>
11828 * doc/md.texi: Add missing 'see' word.
11830 2021-07-09 Andrew Pinski <apinski@marvell.com>
11832 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
11833 to take sequence and gimple_match_op. Accept the case where
11834 op is a SSA_NAME and one statement in the sequence.
11835 Also allow constants.
11836 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
11837 Update call to phiopt_early_allow. Discard the sequence if not
11840 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
11845 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
11846 instead of ISA_HAS_MSA.
11847 (mips_expand_vec_unpack): Likewise.
11848 (mips_expand_vector_init): Likewise.
11850 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
11852 * config/rs6000/vsx.md (mods_<mode>): Rename to...
11853 (mod<mode>3): ... this.
11854 (modu_<mode>): Rename to...
11855 (umod<mode>3): ... this.
11856 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
11857 MODU_V4SI): Adjust.
11859 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
11861 * config/h8300/shiftrotate.md (variable shifts): Expose condition
11862 code handling for the test before the loop.
11864 2021-07-08 Martin Jambor <mjambor@suse.cz>
11867 * ipa-sra.c (class isra_call_summary): New member
11868 m_before_any_store, initialize it in the constructor.
11869 (isra_call_summary::dump): Dump the new field.
11870 (ipa_sra_call_summaries::duplicate): Copy it.
11871 (process_scan_results): Set it.
11872 (isra_write_edge_summary): Stream it.
11873 (isra_read_edge_summary): Likewise.
11874 (param_splitting_across_edge): Only override
11875 safe_to_import_accesses if m_before_any_store is set.
11877 2021-07-08 Martin Sebor <msebor@redhat.com>
11879 PR bootstrap/101374
11880 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
11881 Use Object Size Type 0 instead of 1.
11883 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
11885 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
11888 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
11890 * match.pd: Simplify an extend-operate-truncate sequence involving
11893 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
11894 Richard Biener <rguenther@suse.de>
11896 PR tree-optimization/40210
11897 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
11898 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
11899 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
11901 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
11904 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
11906 * config/i386/mmx.md (V_32): New mode iterator.
11907 (mov<V_32:mode>): Use V_32 mode iterator.
11908 (*mov<V_32:mode>_internal): Ditto.
11909 (*push<V_32:mode>2_rex64): Ditto.
11910 (*push<V_32:mode>2): Ditto.
11911 (movmisalign<V_32:mode>): Ditto.
11912 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
11913 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
11914 (vec_unpacks_lo_v4qi): New expander.
11915 (vec_unpacks_hi_v4qi): Ditto.
11916 (vec_unpacku_lo_v4qi): Ditto.
11917 (vec_unpacku_hi_v4qi): Ditto.
11918 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
11919 (VALID_INT_MODE_P): Ditto.
11921 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
11924 * config/rs6000/rs6000.md (udivti3): New insn.
11925 (divti3): New insn.
11926 (umodti3): New insn.
11927 (modti3): New insn.
11929 2021-07-07 Martin Sebor <msebor@redhat.com>
11931 PR tree-optimization/100137
11932 PR tree-optimization/99121
11933 PR tree-optimization/97027
11934 * builtins.c (access_ref::access_ref): Also set offmax.
11935 (access_ref::offset_in_range): Define new function.
11936 (access_ref::add_offset): Set offmax.
11937 (access_ref::inform_access): Handle access_none.
11938 (handle_mem_ref): Clear ostype.
11939 (compute_objsize_r): Handle ASSERT_EXPR.
11940 * builtins.h (struct access_ref): Add offmax member.
11941 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
11942 compute_objsize() and simplify.
11944 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
11946 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
11947 and VSX_BUILTIN_STXVP.
11949 2021-07-07 Martin Sebor <msebor@redhat.com>
11952 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
11953 a stray %K from error_at() missed in r12-2088.
11955 2021-07-07 Richard Biener <rguenther@suse.de>
11957 PR tree-optimization/99728
11958 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
11960 (mem_refs_may_alias_p): Add assert we handled aggregate
11962 (sm_seq_valid_bb): Give up when running into aggregate copies.
11963 (ref_indep_loop_p): Handle aggregate copies as never
11964 being invariant themselves but allow other refs to be
11965 disambiguated against them.
11966 (can_sm_ref_p): Do not try to apply store-motion to aggregate
11969 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
11972 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
11975 2021-07-06 Martin Sebor <msebor@redhat.com>
11977 * gimple-pretty-print.c (percent_G_format): Remove.
11978 * tree-diagnostic.c (default_tree_printer): Remove calls.
11979 * tree-pretty-print.c (percent_K_format): Remove.
11980 * tree-pretty-print.h (percent_K_format): Remove.
11982 2021-07-06 Martin Sebor <msebor@redhat.com>
11984 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
11985 Remove %K and use error_at.
11986 (aarch64_expand_fcmla_builtin): Same.
11987 (aarch64_expand_builtin_tme): Same.
11988 (aarch64_expand_builtin_memtag): Same.
11989 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
11990 (arm_expand_builtin): Same.
11991 * config/arm/arm.c (bounds_check): Same.
11993 2021-07-06 Martin Sebor <msebor@redhat.com>
11995 * builtins.c (warn_string_no_nul): Remove %G.
11996 (maybe_warn_for_bound): Same.
11997 (warn_for_access): Same.
11998 (check_access): Same.
11999 (check_strncat_sizes): Same.
12000 (expand_builtin_strncat): Same.
12001 (expand_builtin_strncmp): Same.
12002 (expand_builtin): Same.
12003 (expand_builtin_object_size): Same.
12004 (warn_dealloc_offset): Same.
12005 (maybe_emit_free_warning): Same.
12006 * calls.c (maybe_warn_alloc_args_overflow): Same.
12007 (maybe_warn_nonstring_arg): Same.
12008 (maybe_warn_rdwr_sizes): Same.
12009 * expr.c (expand_expr_real_1): Remove %K.
12010 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
12011 (gimple_fold_builtin_strncat): Same.
12012 * gimple-ssa-sprintf.c (format_directive): Same.
12013 (handle_printf_call): Same.
12014 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
12015 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
12016 (maybe_diag_access_bounds): Same. Call gimple_location.
12017 (check_bounds_or_overlap): Same.
12018 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
12019 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
12020 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
12021 (maybe_diag_stxncpy_trunc): Same.
12022 (handle_builtin_stxncpy_strncat): Same.
12023 (maybe_warn_pointless_strcmp): Same.
12024 * tree-ssa-uninit.c (maybe_warn_operand): Same.
12026 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
12029 * config/i386/predicates.md (vec_setm_operand): Enable
12030 register_operand for TARGET_SSE4_1.
12031 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
12032 as operand 2 predicate. Call ix86_expand_vector_set_var
12033 for non-constant index operand.
12034 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
12035 Call ix86_expand_vector_set_var for non-constant index operand.
12037 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
12039 * config/h8300/jumpcall.md (*branch): When possible, generate
12040 the comparison in CCZN mode.
12041 * config/h8300/predicates.md (simple_memory_operand): Reject all
12042 auto-increment addressing modes.
12044 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
12046 PR bootstrap/100246
12047 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
12050 2021-07-06 Richard Biener <rguenther@suse.de>
12052 * doc/md.texi (vec_fmaddsub<mode>4): Document.
12053 (vec_fmsubadd<mode>4): Likewise.
12054 * optabs.def (vec_fmaddsub$a4): Add.
12055 (vec_fmsubadd$a4): Likewise.
12056 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
12057 (IFN_VEC_FMSUBADD): Likewise.
12058 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
12059 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
12060 (addsub_pattern::build): Likewise.
12061 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
12062 and CFN_VEC_FMSUBADD are not transparent for permutes.
12063 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
12064 (vec_fmsubadd<mode>4): Likewise.
12066 2021-07-06 Richard Biener <rguenther@suse.de>
12068 * doc/invoke.texi (fmove-loop-stores): Document.
12069 * common.opt (fmove-loop-stores): New option.
12070 * opts.c (default_options_table): Enable -fmove-loop-stores
12071 at -O1 but not -Og.
12072 * tree-ssa-loop-im.c (pass_lim::execute): Pass
12073 flag_move_loop_stores instead of true to
12074 loop_invariant_motion_in_fun.
12076 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
12078 * doc/install.texi: Document --with-dsymutil.
12080 2021-07-06 Andrew Pinski <apinski@marvell.com>
12082 PR tree-optimization/101256
12083 * dbgcnt.def (phiopt_edge_range): New counter.
12084 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
12085 Check to make sure the new name is defined in the same
12086 bb as the conditional before duplicating range info.
12087 Also add debug counter.
12089 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
12091 PR rtl-optimization/100328
12092 * config/i386/i386-options.c (ix86_option_override_internal):
12093 Set param_ira_consider_dup_in_all_alts to 0.
12095 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
12097 PR rtl-optimization/100328
12098 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
12100 * ira.c (ira_get_dup_out_num): Adjust as parameter
12101 param_ira_consider_dup_in_all_alts.
12102 * params.opt (ira-consider-dup-in-all-alts): New.
12103 * ira-conflicts.c (process_regs_for_copy): Add one parameter
12104 single_input_op_has_cstr_p.
12105 (get_freq_for_shuffle_copy): New function.
12106 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
12107 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
12109 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
12111 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
12112 generate condition code aware RTL directly.
12114 2021-07-05 Andrew Pinski <apinski@marvell.com>
12116 PR tree-optimization/101039
12117 * match.pd (A CMP 0 ? A : -A): New patterns.
12118 * tree-ssa-phiopt.c (abs_replacement): Delete function.
12119 (tree_ssa_phiopt_worker): Don't call abs_replacement.
12120 Update comment about abs_replacement.
12122 2021-07-05 Andrew Pinski <apinski@marvell.com>
12124 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
12125 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
12127 2021-07-05 Andrew Pinski <apinski@marvell.com>
12129 * tree-ssa-phiopt.c (match_simplify_replacement):
12130 Add early_p argument. Call gimple_simplify_phiopt
12131 instead of gimple_simplify.
12132 (tree_ssa_phiopt_worker): Update call to
12133 match_simplify_replacement and allow unconditionally.
12134 (phiopt_early_allow): New function.
12135 (gimple_simplify_phiopt): New function.
12137 2021-07-05 Andrew Pinski <apinski@marvell.com>
12139 PR middle-end/101237
12140 * fold-const.c (negate_expr_p): Remove call to element_mode
12141 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
12142 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
12143 (fold_negate_expr_1): Likewise.
12144 (const_unop): Likewise.
12145 (fold_cond_expr_with_comparison): Likewise.
12146 (fold_binary_loc): Likewise.
12147 (fold_ternary_loc): Likewise.
12148 (tree_call_nonnegative_warnv_p): Likewise.
12149 * match.pd (-(A + B) -> (-B) - A): Likewise.
12151 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
12153 * configure.ac: Handle --with-dsymutil in the same way as we
12154 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
12155 Extract the type and version for the dsymutil configured or
12156 found by the default searches.
12157 * config.in: Regenerated.
12158 * configure: Regenerated.
12159 * collect2.c (do_dsymutil): Handle locating dsymutil in the
12160 same way as for the assembler and linker.
12161 * config/darwin.h (DSYMUTIL): Delete.
12162 * gcc.c: Report a configured dsymutil correctly.
12163 * exec-tool.in: Allow for dsymutil.
12165 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
12167 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
12168 Handle V4QI and V2HI modes.
12169 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
12170 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
12171 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
12172 Handle 4-byte dual operands with TARGET_XOP and single operands
12173 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
12174 mmx_pshufbv4qi3 for TARGET_SSSE3.
12175 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
12176 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
12177 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
12178 (expand_vec_perm_even_odd_1): Handle V4QI mode.
12179 (expand_vec_perm_broadcast_1): Handle V4QI mode.
12180 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
12181 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
12182 (mmx_pshufbv4qi3): Ditto.
12183 (*mmx_pblendw32): Ditto.
12184 (*mmx_pblendw64): Rename from *mmx_pblendw.
12185 (mmx_punpckhbw_low): New insn_and_split pattern.
12186 (mmx_punpcklbw_low): Ditto.
12188 2021-07-05 Richard Biener <rguenther@suse.de>
12190 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
12191 set LOOP_C_INFINITE on the vectorized loop.
12193 2021-07-05 Richard Biener <rguenther@suse.de>
12195 PR middle-end/101291
12196 * cfgloopmanip.c (loop_version): Set the loop copy of the
12197 versioned loop to the new loop.
12199 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
12202 * config.gcc: Ensure that Darwin biarch definitions are
12203 added before i386.h.
12204 * config/i386/darwin.h (TARGET_64BIT): Remove.
12205 (PR80556_WORKAROUND): New.
12206 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
12207 (DARWIN_SUBARCH_SPEC): New.
12208 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
12209 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
12210 (REAL_LIBGCC_SPEC): Remove.
12211 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
12212 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
12213 (REAL_LIBGCC_SPEC): Remove.
12215 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
12217 PR middle-end/101294
12218 * expr.c (store_constructor): Don't use vec_duplicate on vector.
12220 2021-07-02 Martin Sebor <msebor@redhat.com>
12222 PR middle-end/98871
12223 PR middle-end/98512
12224 * diagnostic.c (get_any_inlining_info): New.
12225 (update_effective_level_from_pragmas): Handle inlining context.
12226 (diagnostic_enabled): Same.
12227 (diagnostic_report_diagnostic): Same.
12228 * diagnostic.h (struct diagnostic_info): Add ctor.
12229 (struct diagnostic_context): Add new member.
12230 * tree-diagnostic.c (set_inlining_locations): New.
12231 (tree_diagnostics_defaults): Set new callback pointer.
12233 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
12235 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
12237 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
12238 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
12239 lxvp and stxvp built-ins.
12240 (mma_init_builtins): Handle lxvp and stxvp built-ins.
12241 (builtin_function_type): Likewise.
12242 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
12244 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
12246 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
12247 additional argument for the code.
12248 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
12249 argument for the code. Just return if the ZN bits are useful or
12250 not rather than the old style CC_* enums.
12251 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
12252 more generic shiftqi patterns.
12253 (shifthi_noscratch, shiftsi_noscratch): Similarly.
12254 (shiftqi_noscratch_set_flags): New pattern.
12255 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
12257 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
12259 PR tree-optimization/101223
12260 * range-op.cc (build_lt): Add -1 for signed values.
12261 (built_gt): Subtract -1 for signed values.
12263 2021-07-02 David Faust <david.faust@oracle.com>
12265 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
12266 (btf_asm_type): Likewise.
12268 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
12270 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
12271 an array of rtx rather than a pointer to rtx. Add code argument.
12272 (compute_a_shift_length): Similarly.
12273 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
12274 shift itself isn't an operand. Create dummy operand[0] to carry
12275 a mode and pass a suitable rtx code to compute_a_shift_length.
12276 (get_shift_alg): Adjust operand number of clobber in output templates.
12277 (output_a_shift): Make first argument an array of rtx rather than
12278 a pointer to rtx. Add code argument for the type of shift.
12279 Adjust now that the shift itself is no longer an operand.
12280 (compute_a_shift_length): Similarly.
12281 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
12282 iterator rather than nshift_operator.
12283 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
12284 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
12285 and compute_a_shift_length.
12286 (shiftqi_noscratch_clobber_flags): Likewise.
12287 (shifthi_noscratch_clobber_flags): Likewise.
12288 (shiftsi_noscratch_clobber_flags): Likewise.
12290 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
12293 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
12294 dsymutil for BTF/CTF.
12296 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
12299 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
12300 segment to include BTF.
12301 (BTF_INFO_SECTION_NAME): New.
12303 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
12305 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
12306 (small_data_operand, memreg_operand, small_insn_p): Likewise.
12307 * config/m32r/m32r.c (call_operand): Adjust return type.
12308 (small_data_operand, memreg_operand): Likewise.
12310 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
12312 * config/frv/frv-protos.h (integer_register_operand): Adjust return
12314 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
12315 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
12316 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
12317 (move_source_operand, move_destination_operand): Likewise.
12318 (condexec_source_operand, condexec_dest_operand): Likewise.
12319 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
12320 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
12321 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
12322 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
12323 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
12324 (even_fpr_operand, odd_fpr_operand): Likewise.
12325 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
12326 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
12327 (uint4_operand, uint1_operand, int_2word_operand): Likewise
12328 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
12329 (relational_operator, float_relational_operator): Likewise.
12330 (ccr_eqne_operator, minmax_operator): Likewise.
12331 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
12332 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
12333 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
12334 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
12335 (quad_acc_operand, accg_operand): Likewise.
12337 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
12339 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
12340 return type to a bool.
12341 (nonimmediate_nonstack_operand): Likewise.
12342 (xstormy16_splittable_below100_operand): Likewise.
12343 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
12345 (xstormy16_splittable_below100_operand): Likewise.
12347 2021-07-02 Richard Biener <rguenther@suse.de>
12349 PR tree-optimization/101293
12350 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
12351 with combined offsets.
12352 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
12353 combined with the rest of the offset.
12355 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
12357 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
12358 PIC encodings for PE-COFF targets.
12360 2021-07-02 Jakub Jelinek <jakub@redhat.com>
12363 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
12364 Return nullptr for TImode inner mode.
12366 2021-07-02 Richard Biener <rguenther@suse.de>
12368 PR tree-optimization/101280
12369 PR tree-optimization/101173
12370 * gimple-loop-interchange.cc
12371 (tree_loop_interchange::valid_data_dependences): Properly
12372 guard all dependence checks with DDR_REVERSED_P or its
12375 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
12377 * config/i386/i386-expand.c (ix86_expand_builtin):
12378 Add branch to clear odata when ZF is set for asedecenc_expand
12379 and wideaesdecenc_expand.
12381 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
12383 * config/i386/gcc-auto-profile: regenerate
12385 2021-07-02 liuhongt <hongtao.liu@intel.com>
12387 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
12388 (trunc<mode><pmov_dst_4_lower>2): this.
12390 2021-07-01 David Malcolm <dmalcolm@redhat.com>
12392 * diagnostic.h (diagnostic_context::m_file_cache): New field.
12393 * input.c (class fcache): Rename to...
12394 (class file_cache_slot): ...this, making most members private and
12395 prefixing fields with "m_".
12396 (file_cache_slot::get_file_path): New accessor.
12397 (file_cache_slot::get_use_count): New accessor.
12398 (file_cache_slot::missing_trailing_newline_p): New accessor.
12399 (file_cache_slot::inc_use_count): New.
12400 (fcache_buffer_size): Move to...
12401 (file_cache_slot::buffer_size): ...here.
12402 (fcache_line_record_size): Move to...
12403 (file_cache_slot::line_record_size): ...here.
12404 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
12405 (fcache_tab_size): Move to file_cache::num_file_slots.
12406 (diagnostic_file_cache_init): Update for move of fcache_tab
12407 to global_dc->m_file_cache.
12408 (diagnostic_file_cache_fini): Likewise.
12409 (lookup_file_in_cache_tab): Convert to...
12410 (file_cache::lookup_file): ...this.
12411 (diagnostics_file_cache_forcibly_evict_file): Update for move of
12412 fcache_tab to global_dc->m_file_cache, moving most of
12413 implementation to...
12414 (file_cache::forcibly_evict_file): ...this new function and...
12415 (file_cache_slot::evict): ...this new function.
12416 (evicted_cache_tab_entry): Convert to...
12417 (file_cache::evicted_cache_tab_entry): ...this.
12418 (add_file_to_cache_tab): Convert to...
12419 (file_cache::add_file): ...this, moving bulk of implementation
12421 (file_cache_slot::create): ..this new function.
12422 (file_cache::file_cache): New.
12423 (file_cache::~file_cache): New.
12424 (lookup_or_add_file_to_cache_tab): Convert to...
12425 (file_cache::lookup_or_add_file): ..this new function.
12426 (fcache::fcache): Rename to...
12427 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
12429 (fcache::~fcache): Rename to...
12430 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
12432 (needs_read): Convert to...
12433 (file_cache_slot::needs_read_p): ...this.
12434 (needs_grow): Convert to...
12435 (file_cache_slot::needs_grow_p): ...this.
12436 (maybe_grow): Convert to...
12437 (file_cache_slot::maybe_grow): ...this.
12438 (read_data): Convert to...
12439 (file_cache_slot::read_data): ...this.
12440 (maybe_read_data): Convert to...
12441 (file_cache_slot::maybe_read_data): ...this.
12442 (get_next_line): Convert to...
12443 (file_cache_slot::get_next_line): ...this.
12444 (goto_next_line): Convert to...
12445 (file_cache_slot::goto_next_line): ...this.
12446 (read_line_num): Convert to...
12447 (file_cache_slot::read_line_num): ...this.
12448 (location_get_source_line): Update for moving of globals to
12449 global_dc->m_file_cache.
12450 (location_missing_trailing_newline): Likewise.
12451 * input.h (class file_cache_slot): New forward decl.
12452 (class file_cache): New.
12454 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
12456 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
12457 128-bit floating point conditional move support.
12458 (have_compare_and_set_mask): Add IEEE 128-bit floating point
12460 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
12461 (mov<mode>cc_p10, IEEE128 iterator): New insn.
12462 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
12463 (fpmask<mode>, IEEE128 iterator): New insn.
12464 (xxsel<mode>, IEEE128 iterator): New insn.
12466 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
12469 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
12471 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
12473 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
12475 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
12477 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
12478 (vec_duplicate<mode>): New expander.
12480 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
12483 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
12485 (ix86_byte_broadcast): New function.
12486 (ix86_convert_const_wide_int_to_broadcast): Likewise.
12487 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
12488 size is 16 bytes or bigger.
12489 (ix86_broadcast_from_integer_constant): New function.
12490 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
12491 to broadcast if mode size is 16 bytes or bigger.
12492 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
12494 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
12496 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
12498 * config/i386/predicates.md (ix86_endbr_immediate_operand):
12499 Return true/false instead of 1/0.
12500 (movq_parallel): Ditto.
12502 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
12504 * recog.c (general_operand): Return true/false instead of 1/0.
12505 (register_operand): Ditto.
12506 (immediate_operand): Ditto.
12507 (const_int_operand): Ditto.
12508 (const_scalar_int_operand): Ditto.
12509 (const_double_operand): Ditto.
12510 (push_operand): Ditto.
12511 (pop_operand): Ditto.
12512 (memory_operand): Ditto.
12513 (indirect_operand): Ditto.
12515 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
12517 * genpreds.c (write_predicate_subfunction):
12518 Change the type of written subfunction to bool.
12519 (write_one_predicate_function):
12520 Change the type of written function to bool.
12521 (write_tm_preds_h): Ditto.
12522 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
12523 * recog.c (general_operand): Change the type to bool.
12524 (address_operand): Ditto.
12525 (register_operand): Ditto.
12526 (pmode_register_operand): Ditto.
12527 (scratch_operand): Ditto.
12528 (immediate_operand): Ditto.
12529 (const_int_operand): Ditto.
12530 (const_scalar_int_operand): Ditto.
12531 (const_double_operand): Ditto.
12532 (nonimmediate_operand): Ditto.
12533 (nonmemory_operand): Ditto.
12534 (push_operand): Ditto.
12535 (pop_operand): Ditto.
12536 (memory_operand): Ditto.
12537 (indirect_operand): Ditto.
12538 (ordered_comparison_operator): Ditto.
12539 (comparison_operator): Ditto.
12540 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
12541 Change the type of indirect predicate function to bool.
12542 * config/rs6000/rs6000.c (easy_vector_constant):
12543 Change the type to bool.
12544 * config/mips/mips-protos.h (m16_based_address_p):
12545 Change the type of operand 3 to bool.
12547 2021-07-01 Richard Biener <rguenther@suse.de>
12549 PR tree-optimization/101280
12550 PR tree-optimization/101173
12551 * gimple-loop-interchange.cc
12552 (tree_loop_interchange::valid_data_dependences): Revert
12553 previous change and instead correctly handle DDR_REVERSED_P
12556 2021-07-01 Richard Biener <rguenther@suse.de>
12558 PR tree-optimization/101278
12559 * tree-ssa-dse.c (dse_classify_store): First check for
12560 uses, then ignore stmt for chaining purposes.
12562 2021-07-01 Richard Biener <rguenther@suse.de>
12564 PR tree-optimization/100778
12565 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
12566 vectorized ops ahead of their scalar BB.
12568 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
12571 * config/i386/i386.md (*nabs<dwi>2_doubleword):
12572 New insn_and_split pattern.
12573 (*nabs<dwi>2_1): Ditto.
12574 * config/i386/i386-features.c
12575 (general_scalar_chain::compute_convert_gain):
12576 Handle (NEG (ABS (...))) RTX. Rewrite src code
12577 scanner as switch statement.
12578 (general_scalar_chain::convert_insn):
12579 Handle (NEG (ABS (...))) RTX.
12580 (general_scalar_to_vector_candidate_p):
12581 Detect (NEG (ABS (...))) RTX. Reorder case statements
12582 for (AND (NOT (...) ...)) fallthrough.
12584 2021-07-01 Richard Biener <rguenther@suse.de>
12586 PR tree-optimization/101178
12587 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
12588 (slpg::perm_in): Add.
12589 (slpg::get_perm_in): Remove.
12590 (slpg::get_perm_materialized): Add.
12591 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
12592 during permute propagation and materialization.
12594 2021-07-01 Jakub Jelinek <jakub@redhat.com>
12597 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
12599 2021-07-01 Jakub Jelinek <jakub@redhat.com>
12601 PR middle-end/94366
12602 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
12603 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
12604 use boolean_type_node instead of integer_type_node as NE_EXPR type.
12605 (lower_reduction_clauses): Likewise.
12607 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
12609 * config/gcn/gcn.c: Include dwarf2.h.
12610 (gcn_addr_space_debug): New function.
12611 (TARGET_ADDR_SPACE_DEBUG): New hook.
12613 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
12615 * common/config/gcn/gcn-common.c
12616 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
12617 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
12619 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
12620 (gcn_frame_pointer_rqd): New function.
12621 (TARGET_FRAME_POINTER_REQUIRED): New hook.
12623 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
12625 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
12626 prologue register saves.
12627 (gcn_debug_unwind_info): Use UI_DWARF2.
12628 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
12629 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
12630 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
12631 (DWARF_LINK_REGISTER): New define.
12632 (FIRST_PSEUDO_REGISTER): Increment.
12633 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
12634 (CALL_USED_REGISTERS): Likewise.
12635 (REGISTER_NAMES): Likewise.
12637 2021-06-30 Richard Biener <rguenther@suse.de>
12639 PR tree-optimization/101267
12640 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
12641 API and use SLP compatible interface of vect_is_simple_use.
12642 Reject not vectorized SLP defs for callers that do not support
12644 (vect_check_store_rhs): Handle masked stores and pass down
12645 the appropriate operator index.
12646 (vectorizable_call): Adjust.
12647 (vectorizable_store): Likewise.
12648 (vectorizable_load): Likewise. Handle SLP pecularity of
12650 (vect_is_simple_use): Remove special-casing of masked stores.
12652 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
12654 * common.opt (foffload): Remove help as Driver only.
12655 * gcc.c (display_help): Add -foffload.
12657 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
12659 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
12660 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
12661 a candidate list; better inform no offload target is configured
12662 and fix hint extraction when passed target is not '\0' at [len].
12663 * common.opt (foffload): Add tailing '.'.
12664 (foffload-options): Likewise; fix flag name in the help string.
12666 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
12669 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
12670 (vcage_f32): Gate comparison on __FAST_MATH__.
12671 (vcageq_f32): Likewise.
12672 (vcale_f32): Likewise.
12673 (vcaleq_f32): Likewise.
12674 (vcagt_f32): Likewise.
12675 (vcagtq_f32): Likewise.
12676 (vcalt_f32): Likewise.
12677 (vcaltq_f32): Likewise.
12678 (vcage_f16): Likewise.
12679 (vcageq_f16): Likewise.
12680 (vcale_f16): Likewise.
12681 (vcaleq_f16): Likewise.
12682 (vcagt_f16): Likewise.
12683 (vcagtq_f16): Likewise.
12684 (vcalt_f16): Likewise.
12685 (vcaltq_f16): Likewise.
12687 2021-06-30 Richard Biener <rguenther@suse.de>
12689 PR tree-optimization/101264
12690 * tree-vect-slp.c (vect_optimize_slp): Propagate the
12691 computed perm_in to all "any" permute successors
12692 we cannot de-duplicate immediately.
12694 2021-06-30 liuhongt <hongtao.liu@intel.com>
12697 * config/i386/sse.md
12698 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
12700 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
12702 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
12703 * config/i386/subst.md (maskz_scalar): New define_subst.
12704 (maskz_scalar_name): New subst_attr.
12705 (maskz_scalar_op5): Ditto.
12706 (round_saeonly_maskz_scalar_op5): Ditto.
12707 (round_saeonly_maskz_scalar_operand5): Ditto.
12709 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
12711 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
12712 Increase code CSECT alignment to at least 32 bytes.
12713 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
12714 alignment designation.
12716 2021-06-29 Sergei Trofimovich <siarheit@google.com>
12718 * doc/generic.texi: Fix s/net yet/not yet/ typo.
12720 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
12722 PR tree-optimization/101254
12723 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
12724 wrapping/non-wrapping when setting the result range.
12726 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
12728 * value-query.cc (gimple_range_global): Allow phis.
12730 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
12732 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
12733 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
12734 statement for location context.
12735 (check_for_binary_op_overflow): Ditto.
12736 (simplify_using_ranges::get_vr_for_comparison): Ditto.
12737 (simplify_using_ranges::compare_name_with_value): Ditto.
12738 (simplify_using_ranges::compare_names): Ditto.
12739 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
12740 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
12741 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
12742 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
12743 (simplify_using_ranges::two_valued_val_range_p): Ditto.
12744 (simplify_using_ranges::simplify): Ditto.
12745 * vr-values.h: Adjust prototypes.
12747 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
12750 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
12752 2021-06-29 Julian Brown <julian@codesourcery.com>
12754 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
12755 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
12756 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
12758 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
12759 (MAX_FIXED_MODE_SIZE): Change to 128.
12761 2021-06-29 Julian Brown <julian@codesourcery.com>
12763 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
12764 (s_mnemonic): Add clrsb.
12765 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
12766 (clrsb<mode>2): Add expander for SImode/DImode.
12768 2021-06-29 Julian Brown <julian@codesourcery.com>
12770 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
12771 muldi3): Add patterns.
12773 2021-06-29 Julian Brown <julian@codesourcery.com>
12775 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
12776 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
12778 2021-06-29 Julian Brown <julian@codesourcery.com>
12780 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
12782 2021-06-29 Joseph Myers <joseph@codesourcery.com>
12784 * btfout.c, ctfout.c: Include "memmodel.h".
12786 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
12788 * gcc.c (check_offload_target_name): Cast len argument to
12789 %q.*s to 'int'; avoid -Wstringop-truncation warning.
12791 2021-06-29 Richard Biener <rguenther@suse.de>
12793 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
12794 to "any" permute nodes and relax "any" permute proapgation
12795 during iterative backward propagation.
12797 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
12800 * common.opt (-foffload=): Update description.
12801 (-foffload-options=): New.
12802 * doc/invoke.texi (C Language Options): Document
12803 -foffload and -foffload-options.
12804 * gcc.c (check_offload_target_name): New, split off from
12805 handle_foffload_option.
12806 (check_foffload_target_names): New.
12807 (handle_foffload_option): Handle -foffload=default.
12808 (driver_handle_option): Update for -foffload-options.
12809 * lto-opts.c (lto_write_options): Use -foffload-options
12810 instead of -foffload.
12811 * lto-wrapper.c (merge_and_complain, append_offload_options):
12813 * opts.c (common_handle_option): Likewise.
12815 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
12817 * doc/invoke.texi (C Language Options): Sort options
12818 alphabetically in optlist and also the description itself.
12819 Remove leftover -fallow-single-precision from and add missing
12820 -fgnu-tm to the optlist.
12822 2021-06-29 Richard Biener <rguenther@suse.de>
12824 * tree-vect-slp.c (slpg_vertex::visited): Remove.
12825 (vect_slp_perms_eq): Handle -1 permutes.
12826 (vect_optimize_slp): Rewrite permute propagation.
12828 2021-06-29 Jakub Jelinek <jakub@redhat.com>
12831 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
12832 perform the optimization in GENERIC when sanitizing and x has a
12835 2021-06-29 Richard Biener <rguenther@suse.de>
12837 PR tree-optimization/101242
12838 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
12839 PHIs with not represented initial values as leafs.
12841 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
12843 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
12844 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
12845 "register" keyword.
12846 (pdp11_initial_elimination_offset) Remove unused variable.
12847 (pdp11_cmp_length) Ditto.
12848 (pdp11_insn_cost): Ditto, and fix signedness warning.
12850 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
12852 * btfout.c: Include tm_p.h.
12855 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
12857 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
12859 (bpf_expand_epilogue): Likewise.
12860 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
12861 Do not define DBX_DEBUGGING_INFO.
12863 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
12865 * doc/invoke.texi: Document the CTF and BTF debug info options.
12867 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
12868 David Faust <david.faust@oracle.com>
12869 Jose E. Marchesi <jose.marchesi@oracle.com>
12870 Weimin Pan <weimin.pan@oracle.com>
12872 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
12873 GTFILES. Add new object files.
12874 * common.opt: Add CTF and BTF debug info options.
12875 * btfout.c: New file.
12876 * ctfc.c: Likewise.
12877 * ctfc.h: Likewise.
12878 * ctfout.c: Likewise.
12879 * dwarf2ctf.c: Likewise.
12880 * dwarf2ctf.h: Likewise.
12881 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
12883 * dwarf2out.c (dwarf2out_source_line): Likewise.
12884 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
12886 (debug_format_do_cu): New function.
12887 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
12889 Include dwarf2ctf.c.
12890 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
12892 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
12893 (CTF_DEBUG): New bitmask.
12894 (BTF_DEBUG): Likewise.
12895 (enum ctf_debug_info_levels): New enum.
12896 * gengtype.c (open_base_files): Handle ctfc.h.
12897 (main): Handle uint32_t type.
12898 * flags.h (btf_debuginfo_p): New definition.
12899 (dwarf_based_debuginfo_p): Likewise.
12900 * opts.c (debug_type_names): Add entries for CTF and BTF.
12901 (btf_debuginfo_p): New function.
12902 (dwarf_based_debuginfo_p): Likewise.
12903 (common_handle_option): Handle -gctfN and -gbtf options.
12904 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
12905 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
12908 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
12910 * dwarf2out.c (AT_class): Function is no longer static.
12911 (AT_int): Likewise.
12912 (AT_unsigned): Likewise.
12913 (AT_loc): Likewise.
12914 (get_AT): Likewise.
12915 (get_AT_string): Likewise.
12916 (get_AT_flag): Likewise.
12917 (get_AT_unsigned): Likewise.
12918 (get_AT_ref): Likewise.
12919 (new_die_raw): Likewise.
12920 (lookup_decl_die): Likewise.
12921 (base_type_die): Likewise.
12922 (add_name_attribute): Likewise.
12923 (add_AT_int): Likewise.
12924 (add_AT_unsigned): Likewise.
12925 (add_AT_loc): Likewise.
12926 (dw_get_die_tag): New function.
12927 (dw_get_die_child): Likewise.
12928 (dw_get_die_sib): Likewise.
12929 (struct dwarf_file_data): Move from here to dwarf2out.h
12930 (struct dw_attr_struct): Likewise.
12931 * dwarf2out.h: Analogous changes.
12933 2021-06-28 Martin Jambor <mjambor@suse.cz>
12936 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
12937 members m_dead_stmts and m_dead_ssas.
12938 * ipa-param-manipulation.c
12939 (ipa_param_body_adjustments::mark_dead_statements): New function.
12940 (ipa_param_body_adjustments::common_initialization): Call it on
12941 all removed but not split parameters.
12942 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
12944 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
12946 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
12947 dead debug statements.
12948 (copy_phis_for_bb): Do not copy dead PHI nodes.
12950 2021-06-28 Martin Jambor <mjambor@suse.cz>
12953 * symtab-clones.h (clone_info): Removed member param_adjustments.
12954 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
12955 deal with pass-through splits now.
12956 (ipa_param_performed_split): Removed.
12957 (ipa_param_adjustments::modify_call): Adjusted parameters.
12958 (class ipa_param_body_adjustments): Adjusted parameters of
12959 register_replacement, modify_gimple_stmt and modify_call_stmt.
12960 (ipa_verify_edge_has_no_modifications): Declare.
12961 (ipa_edge_modifications_finalize): Declare.
12962 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
12963 performed_splits processing, pas only edge to padjs->modify_call,
12964 check that call arguments were not modified if they should not have
12966 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
12968 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
12969 (ipa_edge_modification_info): Likewise.
12970 (ipa_edge_modification_sum): Likewise.
12971 (ipa_edge_modifications): New edge summary.
12972 (ipa_verify_edge_has_no_modifications): New function.
12973 (transitive_split_p): Removed.
12974 (transitive_split_map): Likewise.
12975 (init_transitive_splits): Likewise.
12976 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
12977 summary instead of performed_splits.
12978 (ipa_param_body_adjustments::register_replacement): Drop dummy
12979 parameter, set base_index of the created ipa_param_body_replacement.
12980 (phi_arg_will_live_p): New function.
12981 (ipa_param_body_adjustments::common_initialization): Do not create
12982 IPA_SRA dummy decls.
12983 (simple_tree_swap_info): Removed.
12984 (remap_split_decl_to_dummy): Likewise.
12985 (record_argument_state_1): New function.
12986 (record_argument_state): Likewise.
12987 (ipa_param_body_adjustments::modify_call_stmt): New parameter
12988 orig_stmt. Do not work with dummy decls, save necessary info about
12989 changes to ipa_edge_modifications.
12990 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
12991 orig_stmt, pass it to modify_call_stmt.
12992 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
12993 modify_gimple_stmt.
12994 (ipa_edge_modifications_finalize): New function.
12995 * tree-inline.c (remap_gimple_stmt): Pass original statement to
12996 modify_gimple_stmt.
12997 (copy_phis_for_bb): Do not copy dead PHI nodes.
12998 (expand_call_inline): Do not remap performed_splits.
12999 (update_clone_info): Likewise.
13000 * toplev.c: Include ipa-param-manipulation.h.
13001 (toplev::finalize): Call ipa_edge_modifications_finalize.
13003 2021-06-28 Andrew Pinski <apinski@marvell.com>
13005 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
13006 info if we're the only things setting the target PHI.
13007 (value_replacement): Don't duplicate range here.
13008 (minmax_replacement): Likewise.
13010 2021-06-28 Richard Biener <rguenther@suse.de>
13012 PR tree-optimization/101229
13013 * gimple-walk.c (gimple_walk_op): Handle PHIs.
13015 2021-06-28 Martin Liska <mliska@suse.cz>
13017 * config/v850/v850.c (construct_dispose_instruction): Allocate
13019 (construct_prepare_instruction): Likewise.
13021 2021-06-28 Martin Liska <mliska@suse.cz>
13023 * config/v850/v850.c (v850_option_override): Build default
13025 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
13026 ignored for inlining.
13027 (TARGET_CAN_INLINE_P): New.
13029 2021-06-28 Richard Biener <rguenther@suse.de>
13031 PR tree-optimization/101207
13032 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
13033 permute eliding for load permutations properly.
13035 2021-06-28 Richard Biener <rguenther@suse.de>
13037 PR tree-optimization/101173
13038 * gimple-loop-interchange.cc
13039 (tree_loop_interchange::valid_data_dependences): Disallow outer
13040 loop dependence distance of zero.
13042 2021-06-28 liuhongt <hongtao.liu@intel.com>
13045 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
13046 define_insn_and_split.
13047 (*avx_cmp<mode>3_ltint): Ditto.
13048 (*avx2_pcmp<mode>3_3): Ditto.
13049 (*avx2_pcmp<mode>3_4): Ditto.
13050 (*avx2_pcmp<mode>3_5): Ditto.
13052 2021-06-28 liuhongt <hongtao.liu@intel.com>
13054 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
13055 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
13056 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
13057 IX86_BUILTIN_PBLENDVB128): Replace icode with
13059 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
13061 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
13062 New pre_reload splitter.
13064 2021-06-27 Andrew Pinski <apinski@marvell.com>
13066 PR middle-end/101230
13067 * fold-const.c (fold_ternary_loc): Check
13068 the return value of invert_tree_comparison.
13070 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
13072 * config.gcc: Add SPDX License Identifier.
13073 (powerpc-ibm-aix789): Default to aix73.h.
13074 (powerpc-ibm-aix7.2.*.*): New stanza.
13075 * config/rs6000/aix72.h: Add SPDX License Identifier.
13076 * config/rs6000/aix73.h: New file.
13078 2021-06-26 Jason Merrill <jason@redhat.com>
13080 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
13082 2021-06-26 Andrew Pinski <apinski@marvell.com>
13084 * genmatch.c (lower_cond): Copy for_subst_vec
13085 for the simplify also.
13086 (lower): Swap the order for lower_for and lower_cond.
13088 2021-06-26 Andrew Pinski <apinski@marvell.com>
13090 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
13091 flow senatitive info on the moved ssa set.
13093 2021-06-26 Andrew Pinski <apinski@marvell.com>
13095 * fold-const.c (fold_cond_expr_with_comparison):
13096 Exand arg0 into comp_code, arg00, and arg01.
13097 (fold_ternary_loc): Use invert_tree_comparison
13098 instead of fold_invert_truthvalue for the case
13099 where we have A CMP B ? C : A.
13101 2021-06-25 Martin Sebor <msebor@redhat.com>
13103 PR middle-end/101216
13104 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
13106 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
13108 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
13110 2021-06-25 Richard Biener <rguenther@suse.de>
13112 PR tree-optimization/101202
13113 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
13116 2021-06-25 Richard Biener <rguenther@suse.de>
13118 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
13119 STMT_VINFO_REDUC_DEF from the original representative.
13121 2021-06-25 Martin Sebor <msebor@redhat.com>
13123 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
13124 gimple_no_warning_p and gimple_set_no_warning with
13125 warning_suppressed_p, and suppress_warning.
13127 (maybe_warn_for_bound): Same.
13128 (warn_for_access): Same.
13129 (check_access): Same.
13130 (expand_builtin_strncmp): Same.
13131 (fold_builtin_varargs): Same.
13132 * calls.c (maybe_warn_nonstring_arg): Same.
13133 (maybe_warn_rdwr_sizes): Same.
13134 * cfgexpand.c (expand_call_stmt): Same.
13135 * cgraphunit.c (check_global_declaration): Same.
13136 * fold-const.c (fold_undefer_overflow_warnings): Same.
13137 (fold_truth_not_expr): Same.
13138 (fold_unary_loc): Same.
13139 (fold_checksum_tree): Same.
13140 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
13141 (array_bounds_checker::check_mem_ref): Same.
13142 (array_bounds_checker::check_addr_expr): Same.
13143 (array_bounds_checker::check_array_bounds): Same.
13144 * gimple-expr.c (copy_var_decl): Same.
13145 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
13146 (gimple_fold_builtin_strncat): Same.
13147 (gimple_fold_builtin_stxcpy_chk): Same.
13148 (gimple_fold_builtin_stpcpy): Same.
13149 (gimple_fold_builtin_sprintf): Same.
13150 (fold_stmt_1): Same.
13151 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
13152 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
13153 * gimple-ssa-sprintf.c (handle_printf_call): Same.
13154 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
13155 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
13156 * gimple-ssa-warn-restrict.h: Adjust declarations.
13157 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
13158 gimple_no_warning_p and gimple_set_no_warning with
13159 warning_suppressed_p, and suppress_warning.
13160 (check_call): Same.
13161 (check_bounds_or_overlap): Same.
13162 * gimple.c (gimple_build_call_from_tree): Same.
13163 * gimplify.c (gimplify_return_expr): Same.
13164 (gimplify_cond_expr): Same.
13165 (gimplify_modify_expr_complex_part): Same.
13166 (gimplify_modify_expr): Same.
13167 (gimple_push_cleanup): Same.
13168 (gimplify_expr): Same.
13169 * omp-expand.c (expand_omp_for_generic): Same.
13170 (expand_omp_taskloop_for_outer): Same.
13171 * omp-low.c (lower_rec_input_clauses): Same.
13172 (lower_lastprivate_clauses): Same.
13173 (lower_send_clauses): Same.
13174 (lower_omp_target): Same.
13175 * tree-cfg.c (pass_warn_function_return::execute): Same.
13176 * tree-complex.c (create_one_component_var): Same.
13177 * tree-inline.c (remap_gimple_op_r): Same.
13178 (copy_tree_body_r): Same.
13179 (declare_return_variable): Same.
13180 (expand_call_inline): Same.
13181 * tree-nested.c (lookup_field_for_decl): Same.
13182 * tree-sra.c (create_access_replacement): Same.
13183 (generate_subtree_copies): Same.
13184 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
13185 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
13186 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
13187 * tree-ssa-loop-im.c (execute_sm): Same.
13188 * tree-ssa-phiopt.c (cond_store_replacement): Same.
13189 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
13190 (handle_builtin_strcpy): Same.
13191 (maybe_diag_stxncpy_trunc): Same.
13192 (handle_builtin_stxncpy_strncat): Same.
13193 (handle_builtin_strcat): Same.
13194 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
13195 (set_no_uninit_warning): Same.
13196 (uninit_undefined_value_p): Same.
13197 (warn_uninit): Same.
13198 (maybe_warn_operand): Same.
13199 * tree-vrp.c (compare_values_warnv): Same.
13200 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
13201 (test_for_singularity): Same.
13202 * gimple.h (warning_suppressed_p): New function.
13203 (suppress_warning): Same.
13204 (copy_no_warning): Same.
13205 (gimple_set_block): Call gimple_set_location.
13206 (gimple_set_location): Call copy_warning.
13208 2021-06-25 Martin Sebor <msebor@redhat.com>
13210 * tree.h (warning_suppressed_at, copy_warning,
13211 warning_suppressed_p, suppress_warning): New functions.
13213 2021-06-25 Martin Sebor <msebor@redhat.com>
13215 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
13216 * gengtype.c (open_base_files): Add diagnostic-spec.h.
13217 * diagnostic-spec.c: New file.
13218 * diagnostic-spec.h: New file.
13219 * tree.h (no_warning, all_warnings, suppress_warning_at): New
13221 * warning-control.cc: New file.
13223 2021-06-25 liuhongt <hongtao.liu@intel.com>
13226 * config/i386/i386.c (x86_order_regs_for_local_alloc):
13229 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
13231 PR tree-optimization/101189
13232 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
13233 LHS range of condition to postfold routine.
13234 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
13235 FALSE edge if the LHS range supports it being taken.
13236 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
13238 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
13240 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
13241 (relation_oracle::find_relation_block): Check correct bitmap.
13242 (relation_oracle::dump): Do not dump NULL blocks.
13244 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
13246 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
13247 range_on_edge instead of manually calculating.
13249 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
13251 * range-op.cc: Fix comment.
13253 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
13256 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
13257 Handle V8QI and V4HI modes.
13258 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
13260 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
13261 (mmxpackmode): New mode attribute.
13262 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
13263 (mmxunpackmode): New mode attribute.
13264 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
13265 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
13266 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
13267 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
13268 * config/i386/i386.md (extsuffix): Move from ...
13269 * config/i386/sse.md: ... here.
13271 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
13273 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
13274 (dwarf2out_finish): ...instead of here.
13276 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
13278 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
13279 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
13280 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
13281 * configure: Regenerate.
13283 2021-06-24 Richard Biener <rguenther@suse.de>
13285 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
13286 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
13287 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
13289 2021-06-24 Richard Biener <rguenther@suse.de>
13291 * config/i386/sse.md (avx_addsubv4df3): Rename to
13293 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
13294 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
13295 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
13296 * config/i386/i386-builtin.def: Adjust.
13297 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
13298 * optabs.def (vec_addsub_optab): New optab.
13299 * tree-vect-slp-patterns.c (class addsub_pattern): New.
13300 (slp_patterns): Add addsub_pattern.
13301 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
13302 across CFN_VEC_ADDSUB.
13303 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
13305 * doc/md.texi (vec_addsub<mode>3): Document.
13307 2021-06-24 Jakub Jelinek <jakub@redhat.com>
13309 PR middle-end/101170
13310 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
13311 where regno + subreg_regno_offset wraps around use 0 as starting
13314 2021-06-24 Jakub Jelinek <jakub@redhat.com>
13316 PR middle-end/101172
13317 * stor-layout.c (finish_bitfield_representative): If nextf has
13318 error_mark_node type, set repr type to error_mark_node too.
13320 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
13322 * config/s390/s390.c (s390_function_profiler): Ignore labelno
13324 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
13326 2021-06-24 Richard Biener <rguenther@suse.de>
13328 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
13329 across operations that have different semantics on different
13332 2021-06-24 Jakub Jelinek <jakub@redhat.com>
13334 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
13335 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
13336 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
13337 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
13338 OMP_TARGET user outer_ctx instead of ctx for placeholders and
13339 initializer/combiner gimplification.
13340 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
13341 on target constructs.
13342 (lower_rec_input_clauses): Likewise.
13343 (lower_omp_target): Likewise.
13344 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
13345 on target if in_reduction is present.
13347 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
13349 * tree-predcom.c (class pcom_worker): New class.
13350 (release_chain): Renamed to...
13351 (pcom_worker::release_chain): ...this.
13352 (release_chains): Renamed to...
13353 (pcom_worker::release_chains): ...this.
13354 (aff_combination_dr_offset): Renamed to...
13355 (pcom_worker::aff_combination_dr_offset): ...this.
13356 (determine_offset): Renamed to...
13357 (pcom_worker::determine_offset): ...this.
13358 (class comp_ptrs): New class.
13359 (split_data_refs_to_components): Renamed to...
13360 (pcom_worker::split_data_refs_to_components): ...this,
13361 and update with class comp_ptrs.
13362 (suitable_component_p): Renamed to...
13363 (pcom_worker::suitable_component_p): ...this.
13364 (filter_suitable_components): Renamed to...
13365 (pcom_worker::filter_suitable_components): ...this.
13366 (valid_initializer_p): Renamed to...
13367 (pcom_worker::valid_initializer_p): ...this.
13368 (find_looparound_phi): Renamed to...
13369 (pcom_worker::find_looparound_phi): ...this.
13370 (add_looparound_copies): Renamed to...
13371 (pcom_worker::add_looparound_copies): ...this.
13372 (determine_roots_comp): Renamed to...
13373 (pcom_worker::determine_roots_comp): ...this.
13374 (determine_roots): Renamed to...
13375 (pcom_worker::determine_roots): ...this.
13376 (single_nonlooparound_use): Renamed to...
13377 (pcom_worker::single_nonlooparound_use): ...this.
13378 (remove_stmt): Renamed to...
13379 (pcom_worker::remove_stmt): ...this.
13380 (execute_pred_commoning_chain): Renamed to...
13381 (pcom_worker::execute_pred_commoning_chain): ...this.
13382 (execute_pred_commoning): Renamed to...
13383 (pcom_worker::execute_pred_commoning): ...this.
13384 (struct epcc_data): New member worker.
13385 (execute_pred_commoning_cbck): Call execute_pred_commoning
13386 with pcom_worker pointer.
13387 (find_use_stmt): Renamed to...
13388 (pcom_worker::find_use_stmt): ...this.
13389 (find_associative_operation_root): Renamed to...
13390 (pcom_worker::find_associative_operation_root): ...this.
13391 (find_common_use_stmt): Renamed to...
13392 (pcom_worker::find_common_use_stmt): ...this.
13393 (combinable_refs_p): Renamed to...
13394 (pcom_worker::combinable_refs_p): ...this.
13395 (reassociate_to_the_same_stmt): Renamed to...
13396 (pcom_worker::reassociate_to_the_same_stmt): ...this.
13397 (stmt_combining_refs): Renamed to...
13398 (pcom_worker::stmt_combining_refs): ...this.
13399 (combine_chains): Renamed to...
13400 (pcom_worker::combine_chains): ...this.
13401 (try_combine_chains): Renamed to...
13402 (pcom_worker::try_combine_chains): ...this.
13403 (prepare_initializers_chain): Renamed to...
13404 (pcom_worker::prepare_initializers_chain): ...this.
13405 (prepare_initializers): Renamed to...
13406 (pcom_worker::prepare_initializers): ...this.
13407 (prepare_finalizers_chain): Renamed to...
13408 (pcom_worker::prepare_finalizers_chain): ...this.
13409 (prepare_finalizers): Renamed to...
13410 (pcom_worker::prepare_finalizers): ...this.
13411 (tree_predictive_commoning_loop): Renamed to...
13412 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
13413 some calls and remove some cleanup code.
13414 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
13415 (static variable looparound_phis): Remove.
13416 (static variable name_expansions): Remove.
13418 2021-06-24 Richard Biener <rguenther@suse.de>
13420 * tree-vect-slp.c (slpg_vertex): New struct.
13421 (vect_slp_build_vertices): Adjust.
13422 (vect_optimize_slp): Likewise. Maintain an outgoing permute
13423 and a materialized one.
13425 2021-06-24 Richard Biener <rguenther@suse.de>
13427 PR tree-optimization/101105
13428 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
13429 Only ignore steps when they are equal or scalar order is preserved.
13431 2021-06-24 liuhongt <hongtao.liu@intel.com>
13434 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
13435 Adjust comments for ix86_expand_vecop_qihi2.
13436 (ix86_expand_vecmul_qihi): Renamed to ..
13437 (ix86_expand_vecop_qihi2): Adjust function prototype to
13438 support shift operation, add static to definition.
13439 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
13440 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
13441 ix86_expand_vec_shift_qihi_constant.
13442 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
13443 (ix86_expand_vec_shift_qihi_constant): Deleted.
13444 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
13446 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
13447 condition TARGET_64BIT.
13448 (mul<mode>3): Ditto.
13449 (<insn><mode>3): Ditto.
13450 (vlshr<mode>3): Extend to support avx512 vlshr.
13451 (v<insn><mode>3): New expander for
13453 (v<insn>v8qi3): Ditto.
13454 (vashrv8hi3<mask_name>): Renamed to ..
13455 (vashr<mode>3): And extend to support V16QImode for avx512.
13456 (vashrv16qi3): Deleted.
13457 (vashrv2di3<mask_name>): Extend expander to support avx512
13460 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
13462 * doc/lto.texi (Design Overview): Update that slim objects are
13465 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
13467 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
13468 of OTHER_POWER10_MASKS so it will not be enabled by default.
13470 2021-06-23 Richard Biener <rguenther@suse.de>
13471 Martin Jambor <mjambor@suse.cz>
13473 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
13474 param replacement unconditionally. Adjust comment.
13476 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
13478 * Makefile.in (OBJS): Add gimple-range-fold.o
13479 * gimple-range-fold.cc: New.
13480 * gimple-range-fold.h: New.
13481 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
13482 (gimple_range_calc_op2): Ditto.
13483 * gimple-range-gori.h: Move prototypes to here.
13484 * gimple-range.cc: Adjust include files.
13485 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
13486 (fur_source::get_operand): Ditto.
13487 (fur_source::get_phi_operand): Ditto.
13488 (fur_source::query_relation): Ditto.
13489 (fur_source::register_relation): Ditto.
13490 (class fur_edge): Ditto.
13491 (fur_edge::fur_edge): Ditto.
13492 (fur_edge::get_operand): Ditto.
13493 (fur_edge::get_phi_operand): Ditto.
13494 (fur_stmt::fur_stmt): Ditto.
13495 (fur_stmt::get_operand): Ditto.
13496 (fur_stmt::get_phi_operand): Ditto.
13497 (fur_stmt::query_relation): Ditto.
13498 (class fur_depend): Relocate to gimple-range-fold.h.
13499 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
13500 (fur_depend::register_relation): Ditto.
13501 (fur_depend::register_relation): Ditto.
13502 (class fur_list): Ditto.
13503 (fur_list::fur_list): Ditto.
13504 (fur_list::get_operand): Ditto.
13505 (fur_list::get_phi_operand): Ditto.
13506 (fold_range): Ditto.
13507 (adjust_pointer_diff_expr): Ditto.
13508 (gimple_range_adjustment): Ditto.
13509 (gimple_range_base_of_assignment): Ditto.
13510 (gimple_range_operand1): Ditto.
13511 (gimple_range_operand2): Ditto.
13512 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
13513 (gimple_range_calc_op2): Ditto.
13514 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
13515 (fold_using_range::range_of_range_op): Ditto.
13516 (fold_using_range::range_of_address): Ditto.
13517 (fold_using_range::range_of_phi): Ditto.
13518 (fold_using_range::range_of_call): Ditto.
13519 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
13520 (fold_using_range::range_of_builtin_call): Ditto.
13521 (fold_using_range::range_of_cond_expr): Ditto.
13522 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
13523 (fold_using_range::relation_fold_and_or): Ditto.
13524 (fold_using_range::postfold_gcond_edges): Ditto.
13525 * gimple-range.h: Add gimple-range-fold.h to include files. Change
13526 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
13527 (gimple_range_handler): Relocate to gimple-range-fold.h.
13528 (gimple_range_ssa_p): Ditto.
13529 (range_compatible_p): Ditto.
13530 (class fur_source): Ditto.
13531 (class fur_stmt): Ditto.
13532 (class fold_using_range): Ditto.
13533 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
13534 (gimple_range_calc_op2): Ditto.
13536 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
13538 PR tree-optimization/101148
13539 PR tree-optimization/101014
13540 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
13541 (ranger_cache::~ranger_cache): Adjust.
13542 (ranger_cache::block_range): Check if propagation disallowed.
13543 (ranger_cache::propagate_cache): Disallow propagation if new value
13544 can't be stored properly.
13545 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
13547 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
13549 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
13550 (sbr_vector::set_bb_range): Return true.
13551 (class sbr_sparse_bitmap): Adjust.
13552 (sbr_sparse_bitmap::set_bb_range): Return value.
13553 (block_range_cache::set_bb_range): Return value.
13554 (ranger_cache::propagate_cache): Use return value to print msg.
13555 * gimple-range-cache.h (class block_range_cache): Adjust.
13557 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
13559 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
13561 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
13563 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
13564 so this pattern can be used for test/compare removal. Pass
13565 current insn to compute_logical_op_length and output_logical_op.
13566 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
13567 (h8300_and_costs): Add argument to compute_logical_op_length.
13568 (output_logical_op): Add new argument. Use it to determine if the
13569 condition codes are used and adjust the output accordingly.
13570 (compute_logical_op_length): Add new argument and update length
13571 computations when condition codes are used.
13572 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
13574 (output_logical_op): Likewise.
13576 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
13579 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
13580 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
13581 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
13582 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
13583 * config/i386/sse.md (unspec): ... here.
13585 2021-06-23 Martin Liska <mliska@suse.cz>
13588 * optc-save-gen.awk: Put back arm_fp16_format to
13591 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
13594 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
13597 (clz<mode>2): Update RTX pattern for additions.
13599 2021-06-23 Jakub Jelinek <jakub@redhat.com>
13601 PR middle-end/101167
13602 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
13603 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
13605 2021-06-22 Sergei Trofimovich <siarheit@google.com>
13607 * doc/rtl.texi: drop unbalanced parenthesis.
13609 2021-06-22 Richard Biener <rguenther@suse.de>
13611 PR middle-end/101156
13612 * gimplify.c (gimplify_expr): Remove premature incorrect
13615 2021-06-22 Jakub Jelinek <jakub@redhat.com>
13617 PR tree-optimization/101159
13618 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
13621 2021-06-22 Jakub Jelinek <jakub@redhat.com>
13623 PR middle-end/101160
13624 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
13625 clear crtl->return_rtx instead of keeping it referencing a pseudo.
13627 2021-06-22 Jakub Jelinek <jakub@redhat.com>
13628 Andrew Pinski <apinski@marvell.com>
13630 PR tree-optimization/101162
13631 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
13634 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
13636 * range-op.cc (range_relational_tests): New.
13637 (range_op_tests): Call range_relational_tests.
13639 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
13641 * range-op.cc (operator_cast::lhs_op1_relation): New.
13642 (operator_identity::lhs_op1_relation): Mew.
13644 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
13646 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
13648 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
13650 * range-op.cc (operator_plus::lhs_op1_relation): New.
13651 (operator_plus::lhs_op2_relation): New.
13653 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
13655 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
13656 relation_oracle if dominators exist.
13657 (ranger_cache::~ranger_cache): Dispose of oracle.
13658 (ranger_cache::dump_bb): Dump oracle.
13659 * gimple-range.cc (fur_source::fur_source): New.
13660 (fur_source::get_operand): Use mmeber query.
13661 (fur_source::get_phi_operand): Use member_query.
13662 (fur_source::query_relation): New.
13663 (fur_source::register_dependency): Delete.
13664 (fur_source::register_relation): New.
13665 (fur_edge::fur_edge): Adjust.
13666 (fur_edge::get_phi_operand): Fix comment.
13667 (fur_edge::query): Delete.
13668 (fur_stmt::fur_stmt): Adjust.
13669 (fur_stmt::query): Delete.
13670 (fur_depend::fur_depend): Adjust.
13671 (fur_depend::register_relation): New.
13672 (fur_depend::register_relation): New.
13673 (fur_list::fur_list): Adjust.
13674 (fur_list::get_operand): Use member query.
13675 (fold_using_range::range_of_range_op): Process and query relations.
13676 (fold_using_range::range_of_address): Adjust dependency call.
13677 (fold_using_range::range_of_phi): Ditto.
13678 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
13679 (fold_using_range::relation_fold_and_or): New.
13680 (fold_using_range::postfold_gcond_edges): New.
13681 * gimple-range.h (class gimple_ranger): Adjust.
13682 (class fur_source): Adjust members.
13683 (class fur_stmt): Ditto.
13684 (class fold_using_range): Ditto.
13686 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
13688 * range-op.cc (range_operator::wi_fold): Apply relation effect.
13689 (range_operator::fold_range): Adjust and apply relation effect.
13690 (*::fold_range): Add relation parameters.
13691 (*::op1_range): Ditto.
13692 (*::op2_range): Ditto.
13693 (range_operator::lhs_op1_relation): New.
13694 (range_operator::lhs_op2_relation): New.
13695 (range_operator::op1_op2_relation): New.
13696 (range_operator::op1_op2_relation_effect): New.
13697 (relop_early_resolve): New.
13698 (operator_equal::op1_op2_relation): New.
13699 (operator_equal::fold_range): Call relop_early_resolve.
13700 (operator_not_equal::op1_op2_relation): New.
13701 (operator_not_equal::fold_range): Call relop_early_resolve.
13702 (operator_lt::op1_op2_relation): New.
13703 (operator_lt::fold_range): Call relop_early_resolve.
13704 (operator_le::op1_op2_relation): New.
13705 (operator_le::fold_range): Call relop_early_resolve.
13706 (operator_gt::op1_op2_relation): New.
13707 (operator_gt::fold_range): Call relop_early_resolve.
13708 (operator_ge::op1_op2_relation): New.
13709 (operator_ge::fold_range): Call relop_early_resolve.
13710 * range-op.h (class range_operator): Adjust parameters and methods.
13712 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
13714 * Makefile.in (OBJS): Add value-relation.o.
13715 * gimple-range.h: Adjust include files.
13716 * tree-data-ref.c: Adjust include file order.
13717 * value-query.cc (range_query::get_value_range): Default to no oracle.
13718 (range_query::query_relation): New.
13719 (range_query::query_relation): New.
13720 * value-query.h (class range_query): Adjust.
13721 * value-relation.cc: New.
13722 * value-relation.h: New.
13724 2021-06-22 Richard Biener <rguenther@suse.de>
13726 PR tree-optimization/101151
13727 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
13730 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
13732 * config/riscv/riscv.c (thead_c906_tune_info): New.
13733 (riscv_tune_info_table): Use new tune.
13735 2021-06-22 Richard Biener <rguenther@suse.de>
13737 PR tree-optimization/101158
13738 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
13739 checking after checking for matching operation.
13741 2021-06-22 Richard Biener <rguenther@suse.de>
13743 PR tree-optimization/101159
13744 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
13745 missing NULL vectype check.
13747 2021-06-22 Richard Biener <rguenther@suse.de>
13749 PR tree-optimization/101154
13750 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
13752 2021-06-22 Jakub Jelinek <jakub@redhat.com>
13755 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
13756 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
13757 * config/i386/i386.c (ix86_expand_prologue): Clear it.
13758 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
13759 Remove "" from match_operand. Emit new insns using emit_move_insn and
13760 set ix86_last_zero_store_uid to INSN_UID of the last store.
13761 Add peephole2s for 1/2/4 stores of const0_rtx following previous
13764 2021-06-22 Martin Liska <mliska@suse.cz>
13766 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
13769 2021-06-22 Martin Liska <mliska@suse.cz>
13771 * gcov-io.h: Remove padding entries.
13773 2021-06-22 liuhongt <hongtao.liu@intel.com>
13775 PR tree-optimization/97770
13776 * tree-vect-patterns.c (vect_recog_popcount_pattern):
13778 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
13780 2021-06-22 liuhongt <hongtao.liu@intel.com>
13783 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
13784 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
13785 (expand<mode>_mask): this ..
13786 (*expand<mode>_mask): New pre_reload splitter to transform
13787 v{,p}expand* to vmov* when mask is zero, all ones, or has all
13788 ones in it's lower part, otherwise still generate
13791 2021-06-22 liuhongt <hongtao.liu@intel.com>
13794 * config/i386/i386-expand.c
13795 (ix86_expand_special_args_builtin): Keep constm1_operand only
13796 if it satisfies insn's operand predicate.
13798 2021-06-21 Jason Merrill <jason@redhat.com>
13801 * df-scan.c (df_ref_record): Check that regno < endregno.
13802 * function.c (assign_parms, expand_function_end): Do nothing with a
13803 TYPE_EMPTY_P result.
13805 2021-06-21 Richard Biener <rguenther@suse.de>
13807 PR tree-optimization/101120
13808 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
13810 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
13811 DR chain DCE capability.
13812 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
13813 * tree-vect-stmts.c (vectorizable_load): Remove unused
13814 loads in the DR chain for SLP.
13816 2021-06-21 Jakub Jelinek <jakub@redhat.com>
13818 PR inline-asm/100785
13819 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
13820 output or input operands were already error_mark_node.
13821 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
13822 remove all inputs, outputs and clobbers from the asm and
13823 set template to "".
13825 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
13827 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
13828 (vceq_s16): Likewise.
13829 (vceq_s32): Likewise.
13830 (vceq_u8): Likewise.
13831 (vceq_u16): Likewise.
13832 (vceq_u32): Likewise.
13833 (vceq_p8): Likewise.
13834 (vceqq_s8): Likewise.
13835 (vceqq_s16): Likewise.
13836 (vceqq_s32): Likewise.
13837 (vceqq_u8): Likewise.
13838 (vceqq_u16): Likewise.
13839 (vceqq_u32): Likewise.
13840 (vceqq_p8): Likewise.
13841 (vceq_f32): Gate __a == __b on __FAST_MATH__.
13842 (vceqq_f32): Likewise.
13843 (vceq_f16): Likewise.
13844 (vceqq_f16): Likewise.
13846 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
13849 * config/arm/iterators.md (NEON_VACMP): Remove.
13850 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
13852 (neon_vca<cmp_op><mode>_insn): Likewise.
13853 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
13856 2021-06-21 Richard Biener <rguenther@suse.de>
13858 PR tree-optimization/101121
13859 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
13860 when we just lack a stmt with the desired op when doing permutation.
13861 (vect_build_slp_tree): When caching a failed SLP build attempt
13862 assert that at least one lane is marked as not matching.
13864 2021-06-21 liuhongt <hongtao.liu@intel.com>
13867 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
13868 register alternative.
13869 (*and<mode>_1): Ditto.
13871 (*andn<mode>_1): Ditto.
13872 (*<code><mode>_1): Ditto.
13873 (*<code>qi_1): Ditto.
13874 (*one_cmpl<mode>2_1): Ditto.
13875 (*one_cmplsi2_1_zext): Ditto.
13876 (*one_cmplqi2_1): Ditto.
13877 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
13878 the order of mask registers to be before general registers.
13880 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
13883 * config/i386/i386.md: New define_peephole2s to shrink writing
13884 1, 2 or 4 consecutive zeros to memory when optimizing for size.
13886 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
13888 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
13889 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
13890 more efficient code when the source can be trivially simplified.
13892 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
13894 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
13895 a range if global is not available.
13896 (ranger_cache::entry_range): Fallback to range_of_def.
13897 * gimple-range-cache.h (range_of_def): Adjust prototype.
13899 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
13901 PR tree-optimization/101014
13902 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
13904 (ranger_cache::~ranger_cache): Ditto.
13905 (ranger_cache::enable_new_values): Delete.
13906 (ranger_cache::push_poor_value): Delete.
13907 (ranger_cache::range_of_def): Remove poor value processing.
13908 (ranger_cache::entry_range): Ditto.
13909 (ranger_cache::fill_block_cache): Ditto.
13910 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
13911 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
13912 * gimple-range.h (class gimple_ranger): Adjust.
13914 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
13917 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
13918 derived from arm_canon_arch.
13919 (arm_canon_arch_option): Call it.
13920 (arm_canon_arch_multilib_option): New function.
13921 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
13922 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
13923 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
13924 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
13925 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
13926 * config/arm/arm.opt (mlibarch): New option.
13927 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
13928 of march on RHS with mlibarch.
13930 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
13932 * config.in: Regenerate.
13933 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
13935 * configure: Regenerate.
13936 * configure.ac: Fix for global_load assembler functions.
13938 2021-06-18 Richard Biener <rguenther@suse.de>
13940 PR tree-optimization/101112
13941 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
13942 to lookup a pattern stmt def.
13944 2021-06-18 Jakub Jelinek <jakub@redhat.com>
13946 PR middle-end/101062
13947 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
13948 representatives in QUAL_UNION_TYPE.
13950 2021-06-18 Andrew Pinski <apinski@marvell.com>
13952 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
13953 Add counting of how many times it is done.
13954 (factor_out_conditional_conversion): Likewise.
13955 (match_simplify_replacement): Likewise.
13956 (value_replacement): Likewise.
13957 (spaceship_replacement): Likewise.
13958 (cond_store_replacement): Likewise.
13959 (cond_if_else_store_replacement_1): Likewise.
13960 (hoist_adjacent_loads): Likewise.
13962 2021-06-18 Andrew Pinski <apinski@marvell.com>
13964 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
13965 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
13966 (verify_gimple_assign_binary): Reject point and offset types on
13967 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
13968 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
13969 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
13971 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
13973 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
13974 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
13975 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
13978 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
13980 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
13981 earlyclobber to alts 0/1.
13982 (gen_addadd): Add earlyclobber to alts 0/1.
13983 * config/rs6000/fusion.md: Regenerate file.
13985 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
13987 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
13989 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
13991 * gimple-range-cache.cc: Comment cleanups.
13992 * gimple-range-gori.cc: Comment cleanups.
13993 * gimple-range.cc: Comment/spacing cleanups
13994 * value-range.h: Comment cleanups.
13996 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
13999 * calls.c (expand_call): Replace PUSH_ARGS with
14000 targetm.calls.push_argument (0).
14001 (emit_library_call_value_1): Likewise.
14002 * defaults.h (PUSH_ARGS): Removed.
14003 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
14004 targetm.calls.push_argument (0).
14005 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14006 (emit_push_insn): Pass the number bytes to push to
14007 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
14008 * hooks.c (hook_bool_uint_true): New.
14009 * hooks.h (hook_bool_uint_true): Likewise.
14010 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
14011 targetm.calls.push_argument (0).
14012 * target.def (push_argument): Add a targetm.calls hook.
14013 * targhooks.c (default_push_argument): New.
14014 * targhooks.h (default_push_argument): Likewise.
14015 * config/bpf/bpf.h (PUSH_ARGS): Removed.
14016 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
14017 * config/cr16/cr16.h (PUSH_ARGS): Removed.
14018 * config/i386/i386.c (ix86_push_argument): New.
14019 (TARGET_PUSH_ARGUMENT): Likewise.
14020 * config/i386/i386.h (PUSH_ARGS): Removed.
14021 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
14022 * config/m32c/m32c.h (PUSH_ARGS): Removed.
14023 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
14024 * config/pru/pru.h (PUSH_ARGS): Likewise.
14025 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
14026 TARGET_PUSH_ARGUMENT hook.
14027 * doc/tm.texi: Regenerated.
14029 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
14032 * config/i386/i386-expand.c (expand_vector_set_var):
14033 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
14034 ix86_expand_vector_init_duplicate.
14035 (ix86_expand_vector_init_duplicate): Emit insv_1 for
14036 QImode for !TARGET_PARTIAL_REG_STALL.
14037 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
14038 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
14039 as operand 2 predicate. Call ix86_expand_vector_set_var
14040 for non-constant index operand.
14041 (vec_setv2si): Ditto.
14042 (vec_setv4hi): Ditto.
14043 (vec_setv8qi): ditto.
14045 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
14047 PR tree-optimization/100790
14048 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
14051 2021-06-17 Martin Liska <mliska@suse.cz>
14053 * doc/invoke.texi: Use consistently -O1 instead of -O.
14055 2021-06-17 Martin Liska <mliska@suse.cz>
14057 * gcov-io.h: Update documentation entry about string format.
14059 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
14062 * config/s390/vecintrin.h (vec_doublee): Fix to use
14063 __builtin_s390_vflls.
14064 (vec_floate): Fix to use __builtin_s390_vflrd.
14066 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14068 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
14069 * dominance.h (get_dominated_to_depth): Likewise.
14070 (get_all_dominated_blocks): Likewise.
14071 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
14072 * gcse.c (hoist_code): Likewise.
14073 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
14074 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
14075 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
14076 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
14078 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14080 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
14081 * dominance.h (get_dominated_by_region): Likewise.
14082 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
14083 (gimple_duplicate_sese_tail): Likewise.
14084 (move_sese_region_to_fn): Likewise.
14086 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14088 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
14089 * dominance.h (get_dominated_by): Likewise.
14090 * auto-profile.c (afdo_find_equiv_class): Adjust.
14091 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
14092 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14093 * tree-cfg.c (test_linear_chain): Likewise.
14094 (test_diamond): Likewise.
14096 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14098 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
14099 * cfgloopanal.c (get_loop_hot_path): Likewise.
14100 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
14102 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14104 * cgraph.c (cgraph_node::collect_callers): Return
14105 auto_vec<cgraph_edge *>.
14106 * cgraph.h (cgraph_node::collect_callers): Likewise.
14107 * ipa-cp.c (create_specialized_node): Adjust.
14108 (decide_about_value): Likewise.
14109 (decide_whether_version_node): Likewise.
14110 * ipa-sra.c (process_isra_node_results): Likewise.
14112 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14114 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
14115 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
14117 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
14120 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
14122 * gimple-range.cc (debug_seed_ranger): New.
14123 (dump_ranger): New.
14124 (debug_ranger): New.
14126 2021-06-17 Richard Biener <rguenther@suse.de>
14128 PR tree-optimization/54400
14129 * tree-vectorizer.h (enum slp_instance_kind): Add
14130 slp_inst_kind_bb_reduc.
14131 (reduction_fn_for_scalar_code): Declare.
14132 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
14133 Check SLP_INSTANCE_KIND instead of looking at the
14135 (vect_slp_analyze_instance_alignment): Likewise.
14136 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
14137 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
14138 chain linearization from vect_build_slp_tree_2 and generalize
14139 for the use of BB reduction vectorization.
14140 (vect_build_slp_tree_2): Adjust accordingly.
14141 (vect_optimize_slp): Elide permutes at the root of BB reduction
14143 (vectorizable_bb_reduc_epilogue): New function.
14144 (vect_slp_prune_covered_roots): Likewise.
14145 (vect_slp_analyze_operations): Use them.
14146 (vect_slp_check_for_constructors): Recognize associatable
14147 chains for BB reduction vectorization.
14148 (vectorize_slp_instance_root_stmt): Generate code for the
14149 BB reduction epilogue.
14151 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
14153 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
14155 (gori_compute::may_recompute_p): New.
14156 (gori_compute::outgoing_edge_range_p): Perform recomputations.
14157 * gimple-range-gori.h (class gori_compute): Add prototype.
14159 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
14161 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
14162 true when a range can be calculated.
14163 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
14165 2021-06-16 Martin Sebor <msebor@redhat.com>
14167 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
14168 Correct documented defaults.
14170 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
14172 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
14173 m_new_value_p directly.
14175 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
14178 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
14179 Handle 64bit modes for TARGET_SSE4_1.
14180 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
14181 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
14182 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
14183 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
14184 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
14185 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
14187 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
14189 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
14190 Change to an expander that emits the correct instruction
14191 depending on endianness.
14192 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
14193 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
14195 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
14197 * config/aarch64/aarch64-simd-builtins.def: Split generator
14198 for aarch64_<su>qmovn builtins into scalar and vector
14200 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
14202 (aarch64_<su>qmovn<mode>_insn_be): Define.
14203 (aarch64_<su>qmovn<mode>): Split into scalar and vector
14204 variants. Change vector variant to an expander that emits the
14205 correct instruction depending on endianness.
14207 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
14209 * config/aarch64/aarch64-simd-builtins.def: Split generator
14210 for aarch64_sqmovun builtins into scalar and vector variants.
14211 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
14212 Split into scalar and vector variants. Change vector variant
14213 to an expander that emits the correct instruction depending
14215 (aarch64_sqmovun<mode>_insn_le): Define.
14216 (aarch64_sqmovun<mode>_insn_be): Define.
14218 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
14220 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
14221 Define - modeling zero-high-half semantics.
14222 (aarch64_xtn<mode>): Change to an expander that emits the
14223 appropriate instruction depending on endianness.
14224 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
14226 (aarch64_xtn2<mode>_le): Rename to...
14227 (aarch64_xtn2<mode>_insn_le): This.
14228 (aarch64_xtn2<mode>_be): Rename to...
14229 (aarch64_xtn2<mode>_insn_be): This.
14230 (vec_pack_trunc_<mode>): Emit truncation instruction instead
14232 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
14233 attribute iterator.
14235 2021-06-16 Martin Jambor <mjambor@suse.cz>
14237 PR tree-optimization/100453
14238 * tree-sra.c (create_access): Disqualify any const candidates
14239 which are written to.
14240 (sra_modify_expr): Do not store sub-replacements back to a const base.
14241 (handle_unscalarized_data_in_subtree): Likewise.
14242 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
14243 instead of constant_decl_p.
14245 2021-06-16 Jakub Jelinek <jakub@redhat.com>
14247 PR middle-end/101062
14248 * stor-layout.c (finish_bitfield_representative): For fields in unions
14249 assume nextf is always NULL.
14250 (finish_bitfield_layout): Compute bit field representatives also in
14251 unions, but handle it as if each bitfield was the only field in the
14254 2021-06-16 Richard Biener <rguenther@suse.de>
14256 PR tree-optimization/101088
14257 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
14258 supported refs on edges. Do not assert same ref but
14259 different kind stores are unsuported but mark them so.
14260 (hoist_memory_references): Only look for supported refs
14263 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
14265 PR rtl-optimization/46235
14266 * config/i386/i386.md: New define_split for bt followed by cmov.
14267 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
14268 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
14269 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
14270 by setnc with zero extension.
14272 2021-06-16 Richard Biener <rguenther@suse.de>
14274 PR tree-optimization/101083
14275 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
14276 vectype as argument.
14277 (vect_build_slp_tree_2): Adjust.
14279 2021-06-15 Martin Sebor <msebor@redhat.com>
14281 PR middle-end/100876
14282 * builtins.c: (gimple_call_return_array): Account for size_t
14283 mangling as either unsigned int or unsigned long
14285 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
14287 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
14288 up before eliminating comparisons.
14290 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
14292 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
14293 nonzero|X is nonzero.
14294 (range_op_bitwise_and_tests): Add tests for above.
14296 2021-06-15 Carl Love <cel@us.ibm.com>
14299 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
14301 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
14304 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
14307 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
14308 (struct gimplify_omp_ctx): Extend defaultmap array by one.
14309 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
14310 (omp_notice_variable): Update type classification for Fortran.
14311 (gimplify_scan_omp_clauses): Update calls for new argument; handle
14312 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
14313 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
14314 * langhooks.c (lhd_omp_scalar_p): Likewise.
14315 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
14316 (LANG_HOOKS_DECLS): Add them.
14317 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
14318 omp_scalar_p pointer type to include the new bool argument.
14320 2021-06-15 David Malcolm <dmalcolm@redhat.com>
14322 * doc/analyzer.texi
14323 (Special Functions for Debugging the Analyzer): Add
14324 __analyzer_dump_capacity.
14326 2021-06-15 Jakub Jelinek <jakub@redhat.com>
14329 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
14330 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
14332 2021-06-15 Richard Biener <rguenther@suse.de>
14334 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
14335 check to identify loop latches.
14336 * cfgloop.c (verify_loop_structure): Likewise.
14337 * loop-init.c (apply_loop_flags): Allow marked irreducible
14338 regions even with multiple latches.
14339 * predict.c (rebuild_frequencies): Simplify.
14341 2021-06-15 Richard Biener <rguenther@suse.de>
14343 * tree-ssa-threadupdate.c
14344 (jump_thread_path_registry::mark_threaded_blocks): Assert we
14345 have marked irreducible regions.
14347 2021-06-14 Martin Sebor <msebor@redhat.com>
14350 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
14351 Handle calls to placement new.
14352 (ndecl_dealloc_argno): Avoid placement delete.
14354 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
14357 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
14358 create_tmp_reg_or_ssa_name().
14360 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
14362 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
14363 (ranger_cache::enable_new_values): Set to specified value and
14364 return the old value.
14365 (ranger_cache::disable_new_values): Delete.
14366 (ranger_cache::fill_block_cache): Disable non 1st order derived
14368 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
14369 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
14371 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
14374 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
14375 Return true early when testing with V2HImode.
14376 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
14378 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
14380 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
14381 (mve_vec_unpack<US>_hi_<mode>): New pattern.
14382 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
14383 (mve_vmovntq_<supf><mode>): Prefix with '@'.
14384 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
14386 (vec_unpack<US>_lo_<mode>): Likewise.
14387 (vec_pack_trunc_<mode>): Rename to
14388 neon_quad_vec_pack_trunc_<mode>.
14389 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
14391 (vec_unpack<US>_lo_<mode>): New.
14392 (vec_pack_trunc_<mode>): New.
14394 2021-06-14 Richard Biener <rguenther@suse.de>
14396 PR tree-optimization/100934
14397 * tree-ssa-dom.c (pass_dominator::execute): Properly
14398 mark irreducible regions.
14400 2021-06-14 Martin Liska <mliska@suse.cz>
14402 * doc/invoke.texi: Put r{...} on the same line as @item.
14404 2021-06-14 Martin Liska <mliska@suse.cz>
14406 * doc/invoke.texi: Add missing newline.
14408 2021-06-14 Martin Liska <mliska@suse.cz>
14410 * doc/invoke.texi: Remove '+' charasters.
14412 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
14414 * config.gcc (arc): Add support for with_cpu option.
14415 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
14417 2021-06-14 Richard Biener <rguenther@suse.de>
14419 PR tree-optimization/101031
14420 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
14421 instead of size when accounting for a possibly string
14424 2021-06-14 Martin Liska <mliska@suse.cz>
14426 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
14428 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
14430 * value-query.cc (gimple_range_global): Call get_range_global
14431 if called after inlining.
14433 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
14436 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
14437 Emit constant permutation insn directly from here.
14439 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
14441 * attribs.c (find_attribute_namespace): Iterate over vec<> with
14443 * auto-profile.c (afdo_find_equiv_class): Likewise.
14444 * gcc.c (do_specs_vec): Likewise.
14445 (do_spec_1): Likewise.
14446 (driver::set_up_specs): Likewise.
14447 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
14448 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
14449 (imm_store_chain_info::try_coalesce_bswap): Likewise.
14450 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
14451 (get_location_for_stmts): Likewise.
14452 * graphite-poly.c (print_iteration_domains): Likewise.
14453 (free_poly_bb): Likewise.
14454 (remove_gbbs_in_scop): Likewise.
14455 (free_scop): Likewise.
14456 (dump_gbb_cases): Likewise.
14457 (dump_gbb_conditions): Likewise.
14458 (print_pdrs): Likewise.
14459 (print_scop): Likewise.
14460 * ifcvt.c (cond_move_process_if_block): Likewise.
14461 * lower-subreg.c (decompose_multiword_subregs): Likewise.
14462 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
14463 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
14464 * sel-sched-dump.c (dump_insn_vector): Likewise.
14465 * store-motion.c (store_ops_ok): Likewise.
14466 (store_killed_in_insn): Likewise.
14467 * timevar.c (timer::named_items::print): Likewise.
14468 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
14469 (cleanup_tree_cfg_noloop): Likewise.
14470 * tree-data-ref.c (dump_data_references): Likewise.
14471 (print_dir_vectors): Likewise.
14472 (print_dist_vectors): Likewise.
14473 (dump_data_dependence_relations): Likewise.
14474 (dump_dist_dir_vectors): Likewise.
14475 (dump_ddrs): Likewise.
14476 (create_runtime_alias_checks): Likewise.
14477 (free_subscripts): Likewise.
14478 (save_dist_v): Likewise.
14479 (save_dir_v): Likewise.
14480 (invariant_access_functions): Likewise.
14481 (same_access_functions): Likewise.
14482 (access_functions_are_affine_or_constant_p): Likewise.
14483 (find_data_references_in_stmt): Likewise.
14484 (graphite_find_data_references_in_stmt): Likewise.
14485 (free_dependence_relations): Likewise.
14486 (free_data_refs): Likewise.
14487 * tree-inline.c (copy_debug_stmts): Likewise.
14488 * tree-into-ssa.c (dump_currdefs): Likewise.
14489 (rewrite_update_phi_arguments): Likewise.
14490 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
14491 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
14493 (vect_slp_analyze_node_dependences): Likewise.
14494 (vect_slp_analyze_instance_dependence): Likewise.
14495 (vect_record_base_alignments): Likewise.
14496 (vect_get_peeling_costs_all_drs): Likewise.
14497 (vect_peeling_supportable): Likewise.
14498 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
14499 (vec_info::free_stmt_vec_infos): Likewise.
14501 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
14503 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
14504 (andqi3_1<cczn>): Removed.
14505 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
14506 (H8/SX bit logicals): Split out from other patterns.
14507 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
14508 mulqihi3_const_clobber_flags.
14509 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
14511 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
14514 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
14515 to true if red zone is used.
14516 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
14517 ix86_red_zone_used.
14518 * config/i386/i386.h (machine_function): Add red_zone_used.
14519 (ix86_red_zone_size): Removed.
14520 (ix86_red_zone_used): New.
14521 * config/i386/i386.md (peephole2 patterns): Replace
14522 ix86_red_zone_size with ix86_red_zone_used.
14524 2021-06-12 Jason Merrill <jason@redhat.com>
14526 * doc/extend.texi (unused variable attribute): Applies to
14527 structure fields as well.
14529 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
14531 * auto-profile.c (read_profile): fix a typo in an error string
14533 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
14535 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
14537 * tree-pretty-print.c (dump_omp_clauses): Update.
14538 (dump_generic_node) <OMP_CLAUSE>: Use it.
14540 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
14543 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
14544 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
14545 the polymorphic variants matching code.
14546 (__arm_vld1q_z): Likewise.
14547 (__arm_vld2q): Likewise.
14548 (__arm_vld4q): Likewise.
14549 (__arm_vldrbq_gather_offset): Likewise.
14550 (__arm_vldrbq_gather_offset_z): Likewise.
14552 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
14554 PR tree-optimization/96392
14555 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
14557 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
14559 PR tree-optimization/96392
14560 * fold-const.c (fold_real_zero_addition_p): Take both arguments
14561 of the addition or subtraction, not just the zero. Use this
14562 other argument in tests for signaling NaNs and signed zeros.
14563 (tree_expr_maybe_real_minus_zero_p): New predicate.
14564 * fold-const.h (fold_real_zero_addition_p): Update prototype.
14565 (tree_expr_maybe_real_minus_zero_p): New function prototype.
14566 * match.pd: Update calls to fold_real_zero_addition_p.
14567 Replace HONOR_NANS with tree_expr_maybe_nan_p.
14568 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
14569 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
14570 * tree-ssa-reassoc.c (eliminate_using_constants): Update
14571 call to fold_real_zero_addition_p.
14573 2021-06-11 Richard Biener <rguenther@suse.de>
14575 PR tree-optimization/101025
14576 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
14577 all refs that require dependence checking.
14579 2021-06-11 Richard Biener <rguenther@suse.de>
14581 PR tree-optimization/101028
14582 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
14583 reassoc discovery fails fatally, mark appropriate lanes
14586 2021-06-11 Richard Biener <rguenther@suse.de>
14588 PR tree-optimization/101026
14589 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
14590 have a representative for the associated chain nodes.
14592 2021-06-11 Jakub Jelinek <jakub@redhat.com>
14594 PR rtl-optimization/101008
14595 * simplify-rtx.c (relational_result): New function.
14596 (simplify_logical_relational_operation,
14597 simplify_relational_operation): Use it.
14599 2021-06-11 Jakub Jelinek <jakub@redhat.com>
14602 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
14604 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
14607 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
14608 false if the permutation can be implemented with constant
14609 permutation instruction in wider mode.
14610 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
14611 Handle V8QImode and V4HImode.
14613 2021-06-11 Martin Liska <mliska@suse.cz>
14615 PR gcov-profile/100788
14616 * common.opt: Add new option.
14617 * coverage.c (coverage_begin_function): Emit warning instead on
14618 the internal compiler error.
14619 * doc/invoke.texi: Document the option.
14620 * toplev.c (process_options): Enable it by default.
14622 2021-06-11 Richard Biener <rguenther@suse.de>
14624 PR middle-end/101009
14625 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
14626 to set *init_b to true when we encounter a constant equal
14628 (compute_affine_dependence): Also dump the actual DR_REF.
14630 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
14632 PR tree-optimization/100984
14633 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
14634 replacements table.
14635 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
14637 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
14639 * config/rs6000/rs6000.md
14640 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
14641 define_insn_and_split.
14643 2021-06-11 Richard Biener <rguenther@suse.de>
14645 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
14646 to sort operands of the associative chain.
14648 2021-06-11 Richard Biener <rguenther@suse.de>
14650 * system.h (gcc_stablesort_r): Declare.
14651 * sort.cc (gcc_sort_r): Support stable sort.
14652 (gcc_stablesort_r): Define.
14653 * vec.h (vec<>::stablesort): Add.
14655 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
14658 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
14659 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
14660 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
14661 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
14662 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
14663 (expand_vec_perm_interleave2): Handle 64bit modes.
14664 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
14665 (expand_vec_perm_even_odd_1): Ditto.
14666 (ix86_vectorize_vec_perm_const): Ditto.
14667 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
14668 * config/i386/sse.md: ... here.
14669 * config/i386/mmx.md (*vec_interleave_lowv2sf):
14670 New insn_and_split pattern.
14671 (*vec_interleave_highv2sf): Ditto.
14672 (mmx_pshufbv8qi3): New insn pattern.
14673 (*mmx_pblendw): Ditto.
14675 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
14677 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
14678 (build_acc): Likewise.
14679 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
14680 source operands in little-endian mode.
14681 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
14682 (mma_init_builtins): Likewise.
14683 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
14684 ordering for the MMA assemble and build source operands.
14685 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
14687 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
14690 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
14692 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
14694 * config/h8300/extensions.md: Replace _clobber_flags patterns
14697 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
14699 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
14700 (vcond_mask_<mode><tointvec>): this.
14702 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
14703 Thomas Schwinge <thomas@codesourcery.com>
14705 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
14706 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
14707 * gimple.h (enum gf_mask): Split
14708 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
14709 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
14710 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
14711 (is_gimple_omp_oacc): Update.
14712 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
14713 * gimplify.c (gimplify_omp_target_update): Likewise.
14714 * omp-expand.c (expand_omp_target, build_omp_regions_1)
14715 (omp_make_gimple_edges): Likewise.
14716 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
14719 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
14721 * value-query.cc (value_query::value_on_edge): Rename name to
14723 (range_query::range_on_edge): Same.
14724 (range_query::value_of_expr): Same.
14725 (range_query::value_on_edge): Same.
14726 * value-query.h (class value_query): Same.
14727 (class range_query): Same.
14729 2021-06-10 Richard Biener <rguenther@suse.de>
14731 PR tree-optimization/101003
14732 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
14733 use the pattern stmt defs when linearizing a chain.
14735 2021-06-10 Jakub Jelinek <jakub@redhat.com>
14738 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
14739 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
14741 2021-06-10 Clement Chigot <clement.chigot@atos.net>
14743 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
14744 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
14746 2021-06-09 Andrew Pinski <apinski@marvell.com>
14748 PR tree-optimization/100925
14749 * match.pd (a ? CST1 : CST2): Limit transformations
14750 that would produce a negative to integeral types only.
14751 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
14753 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
14756 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
14758 * doc/tm.texi: Correctly update.
14760 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
14762 * doc/tm.texi: Correctly update.
14764 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
14767 * doc/tm.texi.in (Trampolines): Add a missing blank line.
14769 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
14772 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
14773 and -ftrampolines work only with Ada.
14774 * doc/tm.texi.in (Trampolines): Likewise.
14775 * doc/tm.texi: Regenerated.
14777 2021-06-09 Carl Love <cel@us.ibm.com>
14779 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
14780 Add define for new builtins.
14781 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
14782 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
14783 overloaded builtin definitions.
14784 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
14785 VSIGNEXTSD2Q): Add builtin expansions.
14786 (SIGNEXT): Add P10 overload definition.
14787 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
14788 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
14789 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
14790 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
14791 vsignextend_si_v2di)[VIlong]: Add define_expand.
14792 Make define_insn vsx_sign_extend_si_v2di visible.
14793 * doc/extend.texi: Add documentation for the vec_signexti,
14794 vec_signextll builtins and vec_signextq.
14796 2021-06-09 Carl Love <cel@us.ibm.com>
14798 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
14799 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
14800 __floattikf_sw, __floatuntikf_sw respectively.
14801 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
14802 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
14803 define_insn for mode IEEE 128.
14805 2021-06-09 Carl Love <cel@us.ibm.com>
14807 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
14808 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
14809 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
14810 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
14811 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
14812 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
14813 uses of VSX_TI to VEC_TI.
14815 2021-06-09 Carl Love <cel@us.ibm.com>
14817 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
14819 2021-06-09 Carl Love <cel@us.ibm.com>
14821 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
14823 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
14824 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
14825 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
14826 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
14827 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
14828 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
14829 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
14831 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
14832 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
14833 altivec_vrlqnm): New define_expands.
14834 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
14835 VCMPGTUT_P): Add macro expansions.
14836 (BU_P10V_AV_P): Add builtin predicate definition.
14837 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
14838 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
14839 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
14840 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
14841 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
14842 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
14843 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
14844 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
14845 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
14846 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
14847 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
14848 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
14849 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
14850 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
14851 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
14852 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
14853 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
14854 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
14855 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
14856 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
14857 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
14858 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
14859 P10V_BUILTIN_MODU_V1TI):
14860 New overloaded definitions.
14861 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
14862 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
14863 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
14864 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
14865 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
14866 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
14868 (altivec_init_builtins): New E_V1TImode case statement.
14869 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
14870 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
14871 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
14872 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
14873 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
14874 E_V1TImode]: New case statements.
14875 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
14876 value RS6000_BTI_bool_V1TI.
14877 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
14878 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
14879 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
14880 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
14881 vlshrv1ti3, vashrv1ti3): New define_expands.
14882 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
14883 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
14884 UNSPEC_VSX_MODUQ): New unspecs.
14885 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
14886 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
14888 (vcmpnet): New define_expand.
14889 * doc/extend.texi: Add documentation for the new builtins vec_rl,
14890 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
14891 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
14892 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
14893 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
14894 vec_any_ge, vec_any_le.
14896 2021-06-09 Carl Love <cel@us.ibm.com>
14898 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
14899 bug in argument generation.
14901 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
14903 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
14905 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
14906 remove <supf> iterator.
14907 (mve_vclzq_u<mode>): New.
14908 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
14909 (neon_vclz<mode): Move to ...
14910 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
14911 * config/arm/vec-common.md: ... here. Add support for MVE.
14913 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
14915 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
14916 (@mve_vrhaddq_<supf><mode): Likewise.
14917 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
14918 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
14919 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
14921 2021-06-09 imba-tjd <109224573@qq.com>
14923 * doc/invoke.texi: Fix typo.
14925 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
14927 PR middle-end/53267
14928 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
14929 Support evaluation of fmod/fmodf/fmodl at compile-time.
14931 2021-06-09 Richard Biener <rguenther@suse.de>
14933 PR tree-optimization/100981
14934 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
14935 gimple_get_lhs to also handle calls.
14936 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
14939 2021-06-09 Richard Biener <rguenther@suse.de>
14941 PR tree-optimization/97832
14942 * tree-vectorizer.h (_slp_tree::failed): New.
14943 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
14945 (_slp_tree::~_slp_tree): Free failed.
14946 (vect_build_slp_tree): Retain failed nodes and record
14947 matches in them, copying that back out when running
14948 into a cached fail. Dump start and end of discovery.
14949 (dt_sort_cmp): New.
14950 (vect_build_slp_tree_2): Handle associatable chains
14951 together doing more aggressive operand swapping.
14953 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
14956 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
14958 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
14959 Linux and GNU targets.
14961 2021-06-09 Richard Biener <rguenther@suse.de>
14963 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
14966 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
14968 * config/arc/arc.md (loop_end): Change it to
14969 define_insn_and_split.
14971 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
14973 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
14974 (machi): New pattern.
14975 (umaddhisi4): Use VMAC2HU instruction.
14976 (umachi): New pattern.
14978 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
14980 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
14981 * config/arc/arc.c (arc_split_move_p): New function.
14982 (arc_split_move): Clean up.
14983 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
14984 (movdf_insn): Likewise.
14985 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
14987 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
14990 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
14991 argument to "raw". Do not emit segment overrides when "raw" is true.
14993 2021-06-09 Martin Liska <mliska@suse.cz>
14995 * doc/gcov.texi: Create a proper JSON files.
14996 * doc/invoke.texi: Remove dots in order to make it a valid
14999 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
15001 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
15002 (insn_is_load_p): Use pattern_is_rotate64.
15003 (insn_is_swap_p): Likewise.
15004 (quad_aligned_load_p): Likewise.
15005 (const_load_sequence_p): Likewise.
15006 (replace_swapped_aligned_load): Likewise.
15007 (recombine_lvx_pattern): Likewise.
15008 (recombine_stvx_pattern): Likewise.
15010 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
15012 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
15013 fur_stmt source record.
15014 * gimple-range.cc (fur_source::get_operand): Generic range query.
15015 (fur_source::get_phi_operand): New.
15016 (fur_source::register_dependency): New.
15017 (fur_source::query): New.
15018 (class fur_edge): New. Edge source for operands.
15019 (fur_edge::fur_edge): New.
15020 (fur_edge::get_operand): New.
15021 (fur_edge::get_phi_operand): New.
15022 (fur_edge::query): New.
15023 (fur_stmt::fur_stmt): New.
15024 (fur_stmt::get_operand): New.
15025 (fur_stmt::get_phi_operand): New.
15026 (fur_stmt::query): New.
15027 (class fur_depend): New. Statement source and process dependencies.
15028 (fur_depend::fur_depend): New.
15029 (fur_depend::register_dependency): New.
15030 (class fur_list): New. List source for operands.
15031 (fur_list::fur_list): New.
15032 (fur_list::get_operand): New.
15033 (fur_list::get_phi_operand): New.
15034 (fold_range): New. Instantiate appropriate fur_source class and fold.
15035 (fold_using_range::range_of_range_op): Use new API.
15036 (fold_using_range::range_of_address): Ditto.
15037 (fold_using_range::range_of_phi): Ditto.
15038 (imple_ranger::fold_range_internal): Use fur_depend class.
15039 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
15040 * gimple-range.h (class fur_source): Now a base class.
15041 (class fur_stmt): New.
15042 (fold_range): New prototypes.
15043 (fur_source::fur_source): Delete.
15045 2021-06-08 Andrew Pinski <apinski@marvell.com>
15047 PR tree-optimization/25290
15048 * tree-ssa-phiopt.c (xor_replacement): Delete.
15049 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
15050 (match_simplify_replacement): Allow one cheap preparation
15051 statement that can be moved to before the if.
15053 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
15055 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
15056 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
15058 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
15060 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
15061 Create length attribute on define_insn_and_split. Only split for cases which we
15063 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
15064 fix length computation.
15065 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
15067 2021-06-08 Richard Biener <rguenther@suse.de>
15069 PR tree-optimization/100923
15070 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
15071 the operand vector to be valueized.
15072 (valueize_refs): Likewise.
15073 (valueize_shared_reference_ops_from_ref): Adjust.
15074 (valueize_shared_reference_ops_from_call): Likewise.
15075 (vn_reference_lookup_3): Likewise.
15076 (vn_reference_lookup_pieces): Likewise. Re-valueize
15077 with honoring availability when we are about to create
15078 the ao_ref and valueized before.
15079 (vn_reference_lookup): Likewise.
15080 (vn_reference_insert_pieces): Adjust.
15082 2021-06-08 Richard Biener <rguenther@suse.de>
15084 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
15085 (_slp_instance::root_stmts): ... a vector.
15086 (SLP_INSTANCE_ROOT_STMT): Rename to ...
15087 (SLP_INSTANCE_ROOT_STMTS): ... this.
15088 (slp_root::root): Change to...
15089 (slp_root::roots): ... a vector.
15090 (slp_root::slp_root): Adjust.
15091 * tree-vect-slp.c (_slp_instance::location): Adjust.
15092 (vect_free_slp_instance): Release the root stmt vector.
15093 (vect_build_slp_instance): Adjust.
15094 (vect_analyze_slp): Likewise.
15095 (_bb_vec_info::~_bb_vec_info): Likewise.
15096 (vect_slp_analyze_operations): Likewise.
15097 (vect_bb_vectorization_profitable_p): Likewise. Adjust
15098 costs for the root stmt.
15099 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
15101 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
15103 (vectorize_slp_instance_root_stmt): Adjust.
15104 (vect_schedule_slp): Likewise.
15106 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
15108 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
15109 (ssa_equiv_stack::ssa_equiv_stack): New.
15110 (ssa_equiv_stack::~ssa_equiv_stack): New.
15111 (ssa_equiv_stack::enter): New.
15112 (ssa_equiv_stack::leave): New.
15113 (ssa_equiv_stack::push_replacement): New.
15114 (ssa_equiv_stack::get_replacement): New.
15115 (is_pointer_ssa): New.
15116 (class pointer_equiv_analyzer): New.
15117 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
15118 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
15119 (pointer_equiv_analyzer::set_global_equiv): New.
15120 (pointer_equiv_analyzer::set_cond_equiv): New.
15121 (pointer_equiv_analyzer::get_equiv): New.
15122 (pointer_equiv_analyzer::enter): New.
15123 (pointer_equiv_analyzer::leave): New.
15124 (pointer_equiv_analyzer::get_equiv_expr): New.
15125 (pta_valueize): New.
15126 (pointer_equiv_analyzer::visit_stmt): New.
15127 (pointer_equiv_analyzer::visit_edge): New.
15128 (hybrid_folder::value_of_expr): Call PTA.
15129 (hybrid_folder::value_on_edge): Same.
15130 (hybrid_folder::pre_fold_bb): New.
15131 (hybrid_folder::post_fold_bb): New.
15132 (hybrid_folder::pre_fold_stmt): New.
15133 (rvrp_folder::pre_fold_bb): New.
15134 (rvrp_folder::post_fold_bb): New.
15135 (rvrp_folder::pre_fold_stmt): New.
15136 (rvrp_folder::value_of_expr): Call PTA.
15137 (rvrp_folder::value_on_edge): Same.
15139 2021-06-08 Jakub Jelinek <jakub@redhat.com>
15142 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
15143 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
15145 2021-06-08 Richard Biener <rguenther@suse.de>
15147 PR middle-end/100951
15148 * tree-vect-generic.c (expand_vector_piecewise): Build a
15149 VECTOR_CST if all elements are constant.
15150 (expand_vector_condition): Likewise.
15151 (lower_vec_perm): Likewise.
15152 (expand_vector_conversion): Likewise.
15154 2021-06-08 Martin Liska <mliska@suse.cz>
15156 * doc/invoke.texi: Document new param evrp-sparse-threshold.
15158 2021-06-08 Martin Liska <mliska@suse.cz>
15160 * genautomata.c (create_automata): Fix typo.
15162 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
15164 PR tree-optimization/100794
15165 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
15166 allow_unroll_p and only allow unrolling when it's true.
15167 (tree_predictive_commoning): Add parameter allow_unroll_p and
15169 (run_tree_predictive_commoning): Likewise.
15170 (pass_predcom::gate): Check flag_tree_loop_vectorize and
15171 global_options_set.x_flag_predictive_commoning.
15172 (pass_predcom::execute): Adjust for allow_unroll_p.
15174 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
15176 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
15177 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
15178 lambda function cleanup, remove scev_reset call, and adjust return
15180 (tree_predictive_commoning): Adjust for different changed values,
15181 only set flag TODO_update_ssa_only_virtuals if changed.
15182 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
15183 from todo_flags_finish.
15185 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
15187 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
15188 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
15189 (sbr_sparse_bitmap::bitmap_set_quad): New.
15190 (sbr_sparse_bitmap::bitmap_get_quad): New.
15191 (sbr_sparse_bitmap::set_bb_range): New.
15192 (sbr_sparse_bitmap::get_bb_range): New.
15193 (sbr_sparse_bitmap::bb_range_p): New.
15194 (block_range_cache::block_range_cache): initialize bitmap obstack.
15195 (block_range_cache::~block_range_cache): Destruct obstack.
15196 (block_range_cache::set_bb_range): Decide when to utilze the
15197 sparse on entry cache.
15198 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
15199 * params.opt (-param=evrp-sparse-threshold): New.
15201 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
15203 * bitmap.c (bitmap_set_aligned_chunk): New.
15204 (bitmap_get_aligned_chunk): New.
15205 (test_aligned_chunk): New.
15206 (bitmap_c_tests): Call test_aligned_chunk.
15207 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
15209 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
15212 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
15214 (ix86_expand_vector_init_one_nonzero): Ditto.
15215 (ix86_expand_vector_init_one_var): Ditto.
15216 (ix86_expand_vector_init_general): Ditto.
15217 * config/i386/mmx.md (vec_initv4qiqi): New expander.
15219 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
15221 * config/h8300/movepush.md: Change most _clobber_flags
15222 patterns to instead use <cczn> subst.
15223 (movsi_cczn): New pattern with usable CC cases split out.
15224 (movsi_h8sx_cczn): Likewise.
15226 2021-06-07 Martin Liska <mliska@suse.cz>
15228 * common/common-target.def: Split long lines and replace them
15230 * target.def: Likewise.
15231 * doc/tm.texi: Re-generated.
15233 2021-06-07 Jakub Jelinek <jakub@redhat.com>
15236 * fold-const.c (fold_read_from_vector): Return NULL if trying to
15237 read from a CONSTRUCTOR with vector type elements.
15239 2021-06-07 Jakub Jelinek <jakub@redhat.com>
15241 PR middle-end/100898
15242 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
15243 should copy any arguments. Don't call gimple_call_num_args
15244 on id->call_stmt or call_stmt more than once.
15246 2021-06-07 liuhongt <hongtao.liu@intel.com>
15249 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
15251 (<insn>v4siv4di2): Delete constraints for define_expand.
15253 2021-06-07 liuhongt <hongtao.liu@intel.com>
15256 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
15257 assignment of cfun->machine->has_explicit_vzeroupper.
15258 * config/i386/i386-features.c
15259 (ix86_add_reg_usage_to_vzerouppers): Delete.
15260 (ix86_add_reg_usage_to_vzeroupper): Ditto.
15261 (rest_of_handle_insert_vzeroupper): Remove
15262 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
15264 (gate): Remove cfun->machine->has_explicit_vzeroupper.
15265 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
15267 * config/i386/i386.c (ix86_insn_callee_abi): New function.
15268 (ix86_initialize_callee_abi): Ditto.
15269 (ix86_expand_avx_vzeroupper): Ditto.
15270 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
15272 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
15273 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
15275 * config/i386/i386.h (struct GTY(()) machine_function): Delete
15276 has_explicit_vzeroupper.
15277 * config/i386/i386.md (enum unspec): New member
15279 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
15280 define_constants for insn callee abi index.
15281 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
15282 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
15283 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
15284 (*avx_vzeroupper): Rename to ..
15285 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
15286 call_insn which has a special vzeroupper ABI.
15287 (*avx_vzeroupper_1): Deleted.
15289 2021-06-07 liuhongt <hongtao.liu@intel.com>
15292 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
15293 it won't use stack pointer reg.
15294 * final.c (leaf_function_p): When call_insn is a fake call, it
15295 won't affect caller as a leaf function.
15296 * reg-stack.c (callee_clobbers_any_stack_reg): New.
15297 (subst_stack_regs): When call_insn doesn't clobber any stack
15298 reg, don't clear the arguments.
15299 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
15301 * shrink-wrap.c (requires_stack_frame_p): No need for stack
15302 frame for a fake call.
15303 * rtl.h (FAKE_CALL_P): New macro.
15305 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
15307 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
15309 (sparc_order_regs_for_local_alloc): ...this.
15310 (sparc_leaf_reg_remap): Declare.
15311 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
15312 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
15313 * config/sparc/sparc.c (leaf_reg_remap): Delete.
15314 (order_regs_for_local_alloc): Rename to...
15315 (sparc_order_regs_for_local_alloc): ...this.
15316 (sparc_leaf_reg_remap): New function.
15317 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
15319 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
15321 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
15322 Use assemble_name to output BSS section name.
15324 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
15326 * config/i386/constraints.md (Bs):
15327 Remove boolean operators from match_test RTX.
15330 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
15333 2021-06-06 Martin Liska <mliska@suse.cz>
15335 * doc/extend.texi: Add missing @headitem.
15336 * doc/invoke.texi: Likewise.
15337 * doc/objc.texi: Likewise.
15339 2021-06-06 Martin Liska <mliska@suse.cz>
15341 * genhooks.c (emit_findices): Remove unused function.
15342 (emit_documentation): Do not call emit_findices
15343 and do not search for @Fcode directives.
15345 2021-06-06 Martin Liska <mliska@suse.cz>
15347 * doc/invoke.texi: Remove extra character.
15349 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
15351 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
15353 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
15355 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
15356 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
15357 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
15358 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
15360 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
15362 * config/or1k/or1k.md (*movdi): Fix empty split condition.
15364 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
15366 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
15369 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
15371 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
15372 *zero_extendsidi2): Fix empty split condition.
15374 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
15376 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
15378 * config/h8300/bitfield.md: Likewise.
15379 * config/h8300/combiner.md: Likewise.
15380 * config/h8300/divmod.md: Likewise.
15381 * config/h8300/extensions.md: Likewise.
15382 * config/h8300/jumpcall.md: Likewise.
15383 * config/h8300/movepush.md: Likewise.
15384 * config/h8300/multiply.md: Likewise.
15385 * config/h8300/other.md: Likewise.
15386 * config/h8300/shiftrotate.md: Likewise.
15387 * config/h8300/logical.md: Likewise. Fix split pattern to use
15388 code iterator that somehow slipped through.
15390 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
15392 PR middle-end/100905
15393 * tree-nested.c (convert_nonlocal_omp_clauses,
15394 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
15396 2021-06-04 Martin Sebor <msebor@redhat.com>
15398 PR middle-end/100732
15399 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
15400 with either source or destination argument of invalid type.
15401 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
15402 calls with arguments of invalid type.
15404 2021-06-04 Martin Sebor <msebor@redhat.com>
15406 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
15408 (attr_access::vla_bounds): Also handle VLA bounds.
15410 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
15412 * config/i386/predicates.md (GOT_memory_operand):
15413 Implement using match_code RTXes.
15414 (GOT32_symbol_operand): Ditto.
15416 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
15419 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
15421 (ix86_expand_vector_init_general): Ditto.
15422 Use SImode instead of word_mode for logic operations
15423 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
15424 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
15425 implemented by expand_vec_perm_1.
15426 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
15427 should be implemented using standard shuffle patterns.
15428 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
15429 V2HI modes to modes, implementable with shuffle for one operand.
15430 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
15431 (*pshufw_1): New insn pattern.
15432 (*vec_dupv2hi): Ditto.
15433 (vec_initv2hihi): New expander.
15435 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
15437 * config/arm/vfp.md (no_literal_pool_df_immediate,
15438 no_literal_pool_sf_immediate): Fix empty split condition.
15440 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
15442 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
15443 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
15444 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
15445 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
15446 *<sse4_1_avx2>_pblendvb_lt): Likewise.
15448 2021-06-04 Jakub Jelinek <jakub@redhat.com>
15451 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
15452 concatenation from half-sized modes with TImode elements.
15454 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
15456 * config/arc/arc.c (arc_override_options): Disable millicode
15457 thunks when RF16 is on.
15459 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
15461 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
15463 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
15465 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
15466 Replace PROMOTE_MODE marco with its content.
15468 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
15470 * config/cris/cris.md (*addi_reload): Fix empty split condition.
15472 2021-06-03 Jim Wilson <jimw@sifive.com>
15474 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
15475 turn it on for all riscv targets.
15477 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
15480 * config/i386/i386-expand.c (ix86_expand_vector_set):
15481 Handle V2HI and V4QI modes.
15482 (ix86_expand_vector_extract): Ditto.
15483 * config/i386/mmx.md (*pinsrw): New insn pattern.
15486 (*pextrw_zext): Ditto.
15488 (*pextrb_zext): Ditto.
15489 (vec_setv2hi): New expander.
15490 (vec_extractv2hihi): Ditto.
15491 (vec_setv4qi): Ditto.
15492 (vec_extractv4qiqi): Ditto.
15493 (vec_setv8qi): Enable only for TARGET_SSE4_1.
15494 (vec_extractv8qiqi): Ditto.
15496 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
15498 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
15499 order to subf instruction.
15500 * config/rs6000/fusion.md: Regenerate.
15502 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
15504 * calls.c (get_size_range): Use range_of_expr instead of
15505 determine_value_range.
15506 * tree-affine.c (expr_to_aff_combination): Same.
15507 * tree-data-ref.c (split_constant_offset): Same.
15508 * tree-vrp.c (determine_value_range_1): Remove.
15509 (determine_value_range): Remove.
15510 * tree-vrp.h (determine_value_range): Remove.
15512 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
15514 * function-tests.c (test_ranges): Call gimple_range_tests.
15515 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
15517 * gimple-range.cc (fur_source::get_operand): Do not call
15518 get_tree_range or gimple_range_global.
15520 (get_tree_range): Move to value-query.cc.
15521 Call get_arith_expr_range.
15522 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
15523 Include gimple-range-tests.cc.
15524 * gimple-range.h (fold_range): Add argument.
15525 (get_tree_range): Remove.
15526 * selftest.h (gimple_range_tests): New.
15527 * value-query.cc (global_range_query::range_of_expr): Add
15529 (range_query::get_tree_range): Move from gimple-range.cc.
15530 * value-query.h (class range_query): Add get_tree_range and
15531 get_arith_expr_range. Make fur_source a friend.
15532 * vr-values.c (vr_values::range_of_expr): Pass stmt to
15534 * gimple-range-tests.cc: New file.
15536 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
15538 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
15539 update_global_range.
15540 * value-query.cc (update_global_range): New.
15541 * value-query.h (update_global_range): New.
15543 2021-06-03 David Malcolm <dmalcolm@redhat.com>
15545 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
15546 printing the same location twice if there are fix-it hints,
15547 multiple locations, or a label.
15549 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
15551 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
15552 thresholds to narrow the upper bound on epilogue iterations.
15554 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
15556 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
15557 (mve_vabsq_s<mode>): Likewise.
15558 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
15559 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
15560 * config/arm/vec-common.md (neg<mode>2): Rename to
15561 <absneg_str><mode>2.
15563 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
15565 * common/config/arc/arc-common.c (arc_option_optimization_table):
15566 Remove malign-call.
15567 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
15568 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
15569 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
15570 * config/arc/arc.md (abssi2_mixed): Remove pattern.
15571 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
15572 (malign-call): Likewise.
15573 (mmixed-code): Likewise.
15574 * doc/invoke.texi (ARC): Update doc.
15576 2021-06-03 Martin Liska <mliska@suse.cz>
15578 * common.opt: Use proper Enum values.
15579 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
15580 (parse_sanitizer_options): Handle only sanitizer_opts.
15581 (common_handle_option): Just assign value.
15583 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
15586 * tree-inline.c (inline_forbidden_p): Remove test on return type.
15588 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
15590 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
15591 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
15592 (type_byte_size): Inline into...
15593 (add_byte_size_attribute): ...this and call add_scalar_info.
15595 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
15597 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
15598 (typed_binop_from_tree): New function.
15599 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
15600 turn a divide by a power of 2 into a shift.
15601 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
15602 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
15603 typed divide by calling typed_binop_from_tree.
15605 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
15607 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
15608 (is_handled_procedure_type): Likewise.
15609 (struct loc_descr_context): Add strict_signedness field.
15610 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
15611 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
15612 (resolve_args_picking): Minor tweak.
15613 (function_to_dwarf_procedure): Initialize strict_signedness field.
15614 (type_byte_size): Likewise.
15615 (field_byte_offset): Likewise.
15616 (gen_descr_array_type_die): Likewise.
15617 (gen_variant_part): Likewise.
15618 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
15619 to true when a context is present before evaluating the arguments.
15620 <COND_EXPR>: Do not generate a useless comparison with zero.
15621 When dereferencing an address, if strict_signedness is true and the
15622 type is small and signed, use DW_OP_deref_type to do the dereference
15623 and then DW_OP_convert to convert back to the generic type.
15625 2021-06-03 Jakub Jelinek <jakub@redhat.com>
15628 * tree-inline.c (copy_tree_body_r): Handle iterators on
15629 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
15631 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
15633 * config/arc/arc.md (*bbit_di): Remove.
15635 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
15637 PR rtl-optimization/100264
15638 * ree.c (get_sub_rtx): Ignore SET expressions without register
15639 destinations and remove assertion, as it is not valid anymore
15640 with this new behaviour.
15641 (merge_def_and_ext): Eliminate destination check for register
15642 as such SET expressions can't occur anymore.
15643 (combine_reaching_defs): Likewise.
15645 2021-06-02 Jakub Jelinek <jakub@redhat.com>
15648 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
15649 -Wtype-limits warnings.
15650 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
15651 in operands to avoid -Wsign-compare warnings.
15653 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
15655 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
15658 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
15660 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
15662 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
15664 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
15666 * config/s390/subst.md(cconly_subst): Use a single constraint
15667 in (match_scratch).
15669 2021-06-02 Martin Liska <mliska@suse.cz>
15671 * ipa-icf.h: Use auto_vec for memory_access_types.
15673 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
15675 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
15676 argument from prototype.
15677 (output_logical_op): Add rtx_code argument.
15678 (compute_logical_op_length): Likewise.
15679 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
15680 to compute_a_shift_length.
15681 (output_logical_op); New argument with the rtx code rather than
15682 extracting it from an operand. Handle QImode too.
15683 (compute_logical_op_length): Similary.
15684 (compute_a_shift_length): Drop unused argument.
15685 * config/h8300/h8300.md (logicals): New code iterator.
15686 * config/h8300/logical.md (<code><mode>3 expander): Combine
15687 the "and" expander with the "ior"/"xor" expander.
15688 (bclr<mode>msx): Combine the QI/HI mode patterns.
15689 (<logical><mode>3 insns): Use code iterator rather than match_operator.
15690 Handle QImode as well. Update call to output_logical_op and
15691 compute_logical_op_length to pass in rtx_code
15692 Fix split condition on all define_insn_and_split patterns.
15693 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
15694 the flags and setting ZN via existing define_subst.
15695 * config/h8300/shiftrotate.md: Drop unused argument from
15696 calls to compute_a_shift_length.
15697 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
15699 2021-06-01 Andrew Pinski <apinski@marvell.com>
15701 PR tree-optimization/25290
15702 * tree-ssa-phiopt.c (match_simplify_replacement):
15704 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
15705 (two_value_replacement): Change the comment about
15706 conditional_replacement.
15707 (conditional_replacement): Delete.
15709 2021-06-01 Andrew Pinski <apinski@marvell.com>
15711 PR tree-optimization/95481
15712 * tree-tailcall.c (find_tail_calls): Handle empty typed
15715 2021-06-01 Andrew Pinski <apinski@marvell.com>
15717 * gimplify.c (zero_sized_field_decl): Delete
15718 (zero_sized_type): Delete
15719 (gimplify_init_ctor_eval): Use is_empty_type instead
15720 of zero_sized_field_decl.
15721 (gimplify_modify_expr): Use is_empty_type instead of
15724 2021-06-01 Jason Merrill <jason@redhat.com>
15727 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
15729 2021-06-01 Jason Merrill <jason@redhat.com>
15732 * diagnostic.h (warning_enabled_at): Declare.
15733 * diagnostic.c (diagnostic_enabled): Factor out from...
15734 (diagnostic_report_diagnostic): ...here.
15735 (warning_enabled_at): New.
15737 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
15739 * gimple-ssa-evrp.c: Enable exporting of global ranges.
15741 2021-06-01 Martin Liska <mliska@suse.cz>
15744 * doc/invoke.texi: Mention that -fgcse-after-reload
15745 is enabled with -O3.
15747 2021-06-01 liuhongt <hongtao.liu@intel.com>
15749 PR tree-optimization/98365
15750 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
15751 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
15752 (convert_scalar_cond_reduction): Ditto.
15753 (predicate_scalar_phi): Ditto.
15755 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
15757 PR tree-optimization/100781
15758 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
15759 value calculation by default.
15760 (ranger_cache::enable_new_values): New.
15761 (ranger_cache::disable_new_values): New.
15762 (ranger_cache::push_poor_value): Check if new values are allowed.
15763 * gimple-range-cache.h (class ranger_cache): New member/methods.
15764 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
15765 statement, and disable/renable new value calculation.
15767 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
15769 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
15770 (ranger_cache::range_of_def): New.
15771 (ranger_cache::entry_range): New.
15772 (ranger_cache::exit_range): New.
15773 (ranger_cache::range_of_expr): Adjust.
15774 (ranger_cache::range_on_edge): Adjust.
15775 (ranger_cache::propagate_cache): Call exit_range directly.
15776 * gimple-range-cache.h (class ranger_cache): Adjust.
15778 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
15780 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
15781 gori_compute being a member rather than base class.
15782 dervied call to member call.
15783 (ranger_cache::dump): No longer dump gori_map.
15784 (ranger_cache::dump_bb): New.
15785 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
15786 being a member rather than base class.
15787 (ranger_cache::set_global_range): Ditto.
15788 (ranger_cache::ssa_range_in_bb): Ditto.
15789 (ranger_cache::range_of_expr): New.
15790 (ranger_cache::range_on_edge): New.
15791 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
15792 (ranger_cache::propagate_cache): Adjust debugging output.
15793 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
15795 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
15796 member, and inherit from range_query instead.
15797 (ranger_cache::dump_bb): New. split from dump.
15798 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
15799 (gori_compute::expr_range_at_stmt): Delete.
15800 (gori_compute::compute_name_range_op): Delete.
15801 (gori_compute::compute_operand_range_switch): Add fur_source.
15802 (gori_compute::compute_operand_range): Add fur_source param, inline
15803 old compute_name_range_op and optimize_logical_operands.
15804 (struct tf_range): Delete.
15805 (gori_compute::logical_combine): Adjust
15806 (gori_compute::optimize_logical_operands): Delete.
15807 (gori_compute::compute_logical_operands_in_chain): Delete.
15808 (gori_compute::compute_logical_operands): Adjust.
15809 (gori_compute::compute_operand1_range): Adjust to fur_source.
15810 (gori_compute::compute_operand2_range): Ditto.
15811 (gori_compute::compute_operand1_and_operand2_range): Ditto.
15812 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
15813 and adjust to fur_source.
15814 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
15815 range_query and fur_source.
15816 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
15817 from the ranger_cache..
15818 (gimple_ranger::fold_range_internal): Adjust to base class change of
15820 (gimple_ranger::dump_bb): Adjust dump.
15821 * gimple-range.h (gimple_ranger):export gori computes object.
15823 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
15825 PR tree-optimization/100774
15826 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
15827 Constant values are also not stale.
15828 (ranger_cache::set_global_range): Range invariant values should also
15829 have the correct timestamp.
15831 2021-05-31 Martin Liska <mliska@suse.cz>
15833 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
15834 Unpack FUNCTION_DECL_DECL_TYPE.
15835 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
15836 Stream FUNCTION_DECL_DECL_TYPE instead of
15837 DECL_IS_OPERATOR_NEW_P.
15838 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
15840 (DECL_IS_OPERATOR_NEW_P): Likewise.
15841 (DECL_IS_OPERATOR_DELETE_P): Likewise.
15842 (DECL_LAMBDA_FUNCTION_P): Likewise.
15844 2021-05-31 Richard Biener <rguenther@suse.de>
15847 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
15848 * internal-fn.def (SHUFFLEVECTOR): New.
15849 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
15850 * doc/extend.texi: Document __builtin_shufflevector.
15852 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
15855 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
15856 indexed form addresses.
15858 2021-05-29 Jeff Law <jlaw@tachyum.com>
15860 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
15861 parameter. Call callers fixed.
15863 (output_plussi): Add FALLTHRU markers.
15864 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
15866 2021-05-29 Jakub Jelinek <jakub@redhat.com>
15868 PR middle-end/99928
15869 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
15870 combined with parallel, make sure to add shared clause to
15871 parallel for explicit linear clause.
15873 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
15875 PR tree-optimization/100787
15876 * gimple-ssa-evrp.c: Disable exporting of global ranges.
15878 2021-05-28 Jason Merrill <jason@redhat.com>
15880 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
15881 operator--, operator*, operator==, and operator!=.
15882 (class tsi_range): New.
15884 2021-05-28 Richard Biener <rguenther@suse.de>
15886 PR tree-optimization/100778
15887 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
15888 trapping ops in different BBs.
15890 2021-05-28 Richard Biener <rguenther@suse.de>
15893 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
15894 copy fntype from original call.
15896 2021-05-28 Martin Liska <mliska@suse.cz>
15898 PR gcov-profile/100751
15899 * doc/gcov.texi: Revert partially a hunk that was wrong.
15901 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
15903 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
15905 (HAVE_sync_compare_and_swaphi): Likewise.
15906 (HAVE_sync_compare_and_swapsi): Likewise.
15908 2021-05-28 Jakub Jelinek <jakub@redhat.com>
15910 PR middle-end/99928
15911 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
15913 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
15915 * gimplify.c (gimplify_omp_affinity): New.
15916 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
15917 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
15918 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
15919 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
15920 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
15922 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
15923 Richard Biener <rguenther@suse.de>
15925 * match.pd <popcount & / + pattern matching>:
15926 When generating popcount directly fails, try doing it in two halves.
15928 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15930 * Makefile.in (generated_files): Add gimple-match.c and
15933 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
15935 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
15937 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
15939 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
15941 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
15943 PR tree-optimization/99398
15944 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
15945 where the fed operands are CTOR/CST and propagated through
15946 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
15947 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
15949 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
15952 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
15954 * config/i386/mmx.md (addv2sf3): Do not call
15955 ix86_fixup_binary_operands_no_copy.
15958 (<smaxmin:code>v2sf3): Ditto.
15959 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
15960 (<plusminus:insn><VI_32:mode>3): Remove expander.
15961 (<plusminus:insn><VI_32:mode>3): Rename from
15962 "*<plusminus:insn><VI_32:mode>3".
15963 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
15964 (mulv2hi3): Remove expander.
15965 (mulv2hi3): Rename from *mulv2hi3.
15966 (<s>mulv2hi3_highpart): Remove expander.
15967 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
15968 (<smaxmin:code><MMXMODE14:mode>3): Rename from
15969 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
15970 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
15971 (SMAXMIN_MMXMODEI): Remove mode iterator.
15972 (<smaxmin:code>v4hi3): New expander.
15973 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
15974 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
15975 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
15976 (SMAXMIN_VI_32): Remove mode iterator.
15977 (<umaxmin:code><MMXMODE24:mode>3): Rename from
15978 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
15979 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
15980 (UMAXMIN_MMXMODEI): Remove mode iterator.
15981 (<umaxmin:code>v8qi3): New expander.
15982 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
15983 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
15984 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
15985 (UMAXMIN_VI_32): Remove mode iterator.
15986 (<any_shift:insn>v2hi3): Remove expander.
15987 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
15988 (<any_logic:code><MMXMODEI:mode>3): Do not call
15989 ix86_fixup_binary_operands_no_copy.
15990 (<any_logic:code><VI_32:mode>3): Remove expander.
15991 (<any_logic:code><VI_32:mode>3): Rename from
15992 "*<any_logic:code><VI_32:mode>3".
15993 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
15994 * config/i386/sse.md (div<VF2:mode>3): Do not call
15995 ix86_fixup_binary_operands_no_copy.
15996 (div<VF1:mode>3): Ditto.
15997 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
15998 (smulhrsv4hi3): Ditto.
15999 (smulhrsv2hi3): Ditto.
16001 2021-05-27 Martin Sebor <msebor@redhat.com>
16003 * ggc.h (gt_ggc_mx): Add overloads for all integers.
16005 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
16007 (hash_map::operator==): New function.
16009 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
16012 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
16013 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
16014 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
16015 (*xop_maskcmp<VI_32:mode>3): Ditto.
16016 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
16017 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
16019 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
16022 * config/arm/arm.c (arm_configure_build_target): Remove parameter
16023 opts_set, directly check opts parameters for being non-null.
16024 (arm_option_restore): Update call to arm_configure_build_target.
16025 (arm_option_override): Likewise.
16026 (arm_can_inline_p): Likewise.
16027 (arm_valid_target_attribute_tree): Likewise.
16028 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
16029 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
16032 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
16034 * vr-values.c (simplify_conversion_using_ranges): Use
16035 get_range_query instead of get_global_range_query.
16037 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
16039 * gimple-range.cc (get_range_global): Move to value-query.cc.
16040 (gimple_range_global): Same.
16041 (get_global_range_query): Same.
16042 (global_range_query::range_of_expr): Same.
16043 * gimple-range.h (class global_range_query): Move to
16045 (gimple_range_global): Same.
16046 * tree-ssanames.c (get_range_info): Move to value-query.cc.
16047 (get_ptr_nonnull): Same.
16048 * tree-ssanames.h (get_range_info): Remove.
16049 (get_ptr_nonnull): Remove.
16050 * value-query.cc (get_ssa_name_range_info): Move from
16052 (get_ssa_name_ptr_info_nonnull): Same.
16053 (get_range_global): Move from gimple-range.cc.
16054 (gimple_range_global): Same.
16055 (get_global_range_query): Same.
16056 (global_range_query::range_of_expr): Same.
16057 * value-query.h (class global_range_query): Move from
16059 (gimple_range_global): Same.
16061 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
16064 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
16065 (uavgv2hi3_ceil): Ditto.
16067 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
16070 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
16072 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16074 * tree-ssanames.c (get_range_info): Merge both copies of
16075 get_range_info into one that works with irange.
16076 * tree-ssanames.h (get_range_info): Remove version that works on
16079 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16081 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
16082 (expand_builtin_strnlen): Same.
16083 (determine_block_size): Same.
16084 * fold-const.c (expr_not_equal_to): Same.
16085 * gimple-fold.c (size_must_be_zero_p): Same.
16086 * gimple-match-head.c: Include gimple-range.h.
16087 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
16088 * gimple-ssa-warn-restrict.c
16089 (builtin_memref::extend_offset_range): Same.
16090 * graphite-sese-to-poly.c (add_param_constraints): Same.
16091 * internal-fn.c (get_min_precision): Same.
16092 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
16093 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
16095 * tree-data-ref.c (split_constant_offset): Same.
16096 (dr_step_indicator): Same.
16097 * tree-dfa.c (get_ref_base_and_extent): Same.
16098 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
16099 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
16100 (determine_value_range): Same.
16101 (record_nonwrapping_iv): Same.
16102 (infer_loop_bounds_from_signedness): Same.
16103 (scev_var_range_cant_overflow): Same.
16104 * tree-ssa-phiopt.c (two_value_replacement): Same.
16105 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
16106 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
16107 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
16109 (dump_strlen_info): Same.
16110 (set_strlen_range): Same.
16111 (maybe_diag_stxncpy_trunc): Same.
16112 (get_len_or_size): Same.
16113 (handle_integral_assign): Same.
16114 * tree-ssa-structalias.c (find_what_p_points_to): Same.
16115 * tree-ssa-uninit.c (find_var_cmp_const): Same.
16116 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
16117 * tree-vect-patterns.c (vect_get_range_info): Same.
16118 (vect_recog_divmod_pattern): Same.
16119 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
16120 (register_edge_assert_for_2): Same.
16121 (determine_value_range_1): Same.
16122 * tree.c (get_range_pos_neg): Same.
16123 * vr-values.c (vr_values::get_lattice_entry): Same.
16124 (vr_values::update_value_range): Same.
16125 (simplify_conversion_using_ranges): Same.
16127 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16129 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
16130 get_range_query instead of query argument.
16131 (pass_walloca::execute): Enable and disable global ranger.
16133 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16135 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
16137 (rvrp_folder::~rvrp_folder): Call disable_ranger.
16138 (hybrid_folder::hybrid_folder): Call enable_ranger.
16139 (hybrid_folder::~hybrid_folder): Call disable_ranger.
16141 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16143 * function.c (allocate_struct_function): Set cfun->x_range_query.
16144 * function.h (struct function): Declare x_range_query.
16145 (get_range_query): New.
16146 (get_global_range_query): New.
16147 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
16148 Remove call to safe_grow_cleared.
16149 * gimple-range.cc (get_range_global): New.
16150 (gimple_range_global): Move from gimple-range.h.
16151 (get_global_range_query): New.
16152 (global_range_query::range_of_expr): New.
16153 (enable_ranger): New.
16154 (disable_ranger): New.
16155 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
16156 (class global_range_query): New.
16157 (enable_ranger): New.
16158 (disable_ranger): New.
16159 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
16160 dump_all_value_ranges to dump.
16161 * tree-vrp.c (vrp_prop::finalize): Same.
16162 * value-query.cc (range_query::dump): New.
16163 * value-query.h (range_query::dump): New.
16164 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
16165 (vr_values::dump): ...this.
16166 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
16167 dump and make virtual.
16169 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
16171 * config/i386/i386.c (ix86_autovectorize_vector_modes):
16172 Add V4QImode and V16QImode for TARGET_SSE2.
16173 * doc/sourcebuild.texi (Vector-specific attributes):
16174 Add vect64 and vect32 description.
16176 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
16178 * gimple-range-gori.cc (range_def_chain::register_dependency):
16179 Resize m_def_chain when needed.
16181 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
16183 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
16184 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
16185 * config/arm/vec-common.md: .. here. Add support for MVE.
16187 2021-05-26 Jakub Jelinek <jakub@redhat.com>
16189 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
16191 * config/microblaze/microblaze.c (microblaze_legitimize_address,
16193 microblaze_option_override, print_operand): Likewise.
16194 * config/microblaze/microblaze.md (call_internal_plt,
16195 call_value_intern_plt, call_value_intern): Likewise.
16196 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
16197 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
16198 call_value_multiple_internal1): Likewise.
16199 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
16201 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16203 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
16204 arc_ccfsm_advance, symbolic_reference_mentioned_p,
16205 arc_raw_symbolic_reference_mentioned_p): Remove register
16208 2021-05-26 Jakub Jelinek <jakub@redhat.com>
16211 * omp-low.c: Include omp-offload.h.
16212 (create_omp_child_function): If current_function_decl has
16213 "omp declare target" attribute and is_gimple_omp_offloaded,
16214 remove that attribute from the copy of attribute list and
16215 add "omp target entrypoint" attribute instead.
16216 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
16217 variables for offloading if in omp_maybe_offloaded_ctx.
16218 * omp-offload.c (pass_omp_target_link::execute): Nullify second
16219 argument to GOMP_target_data_ext in offloaded code.
16221 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
16223 * config/csky/csky.c (csky_can_change_mode_class): Delete.
16224 For csky, HF/SF mode use the low bits of VREGS.
16226 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
16228 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
16229 DECL which is a reference for OMP.
16231 2021-05-26 Martin Liska <mliska@suse.cz>
16233 PR gcov-profile/100751
16234 * doc/gcov.texi: Document that __gcov_dump can be called just
16235 once and that __gcov_reset resets run-time counters.
16237 2021-05-26 Martin Liska <mliska@suse.cz>
16239 * doc/install.texi: Port relevant part from install-old.texi
16240 and re-generate list of CPUs and systems.
16242 2021-05-26 Martin Liska <mliska@suse.cz>
16244 * Makefile.in: Remove it.
16245 * doc/include/fdl.texi: Update next/previous chapters.
16246 * doc/install.texi: Likewise.
16247 * doc/install-old.texi: Removed.
16249 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
16251 * config/csky/csky.c (ck810_legitimate_index_p): Support
16252 "base + index" with DF mode.
16253 * config/csky/constraints.md ("Y"): New constraint for memory operands
16254 without index register.
16255 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
16256 when mov between memory and general registers, and lower their priority.
16257 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
16259 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
16261 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
16263 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
16265 * config/csky/csky.md (untyped_call): Emit clobber for return
16266 registers to mark them used.
16268 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
16270 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
16272 2021-05-26 Andrew Pinski <apinski@marvell.com>
16274 * match.pd (x < 0 ? ~y : y): New patterns.
16276 2021-05-26 Andrew Pinski <apinski@marvell.com>
16278 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
16279 A?POW2:0 and A?0:POW2.
16281 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16283 * gimple-range-gori.cc (class logical_stmt_cache): Delete
16284 (logical_stmt_cache::logical_stmt_cache ): Delete.
16285 (logical_stmt_cache::~logical_stmt_cache): Delete.
16286 (logical_stmt_cache::cache_entry::dump): Delete.
16287 (logical_stmt_cache::get_range): Delete.
16288 (logical_stmt_cache::cached_name ): Delete.
16289 (logical_stmt_cache::same_cached_name): Delete.
16290 (logical_stmt_cache::cacheable_p): Delete.
16291 (logical_stmt_cache::slot_diagnostics ): Delete.
16292 (logical_stmt_cache::dump): Delete.
16293 (gori_compute_cache::gori_compute_cache): Delete.
16294 (gori_compute_cache::~gori_compute_cache): Delete.
16295 (gori_compute_cache::compute_operand_range): Delete.
16296 (gori_compute_cache::cache_stmt): Delete.
16297 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
16299 (class gori_compute_cache): Delete.
16301 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16303 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
16305 (fold_using_range::range_of_address): Adjust.
16306 (fold_using_range::range_of_phi): Adjust.
16307 * gimple-range.h (class fur_source): Adjust.
16308 (fur_source::fur_source): Adjust.
16310 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16312 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
16313 from expr_range_in_bb and adjust.
16314 (gori_compute::compute_name_range_op): Adjust.
16315 (gori_compute::optimize_logical_operands): Adjust.
16316 (gori_compute::compute_logical_operands_in_chain): Adjust.
16317 (gori_compute::compute_operand1_range): Adjust.
16318 (gori_compute::compute_operand2_range): Adjust.
16319 (ori_compute_cache::cache_stmt): Adjust.
16320 * gimple-range-gori.h (gori_compute): Rename prototype.
16322 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16324 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
16325 checked only after range_of_stmt, not range_on_entry.
16326 (gimple_ranger::range_on_entry): Check for non-null in any
16327 predecessor block, if it is not already non-null.
16328 (gimple_ranger::range_on_exit): DOnt check for non-null after
16329 range on entry call.
16330 (gimple_ranger::dump_bb): New. Split from dump.
16331 (gimple_ranger::dump): Adjust.
16332 * gimple-range.h (class gimple_ranger): Adjust.
16334 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16336 * gimple-range-cache.cc (struct range_timestamp): Delete.
16337 (class temporal_cache): Adjust.
16338 (temporal_cache::get_timestamp): Delete.
16339 (temporal_cache::set_dependency): Delete.
16340 (temporal_cache::temporal_value): Adjust.
16341 (temporal_cache::current_p): Take dependencies as params.
16342 (temporal_cache::set_timestamp): Adjust.
16343 (temporal_cache::set_always_current): Adjust.
16344 (ranger_cache::get_non_stale_global_range): Adjust.
16345 (ranger_cache::register_dependency): Delete.
16346 * gimple-range-cache.h (class range_cache): Adjust.
16348 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16350 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
16352 (range_def_chain::~range_def_chain): Dispose of obstack rather than
16353 each individual bitmap.
16354 (range_def_chain::set_import): New.
16355 (range_def_chain::get_imports): New.
16356 (range_def_chain::chain_import_p): New.
16357 (range_def_chain::register_dependency): Rename from build_def_chain
16359 (range_def_chain::def_chain_in_bitmap_p): New.
16360 (range_def_chain::add_def_chain_to_bitmap): New.
16361 (range_def_chain::has_def_chain): Just check first depenedence.
16362 (range_def_chain::get_def_chain): Process imports, use generic
16363 register_dependency routine.
16364 (range_def_chain::dump): New.
16365 (gori_map::gori_map): Allocate import list.
16366 (gori_map::~gori_map): Release imports.
16367 (gori_map::exports): Check for past allocated block size.
16368 (gori_map::imports): New.
16369 (gori_map::def_chain_in_export_p): Delete.
16370 (gori_map::is_import_p): New.
16371 (gori_map::maybe_add_gori): Handle imports.
16372 (gori_map::dump): Adjust output, add imports.
16373 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
16374 (gori_export_iterator::gori_export_iterator): New.
16375 (gori_export_iterator::next): New.
16376 (gori_export_iterator::get_name): New.
16377 * gimple-range-gori.h (range_def_chain): Add imports and direct
16378 dependecies via struct rdc.
16379 (range_def_chain::depend1): New.
16380 (range_def_chain::depend2): New.
16381 (class gori_map): Adjust.
16382 (FOR_EACH_GORI_IMPORT_NAME): New.
16383 (FOR_EACH_GORI_EXPORT_NAME): New.
16384 (class gori_export_iterator): New.
16386 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16388 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
16389 export cache filling to here.
16390 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
16392 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
16394 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
16395 (gori_map): Move to gimple-range-gori.h.
16396 (gori_compute::gori_compute): Adjust.
16397 (gori_compute::~gori_compute): Delete.
16398 (gori_compute::compute_operand_range_switch): Adjust.
16399 (gori_compute::compute_operand_range): Adjust.
16400 (gori_compute::compute_logical_operands): Adjust.
16401 (gori_compute::has_edge_range_p ): Adjust.
16402 (gori_compute::set_range_invariant): Delete.
16403 (gori_compute::dump): Adjust.
16404 (gori_compute::outgoing_edge_range_p): Adjust.
16405 * gimple-range-gori.h (class range_def_chain): Relocate here.
16406 (class gori_map): Relocate here.
16407 (class gori_compute): Inherit from gori_map, and adjust.
16409 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
16411 * value-range.cc (range_tests_legacy): Use
16412 build_nonstandard_integer_type instead of int and short.
16414 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
16416 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
16417 when really creating an initialization statement for it.
16419 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
16421 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
16423 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
16425 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
16427 2021-05-25 Martin Liska <mliska@suse.cz>
16429 PR tree-optimization/92860
16431 * optc-save-gen.awk: Remove exceptions.
16433 2021-05-25 Martin Liska <mliska@suse.cz>
16435 * asan.h (sanitize_coverage_p): New function.
16436 * doc/extend.texi: Document it.
16437 * fold-const.c (fold_range_test): Use sanitize_flags_p
16438 instead of flag_sanitize_coverage.
16439 (fold_truth_andor): Likewise.
16440 * sancov.c: Likewise.
16441 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
16442 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
16443 -fsanitize-coverage when inlining.
16445 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
16447 * config/csky/csky-modes.def : Fix copyright.
16449 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
16451 * config/csky/csky-modes.def : Amend copyright.
16452 * config/csky/csky_insn_fpuv2.md : Likewise.
16453 * config/csky/csky_insn_fpuv3.md : Likewise.
16455 2021-05-25 Richard Biener <rguenther@suse.de>
16457 PR middle-end/100727
16458 * calls.c (initialize_argument_information): Explicitely test
16459 for WITH_SIZE_EXPR.
16460 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
16462 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
16464 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
16465 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
16466 the signle definition. The signle definition may not work well
16467 at simplify_subreg_regno().
16468 (HARD_FRAME_POINTER_REGNUM): New.
16469 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
16470 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
16471 csky_initial_elimination_offset, csky_expand_prologue,
16472 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
16474 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
16476 * config/csky/csky.c (csky_option_override):
16477 Init csky_arch_isa_features[] in advance, so TARGET_DSP
16478 and TARGET_DIV can be set well.
16480 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
16482 * config/csky/constraints.md ("l", "h"): Delete.
16483 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
16484 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
16485 * config/csky/csky.c (regno_reg_classm,
16486 csky_secondary_reload, csky_register_move_cost):
16487 Use HILO_REGS instead of LO_REGS and HI_REGS.
16489 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
16491 * config/csky/constraints.md ("W"): New constriant for mem operand
16492 with base reg, index register.
16493 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
16494 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
16496 ("Dv"): New constraint for const double value that can be used at
16498 * config/csky/csky-modes.def (HFmode): New mode.
16499 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
16500 to "csky_valid_mem_constraint_operand" and support new constraint
16502 (csky_get_movedouble_length): New.
16503 (fpuv3_output_move): New.
16504 (fpuv3_const_double): New.
16505 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
16506 (decompose_csky_address): Refine.
16507 (csky_print_operand): New "CONST_DOUBLE" operand.
16508 (csky_output_move): Support fpv3 instructions.
16509 (csky_get_movedouble_length): New.
16510 (fpuv3_output_move): New.
16511 (fpuv3_const_double): New.
16512 (csky_emit_compare): Cover float comparsion.
16513 (csky_emit_compare_float): Refine.
16514 (csky_vaild_fpuv2_mem_operand): Rename to
16515 "csky_valid_mem_constraint_operand" and support new constraint "W".
16516 (ck860_rtx_costs): New.
16517 (csky_rtx_costs): Add the cost calculation of CK860.
16518 (regno_reg_class): New vregs for fpuv3.
16519 (csky_dbx_regno): Likewise.
16520 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
16521 (csky_conditional_register_usage): Suporrot fpuv3.
16522 (csky_dwarf_register_span): Suporrot fpuv3.
16523 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
16524 (ck810_legitimate_index_p): Support fp16.
16525 * config/csky/csky.h (TARGET_TLS): ADD CK860.
16526 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
16527 (TARGET_SINGLE_FPU): Support fpuv3.
16528 (TARGET_SUPPORT_FPV3): New.
16529 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
16530 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
16531 REG_CLASS_CONTENTS): Support fpuv3.
16532 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
16533 (csky_movsf_fpv2): Likewise.
16534 (ck801_movsf): Likewise.
16535 (csky_movsf): Likewise.
16537 (csky_movdf_fpv2): Likewise.
16538 (ck801_movdf): Likewise.
16539 (csky_movdf): Likewise.
16540 (movsicc): Refine. Use "comparison_operatior" instead of
16541 "ordered_comparison_operatior".
16542 (addsicc): Likewise.
16543 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
16544 (call_value_internal_vh): New.
16545 * config/csky/csky_cores.def (CK860): New arch and cpu.
16550 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
16551 into emit-patterns and match-patterns, remain the emit-patterns here,
16552 and move the match-patterns to csky_insn_fpuv2.md or
16553 csky_insn_fpuv3.md.
16554 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
16555 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
16557 * config/csky/csky_isa.def (fcr): New.
16562 (CK860): New definition for ck860.
16563 * config/csky/csky_tables.opt (ck860): New processors ck860,
16564 ck860f. And new arch ck860.
16569 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
16570 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
16571 * config/csky/t-csky-elf: Support 860.
16572 * config/csky/t-csky-linux: Likewise.
16573 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
16575 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
16577 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
16578 add generation of logical-add and add-logical fusion pairs.
16579 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
16581 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
16582 logical-add and add-logical fusion by default.
16583 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
16584 -mpower10-fusion-add-logical options.
16585 * config/rs6000/fusion.md: Regenerate file.
16587 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
16589 * value-range.cc (irange::legacy_equal_p): Check type when
16590 comparing VR_VARYING types.
16591 (range_tests_legacy): Test comparing VARYING ranges of different
16594 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
16596 * config/aarch64/aarch64.c (neoversen1_tunings):
16597 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
16599 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
16601 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
16602 extern weak symbols. Limit symbol offsets for non-GOT symbols with
16605 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
16607 * config/arm/neon.md (vec_load_lanesxi<mode>)
16608 (vec_store_lanexoi<mode>): Move ...
16609 * config/arm/vec-common.md: here.
16611 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
16613 * config/arm/neon.md (vec_load_lanesoi<mode>)
16614 (vec_store_lanesoi<mode>): Move ...
16615 * config/arm/vec-common.md: here.
16617 2021-05-24 liuhongt <hongtao.liu@intel.com>
16620 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
16621 stmt with GIMPLE_NOP when lhs doesn't exist.
16623 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
16626 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
16627 New instruction pattern.
16628 (*push<VI_32:mode>2): Ditto.
16629 (push splitter for SSE registers): New splitter.
16631 2021-05-23 Andrew Pinski <apinski@marvell.com>
16633 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
16635 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
16637 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
16638 * config/rs6000/fusion.md: Regenerate file.
16640 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
16642 * config/rs6000/genfusion.pl (gen_addadd): New function.
16643 * config/rs6000/fusion.md: Regenerate file.
16644 * config/rs6000/rs6000-cpus.def: Add
16645 OPTION_MASK_P10_FUSION_2ADD to masks.
16646 * config/rs6000/rs6000.c (rs6000_option_override_internal):
16647 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
16648 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
16650 2021-05-21 Jakub Jelinek <jakub@redhat.com>
16652 PR middle-end/99928
16653 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
16654 * gimplify.c (enum gimplify_omp_var_data): Fix up
16655 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
16656 (omp_lastprivate_for_combined_outer_constructs): If combined target
16657 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
16658 GOVD_MAP | GOVD_SEEN.
16659 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
16660 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
16661 (gimplify_adjust_omp_clauses): For firstprivate clauses with
16662 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
16663 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
16664 let it be replaced by implicit map clause.
16666 2021-05-21 Jakub Jelinek <jakub@redhat.com>
16668 PR middle-end/99928
16669 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
16671 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
16672 (gimplify_omp_for): Likewise.
16674 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16676 PR middle-end/90115
16677 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
16678 'external' in blocks.
16680 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16682 PR middle-end/90115
16683 * flag-types.h (enum openacc_privatization): New.
16684 * params.opt (-param=openacc-privatization): New.
16685 * doc/invoke.texi (openacc-privatization): Document it.
16686 * omp-general.h (get_openacc_privatization_dump_flags): New
16688 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
16689 * omp-offload.c (execute_oacc_device_lower)
16690 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
16691 * target.def (goacc.adjust_private_decl): Add 'location_t'
16693 * doc/tm.texi: Regenerate.
16694 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
16695 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
16696 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
16697 Likewise. Preserve it for...
16698 (nvptx_goacc_expand_var_decl): ... use here.
16700 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16702 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
16705 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16707 PR middle-end/90115
16708 * omp-low.c (oacc_privatization_candidate_p): New function.
16709 (oacc_privatization_scan_clause_chain)
16710 (oacc_privatization_scan_decl_chain): Use it. Also
16711 'gcc_checking_assert' that we're not seeing duplicates.
16713 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16715 PR middle-end/90115
16716 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
16719 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16721 PR middle-end/90115
16722 * omp-offload.c (execute_oacc_device_lower): Explain.
16724 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16726 PR middle-end/90115
16727 * omp-offload.c (execute_oacc_device_lower)
16728 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
16730 * internal-fn.c (expand_UNIQUE): Don't expect
16731 'IFN_UNIQUE_OACC_PRIVATE'.
16733 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16735 PR middle-end/90115
16736 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
16738 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
16740 PR middle-end/90115
16741 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
16742 (nvptx_goacc_expand_var_decl): Tighten.
16744 2021-05-21 Julian Brown <julian@codesourcery.com>
16745 Chung-Lin Tang <cltang@codesourcery.com>
16746 Thomas Schwinge <thomas@codesourcery.com>
16748 PR middle-end/90115
16749 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
16750 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
16751 * doc/tm.texi: Regenerate.
16752 * expr.c (expand_expr_real_1): Expand decls using the
16753 expand_var_decl OpenACC hook if defined.
16754 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
16755 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
16756 * omp-low.c (omp_context): Add oacc_privatization_candidates
16758 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
16760 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
16761 private marker's gimple call arguments, and pass it to
16762 lower_oacc_reductions.
16763 (oacc_privatization_scan_clause_chain)
16764 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
16766 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
16767 * omp-offload.c (convert.h): Include.
16768 (oacc_loop_xform_head_tail): Treat private-variable markers like
16769 fork/join when transforming head/tail sequences.
16770 (struct var_decl_rewrite_info): Add struct.
16771 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
16772 (execute_oacc_device_lower): Support rewriting gang-private
16773 variables using target hook, and fix up addr_expr and var_decl
16775 * target.def (adjust_private_decl, expand_var_decl): New hooks.
16776 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
16778 (gcn_goacc_adjust_private_decl): ...this.
16779 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
16781 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
16782 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
16783 definition using gcn_goacc_adjust_gangprivate_decl...
16784 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
16785 gcn_goacc_adjust_private_decl.
16786 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
16787 (gang_private_shared_size): New global variable.
16788 (gang_private_shared_align): Likewise.
16789 (gang_private_shared_sym): Likewise.
16790 (gang_private_shared_hmap): Likewise.
16791 (nvptx_option_override): Initialize these.
16792 (nvptx_file_end): Output gang_private_shared_sym.
16793 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
16795 (nvptx_set_current_function): Clear gang_private_shared_hmap.
16796 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
16797 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
16799 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
16801 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
16803 2021-05-21 Richard Biener <rguenther@suse.de>
16804 H.J. Lu <hjl.tools@gmail.com>
16806 PR middle-end/90773
16807 * expr.c (expand_constructor): Elide expand_constructor if
16808 move by pieces is preferred.
16810 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16812 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
16813 Take a flag and mode value as arguments.
16814 (aarch64_modifies_global_state_p): Likewise.
16815 (aarch64_reads_global_state_p): Likewise.
16816 (aarch64_could_trap_p): Likewise.
16817 (aarch64_get_attributes): Likewise.
16818 (aarch64_init_simd_builtins): Adjust callsite of above.
16819 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
16820 function attributes to apply to builtins.
16821 (aarch64_init_crc32_builtins): Likewise.
16822 (aarch64_init_builtin_rsqrt): Likewise.
16824 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
16826 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
16827 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
16828 (gen_2logical): Use new fusion types.
16829 * config/rs6000/fusion.md: Regenerate.
16831 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
16834 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
16835 Handle V4QI and V2HI modes.
16836 (ix86_expand_sse_movcc): Ditto.
16837 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
16838 New instruction pattern.
16839 (*eq<VI_32:mode>3): Ditto.
16840 (*gt<VI_32:mode>3): Ditto.
16841 (*xop_pcmov_<VI_32:mode>): Ditto.
16842 (mmx_pblendvb32): Ditto.
16843 (mmx_pblendvb64): Rename from mmx_pblendvb.
16844 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
16845 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
16846 (vcond<VI_32:mode><VI_32:mode>): Ditto.
16847 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
16848 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
16850 2021-05-21 Jakub Jelinek <jakub@redhat.com>
16852 PR tree-optimization/94589
16853 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
16854 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
16855 not the same as cmp3) treat <= the same as < and >= the same as >.
16856 Don't require that cond2_phi_edge is true edge, instead take
16857 false/true edges into account based on cmp1/cmp2 comparison kinds.
16859 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
16862 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
16863 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
16864 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
16865 using SMAXMIN_MMXMODEI mode iterator.
16866 (*<smaxmin:code>v4qi3): New insn pattern.
16867 (*<smaxmin:code>v2hi3): Ditto.
16868 (SMAXMIN_VI_32): New mode iterator.
16869 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
16870 (UMAXMIN_MMXMODEI): New mode iterator.
16871 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
16872 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
16873 using UMAXMIN_MMXMODEI mode iterator.
16874 (*<umaxmin:code>v4qi3): New insn pattern.
16875 (*<umaxmin:code>v2hi3): Ditto.
16876 (UMAXMIN_VI_32): New mode iterator.
16877 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
16878 (abs<VI_32:mode>2): New insn pattern.
16879 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
16880 * config/i386/sse.md: ... here.
16882 2021-05-20 Clement Chigot <clement.chigot@atos.net>
16883 David Edelsohn <dje.gcc@gmail.com>
16885 * collect2.c (scan_prog_file): Issue non-fatal warning for
16888 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
16890 * doc/invoke.texi (-Wno-c++11-extensions)
16891 (-Wno-c++14-extensions, -Wno-c++17-extensions)
16892 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
16895 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
16897 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
16898 * config/darwin.c (darwin_override_options): Likewise.
16899 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
16900 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
16901 (DWARF2_FRAME_REG_OUT): Likewise.
16902 * config/mips/mips.c (mips_output_filename): Likewise.
16903 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
16905 (rs6000_dbx_register_number): Likewise.
16906 * dbxout.c: Include flags.h.
16907 * dwarf2cfi.c (cfi_label_required_p): Likewise.
16908 (dwarf2out_do_frame): Likewise.
16909 * except.c: Include flags.h.
16910 * final.c (dwarf2_debug_info_emitted_p): Likewise.
16911 (final_scan_insn_1): Likewise.
16912 * flags.h (dwarf_debuginfo_p): New function declaration.
16913 * opts.c (dwarf_debuginfo_p): New function definition.
16914 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
16915 * toplev.c (process_options): Likewise.
16917 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
16919 * common.opt: Change type to support bitmasks.
16920 * flag-types.h (enum debug_info_type): Rename enumerator constants.
16921 (NO_DEBUG): New bitmask.
16922 (DBX_DEBUG): Likewise.
16923 (DWARF2_DEBUG): Likewise.
16924 (XCOFF_DEBUG): Likewise.
16925 (VMS_DEBUG): Likewise.
16926 (VMS_AND_DWARF2_DEBUG): Likewise.
16927 * flags.h (debug_set_to_format): New function declaration.
16928 (debug_set_count): Likewise.
16929 (debug_set_names): Likewise.
16930 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
16931 (debug_set_to_format): New function definition.
16932 (debug_set_count): Likewise.
16933 (debug_set_names): Likewise.
16934 (set_debug_level): Update access to debug_type_names.
16935 * toplev.c: Likewise.
16937 2021-05-20 Martin Sebor <msebor@redhat.com>
16939 PR middle-end/100684
16940 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
16942 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
16945 * config/i386/i386.md (isa): Remove x64_bmi.
16946 (enabled): Remove x64_bmi.
16947 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
16948 Remove general register alternative.
16949 (*andnot<VI_32:mode>3): Ditto.
16950 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
16951 (*<any_logic:code><VI_32:mode>3): Ditto.
16953 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
16955 * config/arm/arm.c: Include head files tree-vectorizer.h and
16958 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
16961 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
16962 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
16963 (<s>mulv4hi3_highpart): New expander.
16964 (*<s>mulv2hi3_highpart): New insn pattern.
16965 (<s>mulv2hi3_higpart): New expander.
16966 (*<any_shift:insn>v2hi3): New insn pattern.
16967 (<any_shift:insn>v2hi3): New expander.
16968 * config/i386/sse.md (smulhrsv2hi3): New expander.
16969 (*smulhrsv2hi3): New insn pattern.
16971 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
16973 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
16975 * params.opt (vect-inner-loop-cost-factor): New.
16976 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
16977 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
16978 tree-vectorizer.h and its required ones.
16979 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
16980 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
16981 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
16982 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
16983 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
16984 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
16986 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
16987 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
16988 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
16990 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
16991 Torbjörn Svensson <torbjorn.svensson@st.com>
16994 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
16996 2021-05-20 Jakub Jelinek <jakub@redhat.com>
16998 PR middle-end/99928
16999 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
17000 explicit linear clause when combined with target, make it map(tofrom:)
17001 instead of no clause or firstprivate.
17003 2021-05-20 Jakub Jelinek <jakub@redhat.com>
17005 PR tree-optimization/94589
17006 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
17007 of integral conversions.
17009 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
17011 * gimple-range.cc (fur_source::get_operand): New.
17012 (gimple_range_fold): Delete.
17013 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
17014 (fold_using_range::range_of_range_op): Move from gimple_ranger.
17015 (fold_using_range::range_of_address): Ditto.
17016 (fold_using_range::range_of_phi): Ditto.
17017 (fold_using_range::range_of_call): Ditto.
17018 (fold_using_range::range_of_builtin_ubsan_call): Move from
17019 range_of_builtin_ubsan_call.
17020 (fold_using_range::range_of_builtin_call): Move from
17021 range_of_builtin_call.
17022 (gimple_ranger::range_of_builtin_call): Delete.
17023 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
17024 (gimple_ranger::fold_range_internal): New.
17025 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
17026 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
17027 gimple_ranger. Improve ranges of SSA_NAMES when possible.
17028 * gimple-range.h (gimple_ranger): Remove various range_of routines.
17029 (class fur_source): New.
17030 (class fold_using_range): New.
17031 (fur_source::fur_source): New.
17033 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
17034 instead of range_of_builtin_call.
17036 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
17038 * doc/cpp.texi (Common Predefined Macros): Update documentation
17039 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
17041 2021-05-19 Alex Coplan <alex.coplan@arm.com>
17044 * config/arm/arm.md (nonsecure_call_internal): Always ensure
17045 callee's address is in a register.
17047 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
17049 * common/config/riscv/riscv-common.c
17050 (riscv_subset_list::parsing_subset_version): Properly parse the letter
17052 (riscv_subset_list::parse_std_ext,
17053 riscv_subset_list::parse_multiletter_ext): To handle errors generated
17054 in riscv_subset_list::parsing_subset_version.
17056 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17058 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
17059 type attribute in patterns generating XTN(2).
17061 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17063 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
17064 Remove as duplicate of...
17065 (aarch64_xtn<mode>): This.
17066 (aarch64_xtn2<mode>_le): Move position in file.
17067 (aarch64_xtn2<mode>_be): Move position in file.
17068 (aarch64_xtn2<mode>): Move position in file.
17069 (vec_pack_trunc_<mode>): Define as an expander.
17071 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17073 * config/aarch64/aarch64-simd-builtins.def: Split builtin
17074 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
17075 separate scalar and vector generators.
17076 * config/aarch64/aarch64-simd.md
17077 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
17079 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
17080 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
17081 * config/aarch64/iterators.md: Define SD_HSDI iterator.
17083 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
17085 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
17087 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
17089 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17091 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
17092 Implement as an expand emitting a big/little endian
17093 instruction pattern.
17094 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
17095 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
17097 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17099 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
17100 Implement as an expand emitting a big/little endian
17101 instruction pattern.
17102 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
17103 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
17104 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
17105 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
17107 2021-05-19 Richard Biener <rguenther@suse.de>
17109 PR middle-end/100672
17110 * fold-const.c (fold_negate_expr_1): Use element_precision.
17111 (negate_expr_p): Likewise.
17113 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
17115 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
17116 (pred_load): New int attribute.
17117 * config/aarch64/aarch64-sve.md
17118 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
17119 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
17120 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
17121 code_for_aarch64_load.
17123 2021-05-19 Richard Biener <rguenther@suse.de>
17125 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
17126 sure TARGET_MEM_REF bases are expanded as memory.
17127 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
17128 Do not mark TARGET_MEM_REF bases addressable.
17129 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
17130 TARGET_MEM_REF bases as never rewritable.
17131 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
17132 walk TARGET_MEM_REF bases as address-takens.
17133 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
17135 2021-05-19 Richard Biener <rguenther@suse.de>
17137 * builtins.c (get_object_alignment_1): Strip outer
17139 * tree-dfa.c (get_ref_base_and_extent): Handle outer
17140 WITH_SIZE_EXPR for size processing and process the
17142 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
17143 outer WITH_SIZE_EXPR.
17144 (ao_ref_base_alias_ptr_type): Likewise.
17145 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
17146 and handle that accordingly, stripping it for the
17147 core alias workers.
17148 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
17149 looking through it instead of returning NULL.
17151 2021-05-19 Jakub Jelinek <jakub@redhat.com>
17153 PR middle-end/100576
17154 * builtins.c (check_read_access): Convert bound to size_type_node if
17157 2021-05-19 Richard Biener <rguenther@suse.de>
17159 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
17160 (verify_types_in_gimple_reference): ... here. Sanitize.
17161 (verify_gimple_call): Verify references in LHS and arguments.
17162 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
17164 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
17166 * config/i386/i386.h (VALID_INT_MODE_P):
17167 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
17168 * config/i386/i386.md (isa): Add x64_bmi.
17169 (enabled): Handle x64_bmi.
17170 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
17171 Add alternative using 64bit general registers.
17172 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
17174 2021-05-19 Jakub Jelinek <jakub@redhat.com>
17176 PR middle-end/99928
17177 * tree.h (OMP_MASTER_COMBINED): Define.
17178 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
17179 handling for outer combined/composite constructs to a loop.
17180 Handle lastprivate on combined target.
17181 (gimplify_expr): Formatting fix.
17183 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
17185 * passes.def: Add sink_code pass before store_merging.
17186 * tree-ssa-sink.c (pass_sink_code:clone): New.
17188 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
17190 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
17191 rs6000_special_adjust_field_align_p.
17192 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17193 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
17194 Remove ABI warning.
17195 (rs6000_function_arg): Likewise.
17196 * config/rs6000/rs6000-protos.h
17197 (rs6000_special_adjust_field_align_p): Remove prototype.
17198 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
17200 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
17201 rs6000_special_adjust_field_align_p.
17203 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
17206 * config/i386/i386.h (VALID_SSE2_REG_MODE):
17207 Add V4QI and V2HI modes.
17208 (VALID_INT_MODE_P): Ditto.
17209 * config/i386/mmx.md (VI_32): New mode iterator.
17210 (mmxvecsize): Handle V4QI and V2HI.
17212 (mov<VI_32:mode>): New expander.
17213 (*mov<mode>_internal): New insn pattern.
17214 (movmisalign<VI_32:mode>): New expander.
17215 (neg<VI_32:mode>): New expander.
17216 (<plusminus:insn><VI_32:mode>3): New expander.
17217 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
17218 (mulv2hi3): New expander.
17219 (*mulv2hi3): New insn pattern.
17220 (one_cmpl<VI_32:mode>2): New expander.
17221 (*andnot<VI_32:mode>3): New insn pattern.
17222 (<any_logic:code><VI_32:mode>3): New expander.
17223 (*<any_logic:code><VI_32:mode>3): New insn pattern.
17225 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
17227 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
17228 Fix a mode mismatch with operand 1.
17230 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
17233 * config/i386/i386-expand.c (split_double_mode): Return
17234 temporary register when simplify_gen_subreg fails with
17235 the high half od the paradoxical subreg.
17237 2021-05-18 Richard Biener <rguenther@suse.de>
17239 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
17240 and honor it when expanding.
17241 (expand_used_vars_for_block): Pass through forced_stack_var.
17242 (expand_used_vars): Likewise.
17243 (discover_nonconstant_array_refs_r): Set bits in
17244 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
17245 (avoid_type_punning_on_regs): Likewise.
17246 (discover_nonconstant_array_refs): Likewise.
17247 (pass_expand::execute): Create and pass down forced_stack_var
17248 bitmap. For parameters and returns temporarily set
17249 TREE_ADDRESSABLE when expand_function_start.
17251 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
17253 * doc/sourcebuild.texi: Document 'dg-note'.
17255 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
17258 * configure: Regenerate.
17259 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
17261 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
17263 * gimple.h (is_gimple_omp_oacc): Tighten.
17264 * omp-low.c (check_omp_nesting_restrictions): Adjust.
17266 2021-05-18 Richard Biener <rguenther@suse.de>
17268 * tree-ssa-operands.c (mark_address_taken): Simplify.
17270 2021-05-18 Martin Liska <mliska@suse.cz>
17272 * config/gcn/mkoffload.c (STR): Redefine.
17273 * config/i386/intelmic-mkoffload.c (STR): Likewise.
17274 * config/nvptx/mkoffload.c (STR): Likewise.
17276 2021-05-18 Martin Liska <mliska@suse.cz>
17278 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
17279 Use startswith function instead of strncmp.
17280 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
17281 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
17282 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
17283 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
17284 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
17285 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
17286 * config/arm/arm.c (arm_file_start): Likewise.
17287 (arm_valid_target_attribute_rec): Likewise.
17288 (thumb1_md_asm_adjust): Likewise.
17289 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
17290 * config/avr/avr.c (STR_PREFIX_P): Likewise.
17291 (avr_set_current_function): Likewise.
17292 (avr_handle_addr_attribute): Likewise.
17293 (avr_asm_output_aligned_decl_common): Likewise.
17294 (avr_asm_named_section): Likewise.
17295 (avr_section_type_flags): Likewise.
17296 (avr_asm_select_section): Likewise.
17297 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
17298 (c6x_section_type_flags): Likewise.
17299 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
17300 (darwin_objc_declare_unresolved_class_reference): Likewise.
17301 (darwin_objc_declare_class_definition): Likewise.
17302 * config/darwin.c (indirect_data): Likewise.
17303 (darwin_encode_section_info): Likewise.
17304 (darwin_objc2_section): Likewise.
17305 (darwin_objc1_section): Likewise.
17306 (machopic_select_section): Likewise.
17307 (darwin_globalize_label): Likewise.
17308 (darwin_label_is_anonymous_local_objc_name): Likewise.
17309 (darwin_asm_named_section): Likewise.
17310 (darwin_asm_output_dwarf_offset): Likewise.
17311 * config/frv/frv.c (frv_string_begins_with): Likewise.
17312 (frv_in_small_data_p): Likewise.
17313 * config/gcn/mkoffload.c (STR): Likewise.
17315 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
17316 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
17317 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
17318 (ix86_md_asm_adjust): Likewise.
17319 * config/i386/intelmic-mkoffload.c (STR): Likewise.
17320 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
17321 (i386_pe_file_end): Likewise.
17322 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
17323 (ia64_section_type_flags): Likewise.
17324 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
17325 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
17326 (mips16_stub_function_p): Likewise.
17327 (mips_function_rodata_section): Likewise.
17328 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
17329 (msp430_function_section): Likewise.
17330 (msp430_section_type_flags): Likewise.
17331 (msp430_expand_helper): Likewise.
17332 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
17333 (nios2_valid_target_attribute_rec): Likewise.
17334 * config/nvptx/mkoffload.c (process): Likewise.
17336 * config/pa/som.h: Likewise.
17337 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
17338 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
17339 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
17340 (rs6000_inner_target_options): Likewise.
17341 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
17342 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
17343 * config/vax/vax.c (vax_output_int_move): Likewise.
17344 * config/vms/vms-ld.c (startswith): Likewise.
17345 (process_args): Likewise.
17347 * config/vms/vms.c: Likewise.
17349 2021-05-18 Jakub Jelinek <jakub@redhat.com>
17351 PR rtl-optimization/100590
17352 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
17353 they are NONJUMP_INSN_P.
17355 2021-05-18 Jakub Jelinek <jakub@redhat.com>
17358 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
17359 DECL_ASSEMBLER_NAME on the fn_decl.
17361 2021-05-18 Jakub Jelinek <jakub@redhat.com>
17363 PR tree-optimization/94589
17364 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
17365 phi result used in (res & ~1) == 0 comparison as res >= 0 as
17366 res == 2 would be UB with -ffinite-math-only.
17368 2021-05-18 Martin Liska <mliska@suse.cz>
17370 * Makefile.in: genversion.o should depend on DATESTAMP.
17372 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
17374 * config/arc/simdext.md (negv2si2): Remove round bracket.
17376 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
17378 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
17379 _Bool as macro expanding to _Bool.
17381 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
17384 * tree.c (build_reference_type_for_mode)
17385 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
17387 (build_reference_type, build_pointer_type): Invoke
17388 build_*_type_for_mode with VOIDmode.
17390 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
17392 PR tree-optimization/100512
17393 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
17394 and non-zero pointer ranges as invariant.
17395 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
17396 processing from here.
17398 2021-05-17 Tom de Vries <tdevries@suse.de>
17401 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
17402 * config/nvptx/nvptx.c (nvptx_output_barrier)
17403 (nvptx_output_atomic_insn): New function.
17404 (nvptx_print_operand): Add support for 'B'.
17405 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
17408 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
17410 PR tree-optimization/100349
17411 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
17414 2021-05-17 Tamar Christina <tamar.christina@arm.com>
17416 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
17417 (host_detect_local_cpu): Use it.
17419 2021-05-17 Martin Liska <mliska@suse.cz>
17421 * doc/invoke.texi: Add 2 missing dots.
17423 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
17425 PR bootstrap/100552
17426 * configure.ac: Replace pattern substitution with call to sed.
17427 * configure: Regenerate.
17429 2021-05-17 Richard Biener <rguenther@suse.de>
17431 PR middle-end/100582
17432 * tree.c (array_at_struct_end_p): Get to the base of the
17433 reference before looking for the underlying decl.
17435 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
17437 * genoutput.c (validate_insn_alternatives) Make "wrong number of
17438 alternatives" message more specific, and remove assumption on where
17441 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
17443 * config/arm/iterators.md (V16): New iterator.
17444 (VH_cvtto): New iterator.
17445 (v_cmp_result): Added V4HF and V8HF support.
17446 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
17447 (vcond<mode><mode>): Likewise.
17448 (vcond_mask_<mode><v_cmp_result>): Likewise.
17449 (vcond<VH_cvtto><mode>): New expander.
17451 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
17453 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
17455 * config/arm/arm.c (arm_expand_vector_compare): Add support for
17457 (arm_expand_vcond): Likewise.
17458 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
17459 VCMPEQQ_N_S, VCMPNEQ_N_S.
17460 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
17461 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
17462 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
17463 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
17464 (@mve_vpselq_<supf><mode>): Likewise.
17465 (@mve_vpselq_f<mode>"): Likewise.
17466 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
17467 and move to vec-common.md.
17468 (vec_cmpu<mode><mode>): Likewise.
17469 (vcond<mode><mode>): Likewise.
17470 (vcond<V_cvtto><mode>): Likewise.
17471 (vcondu<mode><v_cmp_result>): Likewise.
17472 (vcond_mask_<mode><v_cmp_result>): Likewise.
17473 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
17474 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
17475 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
17476 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
17477 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
17478 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
17480 (vec_cmpu<mode><mode>): Likewise.
17481 (vcond<mode><mode>): Likewise.
17482 (vcond<V_cvtto><mode>): Likewise.
17483 (vcondu<mode><v_cmp_result>): Likewise.
17484 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
17487 2021-05-17 liuhongt <hongtao.liu@intel.com>
17490 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
17491 gsi_insert_seq_before instead.
17493 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
17495 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
17496 (arm_sat_ok): ...this.
17498 2021-05-17 Martin Liska <mliska@suse.cz>
17500 * lto-wrapper.c (merge_flto_options): Factor out a new function.
17501 (merge_and_complain): Use it.
17502 (run_gcc): Merge also linker command line -flto=foo argument
17505 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
17507 * config/arm/arm.h (CPP_SPEC): Remove error message about
17508 -mlittle-endian/-mbig-endian conflict.
17510 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
17512 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
17513 __ROP_PROTECT__ if -mrop-protect is selected.
17515 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
17517 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
17518 rop_hash_save_offset and rop_hash_size.
17519 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
17520 rop_hash_size and rop_hash_save_offset.
17521 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
17522 (rs6000_emit_prologue): Emit hashst[p] in prologue.
17523 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
17524 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
17526 (hashst): New define_insn.
17527 (hashchk): Likewise.
17529 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
17531 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17532 Disable shrink wrap when inserting ROP-protect instructions.
17533 * config/rs6000/rs6000.opt (mrop-protect): New option.
17534 (mprivileged): Likewise.
17535 * doc/invoke.texi: Document mrop-protect and mprivileged.
17537 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
17539 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
17542 2021-05-15 Martin Jambor <mjambor@suse.cz>
17545 2021-05-13 Martin Jambor <mjambor@suse.cz>
17547 PR tree-optimization/100453
17548 * tree-sra.c (sra_modify_assign): All const base accesses do not
17549 need refreshing, not just those from decl_pool.
17550 (sra_modify_assign): Do not refresh into a const base decl.
17552 2021-05-15 Jakub Jelinek <jakub@redhat.com>
17554 PR rtl-optimization/100342
17555 * regcprop.c (copy_value): When copying a source reg in a wider
17556 mode than it has recorded for the value, adjust recorded destination
17557 mode too or punt if !REG_CAN_CHANGE_MODE_P.
17559 2021-05-14 Jason Merrill <jason@redhat.com>
17561 * intl.h: Add comments.
17563 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17565 * config/aarch64/aarch64-simd.md
17566 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
17567 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
17568 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
17569 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
17570 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
17571 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
17572 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
17573 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
17574 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
17576 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17579 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
17580 boolean logic equivalent.
17581 (vtst_s16): Likewise.
17582 (vtst_s32): Likewise.
17583 (vtst_u8): Likewise.
17584 (vtst_u16): Likewise.
17585 (vtst_u32): Likewise.
17586 (vtst_p8): Likewise.
17587 (vtst_p16): Likewise.
17588 (vtstq_s8): Likewise.
17589 (vtstq_s16): Likewise.
17590 (vtstq_s32): Likewise.
17591 (vtstq_u8): Likewise.
17592 (vtstq_u16): Likewise.
17593 (vtstq_u32): Likewise.
17594 (vtstq_p8): Likewise.
17595 (vtstq_p16): Likewise.
17596 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
17597 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
17599 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17601 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
17602 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
17603 (aarch64_sqdmlsl2<mode>): Delete.
17604 (aarch64_sqdmlal2_lane<mode>): Merge this...
17605 (aarch64_sqdmlsl2_lane<mode>): ... And this...
17606 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
17607 (aarch64_sqdmlal2_laneq<mode>): Merge this...
17608 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
17609 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
17610 (aarch64_sqdmlal2_n<mode>): Merge this...
17611 (aarch64_sqdmlsl2_n<mode>): ... And this...
17612 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
17614 2021-05-13 Martin Sebor <msebor@redhat.com>
17616 PR middle-end/100574
17617 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
17618 all null arguments.
17620 2021-05-13 Martin Sebor <msebor@redhat.com>
17622 PR tree-optimization/93100
17623 PR middle-end/98583
17624 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
17625 don't modify referenced objects.
17627 2021-05-13 Martin Jambor <mjambor@suse.cz>
17629 PR tree-optimization/100453
17630 * tree-sra.c (sra_modify_assign): All const base accesses do not
17631 need refreshing, not just those from decl_pool.
17632 (sra_modify_assign): Do not refresh into a const base decl.
17634 2021-05-13 Martin Liska <mliska@suse.cz>
17636 * tree-ssa-dom.c: Remove m_simplifier.
17638 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
17641 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
17642 canonicalize DImode inequality comparisons against the
17643 maximum integral value.
17645 2021-05-13 Jakub Jelinek <jakub@redhat.com>
17647 PR tree-optimization/98856
17648 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
17649 Expect V2DI and V4DI arithmetic right shifts to be emulated.
17650 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
17652 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
17653 expand_vec_perm_2perm_pblendv): New functions.
17654 (ix86_expand_vec_perm_const_1): Use them.
17655 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
17656 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
17657 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
17658 (ashrv4di3): New define_expand.
17659 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
17660 and !TARGET_AVX512VL expansion.
17662 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
17665 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
17666 sizes < 16 to a register when constructing vpcmov pattern.
17667 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
17669 2021-05-13 Martin Liska <mliska@suse.cz>
17671 * gcov-io.c (gcov_write_block): Remove.
17672 (gcov_write_words): Likewise.
17673 (gcov_read_words): Re-implement using gcov_read_bytes.
17674 (gcov_allocate): Remove.
17675 (GCOV_BLOCK_SIZE): Likewise.
17676 (struct gcov_var): Remove most of the fields.
17677 (gcov_position): Implement with ftell.
17678 (gcov_rewrite): Remove setting of start and offset fields.
17679 (from_file): Re-format.
17680 (gcov_open): Remove setbuf call. It should not be needed.
17681 (gcov_close): Remove internal buffer handling.
17682 (gcov_magic): Use __builtin_bswap32.
17683 (gcov_write_counter): Use directly gcov_write_unsigned.
17684 (gcov_write_string): Use direct fwrite and do not round
17686 (gcov_seek): Use directly fseek.
17687 (gcov_write_tag): Use gcov_write_unsigned directly.
17688 (gcov_write_length): Likewise.
17689 (gcov_write_tag_length): Likewise.
17690 (gcov_read_bytes): Use directly fread.
17691 (gcov_read_unsigned): Use gcov_read_words.
17692 (gcov_read_counter): Likewise.
17693 (gcov_read_string): Use gcov_read_bytes.
17694 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
17695 that size is not in bytes, but words (4B).
17696 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
17697 (GCOV_TAG_ARCS_LENGTH): Likewise.
17698 (GCOV_TAG_ARCS_NUM): Likewise.
17699 (GCOV_TAG_COUNTER_LENGTH): Likewise.
17700 (GCOV_TAG_COUNTER_NUM): Likewise.
17701 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
17703 2021-05-13 liuhongt <hongtao.liu@intel.com>
17706 * config/i386/sse.md (ssedoublevecmode): Add attribute for
17707 V64QI/V32HI/V16SI/V4DI.
17708 (ssehalfvecmode): Add attribute for V2DI/V2DF.
17709 (*vec_concatv4si_0): Extend to VI124_128.
17710 (*vec_concat<mode>_0): New pre-reload splitter.
17711 * config/i386/predicates.md (movq_parallel): New predicate.
17713 2021-05-13 Alexandre Oliva <oliva@adacore.com>
17715 * targhooks.c (default_zero_call_used_regs): Retry using
17716 successfully-zeroed registers as sources.
17718 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
17720 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
17722 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
17725 * gimple-range.cc (range_of_builtin_call): Skip out on
17726 processing __builtin_clz when varying.
17728 2021-05-12 Tom de Vries <tdevries@suse.de>
17731 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
17732 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
17733 to ptx_version_option.
17734 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
17735 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
17736 (define_insn "nvptx_vote_ballot"): Use sync variant for
17738 * config/nvptx/nvptx.opt (ptx_version): Add enum.
17739 (mptx): Add option.
17740 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
17742 2021-05-12 Richard Biener <rguenther@suse.de>
17744 PR tree-optimization/100566
17745 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
17746 allow_back for all edge queries.
17748 2021-05-12 liuhongt <hongtao.liu@intel.com>
17751 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
17752 splitters for pblendvb of NOT mask register.
17754 2021-05-12 Richard Biener <rguenther@suse.de>
17756 PR tree-optimization/100519
17757 * tree-ssa-reassoc.c (can_associate_p): Split into...
17758 (can_associate_op_p): ... this
17759 (can_associate_type_p): ... and this.
17760 (is_reassociable_op): Call can_associate_op_p.
17761 (break_up_subtract_bb): Call the appropriate predicates.
17762 (reassociate_bb): Likewise.
17764 2021-05-12 Martin Liska <mliska@suse.cz>
17766 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
17767 (run_gcc): Use -flto argument detection for merged
17770 2021-05-12 Martin Liska <mliska@suse.cz>
17772 * lto-wrapper.c (print_lto_docs_link): New function.
17773 (run_gcc): Print warning about missing job server detection
17774 after we know NR of partitions. Do the same for -flto{,=1}.
17775 * opts.c (get_option_html_page): Support -flto option.
17777 2021-05-12 Martin Liska <mliska@suse.cz>
17779 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
17781 (append_option): Remove.
17782 (find_option): Rework to use the vector type.
17783 (remove_option): Remove.
17784 (merge_and_complain): Use vectors for cl_decoded_option data
17786 (append_compiler_options): Likewise.
17787 (append_diag_options): Likewise.
17788 (append_linker_options): Likewise.
17789 (append_offload_options): Likewise.
17790 (compile_offload_image): Likewise.
17791 (compile_images_for_offload_targets): Likewise.
17792 (find_and_merge_options): Likewise.
17793 (run_gcc): Likewise.
17795 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
17798 * dwarf2out.c (dwarf2out_finish): Set
17799 have_multiple_function_sections with multi-range text_section.
17801 2021-05-12 Martin Liska <mliska@suse.cz>
17803 PR bootstrap/100560
17804 * Makefile.in: Remove version.h from linker command line.
17806 2021-05-12 Richard Biener <rguenther@suse.de>
17808 PR middle-end/100547
17809 * rtl.h (rtvec_alloc): Make argument size_t.
17810 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
17812 2021-05-12 Jakub Jelinek <jakub@redhat.com>
17814 PR middle-end/100508
17815 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
17816 type, don't reuse DECL_RTL if it has different mode, instead force
17817 creation of a new DEBUG_EXPR.
17819 2021-05-12 Jakub Jelinek <jakub@redhat.com>
17820 Marc Glisse <marc.glisse@inria.fr>
17822 PR tree-optimization/94589
17823 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
17824 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
17826 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
17829 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
17830 * config/i386/mmx.md (MMXMODE124): New mode iterator.
17832 (mmxintvecmode): New mode attribute.
17833 (mmxintvecmodelower): Ditto.
17834 (*mmx_maskcmpv2sf3_comm): New insn pattern.
17835 (*mmx_maskcmpv2sf3): Ditto.
17836 (vec_cmpv2sfv2si): New expander.
17837 (vcond<V2FI:mode>v2si): Ditto.
17838 (mmx_vlendvps): New insn pattern.
17839 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
17840 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
17841 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
17843 2021-05-11 Martin Sebor <msebor@redhat.com>
17845 PR middle-end/21433
17846 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
17848 2021-05-11 Richard Biener <rguenther@suse.de>
17850 * gimple-fold.c (gimple_fold_call): Do not call
17851 maybe_fold_reference on call arguments or the static chain.
17852 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
17855 2021-05-11 Martin Liska <mliska@suse.cz>
17857 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
17858 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
17859 (DEF_HSAIL_SAT_BUILTIN): Likewise.
17860 (DEF_HSAIL_INTR_BUILTIN): Likewise.
17861 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
17862 * doc/frontends.texi: Remove BRIG.
17863 * doc/install.texi: Likewise.
17864 * doc/invoke.texi: Likewise.
17865 * doc/standards.texi: Likewise.
17866 * brig-builtins.def: Removed.
17867 * brig/ChangeLog: Removed.
17868 * brig/Make-lang.in: Removed.
17869 * brig/brig-builtins.h: Removed.
17870 * brig/brig-c.h: Removed.
17871 * brig/brig-lang.c: Removed.
17872 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
17873 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
17874 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
17875 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
17876 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
17877 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
17878 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
17879 * brig/brigfrontend/brig-comment-handler.cc: Removed.
17880 * brig/brigfrontend/brig-control-handler.cc: Removed.
17881 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
17882 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
17883 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
17884 * brig/brigfrontend/brig-function-handler.cc: Removed.
17885 * brig/brigfrontend/brig-function.cc: Removed.
17886 * brig/brigfrontend/brig-function.h: Removed.
17887 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
17888 * brig/brigfrontend/brig-label-handler.cc: Removed.
17889 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
17890 * brig/brigfrontend/brig-machine.c: Removed.
17891 * brig/brigfrontend/brig-machine.h: Removed.
17892 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
17893 * brig/brigfrontend/brig-module-handler.cc: Removed.
17894 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
17895 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
17896 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
17897 * brig/brigfrontend/brig-to-generic.cc: Removed.
17898 * brig/brigfrontend/brig-to-generic.h: Removed.
17899 * brig/brigfrontend/brig-util.cc: Removed.
17900 * brig/brigfrontend/brig-util.h: Removed.
17901 * brig/brigfrontend/brig-variable-handler.cc: Removed.
17902 * brig/brigfrontend/hsa-brig-format.h: Removed.
17903 * brig/brigfrontend/phsa.h: Removed.
17904 * brig/brigspec.c: Removed.
17905 * brig/config-lang.in: Removed.
17906 * brig/gccbrig.texi: Removed.
17907 * brig/lang-specs.h: Removed.
17908 * brig/lang.opt: Removed.
17910 2021-05-11 Richard Biener <rguenther@suse.de>
17913 * ipa-param-manipulation.c
17914 (ipa_param_body_adjustments::modify_call_stmt): Avoid
17915 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
17916 via gimple_call_lhs_ptr.
17918 2021-05-11 Alex Coplan <alex.coplan@arm.com>
17921 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
17922 Avoid emitting CFA adjusts on the sp if we have the fp.
17924 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
17926 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
17927 (VMULD): New iterator.
17928 (VCOND): Handle V4HF and V8HF.
17929 (VCONQ): Fix entry for V2SF.
17930 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
17931 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
17932 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
17933 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
17934 Use a 128-bit vector mode for the indexed operand. Use stype for
17935 the scheduling type.
17937 2021-05-11 Richard Biener <rguenther@suse.de>
17939 * gimple-fold.c (maybe_fold_reference): Only return
17940 is_gimple_min_invariant values.
17942 2021-05-11 Richard Biener <rguenther@suse.de>
17944 PR middle-end/100509
17945 * gimple-fold.c (fold_gimple_assign): Only call
17946 get_symbol_constant_value on register type symbols.
17948 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17949 Joe Ramsay <joe.ramsay@arm.com>
17952 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
17953 (__arm_vcmpneq): Remove duplicate definition.
17954 (__arm_vstrwq_scatter_offset_p): Likewise.
17955 (__arm_vmaxq_x): Likewise.
17956 (__arm_vmlsdavaq): Likewise.
17957 (__arm_vmlsdavaxq): Likewise.
17958 (__arm_vmlsdavq_p): Likewise.
17959 (__arm_vmlsdavxq_p): Likewise.
17960 (__arm_vrmlaldavhaq): Likewise.
17961 (__arm_vstrbq_p): Likewise.
17962 (__arm_vstrbq_scatter_offset): Likewise.
17963 (__arm_vstrbq_scatter_offset_p): Likewise.
17964 (__arm_vstrdq_scatter_offset): Likewise.
17965 (__arm_vstrdq_scatter_offset_p): Likewise.
17966 (__arm_vstrdq_scatter_shifted_offset): Likewise.
17967 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
17969 2021-05-11 Jakub Jelinek <jakub@redhat.com>
17971 PR middle-end/100471
17972 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
17973 is 0, bypass the reduction loop including
17974 GOMP_taskgroup_reduction_unregister call.
17976 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
17978 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
17979 costing_for_scalar.
17980 (rs6000_density_test): Early return if costing_for_scalar is true.
17981 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
17983 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
17985 * doc/tm.texi: Regenerated.
17986 * target.def (init_cost): Add new parameter costing_for_scalar.
17987 * targhooks.c (default_init_cost): Adjust for new parameter.
17988 * targhooks.h (default_init_cost): Likewise.
17989 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
17990 (vect_compute_single_scalar_iteration_cost): Likewise.
17991 (vect_analyze_loop_2): Likewise.
17992 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
17993 (vect_bb_vectorization_profitable_p): Likewise.
17994 * tree-vectorizer.h (init_cost): Likewise.
17995 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
17996 * config/i386/i386.c (ix86_init_cost): Likewise.
17997 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
17999 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
18001 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
18002 vect_nonmem and moved into...
18003 (struct rs6000_cost_data): ...here.
18004 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
18005 (rs6000_add_stmt_cost): Likewise.
18006 (rs6000_finish_cost): Likewise.
18008 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
18010 * range-op.cc (get_bool_state): Adjust head comment.
18011 (operator_not_equal::op1_range): Fix comment.
18012 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
18014 2021-05-10 Martin Sebor <msebor@redhat.com>
18016 PR middle-end/100425
18017 PR middle-end/100510
18018 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
18019 (pass_walloca::xlimit_certain_p): ...to this.
18020 (pass_walloca::gate): Execute for any kind of handled warning.
18021 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
18022 warnings when xlimit_certain_p is set.
18024 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
18026 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
18027 Return ALTIVEC_REGS if that is best_class.
18028 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
18030 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18032 * config/arm/arm.h (CPP_SPEC): Remove error message about
18035 2021-05-10 Martin Jambor <mjambor@suse.cz>
18037 * ipa-prop.h (IPA_NODE_REF): Removed.
18038 (IPA_NODE_REF_GET_CREATE): Likewise.
18039 (IPA_EDGE_REF): Likewise.
18040 (IPA_EDGE_REF_GET_CREATE): Likewise.
18041 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
18042 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
18043 use of ipa_node_params_sum.
18044 (ipcp_versionable_function_p): Likewise.
18045 (push_node_to_stack): Likewise.
18046 (pop_node_from_stack): Likewise.
18047 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
18048 direct use of ipa_node_params_sum.
18049 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
18050 ipa_node_params_sum.
18051 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
18053 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
18054 use of ipa_node_params_sum.
18055 (self_recursively_generated_p): Likewise.
18056 (propagate_scalar_across_jump_function): Likewise.
18057 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
18058 direct use of ipa_edge_args_sum, moved the lookup after the early
18059 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
18060 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
18061 direct uses of ipa_node_params_sum.
18062 (propagate_vr_across_jump_function): Likewise.
18063 (propagate_aggregate_lattice): Likewise.
18064 (propagate_aggs_across_jump_function): Likewise.
18065 (propagate_constants_across_call): Likewise, also replaced
18066 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
18067 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
18068 of ipa_node_params_sum.
18069 (estimate_local_effects): Likewise.
18070 (add_all_node_vals_to_toposort): Likewise.
18071 (propagate_constants_topo): Likewise.
18072 (ipcp_propagate_stage): Likewise.
18073 (ipcp_discover_new_direct_edges): Likewise.
18074 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
18075 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
18076 (get_info_about_necessary_edges): Likewise.
18077 (want_remove_some_param_p): Likewise.
18078 (create_specialized_node): Likewise.
18079 (self_recursive_pass_through_p): Likewise.
18080 (self_recursive_agg_pass_through_p): Likewise.
18081 (find_more_scalar_values_for_callers_subset): Likewise and also
18082 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
18083 case replacing two of those with a single query.
18084 (find_more_contexts_for_caller_subset): Likewise for the
18085 ipa_polymorphic_call_context overload.
18086 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
18087 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
18088 ipa_node_params_sum.
18089 (find_aggregate_values_for_callers_subset): Likewise, also reusing
18090 results of ipa_edge_args_sum->get.
18091 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
18092 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
18093 direct use of ipa_edge_args_sum.
18094 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
18095 summary query after the early exit and reused the result later.
18096 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
18097 ipa_node_params_sum.
18098 (decide_whether_version_node): Likewise. Removed re-querying for
18099 summaries after cloning.
18100 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
18101 ipa_node_params_sum.
18102 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
18104 (identify_dead_nodes): Likewise.
18105 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
18106 ipa_node_params_sum.
18107 (ipcp_store_vr_results): Likewise.
18108 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
18109 (ipa_fn_summary_t::duplicate): Likewise.
18110 (analyze_function_body): Likewise.
18111 (estimate_calls_size_and_time): Likewise.
18112 (ipa_cached_call_context::duplicate_from): Likewise.
18113 (ipa_call_context::equal_to): Likewise.
18114 (remap_edge_params): Likewise.
18115 (ipa_merge_fn_summary_after_inlining): Likewise.
18116 (inline_read_section): Likewise.
18117 * ipa-icf.c (sem_function::param_used_p): Likewise.
18118 * ipa-modref.c (compute_parm_map): Likewise.
18119 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
18121 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
18122 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
18124 * ipa-profile.c (check_argument_count): Likewise.
18125 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
18126 with a direct use of ipa_node_params_sum.
18127 (ipa_initialize_node_params): Likewise.
18128 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
18129 direct use of ipa_edge_args_sum and reused the query result.
18130 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
18131 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
18132 direct use of ipa_edge_args_sum.
18133 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
18134 ipa_node_params_sum and reused the result of the query.
18135 (ipa_analyze_node): Likewise.
18136 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
18137 of ipa_node_params_sum.
18138 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
18139 direct uses of ipa_edge_args_sum.
18140 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
18141 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
18142 direct use of ipa_edge_args_sum. Removed superficial re-querying the
18144 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
18145 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
18147 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
18148 direct use of ipa_edge_args_sum.
18149 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
18150 use of ipa_node_params_sum.
18151 (ipa_print_node_params): Likewise.
18152 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
18153 direct uses of ipa_edge_args_sum.
18154 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
18156 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
18157 ipa_node_params_sum.
18158 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
18159 scopes where it is used.
18161 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
18163 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
18164 <case E_V2SImode>: Force op_true to register.
18166 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18168 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
18169 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
18170 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
18172 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
18173 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
18174 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
18175 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
18176 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
18177 (mve_vcmpneq_n_f<mode>): Remove.
18178 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
18179 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
18180 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
18182 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18184 * config/arm/iterators.md (MVE_COMPARISONS): New.
18186 (mve_cmp_type): New.
18187 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
18189 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
18190 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
18191 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
18192 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
18193 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
18194 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
18195 (mve_vcmpneq_n_<mode>): Remove.
18197 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18199 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
18200 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
18201 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
18204 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18206 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
18207 (vcmpneq_n_u): Likewise.
18208 (vcmpeqq_u,): Likewise.
18209 (vcmpeqq_n_u): Likewise.
18210 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
18211 VCMPEQQ_N_U and VCMPNEQ_N_U.
18212 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
18213 (mve_vcmpeqq_n): Likewise.
18214 (mve_vcmpeqq): Likewise.
18215 (mve_vcmpneq_n): Likewise.
18217 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18219 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
18220 the 's' version of the builtin.
18222 2021-05-10 Richard Biener <rguenther@suse.de>
18224 PR tree-optimization/100492
18225 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
18226 Find nothing when the loop contains an irreducible region.
18228 2021-05-10 Richard Biener <rguenther@suse.de>
18230 PR middle-end/100464
18232 * gimple-fold.c (canonicalize_constructor_val): Do not set
18235 2021-05-10 Richard Biener <rguenther@suse.de>
18237 PR tree-optimization/100434
18238 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18240 (dse_optimize_stmt): Handle call LHS by dropping the
18241 LHS or the whole call if it doesn't have other
18243 (pass_dse::execute): Adjust.
18245 2021-05-10 Martin Liska <mliska@suse.cz>
18247 * Makefile.in: Add missing genversion rule.
18249 2021-05-10 Alex Coplan <alex.coplan@arm.com>
18252 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
18253 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
18255 2021-05-10 Martin Liska <mliska@suse.cz>
18257 * builtins.c (is_builtin_name): Use startswith
18258 function instead of strncmp.
18259 * collect2.c (main): Likewise.
18260 (has_lto_section): Likewise.
18261 (scan_libraries): Likewise.
18262 * coverage.c (coverage_checksum_string): Likewise.
18263 (coverage_init): Likewise.
18264 * dwarf2out.c (is_cxx): Likewise.
18265 (gen_compile_unit_die): Likewise.
18266 * gcc-ar.c (main): Likewise.
18267 * gcc.c (init_spec): Likewise.
18268 (read_specs): Likewise.
18269 (execute): Likewise.
18270 (check_live_switch): Likewise.
18271 * genattrtab.c (write_attr_case): Likewise.
18272 (IS_ATTR_GROUP): Likewise.
18273 * gencfn-macros.c (main): Likewise.
18274 * gengtype.c (type_for_name): Likewise.
18275 (gen_rtx_next): Likewise.
18276 (get_file_langdir): Likewise.
18277 (write_local): Likewise.
18278 * genmatch.c (get_operator): Likewise.
18279 (get_operand_type): Likewise.
18280 (expr::gen_transform): Likewise.
18281 * genoutput.c (validate_optab_operands): Likewise.
18282 * incpath.c (add_sysroot_to_chain): Likewise.
18283 * langhooks.c (lang_GNU_C): Likewise.
18284 (lang_GNU_CXX): Likewise.
18285 (lang_GNU_Fortran): Likewise.
18286 (lang_GNU_OBJC): Likewise.
18287 * lto-wrapper.c (run_gcc): Likewise.
18288 * omp-general.c (omp_max_simt_vf): Likewise.
18289 * omp-low.c (omp_runtime_api_call): Likewise.
18290 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
18291 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
18292 * real.c (real_from_string): Likewise.
18293 * selftest.c (assert_str_startswith): Likewise.
18294 * timevar.c (timer::validate_phases): Likewise.
18295 * tree.c (get_file_function_name): Likewise.
18296 * ubsan.c (ubsan_use_new_style_p): Likewise.
18297 * varasm.c (default_function_rodata_section): Likewise.
18298 (incorporeal_function_p): Likewise.
18299 (default_section_type_flags): Likewise.
18300 * system.h (startswith): Define startswith.
18302 2021-05-10 Martin Liska <mliska@suse.cz>
18304 * bitmap.h (class auto_bitmap): Remove
18305 __cplusplus >= 201103.
18306 * config/aarch64/aarch64.c: Likewise.
18307 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
18309 * sbitmap.h: Likewise.
18311 2021-05-10 Martin Liska <mliska@suse.cz>
18313 * Makefile.in: Rename gcov-iov to genversion and depend
18314 on version.h (instead of gcov-iov.h).
18315 * gcov-io.h: Include version.h instread of gcov-iov.h.
18316 * gengtype-state.c (read_state_version): Likewise.
18317 * gcov-iov.c: Moved to...
18318 * genversion.c: ...here.
18319 * lto-streamer.h (LTO_major_version): Define it with
18321 * version.c: Removed.
18322 * version.h: Removed.
18324 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
18326 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
18327 * config/arc/simdext.md (VCT): Add predicates for iterator
18330 (voptab): Likewise.
18331 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
18332 (<voptab>v2si3): New patterns.
18334 (reduc_plus_scal_v4hi): Likewise.
18335 (reduc_plus_scal_v2si): Likewise.
18336 (vec_duplicatev2si): Likewise.
18337 (vec_duplicatev4hi): Likewise.
18339 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
18341 * config/arc/simdext.md: Format and cleanup file.
18343 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
18345 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
18346 only when munaligned-access option is on.
18347 (movmisalign<mode>): Likewise.
18349 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
18351 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
18353 * config/arc/arc.c (arc_reorg): Remove underscore from string.
18355 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
18357 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
18358 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
18359 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
18360 (norm_f): Likewise.
18363 (clzsi2): Use fls instruction when available.
18364 (arc_clzsi2): Likewise.
18366 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
18368 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
18370 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
18372 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
18374 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
18376 PR middle-end/100467
18377 * toplev.c (compile_file): Call insn_locations_init before
18378 targetm.asm_out.code_end.
18380 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
18383 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
18385 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
18387 2021-05-07 Jakub Jelinek <jakub@redhat.com>
18388 Andrew Stubbs <amd@codesourcery.com>
18391 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
18392 emit_move_insn operands.
18394 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
18396 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
18397 location for the outgoing edges of an empty block.
18398 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
18399 type by means of the get_array_descr_info langhook, if it is set and
18400 returns true. Remove obsolete code dealing with unnamed subtypes.
18402 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
18404 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
18405 (sbr_vector): Renamed from ssa_block_cache.
18406 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
18407 (ssa_block_ranges::~ssa_block_ranges): Remove.
18408 (sbr_vector::set_bb_range): Use varying and undefined cached values.
18409 (ssa_block_ranges::set_bb_varying): Remove.
18410 (sbr_vector::get_bb_range): Adjust assert.
18411 (sbr_vector::bb_range_p): Adjust assert.
18412 (~block_range_cache): No freeing loop required.
18413 (block_range_cache::get_block_ranges): Remove.
18414 (block_range_cache::set_bb_range): Inline get_block_ranges.
18415 (block_range_cache::set_bb_varying): Remove.
18416 * gimple-range-cache.h (set_bb_varying): Remove prototype.
18417 * value-range.h (irange_allocator::get_memory): New.
18419 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
18421 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
18422 dominator tree is available and requested.
18423 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
18424 (ranger_cache::fill_block_cache): Don't search dom tree here either.
18425 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
18427 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
18429 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
18430 only PHI nodes better.
18432 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
18434 * gimple-range-edge.h (gimple_outgoing_range): Rename from
18436 (gcond_edge_range): Export prototype.
18437 * gimple-range-edge.cc (gcond_edge_range): New.
18438 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
18439 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
18441 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
18443 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
18444 default range into a temp and allocate only what is needed.
18446 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
18448 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
18450 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
18452 * gimple-range.h (gimple_range_global): Pick up parameter initial
18453 values, and use-before defined locals are UNDEFINED.
18455 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
18457 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
18459 * tree.h (reverse_storage_order_for_component_p): Return false if
18460 the type is a pointer.
18462 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
18464 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
18466 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
18469 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
18470 Handle V8QI, V4HI and V2SI modes.
18471 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
18472 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
18473 * config/i386/i386.md (unspec): ... here.
18475 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
18476 Tom de Vries <tdevries@suse.de>
18478 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
18479 a truth_value_p reduction variable is nonintegral.
18481 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
18484 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
18485 Return false for mode sizes < 16.
18487 2021-05-07 Jakub Jelinek <jakub@redhat.com>
18490 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
18492 2021-05-06 Martin Jambor <mjambor@suse.cz>
18494 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
18495 when there is no function summary.
18496 (ipa_sra_summarize_function): produce edge summaries even when
18499 2021-05-06 Tom Tromey <tom@tromey.com>
18501 * godump.c (string_hash_eq): Remove.
18502 (go_finish): Use htab_eq_string.
18504 2021-05-06 Tom Tromey <tom@tromey.com>
18506 * gengtype-state.c (read_state): Use htab_eq_string.
18507 (string_eq): Remove.
18509 2021-05-06 Tom Tromey <tom@tromey.com>
18511 * gensupport.c (htab_eq_string): Remove.
18513 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
18516 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
18517 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
18518 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
18519 set_ignored_loc callbacks.
18520 * debug.c (do_nothing_debug_hooks): Likewise.
18521 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18522 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
18523 (in_text_section_p, last_text_label, last_cold_label,
18524 switch_text_ranges, switch_cold_ranges): New data items.
18525 (dwarf2out_note_section_used): Remove.
18526 (dwarf2out_begin_prologue): Set fde->ignored_debug and
18528 (mark_ignored_debug_section): New helper function.
18529 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
18530 mark_ignored_debug_section.
18531 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
18532 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
18533 (size_of_aranges): Adjust formula for multi-part text ranges size.
18534 (output_aranges): Output multi-part text ranges.
18535 (dwarf2out_set_ignored_loc): New callback function.
18536 (dwarf2out_finish): Output multi-part text ranges.
18537 (dwarf2out_c_finalize): Clear new data items.
18538 * final.c (final_start_function_1): Call set_ignored_loc callback.
18539 (final_scan_insn_1): Likewise.
18540 * ggc-page.c (gt_ggc_mx): New helper function.
18541 * stringpool.c (gt_pch_nx): Likewise.
18543 2021-05-06 Richard Biener <rguenther@suse.de>
18545 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
18546 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
18547 (TV_TREE_INTO_SSA): New.
18548 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
18549 (rewrite_blocks): Likewise.
18550 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
18552 2021-05-06 Jakub Jelinek <jakub@redhat.com>
18554 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
18555 abs_replacement, xor_replacement,
18556 cond_removal_in_popcount_clz_ctz_pattern,
18557 replace_phi_edge_with_variable): Change type of phi argument from
18558 gimple * to gphi *.
18560 2021-05-06 Richard Biener <rguenther@suse.de>
18562 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
18563 Output an opt-info message.
18564 (do_split_loop_on_cond): Likewise.
18565 (tree_ssa_split_loops): Update SSA form here.
18567 2021-05-06 Richard Biener <rguenther@suse.de>
18569 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
18570 return variable removal.
18572 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
18574 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
18575 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
18576 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
18578 * config/s390/s390.c (s390_const_operand_ok): Remove unused
18581 2021-05-06 Jakub Jelinek <jakub@redhat.com>
18583 PR tree-optimization/94589
18584 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
18585 spaceship_replacement.
18586 (cond_only_block_p, spaceship_replacement): New functions.
18588 2021-05-06 Richard Biener <rguenther@suse.de>
18591 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
18592 dealing with a debug use and only query existing addresses
18594 (lower_emutls_1): Avoid splitting out addresses for debug
18595 stmts, reset the debug stmt when we fail to find existing
18597 (lower_emutls_phi_arg): Set wi.stmt.
18599 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
18602 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
18603 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
18604 (stack_protect_test): Use cbranch helper.
18606 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
18609 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
18610 always return the establisher frame for __builtin_frame_address (0).
18612 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
18615 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
18616 (ix86_cpu_model_var): Likewise.
18617 (ix86_cpu_features2_type_node): Likewise.
18618 (ix86_cpu_features2_var): Likewise.
18619 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
18622 2021-05-05 Martin Sebor <msebor@redhat.com>
18624 * passes.def (pass_warn_printf): Run after SSA.
18626 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18628 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
18629 * config/arm/predicates.md (minus_one_operand): New predicate.
18631 2021-05-05 Jeff Law <jlaw@tachyum.com>
18633 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
18635 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
18637 PR rtl-optimization/100263
18638 * postreload.c (move2add_valid_value_p): Ensure register can
18641 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
18643 PR rtl-optimization/100411
18644 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
18645 and beginning of function markers.
18647 2021-05-05 Jeff Law <jlaw@tachyum.com>
18649 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
18650 * config/cr16/cr16.c (notice_update_cc): Remove.
18651 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
18653 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
18656 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
18657 Handle V8QI, V4HI and V2SI modes.
18658 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
18659 (ix86_build_signbit_mask): Ditto.
18660 * config/i386/mmx.md (MMXMODE14): New mode iterator.
18661 (<smaxmin:code><MMXMODE14:mode>3): New expander.
18662 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
18663 (<umaxmin:code><MMXMODE24:mode>3): New expander.
18664 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
18665 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
18666 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
18667 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
18668 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
18669 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
18671 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
18673 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
18674 not expand the VALUE_EXPR of variables put in the non-local frame.
18675 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
18676 to be ignored for debug info, ensure its variable offsets are not.
18678 2021-05-05 Richard Biener <rguenther@suse.de>
18680 PR tree-optimization/79333
18681 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
18682 Fold stmt following SSA edges.
18684 2021-05-05 Richard Biener <rguenther@suse.de>
18686 PR middle-end/100394
18687 * calls.c (expand_call): Preserve possibly throwing calls.
18688 * cfgexpand.c (expand_call_stmt): When a call can throw signal
18689 RTL expansion there are side-effects.
18690 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
18691 mark all possibly throwing stmts necessary unless we can elide
18693 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
18694 -fdelete-dead-exceptions.
18695 * tree.h (DECL_PURE_P): Add note about exceptions.
18697 2021-05-05 Alexandre Oliva <oliva@adacore.com>
18699 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
18702 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
18704 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18705 get_fnname_from_decl for name of thunk.
18706 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
18707 and ASM_OUTPUT_LABEL.
18708 (rs6000_xcoff_declare_function_name): Use assemble_name and
18710 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
18711 (rs6000_xcoff_encode_section_info): Don't add mapping class
18712 for aliases. Always add [DS] mapping class to primary
18714 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
18716 2021-05-04 Martin Sebor <msebor@redhat.com>
18718 PR middle-end/100307
18719 * builtins.c (compute_objsize_r): Clear base0 for pointers.
18721 2021-05-04 Jeff Law <jlaw@tachyum.com>
18723 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
18725 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
18727 * caller-save.c: Remove CC0.
18728 * cfgcleanup.c: Remove CC0.
18729 * cfgrtl.c: Remove CC0.
18730 * combine.c: Remove CC0.
18731 * compare-elim.c: Remove CC0.
18732 * conditions.h: Remove CC0.
18733 * config/h8300/h8300.h: Remove CC0.
18734 * config/h8300/h8300-protos.h: Remove CC0.
18735 * config/h8300/peepholes.md: Remove CC0.
18736 * config/i386/x86-tune-sched.c: Remove CC0.
18737 * config/m68k/m68k.c: Remove CC0.
18738 * config/rl78/rl78.c: Remove CC0.
18739 * config/sparc/sparc.c: Remove CC0.
18740 * config/xtensa/xtensa.c: Remove CC0.
18741 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
18742 RTL where that is used as a placeholder only.
18743 * cprop.c: Remove CC0.
18744 * cse.c: Remove CC0.
18745 * cselib.c: Remove CC0.
18746 * df-problems.c: Remove CC0.
18747 * df-scan.c: Remove CC0.
18748 * doc/md.texi: Remove CC0. Adjust an example.
18749 * doc/rtl.texi: Remove CC0. Adjust an example.
18750 * doc/tm.texi: Regenerate.
18751 * doc/tm.texi.in: Remove CC0.
18752 * emit-rtl.c: Remove CC0.
18753 * final.c: Remove CC0.
18754 * fwprop.c: Remove CC0.
18755 * gcse-common.c: Remove CC0.
18756 * gcse.c: Remove CC0.
18757 * genattrtab.c: Remove CC0.
18758 * genconfig.c: Remove CC0.
18759 * genemit.c: Remove CC0.
18760 * genextract.c: Remove CC0.
18761 * gengenrtl.c: Remove CC0.
18762 * genrecog.c: Remove CC0.
18763 * haifa-sched.c: Remove CC0.
18764 * ifcvt.c: Remove CC0.
18765 * ira-costs.c: Remove CC0.
18766 * ira.c: Remove CC0.
18767 * jump.c: Remove CC0.
18768 * loop-invariant.c: Remove CC0.
18769 * lra-constraints.c: Remove CC0.
18770 * lra-eliminations.c: Remove CC0.
18771 * optabs.c: Remove CC0.
18772 * postreload-gcse.c: Remove CC0.
18773 * postreload.c: Remove CC0.
18774 * print-rtl.c: Remove CC0.
18775 * read-rtl-function.c: Remove CC0.
18776 * reg-notes.def: Remove CC0.
18777 * reg-stack.c: Remove CC0.
18778 * reginfo.c: Remove CC0.
18779 * regrename.c: Remove CC0.
18780 * reload.c: Remove CC0.
18781 * reload1.c: Remove CC0.
18782 * reorg.c: Remove CC0.
18783 * resource.c: Remove CC0.
18784 * rtl.c: Remove CC0.
18785 * rtl.def: Remove CC0.
18786 * rtl.h: Remove CC0.
18787 * rtlanal.c: Remove CC0.
18788 * sched-deps.c: Remove CC0.
18789 * sched-rgn.c: Remove CC0.
18790 * shrink-wrap.c: Remove CC0.
18791 * simplify-rtx.c: Remove CC0.
18792 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
18793 CC_STATUS_MDEP, and CC_STATUS.
18794 * target.def: Remove CC0.
18795 * valtrack.c: Remove CC0.
18796 * var-tracking.c: Remove CC0.
18798 2021-05-04 Richard Biener <rguenther@suse.de>
18800 PR tree-optimization/100414
18801 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
18803 (tree_ssa_phiopt_worker): But unconditionally here.
18805 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
18807 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
18808 && and || with floating-point and complex arguments.
18810 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
18812 * tree-inline.c (insert_debug_decl_map): Delete.
18813 (copy_debug_stmt): Minor tweak.
18814 (setup_one_parameter): Do not use a variable if the value is either
18815 a read-only DECL or a non-addressable local variable in the caller.
18816 In this case, insert the debug-only variable in the map manually.
18817 (expand_call_inline): Do not generate a CLOBBER for these values.
18818 * tree-inline.h (debug_map): Minor tweak.
18820 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
18822 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
18823 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
18825 2021-05-04 Richard Biener <rguenther@suse.de>
18827 PR tree-optimization/100329
18828 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
18830 (insert_stmt_after): Assert we're not running into asm goto.
18832 2021-05-04 Richard Biener <rguenther@suse.de>
18834 PR tree-optimization/100398
18835 * tree-ssa-dse.c (pass_dse::execute): Preserve control
18838 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18840 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
18842 2021-05-04 Alexandre Oliva <oliva@adacore.com>
18844 * builtins.c (try_store_by_multiple_pieces): New.
18845 (expand_builtin_memset_args): Use it. If target_char_cast
18846 fails, proceed as for non-constant val. Pass len's ctz to...
18847 * expr.c (clear_storage_hints): ... this. Try store by
18848 multiple pieces after setmem.
18849 (clear_storage): Adjust.
18850 * expr.h (clear_storage_hints): Likewise.
18851 (try_store_by_multiple_pieces): Declare.
18852 * passes.def: Replace the last copy_prop with ccp.
18854 2021-05-03 Tom de Vries <tdevries@suse.de>
18857 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
18860 2021-05-03 Richard Biener <rguenther@suse.de>
18862 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
18864 2021-05-03 Richard Biener <rguenther@suse.de>
18866 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
18867 (dse_dom_walker): Remove.
18868 (dse_dom_walker::dse_optimize_stmt): Rename...
18869 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
18870 (dse_dom_walker::before_dom_children): Inline ...
18871 (pass_dse::execute): ... here. Perform a reverse program
18874 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
18877 * configure: Regenerated.
18879 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
18882 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
18883 (s390_md_asm_adjust): Handle hard registers.
18885 2021-05-03 Jakub Jelinek <jakub@redhat.com>
18887 PR tree-optimization/100382
18888 * tree-ssa-dse.c: Include tree-eh.h.
18889 (dse_dom_walker::before_dom_children): Don't remove stmts if
18890 stmt_unremovable_because_of_non_call_eh_p is true.
18892 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
18894 * varasm.c (compute_reloc_for_var): Split out from...
18895 (get_variable_section): Use it.
18896 * output.h (compute_reloc_for_var): Declare.
18897 * config/rs6000/rs6000-protos.h
18898 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
18900 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
18901 Don't append storage mapping class to symbol.
18902 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
18903 Don't convert TLS BSS to common.
18904 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
18905 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
18907 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
18909 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
18910 If align is 0 from TLS class, use the same rules as varasm.c
18911 If not common, switch to BSS section manually.
18912 If common, emit appropriate comm or lcomm directive.
18913 (rs6000_xcoff_encode_section_info): Add logic to append all
18914 storage mapping classes.
18915 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
18916 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
18917 rs6000_xcoff_asm_output_aligned_decl_common.
18918 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
18919 rs6000_xcoff_asm_output_aligned_decl_common.
18920 (ASM_OUTPUT_TLS_COMMON): Use
18921 rs6000_xcoff_asm_output_aligned_decl_common.
18923 2021-05-02 Jakub Jelinek <jakub@redhat.com>
18926 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
18927 as first argument of pseudo_node_t constructors.
18929 2021-05-02 Jakub Jelinek <jakub@redhat.com>
18932 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
18934 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
18936 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
18937 (gt_pch_nx (int_range<1> *&)): New.
18938 (gt_ggc_mx (int_range<1> *&)): New.
18939 * value-range.h (class irange): Add GTY support for
18942 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
18944 * doc/options.texi (Negative): Change either or to both and.
18946 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
18948 * config/aarch64/aarch64-simd-builtins.def: Add
18949 float_ml[as][q]_laneq builtin generator macros.
18950 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
18951 (aarch64_float_mla_laneq<mode>): Define.
18952 (aarch64_float_mls_laneq<mode>): Define.
18953 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
18954 instead of GCC vector extensions.
18955 (vmlaq_laneq_f32): Likewise.
18956 (vmls_laneq_f32): Likewise.
18957 (vmlsq_laneq_f32): Likewise.
18959 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
18961 * config/aarch64/aarch64-simd-builtins.def: Add
18962 float_ml[as]_lane builtin generator macros.
18963 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
18965 (mul_lane<mode>3): This, and re-order arguments.
18966 (aarch64_float_mla_lane<mode>): Define.
18967 (aarch64_float_mls_lane<mode>): Define.
18968 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
18969 instead of GCC vector extensions.
18970 (vmlaq_lane_f32): Likewise.
18971 (vmls_lane_f32): Likewise.
18972 (vmlsq_lane_f32): Likewise.
18974 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
18976 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
18977 builtin generator macros.
18978 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
18980 (aarch64_float_mls<mode>): Define.
18981 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
18982 instead of relying on GCC vector extensions.
18983 (vmla_f64): Likewise.
18984 (vmlaq_f32): Likewise.
18985 (vmlaq_f64): Likewise.
18986 (vmls_f32): Likewise.
18987 (vmls_f64): Likewise.
18988 (vmlsq_f32): Likewise.
18989 (vmlsq_f64): Likewise.
18990 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
18992 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
18994 * config/aarch64/aarch64-simd-builtins.def: Add
18995 float_ml[as]_n_builtin generator macros.
18996 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
18998 (mul_n<mode>3): This, and re-order arguments.
18999 (aarch64_float_mla_n<mode>): Define.
19000 (aarch64_float_mls_n<mode>): Define.
19001 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
19002 instead of inline asm.
19003 (vmlaq_n_f32): Likewise.
19004 (vmls_n_f32): Likewise.
19005 (vmlsq_n_f32): Likewise.
19007 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
19009 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
19010 builtin generator macros.
19011 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
19012 (aarch64_pmull_hiv16qi_insn): Define.
19013 (aarch64_pmull_hiv16qi): Define.
19014 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
19015 instead of inline asm.
19016 (vmull_p8): Likewise.
19018 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
19020 * config/avr/avr.md: Adjust peepholes to match and
19021 generate parallels with clobber of REG_CC.
19022 (mov<mode>_insn): Rename to mov<mode>_insn_split.
19023 (*mov<mode>_insn): Rename to mov<mode>_insn.
19025 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
19027 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
19028 for VAR_DECLs if -fdata-sections enabled.
19030 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
19032 PR bootstrap/100327
19033 * config/rs6000/rs6000.c
19034 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
19035 (rs6000_libgcc_floating_mode_supported_p): New target hook.
19037 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
19039 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
19041 (class back_threader_registry): ...to here...
19042 (class back_threader_profitability): ...and here...
19043 (thread_jumps::thread_through_all_blocks): Remove argument.
19044 (back_threader_registry::back_threader_registry): New.
19045 (back_threader_registry::~back_threader_registry): New.
19046 (back_threader_registry::thread_through_all_blocks): New.
19047 (thread_jumps::profitable_jump_thread_path): Move from here...
19048 (back_threader_profitability::profitable_path_p): ...to here.
19049 (thread_jumps::find_taken_edge): New.
19050 (thread_jumps::convert_and_register_current_path): Move...
19051 (back_threader_registry::register_path): ...to here.
19052 (thread_jumps::register_jump_thread_path_if_profitable): Move...
19053 (thread_jumps::maybe_register_path): ...to here.
19054 (thread_jumps::handle_phi): Call find_taken_edge and
19055 maybe_register_path.
19056 (thread_jumps::handle_assignment): Same.
19057 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
19058 tree argument to handle_phi and handle_assignment.
19059 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
19060 set of m_speed_p and m_max_threaded_paths.
19061 (pass_thread_jumps::execute): Remove second argument from
19062 find_jump_threads_backwards.
19063 (pass_early_thread_jumps::execute): Same.
19065 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
19067 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
19068 (class dom_opt_dom_walker): Initialize some class variables.
19069 (pass_dominator::execute): Pass evrp_range_analyzer and
19070 dom_jump_threader_simplifier to dom_opt_dom_walker.
19071 Adjust for some functions moving into classes.
19072 (simplify_stmt_for_jump_threading): Adjust and move to...
19073 (jump_threader_simplifier::simplify): ...here.
19074 (dom_opt_dom_walker::before_dom_children): Adjust for
19075 m_evrp_range_analyzer.
19076 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
19077 (test_for_singularity): Place in dom_opt_dom_walker class.
19078 (dom_opt_dom_walker::optimize_stmt): The argument
19079 evrp_range_analyzer is now a class field.
19080 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
19081 (thread_jumps::thread_through_all_blocks): New.
19082 (thread_jumps::convert_and_register_current_path): Use m_registry.
19083 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
19084 being in the threader class.
19085 (pass_early_thread_jumps::execute): Same.
19086 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
19087 (jump_threader::jump_threader): ...here.
19088 (threadedge_finalize_values): Move...
19089 (jump_threader::~jump_threader): ...here.
19090 (jump_threader::remove_jump_threads_including): New.
19091 (jump_threader::thread_through_all_blocks): New.
19092 (record_temporary_equivalences_from_phis): Move...
19093 (jump_threader::record_temporary_equivalences_from_phis): ...here.
19094 (record_temporary_equivalences_from_stmts_at_dest): Move...
19095 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
19097 (simplify_control_stmt_condition_1): Move to jump_threader class.
19098 (simplify_control_stmt_condition): Move...
19099 (jump_threader::simplify_control_stmt_condition): ...here.
19100 (thread_around_empty_blocks): Move...
19101 (jump_threader::thread_around_empty_blocks): ...here.
19102 (thread_through_normal_block): Move...
19103 (jump_threader::thread_through_normal_block): ...here.
19104 (thread_across_edge): Move...
19105 (jump_threader::thread_across_edge): ...here.
19106 (thread_outgoing_edges): Move...
19107 (jump_threader::thread_outgoing_edges): ...here.
19108 * tree-ssa-threadedge.h: Move externally facing functings...
19109 (class jump_threader): ...here...
19110 (class jump_threader_simplifier): ...and here.
19111 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
19112 (jump_thread_path_allocator::jump_thread_path_allocator): New.
19113 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
19114 (jump_thread_path_allocator::allocate_thread_edge): New.
19115 (jump_thread_path_allocator::allocate_thread_path): New.
19116 (jump_thread_path_registry::jump_thread_path_registry): New.
19117 (jump_thread_path_registry::~jump_thread_path_registry): New.
19118 (jump_thread_path_registry::allocate_thread_edge): New.
19119 (jump_thread_path_registry::allocate_thread_path): New.
19120 (dump_jump_thread_path): Make extern.
19121 (debug (const vec<jump_thread_edge *> &path)): New.
19122 (struct removed_edges): Move to tree-ssa-threadupdate.h.
19123 (struct thread_stats_d): Remove.
19124 (remove_ctrl_stmt_and_useless_edges): Make static.
19125 (lookup_redirection_data): Move...
19126 (jump_thread_path_registry::lookup_redirection_data): ...here.
19127 (ssa_redirect_edges): Make static.
19128 (thread_block_1): Move...
19129 (jump_thread_path_registry::thread_block_1): ...here.
19130 (thread_block): Move...
19131 (jump_thread_path_registry::thread_block): ...here.
19132 (thread_through_loop_header): Move...
19133 (jump_thread_path_registry::thread_through_loop_header): ...here.
19134 (mark_threaded_blocks): Move...
19135 (jump_thread_path_registry::mark_threaded_blocks): ...here.
19136 (debug_path): Move...
19137 (jump_thread_path_registry::debug_path): ...here.
19138 (debug_all_paths): Move...
19139 (jump_thread_path_registry::dump): ..here.
19140 (rewire_first_differing_edge): Move...
19141 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
19142 (adjust_paths_after_duplication): Move...
19143 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
19144 (duplicate_thread_path): Move...
19145 (jump_thread_path_registry::duplicate_thread_path): ..here.
19146 (remove_jump_threads_including): Move...
19147 (jump_thread_path_registry::remove_jump_threads_including): ...here.
19148 (thread_through_all_blocks): Move to...
19149 (jump_thread_path_registry::thread_through_all_blocks): ...here.
19150 (delete_jump_thread_path): Remove.
19151 (register_jump_thread): Move...
19152 (jump_thread_path_registry::register_jump_thread): ...here.
19153 * tree-ssa-threadupdate.h: Move externally facing functions...
19154 (class jump_thread_path_allocator): ...here...
19155 (class jump_thread_path_registry): ...and here.
19156 (thread_through_all_blocks): Remove.
19157 (struct removed_edges): New.
19158 (register_jump_thread): Remove.
19159 (remove_jump_threads_including): Remove.
19160 (delete_jump_thread_path): Remove.
19161 (remove_ctrl_stmt_and_useless_edges): Remove.
19162 (free_dom_edge_info): New prototype.
19163 * tree-vrp.c: Remove x_vr_values hack.
19164 (class vrp_jump_threader_simplifier): New.
19165 (vrp_jump_threader_simplifier::simplify): New.
19166 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
19167 Remove m_dummy_cond.
19168 Instantiate m_simplifier and m_threader.
19169 (vrp_jump_threader::thread_through_all_blocks): New.
19170 (vrp_jump_threader::simplify_stmt): Remove.
19171 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
19172 Remove x_vr_values hack.
19173 (execute_vrp): Adjust for thread_through_all_blocks being in a
19176 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
19178 * genflags.c (gen_insn): Print failed expansion string.
19180 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
19182 * expr.c (alignment_for_piecewise_move): Call mode_for_size
19183 without limit to MAX_FIXED_MODE_SIZE.
19185 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
19187 PR middle-end/90773
19188 * builtins.c (builtin_memset_gen_str): Don't use return from
19189 simplify_gen_subreg.
19191 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
19194 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
19195 (*addsi3_carry_zext_0r): Ditto.
19196 (*sub<mode>3_carry_0): Ditto.
19197 (*subsi3_carry_zext_0r): Ditto.
19198 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
19200 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
19201 Also consider ix86_carry_flag_unset_operator to calculate
19202 the cost of adc/sbb insn.
19204 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
19206 PR rtl-optimization/100225
19207 PR rtl-optimization/84878
19208 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
19209 where we have an instruction which touches (writes) any hard
19210 register from df->regular_block_artificial_uses set.
19211 Allow not-single-set instruction only right before basic block
19214 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
19216 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
19218 2021-04-30 LevyHsu <admin@levyhsu.com>
19220 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
19221 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
19222 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
19223 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
19225 2021-04-29 Alexandre Oliva <oliva@adacore.com>
19227 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
19229 2021-04-29 Alexandre Oliva <oliva@adacore.com>
19231 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
19232 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
19233 * config/i386/i386.c: Adjust.
19234 * config/i386/i386.md: Adjust.
19235 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
19236 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19237 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19238 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19239 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19240 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19241 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19242 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19243 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19244 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19245 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
19247 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
19249 * config/i386/i386-expand.c (ix86_expand_int_compare):
19250 Swap operands of GTU and LEU comparison to emit carry flag comparison.
19251 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
19252 predicate to allow more combine opportunities with memory operands.
19253 (*sub<mode>3_carry_0): Ditto.
19255 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
19257 PR rtl-optimization/100303
19258 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
19259 boolean that indicates whether the use will only be used in
19260 debug instructions. Treat it in the same way that existing
19261 cross-EBB debug references would be handled if so.
19262 (function_info::make_uses_available): Likewise.
19263 * rtl-ssa/functions.h (function_info::make_uses_available): Update
19264 prototype accordingly.
19265 (function_info::make_uses_available): Likewise.
19266 * fwprop.c (try_fwprop_subst): Update call accordingly.
19268 2021-04-29 Jeff Law <jlaw@tachyum.com>
19270 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
19273 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
19274 Richard Biener <rguenther@suse.de>
19277 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
19278 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
19279 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
19280 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
19281 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
19282 to PURE_ARGS category.
19283 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
19284 Handle PURE_ARGS category.
19285 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
19287 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
19289 * configure.ac: Check for the presence of sys/locking.h header and
19290 for whether _LK_LOCK is supported by _locking.
19291 * configure: Regenerate.
19292 * config.in: Likewise.
19293 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
19294 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
19295 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
19297 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
19299 * config/i386/predicates.md (fcmov_comparison_operator):
19300 Do not check for trivial FP comparison operator.
19301 <case GEU, case LTU>: Allow CCGZmode.
19302 <case GTU, case LEU>: Do not allow CCCmode.
19303 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
19304 (ix86_carry_flag_operator): Match only LTU and UNLT code.
19305 Do not check for trivial FP comparison operator. Allow CCGZmode.
19307 2021-04-29 Tom de Vries <tdevries@suse.de>
19309 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
19310 fd->loop.step by either step or orig_step.
19312 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
19314 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
19315 (load_got_register): Do the PIC dance here.
19316 (sparc_legitimize_tls_address): Simplify.
19317 (sparc_emit_probe_stack_range): Likewise.
19318 (sparc32_initialize_trampoline): Likewise.
19319 (sparc64_initialize_trampoline): Likewise.
19320 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
19321 (probe_stack_range<P:mode>): Likewise.
19322 (flush<P:mode>): Likewise.
19323 (tgd_hi22<P:mode>): Likewise.
19324 (tgd_lo10<P:mode>): Likewise.
19325 (tgd_add<P:mode>): Likewise.
19326 (tgd_call<P:mode>): Likewise.
19327 (tldm_hi22<P:mode>): Likewise.
19328 (tldm_lo10<P:mode>): Likewise.
19329 (tldm_add<P:mode>): Likewise.
19330 (tldm_call<P:mode>): Likewise.
19331 (tldo_hix22<P:mode>): Likewise.
19332 (tldo_lox10<P:mode>): Likewise.
19333 (tldo_add<P:mode>): Likewise.
19334 (tie_hi22<P:mode>): Likewise.
19335 (tie_lo10<P:mode>): Likewise.
19336 (tie_add<P:mode>): Likewise.
19337 (tle_hix22<P:mode>): Likewise.
19338 (tle_lox10<P:mode>): Likewise.
19339 (stack_protect_setsi): Rename to...
19340 (stack_protect_set32): ...this.
19341 (stack_protect_setdi): Rename to...
19342 (stack_protect_set64): ...this.
19343 (stack_protect_set): Adjust calls to above.
19344 (stack_protect_testsi): Rename to...
19345 (stack_protect_test32): ...this.
19346 (stack_protect_testdi): Rename to...
19347 (stack_protect_test64): ...this.
19348 (stack_protect_test): Adjust calls to above.
19350 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
19352 PR middle-end/90773
19353 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
19354 (builtin_strncpy_read_str): Likewise.
19355 (builtin_memset_read_str): Add an argument for the previous RTL
19356 information and generate the new RTL from the previous RTL info.
19357 (builtin_memset_gen_str): Likewise.
19358 * builtins.h (builtin_strncpy_read_str): Update the prototype.
19359 (builtin_memset_read_str): Likewise.
19360 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
19361 returns true, round up size and alignment to the widest integer
19362 mode for maximum size.
19363 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
19364 and pass it to m_constfn.
19365 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
19366 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
19367 initialize m_push. Initialize m_overlap_op_by_pieces with
19368 targetm.overlap_op_by_pieces_p ().
19369 (op_by_pieces_d::run): Pass the previous RTL information to
19370 pieces_addr::adjust and generate overlapping operations if
19371 m_overlap_op_by_pieces is true.
19373 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
19375 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
19377 (can_store_by_pieces): Use by_pieces_constfn on constfun.
19378 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
19379 for op_by_pieces_d change.
19380 (clear_by_pieces_1): Add a dummy argument.
19381 (clear_by_pieces): Updated for op_by_pieces_d change.
19382 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
19383 (string_cst_read_str): Add a dummy argument.
19384 * expr.h (by_pieces_constfn): Add a dummy argument.
19385 (by_pieces_prev): New.
19386 * target.def (overlap_op_by_pieces_p): New target hook.
19387 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
19388 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
19389 * doc/tm.texi: Regenerated.
19391 2021-04-29 Richard Biener <rguenther@suse.de>
19393 PR tree-optimization/100253
19394 * tree-vect-stmts.c (vectorizable_load): Do not assume
19395 element alignment when DR_MISALIGNMENT is -1.
19396 (vectorizable_store): Likewise.
19398 2021-04-29 Jakub Jelinek <jakub@redhat.com>
19401 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
19402 absu_hwi instead of abs_hwi.
19404 2021-04-29 Richard Biener <rguenther@suse.de>
19406 PR middle-end/38474
19407 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
19408 forwarding when indirect forwarding through ESCAPED
19411 2021-04-29 Tom de Vries <tdevries@suse.de>
19414 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
19415 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
19416 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
19417 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
19419 2021-04-29 Richard Biener <rguenther@suse.de>
19421 PR tree-optimization/99912
19422 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
19423 (dse_dom_walker::todo): Likewise.
19424 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
19426 (dse_dom_walker::before_dom_children): Remove trivially
19427 dead SSA defs and schedule CFG cleanup if we removed all
19429 (pass_dse::execute): Get TODO as computed by the DOM walker
19430 and return it. Wipe dominator info earlier.
19432 2021-04-29 Richard Biener <rguenther@suse.de>
19435 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
19436 Track blocks to cleanup EH in new m_need_eh_cleanup.
19437 (ipcp_modif_dom_walker::cleanup_eh): New.
19438 (ipcp_transform_function): Release dominator info before
19441 2021-04-29 Martin Sebor <msebor@redhat.com>
19443 PR middle-end/100250
19444 * attribs.c (attr_access::array_as_string): Avoid dereferencing
19445 a pointer when it's null.
19447 2021-04-29 Martin Sebor <msebor@redhat.com>
19449 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
19450 * ipa-free-lang-data.cc: New file.
19451 * tree.c: Move pass free_lang_data to file above.
19452 (build_array_type_1): Declare extern.
19453 * tree.h (build_array_type_1): Declare.
19455 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19457 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
19458 make consistent with updated RTL pattern.
19459 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
19460 Implement using ss_truncate and us_truncate rather than
19462 * config/aarch64/iterators.md: Remove redundant unspecs and
19463 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
19465 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19467 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
19468 attributes consistent with those defined in arm_neon.h.
19470 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19472 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
19473 attributes consistent with those defined in arm_neon.h.
19475 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19477 * config/aarch64/aarch64-simd-builtins.def: Add
19478 float_trunc_rodd builtin generator macros.
19479 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
19481 (aarch64_float_trunc_rodd_lo_v2sf): Define.
19482 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
19483 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
19484 (aarch64_float_trunc_rodd_hi_v4sf): Define.
19485 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
19486 instead of inline asm.
19487 (vcvtx_high_f32_f64): Likewise.
19488 (vcvtxd_f32_f64): Likewise.
19489 * config/aarch64/iterators.md: Add FCVTXN unspec.
19491 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19493 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
19495 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
19497 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
19498 instead of inline asm.
19499 (vqtbx1_u8): Likewise.
19500 (vqtbx1_p8): Likewise.
19501 (vqtbx1q_s8): Likewise.
19502 (vqtbx1q_u8): Likewise.
19503 (vqtbx1q_p8): Likewise.
19504 (vtbx2_s8): Likewise.
19505 (vtbx2_u8): Likewise.
19506 (vtbx2_p8): Likewise.
19508 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19510 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
19512 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
19513 instead of inline asm.
19514 (vqtbl1_s8): Likewise.
19515 (vqtbl1_u8): Likewise.
19516 (vqtbl1q_p8): Likewise.
19517 (vqtbl1q_s8): Likewise.
19518 (vqtbl1q_u8): Likewise.
19519 (vtbl1_s8): Likewise.
19520 (vtbl1_u8): Likewise.
19521 (vtbl1_p8): Likewise.
19522 (vtbl2_s8): Likewise.
19523 (vtbl2_u8): Likewise.
19524 (vtbl2_p8): Likewise.
19526 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19528 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
19529 ssri_n buitin generator macro.
19530 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
19531 instead of inline asm.
19532 (vsri_n_p16): Likewise.
19533 (vsri_n_p64): Likewise.
19534 (vsriq_n_p8): Likewise.
19535 (vsriq_n_p16): Likewise.
19536 (vsriq_n_p64): Likewise.
19538 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19540 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
19541 iterator for polynomial ssli_n builtin generator macro.
19542 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
19543 instead of inline asm.
19544 (vsli_n_p16): Likewise.
19545 (vsliq_n_p8): Likewise.
19546 (vsliq_n_p16): Likewise.
19547 * config/aarch64/iterators.md: Define VALLP mode iterator.
19549 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19551 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
19552 iterator to generate [su]adalp RTL builtins.
19553 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
19554 [su]adalp RTL pattern.
19555 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
19556 instead of inline asm.
19557 (vpadal_u32): Likewise.
19559 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19561 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
19562 builtin generator macros.
19563 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
19565 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
19566 instead of inline asm.
19567 (vpaddl_s16): Likewise.
19568 (vpaddl_s32): Likewise.
19569 (vpaddl_u8): Likewise.
19570 (vpaddl_u16): Likewise.
19571 (vpaddl_u32): Likewise.
19572 (vpaddlq_s8): Likewise.
19573 (vpaddlq_s16): Likewise.
19574 (vpaddlq_s32): Likewise.
19575 (vpaddlq_u8): Likewise.
19576 (vpaddlq_u16): Likewise.
19577 (vpaddlq_u32): Liwewise.
19578 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
19579 appropriate attributes.
19581 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19583 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
19584 for aarch64_addp<mode> builtin macro generator.
19585 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
19586 aarch64_addp<mode> RTL pattern.
19587 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
19588 instead of inline asm.
19589 (vpaddq_s16): Likewise.
19590 (vpaddq_s32): Likewise.
19591 (vpaddq_s64): Likewise.
19592 (vpaddq_u8): Likewise.
19593 (vpaddq_u16): Likewise.
19594 (vpaddq_u32): Likewise.
19595 (vpaddq_u64): Likewise.
19597 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
19599 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
19600 builtin generator macros.
19601 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
19603 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
19604 instead of inline asm.
19605 (vqdmulh_n_s32): Likewise.
19606 (vqdmulhq_n_s16): Likewise.
19607 (vqdmulhq_n_s32): Likewise.
19608 (vqrdmulh_n_s16): Likewise.
19609 (vqrdmulh_n_s32): Likewise.
19610 (vqrdmulhq_n_s16): Likewise.
19611 (vqrdmulhq_n_s32): Likewise.
19613 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
19615 * doc/install.texi (--enable-offload-defaulted): Document.
19617 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
19619 * config/avr/avr-dimode.md: Turn existing patterns into
19620 define_insn_and_split style patterns where the splitter
19621 adds a clobber of the condition code register. Drop "cc"
19622 attribute. Add new patterns to match output of
19624 * config/avr/avr-fixed.md: Likewise.
19625 * config/avr/avr.c (cc_reg_rtx): New.
19626 (avr_parallel_insn_from_insns): Adjust insn count
19627 for removal of set of cc0.
19628 (avr_is_casesi_sequence): Likewise.
19629 (avr_casei_sequence_check_operands): Likewise.
19630 (avr_optimize_casesi): Likewise. Also insert
19631 new insns after jump_insn.
19632 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
19633 for removal of set of cc0.
19634 (avr_init_expanders): Initialize cc_reg_rtx.
19635 (avr_regno_reg_class): Handle REG_CC.
19636 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
19637 (avr_notice_update_cc): Remove function.
19638 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
19639 (compare_condition): Adjust for PARALLEL with
19641 (out_shift_with_cnt): Likewise.
19642 (ashlhi3_out): Likewise.
19643 (ashrhi3_out): Likewise.
19644 (lshrhi3_out): Likewise.
19645 (avr_class_max_nregs): Return single reg for REG_CC.
19646 (avr_compare_pattern): Check for REG_CC instead
19648 (avr_reorg_remove_redundant_compare): Likewise.
19649 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
19650 (avr_hard_regno_nregs): Return single reg for REG_CC.
19651 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
19652 (avr_md_asm_adjust): Clobber REG_CC.
19653 (TARGET_HARD_REGNO_NREGS): Define.
19654 (TARGET_CLASS_MAX_NREGS): Define.
19655 (TARGET_MD_ASM_ADJUST): Define.
19656 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
19658 (enum reg_class): Add CC_REG class.
19659 (NOTICE_UPDATE_CC): Remove.
19660 (CC_OVERFLOW_UNUSABLE): Remove.
19661 (CC_NO_CARRY): Remove.
19662 * config/avr/avr.md: Turn existing patterns into
19663 define_insn_and_split style patterns where the splitter
19664 adds a clobber of the condition code register. Drop "cc"
19665 attribute. Add new patterns to match output of
19667 (sez): Remove unused pattern.
19669 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
19672 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
19675 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
19678 * config/aarch64/constraints.md (Utq): Require the address to
19679 be valid for both the element mode and for V2DImode.
19681 2021-04-28 Jakub Jelinek <jakub@redhat.com>
19682 Tobias Burnus <tobias@codesourcery.com>
19684 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
19685 * gcc.c (process_command): New variable.
19686 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
19687 set it if -foffload is defaulted.
19688 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
19689 (compile_offload_image): If OFFLOAD_DEFAULTED and
19690 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
19691 if corresponding mkoffload can't be found.
19692 (compile_images_for_offload_targets): Likewise. Free and clear
19693 offload_names if no valid offload is found.
19694 * config.in: Regenerate.
19695 * configure: Regenerate.
19697 2021-04-28 Richard Biener <rguenther@suse.de>
19699 PR tree-optimization/100292
19700 * tree-vect-generic.c (expand_vector_condition): Do not fold
19703 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
19705 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
19706 * config/rs6000/aix64.opt (m64): New.
19709 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
19711 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
19712 (index_term_p): Handle ASHIFT too.
19714 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
19716 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
19717 (sync_lock_test_and_set<mode>): Adjust accordingly.
19718 (sync_lock_release<mode>): Likewise.
19720 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
19722 * config/vax/vax-protos.h (adjacent_operands_p): Remove
19724 * config/vax/vax.c (adjacent_operands_p): Remove.
19726 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
19728 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
19729 through to the non-conditional execution case if getting the
19730 condition for conditional execution has failed.
19732 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
19734 PR middle-end/100284
19735 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
19736 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
19737 than asserting on it.
19739 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
19741 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
19742 with TARGET_AIX_OS.
19744 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
19747 * calls.c (precompute_register_parameters): Additionally test
19748 targetm.precompute_tls_p to pre-compute argument.
19749 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
19750 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
19751 * target.def (precompute_tls_p): New.
19752 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
19753 * doc/tm.texi: Regenerated.
19755 2021-04-27 Jakub Jelinek <jakub@redhat.com>
19758 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
19759 back to HOST_WIDE_INT.
19761 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
19764 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
19765 memory alignment for the outer mode.
19767 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
19769 PR middle-end/90773
19770 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
19771 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
19773 2021-04-27 Alex Coplan <alex.coplan@arm.com>
19776 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
19777 with negative immediates: ensure we expand cbranchsi4_scratch
19778 correctly and ensure we satisfy its constraints.
19779 * config/arm/sync.md
19780 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
19781 attempt to tie two output operands together with constraints;
19782 collapse two alternatives.
19783 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
19784 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
19786 2021-04-27 Jakub Jelinek <jakub@redhat.com>
19789 * config/aarch64/predicates.md (aarch64_sub_immediate,
19790 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
19791 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
19792 * config/aarch64/aarch64.c (aarch64_print_operand,
19793 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
19795 2021-04-27 Jakub Jelinek <jakub@redhat.com>
19797 PR tree-optimization/100239
19798 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
19799 permutations with all indices from the first zero element as vec_shl.
19801 2021-04-27 Jakub Jelinek <jakub@redhat.com>
19803 PR rtl-optimization/100254
19804 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
19805 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
19807 2021-04-27 Richard Biener <rguenther@suse.de>
19809 PR tree-optimization/99912
19810 * passes.def: Add comment about new TODO_remove_unused_locals.
19811 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
19814 2021-04-27 Richard Biener <rguenther@suse.de>
19816 PR tree-optimization/99912
19817 * passes.def (pass_all_optimizations): Add pass_dse before
19818 the first pass_dce, move the first pass_dse before the
19819 pass_dce following pass_pre.
19821 2021-04-27 Jakub Jelinek <jakub@redhat.com>
19823 PR tree-optimization/95527
19824 * generic-match-head.c: Include tm.h.
19825 * gimple-match-head.c: Include tm.h.
19826 * match.pd (CLZ == INTEGER_CST): Don't use
19827 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
19828 if clz == CFN_CLZ. Add missing val declaration.
19829 (CTZ cmp CST): New simplifications.
19831 2021-04-27 Jakub Jelinek <jakub@redhat.com>
19833 PR tree-optimization/96696
19834 * expr.c (expand_expr_divmod): New function.
19835 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
19836 divisions. Formatting fixes.
19837 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
19840 2021-04-27 Martin Jambor <mjambor@suse.cz>
19843 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
19844 If removing a call statement LHS SSA name, release it.
19846 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
19849 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
19850 is valid before including it in the mask.
19852 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
19855 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
19858 2021-04-27 Richard Biener <rguenther@suse.de>
19860 PR tree-optimization/100051
19861 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
19862 disambiguator based on access size vs. decl size.
19864 2021-04-27 Richard Biener <rguenther@suse.de>
19866 PR tree-optimization/100278
19867 * tree-ssa-pre.c (compute_avail): Give up when we cannot
19868 adjust TBAA beacuse of mismatching bases.
19870 2021-04-27 Jakub Jelinek <jakub@redhat.com>
19873 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
19874 For any_rotate define_insn_split and following splitters, use
19875 SWI iterator instead of SWI48.
19877 2021-04-27 Richard Biener <rguenther@suse.de>
19879 PR tree-optimization/99776
19880 * match.pd (bit_field_ref (ctor)): Relax element extract
19881 type compatibility checks.
19883 2021-04-27 Cui,Lili <lili.cui@intel.com>
19885 * common/config/i386/i386-common.c (processor_names):
19886 Sync processor_names with processor_type.
19887 * config/i386/i386-options.c (processor_cost_table):
19888 Sync processor_cost_table with processor_type.
19890 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
19892 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
19893 (irange::set): Call irange_set_1bit_anti_range for handling all
19894 1-bit ranges. Fall through on ~[MIN,MAX].
19896 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
19898 * value-range.cc (irange::legacy_num_pairs): Remove.
19899 (irange::invert): Change gcc_assert to gcc_checking_assert.
19900 * value-range.h (irange::num_pairs): Adjust for a cached
19901 num_pairs(). Also, rename all gcc_assert's to
19902 gcc_checking_assert's.
19904 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
19906 * value-range.cc (irange::operator=): Set m_kind.
19907 (irange::copy_to_legacy): Handle varying and undefined sources
19908 as a legacy copy since they can be easily copied.
19909 (irange::irange_set): Set m_kind.
19910 (irange::irange_set_anti_range): Same.
19911 (irange::set): Rename normalize_min_max to normalize_kind.
19912 (irange::verify_range): Adjust for multi-ranges having the
19914 (irange::irange_union): Set m_kind.
19915 (irange::irange_intersect): Same.
19916 (irange::invert): Same.
19917 * value-range.h (irange::kind): Always return m_kind.
19918 (irange::varying_p): Rename to...
19919 (irange::varying_comptaible_p): ...this.
19920 (irange::undefined_p): Only look at m_kind.
19921 (irange::irange): Always set VR_UNDEFINED if applicable.
19922 (irange::set_undefined): Always set VR_UNDEFINED.
19923 (irange::set_varying): Always set m_kind to VR_VARYING.
19924 (irange::normalize_min_max): Rename to...
19925 (irange::normalize_kind): ...this.
19927 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
19929 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
19930 Adjust for constant_p including varying_p.
19931 * tree-vrp.c (vrp_prop::finalize): Same.
19932 (determine_value_range): Same.
19933 * vr-values.c (vr_values::range_of_expr): Same.
19934 * value-range.cc (irange::symbolic_p): Do not check varying_p.
19935 (irange::constant_p): Same.
19937 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
19939 * value-range.cc (irange::legacy_lower_bound): Replace
19940 !undefined_p check with num_ranges > 0.
19941 (irange::legacy_upper_bound): Same.
19942 * value-range.h (irange::type): Same.
19943 (irange::lower_bound): Same.
19944 (irange::upper_bound): Same.
19946 2021-04-26 Richard Biener <rguenther@suse.de>
19948 PR tree-optimization/99956
19949 * gimple-loop-interchange.cc (compute_access_stride):
19950 Try instantiating the access in a shallower loop nest
19951 if instantiating failed.
19952 (compute_access_strides): Pass adjustable loop_nest
19953 to compute_access_stride.
19955 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
19957 * doc/sourcebuild.texi (arm_cmse_hw): Document.
19959 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19961 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
19963 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
19964 Nathan Sidwell <nathan@codesourcery.com>
19965 Tom de Vries <vries@codesourcery.com>
19966 Julian Brown <julian@codesourcery.com>
19967 Kwok Cheung Yeung <kcy@codesourcery.com>
19969 * omp-offload.c (oacc_validate_dims): Implement
19970 '-Wopenacc-parallelism'.
19971 * doc/invoke.texi (-Wopenacc-parallelism): Document.
19973 2021-04-26 Richard Biener <rguenther@suse.de>
19975 * tree-cfg.h (gimplify_build1): Remove.
19976 (gimplify_build2): Likewise.
19977 (gimplify_build3): Likewise.
19978 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
19979 (gimplify_build2): Likewise.
19980 (gimplify_build3): Likewise.
19981 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
19983 (gimplify_build2): Likewise.
19984 (gimplify_build3): Likewise.
19985 (tree_vec_extract): Use resimplify with following SSA edges.
19986 (expand_vector_parallel): Avoid passing NULL size/bitpos
19987 to tree_vec_extract.
19988 * expr.c (store_constructor): Deal with zero-element CTORs.
19989 * match.pd (bit_field_ref <vector CTOR>): Make sure to
19990 produce vector constants when possible.
19992 2021-04-26 Richard Biener <rguenther@suse.de>
19994 * tree-complex.c: Include gimple-fold.h.
19995 (expand_complex_addition): Use gimple_build.
19996 (expand_complex_multiplication_components): Likewise.
19997 (expand_complex_multiplication): Likewise.
19998 (expand_complex_div_straight): Likewise.
19999 (expand_complex_div_wide): Likewise.
20000 (expand_complex_division): Likewise.
20001 (expand_complex_conjugate): Likewise.
20002 (expand_complex_comparison): Likewise.
20004 2021-04-26 Richard Biener <rguenther@suse.de>
20006 * tree-ssa-phiopt.c (two_value_replacement): Remove use
20007 of legacy gimplify_buildN API.
20009 2021-04-26 Richard Biener <rguenther@suse.de>
20011 PR tree-optimization/99473
20012 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
20015 2021-04-26 Richard Biener <rguenther@suse.de>
20017 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
20018 Use replace_call_with_value.
20020 2021-04-26 Richard Biener <rguenther@suse.de>
20022 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
20023 (update_gimple_call): Likewise.
20024 (update_call_from_tree): Likewise.
20025 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
20026 (valid_gimple_call_p): Likewise.
20027 (move_ssa_defining_stmt_for_defs): Likewise.
20028 (finish_update_gimple_call): Likewise.
20029 (update_gimple_call): Likewise.
20030 (update_call_from_tree): Likewise.
20031 (propagate_tree_value_into_stmt): Use replace_call_with_value.
20032 * gimple-fold.h (update_gimple_call): Declare.
20033 * gimple-fold.c (valid_gimple_rhs_p): Move here from
20034 tree-ssa-propagate.c.
20035 (update_gimple_call): Likewise.
20036 (valid_gimple_call_p): Likewise.
20037 (finish_update_gimple_call): Likewise, and simplify.
20038 (gimplify_and_update_call_from_tree): Implement
20039 update_call_from_tree functionality, avoid excessive
20040 push/pop_gimplify_context.
20041 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
20042 (gimple_fold_call): Likewise.
20043 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
20044 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
20045 (pass_fold_builtins::execute): Likewise.
20046 (optimize_stack_restore): Use replace_call_with_value.
20047 * tree-cfg.c (fold_loop_internal_call): Likewise.
20048 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
20049 only gimplify_and_update_call_from_tree.
20050 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
20051 (handle_builtin_strchr): Likewise.
20052 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
20054 2021-04-26 Jakub Jelinek <jakub@redhat.com>
20057 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
20058 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
20061 2021-04-25 liuhongt <hongtao.liu@intel.com>
20064 * config/i386/i386-builtin.def (BDESC): Change the icode of
20065 the following builtins to CODE_FOR_nothing.
20066 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
20067 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
20068 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
20069 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
20070 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
20071 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
20072 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
20073 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
20074 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
20075 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
20076 (sse2_eq<mode>3): Ditto.
20077 (sse4_1_eqv2di3): Ditto.
20078 (sse2_gt<mode>3): Rename to ..
20079 (*sse2_gt<mode>3): .. this.
20081 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
20084 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
20087 * config/darwin.c (darwin_binds_local_p): Assume that any
20088 public symbol might be interposed for PIC code. Update function
20089 header comment to reflect current Darwin capability.
20091 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
20094 * config/darwin.c (darwin_binds_local_p): Assume that any
20095 public symbol might be interposed for PIC code. Update function
20096 header comment to reflect current Darwin capability.
20098 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
20100 * doc/sourcebuild.texi: Document no-opts and any-opts target
20103 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
20105 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
20107 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
20109 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
20111 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
20114 * config/i386/i386-options.c (ix86_option_override_internal):
20115 Error out when -m96bit-long-double is used with 64bit targets.
20116 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
20118 2021-04-23 Martin Liska <mliska@suse.cz>
20120 * lto-wrapper.c: Remove FIXME about usage of
20121 hardware_concurrency. The function is not on par with
20124 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
20127 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
20128 Copy operand 3 to operand 4. Use sse_reg_operand
20129 as operand 3 predicate.
20130 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
20131 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
20132 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
20133 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
20134 Copy operand 1 to operand 0.
20135 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
20136 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
20137 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
20139 2021-04-23 Alex Coplan <alex.coplan@arm.com>
20141 PR rtl-optimization/100230
20142 * early-remat.c (early_remat::sort_candidates): Use delete[]
20143 instead of delete for array allocated with new[].
20145 2021-04-23 Richard Biener <rguenther@suse.de>
20147 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
20148 (capture_info::capture_info): Likewise.
20149 (capture_info::walk_match): Likewise.
20150 (expr::gen_transform): Likewise.
20151 (dt_simplify::gen_1): Likewise.
20152 * gimple-match-head.c (maybe_resimplify_conditional_op):
20153 Remove VEC_COND_EXPR special-casing.
20154 (gimple_simplify): Likewise.
20155 * gimple.c (gimple_could_trap_p_1): Adjust.
20156 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
20157 to participate in PRE.
20159 2021-04-23 Richard Biener <rguenther@suse.de>
20161 * cfganal.c (connect_infinite_loops_to_exit): First call
20162 add_noreturn_fake_exit_edges.
20163 * ipa-sra.c (process_scan_results): Do not call the now redundant
20164 add_noreturn_fake_exit_edges.
20165 * predict.c (tree_estimate_probability): Likewise.
20166 (rebuild_frequencies): Likewise.
20167 * store-motion.c (one_store_motion_pass): Likewise.
20169 2021-04-23 Richard Biener <rguenther@suse.de>
20171 PR tree-optimization/100222
20172 * predict.c (pass_profile::execute): Remove redundant call to
20173 mark_irreducible_loops.
20174 (report_predictor_hitrates): Likewise.
20176 2021-04-23 Richard Biener <rguenther@suse.de>
20178 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
20179 valid_gimple_rhs_p by instead gimplifying to one.
20181 2021-04-23 Richard Biener <rguenther@suse.de>
20183 PR tree-optimization/99971
20184 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
20185 Always use TBAA for loads.
20187 2021-04-23 liuhongt <hongtao.liu@intel.com>
20190 * config/i386/i386-options.c (ix86_option_override_internal):
20191 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
20192 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
20193 by target attribute.
20195 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
20197 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
20199 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
20201 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
20203 * config.gcc (powerpc-ibm-aix6.*): Remove.
20204 * config/rs6000/aix61.h: Delete.
20206 2021-04-22 Martin Liska <mliska@suse.cz>
20208 PR testsuite/100159
20209 PR testsuite/100192
20210 * builtins.c (expand_builtin): Fix typos and missing comments.
20211 * dwarf2out.c (gen_subprogram_die): Likewise.
20212 (gen_struct_or_union_type_die): Likewise.
20214 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
20217 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
20218 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
20220 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
20222 * config/i386/darwin.h (TARGET_64BIT): Remove definition
20223 based on TARGET_ISA_64BIT.
20224 (TARGET_64BIT_P): Remove definition based on
20225 TARGET_ISA_64BIT_P().
20227 2021-04-21 Martin Liska <mliska@suse.cz>
20230 2021-04-21 Martin Liska <mliska@suse.cz>
20232 * lto-wrapper.c (cpuset_popcount): Remove.
20233 (init_num_threads): Remove and use hardware_concurrency.
20235 2021-04-21 Martin Liska <mliska@suse.cz>
20238 * main.c (main): Call toplev::finalize in CHECKING_P mode.
20239 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
20240 when incremental LTO linking happens.
20242 2021-04-21 Martin Liska <mliska@suse.cz>
20244 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
20245 makeserver cannot be detected, then use -flto=N fallback.
20247 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
20249 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
20250 default to yes for aarch64-linux-gnu.
20251 * configure: Regenerate.
20253 2021-04-21 Martin Liska <mliska@suse.cz>
20255 * lto-wrapper.c (cpuset_popcount): Remove.
20256 (init_num_threads): Remove and use hardware_concurrency.
20258 2021-04-21 Martin Liska <mliska@suse.cz>
20260 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
20261 which remains to be '(... || 0)' and clang complains about it.
20262 * dwarf2out.c (AT_vms_delta): Declare conditionally.
20263 (add_AT_vms_delta): Likewise.
20264 * tree.c (fld_simplified_type): Use rather more common pattern
20265 for disabling of something (#if 0).
20266 (get_tree_code_name): Likewise.
20267 (verify_type_variant): Likewise.
20269 2021-04-21 Martin Liska <mliska@suse.cz>
20271 * config/i386/i386-expand.c (decide_alignment): Use newly named
20272 macro TARGET_CPU_P.
20273 * config/i386/i386.c (ix86_decompose_address): Likewise.
20274 (ix86_address_cost): Likewise.
20275 (ix86_lea_outperforms): Likewise.
20276 (ix86_avoid_lea_for_addr): Likewise.
20277 (ix86_add_stmt_cost): Likewise.
20278 * config/i386/i386.h (TARGET_*): Remove.
20279 (TARGET_CPU_P): New macro.
20280 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
20281 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
20282 (swap_top_of_ready_list): Likewise.
20283 (ix86_atom_sched_reorder): Likewise.
20284 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
20285 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
20287 2021-04-21 Martin Liska <mliska@suse.cz>
20289 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
20291 (SET_TARGET_NO_SAHF): Likewise.
20292 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
20293 (SET_TARGET_PREFETCH_SSE): Likewise.
20294 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
20295 (SET_TARGET_NO_TUNE): Likewise.
20296 (TARGET_EXPLICIT_NO_80387_P): Likewise.
20297 (SET_TARGET_NO_80387): Likewise.
20299 * config/i386/i386.h (TARGET_*): Remove.
20300 * opth-gen.awk: Generate new used macros.
20302 2021-04-21 Martin Liska <mliska@suse.cz>
20304 * config/i386/i386.h (PTA_*): Remove.
20305 (enum pta_flag): New.
20306 (DEF_PTA): Generate PTA_* values from i386-isa.def.
20307 * config/i386/i386-isa.def: New file.
20309 2021-04-21 Alex Coplan <alex.coplan@arm.com>
20312 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
20313 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
20314 jump table targets.
20316 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
20318 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
20319 x86_64-*-* targets.
20320 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
20322 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
20323 (ix86_handle_option): Handle -mmwait.
20324 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
20325 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
20326 __builtin_ia32_monitor and __builtin_ia32_mwait.
20327 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
20328 (ix86_valid_target_attribute_inner_p): Likewise.
20329 (ix86_option_override_internal): Enable mwait/monitor
20330 instructions for -msse3.
20331 * config/i386/i386.h (TARGET_MWAIT): New.
20332 (TARGET_MWAIT_P): Likewise.
20333 * config/i386/i386.opt: Add -mmwait.
20334 * config/i386/mwaitintrin.h: New file.
20335 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
20336 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
20338 (@sse3_monitor_<mode>): Likewise.
20339 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
20340 * doc/extend.texi: Document mwait target attribute.
20341 * doc/invoke.texi: Document -mmwait.
20343 2021-04-21 Martin Liska <mliska@suse.cz>
20345 * config/i386/i386-options.c (DEF_ENUM): Remove it.
20346 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
20347 * config/i386/stringop.def (DEF_ENUM): Likewise.
20349 2021-04-21 Martin Liska <mliska@suse.cz>
20351 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
20352 of print_generic_expr.
20354 2021-04-21 Jakub Jelinek <jakub@redhat.com>
20356 PR rtl-optimization/100148
20357 * cprop.c (constprop_register): Use next_nondebug_insn instead of
20360 2021-04-21 Martin Liska <mliska@suse.cz>
20363 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
20364 free_dominance_info calls.
20366 2021-04-21 Richard Biener <rguenther@suse.de>
20368 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
20369 parameter (and assume it to be false).
20370 (fold_gimple_assign): Adjust, remove all callers of
20371 maybe_fold_reference calling it with is_lhs true.
20372 (gimple_fold_call): Likewise.
20373 (fold_stmt_1): Likewise.
20375 2021-04-21 Richard Biener <rguenther@suse.de>
20377 * fold-const.c (pedantic_non_lvalue_loc): Remove.
20378 (fold_binary_loc): Adjust.
20379 (fold_ternary_loc): Likewise.
20381 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
20383 PR middle-end/100130
20384 * varasm.c (get_block_for_decl): Make sure that any use of the
20385 retain attribute matches the section's retain flag.
20386 (switch_to_section): Check for retain mismatches even when
20387 changing sections, but do not warn if the given decl is the
20388 section's named.decl.
20389 (output_object_block): Pass the first decl in the block (if any)
20390 to switch_to_section.
20392 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
20394 * config/i386/i386-c.c (ix86_target_macros_internal): Define
20395 __CRC32__ for -mcrc32.
20396 * config/i386/i386-options.c (ix86_option_override_internal):
20397 Enable crc32 instruction for -msse4.2.
20398 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
20400 (sse4_2_crc32di): Likewise.
20401 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
20404 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
20407 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
20410 2021-04-20 Martin Liska <mliska@suse.cz>
20412 * doc/invoke.texi: Fix typo.
20413 * params.opt: Likewise.
20415 2021-04-20 Martin Liska <mliska@suse.cz>
20417 * doc/invoke.texi: Document new param.
20419 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
20421 PR tree-optimization/100081
20422 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
20423 rather than gori_compute_cache.
20424 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
20425 (range_def_chain::m_logical_depth): New member.
20426 (range_def_chain::range_def_chain): Initialize m_logical_depth.
20427 (range_def_chain::get_def_chain): Don't build defchains through more
20428 than LOGICAL_LIMIT logical expressions.
20429 * params.opt (param_ranger_logical_depth): New.
20431 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
20434 * config/arm/arm.c (arm_configure_build_target): Do not strip
20435 extended FPU/SIMD feature bits from the target ISA when -mfpu
20436 is specified (partial revert of r11-8168).
20438 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
20440 * params.opt (-param=openacc-kernels=): Add.
20441 * omp-oacc-kernels-decompose.cc
20442 (pass_omp_oacc_kernels_decompose::gate): Use it.
20443 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
20444 (--param): ... here, 'openacc-kernels'.
20446 2021-04-19 Martin Liska <mliska@suse.cz>
20449 * gengtype.c (finish_root_table): Align function arguments
20450 in between declaration and definition.
20452 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
20454 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
20455 frames larger than the SEH maximum frame size.
20457 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
20459 PR rtl-optimization/99927
20460 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
20461 is dead, just drop it.
20463 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
20466 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
20467 * doc/tm.texi: Regenerate.
20468 * doc/tm.texi.in (D language and ABI): Add @hook for
20469 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
20471 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
20473 * config/darwin-d.c (darwin_d_handle_target_object_format): New
20475 (darwin_d_register_target_info): New function.
20476 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20477 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
20479 (dragonfly_d_register_target_info): New function.
20480 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20481 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
20483 (freebsd_d_register_target_info): New function.
20484 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20485 * config/glibc-d.c (glibc_d_handle_target_object_format): New
20487 (glibc_d_register_target_info): New function.
20488 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20489 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
20491 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
20492 as handler for objectFormat key.
20493 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
20495 (winnt_d_register_target_info): New function.
20496 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20497 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
20499 (netbsd_d_register_target_info): New function.
20500 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20501 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
20503 (openbsd_d_register_target_info): New function.
20504 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20505 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
20506 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
20507 handler for objectFormat key.
20508 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
20510 (rs6000_d_register_target_info): Add
20511 rs6000_d_handle_target_object_format as handler for objectFormat key.
20512 * config/sol2-d.c (solaris_d_handle_target_object_format): New
20514 (solaris_d_register_target_info): New function.
20515 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
20517 2021-04-16 Jakub Jelinek <jakub@redhat.com>
20520 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
20521 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
20523 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
20524 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
20525 the old and new alignment after applying MIN/MAX to it is different.
20527 2021-04-16 Tamar Christina <tamar.christina@arm.com>
20530 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
20531 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
20533 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
20535 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
20537 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
20538 this section and its subsections.
20540 2021-04-16 Jakub Jelinek <jakub@redhat.com>
20543 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
20544 define_insn patterns.
20546 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
20548 PR rtl-optimization/98689
20549 * reg-notes.def (UNTYPED_CALL): New note.
20550 * combine.c (distribute_notes): Handle it.
20551 * emit-rtl.c (try_split): Likewise.
20552 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
20553 that calls with the note implicitly set all return value registers.
20554 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
20557 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
20559 PR rtl-optimization/99596
20560 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
20561 register accesses for const calls. Assume that pure functions
20562 can only read from global registers. Ignore cases in which
20563 the stack pointer has been marked global.
20565 2021-04-16 Jakub Jelinek <jakub@redhat.com>
20568 * tree-vect-loop.c (vect_transform_loop): Don't remove just
20569 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
20570 them by their last argument.
20572 2021-04-15 Martin Liska <mliska@suse.cz>
20574 * doc/invoke.texi: Other params don't use it, remove it.
20576 2021-04-15 Richard Biener <rguenther@suse.de>
20578 * gimple-builder.h: Add deprecation note.
20580 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
20583 * attribs.h (restrict_type_identity_attributes_to): Declare.
20584 * attribs.c (restrict_type_identity_attributes_to): New function.
20586 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
20589 * attribs.h (affects_type_identity_attributes): Declare.
20590 * attribs.c (remove_attributes_matching): New function.
20591 (affects_type_identity_attributes): Likewise.
20593 2021-04-15 Jakub Jelinek <jakub@redhat.com>
20596 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
20597 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
20598 ZERO_EXTEND, SIGN_EXTEND or AND.
20600 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
20602 PR rtl-optimization/99929
20603 * rtl.h (same_vector_encodings_p): New function.
20604 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
20605 * cselib.c (rtx_equal_for_cselib_1): Likewise.
20606 * jump.c (rtx_renumbered_equal_p): Likewise.
20607 * lra-constraints.c (operands_match_p): Likewise.
20608 * reload.c (operands_match_p): Likewise.
20609 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
20611 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
20613 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
20614 more information about variable-length CONST_VECTORs.
20616 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
20618 PR rtl-optimization/100066
20619 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
20620 ordered modes when choosing splitting mode for hard reg.
20622 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
20625 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
20627 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
20629 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
20631 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
20632 for mask operand types.
20633 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
20634 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
20636 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
20638 * config/s390/s390.c (s390_const_operand_ok): Check the new
20639 operand types and generate a list of valid values.
20641 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
20643 * doc/tm.texi: Regenerate.
20644 * doc/tm.texi.in (D language and ABI): Add @hook for
20645 TARGET_D_REGISTER_OS_TARGET_INFO.
20647 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
20649 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
20651 (aarch64_d_register_target_info): New function.
20652 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
20654 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
20656 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
20657 (arm_d_register_target_info): New function.
20658 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
20659 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20660 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
20661 (ix86_d_register_target_info): New function.
20662 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
20663 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20664 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
20665 (mips_d_register_target_info): New function.
20666 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
20667 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20668 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
20669 (pa_d_register_target_info): New function.
20670 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
20671 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20672 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
20674 (riscv_d_register_target_info): New function.
20675 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
20676 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20677 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
20679 (rs6000_d_register_target_info): New function.
20680 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
20682 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20683 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
20684 (s390_d_register_target_info): New function.
20685 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
20686 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20687 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
20689 (sparc_d_register_target_info): New function.
20690 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
20691 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
20692 * doc/tm.texi: Regenerate.
20693 * doc/tm.texi.in (D language and ABI): Add @hook for
20694 TARGET_D_REGISTER_CPU_TARGET_INFO.
20696 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
20698 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
20699 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
20700 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
20701 * doc/tm.texi: Regenerate.
20702 * doc/tm.texi.in (D language and ABI): Add @hook for
20703 TARGET_D_HAS_STDCALL_CONVENTION.
20705 2021-04-14 Richard Biener <rguenther@suse.de>
20707 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
20708 VEC_COND_EXPRs have a gimple_val condition.
20709 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
20710 can no longer have a GENERIC condition.
20712 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
20715 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
20716 from the isa_delta when -mfpu has been used.
20717 (arm_options_perform_arch_sanity_checks): It's the architecture that
20718 lacks an FPU not the processor.
20720 2021-04-13 Richard Biener <rguenther@suse.de>
20722 PR tree-optimization/100053
20723 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
20724 not use optimistic dominance queries for backedges to validate
20726 (dominated_by_p_w_unex): Add parameter to ignore executable
20727 state on backedges.
20728 (rpo_elim::eliminate_avail): Adjust.
20730 2021-04-13 Jakub Jelinek <jakub@redhat.com>
20733 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
20734 *aarch64_bfxilsi_extrdi): New define_insn patterns.
20736 2021-04-13 Jakub Jelinek <jakub@redhat.com>
20739 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
20740 outermode, return NULL if the result doesn't encode back to the
20741 original byte sequence.
20742 (simplify_gen_subreg): Don't create SUBREGs from constants to
20743 MODE_COMPOSITE_P outermode.
20745 2021-04-12 Jakub Jelinek <jakub@redhat.com>
20747 PR rtl-optimization/99905
20748 * combine.c (expand_compound_operation): If pos + len > modewidth,
20749 perform the right shift by pos in inner_mode and then convert to mode,
20750 instead of trying to simplify a shift of rtx with inner_mode by pos
20751 as if it was a shift in mode.
20753 2021-04-12 Jakub Jelinek <jakub@redhat.com>
20756 * combine.c (simplify_and_const_int_1): Don't optimize varop
20757 away if it has side-effects.
20759 2021-04-12 Martin Liska <mliska@suse.cz>
20761 * doc/extend.texi: Escape @smallexample content.
20763 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
20765 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
20766 alternative in order to load a DFP zero.
20768 2021-04-12 Martin Liska <mliska@suse.cz>
20770 * doc/extend.texi: Be more precise in documentation
20771 of symver attribute.
20773 2021-04-12 Martin Liska <mliska@suse.cz>
20776 * gimplify.c (gimplify_expr): Right now, we unpoison all
20777 variables before a goto <dest>. We should not do it if we are
20780 2021-04-12 Cui,Lili <lili.cui@intel.com>
20782 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
20784 * common/config/i386/i386-common.c (processor_names): Add
20786 (processor_alias_table): Add rocketlake.
20787 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
20788 INTEL_COREI7_ROCKETLAKE.
20789 * config.gcc: Add -march=rocketlake.
20790 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20792 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
20793 (processor_cost_table): Add rocketlake cost.
20794 * config/i386/i386.h (ix86_size_cost) : Define
20796 (processor_type) : Add PROCESSOR_ROCKETLAKE.
20797 (PTA_ROCKETLAKE): Ditto.
20798 * doc/extend.texi: Add rocketlake.
20799 * doc/invoke.texi: Add rocketlake.
20801 2021-04-12 Cui,Lili <lili.cui@intel.com>
20803 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
20804 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
20805 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
20806 * doc/invoke.texi: Change alderlake ISA list.
20808 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
20810 PR middle-end/98088
20811 * omp-expand.c (expand_oacc_collapse_init): Update condition in
20814 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
20817 * config/i386/serializeintrin.h (_serialize): Defined as macro.
20819 2021-04-10 Jakub Jelinek <jakub@redhat.com>
20822 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
20823 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
20825 2021-04-10 Jakub Jelinek <jakub@redhat.com>
20827 PR middle-end/99989
20828 * gimple-ssa-warn-alloca.c
20829 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
20830 0 with integer precision unconditionally.
20832 2021-04-10 Jakub Jelinek <jakub@redhat.com>
20834 PR rtl-optimization/98601
20835 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
20836 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
20837 unaligned_mems handle VOIDmode like BLKmode.
20839 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
20842 * tree.c (free_lang_data_in_decl): Do not release body of
20843 declare_variant_alt.
20845 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
20847 * config/aarch64/aarch64.c (aarch64_option_restore): If the
20848 architecture was specified explicitly and the tuning wasn't,
20849 tune for the architecture rather than the configured default CPU.
20851 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
20853 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
20854 as the temporary register.
20856 2021-04-09 Martin Liska <mliska@suse.cz>
20858 * doc/extend.texi: Move non-target attributes on the top level.
20860 2021-04-09 Martin Liska <mliska@suse.cz>
20862 * doc/invoke.texi: Document minimum and maximum value of the
20863 argument for both supported compression algorithms.
20865 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
20867 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
20868 TLS BSS before TLS data.
20869 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
20871 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
20873 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
20875 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
20877 * match.pd: Extend vec_cond folds to handle shifts.
20879 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
20881 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
20884 2021-04-08 Alex Coplan <alex.coplan@arm.com>
20887 * config/arm/iterators.md (MVE_vecs): New.
20888 (V_elem): Also handle V2DF.
20889 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
20890 (*mve_vdup<mode>): ... this. Remove second alternative since
20891 vec_duplicate of const_int is not canonical RTL, and we don't
20892 want to match symbol_refs.
20893 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
20895 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
20897 * fold-const.c (fold_single_bit_test): Fix typo.
20898 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
20901 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
20903 PR tree-optimization/97513
20904 * tree-vect-slp.c (vect_add_slp_permutation): New function,
20906 (vectorizable_slp_permutation): ...here. Detect cases in which
20907 all VEC_PERM_EXPRs are guaranteed to have the same stepped
20908 permute vector and only generate one permute vector for that case.
20909 Extend that case to handle variable-length vectors.
20911 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
20913 PR tree-optimization/99873
20914 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
20915 (vect_build_slp_instance): Don't split store groups that could
20916 use IFN_STORE_LANES.
20918 2021-04-07 Jakub Jelinek <jakub@redhat.com>
20921 * varasm.c (output_constant_pool_contents): Don't strip name encoding
20922 from XSTR (desc->sym, 0) or from label before passing those to
20925 2021-04-07 Richard Biener <rguenther@suse.de>
20927 PR tree-optimization/99954
20928 * tree-loop-distribution.c: Include tree-affine.h.
20929 (generate_memcpy_builtin): Try using tree-affine to prove
20931 (loop_distribution::classify_builtin_ldst): Always classify
20934 2021-04-07 Richard Biener <rguenther@suse.de>
20936 PR tree-optimization/99947
20937 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
20938 steps vector to avoid pushing elements from the reallocated
20941 2021-04-07 Richard Biener <rguenther@suse.de>
20943 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
20944 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
20946 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
20948 (debug_vn_reference_ops): New.
20950 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
20952 PR tree-optimization/98736
20953 * tree-loop-distribution.c
20954 * (loop_distribution::bb_top_order_init):
20955 Compute RPO with programing order preserved by calling function
20956 rev_post_order_and_mark_dfs_back_seme.
20958 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
20961 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
20962 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
20964 (process_bb_lives): Don't update biggest mode of hard reg for
20965 implicit in multi-register group. Use the new functions for
20966 updating dead_set and unused_set by register notes.
20968 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
20970 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
20973 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
20975 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
20976 (skylake_memset): Likewise.
20977 (skylake_cost): Change CLEAR_RATIO to 17.
20978 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
20979 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
20980 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
20982 2021-04-06 Richard Biener <rguenther@suse.de>
20984 PR tree-optimization/99880
20985 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
20986 set vectorized defs of relevant PHIs.
20988 2021-04-06 Richard Biener <rguenther@suse.de>
20990 PR tree-optimization/99924
20991 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
20992 nodes w/o scalar stmts as visited.
20994 2021-04-06 Alex Coplan <alex.coplan@arm.com>
20997 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
20998 PCS for [su]fix_optab.
21000 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
21002 * config/darwin.c (machopic_legitimize_pic_address): Check
21003 that the current pic register is one of the hard reg set
21004 before setting liveness.
21006 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
21008 * config/darwin.c (machopic_legitimize_pic_address): Fix
21009 whitespace, remove unused code.
21011 2021-04-03 Jakub Jelinek <jakub@redhat.com>
21013 PR tree-optimization/99882
21014 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
21017 2021-04-03 Jakub Jelinek <jakub@redhat.com>
21019 PR rtl-optimization/99863
21020 * dse.c (replace_read): Drop regs_live argument. Instead of
21021 regs_live, use store_insn->fixed_regs_live if non-NULL,
21022 otherwise punt if insns sequence clobbers or sets any hard
21025 2021-04-03 Jakub Jelinek <jakub@redhat.com>
21028 * targhooks.h (default_print_patchable_function_entry_1): Declare.
21029 * targhooks.c (default_print_patchable_function_entry_1): New function,
21030 copied from default_print_patchable_function_entry with an added flags
21032 (default_print_patchable_function_entry): Rewritten into a small
21033 wrapper around default_print_patchable_function_entry_1.
21034 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
21036 (rs6000_print_patchable_function_entry): New function.
21038 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
21040 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
21042 2021-04-01 Jason Merrill <jason@redhat.com>
21045 * common.opt: Document v15 and v16.
21047 2021-04-01 Richard Biener <rguenther@suse.de>
21049 PR tree-optimization/99863
21050 * gimplify.c (gimplify_init_constructor): Recompute vector
21053 2021-04-01 Jakub Jelinek <jakub@redhat.com>
21055 * doc/extend.texi (symver attribute): Fix up syntax errors
21058 2021-04-01 Jakub Jelinek <jakub@redhat.com>
21060 PR tree-optimization/96573
21061 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
21062 also pointer types.
21064 2021-04-01 Richard Biener <rguenther@suse.de>
21066 PR tree-optimization/99856
21067 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
21068 precision to vector element precision.
21070 2021-04-01 Martin Jambor <mjambor@suse.cz>
21072 PR tree-optimization/97009
21073 * tree-sra.c (access_or_its_child_written): New function.
21074 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
21077 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
21080 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
21082 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
21085 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
21086 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
21087 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
21088 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
21089 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
21090 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
21092 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
21093 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
21094 (define_attr "prefixed"): Update initializer.
21096 2021-03-31 Jakub Jelinek <jakub@redhat.com>
21099 * dwarf2out.c (debug_ranges_dwo_section): New variable.
21100 (DW_RANGES_IDX_SKELETON): Define.
21101 (struct dw_ranges): Add begin_entry and end_entry members.
21102 (DEBUG_DWO_RNGLISTS_SECTION): Define.
21103 (add_ranges_num): Adjust r initializer for addition of *_entry
21105 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
21106 set idx to DW_RANGES_IDX_SKELETON.
21107 (use_distinct_base_address_for_range): New function.
21108 (index_rnglists): Don't set r->idx if it is equal to
21109 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
21110 r->end_entry for -gsplit-dwarf if those will be needed by
21112 (output_rnglists): Add DWO argument. If true, switch to
21113 debug_ranges_dwo_section rather than debug_ranges_section.
21114 Adjust l1/l2 label indexes. Only output the offset table when
21115 dwo is true and don't include in there the skeleton range
21116 entry if present. For -gsplit-dwarf, skip ranges that belong
21117 to the other rnglists section. Change return type from void
21118 to bool and return true if there are any range entries for
21119 the other section. For dwarf_split_debug_info use
21120 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
21121 entries instead of DW_RLE_start_end, DW_RLE_start_length and
21122 DW_RLE_base_address. Use use_distinct_base_address_for_range.
21123 (init_sections_and_labels): Initialize debug_ranges_dwo_section
21124 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
21125 and range_base_label indexes.
21126 (dwarf2out_finish): Call index_rnglists earlier before finalizing
21127 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
21128 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
21129 with different dwo arguments.
21130 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
21132 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21134 PR tree-optimization/98268
21135 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
21136 recompute_tree_invariant_for_addr_expr after successfully
21137 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
21139 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21141 PR tree-optimization/99726
21142 * tree-data-ref.c (create_intersect_range_checks_index): Bail
21143 out if there is more than one access function SCEV for the loop
21146 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21148 PR rtl-optimization/97141
21149 PR rtl-optimization/98726
21150 * emit-rtl.c (valid_for_const_vector_p): Return true for
21152 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
21153 poly_wide_int instead of a wide_int.
21154 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
21156 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
21157 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
21158 false for CONST_VECTORs that cannot be forced to memory.
21159 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
21160 is too complex to force to memory, build it up from individual
21163 2021-03-31 Jan Hubicka <jh@suse.cz>
21166 * cgraph.c (cgraph_node::release_body): Fix overactive check.
21168 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
21171 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
21174 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
21176 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
21177 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
21179 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
21180 "rep movsb/stosb" only for known sizes.
21181 * config/i386/i386-options.c (processor_cost_table): Use Ice
21182 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
21183 Rapids and Alder Lake.
21184 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
21185 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
21186 (icelake_memset): Likewise.
21187 (icelake_cost): Likewise.
21188 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
21191 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21194 * config/aarch64/aarch64.c
21195 (aarch64_vectorize_preferred_vector_alignment): Query the size
21196 of the provided SVE vector; do not assume that all SVE vectors
21197 have the same size.
21199 2021-03-31 Jan Hubicka <jh@suse.cz>
21202 * cgraph.c (cgraph_node::release_body): Remove all callers and
21204 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
21205 * cgraphunit.c (cgraph_node::expand): And here.
21207 2021-03-31 Martin Liska <mliska@suse.cz>
21209 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
21210 and one negated condition.
21212 2021-03-31 Jakub Jelinek <jakub@redhat.com>
21213 Richard Sandiford <richard.sandiford@arm.com>
21216 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
21217 constraints on operands[2] and similarly 0 and rk constraints
21218 on operands[1] corresponding to that.
21220 2021-03-31 Jakub Jelinek <jakub@redhat.com>
21223 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
21224 linker doesn't support DWARF sections new in DWARF5.
21225 * config/i386/i386-options.c (ix86_option_override_internal): Default
21226 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
21228 * config.in: Regenerated.
21229 * configure: Regenerated.
21231 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21234 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
21235 available issue_info before using it.
21237 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21240 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
21243 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
21246 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
21247 (altivec_lvsl_reg_<mode>): ... this.
21248 (altivec_lvsr_reg): Change to ...
21249 (altivec_lvsr_reg_<mode>): ... this.
21250 * config/rs6000/predicates.md (vec_set_index_operand): New.
21251 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21252 Enable 32bit variable vec_insert for all TARGET_VSX.
21253 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
21254 Enable 32bit variable vec_insert for p9 and above.
21255 (rs6000_expand_vector_set_var_p8): Rename to ...
21256 (rs6000_expand_vector_set_var_p7): ... this.
21257 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
21259 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
21260 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
21261 gen_altivec_lvsr_reg_di.
21263 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
21266 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
21267 (__rdtscp): Likewise.
21269 2021-03-30 Tamar Christina <tamar.christina@arm.com>
21271 PR tree-optimization/99825
21272 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
21273 Reject non-mult 2 lanes.
21275 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
21278 * config/arm/arm.c (arm_file_start): Fix emission of
21279 Tag_ABI_VFP_args attribute.
21281 2021-03-30 Richard Biener <rguenther@suse.de>
21283 PR tree-optimization/99824
21284 * stor-layout.c (set_min_and_max_values_for_integral_type):
21285 Assert the precision is within the bounds of
21286 WIDE_INT_MAX_PRECISION.
21287 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
21288 the outermost component ref only to lower the access size
21289 and initialize that from the access type.
21291 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
21294 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
21295 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
21297 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
21299 * config/aarch64/aarch64.md
21300 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
21301 attribute to disambiguate between SIMD and FP variants of the
21304 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
21306 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
21307 (analyze_ssa_name_flags): Fix typo in comment.
21309 2021-03-29 Alex Coplan <alex.coplan@arm.com>
21312 * config/aarch64/aarch64-sve-builtins.cc
21313 (function_builder::add_function): Add placeholder_p argument, use
21314 placeholder decls if this is set.
21315 (function_builder::add_unique_function): Instead of conditionally adding
21316 direct overloads, unconditionally add either a direct overload or a
21318 (function_builder::add_overloaded_function): Set placeholder_p if we're
21319 using C++ overloads. Use the obstack for string storage instead
21320 of relying on the tree nodes.
21321 (function_builder::add_overloaded_functions): Don't return early for
21322 m_direct_overloads: we need to add placeholders.
21323 * config/aarch64/aarch64-sve-builtins.h
21324 (function_builder::add_function): Add placeholder_p argument.
21326 2021-03-29 Richard Biener <rguenther@suse.de>
21328 PR tree-optimization/99807
21329 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
21330 assert below VEC_PERM handling.
21332 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21335 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
21336 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
21337 matching const_int 0.
21338 (move_lo_quad_internal_be_<mode>): Likewise.
21339 (move_lo_quad_<mode>): Update for the above.
21340 * config/aarch64/iterators.md (VQ_2E): Delete.
21342 2021-03-29 Jakub Jelinek <jakub@redhat.com>
21344 PR tree-optimization/99777
21345 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
21346 types other than scalar integral types.
21348 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
21350 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
21351 XCOFF TLS reloc decorations.
21353 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
21355 * doc/analyzer.texi (Analyzer Internals): Update link to
21356 "A Memory Model for Static Analysis of C Programs".
21358 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
21360 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
21361 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
21363 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
21364 (rs6000_special_round_type_align): Recursively check innermost first
21367 2021-03-26 Jakub Jelinek <jakub@redhat.com>
21370 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
21371 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
21372 assignment with drap_reg active, queue reg save for hfp with offset 0
21373 and flush queued reg saves. When handling a push with rule18,
21374 defer queueing reg save for hfp and just assert the offset is 0.
21375 (scan_trace): Assert that fde->rule18 is false.
21377 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
21380 * ira-costs.c (record_reg_classes): Put case with
21381 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
21382 * ira.c (ira_setup_alts): Ditto.
21383 * lra-constraints.c (process_alt_operands): Ditto.
21384 * recog.c (asm_operand_ok): Ditto.
21385 * reload.c (find_reloads): Ditto.
21387 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21389 * config/aarch64/aarch64-protos.h
21390 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
21391 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
21392 * config/aarch64/aarch64.c (generic_addrcost_table): Update
21393 accordingly, using the same costs as for post_modify.
21394 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
21395 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
21396 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
21397 (a64fx_addrcost_table): Likewise.
21398 (neoversev1_addrcost_table): New.
21399 (neoversev1_tunings): Use neoversev1_addrcost_table.
21400 (aarch64_address_cost): Use the new post_modify costs for CImode
21403 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21405 * config/aarch64/aarch64.opt
21406 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
21407 * doc/invoke.texi: Document it.
21408 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
21409 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
21410 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
21411 (aarch64_vec_issue_info): New structures.
21412 (cpu_vector_cost): Write comments above the variables rather
21414 (cpu_vector_cost::issue_info): New member variable.
21415 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
21416 and tree-ssa-loop-niter.h.
21417 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
21418 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
21419 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
21420 (thunderx3t110_vector_cost): Initialize issue_info to null.
21421 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
21422 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
21423 (neoversev1_vector_cost): Use them.
21424 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
21425 (aarch64_vector_costs::saw_sve_only_op): New member variable.
21426 (aarch64_vector_costs::num_vector_iterations): Likewise.
21427 (aarch64_vector_costs::scalar_ops): Likewise.
21428 (aarch64_vector_costs::advsimd_ops): Likewise.
21429 (aarch64_vector_costs::sve_ops): Likewise.
21430 (aarch64_vector_costs::seen_loads): Likewise.
21431 (aarch64_simd_vec_costs_for_flags): New function.
21432 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
21433 Count the number of predicate operations required by SVE WHILE
21435 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
21436 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
21437 (aarch64_count_ops): Likewise.
21438 (aarch64_add_stmt_cost): Record whether see an SVE operation
21439 that cannot currently be implementing using Advanced SIMD.
21440 Record issue information about the scalar, Advanced SIMD
21441 and (where relevant) SVE versions of a loop.
21442 (aarch64_vec_op_count::dump): New function.
21443 (aarch64_sve_op_count::dump): Likewise.
21444 (aarch64_estimate_min_cycles_per_iter): Likewise.
21445 (aarch64_adjust_body_cost): If issue information is available,
21446 try to compare the issue rates of the various loop implementations
21447 and increase or decrease the vector body cost accordingly.
21449 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21451 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
21452 Assume a zero cost for induction phis.
21454 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21456 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
21458 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
21459 vector comparisons.
21461 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21463 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
21465 (aarch64_add_stmt_cost): Call it.
21467 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21469 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
21470 New tuning parameter.
21471 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
21472 (aarch64_estimated_sve_vq): New function.
21473 (aarch64_vector_costs::analyzed_vinfo): New member variable.
21474 (aarch64_vector_costs::is_loop): Likewise.
21475 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
21476 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
21477 (aarch64_record_potential_advsimd_unrolling): New function.
21478 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
21479 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
21480 aarch64_analyze_bb_vinfo on the first use of a costs structure.
21481 Detect whether we're vectorizing a loop for SVE that might be
21482 completely unrolled if it used Advanced SIMD instead.
21483 (aarch64_adjust_body_cost_for_latency): New function.
21484 (aarch64_finish_cost): Call it.
21486 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21488 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
21489 (aarch64_init_cost): New function.
21490 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
21491 the default unsigned[3].
21492 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
21493 (TARGET_VECTORIZE_INIT_COST): Override.
21494 (TARGET_VECTORIZE_FINISH_COST): Likewise.
21495 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
21497 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21499 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
21500 (neoversev1_sve_vector_cost): New cost structures.
21501 (neoversev1_vector_cost): Likewise.
21502 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
21504 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21506 * config/aarch64/aarch64-protos.h
21507 (sve_vec_cost::scatter_store_elt_cost): New member variable.
21508 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
21509 accordingly, taking the cost from the cost of a scalar_store.
21510 (a64fx_sve_vector_cost): Likewise.
21511 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
21513 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21515 * config/aarch64/aarch64-protos.h
21516 (simd_vec_cost::store_elt_extra_cost): New member variable.
21517 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
21518 accordingly, using the vec_to_scalar cost for the new field.
21519 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
21520 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
21521 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
21522 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
21523 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
21524 (thunderx3t110_advsimd_vector_cost): Likewise.
21525 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
21527 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21529 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
21530 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
21531 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
21532 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
21533 accordingly, using zero for the new costs.
21534 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
21535 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
21536 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
21537 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
21538 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
21539 (thunderx3t110_advsimd_vector_cost): Likewise.
21540 (aarch64_ld234_st234_vectors): New function.
21541 (aarch64_adjust_stmt_cost): Likewise.
21542 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
21543 the new vector costs.
21545 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21547 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
21548 derived class of simd_vec_cost. Add information about CLAST[AB]
21549 and FADDA instructions.
21550 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
21551 accordingly, using the vec_to_scalar costs for the new fields.
21552 (a64fx_sve_vector_cost): Likewise.
21553 (aarch64_reduc_type): New function.
21554 (aarch64_sve_in_loop_reduction_latency): Likewise.
21555 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
21556 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
21557 that occur in the loop body.
21558 (aarch64_add_stmt_cost): Update call accordingly.
21560 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
21562 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
21564 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
21565 above the fields rather than to the right.
21566 (simd_vec_cost::reduc_i8_cost): New member variable.
21567 (simd_vec_cost::reduc_i16_cost): Likewise.
21568 (simd_vec_cost::reduc_i32_cost): Likewise.
21569 (simd_vec_cost::reduc_i64_cost): Likewise.
21570 (simd_vec_cost::reduc_f16_cost): Likewise.
21571 (simd_vec_cost::reduc_f32_cost): Likewise.
21572 (simd_vec_cost::reduc_f64_cost): Likewise.
21573 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
21574 accordingly, using the vec_to_scalar_cost for the new fields.
21575 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
21576 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
21577 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
21578 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
21579 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
21580 (thunderx3t110_advsimd_vector_cost): Likewise.
21581 (aarch64_use_new_vector_costs_p): New function.
21582 (aarch64_simd_vec_costs): New function, split out from...
21583 (aarch64_builtin_vectorization_cost): ...here.
21584 (aarch64_is_reduction): New function.
21585 (aarch64_detect_vector_stmt_subtype): Likewise.
21586 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
21587 using the new vector costs.
21589 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
21592 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
21593 TLS declarations as public.
21595 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
21597 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
21598 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
21599 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
21600 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
21601 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
21602 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
21603 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
21604 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
21605 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
21607 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
21610 * config.gcc (*-*-cygwin*): Add winnt-d.o
21611 (*-*-mingw*): Likewise.
21612 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
21613 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
21614 * config/i386/t-cygming: Add winnt-d.o.
21615 * config/i386/winnt-d.c: New file.
21617 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
21619 * config/freebsd-d.c: Include memmodel.h.
21621 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
21624 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
21625 * config/t-openbsd: Add openbsd-d.o.
21626 * config/openbsd-d.c: New file.
21628 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
21630 PR tree-optimization/96974
21631 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
21632 with graceful exit.
21634 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
21637 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
21641 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
21642 always_inline in system headers.
21644 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
21646 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
21648 2021-03-25 Jakub Jelinek <jakub@redhat.com>
21651 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
21652 * fold-const.c (operand_compare::operand_equal_p): Don't compare
21653 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
21655 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
21659 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
21660 always_inline in system headers.
21662 2021-03-25 Richard Biener <rguenther@suse.de>
21664 PR tree-optimization/99746
21665 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
21666 the scalar stmt as patterned. Instead set up required things
21669 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
21671 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
21674 2021-03-24 Martin Liska <mliska@suse.cz>
21677 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
21679 * config/i386/i386-options.c (ix86_option_override_internal):
21680 Add run-time assert.
21682 2021-03-24 Martin Jambor <mjambor@suse.cz>
21685 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
21686 parameters with unknown type.
21687 (ipacp_value_safe_for_type): New function.
21688 (propagate_vals_across_arith_jfunc): Verify that the constant type
21689 can be used for a type of the formal parameter.
21690 (propagate_vals_across_ancestor): Likewise.
21691 (propagate_scalar_across_jump_function): Likewise. Pass the type
21692 also to propagate_vals_across_ancestor.
21694 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
21697 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
21699 (movmisalign<mode>_mve_load): Likewise.
21701 2021-03-24 Jakub Jelinek <jakub@redhat.com>
21704 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
21705 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
21707 2021-03-24 Alexandre Oliva <oliva@adacore.com>
21709 * doc/sourcebuild.texi (sysconf): New effective target.
21711 2021-03-24 Alexandre Oliva <oliva@adacore.com>
21713 * config/i386/predicates.md (reg_or_const_vec_operand): New.
21714 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
21715 the now *-prefixed insn_and_split, turn the splitter const vec
21716 into an input for the insn, making it an ignored immediate for
21717 non-split cases, and loaded into the scratch register
21720 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
21723 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
21724 Use define_relaxed_memory_constraint for them.
21726 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
21729 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
21730 colon to the diagnostic message.
21732 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
21734 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
21736 (try_fwprop_subst_note): Use set_info instead of insn_info.
21737 (try_fwprop_subst_pattern): Likewise.
21738 (try_fwprop_subst_notes): Likewise.
21739 (try_fwprop_subst): Likewise.
21740 (forward_propagate_subreg): Likewise.
21741 (forward_propagate_and_simplify): Likewise.
21742 (forward_propagate_into): Likewise.
21743 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
21745 (set_info::single_nondebug_insn_use): Likewise.
21746 (set_info::single_phi_use): Likewise.
21747 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
21749 (set_info::single_nondebug_insn_use): Likewise.
21750 (set_info::single_phi_use): Likewise.
21752 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
21754 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
21756 2021-03-23 Jakub Jelinek <jakub@redhat.com>
21759 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
21760 expand_mult to perform an unsigned rather than a signed
21763 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
21766 * config/i386/cpuid.h (__cpuid): Add __volatile__.
21767 (__cpuid_count): Likewise.
21769 2021-03-23 Richard Biener <rguenther@suse.de>
21771 PR tree-optimization/99721
21772 * tree-vect-slp.c (vect_slp_analyze_node_operations):
21773 Make sure we can schedule the node.
21775 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
21777 * config/riscv/riscv.c (riscv_subword): Take endianness into
21778 account when calculating the byte offset.
21780 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
21782 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
21783 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
21784 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
21785 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
21786 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
21787 new predicate "subreg_lowpart_operator"
21789 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
21791 * config/riscv/riscv.c (riscv_swap_instruction): New function
21792 to byteswap an SImode rtx containing an instruction.
21793 (riscv_trampoline_init): Byteswap the generated instructions
21796 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
21798 * common/config/riscv/riscv-common.c
21799 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
21800 * config.gcc (riscv32be-*, riscv64be-*): Set
21801 TARGET_BIG_ENDIAN_DEFAULT to 1.
21802 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
21803 depending on default endianness.
21804 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
21805 * config/riscv/linux.h (LINK_SPEC): Likewise.
21806 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
21807 default endianness.
21808 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
21810 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
21812 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
21813 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
21814 * config/riscv/linux.h (LINK_SPEC): Likewise.
21815 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
21817 (BYTES_BIG_ENDIAN): Handle big endian.
21818 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
21819 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
21821 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
21823 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
21825 * regcprop.c (find_oldest_value_reg): Ask target whether
21826 different mode is fine for replacement register.
21828 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
21830 PR tree-optimization/99296
21831 * value-range.cc (irange::irange_set_1bit_anti_range): New.
21832 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
21833 * value-range.h (irange::irange_set_1bit_anti_range): New.
21835 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
21838 * config/aarch64/constraints.md (UtQ): Use
21839 define_relaxed_memory_constraint for it.
21840 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
21841 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
21842 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
21843 (have_relaxed_memory_constraints): New static var.
21844 (relaxed_memory_start, relaxed_memory_end): Ditto.
21845 (add_constraint): Add arg is_relaxed_memory. Check name for
21846 relaxed memory. Set up is_relaxed_memory in constraint_data and
21847 have_relaxed_memory_constraints. Adjust calls.
21848 (choose_enum_order): Process relaxed memory.
21849 (write_tm_preds_h): Ditto.
21850 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
21851 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
21852 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
21853 * ira-lives.c (single_reg_class): Use
21854 insn_extra_relaxed_memory_constraint.
21855 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
21856 * lra-constraints.c (valid_address_p): Use
21857 insn_extra_relaxed_memory_constraint instead of other memory
21859 (process_alt_operands): Process CT_RELAXED_MEMORY.
21860 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
21861 * recog.c (asm_operand_ok, preprocess_constraints): Process
21863 * reload.c (find_reloads): Ditto.
21864 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
21865 * stmt.c (parse_input_constraint): Use
21866 insn_extra_relaxed_memory_constraint.
21868 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
21871 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
21874 2021-03-22 Alex Coplan <alex.coplan@arm.com>
21877 * config/arm/arm-protos.h (neon_make_constant): Add generate
21878 argument to guard emitting insns, default to true.
21879 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
21880 CONST_VECTORs which neon_make_constant can't handle.
21881 (neon_vdup_constant): Add generate argument, avoid emitting
21882 insns if it's not set.
21883 (neon_make_constant): Plumb new generate argument through.
21884 * config/arm/constraints.md (Ui): New. Use it...
21885 * config/arm/mve.md (*mve_mov<mode>): ... here.
21886 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
21887 synthesize constants.
21889 2021-03-22 Richard Biener <rguenther@suse.de>
21891 * debug.h: Add deprecation warning.
21893 2021-03-22 Richard Biener <rguenther@suse.de>
21895 PR tree-optimization/99694
21896 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
21899 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
21902 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
21903 after type checking.
21905 2021-03-22 Jakub Jelinek <jakub@redhat.com>
21909 * dwarf2out.c (get_full_len): Use get_precision rather than
21911 (add_const_value_attribute): Make sure add_AT_wide argument has
21912 precision prec rather than some very wide one.
21914 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
21916 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
21917 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
21918 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
21919 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
21920 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
21921 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
21922 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
21923 *fix_trunc<mode>si2_internal): Fix empty split condition.
21924 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
21925 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
21926 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
21927 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
21929 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
21932 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
21933 Convert idx to DImode.
21934 (rs6000_expand_vector_set_var_p8): Likewise.
21936 2021-03-21 Jakub Jelinek <jakub@redhat.com>
21939 * dwarf2out.c (insert_float): Change return type from void to
21940 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
21941 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
21944 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
21947 * config/i386/i386.c (construct_container): Check cfun != NULL
21948 before accessing silent_p.
21950 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
21952 * asan.c: Fix typos in comments.
21954 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
21956 PR rtl-optimization/99680
21957 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
21958 (process_address_1): Check empty constraint before using
21961 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
21963 * config/rs6000/rs6000.c (power10_cost): New.
21964 (rs6000_option_override_internal): Set Power10 costs.
21965 (rs6000_issue_rate): Set Power10 issue rate.
21966 * config/rs6000/power10.md: Rewrite for Power10.
21968 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
21971 * lra-constraints.c (process_address_1): Don't use unknown
21972 constraint for address constraint.
21974 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
21977 * config.gcc (powerpc-*-darwin8): Delete the reference to
21978 the now removed darwin8.h.
21980 2021-03-19 Olivier Hainque <hainque@adacore.com>
21983 * config/vxworksae.h (VX_CPU_PREFIX): Define.
21985 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
21987 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
21989 2021-03-19 Tamar Christina <tamar.christina@arm.com>
21991 PR tree-optimization/99656
21992 * tree-vect-slp-patterns.c (linear_loads_p,
21993 complex_add_pattern::matches, is_eq_or_top,
21994 vect_validate_multiplication, complex_mul_pattern::matches,
21995 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
21996 * tree-vectorizer.h: (complex_load_perm_t): Removed.
21997 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
21998 complex_load_perm_t.
22000 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
22003 * config/i386/i386-options.c (ix86_init_machine_status): Set
22005 * config/i386/i386.c (init_cumulative_args): Set silent_p to
22007 (construct_container): Return early for return and argument
22008 errors if silent_p is true.
22009 * config/i386/i386.h (machine_function): Add silent_p.
22011 2021-03-19 Jakub Jelinek <jakub@redhat.com>
22014 * config/arm/constraints.md (Ds): New constraint.
22015 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
22016 constraint instead of w,Dm.
22018 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
22020 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
22023 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
22025 PR middle-end/99641
22026 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
22027 array type, do the computation of the current position in sizetype.
22029 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
22032 * lra-constraints.c (process_address_1): Use lookup_constraint
22033 only for a single constraint.
22035 2021-03-18 Martin Sebor <msebor@redhat.com>
22037 PR middle-end/99502
22038 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
22039 (inbounds_memaccess_p): ...to this. Check the ending offset of
22040 the accessed member.
22042 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
22044 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
22045 %> quote markers to error messages.
22046 (gcn_goacc_validate_dims): Likewise.
22047 (gcn_conditional_register_usage): Remove exclaimation mark from error
22049 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
22051 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
22053 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
22056 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
22057 Kito Cheng <kito.cheng@sifive.com>
22059 * config/riscv/riscv.c (riscv_block_move_straight): Change type
22060 to unsigned HOST_WIDE_INT for parameter and local variable with
22061 HOST_WIDE_INT type.
22062 (riscv_adjust_block_mem): Ditto.
22063 (riscv_block_move_loop): Ditto.
22064 (riscv_expand_block_move): Ditto.
22066 2021-03-18 Nick Clifton <nickc@redhat.com>
22068 * config/v850/v850.c (construct_restore_jr): Increase static
22070 (construct_save_jarl): Likewise.
22071 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
22073 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22075 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
22076 (aarch64_override_options_internal): Use it.
22077 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
22080 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
22082 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
22083 error message format issues.
22084 (nios2_option_override): Likewise.
22085 (nios2_expand_fpu_builtin): Likewise.
22086 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
22087 truncation warning.
22088 (nios2_expand_custom_builtin): More error message format fixes.
22089 (nios2_expand_rdwrctl_builtin): Likewise.
22090 (nios2_expand_rdprs_builtin): Likewise.
22091 (nios2_expand_eni_builtin): Likewise.
22092 (nios2_expand_builtin): Likewise.
22093 (nios2_register_custom_code): Likewise.
22094 (nios2_valid_target_attribute_rec): Likewise.
22095 (nios2_add_insn_asm): Fix uninitialized variable warning.
22097 2021-03-17 Jan Hubicka <jh@suse.cz>
22099 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
22100 of gather to match reality.
22101 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
22103 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22105 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
22106 to compare against CC_REG rather than NE.
22108 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
22111 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
22112 inline assembly statements.
22113 (ix86_print_operand): Update 'P' handling for -fno-plt.
22115 2021-03-17 Tamar Christina <tamar.christina@arm.com>
22118 * config/aarch64/aarch64.c
22119 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
22121 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
22124 * config/rs6000/predicates.md (branch_comparison_operator): Allow
22125 ordered and unordered for CCFPmode, if flag_finite_math_only.
22127 2021-03-16 Jakub Jelinek <jakub@redhat.com>
22130 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
22131 rather than ASHIFT.
22132 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
22134 2021-03-16 Martin Liska <mliska@suse.cz>
22137 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
22138 cl_optimization_compare function.
22140 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
22142 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
22145 2021-03-16 Jakub Jelinek <jakub@redhat.com>
22148 * config/i386/i386.h (struct machine_function): Add
22149 has_explicit_vzeroupper bitfield.
22150 * config/i386/i386-expand.c (ix86_expand_builtin): Set
22151 cfun->machine->has_explicit_vzeroupper when expanding
22152 IX86_BUILTIN_VZEROUPPER.
22153 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
22154 Do the mode switching only when TARGET_VZEROUPPER, expensive
22155 optimizations turned on and not optimizing for size.
22156 (pass_insert_vzeroupper::gate): Enable even when
22157 cfun->machine->has_explicit_vzeroupper is set.
22159 2021-03-16 Jakub Jelinek <jakub@redhat.com>
22162 * config/aarch64/aarch64.c
22163 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
22164 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
22165 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
22167 2021-03-15 Richard Biener <rguenther@suse.de>
22169 PR tree-optimization/98834
22170 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
22171 subsetting by truncating the access size.
22173 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
22175 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
22176 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
22179 2021-03-15 Martin Liska <mliska@suse.cz>
22181 * spellcheck.c: Add missing comma in initialization.
22183 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
22185 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
22186 alternative 2 and alternative 1 with alternative 3 using
22187 YW register constraint.
22188 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
22189 using YW register constraint.
22190 (*vec_extractv16qi_zext): Ditto.
22191 (*vec_extractv4si): Merge alternatives 4 and 5
22192 using Yw register constraint.
22193 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
22195 2021-03-13 Martin Sebor <msebor@redhat.com>
22197 PR tree-optimization/99489
22198 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
22199 is not a call statement.
22201 2021-03-13 Jakub Jelinek <jakub@redhat.com>
22203 PR tree-optimization/99544
22204 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
22205 if for vector types multiplication can't be done in type's mode.
22207 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
22210 * config/sparc/constraints.md (w): Rename to...
22211 (W): ... this and ditch previous implementation.
22212 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
22213 (*movdf_insn_sp64): Likewise.
22214 (*mov<VM64:mode>_insn_sp64): Likewise.
22215 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
22217 (atomic_compare_and_swap_leon3_1): Likewise.
22218 (*atomic_compare_and_swapdi_v8plus): Likewise.
22219 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
22220 architecture and add missing address validity check during LRA.
22222 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
22225 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
22226 occuring for assumed-size arrays in use_device_{ptr,addr}.
22228 2021-03-12 Jakub Jelinek <jakub@redhat.com>
22231 * config/i386/constraints.md (YW): New internal constraint.
22232 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
22233 (*<sse2_avx2>_<insn><mode>3<mask_name>,
22234 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
22235 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
22237 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
22238 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
22239 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
22240 into one, use Yw instead of former x,v.
22241 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
22242 the last alternative.
22243 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
22244 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
22245 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
22246 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
22247 into one, use <v_Yw> instead of former x,v.
22248 (avx2_interleave_highv32qi<mask_name>,
22249 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
22250 constraints. Add && <mask_avx512bw_condition> to condition.
22251 (avx2_interleave_lowv32qi<mask_name>,
22252 vec_interleave_lowv16qi<mask_name>,
22253 avx2_interleave_highv16hi<mask_name>,
22254 vec_interleave_highv8hi<mask_name>,
22255 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
22256 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
22257 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
22258 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
22259 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
22260 Yw instead of v in constraints.
22261 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
22262 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
22263 instead of Yv in constraints.
22264 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
22265 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
22266 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
22267 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
22268 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
22270 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
22271 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
22272 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
22273 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
22274 two, one with just x, another isa avx512vl with v.
22276 2021-03-12 Martin Liska <mliska@suse.cz>
22278 * doc/invoke.texi: Add missing param documentation.
22280 2021-03-11 David Malcolm <dmalcolm@redhat.com>
22283 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
22284 analyzer/trimmed-graph.o.
22285 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
22286 feasibility checking to reflect new implementation.
22287 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
22289 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
22291 2021-03-11 David Malcolm <dmalcolm@redhat.com>
22293 * digraph.cc (selftest::test_shortest_paths): Update
22294 shortest_paths init for new param. Add test of
22295 SPS_TO_GIVEN_TARGET.
22296 * shortest-paths.h (enum shortest_path_sense): New.
22297 (shortest_paths::shortest_paths): Add "sense" param.
22298 Update for renamings. Generalize to use "sense" param.
22299 (shortest_paths::get_shortest_path): Rename param.
22300 (shortest_paths::m_sense): New field.
22301 (shortest_paths::m_prev): Rename...
22302 (shortest_paths::m_best_edge): ...to this.
22303 (shortest_paths::get_shortest_path): Update for renamings.
22304 Conditionalize flipping of path on sense of traversal.
22306 2021-03-11 David Malcolm <dmalcolm@redhat.com>
22308 * digraph.cc (selftest::test_shortest_paths): Add test coverage
22309 for paths from B and C.
22310 * shortest-paths.h (shortest_paths::shortest_paths): Handle
22311 unreachable nodes, rather than asserting.
22313 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
22316 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
22317 xcoff_tbss_section_name.
22318 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
22319 * xcoffout.c (xcoff_tbss_section_name): Delete.
22320 * xcoffout.h (xcoff_tbss_section_name): Delete.
22322 2021-03-11 Richard Biener <rguenther@suse.de>
22324 PR tree-optimization/99523
22325 * tree-cfg.c (dump_function_to_file): Dump SSA names
22326 w/o identifier to the decls section as well, not only those
22327 without a VAR_DECL.
22329 2021-03-11 Jakub Jelinek <jakub@redhat.com>
22332 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
22333 function calls with lhs fail if the lhs don't have compatible types.
22335 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
22337 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
22338 Change FRAME_POINTER_REGNUM to correspond to a new faked
22339 register faked_fp, part of GENNONACR_REGS like faked_ap.
22340 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
22341 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
22342 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
22343 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
22344 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
22346 (CRIS_REAL_FP_REGNUM): New constant.
22347 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
22348 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
22349 (cris_initial_elimination_offset): Handle elimination changes
22350 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
22351 and add one from FRAME_POINTER_REGNUM to
22352 HARD_FRAME_POINTER_REGNUM.
22353 (cris_expand_prologue, cris_expand_epilogue): Emit code for
22354 hard_frame_pointer_rtx instead of frame_pointer_rtx.
22356 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
22359 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
22360 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
22362 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
22365 * lra-constraints.c (process_address_1): Don't check unknown
22366 constraint, use X for empty constraint.
22368 2021-03-10 Alex Coplan <alex.coplan@arm.com>
22370 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
22371 Fix typo in comment describing "is_ha" argument.
22373 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
22375 * doc/sourcebuild.texi: Document LRA target selector.
22377 2021-03-10 David Malcolm <dmalcolm@redhat.com>
22379 * doc/ux.texi: Add subsection contrasting interactive versus
22380 batch usage of GCC.
22382 2021-03-10 Joel Hutton <joel.hutton@arm.com>
22385 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
22387 (vectorizable_load): Fix gather load mask check condition.
22389 2021-03-10 Richard Biener <rguenther@suse.de>
22391 PR tree-optimization/99510
22392 * tree.c (check_aligned_type): Check that the candidate
22393 has TYPE_USER_ALIGN set instead of matching with the
22396 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
22398 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
22399 float and vector integer modes only if the mode is not larger.
22401 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
22403 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
22405 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
22407 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
22409 * ira-lives.c (single_reg_class): Ditto.
22411 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22413 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
22414 the architecture-specific rtems.h.
22415 (aarch64-*-rtems*): Likewise.
22416 (arm*-*-rtems*): Likewise.
22417 (epiphany-*-rtems*): Likewise.
22418 (riscv*-*-rtems*): Likewise.
22420 2021-03-09 Jakub Jelinek <jakub@redhat.com>
22422 PR tree-optimization/99305
22423 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
22424 before integer_all_onesp instead of vice versa.
22426 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
22428 * common/config/arm/arm-common.c (arm_config_default): Change type
22429 of 'i' to unsigned.
22431 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
22434 * lra-constraints.c (process_address_1): Process constraint 'g'
22435 separately and digital constraints containing more one digit.
22437 2021-03-09 Nick Clifton <nickc@redhat.com>
22439 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
22440 (DWARF"_DEBUGGING_INFO): Define.
22442 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
22445 * calls.c (initialize_argument_information): When the argument
22446 is passed by reference, do not make a copy in a thunk only if
22447 the argument is already in memory. Remove redundant test for
22448 the case of callee copy.
22450 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
22453 * lra-constraints.c (process_address_1): Process 0..9 constraints
22454 in process_address_1.
22456 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
22458 * config/s390/s390.c (struct s390_processor processor_table):
22459 Binutils name string must not be empty.
22461 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
22463 * config/arc/arc.c (arc_attr_type): Remove function.
22465 2021-03-09 Martin Liska <mliska@suse.cz>
22468 * config/i386/i386-options.c (ix86_option_override_internal):
22469 Set isa_flags for OPTS argument and not for the global
22472 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
22474 * config/rs6000/predicates.md (ds_form_mem_operand): Check
22477 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
22480 * config/rs6000/predicates.md (ds_form_mem_operand) New
22482 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
22483 ds_form_mem_operand in ld/lwa patterns.
22484 * config/rs6000/fusion.md: Regenerate file.
22486 2021-03-08 Martin Sebor <msebor@redhat.com>
22488 PR middle-end/98266
22489 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
22490 (array_bounds_checker::check_array_bounds): Call it.
22492 2021-03-08 Martin Sebor <msebor@redhat.com>
22494 PR middle-end/97631
22495 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
22496 (handle_builtin_stxncpy_strncat): Rename locals. Determine
22497 destination size from allocation calls. Issue a more appropriate
22499 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
22500 (handle_builtin_memset): Same.
22502 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
22505 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
22506 to ensure we do not have an Altivec style address.
22507 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
22508 an Altivec style address.
22509 (*vsx_le_perm_store_<mode>): Likewise.
22510 (splitters after *vsx_le_perm_store_<mode>): Likewise.
22511 (vsx_load_<mode>): Disable special expander if passed an Altivec
22513 (vsx_store_<mode>): Likewise.
22515 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22518 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
22519 (aarch64_simd_shift_imm_vec_hi): Likewise.
22520 (aarch64_simd_shift_imm_vec_si): Likewise.
22521 (aarch64_simd_shift_imm_vec_di): Likewise.
22522 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
22523 predicate from above.
22524 (aarch64_shrn<mode>_insn_be): Likewise.
22525 (aarch64_rshrn<mode>_insn_le): Likewise.
22526 (aarch64_rshrn<mode>_insn_be): Likewise.
22527 (aarch64_shrn2<mode>_insn_le): Likewise.
22528 (aarch64_shrn2<mode>_insn_be): Likewise.
22529 (aarch64_rshrn2<mode>_insn_le): Likewise.
22530 (aarch64_rshrn2<mode>_insn_be): Likewise.
22532 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
22535 * lra-constraints.c (skip_contraint_modifiers): New function.
22536 (process_address_1): Use it before lookup_constraint call.
22538 2021-03-08 Martin Liska <mliska@suse.cz>
22541 * config/i386/i386-options.c (ix86_option_override_internal):
22542 Enable UINTR and HRESET for -march that supports it.
22544 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
22546 * config/s390/s390.c (f_constraint_p): New function.
22547 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
22548 (TARGET_MD_ASM_ADJUST): Likewise.
22550 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
22553 * tree-nested.c (convert_local_reference_stmt): Avoid calling
22554 lookup_field_for_decl for Fortran module (= namespace context).
22556 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
22558 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
22559 comparison with arithmetic right shift.
22560 (s390_expand_vcond): No need for a force_reg anymore.
22561 s390_vec_compare will do it.
22562 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
22563 immediate operands.
22565 2021-03-07 Jakub Jelinek <jakub@redhat.com>
22568 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
22569 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
22571 * config/i386/sse.md (v_Yw): New define_mode_attr.
22572 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
22573 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
22575 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
22576 xYw in constraints.
22578 2021-03-06 Julian Brown <julian@codesourcery.com>
22580 * tree-pretty-print.c (dump_generic_node): Emit non-generic
22581 address space info for aggregates.
22583 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
22585 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
22587 2021-03-05 Jakub Jelinek <jakub@redhat.com>
22589 PR middle-end/99322
22590 * tree-cfg.c (bb_to_omp_idx): New variable.
22591 (execute_build_cfg): Release the bb_to_omp_idx vector after
22592 cleanup_tree_cfg returns.
22593 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
22594 for bb_to_omp_idx being a vec<int> instead of pointer to array
22596 (make_edges): Remove bb_to_omp_idx local variable, don't pass
22597 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
22598 vec<int> instead of pointer to array of ints and don't free/release
22600 (remove_bb): When removing a bb and placing forced label somewhere
22601 else, ensure it is put into the same OpenMP region during cfg
22602 pass if possible or to entry successor as fallback. Unregister
22603 bb from bb_to_omp_idx.
22605 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
22608 * lra-constraints.c (process_address_1): Skip decomposing address
22609 for asm insn operand with unknown constraint.
22611 2021-03-05 Martin Jambor <mjambor@suse.cz>
22614 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
22615 corresponding speculative edges if we are about to resolve
22616 sepculation. Make edge direct (and so resolve speculations) before
22617 removing it from call_site_hash.
22618 (cgraph_edge::make_direct): Relax the initial assert to allow calling
22619 the function on speculative direct edges.
22621 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
22623 PR rtl-optimization/99376
22624 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
22625 of low-order zero bits is too large, set the result to 0 directly.
22627 2021-03-04 Jakub Jelinek <jakub@redhat.com>
22629 PR middle-end/93235
22630 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
22631 SUBREG and a SUBREG to op_mode can't be created.
22633 2021-03-04 Alex Coplan <alex.coplan@arm.com>
22636 * config/aarch64/aarch64-sve-builtins.cc
22637 (function_resolver::require_vector_type): Handle error_mark_node.
22639 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
22641 * cfgexpand.c (expand_asm_loc): Pass new parameter.
22642 (expand_asm_stmt): Likewise.
22643 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
22645 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
22646 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
22647 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
22648 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
22649 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
22650 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
22651 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
22652 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
22653 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
22654 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
22655 * doc/tm.texi (md_asm_adjust): Likewise.
22656 * target.def (md_asm_adjust): Likewise.
22658 2021-03-04 Richard Biener <rguenther@suse.de>
22660 PR middle-end/97855
22661 * tree-pretty-print.c: Poison pp_printf.
22662 (dump_decl_name): Avoid use of pp_printf.
22663 (dump_block_node): Likewise.
22664 (dump_generic_node): Likewise.
22666 2021-03-04 Martin Sebor <msebor@redhat.com>
22668 PR middle-end/96963
22669 PR middle-end/94655
22670 * builtins.c (handle_array_ref): New helper.
22671 (handle_mem_ref): New helper.
22672 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
22673 into new helper functions. Correct a workaround for vectorized
22676 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
22678 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
22679 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
22680 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
22681 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
22682 attribute for Power10.
22683 * config/rs6000/mma.md (*movoo): Likewise.
22684 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
22685 (define_mode_attr bits): Add DD/TD modes.
22686 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
22687 store_conditionalpti): Update size attribute for Power10.
22689 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22692 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
22693 -Wuninitialized, -Wmaybe-uninitialized.
22694 (wide-int.o-warn): Likewise.
22696 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
22698 * common/config/arm/arm-common.c: Include configargs.h.
22699 (arm_config_default): New function.
22700 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
22701 processors that do not support Thumb. Take into account the
22702 --with-mode configuration setting for selecting the default.
22703 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
22704 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
22706 2021-03-03 Martin Liska <mliska@suse.cz>
22708 PR gcov-profile/97461
22709 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
22711 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
22714 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
22715 point back the hard frame pointer to its default location when the
22716 frame is larger than SEH_MAX_FRAME_SIZE.
22718 2021-03-03 Jakub Jelinek <jakub@redhat.com>
22721 * config/i386/predicates.md (logic_operator): New define_predicate.
22722 * config/i386/i386.md (mov + mem using comm arith peephole2):
22723 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
22724 and the inner mode is [QH]Imode.
22726 2021-03-03 Jakub Jelinek <jakub@redhat.com>
22729 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
22730 (new_loc_list): Clear end_entry.
22731 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
22732 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
22734 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
22735 initialize also end_entry.
22737 2021-03-03 Jakub Jelinek <jakub@redhat.com>
22740 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
22741 partitions, if in non-layout mode after reorder_blocks also move
22742 affected blocks to ensure a single partition transition.
22744 2021-03-03 Jason Merrill <jason@redhat.com>
22747 * cgraphunit.c (process_function_and_variable_attributes): Don't
22748 warn about flatten on an alias if the target also has it.
22749 * cgraph.h (symtab_node::get_alias_target_tree): New.
22751 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
22753 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
22754 period to symbol name.
22755 (tls_get_addr_internal<mode>): Same.
22757 2021-03-02 David Malcolm <dmalcolm@redhat.com>
22760 * diagnostic-show-locus.c
22761 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
22764 2021-03-02 Martin Sebor <msebor@redhat.com>
22766 PR middle-end/99276
22767 * builtins.c (warn_for_access): Remove stray warning text.
22769 2021-03-02 Martin Sebor <msebor@redhat.com>
22771 PR middle-end/99295
22772 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
22775 2021-03-02 Jakub Jelinek <jakub@redhat.com>
22778 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
22779 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
22780 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
22781 DW_MACRO_define_strx and DW_MACRO_undef_strx.
22782 (save_macinfo_strings): Use DW_MACRO_*_str* even with
22783 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
22784 DW_MACRO_undef_strx.
22786 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
22788 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
22790 (BT_FN_V8HI_V8HI_UINT): Likewise.
22791 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
22792 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
22793 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
22794 New builtin definitions.
22795 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
22796 vector extension version.
22797 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
22798 available with current -march level.
22799 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
22800 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
22801 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
22802 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
22803 (vec_extend_to_fp32_lo): Likewise.
22804 (vec_round_from_fp32): Likewise.
22805 (vec_convert_to_fp16): Likewise.
22806 (vec_convert_from_fp16): Likewise.
22807 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
22808 (vclfnls_v8hi): Likewise.
22809 (vcrnfs_v8hi): Likewise.
22810 (vcfn_v8hi): Likewise.
22811 (vcnf_v8hi): Likewise.
22813 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
22815 * common/config/s390/s390-common.c (processor_flags_table): New entry.
22816 * config.gcc: Enable arch14 for --with-arch and --with-tune.
22817 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
22818 arch14 for unknown CPU models.
22819 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
22820 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
22821 (s390_get_sched_attrmask): Likewise.
22822 (s390_get_unit_mask): Likewise.
22823 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
22824 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
22825 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
22826 (TARGET_NNPA_P): New macro definitions.
22827 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
22828 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
22830 2021-03-02 Jakub Jelinek <jakub@redhat.com>
22832 PR middle-end/95757
22833 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
22834 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
22835 != 1 comparisons if name is lhs of a comparison.
22837 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
22841 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
22842 * config/darwin.c (darwin_should_restore_cfa_state): New.
22843 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
22844 * doc/tm.texi: Regenerated.
22845 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
22846 * dwarf2cfi.c (connect_traces): If the target requests, restore
22847 the CFA expression after a DW_CFA_restore.
22848 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
22850 2021-03-01 Martin Liska <mliska@suse.cz>
22853 * optc-save-gen.awk: Add 4 more exceptions.
22855 2021-03-01 Nathan Sidwell <nathan@acm.org>
22858 * tree.h (TYPE_ALIGN_RAW): New accessor.
22859 (TYPE_ALIGN): Use it.
22861 2021-03-01 Jan Hubicka <jh@suse.cz>
22864 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
22866 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
22869 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
22870 point the hard frame pointer to the SSE register save area instead
22871 of the general register save area. Perform only minimal adjustment
22872 for small frames if it is initially not correctly aligned.
22873 (ix86_expand_prologue): Remove early saves for a SEH target.
22874 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
22876 2021-02-28 Jakub Jelinek <jakub@redhat.com>
22879 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
22880 typo - referneced -> referenced.
22881 * tree.c (component_ref_size): Fix comment typo -
22882 refernce -> reference.
22883 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
22884 traling -> trailing.
22885 (aliasing_component_refs_p): Fix comment typos -
22886 refernce -> reference and refernece -> reference and
22887 traling -> trailing.
22888 (nonoverlapping_refs_since_match_p): Fix comment typo -
22889 referneces -> references.
22890 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
22891 referneces -> references.
22893 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
22895 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
22896 diagnostic message to avoid use of a contraction and format
22899 2021-02-27 Jakub Jelinek <jakub@redhat.com>
22902 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
22903 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
22904 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
22905 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
22908 2021-02-26 Richard Biener <rguenther@suse.de>
22910 PR middle-end/99281
22911 * expr.c (store_field): For calls with return-slot optimization
22912 and addressable return type expand the store directly.
22914 2021-02-26 Richard Biener <rguenther@suse.de>
22917 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
22919 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
22922 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
22925 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
22927 * config.gcc: Add rs6000-pcrel-opt.o.
22928 * config/rs6000/rs6000-pcrel-opt.c: New file.
22929 * config/rs6000/pcrel-opt.md: New file.
22930 * config/rs6000/predicates.md: Add d_form_memory predicate.
22931 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
22932 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
22933 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
22934 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
22935 and make_pass_pcrel_opt().
22936 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
22937 (rs6000_option_override_internal): Add pcrel-opt.
22938 (rs6000_delegitimize_address): Support pcrel-opt.
22939 (rs6000_opt_masks): Add pcrel-opt.
22940 (pcrel_opt_valid_mem_p): New function.
22941 (reg_to_non_prefixed): Make global.
22942 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
22943 (output_pcrel_opt_reloc): New function.
22944 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
22945 (pcrel_extern_addr): Set loads_extern_addr.
22946 Add include for pcrel-opt.md.
22947 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
22948 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
22951 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
22954 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
22955 If TARGET_64BIT and dest is SUBREG, we check the width, if it
22956 equal to SImode, we use SImode operation, just like what we are
22959 2021-02-26 Marek Polacek <polacek@redhat.com>
22961 * builtins.c (warn_for_access): Fix typos.
22963 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
22965 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
22966 mark in front of the immediate quantity.
22967 (<optab>_rolsi3_uxtw): Likewise.
22969 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
22972 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
22973 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
22974 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
22975 address and disable when the FPCXT is not available.
22976 (nonsecure_call_value_reg_thumb2): Likewise.
22978 2021-02-25 Nathan Sidwell <nathan@acm.org>
22981 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
22983 2021-02-25 Tamar Christina <tamar.christina@arm.com>
22985 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
22987 2021-02-25 Richard Biener <rguenther@suse.de>
22989 PR tree-optimization/99253
22990 * tree-vect-loop.c (check_reduction_path): First compute
22991 code, then verify out-of-loop uses.
22993 2021-02-25 Jakub Jelinek <jakub@redhat.com>
22996 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
22998 2021-02-25 Jakub Jelinek <jakub@redhat.com>
23000 PR tree-optimization/80635
23001 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
23002 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
23003 has mode precision.
23005 2021-02-25 Richard Biener <rguenther@suse.de>
23007 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
23008 load_map population.
23009 (vect_match_slp_patterns_2): Revert part of last change.
23010 (vect_analyze_slp): Do not interleave optimize_load_redistribution
23011 with pattern detection but do it afterwards. Dump the
23012 whole SLP graph after pattern recognition and load
23013 redistribution optimization finished.
23015 2021-02-24 Jakub Jelinek <jakub@redhat.com>
23018 * omp-low.c (struct omp_context): Add teams_nested_p and
23019 nonteams_nested_p members.
23020 (scan_omp_target): Diagnose teams nested inside of target with other
23021 directives strictly nested inside of the same target.
23022 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
23023 ctx->nonteams_nested_p as needed.
23025 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
23027 PR inline-asm/99123
23028 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
23030 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
23032 * config/cris/cris.c (cris_expand_prologue): Set
23033 current_function_static_stack_size, if flag_stack_usage_info.
23035 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
23037 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
23038 (rs6000_final_prescan_insn): Adjust.
23039 (rs6000_asm_output_opcode): Likewise.
23041 2021-02-24 Martin Sebor <msebor@redhat.com>
23043 PR middle-end/97172
23044 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
23045 from function arguments.
23047 2021-02-24 Tamar Christina <tamar.christina@arm.com>
23049 PR tree-optimization/99220
23050 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
23051 node from cache when it's about to be deleted.
23053 2021-02-24 Jakub Jelinek <jakub@redhat.com>
23055 PR tree-optimization/99225
23056 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
23057 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
23058 build_int_cst (..., 1). Formatting fixes.
23060 2021-02-24 Tamar Christina <tamar.christina@arm.com>
23062 PR tree-optimization/99149
23063 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
23065 (vect_slp_reset_pattern): Remove.
23066 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
23067 (complex_mul_pattern::build, complex_fma_pattern::build,
23068 complex_fms_pattern::build): Fix ref counts.
23069 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
23070 when node is being deleted.
23071 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
23072 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
23074 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
23076 2021-02-24 Matthias Klose <doko@ubuntu.com>
23079 2020-12-07 Matthias Klose <doko@ubuntu.com>
23081 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
23082 and ENABLE_RTL_FLAG_CHECKING.
23084 2021-02-24 Richard Biener <rguenther@suse.de>
23087 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
23089 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
23091 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
23092 (vsx_assemble_pair): ...to this.
23093 (*mma_assemble_pair): Rename from this...
23094 (*vsx_assemble_pair): ...to this.
23095 (mma_disassemble_pair): Rename from this...
23096 (vsx_disassemble_pair): ...to this.
23097 (*mma_disassemble_pair): Rename from this...
23098 (*vsx_disassemble_pair): ...to this.
23099 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
23100 BU_COMPAT): New macros.
23101 (mma_assemble_pair): Rename from this...
23102 (vsx_assemble_pair): ...to this.
23103 (mma_disassemble_pair): Rename from this...
23104 (vsx_disassemble_pair): ...to this.
23105 (mma_assemble_pair): New compatibility built-in.
23106 (mma_disassemble_pair): Likewise.
23107 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
23108 (RS6000_BUILTIN_COMPAT): Define.
23109 (bdesc_compat): New.
23110 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
23111 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
23112 and VSX_BUILTIN_ASSEMBLE_PAIR.
23113 (rs6000_init_builtins): Register compatibility built-ins.
23114 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
23115 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
23116 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
23117 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
23118 (__builtin_vsx_assemble_pair): ...to this.
23119 (__builtin_mma_disassemble_pair): Rename from this...
23120 (__builtin_vsx_disassemble_pair): ...to this.
23122 2021-02-23 Martin Liska <mliska@suse.cz>
23125 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
23126 with different alignment. That leads to an invalid red zone
23127 size allocated in runtime.
23129 2021-02-23 Jakub Jelinek <jakub@redhat.com>
23131 PR tree-optimization/99204
23132 * fold-const.c (fold_read_from_constant_string): Check that
23133 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
23135 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
23136 Kewen Lin <linkw@gcc.gnu.org>
23138 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
23139 (rotl<mode>3_insert_3): ...this.
23140 (plus_ior_xor): New code_iterator.
23141 (define_split for GPR rl*imi): New splitter.
23142 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
23143 for integer merging.
23145 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23147 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
23149 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
23150 into a register when the above is enabled.
23151 * config/aarch64/aarch64.c (neoversev1_tunings):
23152 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
23153 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
23155 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
23157 * config/cris/cris.c (cris_print_operand) <'T'>: Change
23158 valid operand from is now an addi mult-value to shift-value.
23159 * config/cris/cris.md (*addi): Change expression of scaled
23160 operand from mult to ashift.
23161 * config/cris/cris.md (*addi_reload): New insn_and_split.
23163 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
23166 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
23167 hook_bool_const_tree_hwi_hwi_const_tree_true.
23168 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
23170 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
23172 PR rtl-optimization/98791
23173 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
23174 for unordered modes.
23176 2021-02-22 Martin Liska <mliska@suse.cz>
23178 * tree-inline.c (inline_forbidden_p): Set
23179 inline_forbidden_reason.
23181 2021-02-22 Richard Biener <rguenther@suse.de>
23183 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
23186 2021-02-22 Richard Biener <rguenther@suse.de>
23188 PR tree-optimization/99165
23189 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
23190 Accumulate changed to ret.
23192 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
23195 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
23197 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
23199 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
23202 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
23204 (trunctf<DFP_ALL:mode>2): Likewise.
23205 (trunctdtf2_vr): Likewise.
23206 (trunctdtf2): Likewise.
23207 (extend<DFP_ALL:mode>tf2_vr): Likewise.
23208 (extend<DFP_ALL:mode>tf2): Likewise.
23209 (extendtftd2_vr): Likewise.
23210 (extendtftd2): Likewise.
23212 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
23214 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
23215 add memory alternative.
23216 (tf_to_fprx2): New pattern.
23218 2021-02-19 Martin Sebor <msebor@redhat.com>
23221 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
23222 (attr_access::free_lang_data): Remove a spurious test.
23224 2021-02-19 Nathan Sidwell <nathan@acm.org>
23226 * doc/invoke.texi (flang-info-module-read): Document.
23228 2021-02-19 Martin Liska <mliska@suse.cz>
23230 PR translation/99167
23231 * params.opt: Fix typo.
23233 2021-02-19 Richard Biener <rguenther@suse.de>
23235 PR middle-end/99122
23236 * tree-inline.c (inline_forbidden_p): Do not inline functions
23237 with VLA arguments or return value.
23239 2021-02-19 Jakub Jelinek <jakub@redhat.com>
23242 * config/arm/arm.md (*stack_protect_combined_set_insn,
23243 *stack_protect_combined_test_insn): If force_const_mem result
23244 is not valid general operand, force its address into the destination
23247 2021-02-19 Jakub Jelinek <jakub@redhat.com>
23250 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
23251 pad or non-local label, put FORCED_LABELs from bb b after that label
23252 rather than before it.
23254 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
23257 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
23258 expand_vector_broadcast' to emit the vec_duplicate operand.
23260 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
23262 PR rtl-optimization/96264
23263 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
23266 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
23269 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
23270 looking up the retain attribute.
23271 (resolve_unique_section): Likewise.
23272 (get_variable_section): Likewise.
23273 (switch_to_section): Likewise. Warn when a symbol without the
23274 retain attribute and a symbol with the retain attribute are
23275 placed in the section with the same name, instead of the used
23277 * doc/extend.texi: Document the "retain" attribute.
23279 2021-02-18 Nathan Sidwell <nathan@acm.org>
23282 * doc/invoke.texi (flang-info-include-translate): Document header
23285 2021-02-18 Richard Biener <rguenther@suse.de>
23287 PR middle-end/99122
23288 * ipa-fnsummary.c (analyze_function_body): Set
23289 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
23290 * tree-inline.c (insert_init_debug_bind): Pass NULL for
23291 error_mark_node values.
23292 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
23294 (setup_one_parameter): Delay force_value_to_type until when
23297 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
23299 PR tree-optimization/99142
23300 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
23302 2021-02-18 Jakub Jelinek <jakub@redhat.com>
23304 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
23305 wide_int_bitmask::wide_int_bitmask (uint64_t),
23306 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
23307 wide_int_bitmask::operator ~ () const,
23308 wide_int_bitmask::operator | (wide_int_bitmask) const,
23309 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
23311 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
23312 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
23313 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
23314 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
23315 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
23316 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
23317 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
23318 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
23319 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
23320 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
23321 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
23322 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
23323 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
23324 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
23325 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
23326 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
23327 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
23328 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
23329 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
23330 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
23331 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
23332 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
23333 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
23334 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
23336 2021-02-18 Jakub Jelinek <jakub@redhat.com>
23338 PR middle-end/99109
23339 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
23340 (build_printable_array_type): ... this. Add nelts argument. For
23341 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
23342 nelts, call build_array_type_nelts.
23343 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
23344 instead of build_zero_elt_array_type and build_array_type_nelts.
23346 2021-02-18 Jakub Jelinek <jakub@redhat.com>
23349 * config/i386/i386.c (distance_non_agu_define): Don't call
23350 extract_insn_cached here.
23351 (ix86_lea_outperforms): Save and restore recog_data around call
23352 to distance_non_agu_define and distance_agu_use.
23353 (ix86_ok_to_clobber_flags): Remove.
23354 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
23355 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
23356 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
23357 into define_insn. Move the splitting to define_peephole2 and
23358 check there using peep2_regno_dead_p if FLAGS_REG is dead.
23360 2021-02-17 Julian Brown <julian@codesourcery.com>
23362 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
23365 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
23368 * config/mips/mips.c (mips_symbol_insns): Do not use
23369 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
23371 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
23373 PR inline-asm/98096
23374 * stmt.c (resolve_operand_name_1): Take inout operands into account
23375 for access to labels by names.
23376 * doc/extend.texi: Describe counting operands for accessing labels.
23378 2021-02-16 Richard Biener <rguenther@suse.de>
23380 PR tree-optimization/38474
23381 * tree-ssa-structalias.c (variable_info::address_taken): New.
23382 (new_var_info): Initialize address_taken.
23383 (process_constraint): Set address_taken.
23384 (solve_constraints): Use the new address_taken flag rather
23385 than is_reg_var for sorting variables.
23386 (dump_constraint): Dump the variable number if the name
23389 2021-02-16 Jakub Jelinek <jakub@redhat.com>
23392 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
23393 multiply by 4096 and for inbranch by 8192.
23394 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
23395 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
23397 2021-02-15 Maya Rashish <coypu@sdf.org>
23399 * config/aarch64/aarch64.c (aarch64_init_builtins):
23400 Call SUBTARGET_INIT_BUILTINS.
23402 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
23404 PR rtl-optimization/98872
23405 * init-regs.c (initialize_uninitialized_regs): Skip initialization
23406 if CONST0_RTX is NULL.
23408 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
23410 PR rtl-optimization/98863
23411 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
23412 (function_info::build_info): Turn into a declaration, moving the
23413 definition to internals.h.
23414 (function_info::bb_walker): Declare.
23415 (function_info::create_reg_use): Likewise.
23416 (function_info::calculate_potential_phi_regs): Take a build_info
23418 (function_info::place_phis, function_info::create_ebbs): Declare.
23419 (function_info::calculate_ebb_live_in_for_debug): Likewise.
23420 (function_info::populate_backedge_phis): Delete.
23421 (function_info::start_block, function_info::end_block): Declare.
23422 (function_info::populate_phi_inputs): Delete.
23423 (function_info::m_potential_phi_regs): Move information to build_info.
23424 * rtl-ssa/internals.h: New file.
23425 (function_info::bb_phi_info): New class.
23426 (function_info::build_info): Moved from functions.h.
23427 Add a constructor and destructor.
23428 (function_info::build_info::ebb_use): Delete.
23429 (function_info::build_info::ebb_def): Likewise.
23430 (function_info::build_info::bb_live_out): Likewise.
23431 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
23432 (function_info::build_info::potential_phi_regs): Likewise.
23433 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
23434 (function_info::build_info::ebb_def_regs): Likewise.
23435 (function_info::build_info::bb_phis): Likewise.
23436 (function_info::build_info::bb_mem_live_out): Likewise.
23437 (function_info::build_info::bb_to_rpo): Likewise.
23438 (function_info::build_info::def_stack): Likewise.
23439 (function_info::build_info::old_def_stack_limit): Likewise.
23440 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
23441 Remove the regno argument. Push the previous definition onto the
23442 definition stack where necessary.
23443 * rtl-ssa/accesses.cc: Include internals.h.
23444 * rtl-ssa/changes.cc: Likewise.
23445 * rtl-ssa/blocks.cc: Likewise.
23446 (function_info::build_info::build_info): Define.
23447 (function_info::build_info::~build_info): Likewise.
23448 (function_info::bb_walker): New class.
23449 (function_info::bb_walker::bb_walker): Define.
23450 (function_info::add_live_out_use): Convert a logarithmic-complexity
23451 test into a linear one. Allow the same definition to be passed
23453 (function_info::calculate_potential_phi_regs): Moved from
23454 functions.cc. Take a build_info parameter and store the
23455 information there instead.
23456 (function_info::place_phis): New function.
23457 (function_info::add_entry_block_defs): Update call to record_reg_def.
23458 (function_info::calculate_ebb_live_in_for_debug): New function.
23459 (function_info::add_phi_nodes): Use bb_phis to decide which
23460 registers need phi nodes and initialize ebb_def_regs accordingly.
23461 Do not add degenerate phis here.
23462 (function_info::add_artificial_accesses): Use create_reg_use.
23463 Assert that all definitions are listed in the DF LR sets.
23464 Update call to record_reg_def.
23465 (function_info::record_block_live_out): Record live-out register
23466 values in the phis of successor blocks. Use the live-out set
23467 when processing the last block in an EBB, instead of always
23468 using the live-in sets of successor blocks. AND the live sets
23469 with the set of registers that have been defined in the EBB,
23470 rather than with all potential phi registers. Cope correctly
23471 with branches back to the start of the current EBB.
23472 (function_info::start_block): New function.
23473 (function_info::end_block): Likewise.
23474 (function_info::populate_phi_inputs): Likewise.
23475 (function_info::create_ebbs): Likewise.
23476 (function_info::process_all_blocks): Rewrite into a multi-phase
23478 * rtl-ssa/functions.cc: Include internals.h.
23479 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
23480 (function_info::init_function_data): Remove caller.
23481 * rtl-ssa/insns.cc: Include internals.h
23482 (function_info::create_reg_use): New function. Lazily any
23483 degenerate phis needed by the linear RPO view.
23484 (function_info::record_use): Use create_reg_use. When processing
23485 debug uses, use potential_phi_regs and test it before checking
23486 whether the register is live on entry to the current EBB. Lazily
23487 calculate ebb_live_in_for_debug.
23488 (function_info::record_call_clobbers): Update call to record_reg_def.
23489 (function_info::record_def): Likewise.
23491 2021-02-15 Martin Liska <mliska@suse.cz>
23493 * toplev.c (init_asm_output): Free output of
23494 gen_command_line_string function.
23495 (process_options): Likewise.
23497 2021-02-15 Martin Liska <mliska@suse.cz>
23499 * params.opt: Add 2 missing Param keywords.
23501 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
23503 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
23505 2021-02-15 Jakub Jelinek <jakub@redhat.com>
23507 PR tree-optimization/99079
23508 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
23509 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
23510 require both type and TREE_TYPE (@1) to be integral types and either
23511 type having smaller or equal precision, or TREE_TYPE (@1) being
23512 unsigned type, or type being signed type. If TREE_TYPE (@1)
23513 doesn't have wrapping overflow, perform the subtraction of one in
23516 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
23517 Richard Biener <rguether@suse.de>
23520 * ipa-reference.c (ipa_init): Only conditinally initialize
23521 reference_vars_to_consider.
23522 (propagate): Conditionally deninitialize reference_vars_to_consider.
23523 (ipa_reference_write_optimization_summary): Sanity check that
23524 reference_vars_to_consider is not allocated.
23526 2021-02-13 Levy Hsu <admin@levyhsu.com>
23529 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
23530 extend parameter to get_si_mem_base_reg declaration.
23531 (get_si_mem_base_reg): Add extend parameter. Set it.
23532 (analyze): Pass extend arg to get_si_mem_base_reg.
23533 (transform): Likewise. Use it when rewriting mems.
23534 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
23535 loads and emit sign/zero extending load followed by subreg move.
23537 2021-02-13 Jim Wilson <jimw@sifive.com>
23540 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
23541 exit when !reload_completed. Only perform check for compressed reg
23542 if reload_completed.
23543 (riscv_rtx_costs): In MEM case, when optimizing for size and
23544 shorten memrefs, if not compressible, then increase cost.
23546 2021-02-13 Jakub Jelinek <jakub@redhat.com>
23548 PR rtl-optimization/98439
23549 * recog.c (pass_split_before_regstack::gate): Enable even when
23550 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
23553 2021-02-13 Jakub Jelinek <jakub@redhat.com>
23556 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
23557 swap of V2SImode elements in memory into DImode memory rotate by 32.
23559 2021-02-12 Martin Sebor <msebor@redhat.com>
23561 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
23563 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
23565 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
23566 m_temp_obstack rather than m_obstack to allocate the temporary use.
23568 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
23570 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
23571 as read-modify operations.
23573 2021-02-12 Richard Biener <rguenther@suse.de>
23575 PR middle-end/38474
23576 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
23577 fbi->aa_walk_budget is bigger than zero. Update
23578 fbi->aa_walk_budget.
23579 (param_change_prob): Likewise.
23580 * ipa-prop.c (detect_type_change_from_memory_writes):
23581 Properly account walk_aliased_vdefs.
23582 (parm_preserved_before_stmt_p): Canonicalize updates.
23583 (parm_ref_data_preserved_p): Likewise.
23584 (parm_ref_data_pass_through_p): Likewise.
23585 (determine_known_aggregate_parts): Account own alias queries.
23587 2021-02-12 Martin Liska <mliska@suse.cz>
23589 * opts-common.c (decode_cmdline_option): Release werror_arg.
23590 * opts.c (gen_producer_string): Release output of
23591 gen_command_line_string.
23593 2021-02-12 Richard Biener <rguenther@suse.de>
23595 PR tree-optimization/38474
23596 * params.opt (-param=max-store-chains-to-track=): New param.
23597 (-param=max-stores-to-track=): Likewise.
23598 * doc/invoke.texi (max-store-chains-to-track): Document.
23599 (max-stores-to-track): Likewise.
23600 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
23602 (pass_store_merging::m_n_stores): Likewise.
23603 (pass_store_merging::terminate_and_process_chain): Update
23604 m_n_stores and m_n_chains.
23605 (pass_store_merging::process_store): Likewise. Terminate
23606 oldest chains if the number of stores or chains get too large.
23607 (imm_store_chain_info::terminate_and_process_chain): Dump
23610 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
23612 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
23613 the cold section, emit a nop before the directive if the previous
23614 active instruction can throw.
23616 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
23619 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
23620 memory addresses that are legal for quad word accesses.
23622 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
23625 * config/arm/thumb2.md (*doloop_end_internal): Generate
23626 alternative sequence to handle long range branches.
23628 2021-02-11 Joel Hutton <joel.hutton@arm.com>
23630 PR tree-optimization/98772
23631 * optabs-tree.c (supportable_half_widening_operation): New function
23632 to check for supportable V8QI->V8HI widening patterns.
23633 * optabs-tree.h (supportable_half_widening_operation): New function.
23634 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
23635 to create promotion stmts for V8QI->V8HI widening patterns.
23636 (vectorizable_conversion): Add case for V8QI->V8HI.
23638 2021-02-11 Richard Biener <rguenther@suse.de>
23640 * sparseset.h (SPARSESET_ELT_BITS): Remove.
23641 (SPARSESET_ELT_TYPE): Use unsigned int.
23642 * fwprop.c: Do not include sparseset.h.
23644 2021-02-10 Jakub Jelinek <jakub@redhat.com>
23647 * varasm.c (declare_weak): For -fsyntax-only, allow even
23648 TREE_ASM_WRITTEN function decls.
23650 2021-02-10 Jakub Jelinek <jakub@redhat.com>
23653 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
23654 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
23655 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
23656 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
23657 calling simplify_gen_subreg on it.
23659 2021-02-10 Martin Liska <mliska@suse.cz>
23661 * config/nvptx/nvptx.c (nvptx_option_override): Use
23662 flag_patchable_function_entry instead of the removed
23663 function_entry_patch_area_size.
23665 2021-02-10 Martin Liska <mliska@suse.cz>
23667 PR tree-optimization/99002
23668 PR tree-optimization/99026
23669 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
23670 leak when adjacent cases are merged.
23671 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
23673 (make_pass_lower_switch): Remove trailing whitespace.
23674 * tree-switch-conversion.h (release_clusters): New.
23676 2021-02-10 Richard Biener <rguenther@suse.de>
23678 PR rtl-optimization/99054
23679 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
23680 (fixup_partitions): Adjust.
23681 (rtl_verify_edges): Likewise.
23683 2021-02-10 Jakub Jelinek <jakub@redhat.com>
23685 PR middle-end/99007
23686 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
23687 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
23690 2021-02-10 Richard Biener <rguenther@suse.de>
23693 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
23696 2021-02-10 Richard Biener <rguenther@suse.de>
23698 PR tree-optimization/99024
23699 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
23700 clear loop->aux if it is associated with the destroyed loop_vinfo.
23702 2021-02-10 Martin Liska <mliska@suse.cz>
23704 PR tree-optimization/99002
23705 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
23708 2021-02-10 Martin Liska <mliska@suse.cz>
23711 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
23712 a reference exists.
23714 2021-02-10 Jakub Jelinek <jakub@redhat.com>
23717 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
23718 at class scope for DWARF5+.
23720 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
23722 PR rtl-optimization/96015
23723 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
23724 (relax_delay_slots): When deleting a jump to the next active
23725 instruction over a barrier, first delete the barrier if the
23726 jump is the only way to reach the target label.
23728 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
23730 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
23731 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
23732 vector multiplies and vect.alu for SSRA.
23733 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
23734 vect.mul cost field.
23735 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
23736 * config/arm/arm.c: Likewise.
23738 2021-02-09 Richard Biener <rguenther@suse.de>
23740 PR tree-optimization/98863
23741 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
23742 * tree-ssa-sccvn.c (last_pushed_avail): New global.
23743 (rpo_elim::eliminate_push_avail): Chain pushed avails.
23744 (unwind_state::avail_top): Add.
23745 (do_unwind): Rewrite unwinding of avail entries.
23746 (do_rpo_vn): Initialize last_pushed_avail and
23747 avail_top of the undo state.
23749 2021-02-09 Jakub Jelinek <jakub@redhat.com>
23751 PR middle-end/99004
23752 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
23753 const char * to char * and free those pointers after use.
23755 2021-02-09 Richard Biener <rguenther@suse.de>
23757 PR tree-optimization/99017
23758 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
23759 zero vector cost entries.
23761 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
23763 PR middle-end/98974
23764 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
23765 parameter in vectorizable_condition.
23767 2021-02-08 Richard Biener <rguenther@suse.de>
23770 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
23772 2021-02-08 Martin Liska <mliska@suse.cz>
23775 * cfgexpand.c (pass_expand::execute): Parse per-function option
23776 flag_patchable_function_entry and use it.
23777 * common.opt: Remove function_entry_patch_area_size and
23778 function_entry_patch_area_start global variables.
23779 * opts.c (parse_and_check_patch_area): New function.
23780 (common_handle_option): Use it.
23781 * opts.h (parse_and_check_patch_area): New function.
23782 * toplev.c (process_options): Parse and use
23783 function_entry_patch_area_size.
23785 2021-02-08 Martin Sebor <msebor@redhat.com>
23787 * doc/extend.texi (attribute malloc): Correct typos.
23789 2021-02-05 Nathan Sidwell <nathan@acm.org>
23792 * gcc.c (driver::maybe_run_linker): Check for input file
23793 accessibility if not linking.
23795 2021-02-05 Richard Biener <rguenther@suse.de>
23797 PR tree-optimization/98855
23798 * tree-vectorizer.h (add_stmt_cost): New overload.
23799 * tree-vect-slp.c (li_cost_vec_cmp): New.
23800 (vect_bb_slp_scalar_cost): Cost individual loop regions
23801 separately. Account for the scalar instance root stmt.
23803 2021-02-05 Tom de Vries <tdevries@suse.de>
23806 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
23808 (bit_test_cluster::emit): Reuse location_t for newly created
23810 (switch_decision_tree::try_switch_expansion): Preserve
23812 * tree-switch-conversion.h: Change function signatures.
23814 2021-02-05 Jakub Jelinek <jakub@redhat.com>
23817 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
23818 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
23819 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
23820 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
23822 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23824 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
23825 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
23826 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
23827 (vget_high_f16): Reimplement using new builtin.
23828 (vget_high_f32): Likewise.
23829 (vget_high_f64): Likewise.
23830 (vget_high_p8): Likewise.
23831 (vget_high_p16): Likewise.
23832 (vget_high_p64): Likewise.
23833 (vget_high_s8): Likewise.
23834 (vget_high_s16): Likewise.
23835 (vget_high_s32): Likewise.
23836 (vget_high_s64): Likewise.
23837 (vget_high_u8): Likewise.
23838 (vget_high_u16): Likewise.
23839 (vget_high_u32): Likewise.
23840 (vget_high_u64): Likewise.
23842 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23844 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
23845 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
23846 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
23847 (vget_low_f16): Reimplement using new builtin.
23848 (vget_low_f32): Likewise.
23849 (vget_low_f64): Likewise.
23850 (vget_low_p8): Likewise.
23851 (vget_low_p16): Likewise.
23852 (vget_low_p64): Likewise.
23853 (vget_low_s8): Likewise.
23854 (vget_low_s16): Likewise.
23855 (vget_low_s32): Likewise.
23856 (vget_low_s64): Likewise.
23857 (vget_low_u8): Likewise.
23858 (vget_low_u16): Likewise.
23859 (vget_low_u32): Likewise.
23860 (vget_low_u64): Likewise.
23862 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
23864 * gcc.c (print_multilib_info): Check all required argument is provided
23867 2021-02-05 liuhongt <hongtao.liu@intel.com>
23870 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
23871 generate integer mask comparison for 128/256-bits vector when
23872 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
23873 delete redundant !maskcmp condition.
23874 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
23876 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
23877 condition directly to if (maskcmp), add extra check for
23878 cmpmode, it should be MODE_INT.
23879 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
23880 parameters op_true/op_false.
23881 (ix86_use_mask_cmp_p): New.
23883 2021-02-05 liuhongt <hongtao.liu@intel.com>
23886 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
23887 Remove m_GENERIC from ~list.
23888 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
23890 2021-02-04 David Malcolm <dmalcolm@redhat.com>
23893 * diagnostic-show-locus.c (compatible_locations_p): Require
23894 locations in the same macro map to be either both from the
23895 macro definition, or both from the macro arguments.
23897 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
23899 * config/aarch64/aarch64-simd-builtins.def: Add
23900 [su]mull_hi_lane[q] builtin generator macros.
23901 * config/aarch64/aarch64-simd.md
23902 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
23903 (aarch64_<su>mull_hi_lane<mode>): Define.
23904 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
23905 (aarch64_<su>mull_hi_laneq<mode>): Define.
23906 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
23907 builtin instead of inline asm.
23908 (vmull_high_lane_s32): Likewise.
23909 (vmull_high_lane_u16): Likewise.
23910 (vmull_high_lane_u32): Likewise.
23911 (vmull_high_laneq_s16): Likewise.
23912 (vmull_high_laneq_s32): Likewise.
23913 (vmull_high_laneq_u16): Likewise.
23914 (vmull_high_laneq_u32): Liekwise.
23916 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
23918 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
23919 builtin generator macros.
23920 * config/aarch64/aarch64-simd.md
23921 (aarch64_<su>mull_hi_n<mode>_insn): Define.
23922 (aarch64_<su>mull_hi_n<mode>): Define.
23923 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
23924 instead of inline asm.
23925 (vmull_high_n_s32): Likewise.
23926 (vmull_high_n_u16): Likewise.
23927 (vmull_high_n_u32): Likewise.
23929 2021-02-04 Richard Biener <rguenther@suse.de>
23931 PR tree-optimization/98855
23932 * tree-vect-loop.c (vectorizable_phi): Do not cost
23933 single-argument PHIs.
23934 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
23935 * tree-vect-stmts.c (vectorizable_bswap): Also perform
23936 costing for SLP operation.
23938 2021-02-04 Martin Liska <mliska@suse.cz>
23940 * doc/extend.texi: Mention -mprefer-vector-width in target
23943 2021-02-03 Martin Sebor <msebor@redhat.com>
23945 PR tree-optimization/98937
23946 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
23947 Flush pointer_query cache.
23949 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
23951 * config/rs6000/genfusion.pl (gen_2logical): Add missing
23952 fixes based on patch review.
23953 * config/rs6000/fusion.md: Regenerate file.
23955 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
23957 * config/rs6000/t-rs6000: Comment out auto generation of
23960 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
23962 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
23963 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
23964 (output_file_start): Add gfx908.
23965 * config/gcn/gcn.opt (gpu_type): Add gfx908.
23966 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
23967 (MULTILIB_DIRNAMES): Add gfx908.
23968 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
23969 (main): Recognize gfx908.
23970 * config/gcn/t-omp-device: Add gfx908.
23972 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
23974 * config/aarch64/aarch64-simd-builtins.def: Add
23975 [su]mlsl_hi_lane[q] builtin macro generators.
23976 * config/aarch64/aarch64-simd.md
23977 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
23978 (aarch64_<su>mlsl_hi_lane<mode>): Define.
23979 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
23980 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
23981 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
23982 builtin instead of inline asm.
23983 (vmlsl_high_lane_s32): Likewise.
23984 (vmlsl_high_lane_u16): Likewise.
23985 (vmlsl_high_lane_u32): Likewise.
23986 (vmlsl_high_laneq_s16): Likewise.
23987 (vmlsl_high_laneq_s32): Likewise.
23988 (vmlsl_high_laneq_u16): Likewise.
23989 (vmlsl_high_laneq_u32): Likewise.
23990 (vmlal_high_laneq_u32): Likewise.
23992 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
23994 * config/aarch64/aarch64-simd-builtins.def: Add
23995 [su]mlal_hi_lane[q] builtin generator macros.
23996 * config/aarch64/aarch64-simd.md
23997 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
23998 (aarch64_<su>mlal_hi_lane<mode>): Define.
23999 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
24000 (aarch64_<su>mlal_hi_laneq<mode>): Define.
24001 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
24002 builtin instead of inline asm.
24003 (vmlal_high_lane_s32): Likewise.
24004 (vmlal_high_lane_u16): Likewise.
24005 (vmlal_high_lane_u32): Likewise.
24006 (vmlal_high_laneq_s16): Likewise.
24007 (vmlal_high_laneq_s32): Likewise.
24008 (vmlal_high_laneq_u16): Likewise.
24009 (vmlal_high_laneq_u32): Likewise.
24011 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24013 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
24014 builtin generator macros.
24015 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
24017 (aarch64_<su>mlsl_hi_n<mode>): Define.
24018 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
24019 instead of inline asm.
24020 (vmlsl_high_n_s32): Likewise.
24021 (vmlsl_high_n_u16): Likewise.
24022 (vmlsl_high_n_u32): Likewise.
24024 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24026 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
24027 builtin generator macros.
24028 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
24030 (aarch64_<su>mlal_hi_n<mode>): Define.
24031 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
24032 instead of inline asm.
24033 (vmlal_high_n_s32): Likewise.
24034 (vmlal_high_n_u16): Likewise.
24035 (vmlal_high_n_u32): Likewise.
24037 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24039 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
24041 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
24043 (aarch64_<su>mlal_hi<mode>_insn): This.
24044 (aarch64_<su>mlal_hi<mode>): Define.
24045 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
24046 instead of inline asm.
24047 (vmlal_high_s16): Likewise.
24048 (vmlal_high_s32): Likewise.
24049 (vmlal_high_u8): Likewise.
24050 (vmlal_high_u16): Likewise.
24051 (vmlal_high_u32): Likewise.
24053 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
24055 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
24056 after calling alter_subreg() on a (mem).
24058 2021-02-03 Martin Liska <mliska@suse.cz>
24061 * lto-streamer-out.c (produce_lto_section): Fill up missing
24063 * lto-streamer.h (struct lto_section): Add _padding field.
24065 2021-02-03 Richard Biener <rguenther@suse.de>
24067 * lto-streamer.c (lto_get_section_name): Free temporary
24069 * tree-loop-distribution.c
24070 (loop_distribution::merge_dep_scc_partitions): Free edge data.
24072 2021-02-03 Jakub Jelinek <jakub@redhat.com>
24074 PR middle-end/97487
24075 * ifcvt.c (noce_can_force_operand): New function.
24076 (noce_emit_move_insn): Use it.
24077 (noce_try_sign_mask): Likewise. Formatting fix.
24079 2021-02-03 Jakub Jelinek <jakub@redhat.com>
24081 PR middle-end/97971
24082 * lra-constraints.c (process_alt_operands): For inline asm, don't call
24083 fatal_insn, but instead return false.
24085 2021-02-03 Jakub Jelinek <jakub@redhat.com>
24087 PR tree-optimization/98287
24088 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
24091 2021-02-03 Tamar Christina <tamar.christina@arm.com>
24093 PR tree-optimization/98928
24094 * tree-vect-loop.c (vect_analyze_loop_2): Change
24095 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
24096 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
24097 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
24098 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
24100 2021-02-02 Richard Biener <rguenther@suse.de>
24102 * gimple-loop-interchange.cc (prepare_data_references):
24104 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
24105 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
24106 * tree-vect-stmts.c (vectorizable_condition): Do not
24108 (vectorizable_comparison): Likewise.
24110 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24112 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
24113 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
24114 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
24115 (vrsqrteq_u32): Likewise.
24117 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24119 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
24120 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
24121 (aarch64_sqxtun2<mode>_be): Likewise.
24122 (aarch64_sqxtun2<mode>): Likewise.
24123 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
24124 (vqmovun_high_s32): Likewise.
24125 (vqmovun_high_s64): Likewise.
24126 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
24128 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24130 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
24132 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
24134 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24136 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
24137 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
24138 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
24139 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
24140 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
24141 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
24142 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
24143 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
24145 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24147 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
24148 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
24149 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
24151 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24153 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
24154 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
24156 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24158 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
24159 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
24160 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
24161 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
24162 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
24163 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
24164 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
24165 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
24166 NONE builtin flags.
24168 2021-02-02 Jakub Jelinek <jakub@redhat.com>
24170 PR tree-optimization/98848
24171 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
24172 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
24174 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
24177 * expr.c: Check mode before calling store_expr.
24179 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
24181 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
24183 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
24184 instruction using expression ior.
24185 (mve_vornq_u<mode>): New expander.
24186 (mve_vornq_f<mode>): Use ior code instead of unspec.
24187 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
24189 2021-02-02 Alexandre Oliva <oliva@adacore.com>
24191 * tree-nested.c (convert_nonlocal_reference_op): Move
24192 current_function_decl restore after re-gimplification.
24193 (convert_local_reference_op): Likewise.
24195 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24197 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
24199 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
24201 (aarch64_rshrn<mode>_insn_be): Likewise.
24202 (aarch64_rshrn<mode>): Likewise.
24203 (aarch64_rshrn2<mode>_insn_le): Likewise.
24204 (aarch64_rshrn2<mode>_insn_be): Likewise.
24205 (aarch64_rshrn2<mode>): Likewise.
24206 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
24207 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
24209 (vrshrn_high_n_s32): Likewise.
24210 (vrshrn_high_n_s64): Likewise.
24211 (vrshrn_high_n_u16): Likewise.
24212 (vrshrn_high_n_u32): Likewise.
24213 (vrshrn_high_n_u64): Likewise.
24214 (vrshrn_n_s16): Likewise.
24215 (vrshrn_n_s32): Likewise.
24216 (vrshrn_n_s64): Likewise.
24217 (vrshrn_n_u16): Likewise.
24218 (vrshrn_n_u32): Likewise.
24219 (vrshrn_n_u64): Likewise.
24221 2021-02-01 Sergei Trofimovich <siarheit@google.com>
24223 PR tree-optimization/98499
24224 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
24225 conservatively and assume all possible side-effects.
24227 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24229 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
24230 vec_unpacku_hi_): Define builtins.
24231 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
24233 (vmovl_high_s16): Likewise.
24234 (vmovl_high_s32): Likewise.
24235 (vmovl_high_u8): Likewise.
24236 (vmovl_high_u16): Likewise.
24237 (vmovl_high_u32): Likewise.
24239 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24241 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
24243 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
24245 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
24247 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
24249 (vabdl_s16): Likewise.
24250 (vabdl_s32): Likewise.
24251 (vabdl_u8): Likewise.
24252 (vabdl_u16): Likewise.
24253 (vabdl_u32): Likewise.
24254 * config/aarch64/iterators.md (ABDL): New int iterator.
24255 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
24257 2021-02-01 Martin Sebor <msebor@redhat.com>
24259 * tree.h (BLOCK_VARS): Add comment.
24260 (BLOCK_SUBBLOCKS): Same.
24261 (BLOCK_SUPERCONTEXT): Same.
24262 (BLOCK_ABSTRACT_ORIGIN): Same.
24263 (inlined_function_outer_scope_p): Same.
24265 2021-02-01 Martin Sebor <msebor@redhat.com>
24267 PR middle-end/97172
24268 * attribs.c (attr_access::free_lang_data): Define new function.
24269 * attribs.h (attr_access::free_lang_data): Declare new function.
24271 2021-02-01 Richard Biener <rguenther@suse.de>
24273 * vec.h (auto_vec::auto_vec): Add memory stat parameters
24275 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
24277 2021-02-01 Tamar Christina <tamar.christina@arm.com>
24279 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
24280 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
24282 2021-02-01 Richard Biener <rguenther@suse.de>
24284 PR rtl-optimization/98863
24285 * config/i386/i386-features.c (convert_scalars_to_vector):
24286 Set DF_RD_PRUNE_DEAD_DEFS.
24288 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
24290 * system.h (SIZE_MAX): Define if not already defined.
24292 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
24294 * config/rs6000/genfusion.pl (gen_2logical): New function to
24295 generate patterns for logical-logical fusion.
24296 * config/rs6000/fusion.md: Regenerated patterns.
24297 * config/rs6000/rs6000-cpus.def: Add
24298 OPTION_MASK_P10_FUSION_2LOGICAL.
24299 * config/rs6000/rs6000.c (rs6000_option_override_internal):
24300 Enable logical-logical fusion for p10.
24301 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
24303 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
24305 * config/rs6000/rs6000.opt: Add periods to new AIX options.
24307 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
24309 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
24310 (mabi=vec-default): New.
24311 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24312 __EXTABI__ for AIX Vector extended ABI.
24313 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
24315 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
24317 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
24319 2021-01-30 Jakub Jelinek <jakub@redhat.com>
24321 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
24322 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
24324 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
24327 * lra-constraints.c (in_class_p): Don't narrow class only for REG
24330 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
24332 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
24333 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
24334 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
24336 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
24338 PR tree-optimization/98866
24339 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
24340 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
24341 (gori_map::m_maybe_invariant): Rename from all_outgoing.
24342 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
24343 (gori_map::is_export_p): Ditto.
24344 (gori_map::calculate_gori): Ditto.
24345 (gori_compute::set_range_invariant): New.
24346 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
24347 invariant for pointers evaluating to [1, +INF].
24349 2021-01-29 Richard Biener <rguenther@suse.de>
24351 PR rtl-optimization/98863
24352 * config/i386/i386-features.c (remove_partial_avx_dependency):
24353 Do not perform DF analysis.
24354 (pass_data_remove_partial_avx_dependency): Remove
24357 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
24359 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
24360 builtin generator macros.
24361 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
24363 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
24364 instead of inline asm.
24365 (vmull_n_s32): Likewise.
24366 (vmull_n_u16): Likewise.
24367 (vmull_n_u32): Likewise.
24369 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24371 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
24373 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
24375 (aarch64_<sur>abdl2<mode>): ... This.
24376 (<sur>sadv16qi): Adjust use of above.
24377 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
24379 (vabdl_high_s16): Likewise.
24380 (vabdl_high_s32): Likewise.
24381 (vabdl_high_u8): Likewise.
24382 (vabdl_high_u16): Likewise.
24383 (vabdl_high_u32): Likewise.
24385 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24387 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
24389 (uabal2): Likewise.
24390 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
24392 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
24394 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
24396 (vabal_high_s16): Likewise.
24397 (vabal_high_s32): Likewise.
24398 (vabal_high_u8): Likewise.
24399 (vabal_high_u16): Likewise.
24400 (vabal_high_u32): Likewise.
24401 * config/aarch64/iterators.md (ABAL2): New mode iterator.
24402 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
24404 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24406 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
24409 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
24411 (aarch64_<sur>abal<mode>): ... This
24412 (<sur>sadv16qi): Adust use of the above.
24413 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
24415 (vabal_s16): Likewise.
24416 (vabal_s32): Likewise.
24417 (vabal_u8): Likewise.
24418 (vabal_u16): Likewise.
24419 (vabal_u32): Likewise.
24421 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24423 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
24425 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
24427 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
24429 (vaddlv_s16): Likewise.
24430 (vaddlv_u8): Likewise.
24431 (vaddlv_u16): Likewise.
24432 (vaddlvq_s8): Likewise.
24433 (vaddlvq_s16): Likewise.
24434 (vaddlvq_s32): Likewise.
24435 (vaddlvq_u8): Likewise.
24436 (vaddlvq_u16): Likewise.
24437 (vaddlvq_u32): Likewise.
24438 (vaddlv_s32): Likewise.
24439 (vaddlv_u32): Likewise.
24440 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
24441 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
24442 (Vwstype): New mode attribute.
24444 (VWIDE_S): Likewise.
24445 (USADDLV): New int iterator.
24446 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
24448 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
24450 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
24451 builtin generator macros.
24452 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
24454 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
24455 instead of inline asm.
24456 (vmlsl_lane_s32): Likewise.
24457 (vmlsl_lane_u16): Likewise.
24458 (vmlsl_lane_u32): Likewise.
24459 (vmlsl_laneq_s16): Likewise.
24460 (vmlsl_laneq_s32): Likewise.
24461 (vmlsl_laneq_u16): Likewise.
24462 (vmlsl_laneq_u32): Likewise.
24464 2021-01-29 Richard Biener <rguenther@suse.de>
24466 * doc/invoke.texi (--param max-gcse-memory): Document unit
24468 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
24469 * params.opt (--param max-gcse-memory): Adjust default and
24470 document unit of size.
24472 2021-01-29 Richard Biener <rguenther@suse.de>
24474 PR rtl-optimization/98863
24475 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
24476 HOST_WIDE_INT for the memory estimate.
24478 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
24479 Richard Biener <rguenther@suse.de>
24481 PR tree-optimization/97627
24482 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
24483 Do not analyze fake edges.
24485 2021-01-29 Richard Biener <rguenther@suse.de>
24487 PR rtl-optimization/98144
24488 * df.h (df_mir_bb_info): Add con_visited member.
24489 * df-problems.c (df_mir_alloc): Initialize con_visited,
24490 do not fully populate IN and OUT.
24491 (df_mir_reset): Likewise.
24492 (df_mir_confluence_0): Set con_visited.
24493 (df_mir_confluence_n): Properly handle implicitely
24494 fully populated IN and OUT as designated by con_visited
24495 and update con_visited accordingly.
24497 2021-01-29 Jakub Jelinek <jakub@redhat.com>
24500 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
24501 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
24502 && !TARGET_REALLY_IWMMXT to conditions.
24504 2021-01-29 Jakub Jelinek <jakub@redhat.com>
24507 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
24510 2021-01-28 Marek Polacek <polacek@redhat.com>
24513 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
24514 the main variant, maybe reset it in its variants too.
24515 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
24516 (check_aligned_type): Check if TYPE_USER_ALIGN match.
24518 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
24521 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
24522 of constant zero for comparisons.
24524 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
24526 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
24527 support for mapping built-in function names for long double
24528 built-in functions if long double is IEEE 128-bit.
24530 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
24532 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
24533 builtin generator macros.
24534 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
24536 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
24537 instead of inline asm.
24538 (vmlsl_n_s32): Likewise.
24539 (vmlsl_n_u16): Likewise.
24540 (vmlsl_n_u32): Likewise.
24542 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
24544 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
24545 builtin generator macros.
24546 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
24548 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
24549 instead of inline asm.
24550 (vmlal_n_s32): Likewise.
24551 (vmlal_n_u16): Likewise.
24552 (vmlal_n_u32): Likewise.
24554 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24556 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
24558 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
24560 (aarch64_shrn2<mode>_insn_be): Likewise.
24561 (aarch64_shrn2<mode>): Likewise.
24562 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
24564 (vshrn_high_n_s32): Likewise.
24565 (vshrn_high_n_s64): Likewise.
24566 (vshrn_high_n_u16): Likewise.
24567 (vshrn_high_n_u32): Likewise.
24568 (vshrn_high_n_u64): Likewise.
24570 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24572 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
24574 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
24576 (aarch64_shrn<mode>_insn_be): Likewise.
24577 (aarch64_shrn<mode>): Likewise.
24578 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
24580 (vshrn_n_s32): Likewise.
24581 (vshrn_n_s64): Likewise.
24582 (vshrn_n_u16): Likewise.
24583 (vshrn_n_u32): Likewise.
24584 (vshrn_n_u64): Likewise.
24585 * config/aarch64/iterators.md (vn_mode): New mode attribute.
24587 2021-01-28 Richard Biener <rguenther@suse.de>
24589 PR rtl-optimization/80960
24590 * dse.c (check_mem_read_rtx): Call get_addr on the
24593 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
24594 David Edelsohn <dje.gcc@gmail.com>
24597 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24598 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
24600 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
24602 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
24603 wrapper call rs6000_expand_vector_set_var for cleanup. Call
24604 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
24606 (rs6000_expand_vector_set_var): Delete.
24607 (rs6000_expand_vector_set_var_p9): Make static.
24608 (rs6000_expand_vector_set_var_p8): Make static.
24610 2021-01-28 Xing GUO <higuoxing@gmail.com>
24612 * common/config/riscv/riscv-common.c
24613 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
24614 when `p` extension exists.
24616 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
24618 PR rtl-optimization/97684
24619 * ira.c (ira): Call ira_set_pseudo_classes before
24620 update_equiv_regs when it is necessary.
24622 2021-01-27 Jakub Jelinek <jakub@redhat.com>
24625 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
24626 %w0, %w1 and %2 instead of %0, %1 and %2.
24628 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
24630 * config/rs6000/genfusion.pl: New script to generate
24631 define_insn_and_split patterns so combine can arrange fused
24632 instructions next to each other.
24633 * config/rs6000/fusion.md: New file, generated fused instruction
24634 patterns for combine.
24635 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
24636 (non_update_memory_operand): New predicate.
24637 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
24638 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
24640 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
24642 * config/rs6000/rs6000.c (rs6000_option_override_internal):
24643 Automatically set OPTION_MASK_P10_FUSION and
24644 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
24645 (rs600_opt_masks): Allow -mpower10-fusion
24646 in function attributes.
24647 (address_is_non_pfx_d_or_x): New function.
24648 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
24649 * config/rs6000/rs6000.md: Include fusion.md.
24650 * config/rs6000/rs6000.opt: Add -mpower10-fusion
24651 and -mpower10-fusion-ld-cmpi.
24652 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
24654 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
24656 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
24657 builtin generator macros.
24658 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
24660 (aarch64_<su>mlal<mode>): This.
24661 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
24662 instead of inline asm.
24663 (vmlal_s16): Likewise.
24664 (vmlal_s32): Likewise.
24665 (vmlal_u8): Likewise.
24666 (vmlal_u16): Likewise.
24667 (vmlal_u32): Likewise.
24669 2021-01-27 Richard Biener <rguenther@suse.de>
24671 PR tree-optimization/98854
24672 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
24673 PHIs from scalars when the number of CTORs matches the
24674 number of children.
24676 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
24678 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
24680 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
24682 (aarch64_mls_n<mode>): This.
24683 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
24685 (vmls_n_s32): Likewise.
24686 (vmls_n_u16): Likewise.
24687 (vmls_n_u32): Likewise.
24688 (vmlsq_n_s16): Likewise.
24689 (vmlsq_n_s32): Likewise.
24690 (vmlsq_n_u16): Likewise.
24691 (vmlsq_n_u32): Likewise.
24693 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
24695 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
24697 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
24699 (vmls_s16): Likewise.
24700 (vmls_s32): Likewise.
24701 (vmls_u8): Likewise.
24702 (vmls_u16): Likewise.
24703 (vmls_u32): Likewise.
24704 (vmlsq_s8): Likewise.
24705 (vmlsq_s16): Likewise.
24706 (vmlsq_s32): Likewise.
24707 (vmlsq_u8): Likewise.
24708 (vmlsq_u16): Likewise.
24709 (vmlsq_u32): Likewise.
24711 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
24713 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
24715 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
24717 (aarch64_mla_n<mode>): This.
24718 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
24720 (vmla_n_s32): Likewise.
24721 (vmla_n_u16): Likewise.
24722 (vmla_n_u32): Likewise.
24723 (vmlaq_n_s16): Likewise.
24724 (vmlaq_n_s32): Likewise.
24725 (vmlaq_n_u16): Likewise.
24726 (vmlaq_n_u32): Likewise.
24728 2021-01-27 liuhongt <hongtao.liu@intel.com>
24731 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
24732 (*sse2_eq<mode>3): Ditto.
24734 2021-01-27 Jakub Jelinek <jakub@redhat.com>
24736 * tree-pass.h (PROP_trees): Rename to ...
24737 (PROP_gimple): ... this.
24738 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
24739 * passes.c (execute_function_dump, execute_function_todo,
24740 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
24741 * varpool.c (ctor_for_folding): Likewise.
24743 2021-01-27 Jakub Jelinek <jakub@redhat.com>
24745 PR tree-optimization/97260
24746 * varpool.c: Include tree-pass.h.
24747 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
24748 non-TREE_SIDE_EFFECTS automatic variables.
24750 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
24752 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
24754 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
24755 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
24756 (gen_compile_unit_die): Recognise C++23.
24758 2021-01-26 Jakub Jelinek <jakub@redhat.com>
24761 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
24764 2021-01-26 Jakub Jelinek <jakub@redhat.com>
24767 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
24768 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
24769 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
24771 2021-01-26 Richard Biener <rguenther@suse.de>
24773 * gimple-pretty-print.c (dump_binary_rhs): Handle
24774 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
24776 2021-01-26 Richard Biener <rguenther@suse.de>
24778 PR middle-end/98726
24779 * tree.h (vector_cst_int_elt): Remove.
24780 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
24783 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
24785 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
24786 for V64DFmode min/max reductions.
24788 2021-01-26 Jakub Jelinek <jakub@redhat.com>
24790 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
24791 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
24792 two halves, one with x and the other with const0_rtx, ordered
24793 depending on endianity.
24795 2021-01-26 Alexandre Oliva <oliva@adacore.com>
24797 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
24798 temporaries not seen in binding block, and not about to be
24799 added as gimple variables.
24801 2021-01-25 Martin Sebor <msebor@redhat.com>
24804 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
24806 2021-01-25 Martin Liska <mliska@suse.cz>
24808 * value-prof.c (get_nth_most_common_value): Use %s instead
24811 2021-01-25 Jakub Jelinek <jakub@redhat.com>
24814 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
24815 readelf -wi is able to read the emitted .debug_info back.
24816 * configure: Regenerated.
24818 2021-01-25 Martin Liska <mliska@suse.cz>
24820 PR gcov-profile/98739
24821 * common.opt: Add missing sign symbol.
24822 * value-prof.c (get_nth_most_common_value): Restore handling
24823 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
24824 PROFILE_REPRODUCIBILITY_MULTITHREADED.
24826 2021-01-25 Richard Biener <rguenther@suse.de>
24828 PR middle-end/98807
24829 * tree.c (vector_element_bits): Always use precision of
24830 the element type for boolean vectors.
24832 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
24834 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
24835 (ENDFILE_SPEC): Evaluate qnolinkcmds.
24837 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
24839 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
24840 nostartfiles handling since this is already done by
24841 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
24842 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
24843 is already done by LINK_COMMAND_SPEC.
24844 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
24845 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
24848 2021-01-25 Jakub Jelinek <jakub@redhat.com>
24851 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
24852 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
24853 value rather than host size_t.
24854 (fold_const_call): Change type of s2 from size_t to
24855 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
24856 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
24857 instead of s2 as last argument.
24859 2021-01-25 Tamar Christina <tamar.christina@arm.com>
24861 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
24862 VCMLA_OP, VCMUL_OP): New.
24863 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
24864 * config/arm/neon.md (cmul<conj_op><mode>3): New.
24865 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
24866 UNSPEC_VCMUL_CONJ): New.
24867 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
24868 cml<fcmac1><conj_op><mode>4): New.
24870 2021-01-23 Jakub Jelinek <jakub@redhat.com>
24873 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
24875 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
24877 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
24879 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
24881 (vmla_s16): Likewise.
24882 (vmla_s32): Likewise.
24883 (vmla_u8): Likewise.
24884 (vmla_u16): Likewise.
24885 (vmla_u32): Likewise.
24886 (vmlaq_s8): Likewise.
24887 (vmlaq_s16): Likewise.
24888 (vmlaq_s32): Likewise.
24889 (vmlaq_u8): Likewise.
24890 (vmlaq_u16): Likewise.
24891 (vmlaq_u32): Likewise.
24893 2021-01-22 David Malcolm <dmalcolm@redhat.com>
24895 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
24898 2021-01-22 Jakub Jelinek <jakub@redhat.com>
24901 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
24902 filenames to emit, still emit the required 0 index directory and
24903 filename entries that match DW_AT_comp_dir and DW_AT_name of the
24906 2021-01-22 Marek Polacek <polacek@redhat.com>
24909 * doc/invoke.texi: Update C++ ABI Version 15 description.
24911 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24913 PR tree-optimization/98766
24914 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
24915 comparing against type size with param_avoid_fma_max_bits.
24917 2021-01-22 Richard Biener <rguenther@suse.de>
24919 PR middle-end/98793
24920 * tree.c (vector_element_bits): Key single-bit bool vector on
24921 integer mode rather than not vector mode.
24923 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
24926 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24927 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
24929 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
24930 to call different path for P8 and P9.
24931 (rs6000_expand_vector_set_var_p9): New function.
24932 (rs6000_expand_vector_set_var_p8): New function.
24934 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
24938 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24939 Ajdust variable index vec_insert from address dereference to
24940 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
24941 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
24943 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
24945 2021-01-22 Martin Liska <mliska@suse.cz>
24947 PR gcov-profile/98739
24948 * profile.c (compute_value_histograms): Drop time profile for
24949 -fprofile-reproducible=multithreaded.
24951 2021-01-22 Nathan Sidwell <nathan@acm.org>
24953 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
24956 2021-01-22 Richard Biener <rguenther@suse.de>
24958 PR middle-end/98773
24959 * tree-data-ref.c (initalize_matrix_A): Revert previous
24960 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
24962 2021-01-22 Jakub Jelinek <jakub@redhat.com>
24964 PR tree-optimization/90248
24965 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
24966 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
24968 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
24969 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
24971 2021-01-22 Jakub Jelinek <jakub@redhat.com>
24973 PR tree-optimization/98255
24974 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
24975 extend index - low_bound from sizetype's precision rather than index
24977 (get_addr_base_and_unit_offset_1): Likewise.
24978 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
24979 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
24981 2021-01-22 Richard Biener <rguenther@suse.de>
24983 PR tree-optimization/98786
24984 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
24985 adding new uses of abnormals. Verify we deal with a conditional
24988 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24991 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
24993 2021-01-22 liuhongt <hongtao.liu@intel.com>
24997 * config/i386/sse.md (VI_128_256): New mode iterator.
24998 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
24999 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
25000 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
25001 define_insn_and_split to lower avx512 vector comparison to avx
25002 version when dest is vector.
25003 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
25004 define_insn_and_split for negating the comparison result.
25005 * config/i386/predicates.md (float_vector_all_ones_operand):
25007 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
25008 general NOT operator without UNSPEC_MASKOP.
25010 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
25012 PR rtl-optimization/98777
25013 * lra-int.h (lra_pmode_pseudo): New extern.
25014 * lra.c (lra_pmode_pseudo): New global.
25016 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
25018 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
25020 * fwprop.c (fwprop_propagation::classify_result): Allow
25021 (subreg (mem)) simplifications.
25023 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25025 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
25027 (aarch64_sqdmlal<mode>): ... This...
25028 (aarch64_sqdmlsl<mode>): ... And this.
25029 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
25030 (aarch64_sqdmlal_lane<mode>): ... This...
25031 (aarch64_sqdmlsl_lane<mode>): ... And this.
25032 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
25033 (aarch64_sqdmlsl_laneq<mode>): ... This...
25034 (aarch64_sqdmlal_laneq<mode>): ... And this.
25035 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
25036 (aarch64_sqdmlsl_n<mode>): ... This...
25037 (aarch64_sqdmlal_n<mode>): ... And this.
25038 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
25039 (aarch64_sqdmlal2<mode>_internal): ... This...
25040 (aarch64_sqdmlsl2<mode>_internal): ... And this.
25042 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
25044 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
25046 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
25049 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
25051 2021-01-21 liuhongt <hongtao.liu@intel.com>
25053 PR rtl-optimization/98694
25054 * regcprop.c (copy_value): If SRC had been assigned a mode
25055 narrower than the copy, we can't link DEST into the chain even
25056 they have same hard_regno_nregs(i.e. HImode/SImode in i386
25059 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25061 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
25062 Convert to define_insn_and_split. Split into simple move when moving
25065 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
25067 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
25068 Adjust comment. Simplify code.
25070 2021-01-20 Jakub Jelinek <jakub@redhat.com>
25073 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
25074 with DW_FORM_line_strp form.
25075 (prune_unused_types_update_strings): Don't add into debug_str_hash
25076 indirect strings with DW_FORM_line_strp form.
25077 (adjust_name_comp_dir): New function.
25078 (dwarf2out_finish): Call it on CU DIEs after resetting
25079 debug_line_str_hash.
25081 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
25083 PR rtl-optimization/98722
25084 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
25085 has no 3-op add insn to transform insns containing two pluses.
25087 2021-01-20 Richard Biener <rguenther@suse.de>
25089 * hwint.h (add_hwi): New function.
25090 (mul_hwi): Likewise.
25091 * tree-data-ref.c (initialize_matrix_A): Properly translate
25092 tree constants and avoid HOST_WIDE_INT_MIN.
25093 (lambda_matrix_row_add): Avoid undefined integer overflow
25094 and return true on such overflow.
25095 (lambda_matrix_right_hermite): Handle overflow from
25096 lambda_matrix_row_add gracefully. Simplify previous fix.
25097 (analyze_subscript_affine_affine): Likewise.
25099 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
25101 PR tree-optimization/96674
25102 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
25103 x >= y && y != XXX_MIN --> x > y - 1
25105 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
25107 PR tree-optimization/98535
25108 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
25109 If the high and low permutes are the same, remove the high permutes
25110 from the working set and only continue with the low ones.
25112 2021-01-20 Jakub Jelinek <jakub@redhat.com>
25114 PR tree-optimization/98721
25115 * builtins.c (access_ref::inform_access): Don't assume
25116 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
25117 object whenever allocfn is NULL, rather than only when DECL_P
25118 is true. Use %qE instead of %qD for that. Formatting fixes.
25120 2021-01-20 Richard Biener <rguenther@suse.de>
25122 PR tree-optimization/98758
25123 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
25124 (lambda_matrix_right_hermite): Avoid undefinedness with
25125 signed integer abs and multiplication.
25126 (analyze_subscript_affine_affine): Use lambda_int.
25128 2021-01-20 David Malcolm <dmalcolm@redhat.com>
25131 * dwarf2out.c (output_line_info): Rename static variable
25132 "generation", moving it out of the function to...
25133 (output_line_info_generation): New.
25134 (init_sections_and_labels): Likewise, renaming the variable to...
25135 (init_sections_and_labels_generation): New.
25136 (dwarf2out_c_finalize): Reset the new variables.
25138 2021-01-19 Martin Sebor <msebor@redhat.com>
25140 PR middle-end/98664
25141 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
25142 all functions, even if they're not declared artificial or inline.
25143 * tree.c (tree_inlined_location): Use macro expansion location
25144 only if scope traversal fails to expose one.
25146 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
25148 PR rtl-optimization/92294
25149 * alias.c (compare_base_symbol_refs): Take an extra parameter
25150 and add the distance between two symbols to it. Enshrine in
25151 comments that -1 means "either 0 or 1, but we can't tell
25152 which at compile time".
25153 (memrefs_conflict_p): Update call accordingly.
25154 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
25157 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25159 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
25160 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
25161 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
25162 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
25163 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
25164 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
25165 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
25166 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
25167 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
25168 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
25169 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
25170 sqmovun): Use NONE flags.
25172 2021-01-19 Richard Biener <rguenther@suse.de>
25175 * ipa-modref.c (analyze_stmt): Only record a summary for a
25178 2021-01-19 Richard Biener <rguenther@suse.de>
25180 PR middle-end/98638
25181 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
25183 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
25185 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
25186 built-in define __FIX_LEON3FT_TN0018.
25188 2021-01-19 Richard Biener <rguenther@suse.de>
25191 * tree-inline.c (tree_function_versioning): Set input_location
25192 to UNKNOWN_LOCATION throughout the function.
25194 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
25197 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
25199 2021-01-19 Martin Jambor <mjambor@suse.cz>
25202 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
25203 whether non-call exceptions allow removal of a statement.
25204 (isra_analyze_call): Pass the appropriate function to
25205 ssa_name_only_returned_p.
25207 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
25209 * config/riscv/arch-canonicalize (longext_sort): New function for
25210 sorting 'multi-letter'.
25211 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
25212 'alts'. The 'arch' may not be the first of 'alts'.
25213 (_expand_combination): Add underline for the 'ext' without '*'.
25214 This is because, a single-letter extension can always be treated well
25215 with a '_' prefix, but it cannot be separated out if it is appended
25218 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
25221 * ira.c (ira): Skip abnormal critical edge splitting.
25223 2021-01-18 Jakub Jelinek <jakub@redhat.com>
25225 PR tree-optimization/98727
25226 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
25227 second .MUL_OVERFLOW operand for signed multiplication with overflow
25228 checking if the second operand of multiplication is not constant.
25230 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
25232 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
25233 defaults to version 4.
25235 2021-01-18 David Malcolm <dmalcolm@redhat.com>
25237 * attribs.h (fndecl_dealloc_argno): New decl.
25238 * builtins.c (call_dealloc_argno): Split out second half of
25240 (fndecl_dealloc_argno): New.
25241 * doc/extend.texi (Common Function Attributes): Document the
25242 interaction between the analyzer and the malloc attribute.
25243 * doc/invoke.texi (Static Analyzer Options): Likewise.
25245 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
25247 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
25248 dwarf_version to 4.
25249 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
25251 2021-01-17 Martin Jambor <mjambor@suse.cz>
25254 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
25257 2021-01-17 Mark Wielaard <mark@klomp.org>
25259 * common.opt (gdwarf-): Init(5).
25260 * doc/invoke.texi (-gdwarf): Document default to 5.
25262 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
25264 * builtin-types.def
25265 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
25267 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
25268 ...this. Add extra argument.
25269 * gimplify.c (omp_default_clause): Ensure that event handle is
25270 firstprivate in a task region.
25271 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
25272 (gimplify_adjust_omp_clauses): Likewise.
25273 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
25274 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
25275 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
25276 if detach clause specified. Add detach argument when generating
25278 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
25280 (finish_taskreg_scan): Move field for variable containing the event
25281 handle to the front of the struct.
25282 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
25284 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
25285 OMP_CLAUSE_DETACH clause.
25286 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
25287 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
25288 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
25290 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
25292 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
25294 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
25296 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
25297 multilib directory names. Use MULTILIB_REQUIRED instead of
25298 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
25299 -mcustom-fpu-cfg=fph2 multilib.
25301 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
25303 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
25304 (nios2_init_fpu_configs): Provide register values for new
25305 -mcustom-fpu-cfg=fph2 option variant.
25306 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
25309 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
25311 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
25312 custom instruction warnings.
25314 2021-01-16 Jakub Jelinek <jakub@redhat.com>
25316 PR tree-optimization/96669
25317 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
25319 2021-01-16 Jakub Jelinek <jakub@redhat.com>
25321 PR tree-optimization/96271
25322 * passes.def: Pass false argument to first two pass_cd_dce
25323 instances and true to last instance. Add comment that
25324 last instance rewrites no longer addressed locals.
25325 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
25327 (pass_cd_dce::set_pass_param): New method.
25328 (pass_cd_dce::execute): Return TODO_update_address_taken from
25329 last cd_dce instance.
25331 2021-01-15 Carl Love <cel@us.ibm.com>
25333 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
25335 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
25336 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
25337 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
25338 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
25339 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
25340 Add builtin define.
25341 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
25342 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
25343 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
25344 New overloaded definitions.
25345 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
25346 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
25347 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
25348 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
25349 P10V_BUILTIN_MULHU_V4SI]: Add case
25350 statement for builtins.
25351 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
25352 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
25353 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
25354 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
25355 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
25356 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
25357 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
25358 Add define_insn, mode is VIlong.
25359 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
25360 Add builtin descriptions.
25362 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
25364 * final.c (final_start_function_1): Reset force_source_line.
25366 2021-01-15 Jakub Jelinek <jakub@redhat.com>
25368 PR tree-optimization/96669
25369 * match.pd (((1 << A) & 1) != 0 -> A == 0,
25370 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
25371 possibly different power of two constants and to right shift too.
25373 2021-01-15 Jakub Jelinek <jakub@redhat.com>
25375 PR tree-optimization/96681
25376 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
25377 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
25378 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
25379 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
25381 2021-01-15 Alexandre Oliva <oliva@adacore.com>
25383 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
25385 2021-01-15 Tamar Christina <tamar.christina@arm.com>
25387 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
25388 cmul<conj_op><mode>3): New.
25389 * config/aarch64/iterators.md (UNSPEC_FCMUL,
25390 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
25391 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
25392 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
25393 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
25394 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
25395 (rot_op): Renamed to conj_op.
25396 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
25397 cmul<conj_op><mode>3): New.
25398 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
25399 cmul<conj_op><mode>3): New.
25401 2021-01-15 David Malcolm <dmalcolm@redhat.com>
25405 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
25406 Escape the tempfile name when constructing the expected output.
25408 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25410 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
25412 (aarch64_<su>mlsl_hi<mode>): ... This.
25413 (aarch64_<su>mlsl_hi<mode>): Define.
25414 (*aarch64_<su>mlsl<mode): Rename to...
25415 (aarch64_<su>mlsl<mode): ... This.
25416 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
25417 smlsl_hi, umlsl_hi): Define builtins.
25418 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
25419 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
25420 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
25421 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
25423 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
25425 * config/i386/i386-c.c (ix86_target_macros):
25426 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
25428 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
25431 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
25432 * Makefile.in (RTL_SSA_H): New variable.
25433 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
25434 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
25435 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
25437 * config/aarch64/aarch64-cc-fusion.cc: New file.
25439 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
25441 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
25442 calling cancel_changes for changes that no longer exist.
25444 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
25446 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
25447 (function_info::reg_defs): ...this.
25448 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
25449 (function_info::reg_defs): ...this.
25451 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
25454 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
25456 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
25459 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
25462 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
25464 2021-01-15 Richard Biener <rguenther@suse.de>
25466 PR tree-optimization/96376
25467 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
25468 for VMAT_INVARIANT.
25470 2021-01-15 Martin Liska <mliska@suse.cz>
25472 * doc/install.texi: Document that some tests need pytest module.
25473 * doc/sourcebuild.texi: Likewise.
25475 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
25478 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
25480 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
25482 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
25483 (mve_vshrq_n_u<mode>_imm): Likewise.
25484 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
25485 * config/arm/vec-common.md: ... here.
25487 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
25489 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
25491 * config/arm/neon.md (vashl<mode>3): Delete.
25492 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
25493 (vasl<mode>3): New expander.
25495 2021-01-15 Richard Biener <rguenther@suse.de>
25497 PR tree-optimization/98685
25498 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
25499 of vector extern defs.
25501 2021-01-14 David Malcolm <dmalcolm@redhat.com>
25504 * diagnostic.c (diagnostic_kind_text): Break out this array
25506 (diagnostic_build_prefix): ...here.
25507 (fancy_abort): Detect when diagnostic_initialize has not yet been
25508 called and fall back to a minimal implementation of printing the
25509 ICE, rather than segfaulting in internal_error.
25511 2021-01-14 David Malcolm <dmalcolm@redhat.com>
25513 * diagnostic.c (diagnostic_initialize): Eliminate
25514 parseable_fixits_p in favor of initializing extra_output_kind from
25515 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
25516 (convert_column_unit): New function, split out from...
25517 (diagnostic_converted_column): ...this.
25518 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
25519 Use them to call convert_column_unit on the column values.
25520 (diagnostic_report_diagnostic): Eliminate conditional on
25521 parseable_fixits_p in favor of a switch statement on
25522 extra_output_kind, passing the appropriate values to the new
25523 params of print_parseable_fixits.
25524 (selftest::test_print_parseable_fixits_none): Update for new
25525 params of print_parseable_fixits.
25526 (selftest::test_print_parseable_fixits_insert): Likewise.
25527 (selftest::test_print_parseable_fixits_remove): Likewise.
25528 (selftest::test_print_parseable_fixits_replace): Likewise.
25529 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
25531 (selftest::diagnostic_c_tests): Call it.
25532 * diagnostic.h (enum diagnostics_extra_output_kind): New.
25533 (diagnostic_context::parseable_fixits_p): Delete field in favor
25535 (diagnostic_context::extra_output_kind): ...this new field.
25536 * doc/invoke.texi (Environment Variables): Add
25537 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
25538 * opts.c (common_handle_option): Update handling of
25539 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
25542 2021-01-14 Tamar Christina <tamar.christina@arm.com>
25544 * tree-vect-slp-patterns.c (class complex_operations_pattern,
25545 complex_operations_pattern::matches,
25546 complex_operations_pattern::recognize,
25547 complex_operations_pattern::build): New.
25548 (slp_patterns): Use it.
25550 2021-01-14 Tamar Christina <tamar.christina@arm.com>
25552 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
25553 * optabs.def (cmls_optab, cmls_conj_optab): New.
25554 * doc/md.texi: Document them.
25555 * tree-vect-slp-patterns.c (class complex_fms_pattern,
25556 complex_fms_pattern::matches, complex_fms_pattern::recognize,
25557 complex_fms_pattern::build): New.
25559 2021-01-14 Tamar Christina <tamar.christina@arm.com>
25561 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
25562 * optabs.def (cmla_optab, cmla_conj_optab): New.
25563 * doc/md.texi: Document them.
25564 * tree-vect-slp-patterns.c (vect_match_call_p,
25565 class complex_fma_pattern, vect_slp_reset_pattern,
25566 complex_fma_pattern::matches, complex_fma_pattern::recognize,
25567 complex_fma_pattern::build): New.
25569 2021-01-14 Tamar Christina <tamar.christina@arm.com>
25571 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
25572 * optabs.def (cmul_optab, cmul_conj_optab): New.
25573 * doc/md.texi: Document them.
25574 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
25575 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
25576 vect_build_combine_node, class complex_mul_pattern,
25577 complex_mul_pattern::matches, complex_mul_pattern::recognize,
25578 complex_mul_pattern::build): New.
25580 2021-01-14 Tamar Christina <tamar.christina@arm.com>
25582 * tree-vect-slp.c (optimize_load_redistribution_1): New.
25583 (optimize_load_redistribution, vect_is_slp_load_node): New.
25584 (vect_match_slp_patterns): Use it.
25586 2021-01-14 Tamar Christina <tamar.christina@arm.com>
25588 * tree-vect-slp-patterns.c (complex_add_pattern::build):
25591 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
25593 * config/gcn/mkoffload.c (main): Create an offload image only in
25594 64-bit configurations.
25596 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
25599 * config/i386/i386-options.c (ix86_option_override_internal):
25600 Issue an error for -fcf-protection with CF_BRANCH when compiling
25601 for 32-bit non-TARGET_CMOV targets.
25603 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
25606 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
25607 Remove declaration and initialization of shadow variable "ret".
25608 (ix86_option_override_internal): Remove delcaration of
25609 shadow variable "i". Redeclare shadowed variable to unsigned.
25610 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
25611 * config/i386/i386-builtins.c (get_builtin_code_for_version):
25612 Update for redeclaration.
25613 * config/i386/i386.h (pta_size): Ditto.
25615 2021-01-14 Richard Biener <rguenther@suse.de>
25617 PR tree-optimization/98674
25618 * tree-data-ref.c (base_supports_access_fn_components_p): New.
25619 (initialize_data_dependence_relation): For two bases without
25620 possible access fns resort to type size equality when determining
25621 shape compatibility.
25623 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25626 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
25627 <=, >= operators in vcle and vcge intrinsics respectively.
25628 * config/arm/arm_neon_builtins.def: Remove entry for
25631 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
25634 * config/i386/i386-options.c (ix86_function_specific_save):
25635 Remove redundant assignment to opts->x_ix86_branch_cost.
25636 * config/i386/i386.c (ix86_prefetch_sse):
25637 Rename from x86_prefetch_sse. Update all uses.
25638 * config/i386/i386.h: Update for rename.
25639 * config/i386/i386-options.h: Ditto.
25641 2021-01-14 Jakub Jelinek <jakub@redhat.com>
25644 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
25645 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
25646 Use Bm instead of m for non-avx. Add isa attribute.
25648 2021-01-14 Jakub Jelinek <jakub@redhat.com>
25650 PR tree-optimization/96688
25651 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
25652 ~X can be simplified.
25654 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
25656 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
25657 IFN_LOAD_LANES results.
25659 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25661 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
25663 (aarch64_xtn<mode>): Likewise.
25664 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
25667 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
25669 (vmovl_s16): Likewise.
25670 (vmovl_s32): Likewise.
25671 (vmovl_u8): Likewise.
25672 (vmovl_u16): Likewise.
25673 (vmovl_u32): Likewise.
25674 (vmovn_s16): Likewise.
25675 (vmovn_s32): Likewise.
25676 (vmovn_s64): Likewise.
25677 (vmovn_u16): Likewise.
25678 (vmovn_u32): Likewise.
25679 (vmovn_u64): Likewise.
25681 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25683 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
25685 (aarch64_<su>qxtn2<mode>_be): Likewise.
25686 (aarch64_<su>qxtn2<mode>): Likewise.
25687 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
25689 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
25690 (su): Handle ss_truncate and us_truncate.
25691 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
25693 (vqmovn_high_s32): Likewise.
25694 (vqmovn_high_s64): Likewise.
25695 (vqmovn_high_u16): Likewise.
25696 (vqmovn_high_u32): Likewise.
25697 (vqmovn_high_u64): Likewise.
25699 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25701 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
25703 (aarch64_xtn2<mode>_be): Likewise.
25704 (aarch64_xtn2<mode>): Likewise.
25705 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
25707 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
25709 (vmovn_high_s32): Likewise.
25710 (vmovn_high_s64): Likewise.
25711 (vmovn_high_u16): Likewise.
25712 (vmovn_high_u32): Likewise.
25713 (vmovn_high_u64): Likewise.
25715 2021-01-13 Stafford Horne <shorne@gmail.com>
25717 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
25719 2021-01-13 Stafford Horne <shorne@gmail.com>
25721 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
25723 2021-01-13 Stafford Horne <shorne@gmail.com>
25725 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
25726 define for __or1k_hard_float__.
25728 2021-01-13 Stafford Horne <shorne@gmail.com>
25730 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
25731 (PROFILE_HOOK): Define to call _mcount.
25732 (FUNCTION_PROFILER): Change from abort to no-op.
25734 2021-01-13 Jakub Jelinek <jakub@redhat.com>
25736 PR tree-optimization/96691
25737 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
25738 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
25739 (~D ^ C) or (D ^ C) can be simplified.
25741 2021-01-13 Richard Biener <rguenther@suse.de>
25743 PR tree-optimization/92645
25744 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
25745 until after vector lowering.
25747 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
25749 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
25751 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
25752 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
25754 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
25756 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
25758 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
25759 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
25761 2021-01-13 Richard Biener <rguenther@suse.de>
25763 PR tree-optimization/92645
25764 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
25765 BIT_FIELD_REF argument.
25766 (vect_build_slp_tree_2): Record the desired vector type
25767 on the external vector def.
25768 (vectorizable_slp_permutation): Handle required punning
25769 of existing vector defs.
25771 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
25773 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
25775 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
25777 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
25779 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
25781 * config.gcc [$target == *-*-gnu*]: Enable
25782 'default_gnu_indirect_function'.
25784 2021-01-13 Jakub Jelinek <jakub@redhat.com>
25787 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
25788 registers before calling targetm.vectorize.vec_perm_const, only after
25790 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
25791 two argument permutation when one operand is zero vector and only
25792 after that force operands into registers.
25793 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
25794 define_insn_and_split pattern.
25795 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
25796 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
25797 (*avx2_zero_extendv8hiv8si2_1): Likewise.
25798 (*avx512f_zero_extendv8siv8di2_1): Likewise.
25799 (*avx2_zero_extendv4siv4di2_1): Likewise.
25800 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
25802 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
25803 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
25804 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
25805 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
25806 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
25807 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
25809 2021-01-13 Martin Liska <mliska@suse.cz>
25811 PR tree-optimization/98455
25812 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
25813 Record also virtual PHIs.
25814 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
25817 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
25819 * doc/invoke.texi (C++ Modules): Fix typos.
25821 2021-01-13 Richard Biener <rguenther@suse.de>
25823 PR tree-optimization/98640
25824 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
25825 handle plus or minus from a truncated operand to be
25828 2021-01-13 Jakub Jelinek <jakub@redhat.com>
25831 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
25832 define_insn_and_split patterns.
25833 (splitter after *btr<mode>_2): New splitter.
25835 2021-01-13 Martin Liska <mliska@suse.cz>
25838 * cgraphunit.c (analyze_functions): Remove dead code.
25840 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
25842 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
25843 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
25844 (a64fx_regmove_cost, a64fx_vector_cost): New.
25845 (a64fx_tunings): Use the new added cost tables.
25847 2021-01-13 Jakub Jelinek <jakub@redhat.com>
25850 * config/i386/predicates.md (pmovzx_parallel): New predicate.
25851 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
25852 define_insn_and_split pattern.
25853 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
25854 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
25856 2021-01-13 Julian Brown <julian@codesourcery.com>
25858 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
25859 to fix v0 register.
25861 2021-01-13 Julian Brown <julian@codesourcery.com>
25863 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
25866 2021-01-13 Julian Brown <julian@codesourcery.com>
25868 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
25869 for reciprocal-approximation instructions.
25870 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
25871 refinement and division result.
25872 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
25874 2021-01-13 Julian Brown <julian@codesourcery.com>
25876 * config/gcn/gcn-valu.md (subdf): Rename to...
25879 2021-01-12 Martin Liska <mliska@suse.cz>
25881 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
25883 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
25885 * function-abi.h: Fix typo.
25887 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
25891 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
25892 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
25893 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
25894 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
25895 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
25896 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
25897 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
25898 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
25899 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
25900 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
25901 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
25902 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
25903 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
25904 (ARM_HAVE_V2DI_LDST): Likewise.
25905 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
25906 (*movmisalign<mode>_mve_load): New pattern.
25907 * config/arm/neon.md (movmisalign<mode>): Move to ...
25908 * config/arm/vec-common.md: ... here.
25910 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
25913 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
25914 of pattern 'plus (plus (hard reg, const), pseudo)'.
25916 2021-01-12 Richard Biener <rguenther@suse.de>
25918 PR tree-optimization/98550
25919 * tree-vect-slp.c (vect_record_max_nunits): Check whether
25920 the group size is a multiple of the vector element count.
25921 (vect_build_slp_tree_1): When we need to fail because
25922 the vector type choosen causes unrolling do so lazily
25923 without affecting matches only at the end to guide group splitting.
25925 2021-01-12 Martin Liska <mliska@suse.cz>
25928 * optc-save-gen.awk: Compare also n_target_save vars with
25931 2021-01-12 Martin Liska <mliska@suse.cz>
25933 * gcov.c (source_info::debug): New.
25934 (print_usage): Add --debug (-D) option.
25935 (process_args): Likewise.
25936 (generate_results): Call src->debug after
25937 accumulate_line_counts.
25938 (read_graph_file): Properly assign id for EXIT_BLOCK.
25939 * profile.c (branch_prob): Dump function body before it is
25942 2021-01-12 Jakub Jelinek <jakub@redhat.com>
25944 PR tree-optimization/98629
25945 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
25946 unless returning non-zero.
25948 2021-01-12 Jakub Jelinek <jakub@redhat.com>
25950 PR tree-optimization/95731
25951 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
25952 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
25953 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
25954 only after optimize_range_tests_var_bound.
25956 2021-01-12 Jakub Jelinek <jakub@redhat.com>
25958 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
25959 * configure: Regenerated.
25961 2021-01-12 liuhongt <hongtao.liu@intel.com>
25964 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
25966 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
25969 2021-01-12 Alexandre Oliva <oliva@adacore.com>
25971 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
25973 (auto_end_imm_use_stmt_traverse): New struct.
25974 (FOR_EACH_IMM_USE_STMT): Use it.
25975 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
25977 * gimple-ssa-strength-reduction.c: ... here, ...
25978 * graphite-scop-detection.c: ... here, ...
25979 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
25980 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
25981 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
25982 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
25983 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
25984 * tree-vect-slp.c: ... and here, ...
25985 * doc/tree-ssa.texi: ... and the example here.
25987 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
25989 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
25990 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
25991 (*sdiv_pow2<mode>3): New pattern.
25992 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
25993 Wrap the ASRD in an UNSPEC_PRED_X.
25994 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
25995 predicate with a constant PTRUE, if it isn't already.
25996 (*cond_<sve_int_op><mode>_z): Replace with...
25997 (*cond_<sve_int_op><mode>_any): ...this new pattern.
25999 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26001 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
26002 SVE_FULL_I to SVE_I.
26003 (*cond_bic<mode>_any): Likewise.
26005 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26007 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
26008 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
26011 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26013 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
26014 SVE_FULL_I to SVE_I.
26015 (*aarch64_cond_<su>abd<mode>_2): Likewise.
26016 (*aarch64_cond_<su>abd<mode>_any): Likewise.
26017 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
26018 for the max and min but not for the minus.
26019 (*aarch64_cond_<su>abd<mode>_3): New pattern.
26021 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26023 * config/aarch64/iterators.md (SVE_24I): New iterator.
26024 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
26025 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
26027 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26029 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
26030 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
26032 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
26033 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
26034 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
26035 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
26037 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26039 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
26040 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
26041 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
26044 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26046 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
26047 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
26048 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
26050 2021-01-11 Martin Liska <mliska@suse.cz>
26053 * symtab-clones.h (clone_info::release): Release
26054 symtab::m_clones with ggc_delete as it's a GGC memory.
26056 2021-01-11 Matthias Klose <doko@ubuntu.com>
26058 * Makefile.in (LINK_PROGRESS): Show the link target.
26060 2021-01-11 Richard Biener <rguenther@suse.de>
26062 PR tree-optimization/91403
26063 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
26064 single-element interleaving group size at 4096 elements.
26066 2021-01-11 Richard Biener <rguenther@suse.de>
26068 PR tree-optimization/98526
26069 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
26070 of the actual reduction op for the regular case.
26071 (vectorizable_reduction): Cost the stmts
26072 vect_transform_reduction produces here.
26074 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
26076 * tree-ssa-forwprop.c (simplify_vector_constructor): For
26077 big-endian, use UNPACK[_FLOAT]_HI.
26079 2021-01-11 Tamar Christina <tamar.christina@arm.com>
26081 * tree-vect-slp-patterns.c (class complex_pattern,
26082 class complex_add_pattern): Add parameters to matches.
26083 (complex_add_pattern::build): Free memory.
26084 (complex_add_pattern::matches): Move validation end of match.
26085 (complex_add_pattern::recognize): Likewise.
26087 2021-01-11 Tamar Christina <tamar.christina@arm.com>
26089 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
26091 2021-01-11 Tamar Christina <tamar.christina@arm.com>
26093 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
26095 2021-01-11 Jakub Jelinek <jakub@redhat.com>
26097 PR tree-optimization/95867
26098 * tree-ssa-math-opts.h: New header.
26099 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
26100 (powi_as_mults): No longer static. Use build_one_cst instead of
26101 build_real. Formatting fix.
26102 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
26103 (attempt_builtin_powi): Handle multiplication reassociation without
26104 powi_fndecl using powi_as_mults.
26105 (reassociate_bb): For integral types don't require
26106 -funsafe-math-optimizations to call attempt_builtin_powi.
26108 2021-01-11 Jakub Jelinek <jakub@redhat.com>
26110 PR tree-optimization/95852
26111 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
26112 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
26113 allow in the bb any of the stmts in that vector, div_stmt and
26114 up to 3 cast stmts.
26115 (arith_cast_equal_p): New function.
26116 (arith_overflow_check_p): Add cast_stmt argument, handle signed
26117 multiply overflow checks.
26118 (match_arith_overflow): Adjust caller. Handle signed multiply
26121 2021-01-11 Jakub Jelinek <jakub@redhat.com>
26123 PR tree-optimization/95852
26124 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
26125 (uaddsub_overflow_check_p): Renamed to ...
26126 (arith_overflow_check_p): ... this. Handle also multiplication
26127 with overflow check.
26128 (match_uaddsub_overflow): Renamed to ...
26129 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
26130 also multiplication with overflow check. Adjust function comment.
26131 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
26132 match_arith_overflow also for MULT_EXPR.
26134 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26136 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
26137 __builtin_convertvector.
26138 (vmovl_s16): Likewise.
26139 (vmovl_s32): Likewise.
26140 (vmovl_u8): Likewise.
26141 (vmovl_u16): Likewise.
26142 (vmovl_u32): Likewise.
26143 (vmovn_s16): Likewise.
26144 (vmovn_s32): Likewise.
26145 (vmovn_s64): Likewise.
26146 (vmovn_u16): Likewise.
26147 (vmovn_u32): Likewise.
26148 (vmovn_u64): Likewise.
26150 2021-01-11 Martin Liska <mliska@suse.cz>
26152 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
26153 (if_chain::is_beneficial): Delete clusters
26154 (find_conditions): Make second argument of conditions_in_bbs a
26155 pointer so that we control over it's lifetime.
26156 (pass_if_to_switch::execute): Delete them.
26158 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
26160 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
26163 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26165 * config/vax/vax.md (cc): Remove mode attribute.
26166 (subst_<cc>, subst_f<cc>): Rename to...
26167 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
26168 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
26169 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
26170 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
26172 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26174 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
26175 `const_double_zero'.
26177 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26179 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
26180 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
26183 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26185 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
26187 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
26188 with `const_double_zero'.
26189 * doc/rtl.texi (Constant Expression Types): Document it.
26191 2021-01-09 Jakub Jelinek <jakub@redhat.com>
26194 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
26195 POINTER_DIFF_EXPR to be any integral type.
26197 2021-01-09 Jakub Jelinek <jakub@redhat.com>
26199 PR rtl-optimization/98603
26200 * function.c (instantiate_virtual_regs_in_insn): For asm goto
26201 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
26202 if any, set ASM_OPERANDS mode to VOIDmode and change
26203 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
26205 2021-01-09 Alexandre Oliva <oliva@gnu.org>
26208 * final.c (notice_source_line): Narrow down the condition to
26209 skip a line-0 marker.
26211 2021-01-08 Sergei Trofimovich <siarheit@google.com>
26213 * ipa-modref.c (merge_call_side_effects): Fix
26214 linebreak split by reordering two print calls.
26216 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
26218 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
26219 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
26220 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
26221 consistency, fix constraint.
26223 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
26225 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
26226 callables instead of mask values.
26227 (struct target_flag_set_p): New predicate.
26228 (s390_cpu_cpp_builtins_internal): Define or undefine
26229 __LONG_DOUBLE_VX__ macro.
26231 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
26234 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
26235 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
26238 2021-01-08 Richard Biener <rguenther@suse.de>
26240 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
26242 2021-01-08 Richard Biener <rguenther@suse.de>
26244 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
26245 (vect_build_slp_tree): On cache hit release the matched
26246 scalar stmts vector.
26247 * tree-vect-stmts.c (vectorizable_store): Properly free
26248 vec_oprnds before possibly gathering them again.
26250 2021-01-08 Richard Biener <rguenther@suse.de>
26252 PR tree-optimization/98544
26253 * tree-vect-slp.c (vect_optimize_slp): Always materialize
26254 permutes at a permute node.
26256 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
26259 * config/i386/i386.c (x86_function_profiler): Use R10 to call
26260 mcount in large model. Sorry for large model with PIC.
26262 2021-01-08 Jakub Jelinek <jakub@redhat.com>
26265 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
26266 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
26267 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
26268 TargetSave and initialize for variables with enum types.
26269 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
26270 mstack-protector-guard-symbol=): Add Save.
26271 * config/i386/i386-options.c (ix86_function_specific_save,
26272 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
26273 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
26274 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
26275 x_ix86_veclibabi_type.
26277 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
26279 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
26280 SVE_FULL_I to SVE_I.
26281 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
26283 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
26285 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
26286 SVE_FULL_I to SVE_I.
26287 (*cond_uxt<mode>_any): Likewise.
26289 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26291 * config/aarch64/iterators.md (Vwhalf): New iterator.
26292 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
26294 (aarch64_<sur>adalp<mode>): ... This. Make more
26296 (<sur>sadv16qi): Adjust callsite of the above.
26297 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
26299 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
26301 (vpadal_s16): Likewise.
26302 (vpadal_u8): Likewise.
26303 (vpadal_u16): Likewise.
26304 (vpadalq_s8): Likewise.
26305 (vpadalq_s16): Likewise.
26306 (vpadalq_s32): Likewise.
26307 (vpadalq_u8): Likewise.
26308 (vpadalq_u16): Likewise.
26309 (vpadalq_u32): Likewise.
26311 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26313 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
26315 (aarch64_<su>abd<mode>): ... This.
26316 (<sur>sadv16qi): Adjust callsite of the above.
26317 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
26319 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
26321 (vabd_s16): Likewise.
26322 (vabd_s32): Likewise.
26323 (vabd_u8): Likewise.
26324 (vabd_u16): Likewise.
26325 (vabd_u32): Likewise.
26326 (vabdq_s8): Likewise.
26327 (vabdq_s16): Likewise.
26328 (vabdq_s32): Likewise.
26329 (vabdq_u8): Likewise.
26330 (vabdq_u16): Likewise.
26331 (vabdq_u32): Likewise.
26333 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26335 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
26337 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
26338 (vaba_s16): Likewise.
26339 (vaba_s32): Likewise.
26340 (vaba_u8): Likewise.
26341 (vaba_u16): Likewise.
26342 (vaba_u32): Likewise.
26343 (vabaq_s8): Likewise.
26344 (vabaq_s16): Likewise.
26345 (vabaq_s32): Likewise.
26346 (vabaq_u8): Likewise.
26347 (vabaq_u16): Likewise.
26348 (vabaq_u32): Likewise.
26350 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26352 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
26353 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
26354 Change RTL pattern to match.
26356 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
26358 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
26359 * config/riscv/riscv-c.c (riscv-subset.h): New.
26360 (INCLUDE_STRING): Define.
26361 (riscv_cpu_cpp_builtins): Add new style architecture extension
26363 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
26364 (riscv_subset_list::end): New.
26365 (riscv_current_subset_list): New.
26367 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
26369 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
26370 Move to riscv-subset.h.
26371 (struct riscv_subset_t): Ditto.
26372 (class riscv_subset_list): Ditto.
26373 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
26374 from riscv-common.c.
26375 (struct riscv_subset_t): Ditto.
26376 (class riscv_subset_list): Ditto.
26377 * config/riscv/t-riscv ($(common_out_file)): Add file
26380 2021-01-07 Jakub Jelinek <jakub@redhat.com>
26383 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
26384 New define_insn patterns.
26386 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
26388 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
26389 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
26390 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
26392 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
26394 PR tree-optimization/98560
26395 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
26396 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
26398 (vec_cond_direct): Likewise argument 2.
26399 (vec_condu_direct, vec_condeq_direct): Delete.
26400 (expand_vect_cond_optab_fn): Rename to...
26401 (expand_vec_cond_optab_fn): ...this, replacing old macro.
26402 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
26403 (expand_vect_cond_mask_optab_fn): Rename to...
26404 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
26405 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
26407 (direct_vec_cond_optab_supported_p): Likewise.
26408 (direct_vec_condu_optab_supported_p): Delete.
26409 (direct_vec_condeq_optab_supported_p): Delete.
26410 * gimple-isel.cc: Include internal-fn.h.
26411 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
26414 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
26416 PR tree-optimization/98560
26417 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
26418 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
26420 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
26422 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
26423 rotate_insn and optab code attributes.
26424 Update all uses to merged code attribute.
26425 * config/i386/sse.md: Update all uses to merged code attribute.
26426 * config/i386/mmx.md: Update all uses to merged code attribute.
26428 2021-01-07 Jakub Jelinek <jakub@redhat.com>
26430 PR tree-optimization/98568
26431 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
26432 (bswap_replace): Use it.
26434 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
26436 PR rtl-optimization/97978
26437 * lra-int.h (lra_hard_reg_split_p): New external.
26438 * lra.c (lra_hard_reg_split_p): New global.
26439 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
26440 * lra-assigns.c (lra_assign): Don't check allocation correctness
26441 after hard reg splitting.
26443 2021-01-06 Martin Sebor <msebor@redhat.com>
26446 * builtins.c (new_delete_mismatch_p): New overload.
26447 (new_delete_mismatch_p (tree, tree)): Call it.
26449 2021-01-06 Alexandre Oliva <oliva@adacore.com>
26451 * Makefile.in (T_GLIMITS_H): New.
26452 (stmp-int-hdrs): Depend on it, use it.
26453 * config/t-vxworks (T_GLIMITS_H): Override it.
26454 (vxw-glimits.h): New.
26456 2021-01-06 Richard Biener <rguenther@suse.de>
26458 PR tree-optimization/98513
26459 * value-range.cc (intersect_ranges): Compare the upper bounds
26460 for the expected relation.
26462 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
26465 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
26467 * doc/standards.texi (HSAIL): Remove section.
26469 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
26471 * configure: Re-generate.
26473 2021-01-05 Jakub Jelinek <jakub@redhat.com>
26475 * doc/invoke.texi (-std=c++20): Adjust for the publication of
26476 ISO 14882:2020 standard.
26477 * doc/standards.texi: Likewise.
26479 2021-01-05 Jakub Jelinek <jakub@redhat.com>
26481 PR tree-optimization/94802
26482 * expr.h (maybe_optimize_sub_cmp_0): Declare.
26483 * expr.c: Include tree-pretty-print.h and flags.h.
26484 (maybe_optimize_sub_cmp_0): New function.
26485 (do_store_flag): Use it.
26486 * cfgexpand.c (expand_gimple_cond): Likewise.
26488 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
26490 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
26491 * rtlanal.c (simple_regno_set): Tweak description to clarify the
26494 2021-01-05 Richard Biener <rguenther@suse.de>
26496 PR tree-optimization/98516
26497 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
26498 lanes when materializing on a VEC_PERM node.
26499 (vectorizable_slp_permutation): Dump the permute properly.
26501 2021-01-05 Richard Biener <rguenther@suse.de>
26503 * tree-vect-slp.c (vect_slp_region): Move debug counter
26504 to cover individual subgraphs.
26506 2021-01-05 Richard Biener <rguenther@suse.de>
26508 PR tree-optimization/98428
26509 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
26510 vector lane extracts for loop vectorization.
26512 2021-01-05 Jakub Jelinek <jakub@redhat.com>
26514 PR tree-optimization/98514
26515 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
26517 (operand_rank): Change type from hash_map<tree, long> to
26518 hash_map<tree, int64_t>.
26519 (phi_rank): Change return type from long to int64_t.
26520 (loop_carried_phi): Change block_rank variable type from long to
26522 (propagate_rank): Change return type, rank parameter type and
26523 op_rank variable type from long to int64_t.
26524 (find_operand_rank): Change return type from long to int64_t
26525 and change slot variable type from long * to int64_t *.
26526 (insert_operand_rank): Change rank parameter type from long to
26528 (get_rank): Change return type and rank variable type from long to
26529 int64_t. Use PRId64 instead of ld to print the rank.
26530 (init_reassoc): Change rank variable type from long to int64_t
26531 and adjust correspondingly bb_rank and operand_rank initialization.
26533 2021-01-05 Jakub Jelinek <jakub@redhat.com>
26535 PR tree-optimization/96928
26536 * tree-ssa-phiopt.c (xor_replacement): New function.
26537 (tree_ssa_phiopt_worker): Call it.
26539 2021-01-05 Jakub Jelinek <jakub@redhat.com>
26541 PR tree-optimization/96930
26542 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
26543 from narrower value which has the same type as 1 << B, perform
26544 the right shift on the narrower value followed by extension.
26546 2021-01-05 Jakub Jelinek <jakub@redhat.com>
26548 PR tree-optimization/96239
26549 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
26551 (get_status_for_store_merging): Don't return BB_INVALID for blocks
26552 with potential bswap optimizable CONSTRUCTORs.
26553 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
26556 2021-01-05 Richard Biener <rguenther@suse.de>
26558 PR tree-optimization/98381
26559 * tree.c (vector_element_bits): Properly compute bool vector
26561 * tree-vect-loop.c (vectorizable_live_operation): Properly
26562 compute the last lane bit offset.
26564 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
26567 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
26568 Clear the top 64 bytes of the input XMM register.
26569 (sse_cvttps2pi): Ditto.
26571 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
26574 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
26576 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
26579 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
26582 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
26584 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
26585 (umaddsidi4_split): Likewise.
26587 2021-01-05 liuhongt <hongtao.liu@intel.com>
26590 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
26591 define_insn_and_split for zero_extend of subreg HI of pmovskb
26593 (*sse2_pmovskb_zexthisi): Add new combine splitters for
26594 zero_extend of not of subreg HI of pmovskb result.
26596 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
26599 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
26601 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
26602 convert_memory_address to convert symbolic immediates to ptr_mode
26603 before forcing them to memory.
26605 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
26607 PR rtl-optimization/97144
26608 * recog.c (constrain_operands): Initialize matching_operand
26609 for each alternative, rather than only doing it once.
26611 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
26613 PR rtl-optimization/98403
26614 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
26615 why we don't remove call clobbers.
26616 (function_info::apply_changes_to_insn): Don't attempt to add
26617 call clobbers here.
26619 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
26621 PR tree-optimization/98371
26622 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
26623 (vect_analyze_loop): If an epilogue loop appears to be cheaper
26624 than the main loop, re-analyze it as a main loop before adopting
26627 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26630 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
26631 * aclocal.m4, configure: Regenerate.
26632 * Makefile.in (NETLIBS): Define.
26633 (BACKEND): Remove $(CODYLIB).
26635 2021-01-05 Jakub Jelinek <jakub@redhat.com>
26637 PR rtl-optimization/98334
26638 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
26639 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
26641 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
26643 * tree-inline.c (expand_call_inline): Restore input_location.
26644 Return result from recursive call.
26646 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
26648 PR tree-optimization/95401
26649 * config/aarch64/aarch64-sve-builtins.cc
26650 (gimple_folder::load_store_cookie): Use bits rather than bytes
26651 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
26652 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
26653 * tree-vect-stmts.c (vectorizable_store): Likewise.
26654 (vectorizable_load): Likewise.
26656 2021-01-04 Richard Biener <rguenther@suse.de>
26658 PR tree-optimization/98308
26659 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
26662 2021-01-04 Jakub Jelinek <jakub@redhat.com>
26664 PR tree-optimization/95771
26665 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
26666 with precision smaller than int's precision and types with precision
26667 twice as large as long long. Formatting fixes.
26669 2021-01-04 Richard Biener <rguenther@suse.de>
26671 PR tree-optimization/98464
26672 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
26673 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
26674 (process_bb): Adjust.
26676 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
26679 * doc/invoke.texi (-fsanitize=address): Fix wording describing
26680 clash with -fsanitize=hwaddress.
26682 2021-01-04 Richard Biener <rguenther@suse.de>
26684 PR tree-optimization/98282
26685 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
26686 invariants as VN_NARY.
26688 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
26691 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
26692 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
26693 to handle zero operands.
26695 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
26697 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
26698 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
26699 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
26702 2021-01-04 Richard Biener <rguenther@suse.de>
26704 PR tree-optimization/98393
26705 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
26706 when hitting the limit.
26708 2021-01-04 Richard Biener <rguenther@suse.de>
26710 PR tree-optimization/98291
26711 * tree-vect-loop.c (vectorizable_reduction): Bypass
26712 associativity check for SLP reductions with VF 1.
26714 2021-01-04 Jakub Jelinek <jakub@redhat.com>
26716 PR tree-optimization/96782
26717 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
26719 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
26721 * collect-utils.c (collect_execute): Check dumppfx.
26722 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
26723 to collect_execute.
26724 (do_link): Add new parameter atsuffix.
26725 (main): Handle -dumpdir option. Skip one argument for
26726 -o, -isystem and -B options.
26727 * gcc.c (make_at_file): New helper function.
26728 (close_at_file): Use it.
26730 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
26732 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
26733 Amend handling for LD64_VERSION fallback defaults.
26735 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
26737 * config.gcc: Compute default version information
26738 from the configured target. Likewise defaults for
26740 * config/darwin10.h: Removed.
26741 * config/darwin12.h: Removed.
26742 * config/darwin9.h: Removed.
26743 * config/rs6000/darwin8.h: Removed.
26745 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
26747 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
26749 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
26751 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
26752 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
26754 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
26756 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
26758 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
26760 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
26762 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
26763 for the Darwin10 unwinder stub from here ...
26764 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
26766 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
26768 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
26769 (ASM_DEBUG_SPEC):Only define if the assembler supports
26771 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
26772 (DARWIN_PREFER_DWARF): Define.
26773 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
26774 (DARWIN_PREFER_DWARF): Likewise
26775 (DSYMUTIL_SPEC): Likewise.
26776 (COLLECT_RUN_DSYMUTIL): Likewise.
26777 (ASM_DEBUG_SPEC): Likewise.
26778 (ASM_DEBUG_OPTION_SPEC): Likewise.
26780 2021-01-02 Jan Hubicka <jh@suse.cz>
26782 * cfg.c (free_block): ggc_free bb.
26784 2021-01-01 Jakub Jelinek <jakub@redhat.com>
26786 * gcc.c (process_command): Update copyright notice dates.
26787 * gcov-dump.c (print_version): Ditto.
26788 * gcov.c (print_version): Ditto.
26789 * gcov-tool.c (print_version): Ditto.
26790 * gengtype.c (create_file): Ditto.
26791 * doc/cpp.texi: Bump @copying's copyright year.
26792 * doc/cppinternals.texi: Ditto.
26793 * doc/gcc.texi: Ditto.
26794 * doc/gccint.texi: Ditto.
26795 * doc/gcov.texi: Ditto.
26796 * doc/install.texi: Ditto.
26797 * doc/invoke.texi: Ditto.
26799 2021-01-01 Jakub Jelinek <jakub@redhat.com>
26801 * ChangeLog-2020: Rotate ChangeLog. New file.
26804 Copyright (C) 2021 Free Software Foundation, Inc.
26806 Copying and distribution of this file, with or without modification,
26807 are permitted in any medium without royalty provided the copyright
26808 notice and this notice are preserved.