1 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
3 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
5 (sparc_order_regs_for_local_alloc): ...this.
6 (sparc_leaf_reg_remap): Declare.
7 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
8 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
9 * config/sparc/sparc.c (leaf_reg_remap): Delete.
10 (order_regs_for_local_alloc): Rename to...
11 (sparc_order_regs_for_local_alloc): ...this.
12 (sparc_leaf_reg_remap): New function.
13 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
15 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
17 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
18 Use assemble_name to output BSS section name.
20 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
22 * config/i386/constraints.md (Bs):
23 Remove boolean operators from match_test RTX.
26 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
29 2021-06-06 Martin Liska <mliska@suse.cz>
31 * doc/extend.texi: Add missing @headitem.
32 * doc/invoke.texi: Likewise.
33 * doc/objc.texi: Likewise.
35 2021-06-06 Martin Liska <mliska@suse.cz>
37 * genhooks.c (emit_findices): Remove unused function.
38 (emit_documentation): Do not call emit_findices
39 and do not search for @Fcode directives.
41 2021-06-06 Martin Liska <mliska@suse.cz>
43 * doc/invoke.texi: Remove extra character.
45 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
47 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
49 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
51 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
52 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
53 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
54 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
56 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
58 * config/or1k/or1k.md (*movdi): Fix empty split condition.
60 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
62 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
65 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
67 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
68 *zero_extendsidi2): Fix empty split condition.
70 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
72 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
74 * config/h8300/bitfield.md: Likewise.
75 * config/h8300/combiner.md: Likewise.
76 * config/h8300/divmod.md: Likewise.
77 * config/h8300/extensions.md: Likewise.
78 * config/h8300/jumpcall.md: Likewise.
79 * config/h8300/movepush.md: Likewise.
80 * config/h8300/multiply.md: Likewise.
81 * config/h8300/other.md: Likewise.
82 * config/h8300/shiftrotate.md: Likewise.
83 * config/h8300/logical.md: Likewise. Fix split pattern to use
84 code iterator that somehow slipped through.
86 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
89 * tree-nested.c (convert_nonlocal_omp_clauses,
90 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
92 2021-06-04 Martin Sebor <msebor@redhat.com>
95 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
96 with either source or destination argument of invalid type.
97 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
98 calls with arguments of invalid type.
100 2021-06-04 Martin Sebor <msebor@redhat.com>
102 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
104 (attr_access::vla_bounds): Also handle VLA bounds.
106 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
108 * config/i386/predicates.md (GOT_memory_operand):
109 Implement using match_code RTXes.
110 (GOT32_symbol_operand): Ditto.
112 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
115 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
117 (ix86_expand_vector_init_general): Ditto.
118 Use SImode instead of word_mode for logic operations
119 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
120 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
121 implemented by expand_vec_perm_1.
122 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
123 should be implemented using standard shuffle patterns.
124 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
125 V2HI modes to modes, implementable with shuffle for one operand.
126 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
127 (*pshufw_1): New insn pattern.
128 (*vec_dupv2hi): Ditto.
129 (vec_initv2hihi): New expander.
131 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
133 * config/arm/vfp.md (no_literal_pool_df_immediate,
134 no_literal_pool_sf_immediate): Fix empty split condition.
136 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
138 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
139 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
140 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
141 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
142 *<sse4_1_avx2>_pblendvb_lt): Likewise.
144 2021-06-04 Jakub Jelinek <jakub@redhat.com>
147 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
148 concatenation from half-sized modes with TImode elements.
150 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
152 * config/arc/arc.c (arc_override_options): Disable millicode
153 thunks when RF16 is on.
155 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
157 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
159 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
161 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
162 Replace PROMOTE_MODE marco with its content.
164 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
166 * config/cris/cris.md (*addi_reload): Fix empty split condition.
168 2021-06-03 Jim Wilson <jimw@sifive.com>
170 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
171 turn it on for all riscv targets.
173 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
176 * config/i386/i386-expand.c (ix86_expand_vector_set):
177 Handle V2HI and V4QI modes.
178 (ix86_expand_vector_extract): Ditto.
179 * config/i386/mmx.md (*pinsrw): New insn pattern.
182 (*pextrw_zext): Ditto.
184 (*pextrb_zext): Ditto.
185 (vec_setv2hi): New expander.
186 (vec_extractv2hihi): Ditto.
187 (vec_setv4qi): Ditto.
188 (vec_extractv4qiqi): Ditto.
189 (vec_setv8qi): Enable only for TARGET_SSE4_1.
190 (vec_extractv8qiqi): Ditto.
192 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
194 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
195 order to subf instruction.
196 * config/rs6000/fusion.md: Regenerate.
198 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
200 * calls.c (get_size_range): Use range_of_expr instead of
201 determine_value_range.
202 * tree-affine.c (expr_to_aff_combination): Same.
203 * tree-data-ref.c (split_constant_offset): Same.
204 * tree-vrp.c (determine_value_range_1): Remove.
205 (determine_value_range): Remove.
206 * tree-vrp.h (determine_value_range): Remove.
208 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
210 * function-tests.c (test_ranges): Call gimple_range_tests.
211 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
213 * gimple-range.cc (fur_source::get_operand): Do not call
214 get_tree_range or gimple_range_global.
216 (get_tree_range): Move to value-query.cc.
217 Call get_arith_expr_range.
218 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
219 Include gimple-range-tests.cc.
220 * gimple-range.h (fold_range): Add argument.
221 (get_tree_range): Remove.
222 * selftest.h (gimple_range_tests): New.
223 * value-query.cc (global_range_query::range_of_expr): Add
225 (range_query::get_tree_range): Move from gimple-range.cc.
226 * value-query.h (class range_query): Add get_tree_range and
227 get_arith_expr_range. Make fur_source a friend.
228 * vr-values.c (vr_values::range_of_expr): Pass stmt to
230 * gimple-range-tests.cc: New file.
232 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
234 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
236 * value-query.cc (update_global_range): New.
237 * value-query.h (update_global_range): New.
239 2021-06-03 David Malcolm <dmalcolm@redhat.com>
241 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
242 printing the same location twice if there are fix-it hints,
243 multiple locations, or a label.
245 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
247 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
248 thresholds to narrow the upper bound on epilogue iterations.
250 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
252 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
253 (mve_vabsq_s<mode>): Likewise.
254 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
255 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
256 * config/arm/vec-common.md (neg<mode>2): Rename to
259 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
261 * common/config/arc/arc-common.c (arc_option_optimization_table):
263 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
264 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
265 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
266 * config/arc/arc.md (abssi2_mixed): Remove pattern.
267 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
268 (malign-call): Likewise.
269 (mmixed-code): Likewise.
270 * doc/invoke.texi (ARC): Update doc.
272 2021-06-03 Martin Liska <mliska@suse.cz>
274 * common.opt: Use proper Enum values.
275 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
276 (parse_sanitizer_options): Handle only sanitizer_opts.
277 (common_handle_option): Just assign value.
279 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
282 * tree-inline.c (inline_forbidden_p): Remove test on return type.
284 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
286 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
287 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
288 (type_byte_size): Inline into...
289 (add_byte_size_attribute): ...this and call add_scalar_info.
291 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
293 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
294 (typed_binop_from_tree): New function.
295 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
296 turn a divide by a power of 2 into a shift.
297 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
298 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
299 typed divide by calling typed_binop_from_tree.
301 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
303 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
304 (is_handled_procedure_type): Likewise.
305 (struct loc_descr_context): Add strict_signedness field.
306 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
307 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
308 (resolve_args_picking): Minor tweak.
309 (function_to_dwarf_procedure): Initialize strict_signedness field.
310 (type_byte_size): Likewise.
311 (field_byte_offset): Likewise.
312 (gen_descr_array_type_die): Likewise.
313 (gen_variant_part): Likewise.
314 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
315 to true when a context is present before evaluating the arguments.
316 <COND_EXPR>: Do not generate a useless comparison with zero.
317 When dereferencing an address, if strict_signedness is true and the
318 type is small and signed, use DW_OP_deref_type to do the dereference
319 and then DW_OP_convert to convert back to the generic type.
321 2021-06-03 Jakub Jelinek <jakub@redhat.com>
324 * tree-inline.c (copy_tree_body_r): Handle iterators on
325 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
327 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
329 * config/arc/arc.md (*bbit_di): Remove.
331 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
333 PR rtl-optimization/100264
334 * ree.c (get_sub_rtx): Ignore SET expressions without register
335 destinations and remove assertion, as it is not valid anymore
336 with this new behaviour.
337 (merge_def_and_ext): Eliminate destination check for register
338 as such SET expressions can't occur anymore.
339 (combine_reaching_defs): Likewise.
341 2021-06-02 Jakub Jelinek <jakub@redhat.com>
344 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
345 -Wtype-limits warnings.
346 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
347 in operands to avoid -Wsign-compare warnings.
349 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
351 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
354 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
356 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
358 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
360 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
362 * config/s390/subst.md(cconly_subst): Use a single constraint
365 2021-06-02 Martin Liska <mliska@suse.cz>
367 * ipa-icf.h: Use auto_vec for memory_access_types.
369 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
371 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
372 argument from prototype.
373 (output_logical_op): Add rtx_code argument.
374 (compute_logical_op_length): Likewise.
375 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
376 to compute_a_shift_length.
377 (output_logical_op); New argument with the rtx code rather than
378 extracting it from an operand. Handle QImode too.
379 (compute_logical_op_length): Similary.
380 (compute_a_shift_length): Drop unused argument.
381 * config/h8300/h8300.md (logicals): New code iterator.
382 * config/h8300/logical.md (<code><mode>3 expander): Combine
383 the "and" expander with the "ior"/"xor" expander.
384 (bclr<mode>msx): Combine the QI/HI mode patterns.
385 (<logical><mode>3 insns): Use code iterator rather than match_operator.
386 Handle QImode as well. Update call to output_logical_op and
387 compute_logical_op_length to pass in rtx_code
388 Fix split condition on all define_insn_and_split patterns.
389 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
390 the flags and setting ZN via existing define_subst.
391 * config/h8300/shiftrotate.md: Drop unused argument from
392 calls to compute_a_shift_length.
393 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
395 2021-06-01 Andrew Pinski <apinski@marvell.com>
397 PR tree-optimization/25290
398 * tree-ssa-phiopt.c (match_simplify_replacement):
400 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
401 (two_value_replacement): Change the comment about
402 conditional_replacement.
403 (conditional_replacement): Delete.
405 2021-06-01 Andrew Pinski <apinski@marvell.com>
407 PR tree-optimization/95481
408 * tree-tailcall.c (find_tail_calls): Handle empty typed
411 2021-06-01 Andrew Pinski <apinski@marvell.com>
413 * gimplify.c (zero_sized_field_decl): Delete
414 (zero_sized_type): Delete
415 (gimplify_init_ctor_eval): Use is_empty_type instead
416 of zero_sized_field_decl.
417 (gimplify_modify_expr): Use is_empty_type instead of
420 2021-06-01 Jason Merrill <jason@redhat.com>
423 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
425 2021-06-01 Jason Merrill <jason@redhat.com>
428 * diagnostic.h (warning_enabled_at): Declare.
429 * diagnostic.c (diagnostic_enabled): Factor out from...
430 (diagnostic_report_diagnostic): ...here.
431 (warning_enabled_at): New.
433 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
435 * gimple-ssa-evrp.c: Enable exporting of global ranges.
437 2021-06-01 Martin Liska <mliska@suse.cz>
440 * doc/invoke.texi: Mention that -fgcse-after-reload
443 2021-06-01 liuhongt <hongtao.liu@intel.com>
445 PR tree-optimization/98365
446 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
447 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
448 (convert_scalar_cond_reduction): Ditto.
449 (predicate_scalar_phi): Ditto.
451 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
453 PR tree-optimization/100781
454 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
455 value calculation by default.
456 (ranger_cache::enable_new_values): New.
457 (ranger_cache::disable_new_values): New.
458 (ranger_cache::push_poor_value): Check if new values are allowed.
459 * gimple-range-cache.h (class ranger_cache): New member/methods.
460 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
461 statement, and disable/renable new value calculation.
463 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
465 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
466 (ranger_cache::range_of_def): New.
467 (ranger_cache::entry_range): New.
468 (ranger_cache::exit_range): New.
469 (ranger_cache::range_of_expr): Adjust.
470 (ranger_cache::range_on_edge): Adjust.
471 (ranger_cache::propagate_cache): Call exit_range directly.
472 * gimple-range-cache.h (class ranger_cache): Adjust.
474 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
476 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
477 gori_compute being a member rather than base class.
478 dervied call to member call.
479 (ranger_cache::dump): No longer dump gori_map.
480 (ranger_cache::dump_bb): New.
481 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
482 being a member rather than base class.
483 (ranger_cache::set_global_range): Ditto.
484 (ranger_cache::ssa_range_in_bb): Ditto.
485 (ranger_cache::range_of_expr): New.
486 (ranger_cache::range_on_edge): New.
487 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
488 (ranger_cache::propagate_cache): Adjust debugging output.
489 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
491 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
492 member, and inherit from range_query instead.
493 (ranger_cache::dump_bb): New. split from dump.
494 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
495 (gori_compute::expr_range_at_stmt): Delete.
496 (gori_compute::compute_name_range_op): Delete.
497 (gori_compute::compute_operand_range_switch): Add fur_source.
498 (gori_compute::compute_operand_range): Add fur_source param, inline
499 old compute_name_range_op and optimize_logical_operands.
500 (struct tf_range): Delete.
501 (gori_compute::logical_combine): Adjust
502 (gori_compute::optimize_logical_operands): Delete.
503 (gori_compute::compute_logical_operands_in_chain): Delete.
504 (gori_compute::compute_logical_operands): Adjust.
505 (gori_compute::compute_operand1_range): Adjust to fur_source.
506 (gori_compute::compute_operand2_range): Ditto.
507 (gori_compute::compute_operand1_and_operand2_range): Ditto.
508 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
509 and adjust to fur_source.
510 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
511 range_query and fur_source.
512 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
513 from the ranger_cache..
514 (gimple_ranger::fold_range_internal): Adjust to base class change of
516 (gimple_ranger::dump_bb): Adjust dump.
517 * gimple-range.h (gimple_ranger):export gori computes object.
519 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
521 PR tree-optimization/100774
522 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
523 Constant values are also not stale.
524 (ranger_cache::set_global_range): Range invariant values should also
525 have the correct timestamp.
527 2021-05-31 Martin Liska <mliska@suse.cz>
529 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
530 Unpack FUNCTION_DECL_DECL_TYPE.
531 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
532 Stream FUNCTION_DECL_DECL_TYPE instead of
533 DECL_IS_OPERATOR_NEW_P.
534 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
536 (DECL_IS_OPERATOR_NEW_P): Likewise.
537 (DECL_IS_OPERATOR_DELETE_P): Likewise.
538 (DECL_LAMBDA_FUNCTION_P): Likewise.
540 2021-05-31 Richard Biener <rguenther@suse.de>
543 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
544 * internal-fn.def (SHUFFLEVECTOR): New.
545 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
546 * doc/extend.texi: Document __builtin_shufflevector.
548 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
551 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
552 indexed form addresses.
554 2021-05-29 Jeff Law <jlaw@tachyum.com>
556 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
557 parameter. Call callers fixed.
559 (output_plussi): Add FALLTHRU markers.
560 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
562 2021-05-29 Jakub Jelinek <jakub@redhat.com>
565 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
566 combined with parallel, make sure to add shared clause to
567 parallel for explicit linear clause.
569 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
571 PR tree-optimization/100787
572 * gimple-ssa-evrp.c: Disable exporting of global ranges.
574 2021-05-28 Jason Merrill <jason@redhat.com>
576 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
577 operator--, operator*, operator==, and operator!=.
578 (class tsi_range): New.
580 2021-05-28 Richard Biener <rguenther@suse.de>
582 PR tree-optimization/100778
583 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
584 trapping ops in different BBs.
586 2021-05-28 Richard Biener <rguenther@suse.de>
589 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
590 copy fntype from original call.
592 2021-05-28 Martin Liska <mliska@suse.cz>
594 PR gcov-profile/100751
595 * doc/gcov.texi: Revert partially a hunk that was wrong.
597 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
599 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
601 (HAVE_sync_compare_and_swaphi): Likewise.
602 (HAVE_sync_compare_and_swapsi): Likewise.
604 2021-05-28 Jakub Jelinek <jakub@redhat.com>
607 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
609 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
611 * gimplify.c (gimplify_omp_affinity): New.
612 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
613 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
614 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
615 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
616 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
618 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
619 Richard Biener <rguenther@suse.de>
621 * match.pd <popcount & / + pattern matching>:
622 When generating popcount directly fails, try doing it in two halves.
624 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
626 * Makefile.in (generated_files): Add gimple-match.c and
629 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
631 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
633 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
635 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
637 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
639 PR tree-optimization/99398
640 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
641 where the fed operands are CTOR/CST and propagated through
642 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
643 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
645 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
648 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
650 * config/i386/mmx.md (addv2sf3): Do not call
651 ix86_fixup_binary_operands_no_copy.
654 (<smaxmin:code>v2sf3): Ditto.
655 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
656 (<plusminus:insn><VI_32:mode>3): Remove expander.
657 (<plusminus:insn><VI_32:mode>3): Rename from
658 "*<plusminus:insn><VI_32:mode>3".
659 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
660 (mulv2hi3): Remove expander.
661 (mulv2hi3): Rename from *mulv2hi3.
662 (<s>mulv2hi3_highpart): Remove expander.
663 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
664 (<smaxmin:code><MMXMODE14:mode>3): Rename from
665 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
666 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
667 (SMAXMIN_MMXMODEI): Remove mode iterator.
668 (<smaxmin:code>v4hi3): New expander.
669 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
670 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
671 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
672 (SMAXMIN_VI_32): Remove mode iterator.
673 (<umaxmin:code><MMXMODE24:mode>3): Rename from
674 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
675 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
676 (UMAXMIN_MMXMODEI): Remove mode iterator.
677 (<umaxmin:code>v8qi3): New expander.
678 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
679 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
680 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
681 (UMAXMIN_VI_32): Remove mode iterator.
682 (<any_shift:insn>v2hi3): Remove expander.
683 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
684 (<any_logic:code><MMXMODEI:mode>3): Do not call
685 ix86_fixup_binary_operands_no_copy.
686 (<any_logic:code><VI_32:mode>3): Remove expander.
687 (<any_logic:code><VI_32:mode>3): Rename from
688 "*<any_logic:code><VI_32:mode>3".
689 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
690 * config/i386/sse.md (div<VF2:mode>3): Do not call
691 ix86_fixup_binary_operands_no_copy.
692 (div<VF1:mode>3): Ditto.
693 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
694 (smulhrsv4hi3): Ditto.
695 (smulhrsv2hi3): Ditto.
697 2021-05-27 Martin Sebor <msebor@redhat.com>
699 * ggc.h (gt_ggc_mx): Add overloads for all integers.
701 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
703 (hash_map::operator==): New function.
705 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
708 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
709 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
710 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
711 (*xop_maskcmp<VI_32:mode>3): Ditto.
712 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
713 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
715 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
718 * config/arm/arm.c (arm_configure_build_target): Remove parameter
719 opts_set, directly check opts parameters for being non-null.
720 (arm_option_restore): Update call to arm_configure_build_target.
721 (arm_option_override): Likewise.
722 (arm_can_inline_p): Likewise.
723 (arm_valid_target_attribute_tree): Likewise.
724 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
725 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
728 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
730 * vr-values.c (simplify_conversion_using_ranges): Use
731 get_range_query instead of get_global_range_query.
733 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
735 * gimple-range.cc (get_range_global): Move to value-query.cc.
736 (gimple_range_global): Same.
737 (get_global_range_query): Same.
738 (global_range_query::range_of_expr): Same.
739 * gimple-range.h (class global_range_query): Move to
741 (gimple_range_global): Same.
742 * tree-ssanames.c (get_range_info): Move to value-query.cc.
743 (get_ptr_nonnull): Same.
744 * tree-ssanames.h (get_range_info): Remove.
745 (get_ptr_nonnull): Remove.
746 * value-query.cc (get_ssa_name_range_info): Move from
748 (get_ssa_name_ptr_info_nonnull): Same.
749 (get_range_global): Move from gimple-range.cc.
750 (gimple_range_global): Same.
751 (get_global_range_query): Same.
752 (global_range_query::range_of_expr): Same.
753 * value-query.h (class global_range_query): Move from
755 (gimple_range_global): Same.
757 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
760 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
761 (uavgv2hi3_ceil): Ditto.
763 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
766 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
768 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
770 * tree-ssanames.c (get_range_info): Merge both copies of
771 get_range_info into one that works with irange.
772 * tree-ssanames.h (get_range_info): Remove version that works on
775 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
777 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
778 (expand_builtin_strnlen): Same.
779 (determine_block_size): Same.
780 * fold-const.c (expr_not_equal_to): Same.
781 * gimple-fold.c (size_must_be_zero_p): Same.
782 * gimple-match-head.c: Include gimple-range.h.
783 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
784 * gimple-ssa-warn-restrict.c
785 (builtin_memref::extend_offset_range): Same.
786 * graphite-sese-to-poly.c (add_param_constraints): Same.
787 * internal-fn.c (get_min_precision): Same.
788 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
789 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
791 * tree-data-ref.c (split_constant_offset): Same.
792 (dr_step_indicator): Same.
793 * tree-dfa.c (get_ref_base_and_extent): Same.
794 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
795 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
796 (determine_value_range): Same.
797 (record_nonwrapping_iv): Same.
798 (infer_loop_bounds_from_signedness): Same.
799 (scev_var_range_cant_overflow): Same.
800 * tree-ssa-phiopt.c (two_value_replacement): Same.
801 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
802 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
803 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
805 (dump_strlen_info): Same.
806 (set_strlen_range): Same.
807 (maybe_diag_stxncpy_trunc): Same.
808 (get_len_or_size): Same.
809 (handle_integral_assign): Same.
810 * tree-ssa-structalias.c (find_what_p_points_to): Same.
811 * tree-ssa-uninit.c (find_var_cmp_const): Same.
812 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
813 * tree-vect-patterns.c (vect_get_range_info): Same.
814 (vect_recog_divmod_pattern): Same.
815 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
816 (register_edge_assert_for_2): Same.
817 (determine_value_range_1): Same.
818 * tree.c (get_range_pos_neg): Same.
819 * vr-values.c (vr_values::get_lattice_entry): Same.
820 (vr_values::update_value_range): Same.
821 (simplify_conversion_using_ranges): Same.
823 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
825 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
826 get_range_query instead of query argument.
827 (pass_walloca::execute): Enable and disable global ranger.
829 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
831 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
833 (rvrp_folder::~rvrp_folder): Call disable_ranger.
834 (hybrid_folder::hybrid_folder): Call enable_ranger.
835 (hybrid_folder::~hybrid_folder): Call disable_ranger.
837 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
839 * function.c (allocate_struct_function): Set cfun->x_range_query.
840 * function.h (struct function): Declare x_range_query.
841 (get_range_query): New.
842 (get_global_range_query): New.
843 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
844 Remove call to safe_grow_cleared.
845 * gimple-range.cc (get_range_global): New.
846 (gimple_range_global): Move from gimple-range.h.
847 (get_global_range_query): New.
848 (global_range_query::range_of_expr): New.
849 (enable_ranger): New.
850 (disable_ranger): New.
851 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
852 (class global_range_query): New.
853 (enable_ranger): New.
854 (disable_ranger): New.
855 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
856 dump_all_value_ranges to dump.
857 * tree-vrp.c (vrp_prop::finalize): Same.
858 * value-query.cc (range_query::dump): New.
859 * value-query.h (range_query::dump): New.
860 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
861 (vr_values::dump): ...this.
862 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
863 dump and make virtual.
865 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
867 * config/i386/i386.c (ix86_autovectorize_vector_modes):
868 Add V4QImode and V16QImode for TARGET_SSE2.
869 * doc/sourcebuild.texi (Vector-specific attributes):
870 Add vect64 and vect32 description.
872 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
874 * gimple-range-gori.cc (range_def_chain::register_dependency):
875 Resize m_def_chain when needed.
877 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
879 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
880 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
881 * config/arm/vec-common.md: .. here. Add support for MVE.
883 2021-05-26 Jakub Jelinek <jakub@redhat.com>
885 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
887 * config/microblaze/microblaze.c (microblaze_legitimize_address,
889 microblaze_option_override, print_operand): Likewise.
890 * config/microblaze/microblaze.md (call_internal_plt,
891 call_value_intern_plt, call_value_intern): Likewise.
892 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
893 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
894 call_value_multiple_internal1): Likewise.
895 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
897 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
899 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
900 arc_ccfsm_advance, symbolic_reference_mentioned_p,
901 arc_raw_symbolic_reference_mentioned_p): Remove register
904 2021-05-26 Jakub Jelinek <jakub@redhat.com>
907 * omp-low.c: Include omp-offload.h.
908 (create_omp_child_function): If current_function_decl has
909 "omp declare target" attribute and is_gimple_omp_offloaded,
910 remove that attribute from the copy of attribute list and
911 add "omp target entrypoint" attribute instead.
912 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
913 variables for offloading if in omp_maybe_offloaded_ctx.
914 * omp-offload.c (pass_omp_target_link::execute): Nullify second
915 argument to GOMP_target_data_ext in offloaded code.
917 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
919 * config/csky/csky.c (csky_can_change_mode_class): Delete.
920 For csky, HF/SF mode use the low bits of VREGS.
922 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
924 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
925 DECL which is a reference for OMP.
927 2021-05-26 Martin Liska <mliska@suse.cz>
929 PR gcov-profile/100751
930 * doc/gcov.texi: Document that __gcov_dump can be called just
931 once and that __gcov_reset resets run-time counters.
933 2021-05-26 Martin Liska <mliska@suse.cz>
935 * doc/install.texi: Port relevant part from install-old.texi
936 and re-generate list of CPUs and systems.
938 2021-05-26 Martin Liska <mliska@suse.cz>
940 * Makefile.in: Remove it.
941 * doc/include/fdl.texi: Update next/previous chapters.
942 * doc/install.texi: Likewise.
943 * doc/install-old.texi: Removed.
945 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
947 * config/csky/csky.c (ck810_legitimate_index_p): Support
948 "base + index" with DF mode.
949 * config/csky/constraints.md ("Y"): New constraint for memory operands
950 without index register.
951 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
952 when mov between memory and general registers, and lower their priority.
953 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
955 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
957 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
959 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
961 * config/csky/csky.md (untyped_call): Emit clobber for return
962 registers to mark them used.
964 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
966 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
968 2021-05-26 Andrew Pinski <apinski@marvell.com>
970 * match.pd (x < 0 ? ~y : y): New patterns.
972 2021-05-26 Andrew Pinski <apinski@marvell.com>
974 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
975 A?POW2:0 and A?0:POW2.
977 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
979 * gimple-range-gori.cc (class logical_stmt_cache): Delete
980 (logical_stmt_cache::logical_stmt_cache ): Delete.
981 (logical_stmt_cache::~logical_stmt_cache): Delete.
982 (logical_stmt_cache::cache_entry::dump): Delete.
983 (logical_stmt_cache::get_range): Delete.
984 (logical_stmt_cache::cached_name ): Delete.
985 (logical_stmt_cache::same_cached_name): Delete.
986 (logical_stmt_cache::cacheable_p): Delete.
987 (logical_stmt_cache::slot_diagnostics ): Delete.
988 (logical_stmt_cache::dump): Delete.
989 (gori_compute_cache::gori_compute_cache): Delete.
990 (gori_compute_cache::~gori_compute_cache): Delete.
991 (gori_compute_cache::compute_operand_range): Delete.
992 (gori_compute_cache::cache_stmt): Delete.
993 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
995 (class gori_compute_cache): Delete.
997 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
999 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
1001 (fold_using_range::range_of_address): Adjust.
1002 (fold_using_range::range_of_phi): Adjust.
1003 * gimple-range.h (class fur_source): Adjust.
1004 (fur_source::fur_source): Adjust.
1006 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
1008 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
1009 from expr_range_in_bb and adjust.
1010 (gori_compute::compute_name_range_op): Adjust.
1011 (gori_compute::optimize_logical_operands): Adjust.
1012 (gori_compute::compute_logical_operands_in_chain): Adjust.
1013 (gori_compute::compute_operand1_range): Adjust.
1014 (gori_compute::compute_operand2_range): Adjust.
1015 (ori_compute_cache::cache_stmt): Adjust.
1016 * gimple-range-gori.h (gori_compute): Rename prototype.
1018 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
1020 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
1021 checked only after range_of_stmt, not range_on_entry.
1022 (gimple_ranger::range_on_entry): Check for non-null in any
1023 predecessor block, if it is not already non-null.
1024 (gimple_ranger::range_on_exit): DOnt check for non-null after
1025 range on entry call.
1026 (gimple_ranger::dump_bb): New. Split from dump.
1027 (gimple_ranger::dump): Adjust.
1028 * gimple-range.h (class gimple_ranger): Adjust.
1030 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
1032 * gimple-range-cache.cc (struct range_timestamp): Delete.
1033 (class temporal_cache): Adjust.
1034 (temporal_cache::get_timestamp): Delete.
1035 (temporal_cache::set_dependency): Delete.
1036 (temporal_cache::temporal_value): Adjust.
1037 (temporal_cache::current_p): Take dependencies as params.
1038 (temporal_cache::set_timestamp): Adjust.
1039 (temporal_cache::set_always_current): Adjust.
1040 (ranger_cache::get_non_stale_global_range): Adjust.
1041 (ranger_cache::register_dependency): Delete.
1042 * gimple-range-cache.h (class range_cache): Adjust.
1044 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
1046 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
1048 (range_def_chain::~range_def_chain): Dispose of obstack rather than
1049 each individual bitmap.
1050 (range_def_chain::set_import): New.
1051 (range_def_chain::get_imports): New.
1052 (range_def_chain::chain_import_p): New.
1053 (range_def_chain::register_dependency): Rename from build_def_chain
1055 (range_def_chain::def_chain_in_bitmap_p): New.
1056 (range_def_chain::add_def_chain_to_bitmap): New.
1057 (range_def_chain::has_def_chain): Just check first depenedence.
1058 (range_def_chain::get_def_chain): Process imports, use generic
1059 register_dependency routine.
1060 (range_def_chain::dump): New.
1061 (gori_map::gori_map): Allocate import list.
1062 (gori_map::~gori_map): Release imports.
1063 (gori_map::exports): Check for past allocated block size.
1064 (gori_map::imports): New.
1065 (gori_map::def_chain_in_export_p): Delete.
1066 (gori_map::is_import_p): New.
1067 (gori_map::maybe_add_gori): Handle imports.
1068 (gori_map::dump): Adjust output, add imports.
1069 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
1070 (gori_export_iterator::gori_export_iterator): New.
1071 (gori_export_iterator::next): New.
1072 (gori_export_iterator::get_name): New.
1073 * gimple-range-gori.h (range_def_chain): Add imports and direct
1074 dependecies via struct rdc.
1075 (range_def_chain::depend1): New.
1076 (range_def_chain::depend2): New.
1077 (class gori_map): Adjust.
1078 (FOR_EACH_GORI_IMPORT_NAME): New.
1079 (FOR_EACH_GORI_EXPORT_NAME): New.
1080 (class gori_export_iterator): New.
1082 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
1084 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
1085 export cache filling to here.
1086 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
1088 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
1090 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
1091 (gori_map): Move to gimple-range-gori.h.
1092 (gori_compute::gori_compute): Adjust.
1093 (gori_compute::~gori_compute): Delete.
1094 (gori_compute::compute_operand_range_switch): Adjust.
1095 (gori_compute::compute_operand_range): Adjust.
1096 (gori_compute::compute_logical_operands): Adjust.
1097 (gori_compute::has_edge_range_p ): Adjust.
1098 (gori_compute::set_range_invariant): Delete.
1099 (gori_compute::dump): Adjust.
1100 (gori_compute::outgoing_edge_range_p): Adjust.
1101 * gimple-range-gori.h (class range_def_chain): Relocate here.
1102 (class gori_map): Relocate here.
1103 (class gori_compute): Inherit from gori_map, and adjust.
1105 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
1107 * value-range.cc (range_tests_legacy): Use
1108 build_nonstandard_integer_type instead of int and short.
1110 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
1112 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
1113 when really creating an initialization statement for it.
1115 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
1117 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
1119 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
1121 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
1123 2021-05-25 Martin Liska <mliska@suse.cz>
1125 PR tree-optimization/92860
1127 * optc-save-gen.awk: Remove exceptions.
1129 2021-05-25 Martin Liska <mliska@suse.cz>
1131 * asan.h (sanitize_coverage_p): New function.
1132 * doc/extend.texi: Document it.
1133 * fold-const.c (fold_range_test): Use sanitize_flags_p
1134 instead of flag_sanitize_coverage.
1135 (fold_truth_andor): Likewise.
1136 * sancov.c: Likewise.
1137 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
1138 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
1139 -fsanitize-coverage when inlining.
1141 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
1143 * config/csky/csky-modes.def : Fix copyright.
1145 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
1147 * config/csky/csky-modes.def : Amend copyright.
1148 * config/csky/csky_insn_fpuv2.md : Likewise.
1149 * config/csky/csky_insn_fpuv3.md : Likewise.
1151 2021-05-25 Richard Biener <rguenther@suse.de>
1153 PR middle-end/100727
1154 * calls.c (initialize_argument_information): Explicitely test
1156 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
1158 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
1160 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
1161 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
1162 the signle definition. The signle definition may not work well
1163 at simplify_subreg_regno().
1164 (HARD_FRAME_POINTER_REGNUM): New.
1165 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
1166 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
1167 csky_initial_elimination_offset, csky_expand_prologue,
1168 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
1170 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
1172 * config/csky/csky.c (csky_option_override):
1173 Init csky_arch_isa_features[] in advance, so TARGET_DSP
1174 and TARGET_DIV can be set well.
1176 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
1178 * config/csky/constraints.md ("l", "h"): Delete.
1179 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
1180 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
1181 * config/csky/csky.c (regno_reg_classm,
1182 csky_secondary_reload, csky_register_move_cost):
1183 Use HILO_REGS instead of LO_REGS and HI_REGS.
1185 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
1187 * config/csky/constraints.md ("W"): New constriant for mem operand
1188 with base reg, index register.
1189 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
1190 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
1192 ("Dv"): New constraint for const double value that can be used at
1194 * config/csky/csky-modes.def (HFmode): New mode.
1195 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
1196 to "csky_valid_mem_constraint_operand" and support new constraint
1198 (csky_get_movedouble_length): New.
1199 (fpuv3_output_move): New.
1200 (fpuv3_const_double): New.
1201 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
1202 (decompose_csky_address): Refine.
1203 (csky_print_operand): New "CONST_DOUBLE" operand.
1204 (csky_output_move): Support fpv3 instructions.
1205 (csky_get_movedouble_length): New.
1206 (fpuv3_output_move): New.
1207 (fpuv3_const_double): New.
1208 (csky_emit_compare): Cover float comparsion.
1209 (csky_emit_compare_float): Refine.
1210 (csky_vaild_fpuv2_mem_operand): Rename to
1211 "csky_valid_mem_constraint_operand" and support new constraint "W".
1212 (ck860_rtx_costs): New.
1213 (csky_rtx_costs): Add the cost calculation of CK860.
1214 (regno_reg_class): New vregs for fpuv3.
1215 (csky_dbx_regno): Likewise.
1216 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
1217 (csky_conditional_register_usage): Suporrot fpuv3.
1218 (csky_dwarf_register_span): Suporrot fpuv3.
1219 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
1220 (ck810_legitimate_index_p): Support fp16.
1221 * config/csky/csky.h (TARGET_TLS): ADD CK860.
1222 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
1223 (TARGET_SINGLE_FPU): Support fpuv3.
1224 (TARGET_SUPPORT_FPV3): New.
1225 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
1226 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
1227 REG_CLASS_CONTENTS): Support fpuv3.
1228 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
1229 (csky_movsf_fpv2): Likewise.
1230 (ck801_movsf): Likewise.
1231 (csky_movsf): Likewise.
1233 (csky_movdf_fpv2): Likewise.
1234 (ck801_movdf): Likewise.
1235 (csky_movdf): Likewise.
1236 (movsicc): Refine. Use "comparison_operatior" instead of
1237 "ordered_comparison_operatior".
1238 (addsicc): Likewise.
1239 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
1240 (call_value_internal_vh): New.
1241 * config/csky/csky_cores.def (CK860): New arch and cpu.
1246 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
1247 into emit-patterns and match-patterns, remain the emit-patterns here,
1248 and move the match-patterns to csky_insn_fpuv2.md or
1250 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
1251 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
1253 * config/csky/csky_isa.def (fcr): New.
1258 (CK860): New definition for ck860.
1259 * config/csky/csky_tables.opt (ck860): New processors ck860,
1260 ck860f. And new arch ck860.
1265 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
1266 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
1267 * config/csky/t-csky-elf: Support 860.
1268 * config/csky/t-csky-linux: Likewise.
1269 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
1271 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
1273 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
1274 add generation of logical-add and add-logical fusion pairs.
1275 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
1277 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
1278 logical-add and add-logical fusion by default.
1279 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
1280 -mpower10-fusion-add-logical options.
1281 * config/rs6000/fusion.md: Regenerate file.
1283 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
1285 * value-range.cc (irange::legacy_equal_p): Check type when
1286 comparing VR_VARYING types.
1287 (range_tests_legacy): Test comparing VARYING ranges of different
1290 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
1292 * config/aarch64/aarch64.c (neoversen1_tunings):
1293 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
1295 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
1297 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
1298 extern weak symbols. Limit symbol offsets for non-GOT symbols with
1301 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
1303 * config/arm/neon.md (vec_load_lanesxi<mode>)
1304 (vec_store_lanexoi<mode>): Move ...
1305 * config/arm/vec-common.md: here.
1307 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
1309 * config/arm/neon.md (vec_load_lanesoi<mode>)
1310 (vec_store_lanesoi<mode>): Move ...
1311 * config/arm/vec-common.md: here.
1313 2021-05-24 liuhongt <hongtao.liu@intel.com>
1316 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
1317 stmt with GIMPLE_NOP when lhs doesn't exist.
1319 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
1322 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
1323 New instruction pattern.
1324 (*push<VI_32:mode>2): Ditto.
1325 (push splitter for SSE registers): New splitter.
1327 2021-05-23 Andrew Pinski <apinski@marvell.com>
1329 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
1331 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
1333 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
1334 * config/rs6000/fusion.md: Regenerate file.
1336 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
1338 * config/rs6000/genfusion.pl (gen_addadd): New function.
1339 * config/rs6000/fusion.md: Regenerate file.
1340 * config/rs6000/rs6000-cpus.def: Add
1341 OPTION_MASK_P10_FUSION_2ADD to masks.
1342 * config/rs6000/rs6000.c (rs6000_option_override_internal):
1343 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
1344 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
1346 2021-05-21 Jakub Jelinek <jakub@redhat.com>
1349 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
1350 * gimplify.c (enum gimplify_omp_var_data): Fix up
1351 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
1352 (omp_lastprivate_for_combined_outer_constructs): If combined target
1353 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
1354 GOVD_MAP | GOVD_SEEN.
1355 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
1356 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
1357 (gimplify_adjust_omp_clauses): For firstprivate clauses with
1358 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
1359 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
1360 let it be replaced by implicit map clause.
1362 2021-05-21 Jakub Jelinek <jakub@redhat.com>
1365 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
1367 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
1368 (gimplify_omp_for): Likewise.
1370 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1373 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
1374 'external' in blocks.
1376 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1379 * flag-types.h (enum openacc_privatization): New.
1380 * params.opt (-param=openacc-privatization): New.
1381 * doc/invoke.texi (openacc-privatization): Document it.
1382 * omp-general.h (get_openacc_privatization_dump_flags): New
1384 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
1385 * omp-offload.c (execute_oacc_device_lower)
1386 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
1387 * target.def (goacc.adjust_private_decl): Add 'location_t'
1389 * doc/tm.texi: Regenerate.
1390 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
1391 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
1392 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
1393 Likewise. Preserve it for...
1394 (nvptx_goacc_expand_var_decl): ... use here.
1396 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1398 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
1401 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1404 * omp-low.c (oacc_privatization_candidate_p): New function.
1405 (oacc_privatization_scan_clause_chain)
1406 (oacc_privatization_scan_decl_chain): Use it. Also
1407 'gcc_checking_assert' that we're not seeing duplicates.
1409 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1412 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
1415 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1418 * omp-offload.c (execute_oacc_device_lower): Explain.
1420 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1423 * omp-offload.c (execute_oacc_device_lower)
1424 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
1426 * internal-fn.c (expand_UNIQUE): Don't expect
1427 'IFN_UNIQUE_OACC_PRIVATE'.
1429 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1432 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
1434 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
1437 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
1438 (nvptx_goacc_expand_var_decl): Tighten.
1440 2021-05-21 Julian Brown <julian@codesourcery.com>
1441 Chung-Lin Tang <cltang@codesourcery.com>
1442 Thomas Schwinge <thomas@codesourcery.com>
1445 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
1446 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
1447 * doc/tm.texi: Regenerate.
1448 * expr.c (expand_expr_real_1): Expand decls using the
1449 expand_var_decl OpenACC hook if defined.
1450 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
1451 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
1452 * omp-low.c (omp_context): Add oacc_privatization_candidates
1454 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
1456 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
1457 private marker's gimple call arguments, and pass it to
1458 lower_oacc_reductions.
1459 (oacc_privatization_scan_clause_chain)
1460 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
1462 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
1463 * omp-offload.c (convert.h): Include.
1464 (oacc_loop_xform_head_tail): Treat private-variable markers like
1465 fork/join when transforming head/tail sequences.
1466 (struct var_decl_rewrite_info): Add struct.
1467 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
1468 (execute_oacc_device_lower): Support rewriting gang-private
1469 variables using target hook, and fix up addr_expr and var_decl
1471 * target.def (adjust_private_decl, expand_var_decl): New hooks.
1472 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
1474 (gcn_goacc_adjust_private_decl): ...this.
1475 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
1477 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
1478 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
1479 definition using gcn_goacc_adjust_gangprivate_decl...
1480 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
1481 gcn_goacc_adjust_private_decl.
1482 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
1483 (gang_private_shared_size): New global variable.
1484 (gang_private_shared_align): Likewise.
1485 (gang_private_shared_sym): Likewise.
1486 (gang_private_shared_hmap): Likewise.
1487 (nvptx_option_override): Initialize these.
1488 (nvptx_file_end): Output gang_private_shared_sym.
1489 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
1491 (nvptx_set_current_function): Clear gang_private_shared_hmap.
1492 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
1493 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
1495 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
1497 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
1499 2021-05-21 Richard Biener <rguenther@suse.de>
1500 H.J. Lu <hjl.tools@gmail.com>
1503 * expr.c (expand_constructor): Elide expand_constructor if
1504 move by pieces is preferred.
1506 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1508 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
1509 Take a flag and mode value as arguments.
1510 (aarch64_modifies_global_state_p): Likewise.
1511 (aarch64_reads_global_state_p): Likewise.
1512 (aarch64_could_trap_p): Likewise.
1513 (aarch64_get_attributes): Likewise.
1514 (aarch64_init_simd_builtins): Adjust callsite of above.
1515 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
1516 function attributes to apply to builtins.
1517 (aarch64_init_crc32_builtins): Likewise.
1518 (aarch64_init_builtin_rsqrt): Likewise.
1520 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
1522 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
1523 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
1524 (gen_2logical): Use new fusion types.
1525 * config/rs6000/fusion.md: Regenerate.
1527 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
1530 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
1531 Handle V4QI and V2HI modes.
1532 (ix86_expand_sse_movcc): Ditto.
1533 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
1534 New instruction pattern.
1535 (*eq<VI_32:mode>3): Ditto.
1536 (*gt<VI_32:mode>3): Ditto.
1537 (*xop_pcmov_<VI_32:mode>): Ditto.
1538 (mmx_pblendvb32): Ditto.
1539 (mmx_pblendvb64): Rename from mmx_pblendvb.
1540 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
1541 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
1542 (vcond<VI_32:mode><VI_32:mode>): Ditto.
1543 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
1544 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
1546 2021-05-21 Jakub Jelinek <jakub@redhat.com>
1548 PR tree-optimization/94589
1549 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
1550 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
1551 not the same as cmp3) treat <= the same as < and >= the same as >.
1552 Don't require that cond2_phi_edge is true edge, instead take
1553 false/true edges into account based on cmp1/cmp2 comparison kinds.
1555 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
1558 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
1559 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
1560 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
1561 using SMAXMIN_MMXMODEI mode iterator.
1562 (*<smaxmin:code>v4qi3): New insn pattern.
1563 (*<smaxmin:code>v2hi3): Ditto.
1564 (SMAXMIN_VI_32): New mode iterator.
1565 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
1566 (UMAXMIN_MMXMODEI): New mode iterator.
1567 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
1568 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
1569 using UMAXMIN_MMXMODEI mode iterator.
1570 (*<umaxmin:code>v4qi3): New insn pattern.
1571 (*<umaxmin:code>v2hi3): Ditto.
1572 (UMAXMIN_VI_32): New mode iterator.
1573 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
1574 (abs<VI_32:mode>2): New insn pattern.
1575 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
1576 * config/i386/sse.md: ... here.
1578 2021-05-20 Clement Chigot <clement.chigot@atos.net>
1579 David Edelsohn <dje.gcc@gmail.com>
1581 * collect2.c (scan_prog_file): Issue non-fatal warning for
1584 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
1586 * doc/invoke.texi (-Wno-c++11-extensions)
1587 (-Wno-c++14-extensions, -Wno-c++17-extensions)
1588 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
1591 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
1593 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
1594 * config/darwin.c (darwin_override_options): Likewise.
1595 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
1596 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
1597 (DWARF2_FRAME_REG_OUT): Likewise.
1598 * config/mips/mips.c (mips_output_filename): Likewise.
1599 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
1601 (rs6000_dbx_register_number): Likewise.
1602 * dbxout.c: Include flags.h.
1603 * dwarf2cfi.c (cfi_label_required_p): Likewise.
1604 (dwarf2out_do_frame): Likewise.
1605 * except.c: Include flags.h.
1606 * final.c (dwarf2_debug_info_emitted_p): Likewise.
1607 (final_scan_insn_1): Likewise.
1608 * flags.h (dwarf_debuginfo_p): New function declaration.
1609 * opts.c (dwarf_debuginfo_p): New function definition.
1610 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
1611 * toplev.c (process_options): Likewise.
1613 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
1615 * common.opt: Change type to support bitmasks.
1616 * flag-types.h (enum debug_info_type): Rename enumerator constants.
1617 (NO_DEBUG): New bitmask.
1618 (DBX_DEBUG): Likewise.
1619 (DWARF2_DEBUG): Likewise.
1620 (XCOFF_DEBUG): Likewise.
1621 (VMS_DEBUG): Likewise.
1622 (VMS_AND_DWARF2_DEBUG): Likewise.
1623 * flags.h (debug_set_to_format): New function declaration.
1624 (debug_set_count): Likewise.
1625 (debug_set_names): Likewise.
1626 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
1627 (debug_set_to_format): New function definition.
1628 (debug_set_count): Likewise.
1629 (debug_set_names): Likewise.
1630 (set_debug_level): Update access to debug_type_names.
1631 * toplev.c: Likewise.
1633 2021-05-20 Martin Sebor <msebor@redhat.com>
1635 PR middle-end/100684
1636 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
1638 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
1641 * config/i386/i386.md (isa): Remove x64_bmi.
1642 (enabled): Remove x64_bmi.
1643 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
1644 Remove general register alternative.
1645 (*andnot<VI_32:mode>3): Ditto.
1646 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
1647 (*<any_logic:code><VI_32:mode>3): Ditto.
1649 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
1651 * config/arm/arm.c: Include head files tree-vectorizer.h and
1654 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
1657 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
1658 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
1659 (<s>mulv4hi3_highpart): New expander.
1660 (*<s>mulv2hi3_highpart): New insn pattern.
1661 (<s>mulv2hi3_higpart): New expander.
1662 (*<any_shift:insn>v2hi3): New insn pattern.
1663 (<any_shift:insn>v2hi3): New expander.
1664 * config/i386/sse.md (smulhrsv2hi3): New expander.
1665 (*smulhrsv2hi3): New insn pattern.
1667 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
1669 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
1671 * params.opt (vect-inner-loop-cost-factor): New.
1672 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
1673 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
1674 tree-vectorizer.h and its required ones.
1675 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
1676 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
1677 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
1678 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
1679 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
1680 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
1682 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
1683 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
1684 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
1686 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
1687 Torbjörn Svensson <torbjorn.svensson@st.com>
1690 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
1692 2021-05-20 Jakub Jelinek <jakub@redhat.com>
1695 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
1696 explicit linear clause when combined with target, make it map(tofrom:)
1697 instead of no clause or firstprivate.
1699 2021-05-20 Jakub Jelinek <jakub@redhat.com>
1701 PR tree-optimization/94589
1702 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
1703 of integral conversions.
1705 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
1707 * gimple-range.cc (fur_source::get_operand): New.
1708 (gimple_range_fold): Delete.
1709 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
1710 (fold_using_range::range_of_range_op): Move from gimple_ranger.
1711 (fold_using_range::range_of_address): Ditto.
1712 (fold_using_range::range_of_phi): Ditto.
1713 (fold_using_range::range_of_call): Ditto.
1714 (fold_using_range::range_of_builtin_ubsan_call): Move from
1715 range_of_builtin_ubsan_call.
1716 (fold_using_range::range_of_builtin_call): Move from
1717 range_of_builtin_call.
1718 (gimple_ranger::range_of_builtin_call): Delete.
1719 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
1720 (gimple_ranger::fold_range_internal): New.
1721 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
1722 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
1723 gimple_ranger. Improve ranges of SSA_NAMES when possible.
1724 * gimple-range.h (gimple_ranger): Remove various range_of routines.
1725 (class fur_source): New.
1726 (class fold_using_range): New.
1727 (fur_source::fur_source): New.
1729 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
1730 instead of range_of_builtin_call.
1732 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
1734 * doc/cpp.texi (Common Predefined Macros): Update documentation
1735 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
1737 2021-05-19 Alex Coplan <alex.coplan@arm.com>
1740 * config/arm/arm.md (nonsecure_call_internal): Always ensure
1741 callee's address is in a register.
1743 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
1745 * common/config/riscv/riscv-common.c
1746 (riscv_subset_list::parsing_subset_version): Properly parse the letter
1748 (riscv_subset_list::parse_std_ext,
1749 riscv_subset_list::parse_multiletter_ext): To handle errors generated
1750 in riscv_subset_list::parsing_subset_version.
1752 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
1754 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
1755 type attribute in patterns generating XTN(2).
1757 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
1759 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
1760 Remove as duplicate of...
1761 (aarch64_xtn<mode>): This.
1762 (aarch64_xtn2<mode>_le): Move position in file.
1763 (aarch64_xtn2<mode>_be): Move position in file.
1764 (aarch64_xtn2<mode>): Move position in file.
1765 (vec_pack_trunc_<mode>): Define as an expander.
1767 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
1769 * config/aarch64/aarch64-simd-builtins.def: Split builtin
1770 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
1771 separate scalar and vector generators.
1772 * config/aarch64/aarch64-simd.md
1773 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
1775 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
1776 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
1777 * config/aarch64/iterators.md: Define SD_HSDI iterator.
1779 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
1781 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
1783 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
1785 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
1787 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
1788 Implement as an expand emitting a big/little endian
1789 instruction pattern.
1790 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
1791 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
1793 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
1795 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
1796 Implement as an expand emitting a big/little endian
1797 instruction pattern.
1798 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
1799 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
1800 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
1801 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
1803 2021-05-19 Richard Biener <rguenther@suse.de>
1805 PR middle-end/100672
1806 * fold-const.c (fold_negate_expr_1): Use element_precision.
1807 (negate_expr_p): Likewise.
1809 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
1811 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
1812 (pred_load): New int attribute.
1813 * config/aarch64/aarch64-sve.md
1814 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
1815 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
1816 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
1817 code_for_aarch64_load.
1819 2021-05-19 Richard Biener <rguenther@suse.de>
1821 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
1822 sure TARGET_MEM_REF bases are expanded as memory.
1823 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
1824 Do not mark TARGET_MEM_REF bases addressable.
1825 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
1826 TARGET_MEM_REF bases as never rewritable.
1827 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
1828 walk TARGET_MEM_REF bases as address-takens.
1829 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
1831 2021-05-19 Richard Biener <rguenther@suse.de>
1833 * builtins.c (get_object_alignment_1): Strip outer
1835 * tree-dfa.c (get_ref_base_and_extent): Handle outer
1836 WITH_SIZE_EXPR for size processing and process the
1838 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
1839 outer WITH_SIZE_EXPR.
1840 (ao_ref_base_alias_ptr_type): Likewise.
1841 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
1842 and handle that accordingly, stripping it for the
1844 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
1845 looking through it instead of returning NULL.
1847 2021-05-19 Jakub Jelinek <jakub@redhat.com>
1849 PR middle-end/100576
1850 * builtins.c (check_read_access): Convert bound to size_type_node if
1853 2021-05-19 Richard Biener <rguenther@suse.de>
1855 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
1856 (verify_types_in_gimple_reference): ... here. Sanitize.
1857 (verify_gimple_call): Verify references in LHS and arguments.
1858 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
1860 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
1862 * config/i386/i386.h (VALID_INT_MODE_P):
1863 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
1864 * config/i386/i386.md (isa): Add x64_bmi.
1865 (enabled): Handle x64_bmi.
1866 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
1867 Add alternative using 64bit general registers.
1868 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
1870 2021-05-19 Jakub Jelinek <jakub@redhat.com>
1873 * tree.h (OMP_MASTER_COMBINED): Define.
1874 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
1875 handling for outer combined/composite constructs to a loop.
1876 Handle lastprivate on combined target.
1877 (gimplify_expr): Formatting fix.
1879 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
1881 * passes.def: Add sink_code pass before store_merging.
1882 * tree-ssa-sink.c (pass_sink_code:clone): New.
1884 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
1886 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
1887 rs6000_special_adjust_field_align_p.
1888 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
1889 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
1891 (rs6000_function_arg): Likewise.
1892 * config/rs6000/rs6000-protos.h
1893 (rs6000_special_adjust_field_align_p): Remove prototype.
1894 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
1896 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
1897 rs6000_special_adjust_field_align_p.
1899 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
1902 * config/i386/i386.h (VALID_SSE2_REG_MODE):
1903 Add V4QI and V2HI modes.
1904 (VALID_INT_MODE_P): Ditto.
1905 * config/i386/mmx.md (VI_32): New mode iterator.
1906 (mmxvecsize): Handle V4QI and V2HI.
1908 (mov<VI_32:mode>): New expander.
1909 (*mov<mode>_internal): New insn pattern.
1910 (movmisalign<VI_32:mode>): New expander.
1911 (neg<VI_32:mode>): New expander.
1912 (<plusminus:insn><VI_32:mode>3): New expander.
1913 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
1914 (mulv2hi3): New expander.
1915 (*mulv2hi3): New insn pattern.
1916 (one_cmpl<VI_32:mode>2): New expander.
1917 (*andnot<VI_32:mode>3): New insn pattern.
1918 (<any_logic:code><VI_32:mode>3): New expander.
1919 (*<any_logic:code><VI_32:mode>3): New insn pattern.
1921 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
1923 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
1924 Fix a mode mismatch with operand 1.
1926 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
1929 * config/i386/i386-expand.c (split_double_mode): Return
1930 temporary register when simplify_gen_subreg fails with
1931 the high half od the paradoxical subreg.
1933 2021-05-18 Richard Biener <rguenther@suse.de>
1935 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
1936 and honor it when expanding.
1937 (expand_used_vars_for_block): Pass through forced_stack_var.
1938 (expand_used_vars): Likewise.
1939 (discover_nonconstant_array_refs_r): Set bits in
1940 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
1941 (avoid_type_punning_on_regs): Likewise.
1942 (discover_nonconstant_array_refs): Likewise.
1943 (pass_expand::execute): Create and pass down forced_stack_var
1944 bitmap. For parameters and returns temporarily set
1945 TREE_ADDRESSABLE when expand_function_start.
1947 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1949 * doc/sourcebuild.texi: Document 'dg-note'.
1951 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
1954 * configure: Regenerate.
1955 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
1957 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
1959 * gimple.h (is_gimple_omp_oacc): Tighten.
1960 * omp-low.c (check_omp_nesting_restrictions): Adjust.
1962 2021-05-18 Richard Biener <rguenther@suse.de>
1964 * tree-ssa-operands.c (mark_address_taken): Simplify.
1966 2021-05-18 Martin Liska <mliska@suse.cz>
1968 * config/gcn/mkoffload.c (STR): Redefine.
1969 * config/i386/intelmic-mkoffload.c (STR): Likewise.
1970 * config/nvptx/mkoffload.c (STR): Likewise.
1972 2021-05-18 Martin Liska <mliska@suse.cz>
1974 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
1975 Use startswith function instead of strncmp.
1976 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
1977 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
1978 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
1979 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
1980 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
1981 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
1982 * config/arm/arm.c (arm_file_start): Likewise.
1983 (arm_valid_target_attribute_rec): Likewise.
1984 (thumb1_md_asm_adjust): Likewise.
1985 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
1986 * config/avr/avr.c (STR_PREFIX_P): Likewise.
1987 (avr_set_current_function): Likewise.
1988 (avr_handle_addr_attribute): Likewise.
1989 (avr_asm_output_aligned_decl_common): Likewise.
1990 (avr_asm_named_section): Likewise.
1991 (avr_section_type_flags): Likewise.
1992 (avr_asm_select_section): Likewise.
1993 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
1994 (c6x_section_type_flags): Likewise.
1995 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
1996 (darwin_objc_declare_unresolved_class_reference): Likewise.
1997 (darwin_objc_declare_class_definition): Likewise.
1998 * config/darwin.c (indirect_data): Likewise.
1999 (darwin_encode_section_info): Likewise.
2000 (darwin_objc2_section): Likewise.
2001 (darwin_objc1_section): Likewise.
2002 (machopic_select_section): Likewise.
2003 (darwin_globalize_label): Likewise.
2004 (darwin_label_is_anonymous_local_objc_name): Likewise.
2005 (darwin_asm_named_section): Likewise.
2006 (darwin_asm_output_dwarf_offset): Likewise.
2007 * config/frv/frv.c (frv_string_begins_with): Likewise.
2008 (frv_in_small_data_p): Likewise.
2009 * config/gcn/mkoffload.c (STR): Likewise.
2011 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
2012 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
2013 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
2014 (ix86_md_asm_adjust): Likewise.
2015 * config/i386/intelmic-mkoffload.c (STR): Likewise.
2016 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
2017 (i386_pe_file_end): Likewise.
2018 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
2019 (ia64_section_type_flags): Likewise.
2020 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
2021 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
2022 (mips16_stub_function_p): Likewise.
2023 (mips_function_rodata_section): Likewise.
2024 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
2025 (msp430_function_section): Likewise.
2026 (msp430_section_type_flags): Likewise.
2027 (msp430_expand_helper): Likewise.
2028 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
2029 (nios2_valid_target_attribute_rec): Likewise.
2030 * config/nvptx/mkoffload.c (process): Likewise.
2032 * config/pa/som.h: Likewise.
2033 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
2034 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
2035 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
2036 (rs6000_inner_target_options): Likewise.
2037 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
2038 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
2039 * config/vax/vax.c (vax_output_int_move): Likewise.
2040 * config/vms/vms-ld.c (startswith): Likewise.
2041 (process_args): Likewise.
2043 * config/vms/vms.c: Likewise.
2045 2021-05-18 Jakub Jelinek <jakub@redhat.com>
2047 PR rtl-optimization/100590
2048 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
2049 they are NONJUMP_INSN_P.
2051 2021-05-18 Jakub Jelinek <jakub@redhat.com>
2054 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
2055 DECL_ASSEMBLER_NAME on the fn_decl.
2057 2021-05-18 Jakub Jelinek <jakub@redhat.com>
2059 PR tree-optimization/94589
2060 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
2061 phi result used in (res & ~1) == 0 comparison as res >= 0 as
2062 res == 2 would be UB with -ffinite-math-only.
2064 2021-05-18 Martin Liska <mliska@suse.cz>
2066 * Makefile.in: genversion.o should depend on DATESTAMP.
2068 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
2070 * config/arc/simdext.md (negv2si2): Remove round bracket.
2072 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
2074 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
2075 _Bool as macro expanding to _Bool.
2077 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
2080 * tree.c (build_reference_type_for_mode)
2081 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
2083 (build_reference_type, build_pointer_type): Invoke
2084 build_*_type_for_mode with VOIDmode.
2086 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
2088 PR tree-optimization/100512
2089 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
2090 and non-zero pointer ranges as invariant.
2091 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
2092 processing from here.
2094 2021-05-17 Tom de Vries <tdevries@suse.de>
2097 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
2098 * config/nvptx/nvptx.c (nvptx_output_barrier)
2099 (nvptx_output_atomic_insn): New function.
2100 (nvptx_print_operand): Add support for 'B'.
2101 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
2104 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
2106 PR tree-optimization/100349
2107 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
2110 2021-05-17 Tamar Christina <tamar.christina@arm.com>
2112 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
2113 (host_detect_local_cpu): Use it.
2115 2021-05-17 Martin Liska <mliska@suse.cz>
2117 * doc/invoke.texi: Add 2 missing dots.
2119 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
2122 * configure.ac: Replace pattern substitution with call to sed.
2123 * configure: Regenerate.
2125 2021-05-17 Richard Biener <rguenther@suse.de>
2127 PR middle-end/100582
2128 * tree.c (array_at_struct_end_p): Get to the base of the
2129 reference before looking for the underlying decl.
2131 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
2133 * genoutput.c (validate_insn_alternatives) Make "wrong number of
2134 alternatives" message more specific, and remove assumption on where
2137 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
2139 * config/arm/iterators.md (V16): New iterator.
2140 (VH_cvtto): New iterator.
2141 (v_cmp_result): Added V4HF and V8HF support.
2142 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
2143 (vcond<mode><mode>): Likewise.
2144 (vcond_mask_<mode><v_cmp_result>): Likewise.
2145 (vcond<VH_cvtto><mode>): New expander.
2147 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
2149 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
2151 * config/arm/arm.c (arm_expand_vector_compare): Add support for
2153 (arm_expand_vcond): Likewise.
2154 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
2155 VCMPEQQ_N_S, VCMPNEQ_N_S.
2156 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
2157 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
2158 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
2159 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
2160 (@mve_vpselq_<supf><mode>): Likewise.
2161 (@mve_vpselq_f<mode>"): Likewise.
2162 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
2163 and move to vec-common.md.
2164 (vec_cmpu<mode><mode>): Likewise.
2165 (vcond<mode><mode>): Likewise.
2166 (vcond<V_cvtto><mode>): Likewise.
2167 (vcondu<mode><v_cmp_result>): Likewise.
2168 (vcond_mask_<mode><v_cmp_result>): Likewise.
2169 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
2170 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
2171 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
2172 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
2173 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
2174 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
2176 (vec_cmpu<mode><mode>): Likewise.
2177 (vcond<mode><mode>): Likewise.
2178 (vcond<V_cvtto><mode>): Likewise.
2179 (vcondu<mode><v_cmp_result>): Likewise.
2180 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
2183 2021-05-17 liuhongt <hongtao.liu@intel.com>
2186 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
2187 gsi_insert_seq_before instead.
2189 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
2191 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
2192 (arm_sat_ok): ...this.
2194 2021-05-17 Martin Liska <mliska@suse.cz>
2196 * lto-wrapper.c (merge_flto_options): Factor out a new function.
2197 (merge_and_complain): Use it.
2198 (run_gcc): Merge also linker command line -flto=foo argument
2201 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
2203 * config/arm/arm.h (CPP_SPEC): Remove error message about
2204 -mlittle-endian/-mbig-endian conflict.
2206 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
2208 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2209 __ROP_PROTECT__ if -mrop-protect is selected.
2211 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
2213 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
2214 rop_hash_save_offset and rop_hash_size.
2215 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
2216 rop_hash_size and rop_hash_save_offset.
2217 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
2218 (rs6000_emit_prologue): Emit hashst[p] in prologue.
2219 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
2220 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
2222 (hashst): New define_insn.
2223 (hashchk): Likewise.
2225 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
2227 * config/rs6000/rs6000.c (rs6000_option_override_internal):
2228 Disable shrink wrap when inserting ROP-protect instructions.
2229 * config/rs6000/rs6000.opt (mrop-protect): New option.
2230 (mprivileged): Likewise.
2231 * doc/invoke.texi: Document mrop-protect and mprivileged.
2233 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
2235 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
2238 2021-05-15 Martin Jambor <mjambor@suse.cz>
2241 2021-05-13 Martin Jambor <mjambor@suse.cz>
2243 PR tree-optimization/100453
2244 * tree-sra.c (sra_modify_assign): All const base accesses do not
2245 need refreshing, not just those from decl_pool.
2246 (sra_modify_assign): Do not refresh into a const base decl.
2248 2021-05-15 Jakub Jelinek <jakub@redhat.com>
2250 PR rtl-optimization/100342
2251 * regcprop.c (copy_value): When copying a source reg in a wider
2252 mode than it has recorded for the value, adjust recorded destination
2253 mode too or punt if !REG_CAN_CHANGE_MODE_P.
2255 2021-05-14 Jason Merrill <jason@redhat.com>
2257 * intl.h: Add comments.
2259 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2261 * config/aarch64/aarch64-simd.md
2262 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
2263 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
2264 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
2265 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
2266 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
2267 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
2268 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
2269 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
2270 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
2272 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2275 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
2276 boolean logic equivalent.
2277 (vtst_s16): Likewise.
2278 (vtst_s32): Likewise.
2279 (vtst_u8): Likewise.
2280 (vtst_u16): Likewise.
2281 (vtst_u32): Likewise.
2282 (vtst_p8): Likewise.
2283 (vtst_p16): Likewise.
2284 (vtstq_s8): Likewise.
2285 (vtstq_s16): Likewise.
2286 (vtstq_s32): Likewise.
2287 (vtstq_u8): Likewise.
2288 (vtstq_u16): Likewise.
2289 (vtstq_u32): Likewise.
2290 (vtstq_p8): Likewise.
2291 (vtstq_p16): Likewise.
2292 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
2293 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
2295 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2297 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
2298 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
2299 (aarch64_sqdmlsl2<mode>): Delete.
2300 (aarch64_sqdmlal2_lane<mode>): Merge this...
2301 (aarch64_sqdmlsl2_lane<mode>): ... And this...
2302 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
2303 (aarch64_sqdmlal2_laneq<mode>): Merge this...
2304 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
2305 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
2306 (aarch64_sqdmlal2_n<mode>): Merge this...
2307 (aarch64_sqdmlsl2_n<mode>): ... And this...
2308 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
2310 2021-05-13 Martin Sebor <msebor@redhat.com>
2312 PR middle-end/100574
2313 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
2316 2021-05-13 Martin Sebor <msebor@redhat.com>
2318 PR tree-optimization/93100
2320 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
2321 don't modify referenced objects.
2323 2021-05-13 Martin Jambor <mjambor@suse.cz>
2325 PR tree-optimization/100453
2326 * tree-sra.c (sra_modify_assign): All const base accesses do not
2327 need refreshing, not just those from decl_pool.
2328 (sra_modify_assign): Do not refresh into a const base decl.
2330 2021-05-13 Martin Liska <mliska@suse.cz>
2332 * tree-ssa-dom.c: Remove m_simplifier.
2334 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
2337 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
2338 canonicalize DImode inequality comparisons against the
2339 maximum integral value.
2341 2021-05-13 Jakub Jelinek <jakub@redhat.com>
2343 PR tree-optimization/98856
2344 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
2345 Expect V2DI and V4DI arithmetic right shifts to be emulated.
2346 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
2348 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
2349 expand_vec_perm_2perm_pblendv): New functions.
2350 (ix86_expand_vec_perm_const_1): Use them.
2351 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
2352 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
2353 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
2354 (ashrv4di3): New define_expand.
2355 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
2356 and !TARGET_AVX512VL expansion.
2358 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
2361 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
2362 sizes < 16 to a register when constructing vpcmov pattern.
2363 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
2365 2021-05-13 Martin Liska <mliska@suse.cz>
2367 * gcov-io.c (gcov_write_block): Remove.
2368 (gcov_write_words): Likewise.
2369 (gcov_read_words): Re-implement using gcov_read_bytes.
2370 (gcov_allocate): Remove.
2371 (GCOV_BLOCK_SIZE): Likewise.
2372 (struct gcov_var): Remove most of the fields.
2373 (gcov_position): Implement with ftell.
2374 (gcov_rewrite): Remove setting of start and offset fields.
2375 (from_file): Re-format.
2376 (gcov_open): Remove setbuf call. It should not be needed.
2377 (gcov_close): Remove internal buffer handling.
2378 (gcov_magic): Use __builtin_bswap32.
2379 (gcov_write_counter): Use directly gcov_write_unsigned.
2380 (gcov_write_string): Use direct fwrite and do not round
2382 (gcov_seek): Use directly fseek.
2383 (gcov_write_tag): Use gcov_write_unsigned directly.
2384 (gcov_write_length): Likewise.
2385 (gcov_write_tag_length): Likewise.
2386 (gcov_read_bytes): Use directly fread.
2387 (gcov_read_unsigned): Use gcov_read_words.
2388 (gcov_read_counter): Likewise.
2389 (gcov_read_string): Use gcov_read_bytes.
2390 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
2391 that size is not in bytes, but words (4B).
2392 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
2393 (GCOV_TAG_ARCS_LENGTH): Likewise.
2394 (GCOV_TAG_ARCS_NUM): Likewise.
2395 (GCOV_TAG_COUNTER_LENGTH): Likewise.
2396 (GCOV_TAG_COUNTER_NUM): Likewise.
2397 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
2399 2021-05-13 liuhongt <hongtao.liu@intel.com>
2402 * config/i386/sse.md (ssedoublevecmode): Add attribute for
2403 V64QI/V32HI/V16SI/V4DI.
2404 (ssehalfvecmode): Add attribute for V2DI/V2DF.
2405 (*vec_concatv4si_0): Extend to VI124_128.
2406 (*vec_concat<mode>_0): New pre-reload splitter.
2407 * config/i386/predicates.md (movq_parallel): New predicate.
2409 2021-05-13 Alexandre Oliva <oliva@adacore.com>
2411 * targhooks.c (default_zero_call_used_regs): Retry using
2412 successfully-zeroed registers as sources.
2414 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
2416 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
2418 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
2421 * gimple-range.cc (range_of_builtin_call): Skip out on
2422 processing __builtin_clz when varying.
2424 2021-05-12 Tom de Vries <tdevries@suse.de>
2427 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
2428 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
2429 to ptx_version_option.
2430 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
2431 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
2432 (define_insn "nvptx_vote_ballot"): Use sync variant for
2434 * config/nvptx/nvptx.opt (ptx_version): Add enum.
2436 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
2438 2021-05-12 Richard Biener <rguenther@suse.de>
2440 PR tree-optimization/100566
2441 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
2442 allow_back for all edge queries.
2444 2021-05-12 liuhongt <hongtao.liu@intel.com>
2447 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
2448 splitters for pblendvb of NOT mask register.
2450 2021-05-12 Richard Biener <rguenther@suse.de>
2452 PR tree-optimization/100519
2453 * tree-ssa-reassoc.c (can_associate_p): Split into...
2454 (can_associate_op_p): ... this
2455 (can_associate_type_p): ... and this.
2456 (is_reassociable_op): Call can_associate_op_p.
2457 (break_up_subtract_bb): Call the appropriate predicates.
2458 (reassociate_bb): Likewise.
2460 2021-05-12 Martin Liska <mliska@suse.cz>
2462 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
2463 (run_gcc): Use -flto argument detection for merged
2466 2021-05-12 Martin Liska <mliska@suse.cz>
2468 * lto-wrapper.c (print_lto_docs_link): New function.
2469 (run_gcc): Print warning about missing job server detection
2470 after we know NR of partitions. Do the same for -flto{,=1}.
2471 * opts.c (get_option_html_page): Support -flto option.
2473 2021-05-12 Martin Liska <mliska@suse.cz>
2475 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
2477 (append_option): Remove.
2478 (find_option): Rework to use the vector type.
2479 (remove_option): Remove.
2480 (merge_and_complain): Use vectors for cl_decoded_option data
2482 (append_compiler_options): Likewise.
2483 (append_diag_options): Likewise.
2484 (append_linker_options): Likewise.
2485 (append_offload_options): Likewise.
2486 (compile_offload_image): Likewise.
2487 (compile_images_for_offload_targets): Likewise.
2488 (find_and_merge_options): Likewise.
2489 (run_gcc): Likewise.
2491 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
2494 * dwarf2out.c (dwarf2out_finish): Set
2495 have_multiple_function_sections with multi-range text_section.
2497 2021-05-12 Martin Liska <mliska@suse.cz>
2500 * Makefile.in: Remove version.h from linker command line.
2502 2021-05-12 Richard Biener <rguenther@suse.de>
2504 PR middle-end/100547
2505 * rtl.h (rtvec_alloc): Make argument size_t.
2506 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
2508 2021-05-12 Jakub Jelinek <jakub@redhat.com>
2510 PR middle-end/100508
2511 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
2512 type, don't reuse DECL_RTL if it has different mode, instead force
2513 creation of a new DEBUG_EXPR.
2515 2021-05-12 Jakub Jelinek <jakub@redhat.com>
2516 Marc Glisse <marc.glisse@inria.fr>
2518 PR tree-optimization/94589
2519 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
2520 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
2522 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
2525 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
2526 * config/i386/mmx.md (MMXMODE124): New mode iterator.
2528 (mmxintvecmode): New mode attribute.
2529 (mmxintvecmodelower): Ditto.
2530 (*mmx_maskcmpv2sf3_comm): New insn pattern.
2531 (*mmx_maskcmpv2sf3): Ditto.
2532 (vec_cmpv2sfv2si): New expander.
2533 (vcond<V2FI:mode>v2si): Ditto.
2534 (mmx_vlendvps): New insn pattern.
2535 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
2536 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
2537 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
2539 2021-05-11 Martin Sebor <msebor@redhat.com>
2542 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
2544 2021-05-11 Richard Biener <rguenther@suse.de>
2546 * gimple-fold.c (gimple_fold_call): Do not call
2547 maybe_fold_reference on call arguments or the static chain.
2548 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
2551 2021-05-11 Martin Liska <mliska@suse.cz>
2553 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
2554 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
2555 (DEF_HSAIL_SAT_BUILTIN): Likewise.
2556 (DEF_HSAIL_INTR_BUILTIN): Likewise.
2557 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
2558 * doc/frontends.texi: Remove BRIG.
2559 * doc/install.texi: Likewise.
2560 * doc/invoke.texi: Likewise.
2561 * doc/standards.texi: Likewise.
2562 * brig-builtins.def: Removed.
2563 * brig/ChangeLog: Removed.
2564 * brig/Make-lang.in: Removed.
2565 * brig/brig-builtins.h: Removed.
2566 * brig/brig-c.h: Removed.
2567 * brig/brig-lang.c: Removed.
2568 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
2569 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
2570 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
2571 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
2572 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
2573 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
2574 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
2575 * brig/brigfrontend/brig-comment-handler.cc: Removed.
2576 * brig/brigfrontend/brig-control-handler.cc: Removed.
2577 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
2578 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
2579 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
2580 * brig/brigfrontend/brig-function-handler.cc: Removed.
2581 * brig/brigfrontend/brig-function.cc: Removed.
2582 * brig/brigfrontend/brig-function.h: Removed.
2583 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
2584 * brig/brigfrontend/brig-label-handler.cc: Removed.
2585 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
2586 * brig/brigfrontend/brig-machine.c: Removed.
2587 * brig/brigfrontend/brig-machine.h: Removed.
2588 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
2589 * brig/brigfrontend/brig-module-handler.cc: Removed.
2590 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
2591 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
2592 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
2593 * brig/brigfrontend/brig-to-generic.cc: Removed.
2594 * brig/brigfrontend/brig-to-generic.h: Removed.
2595 * brig/brigfrontend/brig-util.cc: Removed.
2596 * brig/brigfrontend/brig-util.h: Removed.
2597 * brig/brigfrontend/brig-variable-handler.cc: Removed.
2598 * brig/brigfrontend/hsa-brig-format.h: Removed.
2599 * brig/brigfrontend/phsa.h: Removed.
2600 * brig/brigspec.c: Removed.
2601 * brig/config-lang.in: Removed.
2602 * brig/gccbrig.texi: Removed.
2603 * brig/lang-specs.h: Removed.
2604 * brig/lang.opt: Removed.
2606 2021-05-11 Richard Biener <rguenther@suse.de>
2609 * ipa-param-manipulation.c
2610 (ipa_param_body_adjustments::modify_call_stmt): Avoid
2611 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
2612 via gimple_call_lhs_ptr.
2614 2021-05-11 Alex Coplan <alex.coplan@arm.com>
2617 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
2618 Avoid emitting CFA adjusts on the sp if we have the fp.
2620 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
2622 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
2623 (VMULD): New iterator.
2624 (VCOND): Handle V4HF and V8HF.
2625 (VCONQ): Fix entry for V2SF.
2626 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
2627 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
2628 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
2629 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
2630 Use a 128-bit vector mode for the indexed operand. Use stype for
2631 the scheduling type.
2633 2021-05-11 Richard Biener <rguenther@suse.de>
2635 * gimple-fold.c (maybe_fold_reference): Only return
2636 is_gimple_min_invariant values.
2638 2021-05-11 Richard Biener <rguenther@suse.de>
2640 PR middle-end/100509
2641 * gimple-fold.c (fold_gimple_assign): Only call
2642 get_symbol_constant_value on register type symbols.
2644 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2645 Joe Ramsay <joe.ramsay@arm.com>
2648 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
2649 (__arm_vcmpneq): Remove duplicate definition.
2650 (__arm_vstrwq_scatter_offset_p): Likewise.
2651 (__arm_vmaxq_x): Likewise.
2652 (__arm_vmlsdavaq): Likewise.
2653 (__arm_vmlsdavaxq): Likewise.
2654 (__arm_vmlsdavq_p): Likewise.
2655 (__arm_vmlsdavxq_p): Likewise.
2656 (__arm_vrmlaldavhaq): Likewise.
2657 (__arm_vstrbq_p): Likewise.
2658 (__arm_vstrbq_scatter_offset): Likewise.
2659 (__arm_vstrbq_scatter_offset_p): Likewise.
2660 (__arm_vstrdq_scatter_offset): Likewise.
2661 (__arm_vstrdq_scatter_offset_p): Likewise.
2662 (__arm_vstrdq_scatter_shifted_offset): Likewise.
2663 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
2665 2021-05-11 Jakub Jelinek <jakub@redhat.com>
2667 PR middle-end/100471
2668 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
2669 is 0, bypass the reduction loop including
2670 GOMP_taskgroup_reduction_unregister call.
2672 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
2674 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
2676 (rs6000_density_test): Early return if costing_for_scalar is true.
2677 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
2679 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
2681 * doc/tm.texi: Regenerated.
2682 * target.def (init_cost): Add new parameter costing_for_scalar.
2683 * targhooks.c (default_init_cost): Adjust for new parameter.
2684 * targhooks.h (default_init_cost): Likewise.
2685 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
2686 (vect_compute_single_scalar_iteration_cost): Likewise.
2687 (vect_analyze_loop_2): Likewise.
2688 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
2689 (vect_bb_vectorization_profitable_p): Likewise.
2690 * tree-vectorizer.h (init_cost): Likewise.
2691 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
2692 * config/i386/i386.c (ix86_init_cost): Likewise.
2693 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
2695 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
2697 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
2698 vect_nonmem and moved into...
2699 (struct rs6000_cost_data): ...here.
2700 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
2701 (rs6000_add_stmt_cost): Likewise.
2702 (rs6000_finish_cost): Likewise.
2704 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
2706 * range-op.cc (get_bool_state): Adjust head comment.
2707 (operator_not_equal::op1_range): Fix comment.
2708 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
2710 2021-05-10 Martin Sebor <msebor@redhat.com>
2712 PR middle-end/100425
2713 PR middle-end/100510
2714 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
2715 (pass_walloca::xlimit_certain_p): ...to this.
2716 (pass_walloca::gate): Execute for any kind of handled warning.
2717 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
2718 warnings when xlimit_certain_p is set.
2720 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
2722 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
2723 Return ALTIVEC_REGS if that is best_class.
2724 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
2726 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
2728 * config/arm/arm.h (CPP_SPEC): Remove error message about
2731 2021-05-10 Martin Jambor <mjambor@suse.cz>
2733 * ipa-prop.h (IPA_NODE_REF): Removed.
2734 (IPA_NODE_REF_GET_CREATE): Likewise.
2735 (IPA_EDGE_REF): Likewise.
2736 (IPA_EDGE_REF_GET_CREATE): Likewise.
2737 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
2738 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
2739 use of ipa_node_params_sum.
2740 (ipcp_versionable_function_p): Likewise.
2741 (push_node_to_stack): Likewise.
2742 (pop_node_from_stack): Likewise.
2743 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
2744 direct use of ipa_node_params_sum.
2745 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
2746 ipa_node_params_sum.
2747 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
2749 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
2750 use of ipa_node_params_sum.
2751 (self_recursively_generated_p): Likewise.
2752 (propagate_scalar_across_jump_function): Likewise.
2753 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
2754 direct use of ipa_edge_args_sum, moved the lookup after the early
2755 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
2756 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
2757 direct uses of ipa_node_params_sum.
2758 (propagate_vr_across_jump_function): Likewise.
2759 (propagate_aggregate_lattice): Likewise.
2760 (propagate_aggs_across_jump_function): Likewise.
2761 (propagate_constants_across_call): Likewise, also replaced
2762 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
2763 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
2764 of ipa_node_params_sum.
2765 (estimate_local_effects): Likewise.
2766 (add_all_node_vals_to_toposort): Likewise.
2767 (propagate_constants_topo): Likewise.
2768 (ipcp_propagate_stage): Likewise.
2769 (ipcp_discover_new_direct_edges): Likewise.
2770 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
2771 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
2772 (get_info_about_necessary_edges): Likewise.
2773 (want_remove_some_param_p): Likewise.
2774 (create_specialized_node): Likewise.
2775 (self_recursive_pass_through_p): Likewise.
2776 (self_recursive_agg_pass_through_p): Likewise.
2777 (find_more_scalar_values_for_callers_subset): Likewise and also
2778 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
2779 case replacing two of those with a single query.
2780 (find_more_contexts_for_caller_subset): Likewise for the
2781 ipa_polymorphic_call_context overload.
2782 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
2783 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
2784 ipa_node_params_sum.
2785 (find_aggregate_values_for_callers_subset): Likewise, also reusing
2786 results of ipa_edge_args_sum->get.
2787 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
2788 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
2789 direct use of ipa_edge_args_sum.
2790 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
2791 summary query after the early exit and reused the result later.
2792 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
2793 ipa_node_params_sum.
2794 (decide_whether_version_node): Likewise. Removed re-querying for
2795 summaries after cloning.
2796 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
2797 ipa_node_params_sum.
2798 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
2800 (identify_dead_nodes): Likewise.
2801 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
2802 ipa_node_params_sum.
2803 (ipcp_store_vr_results): Likewise.
2804 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
2805 (ipa_fn_summary_t::duplicate): Likewise.
2806 (analyze_function_body): Likewise.
2807 (estimate_calls_size_and_time): Likewise.
2808 (ipa_cached_call_context::duplicate_from): Likewise.
2809 (ipa_call_context::equal_to): Likewise.
2810 (remap_edge_params): Likewise.
2811 (ipa_merge_fn_summary_after_inlining): Likewise.
2812 (inline_read_section): Likewise.
2813 * ipa-icf.c (sem_function::param_used_p): Likewise.
2814 * ipa-modref.c (compute_parm_map): Likewise.
2815 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
2817 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
2818 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
2820 * ipa-profile.c (check_argument_count): Likewise.
2821 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
2822 with a direct use of ipa_node_params_sum.
2823 (ipa_initialize_node_params): Likewise.
2824 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
2825 direct use of ipa_edge_args_sum and reused the query result.
2826 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
2827 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
2828 direct use of ipa_edge_args_sum.
2829 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
2830 ipa_node_params_sum and reused the result of the query.
2831 (ipa_analyze_node): Likewise.
2832 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
2833 of ipa_node_params_sum.
2834 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
2835 direct uses of ipa_edge_args_sum.
2836 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
2837 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
2838 direct use of ipa_edge_args_sum. Removed superficial re-querying the
2840 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
2841 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
2843 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
2844 direct use of ipa_edge_args_sum.
2845 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
2846 use of ipa_node_params_sum.
2847 (ipa_print_node_params): Likewise.
2848 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
2849 direct uses of ipa_edge_args_sum.
2850 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
2852 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
2853 ipa_node_params_sum.
2854 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
2855 scopes where it is used.
2857 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
2859 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
2860 <case E_V2SImode>: Force op_true to register.
2862 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
2864 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
2865 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
2866 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
2868 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
2869 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
2870 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
2871 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
2872 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
2873 (mve_vcmpneq_n_f<mode>): Remove.
2874 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
2875 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
2876 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
2878 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
2880 * config/arm/iterators.md (MVE_COMPARISONS): New.
2882 (mve_cmp_type): New.
2883 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
2885 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
2886 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
2887 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
2888 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
2889 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
2890 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
2891 (mve_vcmpneq_n_<mode>): Remove.
2893 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
2895 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
2896 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
2897 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
2900 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
2902 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
2903 (vcmpneq_n_u): Likewise.
2904 (vcmpeqq_u,): Likewise.
2905 (vcmpeqq_n_u): Likewise.
2906 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
2907 VCMPEQQ_N_U and VCMPNEQ_N_U.
2908 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
2909 (mve_vcmpeqq_n): Likewise.
2910 (mve_vcmpeqq): Likewise.
2911 (mve_vcmpneq_n): Likewise.
2913 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
2915 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
2916 the 's' version of the builtin.
2918 2021-05-10 Richard Biener <rguenther@suse.de>
2920 PR tree-optimization/100492
2921 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
2922 Find nothing when the loop contains an irreducible region.
2924 2021-05-10 Richard Biener <rguenther@suse.de>
2926 PR middle-end/100464
2928 * gimple-fold.c (canonicalize_constructor_val): Do not set
2931 2021-05-10 Richard Biener <rguenther@suse.de>
2933 PR tree-optimization/100434
2934 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
2936 (dse_optimize_stmt): Handle call LHS by dropping the
2937 LHS or the whole call if it doesn't have other
2939 (pass_dse::execute): Adjust.
2941 2021-05-10 Martin Liska <mliska@suse.cz>
2943 * Makefile.in: Add missing genversion rule.
2945 2021-05-10 Alex Coplan <alex.coplan@arm.com>
2948 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
2949 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
2951 2021-05-10 Martin Liska <mliska@suse.cz>
2953 * builtins.c (is_builtin_name): Use startswith
2954 function instead of strncmp.
2955 * collect2.c (main): Likewise.
2956 (has_lto_section): Likewise.
2957 (scan_libraries): Likewise.
2958 * coverage.c (coverage_checksum_string): Likewise.
2959 (coverage_init): Likewise.
2960 * dwarf2out.c (is_cxx): Likewise.
2961 (gen_compile_unit_die): Likewise.
2962 * gcc-ar.c (main): Likewise.
2963 * gcc.c (init_spec): Likewise.
2964 (read_specs): Likewise.
2965 (execute): Likewise.
2966 (check_live_switch): Likewise.
2967 * genattrtab.c (write_attr_case): Likewise.
2968 (IS_ATTR_GROUP): Likewise.
2969 * gencfn-macros.c (main): Likewise.
2970 * gengtype.c (type_for_name): Likewise.
2971 (gen_rtx_next): Likewise.
2972 (get_file_langdir): Likewise.
2973 (write_local): Likewise.
2974 * genmatch.c (get_operator): Likewise.
2975 (get_operand_type): Likewise.
2976 (expr::gen_transform): Likewise.
2977 * genoutput.c (validate_optab_operands): Likewise.
2978 * incpath.c (add_sysroot_to_chain): Likewise.
2979 * langhooks.c (lang_GNU_C): Likewise.
2980 (lang_GNU_CXX): Likewise.
2981 (lang_GNU_Fortran): Likewise.
2982 (lang_GNU_OBJC): Likewise.
2983 * lto-wrapper.c (run_gcc): Likewise.
2984 * omp-general.c (omp_max_simt_vf): Likewise.
2985 * omp-low.c (omp_runtime_api_call): Likewise.
2986 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
2987 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
2988 * real.c (real_from_string): Likewise.
2989 * selftest.c (assert_str_startswith): Likewise.
2990 * timevar.c (timer::validate_phases): Likewise.
2991 * tree.c (get_file_function_name): Likewise.
2992 * ubsan.c (ubsan_use_new_style_p): Likewise.
2993 * varasm.c (default_function_rodata_section): Likewise.
2994 (incorporeal_function_p): Likewise.
2995 (default_section_type_flags): Likewise.
2996 * system.h (startswith): Define startswith.
2998 2021-05-10 Martin Liska <mliska@suse.cz>
3000 * bitmap.h (class auto_bitmap): Remove
3001 __cplusplus >= 201103.
3002 * config/aarch64/aarch64.c: Likewise.
3003 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
3005 * sbitmap.h: Likewise.
3007 2021-05-10 Martin Liska <mliska@suse.cz>
3009 * Makefile.in: Rename gcov-iov to genversion and depend
3010 on version.h (instead of gcov-iov.h).
3011 * gcov-io.h: Include version.h instread of gcov-iov.h.
3012 * gengtype-state.c (read_state_version): Likewise.
3013 * gcov-iov.c: Moved to...
3014 * genversion.c: ...here.
3015 * lto-streamer.h (LTO_major_version): Define it with
3017 * version.c: Removed.
3018 * version.h: Removed.
3020 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
3022 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
3023 * config/arc/simdext.md (VCT): Add predicates for iterator
3027 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
3028 (<voptab>v2si3): New patterns.
3030 (reduc_plus_scal_v4hi): Likewise.
3031 (reduc_plus_scal_v2si): Likewise.
3032 (vec_duplicatev2si): Likewise.
3033 (vec_duplicatev4hi): Likewise.
3035 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
3037 * config/arc/simdext.md: Format and cleanup file.
3039 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
3041 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
3042 only when munaligned-access option is on.
3043 (movmisalign<mode>): Likewise.
3045 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
3047 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
3049 * config/arc/arc.c (arc_reorg): Remove underscore from string.
3051 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
3053 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
3054 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
3055 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
3059 (clzsi2): Use fls instruction when available.
3060 (arc_clzsi2): Likewise.
3062 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
3064 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
3066 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
3068 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
3070 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
3072 PR middle-end/100467
3073 * toplev.c (compile_file): Call insn_locations_init before
3074 targetm.asm_out.code_end.
3076 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
3079 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
3081 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
3083 2021-05-07 Jakub Jelinek <jakub@redhat.com>
3084 Andrew Stubbs <amd@codesourcery.com>
3087 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
3088 emit_move_insn operands.
3090 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
3092 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
3093 location for the outgoing edges of an empty block.
3094 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
3095 type by means of the get_array_descr_info langhook, if it is set and
3096 returns true. Remove obsolete code dealing with unnamed subtypes.
3098 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
3100 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
3101 (sbr_vector): Renamed from ssa_block_cache.
3102 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
3103 (ssa_block_ranges::~ssa_block_ranges): Remove.
3104 (sbr_vector::set_bb_range): Use varying and undefined cached values.
3105 (ssa_block_ranges::set_bb_varying): Remove.
3106 (sbr_vector::get_bb_range): Adjust assert.
3107 (sbr_vector::bb_range_p): Adjust assert.
3108 (~block_range_cache): No freeing loop required.
3109 (block_range_cache::get_block_ranges): Remove.
3110 (block_range_cache::set_bb_range): Inline get_block_ranges.
3111 (block_range_cache::set_bb_varying): Remove.
3112 * gimple-range-cache.h (set_bb_varying): Remove prototype.
3113 * value-range.h (irange_allocator::get_memory): New.
3115 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
3117 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
3118 dominator tree is available and requested.
3119 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
3120 (ranger_cache::fill_block_cache): Don't search dom tree here either.
3121 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
3123 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
3125 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
3126 only PHI nodes better.
3128 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
3130 * gimple-range-edge.h (gimple_outgoing_range): Rename from
3132 (gcond_edge_range): Export prototype.
3133 * gimple-range-edge.cc (gcond_edge_range): New.
3134 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
3135 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
3137 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
3139 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
3140 default range into a temp and allocate only what is needed.
3142 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
3144 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
3146 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
3148 * gimple-range.h (gimple_range_global): Pick up parameter initial
3149 values, and use-before defined locals are UNDEFINED.
3151 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
3153 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
3155 * tree.h (reverse_storage_order_for_component_p): Return false if
3156 the type is a pointer.
3158 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
3160 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
3162 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
3165 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
3166 Handle V8QI, V4HI and V2SI modes.
3167 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
3168 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
3169 * config/i386/i386.md (unspec): ... here.
3171 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
3172 Tom de Vries <tdevries@suse.de>
3174 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
3175 a truth_value_p reduction variable is nonintegral.
3177 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
3180 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
3181 Return false for mode sizes < 16.
3183 2021-05-07 Jakub Jelinek <jakub@redhat.com>
3186 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
3188 2021-05-06 Martin Jambor <mjambor@suse.cz>
3190 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
3191 when there is no function summary.
3192 (ipa_sra_summarize_function): produce edge summaries even when
3195 2021-05-06 Tom Tromey <tom@tromey.com>
3197 * godump.c (string_hash_eq): Remove.
3198 (go_finish): Use htab_eq_string.
3200 2021-05-06 Tom Tromey <tom@tromey.com>
3202 * gengtype-state.c (read_state): Use htab_eq_string.
3203 (string_eq): Remove.
3205 2021-05-06 Tom Tromey <tom@tromey.com>
3207 * gensupport.c (htab_eq_string): Remove.
3209 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
3212 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
3213 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
3214 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
3215 set_ignored_loc callbacks.
3216 * debug.c (do_nothing_debug_hooks): Likewise.
3217 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3218 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
3219 (in_text_section_p, last_text_label, last_cold_label,
3220 switch_text_ranges, switch_cold_ranges): New data items.
3221 (dwarf2out_note_section_used): Remove.
3222 (dwarf2out_begin_prologue): Set fde->ignored_debug and
3224 (mark_ignored_debug_section): New helper function.
3225 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
3226 mark_ignored_debug_section.
3227 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
3228 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
3229 (size_of_aranges): Adjust formula for multi-part text ranges size.
3230 (output_aranges): Output multi-part text ranges.
3231 (dwarf2out_set_ignored_loc): New callback function.
3232 (dwarf2out_finish): Output multi-part text ranges.
3233 (dwarf2out_c_finalize): Clear new data items.
3234 * final.c (final_start_function_1): Call set_ignored_loc callback.
3235 (final_scan_insn_1): Likewise.
3236 * ggc-page.c (gt_ggc_mx): New helper function.
3237 * stringpool.c (gt_pch_nx): Likewise.
3239 2021-05-06 Richard Biener <rguenther@suse.de>
3241 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
3242 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
3243 (TV_TREE_INTO_SSA): New.
3244 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
3245 (rewrite_blocks): Likewise.
3246 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
3248 2021-05-06 Jakub Jelinek <jakub@redhat.com>
3250 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
3251 abs_replacement, xor_replacement,
3252 cond_removal_in_popcount_clz_ctz_pattern,
3253 replace_phi_edge_with_variable): Change type of phi argument from
3256 2021-05-06 Richard Biener <rguenther@suse.de>
3258 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
3259 Output an opt-info message.
3260 (do_split_loop_on_cond): Likewise.
3261 (tree_ssa_split_loops): Update SSA form here.
3263 2021-05-06 Richard Biener <rguenther@suse.de>
3265 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
3266 return variable removal.
3268 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
3270 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
3271 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
3272 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
3274 * config/s390/s390.c (s390_const_operand_ok): Remove unused
3277 2021-05-06 Jakub Jelinek <jakub@redhat.com>
3279 PR tree-optimization/94589
3280 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
3281 spaceship_replacement.
3282 (cond_only_block_p, spaceship_replacement): New functions.
3284 2021-05-06 Richard Biener <rguenther@suse.de>
3287 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
3288 dealing with a debug use and only query existing addresses
3290 (lower_emutls_1): Avoid splitting out addresses for debug
3291 stmts, reset the debug stmt when we fail to find existing
3293 (lower_emutls_phi_arg): Set wi.stmt.
3295 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
3298 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
3299 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
3300 (stack_protect_test): Use cbranch helper.
3302 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
3305 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
3306 always return the establisher frame for __builtin_frame_address (0).
3308 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
3311 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
3312 (ix86_cpu_model_var): Likewise.
3313 (ix86_cpu_features2_type_node): Likewise.
3314 (ix86_cpu_features2_var): Likewise.
3315 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
3318 2021-05-05 Martin Sebor <msebor@redhat.com>
3320 * passes.def (pass_warn_printf): Run after SSA.
3322 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3324 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
3325 * config/arm/predicates.md (minus_one_operand): New predicate.
3327 2021-05-05 Jeff Law <jlaw@tachyum.com>
3329 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
3331 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
3333 PR rtl-optimization/100263
3334 * postreload.c (move2add_valid_value_p): Ensure register can
3337 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
3339 PR rtl-optimization/100411
3340 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
3341 and beginning of function markers.
3343 2021-05-05 Jeff Law <jlaw@tachyum.com>
3345 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
3346 * config/cr16/cr16.c (notice_update_cc): Remove.
3347 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
3349 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
3352 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
3353 Handle V8QI, V4HI and V2SI modes.
3354 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
3355 (ix86_build_signbit_mask): Ditto.
3356 * config/i386/mmx.md (MMXMODE14): New mode iterator.
3357 (<smaxmin:code><MMXMODE14:mode>3): New expander.
3358 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
3359 (<umaxmin:code><MMXMODE24:mode>3): New expander.
3360 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
3361 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
3362 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
3363 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
3364 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
3365 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
3367 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
3369 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
3370 not expand the VALUE_EXPR of variables put in the non-local frame.
3371 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
3372 to be ignored for debug info, ensure its variable offsets are not.
3374 2021-05-05 Richard Biener <rguenther@suse.de>
3376 PR tree-optimization/79333
3377 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
3378 Fold stmt following SSA edges.
3380 2021-05-05 Richard Biener <rguenther@suse.de>
3382 PR middle-end/100394
3383 * calls.c (expand_call): Preserve possibly throwing calls.
3384 * cfgexpand.c (expand_call_stmt): When a call can throw signal
3385 RTL expansion there are side-effects.
3386 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
3387 mark all possibly throwing stmts necessary unless we can elide
3389 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
3390 -fdelete-dead-exceptions.
3391 * tree.h (DECL_PURE_P): Add note about exceptions.
3393 2021-05-05 Alexandre Oliva <oliva@adacore.com>
3395 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
3398 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
3400 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
3401 get_fnname_from_decl for name of thunk.
3402 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
3403 and ASM_OUTPUT_LABEL.
3404 (rs6000_xcoff_declare_function_name): Use assemble_name and
3406 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
3407 (rs6000_xcoff_encode_section_info): Don't add mapping class
3408 for aliases. Always add [DS] mapping class to primary
3410 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
3412 2021-05-04 Martin Sebor <msebor@redhat.com>
3414 PR middle-end/100307
3415 * builtins.c (compute_objsize_r): Clear base0 for pointers.
3417 2021-05-04 Jeff Law <jlaw@tachyum.com>
3419 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
3421 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3423 * caller-save.c: Remove CC0.
3424 * cfgcleanup.c: Remove CC0.
3425 * cfgrtl.c: Remove CC0.
3426 * combine.c: Remove CC0.
3427 * compare-elim.c: Remove CC0.
3428 * conditions.h: Remove CC0.
3429 * config/h8300/h8300.h: Remove CC0.
3430 * config/h8300/h8300-protos.h: Remove CC0.
3431 * config/h8300/peepholes.md: Remove CC0.
3432 * config/i386/x86-tune-sched.c: Remove CC0.
3433 * config/m68k/m68k.c: Remove CC0.
3434 * config/rl78/rl78.c: Remove CC0.
3435 * config/sparc/sparc.c: Remove CC0.
3436 * config/xtensa/xtensa.c: Remove CC0.
3437 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
3438 RTL where that is used as a placeholder only.
3439 * cprop.c: Remove CC0.
3440 * cse.c: Remove CC0.
3441 * cselib.c: Remove CC0.
3442 * df-problems.c: Remove CC0.
3443 * df-scan.c: Remove CC0.
3444 * doc/md.texi: Remove CC0. Adjust an example.
3445 * doc/rtl.texi: Remove CC0. Adjust an example.
3446 * doc/tm.texi: Regenerate.
3447 * doc/tm.texi.in: Remove CC0.
3448 * emit-rtl.c: Remove CC0.
3449 * final.c: Remove CC0.
3450 * fwprop.c: Remove CC0.
3451 * gcse-common.c: Remove CC0.
3452 * gcse.c: Remove CC0.
3453 * genattrtab.c: Remove CC0.
3454 * genconfig.c: Remove CC0.
3455 * genemit.c: Remove CC0.
3456 * genextract.c: Remove CC0.
3457 * gengenrtl.c: Remove CC0.
3458 * genrecog.c: Remove CC0.
3459 * haifa-sched.c: Remove CC0.
3460 * ifcvt.c: Remove CC0.
3461 * ira-costs.c: Remove CC0.
3462 * ira.c: Remove CC0.
3463 * jump.c: Remove CC0.
3464 * loop-invariant.c: Remove CC0.
3465 * lra-constraints.c: Remove CC0.
3466 * lra-eliminations.c: Remove CC0.
3467 * optabs.c: Remove CC0.
3468 * postreload-gcse.c: Remove CC0.
3469 * postreload.c: Remove CC0.
3470 * print-rtl.c: Remove CC0.
3471 * read-rtl-function.c: Remove CC0.
3472 * reg-notes.def: Remove CC0.
3473 * reg-stack.c: Remove CC0.
3474 * reginfo.c: Remove CC0.
3475 * regrename.c: Remove CC0.
3476 * reload.c: Remove CC0.
3477 * reload1.c: Remove CC0.
3478 * reorg.c: Remove CC0.
3479 * resource.c: Remove CC0.
3480 * rtl.c: Remove CC0.
3481 * rtl.def: Remove CC0.
3482 * rtl.h: Remove CC0.
3483 * rtlanal.c: Remove CC0.
3484 * sched-deps.c: Remove CC0.
3485 * sched-rgn.c: Remove CC0.
3486 * shrink-wrap.c: Remove CC0.
3487 * simplify-rtx.c: Remove CC0.
3488 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
3489 CC_STATUS_MDEP, and CC_STATUS.
3490 * target.def: Remove CC0.
3491 * valtrack.c: Remove CC0.
3492 * var-tracking.c: Remove CC0.
3494 2021-05-04 Richard Biener <rguenther@suse.de>
3496 PR tree-optimization/100414
3497 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
3499 (tree_ssa_phiopt_worker): But unconditionally here.
3501 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3503 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
3504 && and || with floating-point and complex arguments.
3506 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
3508 * tree-inline.c (insert_debug_decl_map): Delete.
3509 (copy_debug_stmt): Minor tweak.
3510 (setup_one_parameter): Do not use a variable if the value is either
3511 a read-only DECL or a non-addressable local variable in the caller.
3512 In this case, insert the debug-only variable in the map manually.
3513 (expand_call_inline): Do not generate a CLOBBER for these values.
3514 * tree-inline.h (debug_map): Minor tweak.
3516 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
3518 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
3519 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
3521 2021-05-04 Richard Biener <rguenther@suse.de>
3523 PR tree-optimization/100329
3524 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
3526 (insert_stmt_after): Assert we're not running into asm goto.
3528 2021-05-04 Richard Biener <rguenther@suse.de>
3530 PR tree-optimization/100398
3531 * tree-ssa-dse.c (pass_dse::execute): Preserve control
3534 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3536 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
3538 2021-05-04 Alexandre Oliva <oliva@adacore.com>
3540 * builtins.c (try_store_by_multiple_pieces): New.
3541 (expand_builtin_memset_args): Use it. If target_char_cast
3542 fails, proceed as for non-constant val. Pass len's ctz to...
3543 * expr.c (clear_storage_hints): ... this. Try store by
3544 multiple pieces after setmem.
3545 (clear_storage): Adjust.
3546 * expr.h (clear_storage_hints): Likewise.
3547 (try_store_by_multiple_pieces): Declare.
3548 * passes.def: Replace the last copy_prop with ccp.
3550 2021-05-03 Tom de Vries <tdevries@suse.de>
3553 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
3556 2021-05-03 Richard Biener <rguenther@suse.de>
3558 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
3560 2021-05-03 Richard Biener <rguenther@suse.de>
3562 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
3563 (dse_dom_walker): Remove.
3564 (dse_dom_walker::dse_optimize_stmt): Rename...
3565 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
3566 (dse_dom_walker::before_dom_children): Inline ...
3567 (pass_dse::execute): ... here. Perform a reverse program
3570 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
3573 * configure: Regenerated.
3575 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
3578 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
3579 (s390_md_asm_adjust): Handle hard registers.
3581 2021-05-03 Jakub Jelinek <jakub@redhat.com>
3583 PR tree-optimization/100382
3584 * tree-ssa-dse.c: Include tree-eh.h.
3585 (dse_dom_walker::before_dom_children): Don't remove stmts if
3586 stmt_unremovable_because_of_non_call_eh_p is true.
3588 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
3590 * varasm.c (compute_reloc_for_var): Split out from...
3591 (get_variable_section): Use it.
3592 * output.h (compute_reloc_for_var): Declare.
3593 * config/rs6000/rs6000-protos.h
3594 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
3596 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
3597 Don't append storage mapping class to symbol.
3598 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
3599 Don't convert TLS BSS to common.
3600 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
3601 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
3603 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
3605 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
3606 If align is 0 from TLS class, use the same rules as varasm.c
3607 If not common, switch to BSS section manually.
3608 If common, emit appropriate comm or lcomm directive.
3609 (rs6000_xcoff_encode_section_info): Add logic to append all
3610 storage mapping classes.
3611 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
3612 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
3613 rs6000_xcoff_asm_output_aligned_decl_common.
3614 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
3615 rs6000_xcoff_asm_output_aligned_decl_common.
3616 (ASM_OUTPUT_TLS_COMMON): Use
3617 rs6000_xcoff_asm_output_aligned_decl_common.
3619 2021-05-02 Jakub Jelinek <jakub@redhat.com>
3622 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
3623 as first argument of pseudo_node_t constructors.
3625 2021-05-02 Jakub Jelinek <jakub@redhat.com>
3628 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
3630 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
3632 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
3633 (gt_pch_nx (int_range<1> *&)): New.
3634 (gt_ggc_mx (int_range<1> *&)): New.
3635 * value-range.h (class irange): Add GTY support for
3638 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
3640 * doc/options.texi (Negative): Change either or to both and.
3642 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
3644 * config/aarch64/aarch64-simd-builtins.def: Add
3645 float_ml[as][q]_laneq builtin generator macros.
3646 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
3647 (aarch64_float_mla_laneq<mode>): Define.
3648 (aarch64_float_mls_laneq<mode>): Define.
3649 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
3650 instead of GCC vector extensions.
3651 (vmlaq_laneq_f32): Likewise.
3652 (vmls_laneq_f32): Likewise.
3653 (vmlsq_laneq_f32): Likewise.
3655 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
3657 * config/aarch64/aarch64-simd-builtins.def: Add
3658 float_ml[as]_lane builtin generator macros.
3659 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
3661 (mul_lane<mode>3): This, and re-order arguments.
3662 (aarch64_float_mla_lane<mode>): Define.
3663 (aarch64_float_mls_lane<mode>): Define.
3664 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
3665 instead of GCC vector extensions.
3666 (vmlaq_lane_f32): Likewise.
3667 (vmls_lane_f32): Likewise.
3668 (vmlsq_lane_f32): Likewise.
3670 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
3672 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
3673 builtin generator macros.
3674 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
3676 (aarch64_float_mls<mode>): Define.
3677 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
3678 instead of relying on GCC vector extensions.
3679 (vmla_f64): Likewise.
3680 (vmlaq_f32): Likewise.
3681 (vmlaq_f64): Likewise.
3682 (vmls_f32): Likewise.
3683 (vmls_f64): Likewise.
3684 (vmlsq_f32): Likewise.
3685 (vmlsq_f64): Likewise.
3686 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
3688 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
3690 * config/aarch64/aarch64-simd-builtins.def: Add
3691 float_ml[as]_n_builtin generator macros.
3692 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
3694 (mul_n<mode>3): This, and re-order arguments.
3695 (aarch64_float_mla_n<mode>): Define.
3696 (aarch64_float_mls_n<mode>): Define.
3697 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
3698 instead of inline asm.
3699 (vmlaq_n_f32): Likewise.
3700 (vmls_n_f32): Likewise.
3701 (vmlsq_n_f32): Likewise.
3703 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
3705 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
3706 builtin generator macros.
3707 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
3708 (aarch64_pmull_hiv16qi_insn): Define.
3709 (aarch64_pmull_hiv16qi): Define.
3710 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
3711 instead of inline asm.
3712 (vmull_p8): Likewise.
3714 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
3716 * config/avr/avr.md: Adjust peepholes to match and
3717 generate parallels with clobber of REG_CC.
3718 (mov<mode>_insn): Rename to mov<mode>_insn_split.
3719 (*mov<mode>_insn): Rename to mov<mode>_insn.
3721 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
3723 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
3724 for VAR_DECLs if -fdata-sections enabled.
3726 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
3729 * config/rs6000/rs6000.c
3730 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
3731 (rs6000_libgcc_floating_mode_supported_p): New target hook.
3733 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
3735 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
3737 (class back_threader_registry): ...to here...
3738 (class back_threader_profitability): ...and here...
3739 (thread_jumps::thread_through_all_blocks): Remove argument.
3740 (back_threader_registry::back_threader_registry): New.
3741 (back_threader_registry::~back_threader_registry): New.
3742 (back_threader_registry::thread_through_all_blocks): New.
3743 (thread_jumps::profitable_jump_thread_path): Move from here...
3744 (back_threader_profitability::profitable_path_p): ...to here.
3745 (thread_jumps::find_taken_edge): New.
3746 (thread_jumps::convert_and_register_current_path): Move...
3747 (back_threader_registry::register_path): ...to here.
3748 (thread_jumps::register_jump_thread_path_if_profitable): Move...
3749 (thread_jumps::maybe_register_path): ...to here.
3750 (thread_jumps::handle_phi): Call find_taken_edge and
3751 maybe_register_path.
3752 (thread_jumps::handle_assignment): Same.
3753 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
3754 tree argument to handle_phi and handle_assignment.
3755 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
3756 set of m_speed_p and m_max_threaded_paths.
3757 (pass_thread_jumps::execute): Remove second argument from
3758 find_jump_threads_backwards.
3759 (pass_early_thread_jumps::execute): Same.
3761 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
3763 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
3764 (class dom_opt_dom_walker): Initialize some class variables.
3765 (pass_dominator::execute): Pass evrp_range_analyzer and
3766 dom_jump_threader_simplifier to dom_opt_dom_walker.
3767 Adjust for some functions moving into classes.
3768 (simplify_stmt_for_jump_threading): Adjust and move to...
3769 (jump_threader_simplifier::simplify): ...here.
3770 (dom_opt_dom_walker::before_dom_children): Adjust for
3771 m_evrp_range_analyzer.
3772 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
3773 (test_for_singularity): Place in dom_opt_dom_walker class.
3774 (dom_opt_dom_walker::optimize_stmt): The argument
3775 evrp_range_analyzer is now a class field.
3776 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
3777 (thread_jumps::thread_through_all_blocks): New.
3778 (thread_jumps::convert_and_register_current_path): Use m_registry.
3779 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
3780 being in the threader class.
3781 (pass_early_thread_jumps::execute): Same.
3782 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
3783 (jump_threader::jump_threader): ...here.
3784 (threadedge_finalize_values): Move...
3785 (jump_threader::~jump_threader): ...here.
3786 (jump_threader::remove_jump_threads_including): New.
3787 (jump_threader::thread_through_all_blocks): New.
3788 (record_temporary_equivalences_from_phis): Move...
3789 (jump_threader::record_temporary_equivalences_from_phis): ...here.
3790 (record_temporary_equivalences_from_stmts_at_dest): Move...
3791 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
3793 (simplify_control_stmt_condition_1): Move to jump_threader class.
3794 (simplify_control_stmt_condition): Move...
3795 (jump_threader::simplify_control_stmt_condition): ...here.
3796 (thread_around_empty_blocks): Move...
3797 (jump_threader::thread_around_empty_blocks): ...here.
3798 (thread_through_normal_block): Move...
3799 (jump_threader::thread_through_normal_block): ...here.
3800 (thread_across_edge): Move...
3801 (jump_threader::thread_across_edge): ...here.
3802 (thread_outgoing_edges): Move...
3803 (jump_threader::thread_outgoing_edges): ...here.
3804 * tree-ssa-threadedge.h: Move externally facing functings...
3805 (class jump_threader): ...here...
3806 (class jump_threader_simplifier): ...and here.
3807 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
3808 (jump_thread_path_allocator::jump_thread_path_allocator): New.
3809 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
3810 (jump_thread_path_allocator::allocate_thread_edge): New.
3811 (jump_thread_path_allocator::allocate_thread_path): New.
3812 (jump_thread_path_registry::jump_thread_path_registry): New.
3813 (jump_thread_path_registry::~jump_thread_path_registry): New.
3814 (jump_thread_path_registry::allocate_thread_edge): New.
3815 (jump_thread_path_registry::allocate_thread_path): New.
3816 (dump_jump_thread_path): Make extern.
3817 (debug (const vec<jump_thread_edge *> &path)): New.
3818 (struct removed_edges): Move to tree-ssa-threadupdate.h.
3819 (struct thread_stats_d): Remove.
3820 (remove_ctrl_stmt_and_useless_edges): Make static.
3821 (lookup_redirection_data): Move...
3822 (jump_thread_path_registry::lookup_redirection_data): ...here.
3823 (ssa_redirect_edges): Make static.
3824 (thread_block_1): Move...
3825 (jump_thread_path_registry::thread_block_1): ...here.
3826 (thread_block): Move...
3827 (jump_thread_path_registry::thread_block): ...here.
3828 (thread_through_loop_header): Move...
3829 (jump_thread_path_registry::thread_through_loop_header): ...here.
3830 (mark_threaded_blocks): Move...
3831 (jump_thread_path_registry::mark_threaded_blocks): ...here.
3832 (debug_path): Move...
3833 (jump_thread_path_registry::debug_path): ...here.
3834 (debug_all_paths): Move...
3835 (jump_thread_path_registry::dump): ..here.
3836 (rewire_first_differing_edge): Move...
3837 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
3838 (adjust_paths_after_duplication): Move...
3839 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
3840 (duplicate_thread_path): Move...
3841 (jump_thread_path_registry::duplicate_thread_path): ..here.
3842 (remove_jump_threads_including): Move...
3843 (jump_thread_path_registry::remove_jump_threads_including): ...here.
3844 (thread_through_all_blocks): Move to...
3845 (jump_thread_path_registry::thread_through_all_blocks): ...here.
3846 (delete_jump_thread_path): Remove.
3847 (register_jump_thread): Move...
3848 (jump_thread_path_registry::register_jump_thread): ...here.
3849 * tree-ssa-threadupdate.h: Move externally facing functions...
3850 (class jump_thread_path_allocator): ...here...
3851 (class jump_thread_path_registry): ...and here.
3852 (thread_through_all_blocks): Remove.
3853 (struct removed_edges): New.
3854 (register_jump_thread): Remove.
3855 (remove_jump_threads_including): Remove.
3856 (delete_jump_thread_path): Remove.
3857 (remove_ctrl_stmt_and_useless_edges): Remove.
3858 (free_dom_edge_info): New prototype.
3859 * tree-vrp.c: Remove x_vr_values hack.
3860 (class vrp_jump_threader_simplifier): New.
3861 (vrp_jump_threader_simplifier::simplify): New.
3862 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
3863 Remove m_dummy_cond.
3864 Instantiate m_simplifier and m_threader.
3865 (vrp_jump_threader::thread_through_all_blocks): New.
3866 (vrp_jump_threader::simplify_stmt): Remove.
3867 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
3868 Remove x_vr_values hack.
3869 (execute_vrp): Adjust for thread_through_all_blocks being in a
3872 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
3874 * genflags.c (gen_insn): Print failed expansion string.
3876 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
3878 * expr.c (alignment_for_piecewise_move): Call mode_for_size
3879 without limit to MAX_FIXED_MODE_SIZE.
3881 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
3884 * builtins.c (builtin_memset_gen_str): Don't use return from
3885 simplify_gen_subreg.
3887 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
3890 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
3891 (*addsi3_carry_zext_0r): Ditto.
3892 (*sub<mode>3_carry_0): Ditto.
3893 (*subsi3_carry_zext_0r): Ditto.
3894 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
3896 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
3897 Also consider ix86_carry_flag_unset_operator to calculate
3898 the cost of adc/sbb insn.
3900 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
3902 PR rtl-optimization/100225
3903 PR rtl-optimization/84878
3904 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
3905 where we have an instruction which touches (writes) any hard
3906 register from df->regular_block_artificial_uses set.
3907 Allow not-single-set instruction only right before basic block
3910 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
3912 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
3914 2021-04-30 LevyHsu <admin@levyhsu.com>
3916 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
3917 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
3918 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
3919 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
3921 2021-04-29 Alexandre Oliva <oliva@adacore.com>
3923 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
3925 2021-04-29 Alexandre Oliva <oliva@adacore.com>
3927 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
3928 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
3929 * config/i386/i386.c: Adjust.
3930 * config/i386/i386.md: Adjust.
3931 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
3932 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3933 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3934 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3935 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3936 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3937 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3938 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3939 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3940 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3941 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
3943 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
3945 * config/i386/i386-expand.c (ix86_expand_int_compare):
3946 Swap operands of GTU and LEU comparison to emit carry flag comparison.
3947 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
3948 predicate to allow more combine opportunities with memory operands.
3949 (*sub<mode>3_carry_0): Ditto.
3951 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
3953 PR rtl-optimization/100303
3954 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
3955 boolean that indicates whether the use will only be used in
3956 debug instructions. Treat it in the same way that existing
3957 cross-EBB debug references would be handled if so.
3958 (function_info::make_uses_available): Likewise.
3959 * rtl-ssa/functions.h (function_info::make_uses_available): Update
3960 prototype accordingly.
3961 (function_info::make_uses_available): Likewise.
3962 * fwprop.c (try_fwprop_subst): Update call accordingly.
3964 2021-04-29 Jeff Law <jlaw@tachyum.com>
3966 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
3969 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
3970 Richard Biener <rguenther@suse.de>
3973 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
3974 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
3975 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
3976 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
3977 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
3978 to PURE_ARGS category.
3979 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
3980 Handle PURE_ARGS category.
3981 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
3983 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
3985 * configure.ac: Check for the presence of sys/locking.h header and
3986 for whether _LK_LOCK is supported by _locking.
3987 * configure: Regenerate.
3988 * config.in: Likewise.
3989 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
3990 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
3991 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
3993 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
3995 * config/i386/predicates.md (fcmov_comparison_operator):
3996 Do not check for trivial FP comparison operator.
3997 <case GEU, case LTU>: Allow CCGZmode.
3998 <case GTU, case LEU>: Do not allow CCCmode.
3999 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
4000 (ix86_carry_flag_operator): Match only LTU and UNLT code.
4001 Do not check for trivial FP comparison operator. Allow CCGZmode.
4003 2021-04-29 Tom de Vries <tdevries@suse.de>
4005 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
4006 fd->loop.step by either step or orig_step.
4008 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
4010 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
4011 (load_got_register): Do the PIC dance here.
4012 (sparc_legitimize_tls_address): Simplify.
4013 (sparc_emit_probe_stack_range): Likewise.
4014 (sparc32_initialize_trampoline): Likewise.
4015 (sparc64_initialize_trampoline): Likewise.
4016 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
4017 (probe_stack_range<P:mode>): Likewise.
4018 (flush<P:mode>): Likewise.
4019 (tgd_hi22<P:mode>): Likewise.
4020 (tgd_lo10<P:mode>): Likewise.
4021 (tgd_add<P:mode>): Likewise.
4022 (tgd_call<P:mode>): Likewise.
4023 (tldm_hi22<P:mode>): Likewise.
4024 (tldm_lo10<P:mode>): Likewise.
4025 (tldm_add<P:mode>): Likewise.
4026 (tldm_call<P:mode>): Likewise.
4027 (tldo_hix22<P:mode>): Likewise.
4028 (tldo_lox10<P:mode>): Likewise.
4029 (tldo_add<P:mode>): Likewise.
4030 (tie_hi22<P:mode>): Likewise.
4031 (tie_lo10<P:mode>): Likewise.
4032 (tie_add<P:mode>): Likewise.
4033 (tle_hix22<P:mode>): Likewise.
4034 (tle_lox10<P:mode>): Likewise.
4035 (stack_protect_setsi): Rename to...
4036 (stack_protect_set32): ...this.
4037 (stack_protect_setdi): Rename to...
4038 (stack_protect_set64): ...this.
4039 (stack_protect_set): Adjust calls to above.
4040 (stack_protect_testsi): Rename to...
4041 (stack_protect_test32): ...this.
4042 (stack_protect_testdi): Rename to...
4043 (stack_protect_test64): ...this.
4044 (stack_protect_test): Adjust calls to above.
4046 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
4049 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
4050 (builtin_strncpy_read_str): Likewise.
4051 (builtin_memset_read_str): Add an argument for the previous RTL
4052 information and generate the new RTL from the previous RTL info.
4053 (builtin_memset_gen_str): Likewise.
4054 * builtins.h (builtin_strncpy_read_str): Update the prototype.
4055 (builtin_memset_read_str): Likewise.
4056 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
4057 returns true, round up size and alignment to the widest integer
4058 mode for maximum size.
4059 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
4060 and pass it to m_constfn.
4061 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
4062 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
4063 initialize m_push. Initialize m_overlap_op_by_pieces with
4064 targetm.overlap_op_by_pieces_p ().
4065 (op_by_pieces_d::run): Pass the previous RTL information to
4066 pieces_addr::adjust and generate overlapping operations if
4067 m_overlap_op_by_pieces is true.
4069 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
4071 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
4073 (can_store_by_pieces): Use by_pieces_constfn on constfun.
4074 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
4075 for op_by_pieces_d change.
4076 (clear_by_pieces_1): Add a dummy argument.
4077 (clear_by_pieces): Updated for op_by_pieces_d change.
4078 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
4079 (string_cst_read_str): Add a dummy argument.
4080 * expr.h (by_pieces_constfn): Add a dummy argument.
4081 (by_pieces_prev): New.
4082 * target.def (overlap_op_by_pieces_p): New target hook.
4083 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
4084 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
4085 * doc/tm.texi: Regenerated.
4087 2021-04-29 Richard Biener <rguenther@suse.de>
4089 PR tree-optimization/100253
4090 * tree-vect-stmts.c (vectorizable_load): Do not assume
4091 element alignment when DR_MISALIGNMENT is -1.
4092 (vectorizable_store): Likewise.
4094 2021-04-29 Jakub Jelinek <jakub@redhat.com>
4097 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
4098 absu_hwi instead of abs_hwi.
4100 2021-04-29 Richard Biener <rguenther@suse.de>
4103 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
4104 forwarding when indirect forwarding through ESCAPED
4107 2021-04-29 Tom de Vries <tdevries@suse.de>
4110 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
4111 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
4112 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
4113 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
4115 2021-04-29 Richard Biener <rguenther@suse.de>
4117 PR tree-optimization/99912
4118 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
4119 (dse_dom_walker::todo): Likewise.
4120 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
4122 (dse_dom_walker::before_dom_children): Remove trivially
4123 dead SSA defs and schedule CFG cleanup if we removed all
4125 (pass_dse::execute): Get TODO as computed by the DOM walker
4126 and return it. Wipe dominator info earlier.
4128 2021-04-29 Richard Biener <rguenther@suse.de>
4131 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
4132 Track blocks to cleanup EH in new m_need_eh_cleanup.
4133 (ipcp_modif_dom_walker::cleanup_eh): New.
4134 (ipcp_transform_function): Release dominator info before
4137 2021-04-29 Martin Sebor <msebor@redhat.com>
4139 PR middle-end/100250
4140 * attribs.c (attr_access::array_as_string): Avoid dereferencing
4141 a pointer when it's null.
4143 2021-04-29 Martin Sebor <msebor@redhat.com>
4145 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
4146 * ipa-free-lang-data.cc: New file.
4147 * tree.c: Move pass free_lang_data to file above.
4148 (build_array_type_1): Declare extern.
4149 * tree.h (build_array_type_1): Declare.
4151 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
4153 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
4154 make consistent with updated RTL pattern.
4155 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
4156 Implement using ss_truncate and us_truncate rather than
4158 * config/aarch64/iterators.md: Remove redundant unspecs and
4159 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
4161 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
4163 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
4164 attributes consistent with those defined in arm_neon.h.
4166 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
4168 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
4169 attributes consistent with those defined in arm_neon.h.
4171 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
4173 * config/aarch64/aarch64-simd-builtins.def: Add
4174 float_trunc_rodd builtin generator macros.
4175 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
4177 (aarch64_float_trunc_rodd_lo_v2sf): Define.
4178 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
4179 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
4180 (aarch64_float_trunc_rodd_hi_v4sf): Define.
4181 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
4182 instead of inline asm.
4183 (vcvtx_high_f32_f64): Likewise.
4184 (vcvtxd_f32_f64): Likewise.
4185 * config/aarch64/iterators.md: Add FCVTXN unspec.
4187 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
4189 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
4191 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
4193 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
4194 instead of inline asm.
4195 (vqtbx1_u8): Likewise.
4196 (vqtbx1_p8): Likewise.
4197 (vqtbx1q_s8): Likewise.
4198 (vqtbx1q_u8): Likewise.
4199 (vqtbx1q_p8): Likewise.
4200 (vtbx2_s8): Likewise.
4201 (vtbx2_u8): Likewise.
4202 (vtbx2_p8): Likewise.
4204 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
4206 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
4208 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
4209 instead of inline asm.
4210 (vqtbl1_s8): Likewise.
4211 (vqtbl1_u8): Likewise.
4212 (vqtbl1q_p8): Likewise.
4213 (vqtbl1q_s8): Likewise.
4214 (vqtbl1q_u8): Likewise.
4215 (vtbl1_s8): Likewise.
4216 (vtbl1_u8): Likewise.
4217 (vtbl1_p8): Likewise.
4218 (vtbl2_s8): Likewise.
4219 (vtbl2_u8): Likewise.
4220 (vtbl2_p8): Likewise.
4222 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
4224 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
4225 ssri_n buitin generator macro.
4226 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
4227 instead of inline asm.
4228 (vsri_n_p16): Likewise.
4229 (vsri_n_p64): Likewise.
4230 (vsriq_n_p8): Likewise.
4231 (vsriq_n_p16): Likewise.
4232 (vsriq_n_p64): Likewise.
4234 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
4236 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
4237 iterator for polynomial ssli_n builtin generator macro.
4238 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
4239 instead of inline asm.
4240 (vsli_n_p16): Likewise.
4241 (vsliq_n_p8): Likewise.
4242 (vsliq_n_p16): Likewise.
4243 * config/aarch64/iterators.md: Define VALLP mode iterator.
4245 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
4247 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
4248 iterator to generate [su]adalp RTL builtins.
4249 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
4250 [su]adalp RTL pattern.
4251 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
4252 instead of inline asm.
4253 (vpadal_u32): Likewise.
4255 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
4257 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
4258 builtin generator macros.
4259 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
4261 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
4262 instead of inline asm.
4263 (vpaddl_s16): Likewise.
4264 (vpaddl_s32): Likewise.
4265 (vpaddl_u8): Likewise.
4266 (vpaddl_u16): Likewise.
4267 (vpaddl_u32): Likewise.
4268 (vpaddlq_s8): Likewise.
4269 (vpaddlq_s16): Likewise.
4270 (vpaddlq_s32): Likewise.
4271 (vpaddlq_u8): Likewise.
4272 (vpaddlq_u16): Likewise.
4273 (vpaddlq_u32): Liwewise.
4274 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
4275 appropriate attributes.
4277 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
4279 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
4280 for aarch64_addp<mode> builtin macro generator.
4281 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
4282 aarch64_addp<mode> RTL pattern.
4283 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
4284 instead of inline asm.
4285 (vpaddq_s16): Likewise.
4286 (vpaddq_s32): Likewise.
4287 (vpaddq_s64): Likewise.
4288 (vpaddq_u8): Likewise.
4289 (vpaddq_u16): Likewise.
4290 (vpaddq_u32): Likewise.
4291 (vpaddq_u64): Likewise.
4293 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
4295 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
4296 builtin generator macros.
4297 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
4299 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
4300 instead of inline asm.
4301 (vqdmulh_n_s32): Likewise.
4302 (vqdmulhq_n_s16): Likewise.
4303 (vqdmulhq_n_s32): Likewise.
4304 (vqrdmulh_n_s16): Likewise.
4305 (vqrdmulh_n_s32): Likewise.
4306 (vqrdmulhq_n_s16): Likewise.
4307 (vqrdmulhq_n_s32): Likewise.
4309 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
4311 * doc/install.texi (--enable-offload-defaulted): Document.
4313 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
4315 * config/avr/avr-dimode.md: Turn existing patterns into
4316 define_insn_and_split style patterns where the splitter
4317 adds a clobber of the condition code register. Drop "cc"
4318 attribute. Add new patterns to match output of
4320 * config/avr/avr-fixed.md: Likewise.
4321 * config/avr/avr.c (cc_reg_rtx): New.
4322 (avr_parallel_insn_from_insns): Adjust insn count
4323 for removal of set of cc0.
4324 (avr_is_casesi_sequence): Likewise.
4325 (avr_casei_sequence_check_operands): Likewise.
4326 (avr_optimize_casesi): Likewise. Also insert
4327 new insns after jump_insn.
4328 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
4329 for removal of set of cc0.
4330 (avr_init_expanders): Initialize cc_reg_rtx.
4331 (avr_regno_reg_class): Handle REG_CC.
4332 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
4333 (avr_notice_update_cc): Remove function.
4334 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
4335 (compare_condition): Adjust for PARALLEL with
4337 (out_shift_with_cnt): Likewise.
4338 (ashlhi3_out): Likewise.
4339 (ashrhi3_out): Likewise.
4340 (lshrhi3_out): Likewise.
4341 (avr_class_max_nregs): Return single reg for REG_CC.
4342 (avr_compare_pattern): Check for REG_CC instead
4344 (avr_reorg_remove_redundant_compare): Likewise.
4345 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
4346 (avr_hard_regno_nregs): Return single reg for REG_CC.
4347 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
4348 (avr_md_asm_adjust): Clobber REG_CC.
4349 (TARGET_HARD_REGNO_NREGS): Define.
4350 (TARGET_CLASS_MAX_NREGS): Define.
4351 (TARGET_MD_ASM_ADJUST): Define.
4352 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
4354 (enum reg_class): Add CC_REG class.
4355 (NOTICE_UPDATE_CC): Remove.
4356 (CC_OVERFLOW_UNUSABLE): Remove.
4357 (CC_NO_CARRY): Remove.
4358 * config/avr/avr.md: Turn existing patterns into
4359 define_insn_and_split style patterns where the splitter
4360 adds a clobber of the condition code register. Drop "cc"
4361 attribute. Add new patterns to match output of
4363 (sez): Remove unused pattern.
4365 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
4368 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
4371 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
4374 * config/aarch64/constraints.md (Utq): Require the address to
4375 be valid for both the element mode and for V2DImode.
4377 2021-04-28 Jakub Jelinek <jakub@redhat.com>
4378 Tobias Burnus <tobias@codesourcery.com>
4380 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
4381 * gcc.c (process_command): New variable.
4382 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
4383 set it if -foffload is defaulted.
4384 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
4385 (compile_offload_image): If OFFLOAD_DEFAULTED and
4386 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
4387 if corresponding mkoffload can't be found.
4388 (compile_images_for_offload_targets): Likewise. Free and clear
4389 offload_names if no valid offload is found.
4390 * config.in: Regenerate.
4391 * configure: Regenerate.
4393 2021-04-28 Richard Biener <rguenther@suse.de>
4395 PR tree-optimization/100292
4396 * tree-vect-generic.c (expand_vector_condition): Do not fold
4399 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
4401 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
4402 * config/rs6000/aix64.opt (m64): New.
4405 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
4407 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
4408 (index_term_p): Handle ASHIFT too.
4410 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
4412 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
4413 (sync_lock_test_and_set<mode>): Adjust accordingly.
4414 (sync_lock_release<mode>): Likewise.
4416 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
4418 * config/vax/vax-protos.h (adjacent_operands_p): Remove
4420 * config/vax/vax.c (adjacent_operands_p): Remove.
4422 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
4424 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
4425 through to the non-conditional execution case if getting the
4426 condition for conditional execution has failed.
4428 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
4430 PR middle-end/100284
4431 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
4432 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
4433 than asserting on it.
4435 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
4437 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
4440 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
4443 * calls.c (precompute_register_parameters): Additionally test
4444 targetm.precompute_tls_p to pre-compute argument.
4445 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
4446 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
4447 * target.def (precompute_tls_p): New.
4448 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
4449 * doc/tm.texi: Regenerated.
4451 2021-04-27 Jakub Jelinek <jakub@redhat.com>
4454 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
4455 back to HOST_WIDE_INT.
4457 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
4460 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
4461 memory alignment for the outer mode.
4463 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
4466 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
4467 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
4469 2021-04-27 Alex Coplan <alex.coplan@arm.com>
4472 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
4473 with negative immediates: ensure we expand cbranchsi4_scratch
4474 correctly and ensure we satisfy its constraints.
4475 * config/arm/sync.md
4476 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
4477 attempt to tie two output operands together with constraints;
4478 collapse two alternatives.
4479 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
4480 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
4482 2021-04-27 Jakub Jelinek <jakub@redhat.com>
4485 * config/aarch64/predicates.md (aarch64_sub_immediate,
4486 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
4487 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
4488 * config/aarch64/aarch64.c (aarch64_print_operand,
4489 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
4491 2021-04-27 Jakub Jelinek <jakub@redhat.com>
4493 PR tree-optimization/100239
4494 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
4495 permutations with all indices from the first zero element as vec_shl.
4497 2021-04-27 Jakub Jelinek <jakub@redhat.com>
4499 PR rtl-optimization/100254
4500 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
4501 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
4503 2021-04-27 Richard Biener <rguenther@suse.de>
4505 PR tree-optimization/99912
4506 * passes.def: Add comment about new TODO_remove_unused_locals.
4507 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
4510 2021-04-27 Richard Biener <rguenther@suse.de>
4512 PR tree-optimization/99912
4513 * passes.def (pass_all_optimizations): Add pass_dse before
4514 the first pass_dce, move the first pass_dse before the
4515 pass_dce following pass_pre.
4517 2021-04-27 Jakub Jelinek <jakub@redhat.com>
4519 PR tree-optimization/95527
4520 * generic-match-head.c: Include tm.h.
4521 * gimple-match-head.c: Include tm.h.
4522 * match.pd (CLZ == INTEGER_CST): Don't use
4523 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
4524 if clz == CFN_CLZ. Add missing val declaration.
4525 (CTZ cmp CST): New simplifications.
4527 2021-04-27 Jakub Jelinek <jakub@redhat.com>
4529 PR tree-optimization/96696
4530 * expr.c (expand_expr_divmod): New function.
4531 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
4532 divisions. Formatting fixes.
4533 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
4536 2021-04-27 Martin Jambor <mjambor@suse.cz>
4539 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
4540 If removing a call statement LHS SSA name, release it.
4542 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
4545 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
4546 is valid before including it in the mask.
4548 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
4551 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
4554 2021-04-27 Richard Biener <rguenther@suse.de>
4556 PR tree-optimization/100051
4557 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
4558 disambiguator based on access size vs. decl size.
4560 2021-04-27 Richard Biener <rguenther@suse.de>
4562 PR tree-optimization/100278
4563 * tree-ssa-pre.c (compute_avail): Give up when we cannot
4564 adjust TBAA beacuse of mismatching bases.
4566 2021-04-27 Jakub Jelinek <jakub@redhat.com>
4569 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
4570 For any_rotate define_insn_split and following splitters, use
4571 SWI iterator instead of SWI48.
4573 2021-04-27 Richard Biener <rguenther@suse.de>
4575 PR tree-optimization/99776
4576 * match.pd (bit_field_ref (ctor)): Relax element extract
4577 type compatibility checks.
4579 2021-04-27 Cui,Lili <lili.cui@intel.com>
4581 * common/config/i386/i386-common.c (processor_names):
4582 Sync processor_names with processor_type.
4583 * config/i386/i386-options.c (processor_cost_table):
4584 Sync processor_cost_table with processor_type.
4586 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
4588 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
4589 (irange::set): Call irange_set_1bit_anti_range for handling all
4590 1-bit ranges. Fall through on ~[MIN,MAX].
4592 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
4594 * value-range.cc (irange::legacy_num_pairs): Remove.
4595 (irange::invert): Change gcc_assert to gcc_checking_assert.
4596 * value-range.h (irange::num_pairs): Adjust for a cached
4597 num_pairs(). Also, rename all gcc_assert's to
4598 gcc_checking_assert's.
4600 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
4602 * value-range.cc (irange::operator=): Set m_kind.
4603 (irange::copy_to_legacy): Handle varying and undefined sources
4604 as a legacy copy since they can be easily copied.
4605 (irange::irange_set): Set m_kind.
4606 (irange::irange_set_anti_range): Same.
4607 (irange::set): Rename normalize_min_max to normalize_kind.
4608 (irange::verify_range): Adjust for multi-ranges having the
4610 (irange::irange_union): Set m_kind.
4611 (irange::irange_intersect): Same.
4612 (irange::invert): Same.
4613 * value-range.h (irange::kind): Always return m_kind.
4614 (irange::varying_p): Rename to...
4615 (irange::varying_comptaible_p): ...this.
4616 (irange::undefined_p): Only look at m_kind.
4617 (irange::irange): Always set VR_UNDEFINED if applicable.
4618 (irange::set_undefined): Always set VR_UNDEFINED.
4619 (irange::set_varying): Always set m_kind to VR_VARYING.
4620 (irange::normalize_min_max): Rename to...
4621 (irange::normalize_kind): ...this.
4623 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
4625 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
4626 Adjust for constant_p including varying_p.
4627 * tree-vrp.c (vrp_prop::finalize): Same.
4628 (determine_value_range): Same.
4629 * vr-values.c (vr_values::range_of_expr): Same.
4630 * value-range.cc (irange::symbolic_p): Do not check varying_p.
4631 (irange::constant_p): Same.
4633 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
4635 * value-range.cc (irange::legacy_lower_bound): Replace
4636 !undefined_p check with num_ranges > 0.
4637 (irange::legacy_upper_bound): Same.
4638 * value-range.h (irange::type): Same.
4639 (irange::lower_bound): Same.
4640 (irange::upper_bound): Same.
4642 2021-04-26 Richard Biener <rguenther@suse.de>
4644 PR tree-optimization/99956
4645 * gimple-loop-interchange.cc (compute_access_stride):
4646 Try instantiating the access in a shallower loop nest
4647 if instantiating failed.
4648 (compute_access_strides): Pass adjustable loop_nest
4649 to compute_access_stride.
4651 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
4653 * doc/sourcebuild.texi (arm_cmse_hw): Document.
4655 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4657 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
4659 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
4660 Nathan Sidwell <nathan@codesourcery.com>
4661 Tom de Vries <vries@codesourcery.com>
4662 Julian Brown <julian@codesourcery.com>
4663 Kwok Cheung Yeung <kcy@codesourcery.com>
4665 * omp-offload.c (oacc_validate_dims): Implement
4666 '-Wopenacc-parallelism'.
4667 * doc/invoke.texi (-Wopenacc-parallelism): Document.
4669 2021-04-26 Richard Biener <rguenther@suse.de>
4671 * tree-cfg.h (gimplify_build1): Remove.
4672 (gimplify_build2): Likewise.
4673 (gimplify_build3): Likewise.
4674 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
4675 (gimplify_build2): Likewise.
4676 (gimplify_build3): Likewise.
4677 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
4679 (gimplify_build2): Likewise.
4680 (gimplify_build3): Likewise.
4681 (tree_vec_extract): Use resimplify with following SSA edges.
4682 (expand_vector_parallel): Avoid passing NULL size/bitpos
4683 to tree_vec_extract.
4684 * expr.c (store_constructor): Deal with zero-element CTORs.
4685 * match.pd (bit_field_ref <vector CTOR>): Make sure to
4686 produce vector constants when possible.
4688 2021-04-26 Richard Biener <rguenther@suse.de>
4690 * tree-complex.c: Include gimple-fold.h.
4691 (expand_complex_addition): Use gimple_build.
4692 (expand_complex_multiplication_components): Likewise.
4693 (expand_complex_multiplication): Likewise.
4694 (expand_complex_div_straight): Likewise.
4695 (expand_complex_div_wide): Likewise.
4696 (expand_complex_division): Likewise.
4697 (expand_complex_conjugate): Likewise.
4698 (expand_complex_comparison): Likewise.
4700 2021-04-26 Richard Biener <rguenther@suse.de>
4702 * tree-ssa-phiopt.c (two_value_replacement): Remove use
4703 of legacy gimplify_buildN API.
4705 2021-04-26 Richard Biener <rguenther@suse.de>
4707 PR tree-optimization/99473
4708 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
4711 2021-04-26 Richard Biener <rguenther@suse.de>
4713 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
4714 Use replace_call_with_value.
4716 2021-04-26 Richard Biener <rguenther@suse.de>
4718 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
4719 (update_gimple_call): Likewise.
4720 (update_call_from_tree): Likewise.
4721 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
4722 (valid_gimple_call_p): Likewise.
4723 (move_ssa_defining_stmt_for_defs): Likewise.
4724 (finish_update_gimple_call): Likewise.
4725 (update_gimple_call): Likewise.
4726 (update_call_from_tree): Likewise.
4727 (propagate_tree_value_into_stmt): Use replace_call_with_value.
4728 * gimple-fold.h (update_gimple_call): Declare.
4729 * gimple-fold.c (valid_gimple_rhs_p): Move here from
4730 tree-ssa-propagate.c.
4731 (update_gimple_call): Likewise.
4732 (valid_gimple_call_p): Likewise.
4733 (finish_update_gimple_call): Likewise, and simplify.
4734 (gimplify_and_update_call_from_tree): Implement
4735 update_call_from_tree functionality, avoid excessive
4736 push/pop_gimplify_context.
4737 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
4738 (gimple_fold_call): Likewise.
4739 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
4740 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
4741 (pass_fold_builtins::execute): Likewise.
4742 (optimize_stack_restore): Use replace_call_with_value.
4743 * tree-cfg.c (fold_loop_internal_call): Likewise.
4744 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
4745 only gimplify_and_update_call_from_tree.
4746 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
4747 (handle_builtin_strchr): Likewise.
4748 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
4750 2021-04-26 Jakub Jelinek <jakub@redhat.com>
4753 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
4754 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
4757 2021-04-25 liuhongt <hongtao.liu@intel.com>
4760 * config/i386/i386-builtin.def (BDESC): Change the icode of
4761 the following builtins to CODE_FOR_nothing.
4762 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
4763 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
4764 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
4765 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
4766 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
4767 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
4768 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
4769 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
4770 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
4771 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
4772 (sse2_eq<mode>3): Ditto.
4773 (sse4_1_eqv2di3): Ditto.
4774 (sse2_gt<mode>3): Rename to ..
4775 (*sse2_gt<mode>3): .. this.
4777 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
4780 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
4783 * config/darwin.c (darwin_binds_local_p): Assume that any
4784 public symbol might be interposed for PIC code. Update function
4785 header comment to reflect current Darwin capability.
4787 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
4790 * config/darwin.c (darwin_binds_local_p): Assume that any
4791 public symbol might be interposed for PIC code. Update function
4792 header comment to reflect current Darwin capability.
4794 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
4796 * doc/sourcebuild.texi: Document no-opts and any-opts target
4799 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
4801 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
4803 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
4805 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
4807 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
4810 * config/i386/i386-options.c (ix86_option_override_internal):
4811 Error out when -m96bit-long-double is used with 64bit targets.
4812 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
4814 2021-04-23 Martin Liska <mliska@suse.cz>
4816 * lto-wrapper.c: Remove FIXME about usage of
4817 hardware_concurrency. The function is not on par with
4820 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
4823 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
4824 Copy operand 3 to operand 4. Use sse_reg_operand
4825 as operand 3 predicate.
4826 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
4827 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
4828 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
4829 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
4830 Copy operand 1 to operand 0.
4831 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
4832 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
4833 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
4835 2021-04-23 Alex Coplan <alex.coplan@arm.com>
4837 PR rtl-optimization/100230
4838 * early-remat.c (early_remat::sort_candidates): Use delete[]
4839 instead of delete for array allocated with new[].
4841 2021-04-23 Richard Biener <rguenther@suse.de>
4843 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
4844 (capture_info::capture_info): Likewise.
4845 (capture_info::walk_match): Likewise.
4846 (expr::gen_transform): Likewise.
4847 (dt_simplify::gen_1): Likewise.
4848 * gimple-match-head.c (maybe_resimplify_conditional_op):
4849 Remove VEC_COND_EXPR special-casing.
4850 (gimple_simplify): Likewise.
4851 * gimple.c (gimple_could_trap_p_1): Adjust.
4852 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
4853 to participate in PRE.
4855 2021-04-23 Richard Biener <rguenther@suse.de>
4857 * cfganal.c (connect_infinite_loops_to_exit): First call
4858 add_noreturn_fake_exit_edges.
4859 * ipa-sra.c (process_scan_results): Do not call the now redundant
4860 add_noreturn_fake_exit_edges.
4861 * predict.c (tree_estimate_probability): Likewise.
4862 (rebuild_frequencies): Likewise.
4863 * store-motion.c (one_store_motion_pass): Likewise.
4865 2021-04-23 Richard Biener <rguenther@suse.de>
4867 PR tree-optimization/100222
4868 * predict.c (pass_profile::execute): Remove redundant call to
4869 mark_irreducible_loops.
4870 (report_predictor_hitrates): Likewise.
4872 2021-04-23 Richard Biener <rguenther@suse.de>
4874 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
4875 valid_gimple_rhs_p by instead gimplifying to one.
4877 2021-04-23 Richard Biener <rguenther@suse.de>
4879 PR tree-optimization/99971
4880 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
4881 Always use TBAA for loads.
4883 2021-04-23 liuhongt <hongtao.liu@intel.com>
4886 * config/i386/i386-options.c (ix86_option_override_internal):
4887 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
4888 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
4889 by target attribute.
4891 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
4893 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
4895 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
4897 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
4899 * config.gcc (powerpc-ibm-aix6.*): Remove.
4900 * config/rs6000/aix61.h: Delete.
4902 2021-04-22 Martin Liska <mliska@suse.cz>
4906 * builtins.c (expand_builtin): Fix typos and missing comments.
4907 * dwarf2out.c (gen_subprogram_die): Likewise.
4908 (gen_struct_or_union_type_die): Likewise.
4910 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
4913 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
4914 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
4916 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
4918 * config/i386/darwin.h (TARGET_64BIT): Remove definition
4919 based on TARGET_ISA_64BIT.
4920 (TARGET_64BIT_P): Remove definition based on
4921 TARGET_ISA_64BIT_P().
4923 2021-04-21 Martin Liska <mliska@suse.cz>
4926 2021-04-21 Martin Liska <mliska@suse.cz>
4928 * lto-wrapper.c (cpuset_popcount): Remove.
4929 (init_num_threads): Remove and use hardware_concurrency.
4931 2021-04-21 Martin Liska <mliska@suse.cz>
4934 * main.c (main): Call toplev::finalize in CHECKING_P mode.
4935 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
4936 when incremental LTO linking happens.
4938 2021-04-21 Martin Liska <mliska@suse.cz>
4940 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
4941 makeserver cannot be detected, then use -flto=N fallback.
4943 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
4945 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
4946 default to yes for aarch64-linux-gnu.
4947 * configure: Regenerate.
4949 2021-04-21 Martin Liska <mliska@suse.cz>
4951 * lto-wrapper.c (cpuset_popcount): Remove.
4952 (init_num_threads): Remove and use hardware_concurrency.
4954 2021-04-21 Martin Liska <mliska@suse.cz>
4956 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
4957 which remains to be '(... || 0)' and clang complains about it.
4958 * dwarf2out.c (AT_vms_delta): Declare conditionally.
4959 (add_AT_vms_delta): Likewise.
4960 * tree.c (fld_simplified_type): Use rather more common pattern
4961 for disabling of something (#if 0).
4962 (get_tree_code_name): Likewise.
4963 (verify_type_variant): Likewise.
4965 2021-04-21 Martin Liska <mliska@suse.cz>
4967 * config/i386/i386-expand.c (decide_alignment): Use newly named
4969 * config/i386/i386.c (ix86_decompose_address): Likewise.
4970 (ix86_address_cost): Likewise.
4971 (ix86_lea_outperforms): Likewise.
4972 (ix86_avoid_lea_for_addr): Likewise.
4973 (ix86_add_stmt_cost): Likewise.
4974 * config/i386/i386.h (TARGET_*): Remove.
4975 (TARGET_CPU_P): New macro.
4976 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
4977 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
4978 (swap_top_of_ready_list): Likewise.
4979 (ix86_atom_sched_reorder): Likewise.
4980 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
4981 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
4983 2021-04-21 Martin Liska <mliska@suse.cz>
4985 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
4987 (SET_TARGET_NO_SAHF): Likewise.
4988 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
4989 (SET_TARGET_PREFETCH_SSE): Likewise.
4990 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
4991 (SET_TARGET_NO_TUNE): Likewise.
4992 (TARGET_EXPLICIT_NO_80387_P): Likewise.
4993 (SET_TARGET_NO_80387): Likewise.
4995 * config/i386/i386.h (TARGET_*): Remove.
4996 * opth-gen.awk: Generate new used macros.
4998 2021-04-21 Martin Liska <mliska@suse.cz>
5000 * config/i386/i386.h (PTA_*): Remove.
5001 (enum pta_flag): New.
5002 (DEF_PTA): Generate PTA_* values from i386-isa.def.
5003 * config/i386/i386-isa.def: New file.
5005 2021-04-21 Alex Coplan <alex.coplan@arm.com>
5008 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
5009 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
5012 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
5014 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
5016 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
5018 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
5019 (ix86_handle_option): Handle -mmwait.
5020 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
5021 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
5022 __builtin_ia32_monitor and __builtin_ia32_mwait.
5023 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
5024 (ix86_valid_target_attribute_inner_p): Likewise.
5025 (ix86_option_override_internal): Enable mwait/monitor
5026 instructions for -msse3.
5027 * config/i386/i386.h (TARGET_MWAIT): New.
5028 (TARGET_MWAIT_P): Likewise.
5029 * config/i386/i386.opt: Add -mmwait.
5030 * config/i386/mwaitintrin.h: New file.
5031 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
5032 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
5034 (@sse3_monitor_<mode>): Likewise.
5035 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
5036 * doc/extend.texi: Document mwait target attribute.
5037 * doc/invoke.texi: Document -mmwait.
5039 2021-04-21 Martin Liska <mliska@suse.cz>
5041 * config/i386/i386-options.c (DEF_ENUM): Remove it.
5042 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
5043 * config/i386/stringop.def (DEF_ENUM): Likewise.
5045 2021-04-21 Martin Liska <mliska@suse.cz>
5047 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
5048 of print_generic_expr.
5050 2021-04-21 Jakub Jelinek <jakub@redhat.com>
5052 PR rtl-optimization/100148
5053 * cprop.c (constprop_register): Use next_nondebug_insn instead of
5056 2021-04-21 Martin Liska <mliska@suse.cz>
5059 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
5060 free_dominance_info calls.
5062 2021-04-21 Richard Biener <rguenther@suse.de>
5064 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
5065 parameter (and assume it to be false).
5066 (fold_gimple_assign): Adjust, remove all callers of
5067 maybe_fold_reference calling it with is_lhs true.
5068 (gimple_fold_call): Likewise.
5069 (fold_stmt_1): Likewise.
5071 2021-04-21 Richard Biener <rguenther@suse.de>
5073 * fold-const.c (pedantic_non_lvalue_loc): Remove.
5074 (fold_binary_loc): Adjust.
5075 (fold_ternary_loc): Likewise.
5077 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
5079 PR middle-end/100130
5080 * varasm.c (get_block_for_decl): Make sure that any use of the
5081 retain attribute matches the section's retain flag.
5082 (switch_to_section): Check for retain mismatches even when
5083 changing sections, but do not warn if the given decl is the
5084 section's named.decl.
5085 (output_object_block): Pass the first decl in the block (if any)
5086 to switch_to_section.
5088 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
5090 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5091 __CRC32__ for -mcrc32.
5092 * config/i386/i386-options.c (ix86_option_override_internal):
5093 Enable crc32 instruction for -msse4.2.
5094 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
5096 (sse4_2_crc32di): Likewise.
5097 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
5100 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
5103 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
5106 2021-04-20 Martin Liska <mliska@suse.cz>
5108 * doc/invoke.texi: Fix typo.
5109 * params.opt: Likewise.
5111 2021-04-20 Martin Liska <mliska@suse.cz>
5113 * doc/invoke.texi: Document new param.
5115 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
5117 PR tree-optimization/100081
5118 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
5119 rather than gori_compute_cache.
5120 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
5121 (range_def_chain::m_logical_depth): New member.
5122 (range_def_chain::range_def_chain): Initialize m_logical_depth.
5123 (range_def_chain::get_def_chain): Don't build defchains through more
5124 than LOGICAL_LIMIT logical expressions.
5125 * params.opt (param_ranger_logical_depth): New.
5127 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
5130 * config/arm/arm.c (arm_configure_build_target): Do not strip
5131 extended FPU/SIMD feature bits from the target ISA when -mfpu
5132 is specified (partial revert of r11-8168).
5134 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
5136 * params.opt (-param=openacc-kernels=): Add.
5137 * omp-oacc-kernels-decompose.cc
5138 (pass_omp_oacc_kernels_decompose::gate): Use it.
5139 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
5140 (--param): ... here, 'openacc-kernels'.
5142 2021-04-19 Martin Liska <mliska@suse.cz>
5145 * gengtype.c (finish_root_table): Align function arguments
5146 in between declaration and definition.
5148 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
5150 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
5151 frames larger than the SEH maximum frame size.
5153 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
5155 PR rtl-optimization/99927
5156 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
5157 is dead, just drop it.
5159 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
5162 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
5163 * doc/tm.texi: Regenerate.
5164 * doc/tm.texi.in (D language and ABI): Add @hook for
5165 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
5167 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
5169 * config/darwin-d.c (darwin_d_handle_target_object_format): New
5171 (darwin_d_register_target_info): New function.
5172 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
5173 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
5175 (dragonfly_d_register_target_info): New function.
5176 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
5177 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
5179 (freebsd_d_register_target_info): New function.
5180 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
5181 * config/glibc-d.c (glibc_d_handle_target_object_format): New
5183 (glibc_d_register_target_info): New function.
5184 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
5185 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
5187 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
5188 as handler for objectFormat key.
5189 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
5191 (winnt_d_register_target_info): New function.
5192 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
5193 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
5195 (netbsd_d_register_target_info): New function.
5196 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
5197 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
5199 (openbsd_d_register_target_info): New function.
5200 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
5201 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
5202 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
5203 handler for objectFormat key.
5204 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
5206 (rs6000_d_register_target_info): Add
5207 rs6000_d_handle_target_object_format as handler for objectFormat key.
5208 * config/sol2-d.c (solaris_d_handle_target_object_format): New
5210 (solaris_d_register_target_info): New function.
5211 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
5213 2021-04-16 Jakub Jelinek <jakub@redhat.com>
5216 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
5217 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
5219 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
5220 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
5221 the old and new alignment after applying MIN/MAX to it is different.
5223 2021-04-16 Tamar Christina <tamar.christina@arm.com>
5226 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
5227 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
5229 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
5231 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
5233 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
5234 this section and its subsections.
5236 2021-04-16 Jakub Jelinek <jakub@redhat.com>
5239 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
5240 define_insn patterns.
5242 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
5244 PR rtl-optimization/98689
5245 * reg-notes.def (UNTYPED_CALL): New note.
5246 * combine.c (distribute_notes): Handle it.
5247 * emit-rtl.c (try_split): Likewise.
5248 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
5249 that calls with the note implicitly set all return value registers.
5250 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
5253 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
5255 PR rtl-optimization/99596
5256 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
5257 register accesses for const calls. Assume that pure functions
5258 can only read from global registers. Ignore cases in which
5259 the stack pointer has been marked global.
5261 2021-04-16 Jakub Jelinek <jakub@redhat.com>
5264 * tree-vect-loop.c (vect_transform_loop): Don't remove just
5265 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
5266 them by their last argument.
5268 2021-04-15 Martin Liska <mliska@suse.cz>
5270 * doc/invoke.texi: Other params don't use it, remove it.
5272 2021-04-15 Richard Biener <rguenther@suse.de>
5274 * gimple-builder.h: Add deprecation note.
5276 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
5279 * attribs.h (restrict_type_identity_attributes_to): Declare.
5280 * attribs.c (restrict_type_identity_attributes_to): New function.
5282 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
5285 * attribs.h (affects_type_identity_attributes): Declare.
5286 * attribs.c (remove_attributes_matching): New function.
5287 (affects_type_identity_attributes): Likewise.
5289 2021-04-15 Jakub Jelinek <jakub@redhat.com>
5292 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
5293 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
5294 ZERO_EXTEND, SIGN_EXTEND or AND.
5296 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
5298 PR rtl-optimization/99929
5299 * rtl.h (same_vector_encodings_p): New function.
5300 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
5301 * cselib.c (rtx_equal_for_cselib_1): Likewise.
5302 * jump.c (rtx_renumbered_equal_p): Likewise.
5303 * lra-constraints.c (operands_match_p): Likewise.
5304 * reload.c (operands_match_p): Likewise.
5305 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
5307 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
5309 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
5310 more information about variable-length CONST_VECTORs.
5312 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
5314 PR rtl-optimization/100066
5315 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
5316 ordered modes when choosing splitting mode for hard reg.
5318 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
5321 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
5323 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
5325 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
5327 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
5328 for mask operand types.
5329 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
5330 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
5332 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
5334 * config/s390/s390.c (s390_const_operand_ok): Check the new
5335 operand types and generate a list of valid values.
5337 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
5339 * doc/tm.texi: Regenerate.
5340 * doc/tm.texi.in (D language and ABI): Add @hook for
5341 TARGET_D_REGISTER_OS_TARGET_INFO.
5343 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
5345 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
5347 (aarch64_d_register_target_info): New function.
5348 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
5350 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
5352 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
5353 (arm_d_register_target_info): New function.
5354 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
5355 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
5356 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
5357 (ix86_d_register_target_info): New function.
5358 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
5359 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
5360 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
5361 (mips_d_register_target_info): New function.
5362 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
5363 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
5364 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
5365 (pa_d_register_target_info): New function.
5366 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
5367 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
5368 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
5370 (riscv_d_register_target_info): New function.
5371 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
5372 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
5373 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
5375 (rs6000_d_register_target_info): New function.
5376 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
5378 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
5379 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
5380 (s390_d_register_target_info): New function.
5381 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
5382 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
5383 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
5385 (sparc_d_register_target_info): New function.
5386 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
5387 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
5388 * doc/tm.texi: Regenerate.
5389 * doc/tm.texi.in (D language and ABI): Add @hook for
5390 TARGET_D_REGISTER_CPU_TARGET_INFO.
5392 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
5394 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
5395 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
5396 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
5397 * doc/tm.texi: Regenerate.
5398 * doc/tm.texi.in (D language and ABI): Add @hook for
5399 TARGET_D_HAS_STDCALL_CONVENTION.
5401 2021-04-14 Richard Biener <rguenther@suse.de>
5403 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
5404 VEC_COND_EXPRs have a gimple_val condition.
5405 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
5406 can no longer have a GENERIC condition.
5408 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
5411 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
5412 from the isa_delta when -mfpu has been used.
5413 (arm_options_perform_arch_sanity_checks): It's the architecture that
5414 lacks an FPU not the processor.
5416 2021-04-13 Richard Biener <rguenther@suse.de>
5418 PR tree-optimization/100053
5419 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
5420 not use optimistic dominance queries for backedges to validate
5422 (dominated_by_p_w_unex): Add parameter to ignore executable
5424 (rpo_elim::eliminate_avail): Adjust.
5426 2021-04-13 Jakub Jelinek <jakub@redhat.com>
5429 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
5430 *aarch64_bfxilsi_extrdi): New define_insn patterns.
5432 2021-04-13 Jakub Jelinek <jakub@redhat.com>
5435 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
5436 outermode, return NULL if the result doesn't encode back to the
5437 original byte sequence.
5438 (simplify_gen_subreg): Don't create SUBREGs from constants to
5439 MODE_COMPOSITE_P outermode.
5441 2021-04-12 Jakub Jelinek <jakub@redhat.com>
5443 PR rtl-optimization/99905
5444 * combine.c (expand_compound_operation): If pos + len > modewidth,
5445 perform the right shift by pos in inner_mode and then convert to mode,
5446 instead of trying to simplify a shift of rtx with inner_mode by pos
5447 as if it was a shift in mode.
5449 2021-04-12 Jakub Jelinek <jakub@redhat.com>
5452 * combine.c (simplify_and_const_int_1): Don't optimize varop
5453 away if it has side-effects.
5455 2021-04-12 Martin Liska <mliska@suse.cz>
5457 * doc/extend.texi: Escape @smallexample content.
5459 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
5461 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
5462 alternative in order to load a DFP zero.
5464 2021-04-12 Martin Liska <mliska@suse.cz>
5466 * doc/extend.texi: Be more precise in documentation
5467 of symver attribute.
5469 2021-04-12 Martin Liska <mliska@suse.cz>
5472 * gimplify.c (gimplify_expr): Right now, we unpoison all
5473 variables before a goto <dest>. We should not do it if we are
5476 2021-04-12 Cui,Lili <lili.cui@intel.com>
5478 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
5480 * common/config/i386/i386-common.c (processor_names): Add
5482 (processor_alias_table): Add rocketlake.
5483 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
5484 INTEL_COREI7_ROCKETLAKE.
5485 * config.gcc: Add -march=rocketlake.
5486 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5488 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
5489 (processor_cost_table): Add rocketlake cost.
5490 * config/i386/i386.h (ix86_size_cost) : Define
5492 (processor_type) : Add PROCESSOR_ROCKETLAKE.
5493 (PTA_ROCKETLAKE): Ditto.
5494 * doc/extend.texi: Add rocketlake.
5495 * doc/invoke.texi: Add rocketlake.
5497 2021-04-12 Cui,Lili <lili.cui@intel.com>
5499 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
5500 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
5501 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
5502 * doc/invoke.texi: Change alderlake ISA list.
5504 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
5507 * omp-expand.c (expand_oacc_collapse_init): Update condition in
5510 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
5513 * config/i386/serializeintrin.h (_serialize): Defined as macro.
5515 2021-04-10 Jakub Jelinek <jakub@redhat.com>
5518 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
5519 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
5521 2021-04-10 Jakub Jelinek <jakub@redhat.com>
5524 * gimple-ssa-warn-alloca.c
5525 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
5526 0 with integer precision unconditionally.
5528 2021-04-10 Jakub Jelinek <jakub@redhat.com>
5530 PR rtl-optimization/98601
5531 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
5532 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
5533 unaligned_mems handle VOIDmode like BLKmode.
5535 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
5538 * tree.c (free_lang_data_in_decl): Do not release body of
5539 declare_variant_alt.
5541 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
5543 * config/aarch64/aarch64.c (aarch64_option_restore): If the
5544 architecture was specified explicitly and the tuning wasn't,
5545 tune for the architecture rather than the configured default CPU.
5547 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
5549 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
5550 as the temporary register.
5552 2021-04-09 Martin Liska <mliska@suse.cz>
5554 * doc/extend.texi: Move non-target attributes on the top level.
5556 2021-04-09 Martin Liska <mliska@suse.cz>
5558 * doc/invoke.texi: Document minimum and maximum value of the
5559 argument for both supported compression algorithms.
5561 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
5563 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
5564 TLS BSS before TLS data.
5565 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
5567 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
5569 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
5571 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
5573 * match.pd: Extend vec_cond folds to handle shifts.
5575 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
5577 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
5580 2021-04-08 Alex Coplan <alex.coplan@arm.com>
5583 * config/arm/iterators.md (MVE_vecs): New.
5584 (V_elem): Also handle V2DF.
5585 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
5586 (*mve_vdup<mode>): ... this. Remove second alternative since
5587 vec_duplicate of const_int is not canonical RTL, and we don't
5588 want to match symbol_refs.
5589 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
5591 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
5593 * fold-const.c (fold_single_bit_test): Fix typo.
5594 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
5597 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
5599 PR tree-optimization/97513
5600 * tree-vect-slp.c (vect_add_slp_permutation): New function,
5602 (vectorizable_slp_permutation): ...here. Detect cases in which
5603 all VEC_PERM_EXPRs are guaranteed to have the same stepped
5604 permute vector and only generate one permute vector for that case.
5605 Extend that case to handle variable-length vectors.
5607 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
5609 PR tree-optimization/99873
5610 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
5611 (vect_build_slp_instance): Don't split store groups that could
5612 use IFN_STORE_LANES.
5614 2021-04-07 Jakub Jelinek <jakub@redhat.com>
5617 * varasm.c (output_constant_pool_contents): Don't strip name encoding
5618 from XSTR (desc->sym, 0) or from label before passing those to
5621 2021-04-07 Richard Biener <rguenther@suse.de>
5623 PR tree-optimization/99954
5624 * tree-loop-distribution.c: Include tree-affine.h.
5625 (generate_memcpy_builtin): Try using tree-affine to prove
5627 (loop_distribution::classify_builtin_ldst): Always classify
5630 2021-04-07 Richard Biener <rguenther@suse.de>
5632 PR tree-optimization/99947
5633 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
5634 steps vector to avoid pushing elements from the reallocated
5637 2021-04-07 Richard Biener <rguenther@suse.de>
5639 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
5640 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
5642 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
5644 (debug_vn_reference_ops): New.
5646 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
5648 PR tree-optimization/98736
5649 * tree-loop-distribution.c
5650 * (loop_distribution::bb_top_order_init):
5651 Compute RPO with programing order preserved by calling function
5652 rev_post_order_and_mark_dfs_back_seme.
5654 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
5657 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
5658 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
5660 (process_bb_lives): Don't update biggest mode of hard reg for
5661 implicit in multi-register group. Use the new functions for
5662 updating dead_set and unused_set by register notes.
5664 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
5666 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
5669 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
5671 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
5672 (skylake_memset): Likewise.
5673 (skylake_cost): Change CLEAR_RATIO to 17.
5674 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
5675 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
5676 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
5678 2021-04-06 Richard Biener <rguenther@suse.de>
5680 PR tree-optimization/99880
5681 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
5682 set vectorized defs of relevant PHIs.
5684 2021-04-06 Richard Biener <rguenther@suse.de>
5686 PR tree-optimization/99924
5687 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
5688 nodes w/o scalar stmts as visited.
5690 2021-04-06 Alex Coplan <alex.coplan@arm.com>
5693 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
5694 PCS for [su]fix_optab.
5696 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
5698 * config/darwin.c (machopic_legitimize_pic_address): Check
5699 that the current pic register is one of the hard reg set
5700 before setting liveness.
5702 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
5704 * config/darwin.c (machopic_legitimize_pic_address): Fix
5705 whitespace, remove unused code.
5707 2021-04-03 Jakub Jelinek <jakub@redhat.com>
5709 PR tree-optimization/99882
5710 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
5713 2021-04-03 Jakub Jelinek <jakub@redhat.com>
5715 PR rtl-optimization/99863
5716 * dse.c (replace_read): Drop regs_live argument. Instead of
5717 regs_live, use store_insn->fixed_regs_live if non-NULL,
5718 otherwise punt if insns sequence clobbers or sets any hard
5721 2021-04-03 Jakub Jelinek <jakub@redhat.com>
5724 * targhooks.h (default_print_patchable_function_entry_1): Declare.
5725 * targhooks.c (default_print_patchable_function_entry_1): New function,
5726 copied from default_print_patchable_function_entry with an added flags
5728 (default_print_patchable_function_entry): Rewritten into a small
5729 wrapper around default_print_patchable_function_entry_1.
5730 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
5732 (rs6000_print_patchable_function_entry): New function.
5734 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
5736 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
5738 2021-04-01 Jason Merrill <jason@redhat.com>
5741 * common.opt: Document v15 and v16.
5743 2021-04-01 Richard Biener <rguenther@suse.de>
5745 PR tree-optimization/99863
5746 * gimplify.c (gimplify_init_constructor): Recompute vector
5749 2021-04-01 Jakub Jelinek <jakub@redhat.com>
5751 * doc/extend.texi (symver attribute): Fix up syntax errors
5754 2021-04-01 Jakub Jelinek <jakub@redhat.com>
5756 PR tree-optimization/96573
5757 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
5760 2021-04-01 Richard Biener <rguenther@suse.de>
5762 PR tree-optimization/99856
5763 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
5764 precision to vector element precision.
5766 2021-04-01 Martin Jambor <mjambor@suse.cz>
5768 PR tree-optimization/97009
5769 * tree-sra.c (access_or_its_child_written): New function.
5770 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
5773 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
5776 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
5778 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
5781 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
5782 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
5783 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
5784 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
5785 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
5786 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
5788 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
5789 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
5790 (define_attr "prefixed"): Update initializer.
5792 2021-03-31 Jakub Jelinek <jakub@redhat.com>
5795 * dwarf2out.c (debug_ranges_dwo_section): New variable.
5796 (DW_RANGES_IDX_SKELETON): Define.
5797 (struct dw_ranges): Add begin_entry and end_entry members.
5798 (DEBUG_DWO_RNGLISTS_SECTION): Define.
5799 (add_ranges_num): Adjust r initializer for addition of *_entry
5801 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
5802 set idx to DW_RANGES_IDX_SKELETON.
5803 (use_distinct_base_address_for_range): New function.
5804 (index_rnglists): Don't set r->idx if it is equal to
5805 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
5806 r->end_entry for -gsplit-dwarf if those will be needed by
5808 (output_rnglists): Add DWO argument. If true, switch to
5809 debug_ranges_dwo_section rather than debug_ranges_section.
5810 Adjust l1/l2 label indexes. Only output the offset table when
5811 dwo is true and don't include in there the skeleton range
5812 entry if present. For -gsplit-dwarf, skip ranges that belong
5813 to the other rnglists section. Change return type from void
5814 to bool and return true if there are any range entries for
5815 the other section. For dwarf_split_debug_info use
5816 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
5817 entries instead of DW_RLE_start_end, DW_RLE_start_length and
5818 DW_RLE_base_address. Use use_distinct_base_address_for_range.
5819 (init_sections_and_labels): Initialize debug_ranges_dwo_section
5820 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
5821 and range_base_label indexes.
5822 (dwarf2out_finish): Call index_rnglists earlier before finalizing
5823 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
5824 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
5825 with different dwo arguments.
5826 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
5828 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
5830 PR tree-optimization/98268
5831 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
5832 recompute_tree_invariant_for_addr_expr after successfully
5833 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
5835 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
5837 PR tree-optimization/99726
5838 * tree-data-ref.c (create_intersect_range_checks_index): Bail
5839 out if there is more than one access function SCEV for the loop
5842 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
5844 PR rtl-optimization/97141
5845 PR rtl-optimization/98726
5846 * emit-rtl.c (valid_for_const_vector_p): Return true for
5848 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
5849 poly_wide_int instead of a wide_int.
5850 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
5852 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
5853 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
5854 false for CONST_VECTORs that cannot be forced to memory.
5855 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
5856 is too complex to force to memory, build it up from individual
5859 2021-03-31 Jan Hubicka <jh@suse.cz>
5862 * cgraph.c (cgraph_node::release_body): Fix overactive check.
5864 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
5867 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
5870 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
5872 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
5873 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
5875 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
5876 "rep movsb/stosb" only for known sizes.
5877 * config/i386/i386-options.c (processor_cost_table): Use Ice
5878 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
5879 Rapids and Alder Lake.
5880 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
5881 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
5882 (icelake_memset): Likewise.
5883 (icelake_cost): Likewise.
5884 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
5887 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
5890 * config/aarch64/aarch64.c
5891 (aarch64_vectorize_preferred_vector_alignment): Query the size
5892 of the provided SVE vector; do not assume that all SVE vectors
5895 2021-03-31 Jan Hubicka <jh@suse.cz>
5898 * cgraph.c (cgraph_node::release_body): Remove all callers and
5900 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
5901 * cgraphunit.c (cgraph_node::expand): And here.
5903 2021-03-31 Martin Liska <mliska@suse.cz>
5905 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
5906 and one negated condition.
5908 2021-03-31 Jakub Jelinek <jakub@redhat.com>
5909 Richard Sandiford <richard.sandiford@arm.com>
5912 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
5913 constraints on operands[2] and similarly 0 and rk constraints
5914 on operands[1] corresponding to that.
5916 2021-03-31 Jakub Jelinek <jakub@redhat.com>
5919 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
5920 linker doesn't support DWARF sections new in DWARF5.
5921 * config/i386/i386-options.c (ix86_option_override_internal): Default
5922 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
5924 * config.in: Regenerated.
5925 * configure: Regenerated.
5927 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5930 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
5931 available issue_info before using it.
5933 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5936 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
5939 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
5942 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
5943 (altivec_lvsl_reg_<mode>): ... this.
5944 (altivec_lvsr_reg): Change to ...
5945 (altivec_lvsr_reg_<mode>): ... this.
5946 * config/rs6000/predicates.md (vec_set_index_operand): New.
5947 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5948 Enable 32bit variable vec_insert for all TARGET_VSX.
5949 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
5950 Enable 32bit variable vec_insert for p9 and above.
5951 (rs6000_expand_vector_set_var_p8): Rename to ...
5952 (rs6000_expand_vector_set_var_p7): ... this.
5953 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
5955 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
5956 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
5957 gen_altivec_lvsr_reg_di.
5959 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
5962 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
5963 (__rdtscp): Likewise.
5965 2021-03-30 Tamar Christina <tamar.christina@arm.com>
5967 PR tree-optimization/99825
5968 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
5969 Reject non-mult 2 lanes.
5971 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
5974 * config/arm/arm.c (arm_file_start): Fix emission of
5975 Tag_ABI_VFP_args attribute.
5977 2021-03-30 Richard Biener <rguenther@suse.de>
5979 PR tree-optimization/99824
5980 * stor-layout.c (set_min_and_max_values_for_integral_type):
5981 Assert the precision is within the bounds of
5982 WIDE_INT_MAX_PRECISION.
5983 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
5984 the outermost component ref only to lower the access size
5985 and initialize that from the access type.
5987 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
5990 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
5991 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
5993 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
5995 * config/aarch64/aarch64.md
5996 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
5997 attribute to disambiguate between SIMD and FP variants of the
6000 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
6002 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
6003 (analyze_ssa_name_flags): Fix typo in comment.
6005 2021-03-29 Alex Coplan <alex.coplan@arm.com>
6008 * config/aarch64/aarch64-sve-builtins.cc
6009 (function_builder::add_function): Add placeholder_p argument, use
6010 placeholder decls if this is set.
6011 (function_builder::add_unique_function): Instead of conditionally adding
6012 direct overloads, unconditionally add either a direct overload or a
6014 (function_builder::add_overloaded_function): Set placeholder_p if we're
6015 using C++ overloads. Use the obstack for string storage instead
6016 of relying on the tree nodes.
6017 (function_builder::add_overloaded_functions): Don't return early for
6018 m_direct_overloads: we need to add placeholders.
6019 * config/aarch64/aarch64-sve-builtins.h
6020 (function_builder::add_function): Add placeholder_p argument.
6022 2021-03-29 Richard Biener <rguenther@suse.de>
6024 PR tree-optimization/99807
6025 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
6026 assert below VEC_PERM handling.
6028 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6031 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
6032 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
6033 matching const_int 0.
6034 (move_lo_quad_internal_be_<mode>): Likewise.
6035 (move_lo_quad_<mode>): Update for the above.
6036 * config/aarch64/iterators.md (VQ_2E): Delete.
6038 2021-03-29 Jakub Jelinek <jakub@redhat.com>
6040 PR tree-optimization/99777
6041 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
6042 types other than scalar integral types.
6044 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
6046 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
6047 XCOFF TLS reloc decorations.
6049 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
6051 * doc/analyzer.texi (Analyzer Internals): Update link to
6052 "A Memory Model for Static Analysis of C Programs".
6054 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
6056 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
6057 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
6059 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
6060 (rs6000_special_round_type_align): Recursively check innermost first
6063 2021-03-26 Jakub Jelinek <jakub@redhat.com>
6066 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
6067 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
6068 assignment with drap_reg active, queue reg save for hfp with offset 0
6069 and flush queued reg saves. When handling a push with rule18,
6070 defer queueing reg save for hfp and just assert the offset is 0.
6071 (scan_trace): Assert that fde->rule18 is false.
6073 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
6076 * ira-costs.c (record_reg_classes): Put case with
6077 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
6078 * ira.c (ira_setup_alts): Ditto.
6079 * lra-constraints.c (process_alt_operands): Ditto.
6080 * recog.c (asm_operand_ok): Ditto.
6081 * reload.c (find_reloads): Ditto.
6083 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
6085 * config/aarch64/aarch64-protos.h
6086 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
6087 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
6088 * config/aarch64/aarch64.c (generic_addrcost_table): Update
6089 accordingly, using the same costs as for post_modify.
6090 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
6091 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
6092 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
6093 (a64fx_addrcost_table): Likewise.
6094 (neoversev1_addrcost_table): New.
6095 (neoversev1_tunings): Use neoversev1_addrcost_table.
6096 (aarch64_address_cost): Use the new post_modify costs for CImode
6099 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
6101 * config/aarch64/aarch64.opt
6102 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
6103 * doc/invoke.texi: Document it.
6104 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
6105 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
6106 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
6107 (aarch64_vec_issue_info): New structures.
6108 (cpu_vector_cost): Write comments above the variables rather
6110 (cpu_vector_cost::issue_info): New member variable.
6111 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
6112 and tree-ssa-loop-niter.h.
6113 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
6114 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
6115 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
6116 (thunderx3t110_vector_cost): Initialize issue_info to null.
6117 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
6118 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
6119 (neoversev1_vector_cost): Use them.
6120 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
6121 (aarch64_vector_costs::saw_sve_only_op): New member variable.
6122 (aarch64_vector_costs::num_vector_iterations): Likewise.
6123 (aarch64_vector_costs::scalar_ops): Likewise.
6124 (aarch64_vector_costs::advsimd_ops): Likewise.
6125 (aarch64_vector_costs::sve_ops): Likewise.
6126 (aarch64_vector_costs::seen_loads): Likewise.
6127 (aarch64_simd_vec_costs_for_flags): New function.
6128 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
6129 Count the number of predicate operations required by SVE WHILE
6131 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
6132 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
6133 (aarch64_count_ops): Likewise.
6134 (aarch64_add_stmt_cost): Record whether see an SVE operation
6135 that cannot currently be implementing using Advanced SIMD.
6136 Record issue information about the scalar, Advanced SIMD
6137 and (where relevant) SVE versions of a loop.
6138 (aarch64_vec_op_count::dump): New function.
6139 (aarch64_sve_op_count::dump): Likewise.
6140 (aarch64_estimate_min_cycles_per_iter): Likewise.
6141 (aarch64_adjust_body_cost): If issue information is available,
6142 try to compare the issue rates of the various loop implementations
6143 and increase or decrease the vector body cost accordingly.
6145 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
6147 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
6148 Assume a zero cost for induction phis.
6150 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
6152 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
6154 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
6157 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
6159 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
6161 (aarch64_add_stmt_cost): Call it.
6163 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
6165 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
6166 New tuning parameter.
6167 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
6168 (aarch64_estimated_sve_vq): New function.
6169 (aarch64_vector_costs::analyzed_vinfo): New member variable.
6170 (aarch64_vector_costs::is_loop): Likewise.
6171 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
6172 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
6173 (aarch64_record_potential_advsimd_unrolling): New function.
6174 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
6175 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
6176 aarch64_analyze_bb_vinfo on the first use of a costs structure.
6177 Detect whether we're vectorizing a loop for SVE that might be
6178 completely unrolled if it used Advanced SIMD instead.
6179 (aarch64_adjust_body_cost_for_latency): New function.
6180 (aarch64_finish_cost): Call it.
6182 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
6184 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
6185 (aarch64_init_cost): New function.
6186 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
6187 the default unsigned[3].
6188 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
6189 (TARGET_VECTORIZE_INIT_COST): Override.
6190 (TARGET_VECTORIZE_FINISH_COST): Likewise.
6191 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
6193 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
6195 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
6196 (neoversev1_sve_vector_cost): New cost structures.
6197 (neoversev1_vector_cost): Likewise.
6198 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
6200 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
6202 * config/aarch64/aarch64-protos.h
6203 (sve_vec_cost::scatter_store_elt_cost): New member variable.
6204 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
6205 accordingly, taking the cost from the cost of a scalar_store.
6206 (a64fx_sve_vector_cost): Likewise.
6207 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
6209 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
6211 * config/aarch64/aarch64-protos.h
6212 (simd_vec_cost::store_elt_extra_cost): New member variable.
6213 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
6214 accordingly, using the vec_to_scalar cost for the new field.
6215 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
6216 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
6217 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
6218 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
6219 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
6220 (thunderx3t110_advsimd_vector_cost): Likewise.
6221 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
6223 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
6225 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
6226 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
6227 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
6228 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
6229 accordingly, using zero for the new costs.
6230 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
6231 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
6232 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
6233 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
6234 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
6235 (thunderx3t110_advsimd_vector_cost): Likewise.
6236 (aarch64_ld234_st234_vectors): New function.
6237 (aarch64_adjust_stmt_cost): Likewise.
6238 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
6239 the new vector costs.
6241 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
6243 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
6244 derived class of simd_vec_cost. Add information about CLAST[AB]
6245 and FADDA instructions.
6246 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
6247 accordingly, using the vec_to_scalar costs for the new fields.
6248 (a64fx_sve_vector_cost): Likewise.
6249 (aarch64_reduc_type): New function.
6250 (aarch64_sve_in_loop_reduction_latency): Likewise.
6251 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
6252 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
6253 that occur in the loop body.
6254 (aarch64_add_stmt_cost): Update call accordingly.
6256 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
6258 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
6260 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
6261 above the fields rather than to the right.
6262 (simd_vec_cost::reduc_i8_cost): New member variable.
6263 (simd_vec_cost::reduc_i16_cost): Likewise.
6264 (simd_vec_cost::reduc_i32_cost): Likewise.
6265 (simd_vec_cost::reduc_i64_cost): Likewise.
6266 (simd_vec_cost::reduc_f16_cost): Likewise.
6267 (simd_vec_cost::reduc_f32_cost): Likewise.
6268 (simd_vec_cost::reduc_f64_cost): Likewise.
6269 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
6270 accordingly, using the vec_to_scalar_cost for the new fields.
6271 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
6272 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
6273 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
6274 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
6275 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
6276 (thunderx3t110_advsimd_vector_cost): Likewise.
6277 (aarch64_use_new_vector_costs_p): New function.
6278 (aarch64_simd_vec_costs): New function, split out from...
6279 (aarch64_builtin_vectorization_cost): ...here.
6280 (aarch64_is_reduction): New function.
6281 (aarch64_detect_vector_stmt_subtype): Likewise.
6282 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
6283 using the new vector costs.
6285 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
6288 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
6289 TLS declarations as public.
6291 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
6293 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
6294 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
6295 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
6296 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
6297 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
6298 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
6299 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
6300 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
6301 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
6303 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
6306 * config.gcc (*-*-cygwin*): Add winnt-d.o
6307 (*-*-mingw*): Likewise.
6308 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
6309 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
6310 * config/i386/t-cygming: Add winnt-d.o.
6311 * config/i386/winnt-d.c: New file.
6313 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
6315 * config/freebsd-d.c: Include memmodel.h.
6317 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
6320 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
6321 * config/t-openbsd: Add openbsd-d.o.
6322 * config/openbsd-d.c: New file.
6324 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
6326 PR tree-optimization/96974
6327 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
6330 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
6333 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
6337 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
6338 always_inline in system headers.
6340 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
6342 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
6344 2021-03-25 Jakub Jelinek <jakub@redhat.com>
6347 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
6348 * fold-const.c (operand_compare::operand_equal_p): Don't compare
6349 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
6351 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
6355 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
6356 always_inline in system headers.
6358 2021-03-25 Richard Biener <rguenther@suse.de>
6360 PR tree-optimization/99746
6361 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
6362 the scalar stmt as patterned. Instead set up required things
6365 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
6367 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
6370 2021-03-24 Martin Liska <mliska@suse.cz>
6373 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
6375 * config/i386/i386-options.c (ix86_option_override_internal):
6376 Add run-time assert.
6378 2021-03-24 Martin Jambor <mjambor@suse.cz>
6381 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
6382 parameters with unknown type.
6383 (ipacp_value_safe_for_type): New function.
6384 (propagate_vals_across_arith_jfunc): Verify that the constant type
6385 can be used for a type of the formal parameter.
6386 (propagate_vals_across_ancestor): Likewise.
6387 (propagate_scalar_across_jump_function): Likewise. Pass the type
6388 also to propagate_vals_across_ancestor.
6390 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
6393 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
6395 (movmisalign<mode>_mve_load): Likewise.
6397 2021-03-24 Jakub Jelinek <jakub@redhat.com>
6400 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
6401 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
6403 2021-03-24 Alexandre Oliva <oliva@adacore.com>
6405 * doc/sourcebuild.texi (sysconf): New effective target.
6407 2021-03-24 Alexandre Oliva <oliva@adacore.com>
6409 * config/i386/predicates.md (reg_or_const_vec_operand): New.
6410 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
6411 the now *-prefixed insn_and_split, turn the splitter const vec
6412 into an input for the insn, making it an ignored immediate for
6413 non-split cases, and loaded into the scratch register
6416 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
6419 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
6420 Use define_relaxed_memory_constraint for them.
6422 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
6425 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
6426 colon to the diagnostic message.
6428 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
6430 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
6432 (try_fwprop_subst_note): Use set_info instead of insn_info.
6433 (try_fwprop_subst_pattern): Likewise.
6434 (try_fwprop_subst_notes): Likewise.
6435 (try_fwprop_subst): Likewise.
6436 (forward_propagate_subreg): Likewise.
6437 (forward_propagate_and_simplify): Likewise.
6438 (forward_propagate_into): Likewise.
6439 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
6441 (set_info::single_nondebug_insn_use): Likewise.
6442 (set_info::single_phi_use): Likewise.
6443 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
6445 (set_info::single_nondebug_insn_use): Likewise.
6446 (set_info::single_phi_use): Likewise.
6448 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
6450 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
6452 2021-03-23 Jakub Jelinek <jakub@redhat.com>
6455 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
6456 expand_mult to perform an unsigned rather than a signed
6459 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
6462 * config/i386/cpuid.h (__cpuid): Add __volatile__.
6463 (__cpuid_count): Likewise.
6465 2021-03-23 Richard Biener <rguenther@suse.de>
6467 PR tree-optimization/99721
6468 * tree-vect-slp.c (vect_slp_analyze_node_operations):
6469 Make sure we can schedule the node.
6471 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
6473 * config/riscv/riscv.c (riscv_subword): Take endianness into
6474 account when calculating the byte offset.
6476 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
6478 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
6479 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
6480 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
6481 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
6482 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
6483 new predicate "subreg_lowpart_operator"
6485 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
6487 * config/riscv/riscv.c (riscv_swap_instruction): New function
6488 to byteswap an SImode rtx containing an instruction.
6489 (riscv_trampoline_init): Byteswap the generated instructions
6492 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
6494 * common/config/riscv/riscv-common.c
6495 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
6496 * config.gcc (riscv32be-*, riscv64be-*): Set
6497 TARGET_BIG_ENDIAN_DEFAULT to 1.
6498 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
6499 depending on default endianness.
6500 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
6501 * config/riscv/linux.h (LINK_SPEC): Likewise.
6502 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
6504 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
6506 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
6508 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
6509 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
6510 * config/riscv/linux.h (LINK_SPEC): Likewise.
6511 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
6513 (BYTES_BIG_ENDIAN): Handle big endian.
6514 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
6515 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
6517 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
6519 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
6521 * regcprop.c (find_oldest_value_reg): Ask target whether
6522 different mode is fine for replacement register.
6524 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
6526 PR tree-optimization/99296
6527 * value-range.cc (irange::irange_set_1bit_anti_range): New.
6528 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
6529 * value-range.h (irange::irange_set_1bit_anti_range): New.
6531 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
6534 * config/aarch64/constraints.md (UtQ): Use
6535 define_relaxed_memory_constraint for it.
6536 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
6537 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
6538 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
6539 (have_relaxed_memory_constraints): New static var.
6540 (relaxed_memory_start, relaxed_memory_end): Ditto.
6541 (add_constraint): Add arg is_relaxed_memory. Check name for
6542 relaxed memory. Set up is_relaxed_memory in constraint_data and
6543 have_relaxed_memory_constraints. Adjust calls.
6544 (choose_enum_order): Process relaxed memory.
6545 (write_tm_preds_h): Ditto.
6546 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
6547 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
6548 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
6549 * ira-lives.c (single_reg_class): Use
6550 insn_extra_relaxed_memory_constraint.
6551 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
6552 * lra-constraints.c (valid_address_p): Use
6553 insn_extra_relaxed_memory_constraint instead of other memory
6555 (process_alt_operands): Process CT_RELAXED_MEMORY.
6556 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
6557 * recog.c (asm_operand_ok, preprocess_constraints): Process
6559 * reload.c (find_reloads): Ditto.
6560 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
6561 * stmt.c (parse_input_constraint): Use
6562 insn_extra_relaxed_memory_constraint.
6564 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
6567 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
6570 2021-03-22 Alex Coplan <alex.coplan@arm.com>
6573 * config/arm/arm-protos.h (neon_make_constant): Add generate
6574 argument to guard emitting insns, default to true.
6575 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
6576 CONST_VECTORs which neon_make_constant can't handle.
6577 (neon_vdup_constant): Add generate argument, avoid emitting
6578 insns if it's not set.
6579 (neon_make_constant): Plumb new generate argument through.
6580 * config/arm/constraints.md (Ui): New. Use it...
6581 * config/arm/mve.md (*mve_mov<mode>): ... here.
6582 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
6583 synthesize constants.
6585 2021-03-22 Richard Biener <rguenther@suse.de>
6587 * debug.h: Add deprecation warning.
6589 2021-03-22 Richard Biener <rguenther@suse.de>
6591 PR tree-optimization/99694
6592 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
6595 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
6598 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
6599 after type checking.
6601 2021-03-22 Jakub Jelinek <jakub@redhat.com>
6605 * dwarf2out.c (get_full_len): Use get_precision rather than
6607 (add_const_value_attribute): Make sure add_AT_wide argument has
6608 precision prec rather than some very wide one.
6610 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
6612 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
6613 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
6614 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
6615 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
6616 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
6617 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
6618 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
6619 *fix_trunc<mode>si2_internal): Fix empty split condition.
6620 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
6621 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
6622 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
6623 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
6625 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
6628 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
6629 Convert idx to DImode.
6630 (rs6000_expand_vector_set_var_p8): Likewise.
6632 2021-03-21 Jakub Jelinek <jakub@redhat.com>
6635 * dwarf2out.c (insert_float): Change return type from void to
6636 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
6637 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
6640 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
6643 * config/i386/i386.c (construct_container): Check cfun != NULL
6644 before accessing silent_p.
6646 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
6648 * asan.c: Fix typos in comments.
6650 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
6652 PR rtl-optimization/99680
6653 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
6654 (process_address_1): Check empty constraint before using
6657 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
6659 * config/rs6000/rs6000.c (power10_cost): New.
6660 (rs6000_option_override_internal): Set Power10 costs.
6661 (rs6000_issue_rate): Set Power10 issue rate.
6662 * config/rs6000/power10.md: Rewrite for Power10.
6664 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
6667 * lra-constraints.c (process_address_1): Don't use unknown
6668 constraint for address constraint.
6670 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
6673 * config.gcc (powerpc-*-darwin8): Delete the reference to
6674 the now removed darwin8.h.
6676 2021-03-19 Olivier Hainque <hainque@adacore.com>
6679 * config/vxworksae.h (VX_CPU_PREFIX): Define.
6681 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
6683 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
6685 2021-03-19 Tamar Christina <tamar.christina@arm.com>
6687 PR tree-optimization/99656
6688 * tree-vect-slp-patterns.c (linear_loads_p,
6689 complex_add_pattern::matches, is_eq_or_top,
6690 vect_validate_multiplication, complex_mul_pattern::matches,
6691 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
6692 * tree-vectorizer.h: (complex_load_perm_t): Removed.
6693 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
6694 complex_load_perm_t.
6696 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
6699 * config/i386/i386-options.c (ix86_init_machine_status): Set
6701 * config/i386/i386.c (init_cumulative_args): Set silent_p to
6703 (construct_container): Return early for return and argument
6704 errors if silent_p is true.
6705 * config/i386/i386.h (machine_function): Add silent_p.
6707 2021-03-19 Jakub Jelinek <jakub@redhat.com>
6710 * config/arm/constraints.md (Ds): New constraint.
6711 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
6712 constraint instead of w,Dm.
6714 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
6716 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
6719 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
6722 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
6723 array type, do the computation of the current position in sizetype.
6725 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
6728 * lra-constraints.c (process_address_1): Use lookup_constraint
6729 only for a single constraint.
6731 2021-03-18 Martin Sebor <msebor@redhat.com>
6734 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
6735 (inbounds_memaccess_p): ...to this. Check the ending offset of
6736 the accessed member.
6738 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
6740 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
6741 %> quote markers to error messages.
6742 (gcn_goacc_validate_dims): Likewise.
6743 (gcn_conditional_register_usage): Remove exclaimation mark from error
6745 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
6747 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
6749 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
6752 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
6753 Kito Cheng <kito.cheng@sifive.com>
6755 * config/riscv/riscv.c (riscv_block_move_straight): Change type
6756 to unsigned HOST_WIDE_INT for parameter and local variable with
6758 (riscv_adjust_block_mem): Ditto.
6759 (riscv_block_move_loop): Ditto.
6760 (riscv_expand_block_move): Ditto.
6762 2021-03-18 Nick Clifton <nickc@redhat.com>
6764 * config/v850/v850.c (construct_restore_jr): Increase static
6766 (construct_save_jarl): Likewise.
6767 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
6769 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6771 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
6772 (aarch64_override_options_internal): Use it.
6773 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
6776 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
6778 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
6779 error message format issues.
6780 (nios2_option_override): Likewise.
6781 (nios2_expand_fpu_builtin): Likewise.
6782 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
6784 (nios2_expand_custom_builtin): More error message format fixes.
6785 (nios2_expand_rdwrctl_builtin): Likewise.
6786 (nios2_expand_rdprs_builtin): Likewise.
6787 (nios2_expand_eni_builtin): Likewise.
6788 (nios2_expand_builtin): Likewise.
6789 (nios2_register_custom_code): Likewise.
6790 (nios2_valid_target_attribute_rec): Likewise.
6791 (nios2_add_insn_asm): Fix uninitialized variable warning.
6793 2021-03-17 Jan Hubicka <jh@suse.cz>
6795 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
6796 of gather to match reality.
6797 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
6799 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6801 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
6802 to compare against CC_REG rather than NE.
6804 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
6807 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
6808 inline assembly statements.
6809 (ix86_print_operand): Update 'P' handling for -fno-plt.
6811 2021-03-17 Tamar Christina <tamar.christina@arm.com>
6814 * config/aarch64/aarch64.c
6815 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
6817 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
6820 * config/rs6000/predicates.md (branch_comparison_operator): Allow
6821 ordered and unordered for CCFPmode, if flag_finite_math_only.
6823 2021-03-16 Jakub Jelinek <jakub@redhat.com>
6826 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
6828 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
6830 2021-03-16 Martin Liska <mliska@suse.cz>
6833 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
6834 cl_optimization_compare function.
6836 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
6838 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
6841 2021-03-16 Jakub Jelinek <jakub@redhat.com>
6844 * config/i386/i386.h (struct machine_function): Add
6845 has_explicit_vzeroupper bitfield.
6846 * config/i386/i386-expand.c (ix86_expand_builtin): Set
6847 cfun->machine->has_explicit_vzeroupper when expanding
6848 IX86_BUILTIN_VZEROUPPER.
6849 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
6850 Do the mode switching only when TARGET_VZEROUPPER, expensive
6851 optimizations turned on and not optimizing for size.
6852 (pass_insert_vzeroupper::gate): Enable even when
6853 cfun->machine->has_explicit_vzeroupper is set.
6855 2021-03-16 Jakub Jelinek <jakub@redhat.com>
6858 * config/aarch64/aarch64.c
6859 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
6860 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
6861 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
6863 2021-03-15 Richard Biener <rguenther@suse.de>
6865 PR tree-optimization/98834
6866 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
6867 subsetting by truncating the access size.
6869 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
6871 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
6872 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
6875 2021-03-15 Martin Liska <mliska@suse.cz>
6877 * spellcheck.c: Add missing comma in initialization.
6879 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
6881 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
6882 alternative 2 and alternative 1 with alternative 3 using
6883 YW register constraint.
6884 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
6885 using YW register constraint.
6886 (*vec_extractv16qi_zext): Ditto.
6887 (*vec_extractv4si): Merge alternatives 4 and 5
6888 using Yw register constraint.
6889 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
6891 2021-03-13 Martin Sebor <msebor@redhat.com>
6893 PR tree-optimization/99489
6894 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
6895 is not a call statement.
6897 2021-03-13 Jakub Jelinek <jakub@redhat.com>
6899 PR tree-optimization/99544
6900 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
6901 if for vector types multiplication can't be done in type's mode.
6903 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
6906 * config/sparc/constraints.md (w): Rename to...
6907 (W): ... this and ditch previous implementation.
6908 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
6909 (*movdf_insn_sp64): Likewise.
6910 (*mov<VM64:mode>_insn_sp64): Likewise.
6911 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
6913 (atomic_compare_and_swap_leon3_1): Likewise.
6914 (*atomic_compare_and_swapdi_v8plus): Likewise.
6915 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
6916 architecture and add missing address validity check during LRA.
6918 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
6921 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
6922 occuring for assumed-size arrays in use_device_{ptr,addr}.
6924 2021-03-12 Jakub Jelinek <jakub@redhat.com>
6927 * config/i386/constraints.md (YW): New internal constraint.
6928 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
6929 (*<sse2_avx2>_<insn><mode>3<mask_name>,
6930 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
6931 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
6933 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
6934 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
6935 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
6936 into one, use Yw instead of former x,v.
6937 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
6938 the last alternative.
6939 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
6940 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
6941 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
6942 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
6943 into one, use <v_Yw> instead of former x,v.
6944 (avx2_interleave_highv32qi<mask_name>,
6945 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
6946 constraints. Add && <mask_avx512bw_condition> to condition.
6947 (avx2_interleave_lowv32qi<mask_name>,
6948 vec_interleave_lowv16qi<mask_name>,
6949 avx2_interleave_highv16hi<mask_name>,
6950 vec_interleave_highv8hi<mask_name>,
6951 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
6952 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
6953 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
6954 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
6955 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
6956 Yw instead of v in constraints.
6957 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
6958 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
6959 instead of Yv in constraints.
6960 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
6961 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
6962 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
6963 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
6964 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
6966 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
6967 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
6968 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
6969 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
6970 two, one with just x, another isa avx512vl with v.
6972 2021-03-12 Martin Liska <mliska@suse.cz>
6974 * doc/invoke.texi: Add missing param documentation.
6976 2021-03-11 David Malcolm <dmalcolm@redhat.com>
6979 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
6980 analyzer/trimmed-graph.o.
6981 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
6982 feasibility checking to reflect new implementation.
6983 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
6985 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
6987 2021-03-11 David Malcolm <dmalcolm@redhat.com>
6989 * digraph.cc (selftest::test_shortest_paths): Update
6990 shortest_paths init for new param. Add test of
6991 SPS_TO_GIVEN_TARGET.
6992 * shortest-paths.h (enum shortest_path_sense): New.
6993 (shortest_paths::shortest_paths): Add "sense" param.
6994 Update for renamings. Generalize to use "sense" param.
6995 (shortest_paths::get_shortest_path): Rename param.
6996 (shortest_paths::m_sense): New field.
6997 (shortest_paths::m_prev): Rename...
6998 (shortest_paths::m_best_edge): ...to this.
6999 (shortest_paths::get_shortest_path): Update for renamings.
7000 Conditionalize flipping of path on sense of traversal.
7002 2021-03-11 David Malcolm <dmalcolm@redhat.com>
7004 * digraph.cc (selftest::test_shortest_paths): Add test coverage
7005 for paths from B and C.
7006 * shortest-paths.h (shortest_paths::shortest_paths): Handle
7007 unreachable nodes, rather than asserting.
7009 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
7012 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
7013 xcoff_tbss_section_name.
7014 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
7015 * xcoffout.c (xcoff_tbss_section_name): Delete.
7016 * xcoffout.h (xcoff_tbss_section_name): Delete.
7018 2021-03-11 Richard Biener <rguenther@suse.de>
7020 PR tree-optimization/99523
7021 * tree-cfg.c (dump_function_to_file): Dump SSA names
7022 w/o identifier to the decls section as well, not only those
7025 2021-03-11 Jakub Jelinek <jakub@redhat.com>
7028 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
7029 function calls with lhs fail if the lhs don't have compatible types.
7031 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
7033 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
7034 Change FRAME_POINTER_REGNUM to correspond to a new faked
7035 register faked_fp, part of GENNONACR_REGS like faked_ap.
7036 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
7037 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
7038 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
7039 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
7040 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
7042 (CRIS_REAL_FP_REGNUM): New constant.
7043 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
7044 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
7045 (cris_initial_elimination_offset): Handle elimination changes
7046 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
7047 and add one from FRAME_POINTER_REGNUM to
7048 HARD_FRAME_POINTER_REGNUM.
7049 (cris_expand_prologue, cris_expand_epilogue): Emit code for
7050 hard_frame_pointer_rtx instead of frame_pointer_rtx.
7052 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
7055 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
7056 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
7058 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
7061 * lra-constraints.c (process_address_1): Don't check unknown
7062 constraint, use X for empty constraint.
7064 2021-03-10 Alex Coplan <alex.coplan@arm.com>
7066 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
7067 Fix typo in comment describing "is_ha" argument.
7069 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
7071 * doc/sourcebuild.texi: Document LRA target selector.
7073 2021-03-10 David Malcolm <dmalcolm@redhat.com>
7075 * doc/ux.texi: Add subsection contrasting interactive versus
7078 2021-03-10 Joel Hutton <joel.hutton@arm.com>
7081 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
7083 (vectorizable_load): Fix gather load mask check condition.
7085 2021-03-10 Richard Biener <rguenther@suse.de>
7087 PR tree-optimization/99510
7088 * tree.c (check_aligned_type): Check that the candidate
7089 has TYPE_USER_ALIGN set instead of matching with the
7092 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
7094 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
7095 float and vector integer modes only if the mode is not larger.
7097 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
7099 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
7101 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
7103 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
7105 * ira-lives.c (single_reg_class): Ditto.
7107 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7109 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
7110 the architecture-specific rtems.h.
7111 (aarch64-*-rtems*): Likewise.
7112 (arm*-*-rtems*): Likewise.
7113 (epiphany-*-rtems*): Likewise.
7114 (riscv*-*-rtems*): Likewise.
7116 2021-03-09 Jakub Jelinek <jakub@redhat.com>
7118 PR tree-optimization/99305
7119 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
7120 before integer_all_onesp instead of vice versa.
7122 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
7124 * common/config/arm/arm-common.c (arm_config_default): Change type
7127 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
7130 * lra-constraints.c (process_address_1): Process constraint 'g'
7131 separately and digital constraints containing more one digit.
7133 2021-03-09 Nick Clifton <nickc@redhat.com>
7135 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
7136 (DWARF"_DEBUGGING_INFO): Define.
7138 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
7141 * calls.c (initialize_argument_information): When the argument
7142 is passed by reference, do not make a copy in a thunk only if
7143 the argument is already in memory. Remove redundant test for
7144 the case of callee copy.
7146 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
7149 * lra-constraints.c (process_address_1): Process 0..9 constraints
7150 in process_address_1.
7152 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
7154 * config/s390/s390.c (struct s390_processor processor_table):
7155 Binutils name string must not be empty.
7157 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
7159 * config/arc/arc.c (arc_attr_type): Remove function.
7161 2021-03-09 Martin Liska <mliska@suse.cz>
7164 * config/i386/i386-options.c (ix86_option_override_internal):
7165 Set isa_flags for OPTS argument and not for the global
7168 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
7170 * config/rs6000/predicates.md (ds_form_mem_operand): Check
7173 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
7176 * config/rs6000/predicates.md (ds_form_mem_operand) New
7178 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
7179 ds_form_mem_operand in ld/lwa patterns.
7180 * config/rs6000/fusion.md: Regenerate file.
7182 2021-03-08 Martin Sebor <msebor@redhat.com>
7185 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
7186 (array_bounds_checker::check_array_bounds): Call it.
7188 2021-03-08 Martin Sebor <msebor@redhat.com>
7191 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
7192 (handle_builtin_stxncpy_strncat): Rename locals. Determine
7193 destination size from allocation calls. Issue a more appropriate
7195 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
7196 (handle_builtin_memset): Same.
7198 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
7201 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
7202 to ensure we do not have an Altivec style address.
7203 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
7204 an Altivec style address.
7205 (*vsx_le_perm_store_<mode>): Likewise.
7206 (splitters after *vsx_le_perm_store_<mode>): Likewise.
7207 (vsx_load_<mode>): Disable special expander if passed an Altivec
7209 (vsx_store_<mode>): Likewise.
7211 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7214 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
7215 (aarch64_simd_shift_imm_vec_hi): Likewise.
7216 (aarch64_simd_shift_imm_vec_si): Likewise.
7217 (aarch64_simd_shift_imm_vec_di): Likewise.
7218 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
7219 predicate from above.
7220 (aarch64_shrn<mode>_insn_be): Likewise.
7221 (aarch64_rshrn<mode>_insn_le): Likewise.
7222 (aarch64_rshrn<mode>_insn_be): Likewise.
7223 (aarch64_shrn2<mode>_insn_le): Likewise.
7224 (aarch64_shrn2<mode>_insn_be): Likewise.
7225 (aarch64_rshrn2<mode>_insn_le): Likewise.
7226 (aarch64_rshrn2<mode>_insn_be): Likewise.
7228 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
7231 * lra-constraints.c (skip_contraint_modifiers): New function.
7232 (process_address_1): Use it before lookup_constraint call.
7234 2021-03-08 Martin Liska <mliska@suse.cz>
7237 * config/i386/i386-options.c (ix86_option_override_internal):
7238 Enable UINTR and HRESET for -march that supports it.
7240 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
7242 * config/s390/s390.c (f_constraint_p): New function.
7243 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
7244 (TARGET_MD_ASM_ADJUST): Likewise.
7246 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
7249 * tree-nested.c (convert_local_reference_stmt): Avoid calling
7250 lookup_field_for_decl for Fortran module (= namespace context).
7252 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
7254 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
7255 comparison with arithmetic right shift.
7256 (s390_expand_vcond): No need for a force_reg anymore.
7257 s390_vec_compare will do it.
7258 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
7261 2021-03-07 Jakub Jelinek <jakub@redhat.com>
7264 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
7265 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
7267 * config/i386/sse.md (v_Yw): New define_mode_attr.
7268 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
7269 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
7271 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
7274 2021-03-06 Julian Brown <julian@codesourcery.com>
7276 * tree-pretty-print.c (dump_generic_node): Emit non-generic
7277 address space info for aggregates.
7279 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
7281 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
7283 2021-03-05 Jakub Jelinek <jakub@redhat.com>
7286 * tree-cfg.c (bb_to_omp_idx): New variable.
7287 (execute_build_cfg): Release the bb_to_omp_idx vector after
7288 cleanup_tree_cfg returns.
7289 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
7290 for bb_to_omp_idx being a vec<int> instead of pointer to array
7292 (make_edges): Remove bb_to_omp_idx local variable, don't pass
7293 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
7294 vec<int> instead of pointer to array of ints and don't free/release
7296 (remove_bb): When removing a bb and placing forced label somewhere
7297 else, ensure it is put into the same OpenMP region during cfg
7298 pass if possible or to entry successor as fallback. Unregister
7299 bb from bb_to_omp_idx.
7301 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
7304 * lra-constraints.c (process_address_1): Skip decomposing address
7305 for asm insn operand with unknown constraint.
7307 2021-03-05 Martin Jambor <mjambor@suse.cz>
7310 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
7311 corresponding speculative edges if we are about to resolve
7312 sepculation. Make edge direct (and so resolve speculations) before
7313 removing it from call_site_hash.
7314 (cgraph_edge::make_direct): Relax the initial assert to allow calling
7315 the function on speculative direct edges.
7317 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
7319 PR rtl-optimization/99376
7320 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
7321 of low-order zero bits is too large, set the result to 0 directly.
7323 2021-03-04 Jakub Jelinek <jakub@redhat.com>
7326 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
7327 SUBREG and a SUBREG to op_mode can't be created.
7329 2021-03-04 Alex Coplan <alex.coplan@arm.com>
7332 * config/aarch64/aarch64-sve-builtins.cc
7333 (function_resolver::require_vector_type): Handle error_mark_node.
7335 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
7337 * cfgexpand.c (expand_asm_loc): Pass new parameter.
7338 (expand_asm_stmt): Likewise.
7339 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
7341 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
7342 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
7343 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
7344 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
7345 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
7346 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
7347 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
7348 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
7349 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
7350 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
7351 * doc/tm.texi (md_asm_adjust): Likewise.
7352 * target.def (md_asm_adjust): Likewise.
7354 2021-03-04 Richard Biener <rguenther@suse.de>
7357 * tree-pretty-print.c: Poison pp_printf.
7358 (dump_decl_name): Avoid use of pp_printf.
7359 (dump_block_node): Likewise.
7360 (dump_generic_node): Likewise.
7362 2021-03-04 Martin Sebor <msebor@redhat.com>
7366 * builtins.c (handle_array_ref): New helper.
7367 (handle_mem_ref): New helper.
7368 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
7369 into new helper functions. Correct a workaround for vectorized
7372 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
7374 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
7375 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
7376 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
7377 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
7378 attribute for Power10.
7379 * config/rs6000/mma.md (*movoo): Likewise.
7380 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
7381 (define_mode_attr bits): Add DD/TD modes.
7382 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
7383 store_conditionalpti): Update size attribute for Power10.
7385 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7388 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
7389 -Wuninitialized, -Wmaybe-uninitialized.
7390 (wide-int.o-warn): Likewise.
7392 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
7394 * common/config/arm/arm-common.c: Include configargs.h.
7395 (arm_config_default): New function.
7396 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
7397 processors that do not support Thumb. Take into account the
7398 --with-mode configuration setting for selecting the default.
7399 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
7400 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
7402 2021-03-03 Martin Liska <mliska@suse.cz>
7404 PR gcov-profile/97461
7405 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
7407 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
7410 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
7411 point back the hard frame pointer to its default location when the
7412 frame is larger than SEH_MAX_FRAME_SIZE.
7414 2021-03-03 Jakub Jelinek <jakub@redhat.com>
7417 * config/i386/predicates.md (logic_operator): New define_predicate.
7418 * config/i386/i386.md (mov + mem using comm arith peephole2):
7419 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
7420 and the inner mode is [QH]Imode.
7422 2021-03-03 Jakub Jelinek <jakub@redhat.com>
7425 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
7426 (new_loc_list): Clear end_entry.
7427 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
7428 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
7430 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
7431 initialize also end_entry.
7433 2021-03-03 Jakub Jelinek <jakub@redhat.com>
7436 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
7437 partitions, if in non-layout mode after reorder_blocks also move
7438 affected blocks to ensure a single partition transition.
7440 2021-03-03 Jason Merrill <jason@redhat.com>
7443 * cgraphunit.c (process_function_and_variable_attributes): Don't
7444 warn about flatten on an alias if the target also has it.
7445 * cgraph.h (symtab_node::get_alias_target_tree): New.
7447 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
7449 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
7450 period to symbol name.
7451 (tls_get_addr_internal<mode>): Same.
7453 2021-03-02 David Malcolm <dmalcolm@redhat.com>
7456 * diagnostic-show-locus.c
7457 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
7460 2021-03-02 Martin Sebor <msebor@redhat.com>
7463 * builtins.c (warn_for_access): Remove stray warning text.
7465 2021-03-02 Martin Sebor <msebor@redhat.com>
7468 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
7471 2021-03-02 Jakub Jelinek <jakub@redhat.com>
7474 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
7475 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
7476 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
7477 DW_MACRO_define_strx and DW_MACRO_undef_strx.
7478 (save_macinfo_strings): Use DW_MACRO_*_str* even with
7479 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
7480 DW_MACRO_undef_strx.
7482 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
7484 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
7486 (BT_FN_V8HI_V8HI_UINT): Likewise.
7487 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
7488 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
7489 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
7490 New builtin definitions.
7491 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
7492 vector extension version.
7493 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
7494 available with current -march level.
7495 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
7496 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
7497 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
7498 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
7499 (vec_extend_to_fp32_lo): Likewise.
7500 (vec_round_from_fp32): Likewise.
7501 (vec_convert_to_fp16): Likewise.
7502 (vec_convert_from_fp16): Likewise.
7503 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
7504 (vclfnls_v8hi): Likewise.
7505 (vcrnfs_v8hi): Likewise.
7506 (vcfn_v8hi): Likewise.
7507 (vcnf_v8hi): Likewise.
7509 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
7511 * common/config/s390/s390-common.c (processor_flags_table): New entry.
7512 * config.gcc: Enable arch14 for --with-arch and --with-tune.
7513 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
7514 arch14 for unknown CPU models.
7515 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
7516 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
7517 (s390_get_sched_attrmask): Likewise.
7518 (s390_get_unit_mask): Likewise.
7519 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
7520 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
7521 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
7522 (TARGET_NNPA_P): New macro definitions.
7523 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
7524 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
7526 2021-03-02 Jakub Jelinek <jakub@redhat.com>
7529 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
7530 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
7531 != 1 comparisons if name is lhs of a comparison.
7533 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
7537 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
7538 * config/darwin.c (darwin_should_restore_cfa_state): New.
7539 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
7540 * doc/tm.texi: Regenerated.
7541 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
7542 * dwarf2cfi.c (connect_traces): If the target requests, restore
7543 the CFA expression after a DW_CFA_restore.
7544 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
7546 2021-03-01 Martin Liska <mliska@suse.cz>
7549 * optc-save-gen.awk: Add 4 more exceptions.
7551 2021-03-01 Nathan Sidwell <nathan@acm.org>
7554 * tree.h (TYPE_ALIGN_RAW): New accessor.
7555 (TYPE_ALIGN): Use it.
7557 2021-03-01 Jan Hubicka <jh@suse.cz>
7560 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
7562 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
7565 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
7566 point the hard frame pointer to the SSE register save area instead
7567 of the general register save area. Perform only minimal adjustment
7568 for small frames if it is initially not correctly aligned.
7569 (ix86_expand_prologue): Remove early saves for a SEH target.
7570 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
7572 2021-02-28 Jakub Jelinek <jakub@redhat.com>
7575 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
7576 typo - referneced -> referenced.
7577 * tree.c (component_ref_size): Fix comment typo -
7578 refernce -> reference.
7579 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
7580 traling -> trailing.
7581 (aliasing_component_refs_p): Fix comment typos -
7582 refernce -> reference and refernece -> reference and
7583 traling -> trailing.
7584 (nonoverlapping_refs_since_match_p): Fix comment typo -
7585 referneces -> references.
7586 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
7587 referneces -> references.
7589 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
7591 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
7592 diagnostic message to avoid use of a contraction and format
7595 2021-02-27 Jakub Jelinek <jakub@redhat.com>
7598 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
7599 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
7600 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
7601 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
7604 2021-02-26 Richard Biener <rguenther@suse.de>
7607 * expr.c (store_field): For calls with return-slot optimization
7608 and addressable return type expand the store directly.
7610 2021-02-26 Richard Biener <rguenther@suse.de>
7613 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
7615 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
7618 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
7621 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
7623 * config.gcc: Add rs6000-pcrel-opt.o.
7624 * config/rs6000/rs6000-pcrel-opt.c: New file.
7625 * config/rs6000/pcrel-opt.md: New file.
7626 * config/rs6000/predicates.md: Add d_form_memory predicate.
7627 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
7628 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
7629 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
7630 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
7631 and make_pass_pcrel_opt().
7632 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
7633 (rs6000_option_override_internal): Add pcrel-opt.
7634 (rs6000_delegitimize_address): Support pcrel-opt.
7635 (rs6000_opt_masks): Add pcrel-opt.
7636 (pcrel_opt_valid_mem_p): New function.
7637 (reg_to_non_prefixed): Make global.
7638 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
7639 (output_pcrel_opt_reloc): New function.
7640 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
7641 (pcrel_extern_addr): Set loads_extern_addr.
7642 Add include for pcrel-opt.md.
7643 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
7644 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
7647 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
7650 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
7651 If TARGET_64BIT and dest is SUBREG, we check the width, if it
7652 equal to SImode, we use SImode operation, just like what we are
7655 2021-02-26 Marek Polacek <polacek@redhat.com>
7657 * builtins.c (warn_for_access): Fix typos.
7659 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
7661 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
7662 mark in front of the immediate quantity.
7663 (<optab>_rolsi3_uxtw): Likewise.
7665 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
7668 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
7669 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
7670 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
7671 address and disable when the FPCXT is not available.
7672 (nonsecure_call_value_reg_thumb2): Likewise.
7674 2021-02-25 Nathan Sidwell <nathan@acm.org>
7677 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
7679 2021-02-25 Tamar Christina <tamar.christina@arm.com>
7681 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
7683 2021-02-25 Richard Biener <rguenther@suse.de>
7685 PR tree-optimization/99253
7686 * tree-vect-loop.c (check_reduction_path): First compute
7687 code, then verify out-of-loop uses.
7689 2021-02-25 Jakub Jelinek <jakub@redhat.com>
7692 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
7694 2021-02-25 Jakub Jelinek <jakub@redhat.com>
7696 PR tree-optimization/80635
7697 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
7698 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
7701 2021-02-25 Richard Biener <rguenther@suse.de>
7703 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
7704 load_map population.
7705 (vect_match_slp_patterns_2): Revert part of last change.
7706 (vect_analyze_slp): Do not interleave optimize_load_redistribution
7707 with pattern detection but do it afterwards. Dump the
7708 whole SLP graph after pattern recognition and load
7709 redistribution optimization finished.
7711 2021-02-24 Jakub Jelinek <jakub@redhat.com>
7714 * omp-low.c (struct omp_context): Add teams_nested_p and
7715 nonteams_nested_p members.
7716 (scan_omp_target): Diagnose teams nested inside of target with other
7717 directives strictly nested inside of the same target.
7718 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
7719 ctx->nonteams_nested_p as needed.
7721 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
7724 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
7726 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
7728 * config/cris/cris.c (cris_expand_prologue): Set
7729 current_function_static_stack_size, if flag_stack_usage_info.
7731 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
7733 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
7734 (rs6000_final_prescan_insn): Adjust.
7735 (rs6000_asm_output_opcode): Likewise.
7737 2021-02-24 Martin Sebor <msebor@redhat.com>
7740 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
7741 from function arguments.
7743 2021-02-24 Tamar Christina <tamar.christina@arm.com>
7745 PR tree-optimization/99220
7746 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
7747 node from cache when it's about to be deleted.
7749 2021-02-24 Jakub Jelinek <jakub@redhat.com>
7751 PR tree-optimization/99225
7752 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
7753 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
7754 build_int_cst (..., 1). Formatting fixes.
7756 2021-02-24 Tamar Christina <tamar.christina@arm.com>
7758 PR tree-optimization/99149
7759 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
7761 (vect_slp_reset_pattern): Remove.
7762 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
7763 (complex_mul_pattern::build, complex_fma_pattern::build,
7764 complex_fms_pattern::build): Fix ref counts.
7765 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
7766 when node is being deleted.
7767 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
7768 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
7770 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
7772 2021-02-24 Matthias Klose <doko@ubuntu.com>
7775 2020-12-07 Matthias Klose <doko@ubuntu.com>
7777 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
7778 and ENABLE_RTL_FLAG_CHECKING.
7780 2021-02-24 Richard Biener <rguenther@suse.de>
7783 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
7785 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
7787 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
7788 (vsx_assemble_pair): ...to this.
7789 (*mma_assemble_pair): Rename from this...
7790 (*vsx_assemble_pair): ...to this.
7791 (mma_disassemble_pair): Rename from this...
7792 (vsx_disassemble_pair): ...to this.
7793 (*mma_disassemble_pair): Rename from this...
7794 (*vsx_disassemble_pair): ...to this.
7795 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
7796 BU_COMPAT): New macros.
7797 (mma_assemble_pair): Rename from this...
7798 (vsx_assemble_pair): ...to this.
7799 (mma_disassemble_pair): Rename from this...
7800 (vsx_disassemble_pair): ...to this.
7801 (mma_assemble_pair): New compatibility built-in.
7802 (mma_disassemble_pair): Likewise.
7803 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
7804 (RS6000_BUILTIN_COMPAT): Define.
7805 (bdesc_compat): New.
7806 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
7807 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
7808 and VSX_BUILTIN_ASSEMBLE_PAIR.
7809 (rs6000_init_builtins): Register compatibility built-ins.
7810 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
7811 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
7812 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
7813 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
7814 (__builtin_vsx_assemble_pair): ...to this.
7815 (__builtin_mma_disassemble_pair): Rename from this...
7816 (__builtin_vsx_disassemble_pair): ...to this.
7818 2021-02-23 Martin Liska <mliska@suse.cz>
7821 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
7822 with different alignment. That leads to an invalid red zone
7823 size allocated in runtime.
7825 2021-02-23 Jakub Jelinek <jakub@redhat.com>
7827 PR tree-optimization/99204
7828 * fold-const.c (fold_read_from_constant_string): Check that
7829 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
7831 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
7832 Kewen Lin <linkw@gcc.gnu.org>
7834 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
7835 (rotl<mode>3_insert_3): ...this.
7836 (plus_ior_xor): New code_iterator.
7837 (define_split for GPR rl*imi): New splitter.
7838 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
7839 for integer merging.
7841 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7843 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
7845 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
7846 into a register when the above is enabled.
7847 * config/aarch64/aarch64.c (neoversev1_tunings):
7848 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
7849 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
7851 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
7853 * config/cris/cris.c (cris_print_operand) <'T'>: Change
7854 valid operand from is now an addi mult-value to shift-value.
7855 * config/cris/cris.md (*addi): Change expression of scaled
7856 operand from mult to ashift.
7857 * config/cris/cris.md (*addi_reload): New insn_and_split.
7859 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
7862 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
7863 hook_bool_const_tree_hwi_hwi_const_tree_true.
7864 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
7866 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
7868 PR rtl-optimization/98791
7869 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
7870 for unordered modes.
7872 2021-02-22 Martin Liska <mliska@suse.cz>
7874 * tree-inline.c (inline_forbidden_p): Set
7875 inline_forbidden_reason.
7877 2021-02-22 Richard Biener <rguenther@suse.de>
7879 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
7882 2021-02-22 Richard Biener <rguenther@suse.de>
7884 PR tree-optimization/99165
7885 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
7886 Accumulate changed to ret.
7888 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
7891 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
7893 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
7895 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
7898 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
7900 (trunctf<DFP_ALL:mode>2): Likewise.
7901 (trunctdtf2_vr): Likewise.
7902 (trunctdtf2): Likewise.
7903 (extend<DFP_ALL:mode>tf2_vr): Likewise.
7904 (extend<DFP_ALL:mode>tf2): Likewise.
7905 (extendtftd2_vr): Likewise.
7906 (extendtftd2): Likewise.
7908 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
7910 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
7911 add memory alternative.
7912 (tf_to_fprx2): New pattern.
7914 2021-02-19 Martin Sebor <msebor@redhat.com>
7917 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
7918 (attr_access::free_lang_data): Remove a spurious test.
7920 2021-02-19 Nathan Sidwell <nathan@acm.org>
7922 * doc/invoke.texi (flang-info-module-read): Document.
7924 2021-02-19 Martin Liska <mliska@suse.cz>
7926 PR translation/99167
7927 * params.opt: Fix typo.
7929 2021-02-19 Richard Biener <rguenther@suse.de>
7932 * tree-inline.c (inline_forbidden_p): Do not inline functions
7933 with VLA arguments or return value.
7935 2021-02-19 Jakub Jelinek <jakub@redhat.com>
7938 * config/arm/arm.md (*stack_protect_combined_set_insn,
7939 *stack_protect_combined_test_insn): If force_const_mem result
7940 is not valid general operand, force its address into the destination
7943 2021-02-19 Jakub Jelinek <jakub@redhat.com>
7946 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
7947 pad or non-local label, put FORCED_LABELs from bb b after that label
7948 rather than before it.
7950 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
7953 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
7954 expand_vector_broadcast' to emit the vec_duplicate operand.
7956 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
7958 PR rtl-optimization/96264
7959 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
7962 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
7965 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
7966 looking up the retain attribute.
7967 (resolve_unique_section): Likewise.
7968 (get_variable_section): Likewise.
7969 (switch_to_section): Likewise. Warn when a symbol without the
7970 retain attribute and a symbol with the retain attribute are
7971 placed in the section with the same name, instead of the used
7973 * doc/extend.texi: Document the "retain" attribute.
7975 2021-02-18 Nathan Sidwell <nathan@acm.org>
7978 * doc/invoke.texi (flang-info-include-translate): Document header
7981 2021-02-18 Richard Biener <rguenther@suse.de>
7984 * ipa-fnsummary.c (analyze_function_body): Set
7985 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
7986 * tree-inline.c (insert_init_debug_bind): Pass NULL for
7987 error_mark_node values.
7988 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
7990 (setup_one_parameter): Delay force_value_to_type until when
7993 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
7995 PR tree-optimization/99142
7996 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
7998 2021-02-18 Jakub Jelinek <jakub@redhat.com>
8000 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
8001 wide_int_bitmask::wide_int_bitmask (uint64_t),
8002 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
8003 wide_int_bitmask::operator ~ () const,
8004 wide_int_bitmask::operator | (wide_int_bitmask) const,
8005 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
8007 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
8008 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
8009 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
8010 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
8011 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
8012 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
8013 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
8014 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
8015 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
8016 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
8017 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
8018 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
8019 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
8020 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
8021 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
8022 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
8023 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
8024 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
8025 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
8026 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
8027 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
8028 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
8029 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
8030 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
8032 2021-02-18 Jakub Jelinek <jakub@redhat.com>
8035 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
8036 (build_printable_array_type): ... this. Add nelts argument. For
8037 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
8038 nelts, call build_array_type_nelts.
8039 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
8040 instead of build_zero_elt_array_type and build_array_type_nelts.
8042 2021-02-18 Jakub Jelinek <jakub@redhat.com>
8045 * config/i386/i386.c (distance_non_agu_define): Don't call
8046 extract_insn_cached here.
8047 (ix86_lea_outperforms): Save and restore recog_data around call
8048 to distance_non_agu_define and distance_agu_use.
8049 (ix86_ok_to_clobber_flags): Remove.
8050 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
8051 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
8052 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
8053 into define_insn. Move the splitting to define_peephole2 and
8054 check there using peep2_regno_dead_p if FLAGS_REG is dead.
8056 2021-02-17 Julian Brown <julian@codesourcery.com>
8058 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
8061 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
8064 * config/mips/mips.c (mips_symbol_insns): Do not use
8065 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
8067 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
8070 * stmt.c (resolve_operand_name_1): Take inout operands into account
8071 for access to labels by names.
8072 * doc/extend.texi: Describe counting operands for accessing labels.
8074 2021-02-16 Richard Biener <rguenther@suse.de>
8076 PR tree-optimization/38474
8077 * tree-ssa-structalias.c (variable_info::address_taken): New.
8078 (new_var_info): Initialize address_taken.
8079 (process_constraint): Set address_taken.
8080 (solve_constraints): Use the new address_taken flag rather
8081 than is_reg_var for sorting variables.
8082 (dump_constraint): Dump the variable number if the name
8085 2021-02-16 Jakub Jelinek <jakub@redhat.com>
8088 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
8089 multiply by 4096 and for inbranch by 8192.
8090 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
8091 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
8093 2021-02-15 Maya Rashish <coypu@sdf.org>
8095 * config/aarch64/aarch64.c (aarch64_init_builtins):
8096 Call SUBTARGET_INIT_BUILTINS.
8098 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
8100 PR rtl-optimization/98872
8101 * init-regs.c (initialize_uninitialized_regs): Skip initialization
8102 if CONST0_RTX is NULL.
8104 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
8106 PR rtl-optimization/98863
8107 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
8108 (function_info::build_info): Turn into a declaration, moving the
8109 definition to internals.h.
8110 (function_info::bb_walker): Declare.
8111 (function_info::create_reg_use): Likewise.
8112 (function_info::calculate_potential_phi_regs): Take a build_info
8114 (function_info::place_phis, function_info::create_ebbs): Declare.
8115 (function_info::calculate_ebb_live_in_for_debug): Likewise.
8116 (function_info::populate_backedge_phis): Delete.
8117 (function_info::start_block, function_info::end_block): Declare.
8118 (function_info::populate_phi_inputs): Delete.
8119 (function_info::m_potential_phi_regs): Move information to build_info.
8120 * rtl-ssa/internals.h: New file.
8121 (function_info::bb_phi_info): New class.
8122 (function_info::build_info): Moved from functions.h.
8123 Add a constructor and destructor.
8124 (function_info::build_info::ebb_use): Delete.
8125 (function_info::build_info::ebb_def): Likewise.
8126 (function_info::build_info::bb_live_out): Likewise.
8127 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
8128 (function_info::build_info::potential_phi_regs): Likewise.
8129 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
8130 (function_info::build_info::ebb_def_regs): Likewise.
8131 (function_info::build_info::bb_phis): Likewise.
8132 (function_info::build_info::bb_mem_live_out): Likewise.
8133 (function_info::build_info::bb_to_rpo): Likewise.
8134 (function_info::build_info::def_stack): Likewise.
8135 (function_info::build_info::old_def_stack_limit): Likewise.
8136 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
8137 Remove the regno argument. Push the previous definition onto the
8138 definition stack where necessary.
8139 * rtl-ssa/accesses.cc: Include internals.h.
8140 * rtl-ssa/changes.cc: Likewise.
8141 * rtl-ssa/blocks.cc: Likewise.
8142 (function_info::build_info::build_info): Define.
8143 (function_info::build_info::~build_info): Likewise.
8144 (function_info::bb_walker): New class.
8145 (function_info::bb_walker::bb_walker): Define.
8146 (function_info::add_live_out_use): Convert a logarithmic-complexity
8147 test into a linear one. Allow the same definition to be passed
8149 (function_info::calculate_potential_phi_regs): Moved from
8150 functions.cc. Take a build_info parameter and store the
8151 information there instead.
8152 (function_info::place_phis): New function.
8153 (function_info::add_entry_block_defs): Update call to record_reg_def.
8154 (function_info::calculate_ebb_live_in_for_debug): New function.
8155 (function_info::add_phi_nodes): Use bb_phis to decide which
8156 registers need phi nodes and initialize ebb_def_regs accordingly.
8157 Do not add degenerate phis here.
8158 (function_info::add_artificial_accesses): Use create_reg_use.
8159 Assert that all definitions are listed in the DF LR sets.
8160 Update call to record_reg_def.
8161 (function_info::record_block_live_out): Record live-out register
8162 values in the phis of successor blocks. Use the live-out set
8163 when processing the last block in an EBB, instead of always
8164 using the live-in sets of successor blocks. AND the live sets
8165 with the set of registers that have been defined in the EBB,
8166 rather than with all potential phi registers. Cope correctly
8167 with branches back to the start of the current EBB.
8168 (function_info::start_block): New function.
8169 (function_info::end_block): Likewise.
8170 (function_info::populate_phi_inputs): Likewise.
8171 (function_info::create_ebbs): Likewise.
8172 (function_info::process_all_blocks): Rewrite into a multi-phase
8174 * rtl-ssa/functions.cc: Include internals.h.
8175 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
8176 (function_info::init_function_data): Remove caller.
8177 * rtl-ssa/insns.cc: Include internals.h
8178 (function_info::create_reg_use): New function. Lazily any
8179 degenerate phis needed by the linear RPO view.
8180 (function_info::record_use): Use create_reg_use. When processing
8181 debug uses, use potential_phi_regs and test it before checking
8182 whether the register is live on entry to the current EBB. Lazily
8183 calculate ebb_live_in_for_debug.
8184 (function_info::record_call_clobbers): Update call to record_reg_def.
8185 (function_info::record_def): Likewise.
8187 2021-02-15 Martin Liska <mliska@suse.cz>
8189 * toplev.c (init_asm_output): Free output of
8190 gen_command_line_string function.
8191 (process_options): Likewise.
8193 2021-02-15 Martin Liska <mliska@suse.cz>
8195 * params.opt: Add 2 missing Param keywords.
8197 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
8199 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
8201 2021-02-15 Jakub Jelinek <jakub@redhat.com>
8203 PR tree-optimization/99079
8204 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
8205 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
8206 require both type and TREE_TYPE (@1) to be integral types and either
8207 type having smaller or equal precision, or TREE_TYPE (@1) being
8208 unsigned type, or type being signed type. If TREE_TYPE (@1)
8209 doesn't have wrapping overflow, perform the subtraction of one in
8212 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
8213 Richard Biener <rguether@suse.de>
8216 * ipa-reference.c (ipa_init): Only conditinally initialize
8217 reference_vars_to_consider.
8218 (propagate): Conditionally deninitialize reference_vars_to_consider.
8219 (ipa_reference_write_optimization_summary): Sanity check that
8220 reference_vars_to_consider is not allocated.
8222 2021-02-13 Levy Hsu <admin@levyhsu.com>
8225 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
8226 extend parameter to get_si_mem_base_reg declaration.
8227 (get_si_mem_base_reg): Add extend parameter. Set it.
8228 (analyze): Pass extend arg to get_si_mem_base_reg.
8229 (transform): Likewise. Use it when rewriting mems.
8230 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
8231 loads and emit sign/zero extending load followed by subreg move.
8233 2021-02-13 Jim Wilson <jimw@sifive.com>
8236 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
8237 exit when !reload_completed. Only perform check for compressed reg
8238 if reload_completed.
8239 (riscv_rtx_costs): In MEM case, when optimizing for size and
8240 shorten memrefs, if not compressible, then increase cost.
8242 2021-02-13 Jakub Jelinek <jakub@redhat.com>
8244 PR rtl-optimization/98439
8245 * recog.c (pass_split_before_regstack::gate): Enable even when
8246 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
8249 2021-02-13 Jakub Jelinek <jakub@redhat.com>
8252 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
8253 swap of V2SImode elements in memory into DImode memory rotate by 32.
8255 2021-02-12 Martin Sebor <msebor@redhat.com>
8257 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
8259 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
8261 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
8262 m_temp_obstack rather than m_obstack to allocate the temporary use.
8264 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
8266 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
8267 as read-modify operations.
8269 2021-02-12 Richard Biener <rguenther@suse.de>
8272 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
8273 fbi->aa_walk_budget is bigger than zero. Update
8274 fbi->aa_walk_budget.
8275 (param_change_prob): Likewise.
8276 * ipa-prop.c (detect_type_change_from_memory_writes):
8277 Properly account walk_aliased_vdefs.
8278 (parm_preserved_before_stmt_p): Canonicalize updates.
8279 (parm_ref_data_preserved_p): Likewise.
8280 (parm_ref_data_pass_through_p): Likewise.
8281 (determine_known_aggregate_parts): Account own alias queries.
8283 2021-02-12 Martin Liska <mliska@suse.cz>
8285 * opts-common.c (decode_cmdline_option): Release werror_arg.
8286 * opts.c (gen_producer_string): Release output of
8287 gen_command_line_string.
8289 2021-02-12 Richard Biener <rguenther@suse.de>
8291 PR tree-optimization/38474
8292 * params.opt (-param=max-store-chains-to-track=): New param.
8293 (-param=max-stores-to-track=): Likewise.
8294 * doc/invoke.texi (max-store-chains-to-track): Document.
8295 (max-stores-to-track): Likewise.
8296 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
8298 (pass_store_merging::m_n_stores): Likewise.
8299 (pass_store_merging::terminate_and_process_chain): Update
8300 m_n_stores and m_n_chains.
8301 (pass_store_merging::process_store): Likewise. Terminate
8302 oldest chains if the number of stores or chains get too large.
8303 (imm_store_chain_info::terminate_and_process_chain): Dump
8306 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
8308 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
8309 the cold section, emit a nop before the directive if the previous
8310 active instruction can throw.
8312 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
8315 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
8316 memory addresses that are legal for quad word accesses.
8318 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
8321 * config/arm/thumb2.md (*doloop_end_internal): Generate
8322 alternative sequence to handle long range branches.
8324 2021-02-11 Joel Hutton <joel.hutton@arm.com>
8326 PR tree-optimization/98772
8327 * optabs-tree.c (supportable_half_widening_operation): New function
8328 to check for supportable V8QI->V8HI widening patterns.
8329 * optabs-tree.h (supportable_half_widening_operation): New function.
8330 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
8331 to create promotion stmts for V8QI->V8HI widening patterns.
8332 (vectorizable_conversion): Add case for V8QI->V8HI.
8334 2021-02-11 Richard Biener <rguenther@suse.de>
8336 * sparseset.h (SPARSESET_ELT_BITS): Remove.
8337 (SPARSESET_ELT_TYPE): Use unsigned int.
8338 * fwprop.c: Do not include sparseset.h.
8340 2021-02-10 Jakub Jelinek <jakub@redhat.com>
8343 * varasm.c (declare_weak): For -fsyntax-only, allow even
8344 TREE_ASM_WRITTEN function decls.
8346 2021-02-10 Jakub Jelinek <jakub@redhat.com>
8349 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
8350 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
8351 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
8352 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
8353 calling simplify_gen_subreg on it.
8355 2021-02-10 Martin Liska <mliska@suse.cz>
8357 * config/nvptx/nvptx.c (nvptx_option_override): Use
8358 flag_patchable_function_entry instead of the removed
8359 function_entry_patch_area_size.
8361 2021-02-10 Martin Liska <mliska@suse.cz>
8363 PR tree-optimization/99002
8364 PR tree-optimization/99026
8365 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
8366 leak when adjacent cases are merged.
8367 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
8369 (make_pass_lower_switch): Remove trailing whitespace.
8370 * tree-switch-conversion.h (release_clusters): New.
8372 2021-02-10 Richard Biener <rguenther@suse.de>
8374 PR rtl-optimization/99054
8375 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
8376 (fixup_partitions): Adjust.
8377 (rtl_verify_edges): Likewise.
8379 2021-02-10 Jakub Jelinek <jakub@redhat.com>
8382 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
8383 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
8386 2021-02-10 Richard Biener <rguenther@suse.de>
8389 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
8392 2021-02-10 Richard Biener <rguenther@suse.de>
8394 PR tree-optimization/99024
8395 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
8396 clear loop->aux if it is associated with the destroyed loop_vinfo.
8398 2021-02-10 Martin Liska <mliska@suse.cz>
8400 PR tree-optimization/99002
8401 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
8404 2021-02-10 Martin Liska <mliska@suse.cz>
8407 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
8410 2021-02-10 Jakub Jelinek <jakub@redhat.com>
8413 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
8414 at class scope for DWARF5+.
8416 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
8418 PR rtl-optimization/96015
8419 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
8420 (relax_delay_slots): When deleting a jump to the next active
8421 instruction over a barrier, first delete the barrier if the
8422 jump is the only way to reach the target label.
8424 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
8426 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
8427 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
8428 vector multiplies and vect.alu for SSRA.
8429 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
8430 vect.mul cost field.
8431 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
8432 * config/arm/arm.c: Likewise.
8434 2021-02-09 Richard Biener <rguenther@suse.de>
8436 PR tree-optimization/98863
8437 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
8438 * tree-ssa-sccvn.c (last_pushed_avail): New global.
8439 (rpo_elim::eliminate_push_avail): Chain pushed avails.
8440 (unwind_state::avail_top): Add.
8441 (do_unwind): Rewrite unwinding of avail entries.
8442 (do_rpo_vn): Initialize last_pushed_avail and
8443 avail_top of the undo state.
8445 2021-02-09 Jakub Jelinek <jakub@redhat.com>
8448 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
8449 const char * to char * and free those pointers after use.
8451 2021-02-09 Richard Biener <rguenther@suse.de>
8453 PR tree-optimization/99017
8454 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
8455 zero vector cost entries.
8457 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
8460 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
8461 parameter in vectorizable_condition.
8463 2021-02-08 Richard Biener <rguenther@suse.de>
8466 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
8468 2021-02-08 Martin Liska <mliska@suse.cz>
8471 * cfgexpand.c (pass_expand::execute): Parse per-function option
8472 flag_patchable_function_entry and use it.
8473 * common.opt: Remove function_entry_patch_area_size and
8474 function_entry_patch_area_start global variables.
8475 * opts.c (parse_and_check_patch_area): New function.
8476 (common_handle_option): Use it.
8477 * opts.h (parse_and_check_patch_area): New function.
8478 * toplev.c (process_options): Parse and use
8479 function_entry_patch_area_size.
8481 2021-02-08 Martin Sebor <msebor@redhat.com>
8483 * doc/extend.texi (attribute malloc): Correct typos.
8485 2021-02-05 Nathan Sidwell <nathan@acm.org>
8488 * gcc.c (driver::maybe_run_linker): Check for input file
8489 accessibility if not linking.
8491 2021-02-05 Richard Biener <rguenther@suse.de>
8493 PR tree-optimization/98855
8494 * tree-vectorizer.h (add_stmt_cost): New overload.
8495 * tree-vect-slp.c (li_cost_vec_cmp): New.
8496 (vect_bb_slp_scalar_cost): Cost individual loop regions
8497 separately. Account for the scalar instance root stmt.
8499 2021-02-05 Tom de Vries <tdevries@suse.de>
8502 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
8504 (bit_test_cluster::emit): Reuse location_t for newly created
8506 (switch_decision_tree::try_switch_expansion): Preserve
8508 * tree-switch-conversion.h: Change function signatures.
8510 2021-02-05 Jakub Jelinek <jakub@redhat.com>
8513 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
8514 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
8515 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
8516 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
8518 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8520 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
8521 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
8522 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
8523 (vget_high_f16): Reimplement using new builtin.
8524 (vget_high_f32): Likewise.
8525 (vget_high_f64): Likewise.
8526 (vget_high_p8): Likewise.
8527 (vget_high_p16): Likewise.
8528 (vget_high_p64): Likewise.
8529 (vget_high_s8): Likewise.
8530 (vget_high_s16): Likewise.
8531 (vget_high_s32): Likewise.
8532 (vget_high_s64): Likewise.
8533 (vget_high_u8): Likewise.
8534 (vget_high_u16): Likewise.
8535 (vget_high_u32): Likewise.
8536 (vget_high_u64): Likewise.
8538 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8540 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
8541 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
8542 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
8543 (vget_low_f16): Reimplement using new builtin.
8544 (vget_low_f32): Likewise.
8545 (vget_low_f64): Likewise.
8546 (vget_low_p8): Likewise.
8547 (vget_low_p16): Likewise.
8548 (vget_low_p64): Likewise.
8549 (vget_low_s8): Likewise.
8550 (vget_low_s16): Likewise.
8551 (vget_low_s32): Likewise.
8552 (vget_low_s64): Likewise.
8553 (vget_low_u8): Likewise.
8554 (vget_low_u16): Likewise.
8555 (vget_low_u32): Likewise.
8556 (vget_low_u64): Likewise.
8558 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
8560 * gcc.c (print_multilib_info): Check all required argument is provided
8563 2021-02-05 liuhongt <hongtao.liu@intel.com>
8566 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
8567 generate integer mask comparison for 128/256-bits vector when
8568 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
8569 delete redundant !maskcmp condition.
8570 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
8572 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
8573 condition directly to if (maskcmp), add extra check for
8574 cmpmode, it should be MODE_INT.
8575 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
8576 parameters op_true/op_false.
8577 (ix86_use_mask_cmp_p): New.
8579 2021-02-05 liuhongt <hongtao.liu@intel.com>
8582 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
8583 Remove m_GENERIC from ~list.
8584 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
8586 2021-02-04 David Malcolm <dmalcolm@redhat.com>
8589 * diagnostic-show-locus.c (compatible_locations_p): Require
8590 locations in the same macro map to be either both from the
8591 macro definition, or both from the macro arguments.
8593 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
8595 * config/aarch64/aarch64-simd-builtins.def: Add
8596 [su]mull_hi_lane[q] builtin generator macros.
8597 * config/aarch64/aarch64-simd.md
8598 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
8599 (aarch64_<su>mull_hi_lane<mode>): Define.
8600 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
8601 (aarch64_<su>mull_hi_laneq<mode>): Define.
8602 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
8603 builtin instead of inline asm.
8604 (vmull_high_lane_s32): Likewise.
8605 (vmull_high_lane_u16): Likewise.
8606 (vmull_high_lane_u32): Likewise.
8607 (vmull_high_laneq_s16): Likewise.
8608 (vmull_high_laneq_s32): Likewise.
8609 (vmull_high_laneq_u16): Likewise.
8610 (vmull_high_laneq_u32): Liekwise.
8612 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
8614 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
8615 builtin generator macros.
8616 * config/aarch64/aarch64-simd.md
8617 (aarch64_<su>mull_hi_n<mode>_insn): Define.
8618 (aarch64_<su>mull_hi_n<mode>): Define.
8619 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
8620 instead of inline asm.
8621 (vmull_high_n_s32): Likewise.
8622 (vmull_high_n_u16): Likewise.
8623 (vmull_high_n_u32): Likewise.
8625 2021-02-04 Richard Biener <rguenther@suse.de>
8627 PR tree-optimization/98855
8628 * tree-vect-loop.c (vectorizable_phi): Do not cost
8629 single-argument PHIs.
8630 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
8631 * tree-vect-stmts.c (vectorizable_bswap): Also perform
8632 costing for SLP operation.
8634 2021-02-04 Martin Liska <mliska@suse.cz>
8636 * doc/extend.texi: Mention -mprefer-vector-width in target
8639 2021-02-03 Martin Sebor <msebor@redhat.com>
8641 PR tree-optimization/98937
8642 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
8643 Flush pointer_query cache.
8645 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8647 * config/rs6000/genfusion.pl (gen_2logical): Add missing
8648 fixes based on patch review.
8649 * config/rs6000/fusion.md: Regenerate file.
8651 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8653 * config/rs6000/t-rs6000: Comment out auto generation of
8656 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
8658 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
8659 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
8660 (output_file_start): Add gfx908.
8661 * config/gcn/gcn.opt (gpu_type): Add gfx908.
8662 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
8663 (MULTILIB_DIRNAMES): Add gfx908.
8664 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
8665 (main): Recognize gfx908.
8666 * config/gcn/t-omp-device: Add gfx908.
8668 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
8670 * config/aarch64/aarch64-simd-builtins.def: Add
8671 [su]mlsl_hi_lane[q] builtin macro generators.
8672 * config/aarch64/aarch64-simd.md
8673 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
8674 (aarch64_<su>mlsl_hi_lane<mode>): Define.
8675 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
8676 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
8677 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
8678 builtin instead of inline asm.
8679 (vmlsl_high_lane_s32): Likewise.
8680 (vmlsl_high_lane_u16): Likewise.
8681 (vmlsl_high_lane_u32): Likewise.
8682 (vmlsl_high_laneq_s16): Likewise.
8683 (vmlsl_high_laneq_s32): Likewise.
8684 (vmlsl_high_laneq_u16): Likewise.
8685 (vmlsl_high_laneq_u32): Likewise.
8686 (vmlal_high_laneq_u32): Likewise.
8688 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
8690 * config/aarch64/aarch64-simd-builtins.def: Add
8691 [su]mlal_hi_lane[q] builtin generator macros.
8692 * config/aarch64/aarch64-simd.md
8693 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
8694 (aarch64_<su>mlal_hi_lane<mode>): Define.
8695 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
8696 (aarch64_<su>mlal_hi_laneq<mode>): Define.
8697 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
8698 builtin instead of inline asm.
8699 (vmlal_high_lane_s32): Likewise.
8700 (vmlal_high_lane_u16): Likewise.
8701 (vmlal_high_lane_u32): Likewise.
8702 (vmlal_high_laneq_s16): Likewise.
8703 (vmlal_high_laneq_s32): Likewise.
8704 (vmlal_high_laneq_u16): Likewise.
8705 (vmlal_high_laneq_u32): Likewise.
8707 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
8709 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
8710 builtin generator macros.
8711 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
8713 (aarch64_<su>mlsl_hi_n<mode>): Define.
8714 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
8715 instead of inline asm.
8716 (vmlsl_high_n_s32): Likewise.
8717 (vmlsl_high_n_u16): Likewise.
8718 (vmlsl_high_n_u32): Likewise.
8720 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
8722 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
8723 builtin generator macros.
8724 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
8726 (aarch64_<su>mlal_hi_n<mode>): Define.
8727 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
8728 instead of inline asm.
8729 (vmlal_high_n_s32): Likewise.
8730 (vmlal_high_n_u16): Likewise.
8731 (vmlal_high_n_u32): Likewise.
8733 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
8735 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
8737 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
8739 (aarch64_<su>mlal_hi<mode>_insn): This.
8740 (aarch64_<su>mlal_hi<mode>): Define.
8741 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
8742 instead of inline asm.
8743 (vmlal_high_s16): Likewise.
8744 (vmlal_high_s32): Likewise.
8745 (vmlal_high_u8): Likewise.
8746 (vmlal_high_u16): Likewise.
8747 (vmlal_high_u32): Likewise.
8749 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
8751 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
8752 after calling alter_subreg() on a (mem).
8754 2021-02-03 Martin Liska <mliska@suse.cz>
8757 * lto-streamer-out.c (produce_lto_section): Fill up missing
8759 * lto-streamer.h (struct lto_section): Add _padding field.
8761 2021-02-03 Richard Biener <rguenther@suse.de>
8763 * lto-streamer.c (lto_get_section_name): Free temporary
8765 * tree-loop-distribution.c
8766 (loop_distribution::merge_dep_scc_partitions): Free edge data.
8768 2021-02-03 Jakub Jelinek <jakub@redhat.com>
8771 * ifcvt.c (noce_can_force_operand): New function.
8772 (noce_emit_move_insn): Use it.
8773 (noce_try_sign_mask): Likewise. Formatting fix.
8775 2021-02-03 Jakub Jelinek <jakub@redhat.com>
8778 * lra-constraints.c (process_alt_operands): For inline asm, don't call
8779 fatal_insn, but instead return false.
8781 2021-02-03 Jakub Jelinek <jakub@redhat.com>
8783 PR tree-optimization/98287
8784 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
8787 2021-02-03 Tamar Christina <tamar.christina@arm.com>
8789 PR tree-optimization/98928
8790 * tree-vect-loop.c (vect_analyze_loop_2): Change
8791 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
8792 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
8793 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
8794 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
8796 2021-02-02 Richard Biener <rguenther@suse.de>
8798 * gimple-loop-interchange.cc (prepare_data_references):
8800 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
8801 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
8802 * tree-vect-stmts.c (vectorizable_condition): Do not
8804 (vectorizable_comparison): Likewise.
8806 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8808 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
8809 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
8810 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
8811 (vrsqrteq_u32): Likewise.
8813 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8815 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
8816 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
8817 (aarch64_sqxtun2<mode>_be): Likewise.
8818 (aarch64_sqxtun2<mode>): Likewise.
8819 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
8820 (vqmovun_high_s32): Likewise.
8821 (vqmovun_high_s64): Likewise.
8822 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
8824 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8826 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
8828 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
8830 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8832 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
8833 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
8834 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
8835 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
8836 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
8837 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
8838 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
8839 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
8841 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8843 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
8844 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
8845 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
8847 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8849 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
8850 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
8852 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8854 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
8855 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
8856 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
8857 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
8858 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
8859 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
8860 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
8861 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
8864 2021-02-02 Jakub Jelinek <jakub@redhat.com>
8866 PR tree-optimization/98848
8867 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
8868 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
8870 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
8873 * expr.c: Check mode before calling store_expr.
8875 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
8877 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
8879 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
8880 instruction using expression ior.
8881 (mve_vornq_u<mode>): New expander.
8882 (mve_vornq_f<mode>): Use ior code instead of unspec.
8883 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
8885 2021-02-02 Alexandre Oliva <oliva@adacore.com>
8887 * tree-nested.c (convert_nonlocal_reference_op): Move
8888 current_function_decl restore after re-gimplification.
8889 (convert_local_reference_op): Likewise.
8891 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8893 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
8895 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
8897 (aarch64_rshrn<mode>_insn_be): Likewise.
8898 (aarch64_rshrn<mode>): Likewise.
8899 (aarch64_rshrn2<mode>_insn_le): Likewise.
8900 (aarch64_rshrn2<mode>_insn_be): Likewise.
8901 (aarch64_rshrn2<mode>): Likewise.
8902 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
8903 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
8905 (vrshrn_high_n_s32): Likewise.
8906 (vrshrn_high_n_s64): Likewise.
8907 (vrshrn_high_n_u16): Likewise.
8908 (vrshrn_high_n_u32): Likewise.
8909 (vrshrn_high_n_u64): Likewise.
8910 (vrshrn_n_s16): Likewise.
8911 (vrshrn_n_s32): Likewise.
8912 (vrshrn_n_s64): Likewise.
8913 (vrshrn_n_u16): Likewise.
8914 (vrshrn_n_u32): Likewise.
8915 (vrshrn_n_u64): Likewise.
8917 2021-02-01 Sergei Trofimovich <siarheit@google.com>
8919 PR tree-optimization/98499
8920 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
8921 conservatively and assume all possible side-effects.
8923 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8925 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
8926 vec_unpacku_hi_): Define builtins.
8927 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
8929 (vmovl_high_s16): Likewise.
8930 (vmovl_high_s32): Likewise.
8931 (vmovl_high_u8): Likewise.
8932 (vmovl_high_u16): Likewise.
8933 (vmovl_high_u32): Likewise.
8935 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8937 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
8939 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
8941 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
8943 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
8945 (vabdl_s16): Likewise.
8946 (vabdl_s32): Likewise.
8947 (vabdl_u8): Likewise.
8948 (vabdl_u16): Likewise.
8949 (vabdl_u32): Likewise.
8950 * config/aarch64/iterators.md (ABDL): New int iterator.
8951 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
8953 2021-02-01 Martin Sebor <msebor@redhat.com>
8955 * tree.h (BLOCK_VARS): Add comment.
8956 (BLOCK_SUBBLOCKS): Same.
8957 (BLOCK_SUPERCONTEXT): Same.
8958 (BLOCK_ABSTRACT_ORIGIN): Same.
8959 (inlined_function_outer_scope_p): Same.
8961 2021-02-01 Martin Sebor <msebor@redhat.com>
8964 * attribs.c (attr_access::free_lang_data): Define new function.
8965 * attribs.h (attr_access::free_lang_data): Declare new function.
8967 2021-02-01 Richard Biener <rguenther@suse.de>
8969 * vec.h (auto_vec::auto_vec): Add memory stat parameters
8971 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
8973 2021-02-01 Tamar Christina <tamar.christina@arm.com>
8975 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
8976 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
8978 2021-02-01 Richard Biener <rguenther@suse.de>
8980 PR rtl-optimization/98863
8981 * config/i386/i386-features.c (convert_scalars_to_vector):
8982 Set DF_RD_PRUNE_DEAD_DEFS.
8984 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
8986 * system.h (SIZE_MAX): Define if not already defined.
8988 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
8990 * config/rs6000/genfusion.pl (gen_2logical): New function to
8991 generate patterns for logical-logical fusion.
8992 * config/rs6000/fusion.md: Regenerated patterns.
8993 * config/rs6000/rs6000-cpus.def: Add
8994 OPTION_MASK_P10_FUSION_2LOGICAL.
8995 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8996 Enable logical-logical fusion for p10.
8997 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
8999 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
9001 * config/rs6000/rs6000.opt: Add periods to new AIX options.
9003 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
9005 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
9006 (mabi=vec-default): New.
9007 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9008 __EXTABI__ for AIX Vector extended ABI.
9009 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
9011 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
9013 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
9015 2021-01-30 Jakub Jelinek <jakub@redhat.com>
9017 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
9018 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
9020 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
9023 * lra-constraints.c (in_class_p): Don't narrow class only for REG
9026 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
9028 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
9029 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
9030 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
9032 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
9034 PR tree-optimization/98866
9035 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
9036 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
9037 (gori_map::m_maybe_invariant): Rename from all_outgoing.
9038 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
9039 (gori_map::is_export_p): Ditto.
9040 (gori_map::calculate_gori): Ditto.
9041 (gori_compute::set_range_invariant): New.
9042 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
9043 invariant for pointers evaluating to [1, +INF].
9045 2021-01-29 Richard Biener <rguenther@suse.de>
9047 PR rtl-optimization/98863
9048 * config/i386/i386-features.c (remove_partial_avx_dependency):
9049 Do not perform DF analysis.
9050 (pass_data_remove_partial_avx_dependency): Remove
9053 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
9055 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
9056 builtin generator macros.
9057 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
9059 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
9060 instead of inline asm.
9061 (vmull_n_s32): Likewise.
9062 (vmull_n_u16): Likewise.
9063 (vmull_n_u32): Likewise.
9065 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9067 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
9069 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
9071 (aarch64_<sur>abdl2<mode>): ... This.
9072 (<sur>sadv16qi): Adjust use of above.
9073 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
9075 (vabdl_high_s16): Likewise.
9076 (vabdl_high_s32): Likewise.
9077 (vabdl_high_u8): Likewise.
9078 (vabdl_high_u16): Likewise.
9079 (vabdl_high_u32): Likewise.
9081 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9083 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
9086 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
9088 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
9090 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
9092 (vabal_high_s16): Likewise.
9093 (vabal_high_s32): Likewise.
9094 (vabal_high_u8): Likewise.
9095 (vabal_high_u16): Likewise.
9096 (vabal_high_u32): Likewise.
9097 * config/aarch64/iterators.md (ABAL2): New mode iterator.
9098 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
9100 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9102 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
9105 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
9107 (aarch64_<sur>abal<mode>): ... This
9108 (<sur>sadv16qi): Adust use of the above.
9109 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
9111 (vabal_s16): Likewise.
9112 (vabal_s32): Likewise.
9113 (vabal_u8): Likewise.
9114 (vabal_u16): Likewise.
9115 (vabal_u32): Likewise.
9117 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9119 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
9121 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
9123 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
9125 (vaddlv_s16): Likewise.
9126 (vaddlv_u8): Likewise.
9127 (vaddlv_u16): Likewise.
9128 (vaddlvq_s8): Likewise.
9129 (vaddlvq_s16): Likewise.
9130 (vaddlvq_s32): Likewise.
9131 (vaddlvq_u8): Likewise.
9132 (vaddlvq_u16): Likewise.
9133 (vaddlvq_u32): Likewise.
9134 (vaddlv_s32): Likewise.
9135 (vaddlv_u32): Likewise.
9136 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
9137 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
9138 (Vwstype): New mode attribute.
9140 (VWIDE_S): Likewise.
9141 (USADDLV): New int iterator.
9142 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
9144 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
9146 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
9147 builtin generator macros.
9148 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
9150 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
9151 instead of inline asm.
9152 (vmlsl_lane_s32): Likewise.
9153 (vmlsl_lane_u16): Likewise.
9154 (vmlsl_lane_u32): Likewise.
9155 (vmlsl_laneq_s16): Likewise.
9156 (vmlsl_laneq_s32): Likewise.
9157 (vmlsl_laneq_u16): Likewise.
9158 (vmlsl_laneq_u32): Likewise.
9160 2021-01-29 Richard Biener <rguenther@suse.de>
9162 * doc/invoke.texi (--param max-gcse-memory): Document unit
9164 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
9165 * params.opt (--param max-gcse-memory): Adjust default and
9166 document unit of size.
9168 2021-01-29 Richard Biener <rguenther@suse.de>
9170 PR rtl-optimization/98863
9171 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
9172 HOST_WIDE_INT for the memory estimate.
9174 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
9175 Richard Biener <rguenther@suse.de>
9177 PR tree-optimization/97627
9178 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
9179 Do not analyze fake edges.
9181 2021-01-29 Richard Biener <rguenther@suse.de>
9183 PR rtl-optimization/98144
9184 * df.h (df_mir_bb_info): Add con_visited member.
9185 * df-problems.c (df_mir_alloc): Initialize con_visited,
9186 do not fully populate IN and OUT.
9187 (df_mir_reset): Likewise.
9188 (df_mir_confluence_0): Set con_visited.
9189 (df_mir_confluence_n): Properly handle implicitely
9190 fully populated IN and OUT as designated by con_visited
9191 and update con_visited accordingly.
9193 2021-01-29 Jakub Jelinek <jakub@redhat.com>
9196 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
9197 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
9198 && !TARGET_REALLY_IWMMXT to conditions.
9200 2021-01-29 Jakub Jelinek <jakub@redhat.com>
9203 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
9206 2021-01-28 Marek Polacek <polacek@redhat.com>
9209 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
9210 the main variant, maybe reset it in its variants too.
9211 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
9212 (check_aligned_type): Check if TYPE_USER_ALIGN match.
9214 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
9217 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
9218 of constant zero for comparisons.
9220 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
9222 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
9223 support for mapping built-in function names for long double
9224 built-in functions if long double is IEEE 128-bit.
9226 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
9228 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
9229 builtin generator macros.
9230 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
9232 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
9233 instead of inline asm.
9234 (vmlsl_n_s32): Likewise.
9235 (vmlsl_n_u16): Likewise.
9236 (vmlsl_n_u32): Likewise.
9238 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
9240 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
9241 builtin generator macros.
9242 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
9244 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
9245 instead of inline asm.
9246 (vmlal_n_s32): Likewise.
9247 (vmlal_n_u16): Likewise.
9248 (vmlal_n_u32): Likewise.
9250 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9252 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
9254 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
9256 (aarch64_shrn2<mode>_insn_be): Likewise.
9257 (aarch64_shrn2<mode>): Likewise.
9258 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
9260 (vshrn_high_n_s32): Likewise.
9261 (vshrn_high_n_s64): Likewise.
9262 (vshrn_high_n_u16): Likewise.
9263 (vshrn_high_n_u32): Likewise.
9264 (vshrn_high_n_u64): Likewise.
9266 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9268 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
9270 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
9272 (aarch64_shrn<mode>_insn_be): Likewise.
9273 (aarch64_shrn<mode>): Likewise.
9274 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
9276 (vshrn_n_s32): Likewise.
9277 (vshrn_n_s64): Likewise.
9278 (vshrn_n_u16): Likewise.
9279 (vshrn_n_u32): Likewise.
9280 (vshrn_n_u64): Likewise.
9281 * config/aarch64/iterators.md (vn_mode): New mode attribute.
9283 2021-01-28 Richard Biener <rguenther@suse.de>
9285 PR rtl-optimization/80960
9286 * dse.c (check_mem_read_rtx): Call get_addr on the
9289 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
9290 David Edelsohn <dje.gcc@gmail.com>
9293 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9294 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
9296 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
9298 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
9299 wrapper call rs6000_expand_vector_set_var for cleanup. Call
9300 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
9302 (rs6000_expand_vector_set_var): Delete.
9303 (rs6000_expand_vector_set_var_p9): Make static.
9304 (rs6000_expand_vector_set_var_p8): Make static.
9306 2021-01-28 Xing GUO <higuoxing@gmail.com>
9308 * common/config/riscv/riscv-common.c
9309 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
9310 when `p` extension exists.
9312 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
9314 PR rtl-optimization/97684
9315 * ira.c (ira): Call ira_set_pseudo_classes before
9316 update_equiv_regs when it is necessary.
9318 2021-01-27 Jakub Jelinek <jakub@redhat.com>
9321 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
9322 %w0, %w1 and %2 instead of %0, %1 and %2.
9324 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
9326 * config/rs6000/genfusion.pl: New script to generate
9327 define_insn_and_split patterns so combine can arrange fused
9328 instructions next to each other.
9329 * config/rs6000/fusion.md: New file, generated fused instruction
9330 patterns for combine.
9331 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
9332 (non_update_memory_operand): New predicate.
9333 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
9334 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
9336 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
9338 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9339 Automatically set OPTION_MASK_P10_FUSION and
9340 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
9341 (rs600_opt_masks): Allow -mpower10-fusion
9342 in function attributes.
9343 (address_is_non_pfx_d_or_x): New function.
9344 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
9345 * config/rs6000/rs6000.md: Include fusion.md.
9346 * config/rs6000/rs6000.opt: Add -mpower10-fusion
9347 and -mpower10-fusion-ld-cmpi.
9348 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
9350 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
9352 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
9353 builtin generator macros.
9354 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
9356 (aarch64_<su>mlal<mode>): This.
9357 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
9358 instead of inline asm.
9359 (vmlal_s16): Likewise.
9360 (vmlal_s32): Likewise.
9361 (vmlal_u8): Likewise.
9362 (vmlal_u16): Likewise.
9363 (vmlal_u32): Likewise.
9365 2021-01-27 Richard Biener <rguenther@suse.de>
9367 PR tree-optimization/98854
9368 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
9369 PHIs from scalars when the number of CTORs matches the
9372 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
9374 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
9376 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
9378 (aarch64_mls_n<mode>): This.
9379 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
9381 (vmls_n_s32): Likewise.
9382 (vmls_n_u16): Likewise.
9383 (vmls_n_u32): Likewise.
9384 (vmlsq_n_s16): Likewise.
9385 (vmlsq_n_s32): Likewise.
9386 (vmlsq_n_u16): Likewise.
9387 (vmlsq_n_u32): Likewise.
9389 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
9391 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
9393 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
9395 (vmls_s16): Likewise.
9396 (vmls_s32): Likewise.
9397 (vmls_u8): Likewise.
9398 (vmls_u16): Likewise.
9399 (vmls_u32): Likewise.
9400 (vmlsq_s8): Likewise.
9401 (vmlsq_s16): Likewise.
9402 (vmlsq_s32): Likewise.
9403 (vmlsq_u8): Likewise.
9404 (vmlsq_u16): Likewise.
9405 (vmlsq_u32): Likewise.
9407 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
9409 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
9411 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
9413 (aarch64_mla_n<mode>): This.
9414 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
9416 (vmla_n_s32): Likewise.
9417 (vmla_n_u16): Likewise.
9418 (vmla_n_u32): Likewise.
9419 (vmlaq_n_s16): Likewise.
9420 (vmlaq_n_s32): Likewise.
9421 (vmlaq_n_u16): Likewise.
9422 (vmlaq_n_u32): Likewise.
9424 2021-01-27 liuhongt <hongtao.liu@intel.com>
9427 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
9428 (*sse2_eq<mode>3): Ditto.
9430 2021-01-27 Jakub Jelinek <jakub@redhat.com>
9432 * tree-pass.h (PROP_trees): Rename to ...
9433 (PROP_gimple): ... this.
9434 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
9435 * passes.c (execute_function_dump, execute_function_todo,
9436 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
9437 * varpool.c (ctor_for_folding): Likewise.
9439 2021-01-27 Jakub Jelinek <jakub@redhat.com>
9441 PR tree-optimization/97260
9442 * varpool.c: Include tree-pass.h.
9443 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
9444 non-TREE_SIDE_EFFECTS automatic variables.
9446 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
9448 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
9450 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
9451 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
9452 (gen_compile_unit_die): Recognise C++23.
9454 2021-01-26 Jakub Jelinek <jakub@redhat.com>
9457 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
9460 2021-01-26 Jakub Jelinek <jakub@redhat.com>
9463 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
9464 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
9465 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
9467 2021-01-26 Richard Biener <rguenther@suse.de>
9469 * gimple-pretty-print.c (dump_binary_rhs): Handle
9470 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
9472 2021-01-26 Richard Biener <rguenther@suse.de>
9475 * tree.h (vector_cst_int_elt): Remove.
9476 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
9479 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
9481 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
9482 for V64DFmode min/max reductions.
9484 2021-01-26 Jakub Jelinek <jakub@redhat.com>
9486 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
9487 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
9488 two halves, one with x and the other with const0_rtx, ordered
9489 depending on endianity.
9491 2021-01-26 Alexandre Oliva <oliva@adacore.com>
9493 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
9494 temporaries not seen in binding block, and not about to be
9495 added as gimple variables.
9497 2021-01-25 Martin Sebor <msebor@redhat.com>
9500 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
9502 2021-01-25 Martin Liska <mliska@suse.cz>
9504 * value-prof.c (get_nth_most_common_value): Use %s instead
9507 2021-01-25 Jakub Jelinek <jakub@redhat.com>
9510 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
9511 readelf -wi is able to read the emitted .debug_info back.
9512 * configure: Regenerated.
9514 2021-01-25 Martin Liska <mliska@suse.cz>
9516 PR gcov-profile/98739
9517 * common.opt: Add missing sign symbol.
9518 * value-prof.c (get_nth_most_common_value): Restore handling
9519 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
9520 PROFILE_REPRODUCIBILITY_MULTITHREADED.
9522 2021-01-25 Richard Biener <rguenther@suse.de>
9525 * tree.c (vector_element_bits): Always use precision of
9526 the element type for boolean vectors.
9528 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
9530 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
9531 (ENDFILE_SPEC): Evaluate qnolinkcmds.
9533 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
9535 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
9536 nostartfiles handling since this is already done by
9537 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
9538 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
9539 is already done by LINK_COMMAND_SPEC.
9540 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
9541 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
9544 2021-01-25 Jakub Jelinek <jakub@redhat.com>
9547 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
9548 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
9549 value rather than host size_t.
9550 (fold_const_call): Change type of s2 from size_t to
9551 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
9552 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
9553 instead of s2 as last argument.
9555 2021-01-25 Tamar Christina <tamar.christina@arm.com>
9557 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
9558 VCMLA_OP, VCMUL_OP): New.
9559 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
9560 * config/arm/neon.md (cmul<conj_op><mode>3): New.
9561 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
9562 UNSPEC_VCMUL_CONJ): New.
9563 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
9564 cml<fcmac1><conj_op><mode>4): New.
9566 2021-01-23 Jakub Jelinek <jakub@redhat.com>
9569 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
9571 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
9573 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
9575 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
9577 (vmla_s16): Likewise.
9578 (vmla_s32): Likewise.
9579 (vmla_u8): Likewise.
9580 (vmla_u16): Likewise.
9581 (vmla_u32): Likewise.
9582 (vmlaq_s8): Likewise.
9583 (vmlaq_s16): Likewise.
9584 (vmlaq_s32): Likewise.
9585 (vmlaq_u8): Likewise.
9586 (vmlaq_u16): Likewise.
9587 (vmlaq_u32): Likewise.
9589 2021-01-22 David Malcolm <dmalcolm@redhat.com>
9591 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
9594 2021-01-22 Jakub Jelinek <jakub@redhat.com>
9597 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
9598 filenames to emit, still emit the required 0 index directory and
9599 filename entries that match DW_AT_comp_dir and DW_AT_name of the
9602 2021-01-22 Marek Polacek <polacek@redhat.com>
9605 * doc/invoke.texi: Update C++ ABI Version 15 description.
9607 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9609 PR tree-optimization/98766
9610 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
9611 comparing against type size with param_avoid_fma_max_bits.
9613 2021-01-22 Richard Biener <rguenther@suse.de>
9616 * tree.c (vector_element_bits): Key single-bit bool vector on
9617 integer mode rather than not vector mode.
9619 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
9622 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9623 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
9625 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
9626 to call different path for P8 and P9.
9627 (rs6000_expand_vector_set_var_p9): New function.
9628 (rs6000_expand_vector_set_var_p8): New function.
9630 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
9634 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9635 Ajdust variable index vec_insert from address dereference to
9636 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
9637 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
9639 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
9641 2021-01-22 Martin Liska <mliska@suse.cz>
9643 PR gcov-profile/98739
9644 * profile.c (compute_value_histograms): Drop time profile for
9645 -fprofile-reproducible=multithreaded.
9647 2021-01-22 Nathan Sidwell <nathan@acm.org>
9649 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
9652 2021-01-22 Richard Biener <rguenther@suse.de>
9655 * tree-data-ref.c (initalize_matrix_A): Revert previous
9656 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
9658 2021-01-22 Jakub Jelinek <jakub@redhat.com>
9660 PR tree-optimization/90248
9661 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
9662 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
9664 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
9665 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
9667 2021-01-22 Jakub Jelinek <jakub@redhat.com>
9669 PR tree-optimization/98255
9670 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
9671 extend index - low_bound from sizetype's precision rather than index
9673 (get_addr_base_and_unit_offset_1): Likewise.
9674 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
9675 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
9677 2021-01-22 Richard Biener <rguenther@suse.de>
9679 PR tree-optimization/98786
9680 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
9681 adding new uses of abnormals. Verify we deal with a conditional
9684 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9687 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
9689 2021-01-22 liuhongt <hongtao.liu@intel.com>
9693 * config/i386/sse.md (VI_128_256): New mode iterator.
9694 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
9695 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
9696 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
9697 define_insn_and_split to lower avx512 vector comparison to avx
9698 version when dest is vector.
9699 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
9700 define_insn_and_split for negating the comparison result.
9701 * config/i386/predicates.md (float_vector_all_ones_operand):
9703 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
9704 general NOT operator without UNSPEC_MASKOP.
9706 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
9708 PR rtl-optimization/98777
9709 * lra-int.h (lra_pmode_pseudo): New extern.
9710 * lra.c (lra_pmode_pseudo): New global.
9712 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
9714 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
9716 * fwprop.c (fwprop_propagation::classify_result): Allow
9717 (subreg (mem)) simplifications.
9719 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9721 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
9723 (aarch64_sqdmlal<mode>): ... This...
9724 (aarch64_sqdmlsl<mode>): ... And this.
9725 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
9726 (aarch64_sqdmlal_lane<mode>): ... This...
9727 (aarch64_sqdmlsl_lane<mode>): ... And this.
9728 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
9729 (aarch64_sqdmlsl_laneq<mode>): ... This...
9730 (aarch64_sqdmlal_laneq<mode>): ... And this.
9731 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
9732 (aarch64_sqdmlsl_n<mode>): ... This...
9733 (aarch64_sqdmlal_n<mode>): ... And this.
9734 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
9735 (aarch64_sqdmlal2<mode>_internal): ... This...
9736 (aarch64_sqdmlsl2<mode>_internal): ... And this.
9738 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
9740 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
9742 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
9745 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
9747 2021-01-21 liuhongt <hongtao.liu@intel.com>
9749 PR rtl-optimization/98694
9750 * regcprop.c (copy_value): If SRC had been assigned a mode
9751 narrower than the copy, we can't link DEST into the chain even
9752 they have same hard_regno_nregs(i.e. HImode/SImode in i386
9755 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9757 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
9758 Convert to define_insn_and_split. Split into simple move when moving
9761 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
9763 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
9764 Adjust comment. Simplify code.
9766 2021-01-20 Jakub Jelinek <jakub@redhat.com>
9769 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
9770 with DW_FORM_line_strp form.
9771 (prune_unused_types_update_strings): Don't add into debug_str_hash
9772 indirect strings with DW_FORM_line_strp form.
9773 (adjust_name_comp_dir): New function.
9774 (dwarf2out_finish): Call it on CU DIEs after resetting
9775 debug_line_str_hash.
9777 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
9779 PR rtl-optimization/98722
9780 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
9781 has no 3-op add insn to transform insns containing two pluses.
9783 2021-01-20 Richard Biener <rguenther@suse.de>
9785 * hwint.h (add_hwi): New function.
9786 (mul_hwi): Likewise.
9787 * tree-data-ref.c (initialize_matrix_A): Properly translate
9788 tree constants and avoid HOST_WIDE_INT_MIN.
9789 (lambda_matrix_row_add): Avoid undefined integer overflow
9790 and return true on such overflow.
9791 (lambda_matrix_right_hermite): Handle overflow from
9792 lambda_matrix_row_add gracefully. Simplify previous fix.
9793 (analyze_subscript_affine_affine): Likewise.
9795 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
9797 PR tree-optimization/96674
9798 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
9799 x >= y && y != XXX_MIN --> x > y - 1
9801 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
9803 PR tree-optimization/98535
9804 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
9805 If the high and low permutes are the same, remove the high permutes
9806 from the working set and only continue with the low ones.
9808 2021-01-20 Jakub Jelinek <jakub@redhat.com>
9810 PR tree-optimization/98721
9811 * builtins.c (access_ref::inform_access): Don't assume
9812 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
9813 object whenever allocfn is NULL, rather than only when DECL_P
9814 is true. Use %qE instead of %qD for that. Formatting fixes.
9816 2021-01-20 Richard Biener <rguenther@suse.de>
9818 PR tree-optimization/98758
9819 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
9820 (lambda_matrix_right_hermite): Avoid undefinedness with
9821 signed integer abs and multiplication.
9822 (analyze_subscript_affine_affine): Use lambda_int.
9824 2021-01-20 David Malcolm <dmalcolm@redhat.com>
9827 * dwarf2out.c (output_line_info): Rename static variable
9828 "generation", moving it out of the function to...
9829 (output_line_info_generation): New.
9830 (init_sections_and_labels): Likewise, renaming the variable to...
9831 (init_sections_and_labels_generation): New.
9832 (dwarf2out_c_finalize): Reset the new variables.
9834 2021-01-19 Martin Sebor <msebor@redhat.com>
9837 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
9838 all functions, even if they're not declared artificial or inline.
9839 * tree.c (tree_inlined_location): Use macro expansion location
9840 only if scope traversal fails to expose one.
9842 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
9844 PR rtl-optimization/92294
9845 * alias.c (compare_base_symbol_refs): Take an extra parameter
9846 and add the distance between two symbols to it. Enshrine in
9847 comments that -1 means "either 0 or 1, but we can't tell
9848 which at compile time".
9849 (memrefs_conflict_p): Update call accordingly.
9850 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
9853 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9855 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
9856 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
9857 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
9858 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
9859 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
9860 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
9861 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
9862 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
9863 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
9864 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
9865 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
9866 sqmovun): Use NONE flags.
9868 2021-01-19 Richard Biener <rguenther@suse.de>
9871 * ipa-modref.c (analyze_stmt): Only record a summary for a
9874 2021-01-19 Richard Biener <rguenther@suse.de>
9877 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
9879 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
9881 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
9882 built-in define __FIX_LEON3FT_TN0018.
9884 2021-01-19 Richard Biener <rguenther@suse.de>
9887 * tree-inline.c (tree_function_versioning): Set input_location
9888 to UNKNOWN_LOCATION throughout the function.
9890 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
9893 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
9895 2021-01-19 Martin Jambor <mjambor@suse.cz>
9898 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
9899 whether non-call exceptions allow removal of a statement.
9900 (isra_analyze_call): Pass the appropriate function to
9901 ssa_name_only_returned_p.
9903 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
9905 * config/riscv/arch-canonicalize (longext_sort): New function for
9906 sorting 'multi-letter'.
9907 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
9908 'alts'. The 'arch' may not be the first of 'alts'.
9909 (_expand_combination): Add underline for the 'ext' without '*'.
9910 This is because, a single-letter extension can always be treated well
9911 with a '_' prefix, but it cannot be separated out if it is appended
9914 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
9917 * ira.c (ira): Skip abnormal critical edge splitting.
9919 2021-01-18 Jakub Jelinek <jakub@redhat.com>
9921 PR tree-optimization/98727
9922 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
9923 second .MUL_OVERFLOW operand for signed multiplication with overflow
9924 checking if the second operand of multiplication is not constant.
9926 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
9928 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
9929 defaults to version 4.
9931 2021-01-18 David Malcolm <dmalcolm@redhat.com>
9933 * attribs.h (fndecl_dealloc_argno): New decl.
9934 * builtins.c (call_dealloc_argno): Split out second half of
9936 (fndecl_dealloc_argno): New.
9937 * doc/extend.texi (Common Function Attributes): Document the
9938 interaction between the analyzer and the malloc attribute.
9939 * doc/invoke.texi (Static Analyzer Options): Likewise.
9941 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
9943 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
9945 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
9947 2021-01-17 Martin Jambor <mjambor@suse.cz>
9950 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
9953 2021-01-17 Mark Wielaard <mark@klomp.org>
9955 * common.opt (gdwarf-): Init(5).
9956 * doc/invoke.texi (-gdwarf): Document default to 5.
9958 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
9961 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
9963 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
9964 ...this. Add extra argument.
9965 * gimplify.c (omp_default_clause): Ensure that event handle is
9966 firstprivate in a task region.
9967 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
9968 (gimplify_adjust_omp_clauses): Likewise.
9969 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
9970 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
9971 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
9972 if detach clause specified. Add detach argument when generating
9974 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
9976 (finish_taskreg_scan): Move field for variable containing the event
9977 handle to the front of the struct.
9978 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
9980 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
9981 OMP_CLAUSE_DETACH clause.
9982 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
9983 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
9984 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
9986 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
9988 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
9990 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
9992 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
9993 multilib directory names. Use MULTILIB_REQUIRED instead of
9994 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
9995 -mcustom-fpu-cfg=fph2 multilib.
9997 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
9999 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
10000 (nios2_init_fpu_configs): Provide register values for new
10001 -mcustom-fpu-cfg=fph2 option variant.
10002 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
10005 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
10007 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
10008 custom instruction warnings.
10010 2021-01-16 Jakub Jelinek <jakub@redhat.com>
10012 PR tree-optimization/96669
10013 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
10015 2021-01-16 Jakub Jelinek <jakub@redhat.com>
10017 PR tree-optimization/96271
10018 * passes.def: Pass false argument to first two pass_cd_dce
10019 instances and true to last instance. Add comment that
10020 last instance rewrites no longer addressed locals.
10021 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
10023 (pass_cd_dce::set_pass_param): New method.
10024 (pass_cd_dce::execute): Return TODO_update_address_taken from
10025 last cd_dce instance.
10027 2021-01-15 Carl Love <cel@us.ibm.com>
10029 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
10031 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
10032 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
10033 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
10034 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
10035 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
10036 Add builtin define.
10037 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
10038 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
10039 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
10040 New overloaded definitions.
10041 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
10042 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
10043 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
10044 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
10045 P10V_BUILTIN_MULHU_V4SI]: Add case
10046 statement for builtins.
10047 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
10048 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
10049 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
10050 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
10051 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
10052 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
10053 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
10054 Add define_insn, mode is VIlong.
10055 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
10056 Add builtin descriptions.
10058 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
10060 * final.c (final_start_function_1): Reset force_source_line.
10062 2021-01-15 Jakub Jelinek <jakub@redhat.com>
10064 PR tree-optimization/96669
10065 * match.pd (((1 << A) & 1) != 0 -> A == 0,
10066 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
10067 possibly different power of two constants and to right shift too.
10069 2021-01-15 Jakub Jelinek <jakub@redhat.com>
10071 PR tree-optimization/96681
10072 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
10073 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
10074 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
10075 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
10077 2021-01-15 Alexandre Oliva <oliva@adacore.com>
10079 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
10081 2021-01-15 Tamar Christina <tamar.christina@arm.com>
10083 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
10084 cmul<conj_op><mode>3): New.
10085 * config/aarch64/iterators.md (UNSPEC_FCMUL,
10086 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
10087 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
10088 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
10089 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
10090 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
10091 (rot_op): Renamed to conj_op.
10092 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
10093 cmul<conj_op><mode>3): New.
10094 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
10095 cmul<conj_op><mode>3): New.
10097 2021-01-15 David Malcolm <dmalcolm@redhat.com>
10101 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
10102 Escape the tempfile name when constructing the expected output.
10104 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10106 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
10108 (aarch64_<su>mlsl_hi<mode>): ... This.
10109 (aarch64_<su>mlsl_hi<mode>): Define.
10110 (*aarch64_<su>mlsl<mode): Rename to...
10111 (aarch64_<su>mlsl<mode): ... This.
10112 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
10113 smlsl_hi, umlsl_hi): Define builtins.
10114 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
10115 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
10116 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
10117 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
10119 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
10121 * config/i386/i386-c.c (ix86_target_macros):
10122 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
10124 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
10127 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
10128 * Makefile.in (RTL_SSA_H): New variable.
10129 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
10130 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
10131 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
10133 * config/aarch64/aarch64-cc-fusion.cc: New file.
10135 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
10137 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
10138 calling cancel_changes for changes that no longer exist.
10140 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
10142 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
10143 (function_info::reg_defs): ...this.
10144 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
10145 (function_info::reg_defs): ...this.
10147 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
10150 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
10152 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
10155 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
10158 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
10160 2021-01-15 Richard Biener <rguenther@suse.de>
10162 PR tree-optimization/96376
10163 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
10164 for VMAT_INVARIANT.
10166 2021-01-15 Martin Liska <mliska@suse.cz>
10168 * doc/install.texi: Document that some tests need pytest module.
10169 * doc/sourcebuild.texi: Likewise.
10171 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
10174 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
10176 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
10178 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
10179 (mve_vshrq_n_u<mode>_imm): Likewise.
10180 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
10181 * config/arm/vec-common.md: ... here.
10183 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
10185 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
10187 * config/arm/neon.md (vashl<mode>3): Delete.
10188 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
10189 (vasl<mode>3): New expander.
10191 2021-01-15 Richard Biener <rguenther@suse.de>
10193 PR tree-optimization/98685
10194 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
10195 of vector extern defs.
10197 2021-01-14 David Malcolm <dmalcolm@redhat.com>
10200 * diagnostic.c (diagnostic_kind_text): Break out this array
10202 (diagnostic_build_prefix): ...here.
10203 (fancy_abort): Detect when diagnostic_initialize has not yet been
10204 called and fall back to a minimal implementation of printing the
10205 ICE, rather than segfaulting in internal_error.
10207 2021-01-14 David Malcolm <dmalcolm@redhat.com>
10209 * diagnostic.c (diagnostic_initialize): Eliminate
10210 parseable_fixits_p in favor of initializing extra_output_kind from
10211 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
10212 (convert_column_unit): New function, split out from...
10213 (diagnostic_converted_column): ...this.
10214 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
10215 Use them to call convert_column_unit on the column values.
10216 (diagnostic_report_diagnostic): Eliminate conditional on
10217 parseable_fixits_p in favor of a switch statement on
10218 extra_output_kind, passing the appropriate values to the new
10219 params of print_parseable_fixits.
10220 (selftest::test_print_parseable_fixits_none): Update for new
10221 params of print_parseable_fixits.
10222 (selftest::test_print_parseable_fixits_insert): Likewise.
10223 (selftest::test_print_parseable_fixits_remove): Likewise.
10224 (selftest::test_print_parseable_fixits_replace): Likewise.
10225 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
10227 (selftest::diagnostic_c_tests): Call it.
10228 * diagnostic.h (enum diagnostics_extra_output_kind): New.
10229 (diagnostic_context::parseable_fixits_p): Delete field in favor
10231 (diagnostic_context::extra_output_kind): ...this new field.
10232 * doc/invoke.texi (Environment Variables): Add
10233 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
10234 * opts.c (common_handle_option): Update handling of
10235 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
10238 2021-01-14 Tamar Christina <tamar.christina@arm.com>
10240 * tree-vect-slp-patterns.c (class complex_operations_pattern,
10241 complex_operations_pattern::matches,
10242 complex_operations_pattern::recognize,
10243 complex_operations_pattern::build): New.
10244 (slp_patterns): Use it.
10246 2021-01-14 Tamar Christina <tamar.christina@arm.com>
10248 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
10249 * optabs.def (cmls_optab, cmls_conj_optab): New.
10250 * doc/md.texi: Document them.
10251 * tree-vect-slp-patterns.c (class complex_fms_pattern,
10252 complex_fms_pattern::matches, complex_fms_pattern::recognize,
10253 complex_fms_pattern::build): New.
10255 2021-01-14 Tamar Christina <tamar.christina@arm.com>
10257 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
10258 * optabs.def (cmla_optab, cmla_conj_optab): New.
10259 * doc/md.texi: Document them.
10260 * tree-vect-slp-patterns.c (vect_match_call_p,
10261 class complex_fma_pattern, vect_slp_reset_pattern,
10262 complex_fma_pattern::matches, complex_fma_pattern::recognize,
10263 complex_fma_pattern::build): New.
10265 2021-01-14 Tamar Christina <tamar.christina@arm.com>
10267 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
10268 * optabs.def (cmul_optab, cmul_conj_optab): New.
10269 * doc/md.texi: Document them.
10270 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
10271 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
10272 vect_build_combine_node, class complex_mul_pattern,
10273 complex_mul_pattern::matches, complex_mul_pattern::recognize,
10274 complex_mul_pattern::build): New.
10276 2021-01-14 Tamar Christina <tamar.christina@arm.com>
10278 * tree-vect-slp.c (optimize_load_redistribution_1): New.
10279 (optimize_load_redistribution, vect_is_slp_load_node): New.
10280 (vect_match_slp_patterns): Use it.
10282 2021-01-14 Tamar Christina <tamar.christina@arm.com>
10284 * tree-vect-slp-patterns.c (complex_add_pattern::build):
10287 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
10289 * config/gcn/mkoffload.c (main): Create an offload image only in
10290 64-bit configurations.
10292 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
10295 * config/i386/i386-options.c (ix86_option_override_internal):
10296 Issue an error for -fcf-protection with CF_BRANCH when compiling
10297 for 32-bit non-TARGET_CMOV targets.
10299 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
10302 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
10303 Remove declaration and initialization of shadow variable "ret".
10304 (ix86_option_override_internal): Remove delcaration of
10305 shadow variable "i". Redeclare shadowed variable to unsigned.
10306 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
10307 * config/i386/i386-builtins.c (get_builtin_code_for_version):
10308 Update for redeclaration.
10309 * config/i386/i386.h (pta_size): Ditto.
10311 2021-01-14 Richard Biener <rguenther@suse.de>
10313 PR tree-optimization/98674
10314 * tree-data-ref.c (base_supports_access_fn_components_p): New.
10315 (initialize_data_dependence_relation): For two bases without
10316 possible access fns resort to type size equality when determining
10317 shape compatibility.
10319 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10322 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
10323 <=, >= operators in vcle and vcge intrinsics respectively.
10324 * config/arm/arm_neon_builtins.def: Remove entry for
10327 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
10330 * config/i386/i386-options.c (ix86_function_specific_save):
10331 Remove redundant assignment to opts->x_ix86_branch_cost.
10332 * config/i386/i386.c (ix86_prefetch_sse):
10333 Rename from x86_prefetch_sse. Update all uses.
10334 * config/i386/i386.h: Update for rename.
10335 * config/i386/i386-options.h: Ditto.
10337 2021-01-14 Jakub Jelinek <jakub@redhat.com>
10340 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
10341 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
10342 Use Bm instead of m for non-avx. Add isa attribute.
10344 2021-01-14 Jakub Jelinek <jakub@redhat.com>
10346 PR tree-optimization/96688
10347 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
10348 ~X can be simplified.
10350 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
10352 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
10353 IFN_LOAD_LANES results.
10355 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10357 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
10359 (aarch64_xtn<mode>): Likewise.
10360 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
10363 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
10365 (vmovl_s16): Likewise.
10366 (vmovl_s32): Likewise.
10367 (vmovl_u8): Likewise.
10368 (vmovl_u16): Likewise.
10369 (vmovl_u32): Likewise.
10370 (vmovn_s16): Likewise.
10371 (vmovn_s32): Likewise.
10372 (vmovn_s64): Likewise.
10373 (vmovn_u16): Likewise.
10374 (vmovn_u32): Likewise.
10375 (vmovn_u64): Likewise.
10377 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10379 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
10381 (aarch64_<su>qxtn2<mode>_be): Likewise.
10382 (aarch64_<su>qxtn2<mode>): Likewise.
10383 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
10385 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
10386 (su): Handle ss_truncate and us_truncate.
10387 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
10389 (vqmovn_high_s32): Likewise.
10390 (vqmovn_high_s64): Likewise.
10391 (vqmovn_high_u16): Likewise.
10392 (vqmovn_high_u32): Likewise.
10393 (vqmovn_high_u64): Likewise.
10395 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10397 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
10399 (aarch64_xtn2<mode>_be): Likewise.
10400 (aarch64_xtn2<mode>): Likewise.
10401 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
10403 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
10405 (vmovn_high_s32): Likewise.
10406 (vmovn_high_s64): Likewise.
10407 (vmovn_high_u16): Likewise.
10408 (vmovn_high_u32): Likewise.
10409 (vmovn_high_u64): Likewise.
10411 2021-01-13 Stafford Horne <shorne@gmail.com>
10413 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
10415 2021-01-13 Stafford Horne <shorne@gmail.com>
10417 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
10419 2021-01-13 Stafford Horne <shorne@gmail.com>
10421 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
10422 define for __or1k_hard_float__.
10424 2021-01-13 Stafford Horne <shorne@gmail.com>
10426 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
10427 (PROFILE_HOOK): Define to call _mcount.
10428 (FUNCTION_PROFILER): Change from abort to no-op.
10430 2021-01-13 Jakub Jelinek <jakub@redhat.com>
10432 PR tree-optimization/96691
10433 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
10434 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
10435 (~D ^ C) or (D ^ C) can be simplified.
10437 2021-01-13 Richard Biener <rguenther@suse.de>
10439 PR tree-optimization/92645
10440 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
10441 until after vector lowering.
10443 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
10445 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
10447 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
10448 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
10450 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
10452 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
10454 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
10455 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
10457 2021-01-13 Richard Biener <rguenther@suse.de>
10459 PR tree-optimization/92645
10460 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
10461 BIT_FIELD_REF argument.
10462 (vect_build_slp_tree_2): Record the desired vector type
10463 on the external vector def.
10464 (vectorizable_slp_permutation): Handle required punning
10465 of existing vector defs.
10467 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
10469 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
10471 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
10473 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
10475 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10477 * config.gcc [$target == *-*-gnu*]: Enable
10478 'default_gnu_indirect_function'.
10480 2021-01-13 Jakub Jelinek <jakub@redhat.com>
10483 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
10484 registers before calling targetm.vectorize.vec_perm_const, only after
10486 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
10487 two argument permutation when one operand is zero vector and only
10488 after that force operands into registers.
10489 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
10490 define_insn_and_split pattern.
10491 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
10492 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
10493 (*avx2_zero_extendv8hiv8si2_1): Likewise.
10494 (*avx512f_zero_extendv8siv8di2_1): Likewise.
10495 (*avx2_zero_extendv4siv4di2_1): Likewise.
10496 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
10498 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
10499 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
10500 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
10501 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
10502 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
10503 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
10505 2021-01-13 Martin Liska <mliska@suse.cz>
10507 PR tree-optimization/98455
10508 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
10509 Record also virtual PHIs.
10510 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
10513 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
10515 * doc/invoke.texi (C++ Modules): Fix typos.
10517 2021-01-13 Richard Biener <rguenther@suse.de>
10519 PR tree-optimization/98640
10520 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
10521 handle plus or minus from a truncated operand to be
10524 2021-01-13 Jakub Jelinek <jakub@redhat.com>
10527 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
10528 define_insn_and_split patterns.
10529 (splitter after *btr<mode>_2): New splitter.
10531 2021-01-13 Martin Liska <mliska@suse.cz>
10534 * cgraphunit.c (analyze_functions): Remove dead code.
10536 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
10538 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
10539 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
10540 (a64fx_regmove_cost, a64fx_vector_cost): New.
10541 (a64fx_tunings): Use the new added cost tables.
10543 2021-01-13 Jakub Jelinek <jakub@redhat.com>
10546 * config/i386/predicates.md (pmovzx_parallel): New predicate.
10547 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
10548 define_insn_and_split pattern.
10549 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
10550 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
10552 2021-01-13 Julian Brown <julian@codesourcery.com>
10554 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
10555 to fix v0 register.
10557 2021-01-13 Julian Brown <julian@codesourcery.com>
10559 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
10562 2021-01-13 Julian Brown <julian@codesourcery.com>
10564 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
10565 for reciprocal-approximation instructions.
10566 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
10567 refinement and division result.
10568 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
10570 2021-01-13 Julian Brown <julian@codesourcery.com>
10572 * config/gcn/gcn-valu.md (subdf): Rename to...
10575 2021-01-12 Martin Liska <mliska@suse.cz>
10577 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
10579 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
10581 * function-abi.h: Fix typo.
10583 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
10587 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
10588 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
10589 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
10590 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
10591 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
10592 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
10593 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
10594 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
10595 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
10596 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
10597 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
10598 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
10599 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
10600 (ARM_HAVE_V2DI_LDST): Likewise.
10601 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
10602 (*movmisalign<mode>_mve_load): New pattern.
10603 * config/arm/neon.md (movmisalign<mode>): Move to ...
10604 * config/arm/vec-common.md: ... here.
10606 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
10609 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
10610 of pattern 'plus (plus (hard reg, const), pseudo)'.
10612 2021-01-12 Richard Biener <rguenther@suse.de>
10614 PR tree-optimization/98550
10615 * tree-vect-slp.c (vect_record_max_nunits): Check whether
10616 the group size is a multiple of the vector element count.
10617 (vect_build_slp_tree_1): When we need to fail because
10618 the vector type choosen causes unrolling do so lazily
10619 without affecting matches only at the end to guide group splitting.
10621 2021-01-12 Martin Liska <mliska@suse.cz>
10624 * optc-save-gen.awk: Compare also n_target_save vars with
10627 2021-01-12 Martin Liska <mliska@suse.cz>
10629 * gcov.c (source_info::debug): New.
10630 (print_usage): Add --debug (-D) option.
10631 (process_args): Likewise.
10632 (generate_results): Call src->debug after
10633 accumulate_line_counts.
10634 (read_graph_file): Properly assign id for EXIT_BLOCK.
10635 * profile.c (branch_prob): Dump function body before it is
10638 2021-01-12 Jakub Jelinek <jakub@redhat.com>
10640 PR tree-optimization/98629
10641 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
10642 unless returning non-zero.
10644 2021-01-12 Jakub Jelinek <jakub@redhat.com>
10646 PR tree-optimization/95731
10647 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
10648 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
10649 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
10650 only after optimize_range_tests_var_bound.
10652 2021-01-12 Jakub Jelinek <jakub@redhat.com>
10654 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
10655 * configure: Regenerated.
10657 2021-01-12 liuhongt <hongtao.liu@intel.com>
10660 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
10662 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
10665 2021-01-12 Alexandre Oliva <oliva@adacore.com>
10667 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
10669 (auto_end_imm_use_stmt_traverse): New struct.
10670 (FOR_EACH_IMM_USE_STMT): Use it.
10671 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
10673 * gimple-ssa-strength-reduction.c: ... here, ...
10674 * graphite-scop-detection.c: ... here, ...
10675 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
10676 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
10677 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
10678 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
10679 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
10680 * tree-vect-slp.c: ... and here, ...
10681 * doc/tree-ssa.texi: ... and the example here.
10683 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
10685 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
10686 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
10687 (*sdiv_pow2<mode>3): New pattern.
10688 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
10689 Wrap the ASRD in an UNSPEC_PRED_X.
10690 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
10691 predicate with a constant PTRUE, if it isn't already.
10692 (*cond_<sve_int_op><mode>_z): Replace with...
10693 (*cond_<sve_int_op><mode>_any): ...this new pattern.
10695 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
10697 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
10698 SVE_FULL_I to SVE_I.
10699 (*cond_bic<mode>_any): Likewise.
10701 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
10703 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
10704 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
10707 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
10709 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
10710 SVE_FULL_I to SVE_I.
10711 (*aarch64_cond_<su>abd<mode>_2): Likewise.
10712 (*aarch64_cond_<su>abd<mode>_any): Likewise.
10713 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
10714 for the max and min but not for the minus.
10715 (*aarch64_cond_<su>abd<mode>_3): New pattern.
10717 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
10719 * config/aarch64/iterators.md (SVE_24I): New iterator.
10720 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
10721 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
10723 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
10725 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
10726 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
10728 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
10729 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
10730 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
10731 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
10733 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
10735 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
10736 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
10737 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
10740 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
10742 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
10743 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
10744 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
10746 2021-01-11 Martin Liska <mliska@suse.cz>
10749 * symtab-clones.h (clone_info::release): Release
10750 symtab::m_clones with ggc_delete as it's a GGC memory.
10752 2021-01-11 Matthias Klose <doko@ubuntu.com>
10754 * Makefile.in (LINK_PROGRESS): Show the link target.
10756 2021-01-11 Richard Biener <rguenther@suse.de>
10758 PR tree-optimization/91403
10759 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
10760 single-element interleaving group size at 4096 elements.
10762 2021-01-11 Richard Biener <rguenther@suse.de>
10764 PR tree-optimization/98526
10765 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
10766 of the actual reduction op for the regular case.
10767 (vectorizable_reduction): Cost the stmts
10768 vect_transform_reduction produces here.
10770 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
10772 * tree-ssa-forwprop.c (simplify_vector_constructor): For
10773 big-endian, use UNPACK[_FLOAT]_HI.
10775 2021-01-11 Tamar Christina <tamar.christina@arm.com>
10777 * tree-vect-slp-patterns.c (class complex_pattern,
10778 class complex_add_pattern): Add parameters to matches.
10779 (complex_add_pattern::build): Free memory.
10780 (complex_add_pattern::matches): Move validation end of match.
10781 (complex_add_pattern::recognize): Likewise.
10783 2021-01-11 Tamar Christina <tamar.christina@arm.com>
10785 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
10787 2021-01-11 Tamar Christina <tamar.christina@arm.com>
10789 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
10791 2021-01-11 Jakub Jelinek <jakub@redhat.com>
10793 PR tree-optimization/95867
10794 * tree-ssa-math-opts.h: New header.
10795 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
10796 (powi_as_mults): No longer static. Use build_one_cst instead of
10797 build_real. Formatting fix.
10798 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
10799 (attempt_builtin_powi): Handle multiplication reassociation without
10800 powi_fndecl using powi_as_mults.
10801 (reassociate_bb): For integral types don't require
10802 -funsafe-math-optimizations to call attempt_builtin_powi.
10804 2021-01-11 Jakub Jelinek <jakub@redhat.com>
10806 PR tree-optimization/95852
10807 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
10808 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
10809 allow in the bb any of the stmts in that vector, div_stmt and
10810 up to 3 cast stmts.
10811 (arith_cast_equal_p): New function.
10812 (arith_overflow_check_p): Add cast_stmt argument, handle signed
10813 multiply overflow checks.
10814 (match_arith_overflow): Adjust caller. Handle signed multiply
10817 2021-01-11 Jakub Jelinek <jakub@redhat.com>
10819 PR tree-optimization/95852
10820 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
10821 (uaddsub_overflow_check_p): Renamed to ...
10822 (arith_overflow_check_p): ... this. Handle also multiplication
10823 with overflow check.
10824 (match_uaddsub_overflow): Renamed to ...
10825 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
10826 also multiplication with overflow check. Adjust function comment.
10827 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
10828 match_arith_overflow also for MULT_EXPR.
10830 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10832 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
10833 __builtin_convertvector.
10834 (vmovl_s16): Likewise.
10835 (vmovl_s32): Likewise.
10836 (vmovl_u8): Likewise.
10837 (vmovl_u16): Likewise.
10838 (vmovl_u32): Likewise.
10839 (vmovn_s16): Likewise.
10840 (vmovn_s32): Likewise.
10841 (vmovn_s64): Likewise.
10842 (vmovn_u16): Likewise.
10843 (vmovn_u32): Likewise.
10844 (vmovn_u64): Likewise.
10846 2021-01-11 Martin Liska <mliska@suse.cz>
10848 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
10849 (if_chain::is_beneficial): Delete clusters
10850 (find_conditions): Make second argument of conditions_in_bbs a
10851 pointer so that we control over it's lifetime.
10852 (pass_if_to_switch::execute): Delete them.
10854 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
10856 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
10859 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
10861 * config/vax/vax.md (cc): Remove mode attribute.
10862 (subst_<cc>, subst_f<cc>): Rename to...
10863 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
10864 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
10865 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
10866 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
10868 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
10870 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
10871 `const_double_zero'.
10873 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
10875 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
10876 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
10879 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
10881 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
10883 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
10884 with `const_double_zero'.
10885 * doc/rtl.texi (Constant Expression Types): Document it.
10887 2021-01-09 Jakub Jelinek <jakub@redhat.com>
10890 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
10891 POINTER_DIFF_EXPR to be any integral type.
10893 2021-01-09 Jakub Jelinek <jakub@redhat.com>
10895 PR rtl-optimization/98603
10896 * function.c (instantiate_virtual_regs_in_insn): For asm goto
10897 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
10898 if any, set ASM_OPERANDS mode to VOIDmode and change
10899 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
10901 2021-01-09 Alexandre Oliva <oliva@gnu.org>
10904 * final.c (notice_source_line): Narrow down the condition to
10905 skip a line-0 marker.
10907 2021-01-08 Sergei Trofimovich <siarheit@google.com>
10909 * ipa-modref.c (merge_call_side_effects): Fix
10910 linebreak split by reordering two print calls.
10912 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
10914 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
10915 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
10916 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
10917 consistency, fix constraint.
10919 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
10921 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
10922 callables instead of mask values.
10923 (struct target_flag_set_p): New predicate.
10924 (s390_cpu_cpp_builtins_internal): Define or undefine
10925 __LONG_DOUBLE_VX__ macro.
10927 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
10930 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
10931 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
10934 2021-01-08 Richard Biener <rguenther@suse.de>
10936 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
10938 2021-01-08 Richard Biener <rguenther@suse.de>
10940 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
10941 (vect_build_slp_tree): On cache hit release the matched
10942 scalar stmts vector.
10943 * tree-vect-stmts.c (vectorizable_store): Properly free
10944 vec_oprnds before possibly gathering them again.
10946 2021-01-08 Richard Biener <rguenther@suse.de>
10948 PR tree-optimization/98544
10949 * tree-vect-slp.c (vect_optimize_slp): Always materialize
10950 permutes at a permute node.
10952 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
10955 * config/i386/i386.c (x86_function_profiler): Use R10 to call
10956 mcount in large model. Sorry for large model with PIC.
10958 2021-01-08 Jakub Jelinek <jakub@redhat.com>
10961 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
10962 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
10963 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
10964 TargetSave and initialize for variables with enum types.
10965 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
10966 mstack-protector-guard-symbol=): Add Save.
10967 * config/i386/i386-options.c (ix86_function_specific_save,
10968 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
10969 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
10970 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
10971 x_ix86_veclibabi_type.
10973 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
10975 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
10976 SVE_FULL_I to SVE_I.
10977 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
10979 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
10981 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
10982 SVE_FULL_I to SVE_I.
10983 (*cond_uxt<mode>_any): Likewise.
10985 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10987 * config/aarch64/iterators.md (Vwhalf): New iterator.
10988 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
10990 (aarch64_<sur>adalp<mode>): ... This. Make more
10992 (<sur>sadv16qi): Adjust callsite of the above.
10993 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
10995 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
10997 (vpadal_s16): Likewise.
10998 (vpadal_u8): Likewise.
10999 (vpadal_u16): Likewise.
11000 (vpadalq_s8): Likewise.
11001 (vpadalq_s16): Likewise.
11002 (vpadalq_s32): Likewise.
11003 (vpadalq_u8): Likewise.
11004 (vpadalq_u16): Likewise.
11005 (vpadalq_u32): Likewise.
11007 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11009 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
11011 (aarch64_<su>abd<mode>): ... This.
11012 (<sur>sadv16qi): Adjust callsite of the above.
11013 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
11015 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
11017 (vabd_s16): Likewise.
11018 (vabd_s32): Likewise.
11019 (vabd_u8): Likewise.
11020 (vabd_u16): Likewise.
11021 (vabd_u32): Likewise.
11022 (vabdq_s8): Likewise.
11023 (vabdq_s16): Likewise.
11024 (vabdq_s32): Likewise.
11025 (vabdq_u8): Likewise.
11026 (vabdq_u16): Likewise.
11027 (vabdq_u32): Likewise.
11029 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11031 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
11033 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
11034 (vaba_s16): Likewise.
11035 (vaba_s32): Likewise.
11036 (vaba_u8): Likewise.
11037 (vaba_u16): Likewise.
11038 (vaba_u32): Likewise.
11039 (vabaq_s8): Likewise.
11040 (vabaq_s16): Likewise.
11041 (vabaq_s32): Likewise.
11042 (vabaq_u8): Likewise.
11043 (vabaq_u16): Likewise.
11044 (vabaq_u32): Likewise.
11046 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11048 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
11049 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
11050 Change RTL pattern to match.
11052 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
11054 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
11055 * config/riscv/riscv-c.c (riscv-subset.h): New.
11056 (INCLUDE_STRING): Define.
11057 (riscv_cpu_cpp_builtins): Add new style architecture extension
11059 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
11060 (riscv_subset_list::end): New.
11061 (riscv_current_subset_list): New.
11063 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
11065 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
11066 Move to riscv-subset.h.
11067 (struct riscv_subset_t): Ditto.
11068 (class riscv_subset_list): Ditto.
11069 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
11070 from riscv-common.c.
11071 (struct riscv_subset_t): Ditto.
11072 (class riscv_subset_list): Ditto.
11073 * config/riscv/t-riscv ($(common_out_file)): Add file
11076 2021-01-07 Jakub Jelinek <jakub@redhat.com>
11079 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
11080 New define_insn patterns.
11082 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
11084 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
11085 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
11086 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
11088 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
11090 PR tree-optimization/98560
11091 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
11092 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
11094 (vec_cond_direct): Likewise argument 2.
11095 (vec_condu_direct, vec_condeq_direct): Delete.
11096 (expand_vect_cond_optab_fn): Rename to...
11097 (expand_vec_cond_optab_fn): ...this, replacing old macro.
11098 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
11099 (expand_vect_cond_mask_optab_fn): Rename to...
11100 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
11101 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
11103 (direct_vec_cond_optab_supported_p): Likewise.
11104 (direct_vec_condu_optab_supported_p): Delete.
11105 (direct_vec_condeq_optab_supported_p): Delete.
11106 * gimple-isel.cc: Include internal-fn.h.
11107 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
11110 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
11112 PR tree-optimization/98560
11113 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
11114 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
11116 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
11118 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
11119 rotate_insn and optab code attributes.
11120 Update all uses to merged code attribute.
11121 * config/i386/sse.md: Update all uses to merged code attribute.
11122 * config/i386/mmx.md: Update all uses to merged code attribute.
11124 2021-01-07 Jakub Jelinek <jakub@redhat.com>
11126 PR tree-optimization/98568
11127 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
11128 (bswap_replace): Use it.
11130 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
11132 PR rtl-optimization/97978
11133 * lra-int.h (lra_hard_reg_split_p): New external.
11134 * lra.c (lra_hard_reg_split_p): New global.
11135 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
11136 * lra-assigns.c (lra_assign): Don't check allocation correctness
11137 after hard reg splitting.
11139 2021-01-06 Martin Sebor <msebor@redhat.com>
11142 * builtins.c (new_delete_mismatch_p): New overload.
11143 (new_delete_mismatch_p (tree, tree)): Call it.
11145 2021-01-06 Alexandre Oliva <oliva@adacore.com>
11147 * Makefile.in (T_GLIMITS_H): New.
11148 (stmp-int-hdrs): Depend on it, use it.
11149 * config/t-vxworks (T_GLIMITS_H): Override it.
11150 (vxw-glimits.h): New.
11152 2021-01-06 Richard Biener <rguenther@suse.de>
11154 PR tree-optimization/98513
11155 * value-range.cc (intersect_ranges): Compare the upper bounds
11156 for the expected relation.
11158 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
11161 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
11163 * doc/standards.texi (HSAIL): Remove section.
11165 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
11167 * configure: Re-generate.
11169 2021-01-05 Jakub Jelinek <jakub@redhat.com>
11171 * doc/invoke.texi (-std=c++20): Adjust for the publication of
11172 ISO 14882:2020 standard.
11173 * doc/standards.texi: Likewise.
11175 2021-01-05 Jakub Jelinek <jakub@redhat.com>
11177 PR tree-optimization/94802
11178 * expr.h (maybe_optimize_sub_cmp_0): Declare.
11179 * expr.c: Include tree-pretty-print.h and flags.h.
11180 (maybe_optimize_sub_cmp_0): New function.
11181 (do_store_flag): Use it.
11182 * cfgexpand.c (expand_gimple_cond): Likewise.
11184 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
11186 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
11187 * rtlanal.c (simple_regno_set): Tweak description to clarify the
11190 2021-01-05 Richard Biener <rguenther@suse.de>
11192 PR tree-optimization/98516
11193 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
11194 lanes when materializing on a VEC_PERM node.
11195 (vectorizable_slp_permutation): Dump the permute properly.
11197 2021-01-05 Richard Biener <rguenther@suse.de>
11199 * tree-vect-slp.c (vect_slp_region): Move debug counter
11200 to cover individual subgraphs.
11202 2021-01-05 Richard Biener <rguenther@suse.de>
11204 PR tree-optimization/98428
11205 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
11206 vector lane extracts for loop vectorization.
11208 2021-01-05 Jakub Jelinek <jakub@redhat.com>
11210 PR tree-optimization/98514
11211 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
11213 (operand_rank): Change type from hash_map<tree, long> to
11214 hash_map<tree, int64_t>.
11215 (phi_rank): Change return type from long to int64_t.
11216 (loop_carried_phi): Change block_rank variable type from long to
11218 (propagate_rank): Change return type, rank parameter type and
11219 op_rank variable type from long to int64_t.
11220 (find_operand_rank): Change return type from long to int64_t
11221 and change slot variable type from long * to int64_t *.
11222 (insert_operand_rank): Change rank parameter type from long to
11224 (get_rank): Change return type and rank variable type from long to
11225 int64_t. Use PRId64 instead of ld to print the rank.
11226 (init_reassoc): Change rank variable type from long to int64_t
11227 and adjust correspondingly bb_rank and operand_rank initialization.
11229 2021-01-05 Jakub Jelinek <jakub@redhat.com>
11231 PR tree-optimization/96928
11232 * tree-ssa-phiopt.c (xor_replacement): New function.
11233 (tree_ssa_phiopt_worker): Call it.
11235 2021-01-05 Jakub Jelinek <jakub@redhat.com>
11237 PR tree-optimization/96930
11238 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
11239 from narrower value which has the same type as 1 << B, perform
11240 the right shift on the narrower value followed by extension.
11242 2021-01-05 Jakub Jelinek <jakub@redhat.com>
11244 PR tree-optimization/96239
11245 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
11247 (get_status_for_store_merging): Don't return BB_INVALID for blocks
11248 with potential bswap optimizable CONSTRUCTORs.
11249 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
11252 2021-01-05 Richard Biener <rguenther@suse.de>
11254 PR tree-optimization/98381
11255 * tree.c (vector_element_bits): Properly compute bool vector
11257 * tree-vect-loop.c (vectorizable_live_operation): Properly
11258 compute the last lane bit offset.
11260 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
11263 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
11264 Clear the top 64 bytes of the input XMM register.
11265 (sse_cvttps2pi): Ditto.
11267 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
11270 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
11272 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
11275 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
11278 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
11280 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
11281 (umaddsidi4_split): Likewise.
11283 2021-01-05 liuhongt <hongtao.liu@intel.com>
11286 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
11287 define_insn_and_split for zero_extend of subreg HI of pmovskb
11289 (*sse2_pmovskb_zexthisi): Add new combine splitters for
11290 zero_extend of not of subreg HI of pmovskb result.
11292 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
11295 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
11297 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
11298 convert_memory_address to convert symbolic immediates to ptr_mode
11299 before forcing them to memory.
11301 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
11303 PR rtl-optimization/97144
11304 * recog.c (constrain_operands): Initialize matching_operand
11305 for each alternative, rather than only doing it once.
11307 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
11309 PR rtl-optimization/98403
11310 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
11311 why we don't remove call clobbers.
11312 (function_info::apply_changes_to_insn): Don't attempt to add
11313 call clobbers here.
11315 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
11317 PR tree-optimization/98371
11318 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
11319 (vect_analyze_loop): If an epilogue loop appears to be cheaper
11320 than the main loop, re-analyze it as a main loop before adopting
11323 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11326 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
11327 * aclocal.m4, configure: Regenerate.
11328 * Makefile.in (NETLIBS): Define.
11329 (BACKEND): Remove $(CODYLIB).
11331 2021-01-05 Jakub Jelinek <jakub@redhat.com>
11333 PR rtl-optimization/98334
11334 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
11335 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
11337 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
11339 * tree-inline.c (expand_call_inline): Restore input_location.
11340 Return result from recursive call.
11342 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
11344 PR tree-optimization/95401
11345 * config/aarch64/aarch64-sve-builtins.cc
11346 (gimple_folder::load_store_cookie): Use bits rather than bytes
11347 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
11348 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
11349 * tree-vect-stmts.c (vectorizable_store): Likewise.
11350 (vectorizable_load): Likewise.
11352 2021-01-04 Richard Biener <rguenther@suse.de>
11354 PR tree-optimization/98308
11355 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
11358 2021-01-04 Jakub Jelinek <jakub@redhat.com>
11360 PR tree-optimization/95771
11361 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
11362 with precision smaller than int's precision and types with precision
11363 twice as large as long long. Formatting fixes.
11365 2021-01-04 Richard Biener <rguenther@suse.de>
11367 PR tree-optimization/98464
11368 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
11369 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
11370 (process_bb): Adjust.
11372 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
11375 * doc/invoke.texi (-fsanitize=address): Fix wording describing
11376 clash with -fsanitize=hwaddress.
11378 2021-01-04 Richard Biener <rguenther@suse.de>
11380 PR tree-optimization/98282
11381 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
11382 invariants as VN_NARY.
11384 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
11387 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
11388 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
11389 to handle zero operands.
11391 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
11393 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
11394 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
11395 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
11398 2021-01-04 Richard Biener <rguenther@suse.de>
11400 PR tree-optimization/98393
11401 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
11402 when hitting the limit.
11404 2021-01-04 Richard Biener <rguenther@suse.de>
11406 PR tree-optimization/98291
11407 * tree-vect-loop.c (vectorizable_reduction): Bypass
11408 associativity check for SLP reductions with VF 1.
11410 2021-01-04 Jakub Jelinek <jakub@redhat.com>
11412 PR tree-optimization/96782
11413 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
11415 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
11417 * collect-utils.c (collect_execute): Check dumppfx.
11418 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
11419 to collect_execute.
11420 (do_link): Add new parameter atsuffix.
11421 (main): Handle -dumpdir option. Skip one argument for
11422 -o, -isystem and -B options.
11423 * gcc.c (make_at_file): New helper function.
11424 (close_at_file): Use it.
11426 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
11428 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
11429 Amend handling for LD64_VERSION fallback defaults.
11431 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
11433 * config.gcc: Compute default version information
11434 from the configured target. Likewise defaults for
11436 * config/darwin10.h: Removed.
11437 * config/darwin12.h: Removed.
11438 * config/darwin9.h: Removed.
11439 * config/rs6000/darwin8.h: Removed.
11441 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
11443 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
11445 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
11447 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
11448 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
11450 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
11452 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
11454 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
11456 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
11458 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
11459 for the Darwin10 unwinder stub from here ...
11460 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
11462 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
11464 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
11465 (ASM_DEBUG_SPEC):Only define if the assembler supports
11467 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
11468 (DARWIN_PREFER_DWARF): Define.
11469 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
11470 (DARWIN_PREFER_DWARF): Likewise
11471 (DSYMUTIL_SPEC): Likewise.
11472 (COLLECT_RUN_DSYMUTIL): Likewise.
11473 (ASM_DEBUG_SPEC): Likewise.
11474 (ASM_DEBUG_OPTION_SPEC): Likewise.
11476 2021-01-02 Jan Hubicka <jh@suse.cz>
11478 * cfg.c (free_block): ggc_free bb.
11480 2021-01-01 Jakub Jelinek <jakub@redhat.com>
11482 * gcc.c (process_command): Update copyright notice dates.
11483 * gcov-dump.c (print_version): Ditto.
11484 * gcov.c (print_version): Ditto.
11485 * gcov-tool.c (print_version): Ditto.
11486 * gengtype.c (create_file): Ditto.
11487 * doc/cpp.texi: Bump @copying's copyright year.
11488 * doc/cppinternals.texi: Ditto.
11489 * doc/gcc.texi: Ditto.
11490 * doc/gccint.texi: Ditto.
11491 * doc/gcov.texi: Ditto.
11492 * doc/install.texi: Ditto.
11493 * doc/invoke.texi: Ditto.
11495 2021-01-01 Jakub Jelinek <jakub@redhat.com>
11497 * ChangeLog-2020: Rotate ChangeLog. New file.
11500 Copyright (C) 2021 Free Software Foundation, Inc.
11502 Copying and distribution of this file, with or without modification,
11503 are permitted in any medium without royalty provided the copyright
11504 notice and this notice are preserved.