1 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
3 * config.gcc: Include rpath.opt for Darwin.
4 * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
6 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
9 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
12 2021-08-18 Jonathan Wright <jonathan.wright@arm.com>
14 * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
15 pattern and type cast.
16 (vld4_lane_f32): Use float RTL pattern.
17 (vld4q_lane_f64): Use float type cast.
19 2021-08-18 Jan Hubicka <hubicka@ucw.cz>
21 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
24 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
26 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
27 (test_map_of_type_with_ctor_and_dtor_expand): Add function.
28 (hash_map_tests_c_tests): Call it.
30 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
32 * ggc.h (enum ggc_collect): New.
33 (ggc_collect): Use it.
35 * ggc-common.c: Likewise.
36 * ggc-tests.c: Likewise.
37 * read-rtl-function.c: Likewise.
38 * selftest-run-tests.c: Likewise.
39 * doc/gty.texi (Invoking the garbage collector): Likewise.
41 2021-08-18 liuhongt <hongtao.liu@intel.com>
44 * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
46 * config/i386/sse.md (*sse3_haddv2df3_low): Add
47 TARGET_V2DF_REDUCTION_PREFER_HADDPD.
48 (*sse3_hsubv2df3_low): Ditto.
49 * config/i386/x86-tune.def
50 (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
52 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
54 * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
55 (gori_compute::compute_operand_range): Add tracing.
56 (gori_compute::logical_combine): Ditto.
57 (gori_compute::compute_logical_operands): Ditto.
58 (gori_compute::compute_operand1_range): Ditto.
59 (gori_compute::compute_operand2_range): Ditto.
60 (gori_compute::outgoing_edge_range_p): Ditto.
61 * gimple-range-gori.h (class gori_compute): Add range_tracer.
63 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
65 * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
66 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
67 * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
68 * params.opt (--param=evrp-mode): Adjust options.
70 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
72 * Makefile.in (OBJS): Add gimple-range-trace.o.
73 * gimple-range-cache.h (enable_new_values): Remove unused prototype.
74 * gimple-range-fold.cc: Adjust headers.
75 * gimple-range-trace.cc: New.
76 * gimple-range-trace.h: New.
77 * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
78 (gimple_ranger::range_of_expr): Add tracing.
79 (gimple_ranger::range_on_entry): Ditto.
80 (gimple_ranger::range_on_exit): Ditto.
81 (gimple_ranger::range_on_edge): Ditto.
82 (gimple_ranger::fold_range_internal): Ditto.
83 (gimple_ranger::dump_bb): Do not calculate edge range twice.
84 (trace_ranger::*): Remove.
85 (enable_ranger): Never create a trace_ranger.
86 (debug_seed_ranger): Move to gimple-range-trace.cc.
88 (debug_ranger): Ditto.
89 * gimple-range.h: Include gimple-range-trace.h.
90 (range_on_entry, range_on_exit): No longer virtual.
91 (class trace_ranger): Remove.
92 (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
94 2021-08-17 Martin Sebor <msebor@redhat.com>
97 * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
98 in gimple-ssa-warn-access.cc.
99 * calls.c (alloc_max_size): Move code to check_alloca.
100 (get_size_range): Move to pointer-query.cc.
101 (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
102 (get_attr_nonstring_decl): Move to tree.c.
103 (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
104 (append_attrname): Same.
105 (maybe_warn_rdwr_sizes): Same.
106 (initialize_argument_information): Move code to
107 gimple-ssa-warn-access.cc.
108 * calls.h (maybe_warn_alloc_args_overflow): Move to
109 gimple-ssa-warn-access.h.
110 (get_attr_nonstring_decl): Move to tree.h.
111 (maybe_warn_nonstring_arg): Move to gimple-ssa-warn-access.h.
112 (enum size_range_flags): Move to pointer-query.h.
113 (get_size_range): Same.
114 * gimple-ssa-warn-access.cc (has_location): Remove unused overload
115 to avoid Clang -Wunused-function.
116 (get_size_range): Declare static.
117 (maybe_emit_free_warning): Rename...
118 (maybe_check_dealloc_call): ...to this for consistency.
119 (class pass_waccess): Add members.
120 (pass_waccess::~pass_waccess): Defined.
121 (alloc_max_size): Move here from calls.c.
122 (maybe_warn_alloc_args_overflow): Same.
123 (check_alloca): New function.
124 (check_alloc_size_call): New function.
125 (check_strncat): Handle another warning flag.
126 (pass_waccess::check_builtin): Handle alloca.
127 (fntype_argno_type): Move here from calls.c.
128 (append_attrname): Same.
129 (maybe_warn_rdwr_sizes): Same.
130 (pass_waccess::check_call): Define.
131 (check_nonstring_args): New function.
132 (pass_waccess::check): Call new member functions.
133 (pass_waccess::execute): Enable ranger.
134 * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
135 (maybe_warn_nonstring_arg): Same.
136 * gimple-ssa-warn-restrict.c: Remove #include.
137 * pointer-query.cc (get_size_range): Move here from calls.c.
138 * pointer-query.h (enum size_range_flags): Same.
139 (get_size_range): Same.
140 * tree.c (get_attr_nonstring_decl): Move here from calls.c.
141 * tree.h (get_attr_nonstring_decl): Move here from calls.h.
143 2021-08-17 Thomas Schwinge <thomas@codesourcery.com>
145 * ggc.h (ggc_collect): Add 'force_collect' parameter.
146 * ggc-page.c (ggc_collect): Use that one instead of global
147 'ggc_force_collect'. Adjust all users.
148 * doc/gty.texi (Invoking the garbage collector): Update.
149 * ggc-internal.h (ggc_force_collect): Remove.
150 * ggc-common.c (ggc_force_collect): Likewise.
151 * selftest.h (forcibly_ggc_collect): Remove.
152 * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
153 * read-rtl-function.c (test_loading_labels): Adjust.
154 * selftest-run-tests.c (run_tests): Likewise.
156 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
158 * config/darwin.c (darwin_file_end): Reset and reclaim the
159 section names table at the end of compile.
161 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
164 * config.in: Regenerate.
165 * config/i386/darwin.h (EXTRA_ASM_OPTS): New
166 (ASM_SPEC): Pass options to disable branch shortening where
168 * configure: Regenerate.
169 * configure.ac: Detect versions of 'as' that support the
170 optimisation which has the bug.
172 2021-08-17 Richard Biener <rguenther@suse.de>
174 * optabs-query.c (supports_vec_gather_load_p): Also check
176 (supports_vec_scatter_store_p): Likewise.
177 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
178 back to masked variants if non-masked are not supported.
179 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
180 When we need to use masked gather/scatter but do not have
181 a mask set up a constant true one.
182 * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
185 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
187 * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
188 algorithm as PLUS_EXPR to improve subtraction bit bounds.
189 [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
191 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
193 * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
194 calculate the mask-value pair result of a multiplication by an
196 (bit_value_binop) [MULT_EXPR]: Call it from here for
197 multiplications by (sparse) non-negative constants.
199 2021-08-17 Christophe Lyon <christophe.lyon@foss.st.com>
202 * config.gcc (gcc_cv_initfini_array): Leave undefined for
203 uclinuxfdpiceabi targets.
205 2021-08-17 Alexandre Oliva <oliva@adacore.com>
207 * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
210 2021-08-17 Alexandre Oliva <oliva@adacore.com>
212 * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
214 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
216 * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
217 (__LD4Q_LANE_FUNC): Likewise.
218 (vld4_lane_u8): Define without macro.
219 (vld4_lane_u16): Likewise.
220 (vld4_lane_u32): Likewise.
221 (vld4_lane_u64): Likewise.
222 (vld4_lane_s8): Likewise.
223 (vld4_lane_s16): Likewise.
224 (vld4_lane_s32): Likewise.
225 (vld4_lane_s64): Likewise.
226 (vld4_lane_f16): Likewise.
227 (vld4_lane_f32): Likewise.
228 (vld4_lane_f64): Likewise.
229 (vld4_lane_p8): Likewise.
230 (vld4_lane_p16): Likewise.
231 (vld4_lane_p64): Likewise.
232 (vld4q_lane_u8): Likewise.
233 (vld4q_lane_u16): Likewise.
234 (vld4q_lane_u32): Likewise.
235 (vld4q_lane_u64): Likewise.
236 (vld4q_lane_s8): Likewise.
237 (vld4q_lane_s16): Likewise.
238 (vld4q_lane_s32): Likewise.
239 (vld4q_lane_s64): Likewise.
240 (vld4q_lane_f16): Likewise.
241 (vld4q_lane_f32): Likewise.
242 (vld4q_lane_f64): Likewise.
243 (vld4q_lane_p8): Likewise.
244 (vld4q_lane_p16): Likewise.
245 (vld4q_lane_p64): Likewise.
246 (vld4_lane_bf16): Likewise.
247 (vld4q_lane_bf16): Likewise.
249 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
251 * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
252 (__LD3Q_LANE_FUNC): Delete.
253 (vld3_lane_u8): Define without macro.
254 (vld3_lane_u16): Likewise.
255 (vld3_lane_u32): Likewise.
256 (vld3_lane_u64): Likewise.
257 (vld3_lane_s8): Likewise.
258 (vld3_lane_s16): Likewise.
259 (vld3_lane_s32): Likewise.
260 (vld3_lane_s64): Likewise.
261 (vld3_lane_f16): Likewise.
262 (vld3_lane_f32): Likewise.
263 (vld3_lane_f64): Likewise.
264 (vld3_lane_p8): Likewise.
265 (vld3_lane_p16): Likewise.
266 (vld3_lane_p64): Likewise.
267 (vld3q_lane_u8): Likewise.
268 (vld3q_lane_u16): Likewise.
269 (vld3q_lane_u32): Likewise.
270 (vld3q_lane_u64): Likewise.
271 (vld3q_lane_s8): Likewise.
272 (vld3q_lane_s16): Likewise.
273 (vld3q_lane_s32): Likewise.
274 (vld3q_lane_s64): Likewise.
275 (vld3q_lane_f16): Likewise.
276 (vld3q_lane_f32): Likewise.
277 (vld3q_lane_f64): Likewise.
278 (vld3q_lane_p8): Likewise.
279 (vld3q_lane_p16): Likewise.
280 (vld3q_lane_p64): Likewise.
281 (vld3_lane_bf16): Likewise.
282 (vld3q_lane_bf16): Likewise.
284 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
286 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
287 (__LD2Q_LANE_FUNC): Likewise.
288 (vld2_lane_u8): Define without macro.
289 (vld2_lane_u16): Likewise.
290 (vld2_lane_u32): Likewise.
291 (vld2_lane_u64): Likewise.
292 (vld2_lane_s8): Likewise.
293 (vld2_lane_s16): Likewise.
294 (vld2_lane_s32): Likewise.
295 (vld2_lane_s64): Likewise.
296 (vld2_lane_f16): Likewise.
297 (vld2_lane_f32): Likewise.
298 (vld2_lane_f64): Likewise.
299 (vld2_lane_p8): Likewise.
300 (vld2_lane_p16): Likewise.
301 (vld2_lane_p64): Likewise.
302 (vld2q_lane_u8): Likewise.
303 (vld2q_lane_u16): Likewise.
304 (vld2q_lane_u32): Likewise.
305 (vld2q_lane_u64): Likewise.
306 (vld2q_lane_s8): Likewise.
307 (vld2q_lane_s16): Likewise.
308 (vld2q_lane_s32): Likewise.
309 (vld2q_lane_s64): Likewise.
310 (vld2q_lane_f16): Likewise.
311 (vld2q_lane_f32): Likewise.
312 (vld2q_lane_f64): Likewise.
313 (vld2q_lane_p8): Likewise.
314 (vld2q_lane_p16): Likewise.
315 (vld2q_lane_p64): Likewise.
316 (vld2_lane_bf16): Likewise.
317 (vld2q_lane_bf16): Likewise.
319 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
321 * haifa-sched.c (advance_one_cycle): Output more context-synchronization
324 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
326 * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
327 (rank_for_schedule): Use it.
329 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
331 PR rtl-optimization/91598
332 * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
333 insns after memory reads and before memory writes.
335 2021-08-17 Alistair_Lee <alistair.lee@arm.com>
337 * rtl.h (CONST_VECTOR_P): New macro.
338 * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
340 (aarch64_ptrue_all_mode): Likewise.
341 (aarch64_expand_mov_immediate): Likewise.
342 (aarch64_const_vec_all_in_range_p): Likewise.
343 (aarch64_rtx_costs): Likewise.
344 (aarch64_legitimate_constant_p): Likewise.
345 (aarch64_simd_valid_immediate): Likewise.
346 (aarch64_simd_make_constant): Likewise.
347 (aarch64_convert_mult_to_shift): Likewise.
348 (aarch64_expand_sve_vec_perm): Likewise.
349 (aarch64_vec_fpconst_pow_of_2): Likewise.
351 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
353 PR tree-optimization/101938
354 * range-op.cc (operator_abs::op1_range): Special case
355 -TYPE_MIN_VALUE for flag_wrapv.
357 2021-08-17 Kewen Lin <linkw@linux.ibm.com>
359 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
362 2021-08-17 Jakub Jelinek <jakub@redhat.com>
364 * tree.def (OMP_SCOPE): New tree code.
365 * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
366 * tree-nested.c (convert_nonlocal_reference_stmt,
367 convert_local_reference_stmt, convert_gimple_call): Handle
369 * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
370 * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
371 * gimple.c (gimple_build_omp_scope): New function.
372 (gimple_copy): Handle GIMPLE_OMP_SCOPE.
373 * gimple.h (gimple_build_omp_scope): Declare.
374 (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
375 (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
376 gimple_omp_scope_set_clauses): New inline functions.
377 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
378 * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
379 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
380 * gimple-walk.c (walk_gimple_stmt): Likewise.
381 * gimple-low.c (lower_stmt): Likewise.
382 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
383 (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
384 like ORT_WORKSHARE constructs. Adjust diagnostics for %<scope%>
385 allowing task reductions. Reject inscan reductions on scope.
386 (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
387 (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
388 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
389 (estimate_num_insns): Likewise.
390 * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
391 contexts if var isn't privatized there.
392 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
393 (scan_omp_1_stmt): Likewise.
394 (maybe_add_implicit_barrier_cancel): Look through outer
396 (lower_omp_scope): New function.
397 (lower_omp_task_reductions): Handle OMP_SCOPE.
398 (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
399 (diagnose_sb_1, diagnose_sb_2): Likewise.
400 * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
401 (expand_omp): Handle GIMPLE_OMP_SCOPE.
402 (omp_make_gimple_edges): Likewise.
403 * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
405 2021-08-17 Richard Biener <rguenther@suse.de>
407 PR tree-optimization/101925
408 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
409 reverse on COMPONENT_REF and ARRAY_REF according to
410 what reverse_storage_order_for_component_p does.
411 (vn_reference_eq): Compare reversed on reference ops.
412 (reverse_storage_order_for_component_p): New overload.
413 (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
414 on the reference looked up.
416 2021-08-17 Jeff Law <jlaw@localhost.localdomain>
418 * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
420 (h8300_option_override): Use loops on H8/S more often when optimizing
422 (get_shift_alg): Handle new "special" cases on H8/S. Simplify
423 accordingly. Handle various arithmetic right shifts with special
424 sequences that we couldn't handle before.
426 2021-08-16 Jeff Law <jlaw@localhost.localdomain>
428 * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
430 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
432 * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
433 * config/sparc/sparc.c (sparc_gcov_type_size): New.
434 (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
435 * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
436 * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
437 * doc/tm.texi.in: Regenerate.
438 * target.def (gcov_type_size): New target hook.
439 * targhooks.c (default_gcov_type_size): New.
440 * targhooks.h (default_gcov_type_size): Declare.
441 * tree-profile.c (gimple_gen_edge_profiler): Use precision of
443 (gimple_gen_time_profiler): Likewise.
445 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
447 * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
449 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
452 * omp-low.c (omp_runtime_api_call): Update for routines
453 added in the meanwhile.
455 2021-08-16 Martin Liska <mliska@suse.cz>
457 PR tree-optimization/100393
458 * tree-switch-conversion.c (group_cluster::dump): Use
459 get_comparison_count.
460 (jump_table_cluster::find_jump_tables): Pre-compute number of
461 comparisons and then decrement it. Cache also max_ratio.
462 (jump_table_cluster::can_be_handled): Change signature.
463 * tree-switch-conversion.h (get_comparison_count): New.
465 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
467 * dwarf2out.c (add_data_member_location_attribute): Use GNAT
468 encodings only when -fgnat-encodings=all is specified.
469 (add_bound_info): Likewise.
470 (add_byte_size_attribute): Likewise.
471 (gen_member_die): Likewise.
473 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
475 * omp-oacc-neuter-broadcast.cc
476 (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
478 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
480 * omp-oacc-neuter-broadcast.cc
481 (execute_omp_oacc_neuter_broadcast): Clarify memory management for
484 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
486 * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
487 (execute_omp_oacc_neuter_broadcast): ... here.
488 (install_var_field, build_receiver_ref, build_sender_ref): Take
489 'field_map_t *' parameter. Adjust all users.
490 (worker_single_copy, neuter_worker_single): Take a
491 'record_field_map_t *' parameter. Adjust all users.
493 2021-08-16 liuhongt <hongtao.liu@intel.com>
496 * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
499 2021-08-16 Martin Liska <mliska@suse.cz>
502 * multiple_target.c (create_dispatcher_calls): Make default
503 function local only if it is a definition.
505 2021-08-16 Martin Liska <mliska@suse.cz>
508 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
509 consider equal SSA_NAMEs when one is a param.
511 2021-08-16 liuhongt <hongtao.liu@intel.com>
514 * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
515 Support vpermi2b for V32QI/V16QImode.
516 (ix86_extract_perm_from_pool_constant): New function.
517 (ix86_expand_vec_one_operand_perm_avx512): Support
518 vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
519 (expand_vec_perm_1): Adjust comments for upper.
520 * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
522 * config/i386/predicates.md (permvar_truncate_operand): New predicate.
523 (pshufb_truncv4siv4hi_operand): Ditto.
524 (pshufb_truncv8hiv8qi_operand): Ditto.
525 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
526 New pre_reload define_insn_and_split.
527 (*avx512f_permvar_truncv8siv8hi_1): Ditto.
528 (*avx512f_vpermvar_truncv8div8si_1): Ditto.
529 (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
530 (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
531 (*avx512f_permvar_truncv4div4si_1): Ditto.
532 (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
533 (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
534 (*avx512f_pshufd_truncv2div2si_1): Ditto.
536 2021-08-16 Kito Cheng <kito.cheng@sifive.com>
538 * config/riscv/multilib-generator: Support code model option for
540 * doc/install.texi: Add document of new option for
541 --with-multilib-generator.
543 2021-08-15 Clément Chigot <clement.chigot@atos.net>
545 * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
546 (rs6000_legitimize_tls_address_aix): Use it.
547 (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
548 xcoff_tls_exec_model_detected is true.
550 2021-08-15 Jeff Law <jlaw@localhost.localdomain>
552 * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
553 to allow a bit more code growth, saving many dozens of cycles.
554 (h8300_option_override): Adjus shift_alg_si if optimizing for
556 (get_shift_alg): Use special + inline shifts for residuals
559 2021-08-14 Stafford Horne <shorne@gmail.com>
562 * config/or1k/or1k-opts.h: New file.
563 * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
564 Support generating gotha relocations if -mcmodel=large is
566 * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
568 * config/or1k/or1k.opt (mcmodel=): New option.
569 * doc/invoke.texi (OpenRISC Options): Document mcmodel.
571 2021-08-14 Martin Sebor <msebor@redhat.com>
574 * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
575 to valid_new_delete_pair_p.
576 * tree.c (valid_new_delete_pair_p): Add argument.
577 * tree.h (valid_new_delete_pair_p): Same.
579 2021-08-14 Jakub Jelinek <jakub@redhat.com>
582 * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
583 <case E_V64QImode>: For this mode assert
584 !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
586 2021-08-13 Michael Meissner <meissner@linux.ibm.com>
589 * config/rs6000/altivec.md (xxeval): Use register_predicate
590 instead of altivec_register_predicate.
592 2021-08-13 Martin Sebor <msebor@redhat.com>
595 * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
596 (maybe_warn_operand): Call it.
598 2021-08-13 Martin Liska <mliska@suse.cz>
601 * attribs.c (decl_attributes): Make naked functions "noipa"
604 2021-08-13 Martin Liska <mliska@suse.cz>
607 * symtab.c (symtab_node::noninterposable_alias): Do not create
608 local aliases for target_clone functions as the clonning pass
611 2021-08-13 Martin Liska <mliska@suse.cz>
613 * opts.c (LIVE_PATCHING_OPTION): Define.
614 (control_options_for_live_patching): Use it in error messages.
616 2021-08-13 Jan Hubicka <hubicka@ucw.cz>
618 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
619 (implicit_const_eaf_flags, implicit_pure_eaf_flags,
620 ignore_stores_eaf_flags): New constants.
621 (remove_useless_eaf_flags): New function.
622 (eaf_flags_useful_p): Use it.
623 (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
625 (modref_lattice::init): Add EAF_NOREAD.
626 (modref_lattice::add_escape_point): Do not reacord escape point if
628 (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
629 use remove_useless_eaf_flags.
630 (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
631 (modref_lattice::merge_direct_load): Add EAF_NOREAD
632 (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
633 (analyze_parms): Use remove_useless_eaf_flags.
634 (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
635 (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
636 use remove_useless_eaf_flags.
637 (modref_propagate_flags_in_scc): Update.
638 * ipa-modref.h: Turn eaf_flags_t back to char.
639 * tree-core.h (EAF_NOT_RETURNED): Fix.
640 (EAF_NOREAD): New constant
641 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
643 * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
644 (handle_pure_call): Likewise.
646 2021-08-12 Jakub Jelinek <jakub@redhat.com>
648 * tree.def (OMP_MASKED): New tree code.
649 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
650 * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
651 OMP_CLAUSE_FILTER_EXPR): Define.
652 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
653 (omp_clause_code_name): Likewise.
654 (walk_tree_1): Handle OMP_CLAUSE_FILTER.
655 * tree-nested.c (convert_nonlocal_omp_clauses,
656 convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
657 (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
658 convert_gimple_call): Handle GIMPLE_OMP_MASTER.
659 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
660 (dump_generic_node): Handle OMP_MASTER.
661 * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
662 * gimple.c (gimple_build_omp_masked): New function.
663 (gimple_copy): Handle GIMPLE_OMP_MASKED.
664 * gimple.h (gimple_build_omp_masked): Declare.
665 (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
666 (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
667 gimple_omp_masked_set_clauses): New inline functions.
668 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
669 * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
670 (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
671 * gimple-walk.c (walk_gimple_stmt): Likewise.
672 * gimple-low.c (lower_stmt): Likewise.
673 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
674 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER. For clauses
675 that take one expression rather than decl or constant, force
676 gimplification of that into a SSA_NAME or temporary unless min
678 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
679 (gimplify_expr): Handle OMP_MASKED.
680 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
681 (estimate_num_insns): Likewise.
682 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
683 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED. Adjust
684 diagnostics for existence of masked construct.
685 (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
686 diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
687 * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
690 2021-08-12 Uroš Bizjak <ubizjak@gmail.com>
693 * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
694 (ldexp<mode>3): Use avx512f_scalef<mode>2.
695 (UNSPEC_SCALEF): Move from ...
696 * config/i386/sse.md (UNSPEC_SCALEF): ... here.
698 2021-08-12 Jan Hubicka <hubicka@ucw.cz>
700 * ipa-split.c (consider_split): Fix condition testing void functions.
702 2021-08-12 Aldy Hernandez <aldyh@redhat.com>
704 * doc/invoke.texi: Remove docs for threader-mode param.
705 * flag-types.h (enum threader_mode): Remove.
706 * params.opt: Remove threader-mode param.
707 * tree-ssa-threadbackward.c (class back_threader): Remove
708 path_is_unreachable_p.
709 Make find_paths private.
710 Add maybe_thread and thread_through_all_blocks.
711 Remove reference marker for m_registry.
712 Remove reference marker for m_profit.
713 (back_threader::back_threader): Adjust for registry and profit not
715 (dump_path): Move down.
717 (class thread_jumps): Remove.
718 (class back_threader_registry): Remove m_all_paths.
720 (thread_jumps::thread_through_all_blocks): Move to back_threader
722 (fsm_find_thread_path): Remove
723 (back_threader::maybe_thread): New.
724 (back_threader::thread_through_all_blocks): Move from
726 (back_threader_registry::back_threader_registry): Remove
728 (back_threader_registry::~back_threader_registry): Remove.
729 (thread_jumps::find_taken_edge): Remove.
730 (thread_jumps::check_subpath_and_update_thread_path): Remove.
731 (thread_jumps::maybe_register_path): Remove.
732 (thread_jumps::handle_phi): Remove.
733 (handle_assignment_p): Remove.
734 (thread_jumps::handle_assignment): Remove.
735 (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
736 (thread_jumps::find_jump_threads_backwards): Remove.
737 (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
738 (try_thread_blocks): Rename find_jump_threads_backwards to
740 (pass_early_thread_jumps::execute): Same.
742 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
744 * tree-core.h (omp_clause_proc_bind_kind): Add
745 OMP_CLAUSE_PROC_BIND_PRIMARY.
746 * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
747 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
749 2021-08-12 Claudiu Zissulescu <claziss@synopsys.com>
751 * common/config/arc/arc-common.c (arc_option_init_struct): Remove
752 fno-common reference.
753 * config/arc/arc.c (arc_override_options): Remove overriding of
756 2021-08-12 Jakub Jelinek <jakub@redhat.com>
759 * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
760 If d->testing_p, return true after performing checks instead of
761 actually expanding the insn.
762 (expand_vec_perm_broadcast_1): Handle V32HImode - assert
763 !TARGET_AVX512BW and return false.
765 2021-08-12 Eric Botcazou <ebotcazou@gcc.gnu.org>
767 * configure.ac (PE linker --disable-dynamicbase support): New check.
768 * configure: Regenerate.
769 * config.in: Likewise.
770 * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
772 * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
773 (LINK_SPEC): Likewise.
775 2021-08-12 liuhongt <hongtao.liu@intel.com>
778 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
779 post_reload define_insn_and_split.
780 (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
781 (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
782 (*avx512f_zero_extendv16hiv16si2_2): Ditto.
783 (*avx2_zero_extendv8hiv8si2_2): Ditto.
784 (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
785 (*avx512f_zero_extendv8siv8di2_2): Ditto.
786 (*avx2_zero_extendv4siv4di2_2): Ditto.
787 (*sse4_1_zero_extendv2siv2di2_4): Ditto.
788 (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
791 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
793 * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
796 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
798 * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
800 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
802 * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
803 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
804 initialization of pcvoid_type_node here...
805 (altivec_init_builtins): ...from here.
806 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
807 RS6000_BTI_const_ptr_void.
808 (pcvoid_type_node): New macro.
810 2021-08-11 Richard Biener <rguenther@suse.de>
813 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
814 hard-register accesses.
816 2021-08-11 Richard Biener <rguenther@suse.de>
818 * tree-ssa-operands.c (operands_scanner::get_expr_operands):
819 Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
820 to determine has_volatile_ops.
822 2021-08-11 Eric Botcazou <ebotcazou@gcc.gnu.org>
824 * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
826 2021-08-11 Jan Hubicka <hubicka@ucw.cz>
827 Alexandre Oliva <oliva@adacore.com>
829 * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
831 (modref_lattice::merge_deref): Fix handling of indirect scape points.
832 (update_escape_summary_1): Likewise.
833 (update_escape_summary): Likewise.
834 (ipa_merge_modref_summary_after_inlining): Likewise.
836 2021-08-11 Richard Biener <rguenther@suse.de>
839 * fold-const.c (fold_binary_loc): Guard simplification
840 of X < (cast) (1 << Y) to integer types.
842 2021-08-11 Richard Biener <rguenther@suse.de>
844 PR tree-optimization/101861
845 * tree-vect-stmts.c (vectorizable_load): Fix error in
846 previous change with regard to gather vectorization.
848 2021-08-11 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
851 * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
853 (vdup_n_s16): Likewise.
854 (vdup_n_s32): Likewise.
855 (vdup_n_s64): Likewise.
856 (vdup_n_u8): Likewise.
857 (vdup_n_u16): Likewise.
858 (vdup_n_u32): Likewise.
859 (vdup_n_u64): Likewise.
860 (vdup_n_p8): Likewise.
861 (vdup_n_p16): Likewise.
862 (vdup_n_p64): Likewise.
863 (vdup_n_f16): Likewise.
864 (vdup_n_f32): Likewise.
865 (vdupq_n_s8): Likewise.
866 (vdupq_n_s16): Likewise.
867 (vdupq_n_s32): Likewise.
868 (vdupq_n_s64): Likewise.
869 (vdupq_n_u8): Likewise.
870 (vdupq_n_u16): Likewise.
871 (vdupq_n_u32): Likewise.
872 (vdupq_n_u64): Likewise.
873 (vdupq_n_p8): Likewise.
874 (vdupq_n_p16): Likewise.
875 (vdupq_n_p64): Likewise.
876 (vdupq_n_f16): Likewise.
877 (vdupq_n_f32): Likewise.
878 (vmov_n_s8): Replace call to builtin with call to corresponding
880 (vmov_n_s16): Likewise.
881 (vmov_n_s32): Likewise.
882 (vmov_n_s64): Likewise.
883 (vmov_n_u8): Likewise.
884 (vmov_n_u16): Likewise.
885 (vmov_n_u32): Likewise.
886 (vmov_n_u64): Likewise.
887 (vmov_n_p8): Likewise.
888 (vmov_n_p16): Likewise.
889 (vmov_n_f16): Likewise.
890 (vmov_n_f32): Likewise.
891 (vmovq_n_s8): Likewise.
892 (vmovq_n_s16): Likewise.
893 (vmovq_n_s32): Likewise.
894 (vmovq_n_s64): Likewise.
895 (vmovq_n_u8): Likewise.
896 (vmovq_n_u16): Likewise.
897 (vmovq_n_u32): Likewise.
898 (vmovq_n_u64): Likewise.
899 (vmovq_n_p8): Likewise.
900 (vmovq_n_p16): Likewise.
901 (vmovq_n_f16): Likewise.
902 (vmovq_n_f32): Likewise.
903 * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
905 2021-08-11 liuhongt <hongtao.liu@intel.com>
908 * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
909 when TARGET_AVX512F and TARGET_SSE_MATH.
911 2021-08-10 Jakub Jelinek <jakub@redhat.com>
914 * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
915 for V32HImode if !TARGET_AVX512BW.
916 (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
917 If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
918 early, but actually check the permutation.
920 2021-08-10 Richard Biener <rguenther@suse.de>
922 PR tree-optimization/101809
923 * tree-vect-stmts.c (get_load_store_type): Allow emulated
924 gathers with offset vector nunits being a constant multiple
925 of the data vector nunits.
926 (vect_get_gather_scatter_ops): Use the appropriate nunits
927 for the offset vector defs.
928 (vectorizable_store): Adjust call to
929 vect_get_gather_scatter_ops.
930 (vectorizable_load): Likewise. Handle the case of less
931 offset vectors than data vectors.
933 2021-08-10 Jakub Jelinek <jakub@redhat.com>
936 * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
937 *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
940 2021-08-10 Richard Biener <rguenther@suse.de>
942 PR tree-optimization/101801
943 PR tree-optimization/101819
944 * tree-vectorizer.h (vect_emulated_vector_p): Declare.
945 * tree-vect-loop.c (vect_emulated_vector_p): New function.
946 (vectorizable_reduction): Re-instantiate a check for emulated
948 * tree-vect-stmts.c (vectorizable_shift): Likewise.
949 (vectorizable_operation): Likewise. Cost emulated vector
950 operations according to the scalar sequence synthesized by
953 2021-08-10 Richard Biener <rguenther@suse.de>
956 * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
957 volatile in case the variable was.
959 2021-08-10 H.J. Lu <hjl.tools@gmail.com>
962 * config/i386/constraints.md (BC): Document for integer SSE
963 constant all bits set operand.
964 (BF): New constraint for const floating-point all bits set
966 * config/i386/i386.c (standard_sse_constant_p): Likewise.
967 (standard_sse_constant_opcode): Likewise.
968 * config/i386/sse.md (sseconstm1): New mode attribute.
969 (mov<mode>_internal): Replace BC with <sseconstm1>.
971 2021-08-10 liuhongt <hongtao.liu@intel.com>
973 * config/i386/sse.md (cond_<insn><mode>): New expander.
974 (VI248_AVX512VLBW): New mode iterator.
975 * config/i386/predicates.md
976 (nonimmediate_or_const_vec_dup_operand): New predicate.
978 2021-08-09 Andrew MacLeod <amacleod@redhat.com>
980 PR tree-optimization/101741
981 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
982 type of parameter for toupper/tolower.
984 2021-08-09 Martin Jambor <mjambor@suse.cz>
987 * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
989 2021-08-09 Pat Haugen <pthaugen@linux.ibm.com>
991 * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
993 (is_store_insn1): Verify source is a register.
995 2021-08-09 Uroš Bizjak <ubizjak@gmail.com>
998 * config/i386/mmx.md (<any_logic:code>v2sf3):
999 Rename from *mmx_<any_logic:code>v2sf3
1001 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1003 * config/nvptx/nvptx.c: Cross-reference parts adapted in
1004 'gcc/omp-oacc-neuter-broadcast.cc'.
1005 * omp-low.c: Likewise.
1006 * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
1009 2021-08-09 Julian Brown <julian@codesourcery.com>
1010 Kwok Cheung Yeung <kcy@codesourcery.com>
1011 Thomas Schwinge <thomas@codesourcery.com>
1013 * config/gcn/gcn.c (gcn_init_builtins): Override decls for
1014 BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
1015 BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
1016 (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
1017 (gcn_fork_join): Update comment.
1018 * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
1019 (macc_experimental_workers): Remove unused option.
1021 2021-08-09 Julian Brown <julian@codesourcery.com>
1022 Nathan Sidwell <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
1023 Kwok Cheung Yeung <kcy@codesourcery.com>
1024 Thomas Schwinge <thomas@codesourcery.com>
1026 * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
1027 * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
1028 Add documentation hook.
1029 * doc/tm.texi: Regenerate.
1030 * omp-oacc-neuter-broadcast.cc: New file.
1031 * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
1032 (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
1033 (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
1034 * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
1035 * target.def (goacc.create_worker_broadcast_record): Add target
1037 * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
1039 * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
1040 Rename prototype to...
1041 (gcn_goacc_create_worker_broadcast_record): ... this.
1042 * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
1044 (gcn_goacc_create_worker_broadcast_record): ... this.
1045 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
1047 (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
1049 2021-08-09 Tejas Belagod <tejas.belagod@arm.com>
1052 * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
1055 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1057 * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
1059 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1061 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
1062 consider '-foffload-abi'.
1063 * common.opt (-foffload-abi): Remove 'Var', 'Init'.
1064 * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
1067 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1069 * optc-gen.awk: Sanity check that 'Init' doesn't appear without
1072 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1074 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
1076 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1078 * doc/gty.texi (Files): Update.
1080 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1082 * doc/gty.texi (Files): Fix GTY header file example.
1084 2021-08-09 Roger Sayle <roger@nextmovesoftware.com>
1086 * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
1087 determine the upper and lower bounds from a mask-value pair.
1088 (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
1089 absolute value and unsigned absolute value expressions.
1090 (bit_value_binop): Initialize *VAL's precision.
1091 [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
1092 upper and lower bounds of operands. Add LE_EXPR/GE_EXPR
1093 support when the operands are unknown but potentially equal.
1094 [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
1096 2021-08-09 Bin Cheng <bin.cheng@linux.alibaba.com>
1098 * config/aarch64/aarch64.md
1099 (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
1101 2021-08-08 Sergei Trofimovich <siarheit@google.com>
1103 * lra-constraints.c: Fix s/otput/output/ typo.
1105 2021-08-06 Martin Sebor <msebor@redhat.com>
1107 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
1108 (expand_builtin_strcat): Same.
1109 (expand_builtin_stpncpy): Same.
1110 (expand_builtin_strncat): Same.
1111 (check_read_access): Same.
1112 (check_memop_access): Same.
1113 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
1114 (expand_builtin_strnlen): Same.
1115 (expand_builtin_memcpy): Same.
1116 (expand_builtin_memmove): Same.
1117 (expand_builtin_mempcpy): Same.
1118 (expand_builtin_strcpy): Same.
1119 (expand_builtin_strcpy_args): Same.
1120 (expand_builtin_stpcpy_1): Same.
1121 (expand_builtin_strncpy): Same.
1122 (expand_builtin_memset): Same.
1123 (expand_builtin_bzero): Same.
1124 (expand_builtin_strcmp): Same.
1125 (expand_builtin_strncmp): Same.
1126 (expand_builtin): Remove handlers.
1127 (fold_builtin_strlen): Add a comment.
1128 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
1129 * calls.c (maybe_warn_nonstring_arg): Same.
1130 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
1131 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
1132 (gimple_fold_builtin_stpcpy): Same.
1133 * gimple-ssa-warn-access.cc (has_location): New function.
1134 (get_location): Same.
1135 (get_callee_fndecl): Same.
1138 (warn_string_no_nul): Define.
1139 (unterminated_array): Same.
1140 (check_nul_terminated_array): Same.
1141 (maybe_warn_nonstring_arg): Same.
1142 (maybe_warn_for_bound): Same.
1143 (warn_for_access): Same.
1144 (check_access): Same.
1145 (check_memop_access): Same.
1146 (check_read_access): Same.
1147 (warn_dealloc_offset): Use helper functions.
1148 (maybe_emit_free_warning): Same.
1149 (class pass_waccess): Add members.
1150 (check_strcat): New function.
1151 (check_strncat): New function.
1152 (check_stxcpy): New function.
1153 (check_stxncpy): New function.
1154 (check_strncmp): New function.
1155 (pass_waccess::check_builtin): New function.
1156 (pass_waccess::check): Call it.
1157 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
1159 (maybe_warn_for_bound): Same.
1160 (check_access): Same.
1161 (check_memop_access): Same.
1162 (check_read_access): Same.
1163 * pointer-query.h (struct access_data): Define a ctor overload.
1165 2021-08-06 Richard Biener <rguenther@suse.de>
1167 PR tree-optimization/101801
1168 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
1169 (vect_can_vectorize_without_simd_p): ... to this.
1170 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
1171 (vect_can_vectorize_without_simd_p): ... to this and fold
1172 in vect_min_worthwhile_factor.
1173 (vect_min_worthwhile_factor): Remove.
1174 (vectorizable_reduction): Adjust and remove the cost part.
1175 * tree-vect-stmts.c (vectorizable_shift): Likewise.
1176 (vectorizable_operation): Likewise.
1178 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
1181 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
1182 Add general_gr_operand predicate to operand 3.
1184 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
1186 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
1187 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
1189 2021-08-06 Tamar Christina <tamar.christina@arm.com>
1191 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
1192 register_svprfop): Pass vec<> by pointer.
1193 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
1194 * langhooks.c (lhd_simulate_enum_decl): Likewise.
1195 * langhooks.h (struct lang_hooks_for_types): Likewise.
1197 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
1199 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
1200 __builtin_memcpy instead of constructing an additional
1201 __builtin_aarch64_simd_oi one vector at a time.
1202 (vst1q_bf16_x2): Likewise.
1203 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
1204 an additional __builtin_aarch64_simd_ci one vector at a time.
1205 (vst1q_bf16_x3): Likewise.
1206 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
1207 (vst1q_bf16_x4): Likewise.
1208 (vst2_bf16): Use __builtin_memcpy instead of constructing an
1209 additional __builtin_aarch64_simd_oi one vector at a time.
1210 (vst2q_bf16): Likewise.
1211 (vst3_bf16): Use __builtin_memcpy instead of constructing an
1212 additional __builtin_aarch64_simd_ci mode one vector at a
1214 (vst3q_bf16): Likewise.
1215 (vst4_bf16): Use __builtin_memcpy instead of constructing an
1216 additional __builtin_aarch64_simd_xi one vector at a time.
1217 (vst4q_bf16): Likewise.
1219 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
1221 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
1222 (__ST2Q_LANE_FUNC): Delete.
1223 (vst2_lane_f16): Use __builtin_memcpy to copy vector
1224 structure instead of constructing __builtin_aarch64_simd_oi
1225 one vector at a time.
1226 (vst2_lane_f32): Likewise.
1227 (vst2_lane_f64): Likewise.
1228 (vst2_lane_p8): Likewise.
1229 (vst2_lane_p16): Likewise.
1230 (vst2_lane_p64): Likewise.
1231 (vst2_lane_s8): Likewise.
1232 (vst2_lane_s16): Likewise.
1233 (vst2_lane_s32): Likewise.
1234 (vst2_lane_s64): Likewise.
1235 (vst2_lane_u8): Likewise.
1236 (vst2_lane_u16): Likewise.
1237 (vst2_lane_u32): Likewise.
1238 (vst2_lane_u64): Likewise.
1239 (vst2_lane_bf16): Likewise.
1240 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
1241 structure instead of using a union.
1242 (vst2q_lane_f32): Likewise.
1243 (vst2q_lane_f64): Likewise.
1244 (vst2q_lane_p8): Likewise.
1245 (vst2q_lane_p16): Likewise.
1246 (vst2q_lane_p64): Likewise.
1247 (vst2q_lane_s8): Likewise.
1248 (vst2q_lane_s16): Likewise.
1249 (vst2q_lane_s32): Likewise.
1250 (vst2q_lane_s64): Likewise.
1251 (vst2q_lane_u8): Likewise.
1252 (vst2q_lane_u16): Likewise.
1253 (vst2q_lane_u32): Likewise.
1254 (vst2q_lane_u64): Likewise.
1255 (vst2q_lane_bf16): Likewise.
1257 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
1259 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
1260 (__ST3Q_LANE_FUNC): Delete.
1261 (vst3_lane_f16): Use __builtin_memcpy to copy vector
1262 structure instead of constructing __builtin_aarch64_simd_ci
1263 one vector at a time.
1264 (vst3_lane_f32): Likewise.
1265 (vst3_lane_f64): Likewise.
1266 (vst3_lane_p8): Likewise.
1267 (vst3_lane_p16): Likewise.
1268 (vst3_lane_p64): Likewise.
1269 (vst3_lane_s8): Likewise.
1270 (vst3_lane_s16): Likewise.
1271 (vst3_lane_s32): Likewise.
1272 (vst3_lane_s64): Likewise.
1273 (vst3_lane_u8): Likewise.
1274 (vst3_lane_u16): Likewise.
1275 (vst3_lane_u32): Likewise.
1276 (vst3_lane_u64): Likewise.
1277 (vst3_lane_bf16): Likewise.
1278 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
1279 structure instead of using a union.
1280 (vst3q_lane_f32): Likewise.
1281 (vst3q_lane_f64): Likewise.
1282 (vst3q_lane_p8): Likewise.
1283 (vst3q_lane_p16): Likewise.
1284 (vst3q_lane_p64): Likewise.
1285 (vst3q_lane_s8): Likewise.
1286 (vst3q_lane_s16): Likewise.
1287 (vst3q_lane_s32): Likewise.
1288 (vst3q_lane_s64): Likewise.
1289 (vst3q_lane_u8): Likewise.
1290 (vst3q_lane_u16): Likewise.
1291 (vst3q_lane_u32): Likewise.
1292 (vst3q_lane_u64): Likewise.
1293 (vst3q_lane_bf16): Likewise.
1295 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
1297 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
1298 (__ST4Q_LANE_FUNC): Delete.
1299 (vst4_lane_f16): Use __builtin_memcpy to copy vector
1300 structure instead of constructing __builtin_aarch64_simd_xi
1301 one vector at a time.
1302 (vst4_lane_f32): Likewise.
1303 (vst4_lane_f64): Likewise.
1304 (vst4_lane_p8): Likewise.
1305 (vst4_lane_p16): Likewise.
1306 (vst4_lane_p64): Likewise.
1307 (vst4_lane_s8): Likewise.
1308 (vst4_lane_s16): Likewise.
1309 (vst4_lane_s32): Likewise.
1310 (vst4_lane_s64): Likewise.
1311 (vst4_lane_u8): Likewise.
1312 (vst4_lane_u16): Likewise.
1313 (vst4_lane_u32): Likewise.
1314 (vst4_lane_u64): Likewise.
1315 (vst4_lane_bf16): Likewise.
1316 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
1317 structure instead of using a union.
1318 (vst4q_lane_f32): Likewise.
1319 (vst4q_lane_f64): Likewise.
1320 (vst4q_lane_p8): Likewise.
1321 (vst4q_lane_p16): Likewise.
1322 (vst4q_lane_p64): Likewise.
1323 (vst4q_lane_s8): Likewise.
1324 (vst4q_lane_s16): Likewise.
1325 (vst4q_lane_s32): Likewise.
1326 (vst4q_lane_s64): Likewise.
1327 (vst4q_lane_u8): Likewise.
1328 (vst4q_lane_u16): Likewise.
1329 (vst4q_lane_u32): Likewise.
1330 (vst4q_lane_u64): Likewise.
1331 (vst4q_lane_bf16): Likewise.
1333 2021-08-06 Martin Liska <mliska@suse.cz>
1335 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
1336 a target option is restored, it can have
1337 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
1338 and error should not be emitted.
1340 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
1342 * gcov-io.h (gcov_write): Declare.
1343 * gcov-io.c (gcov_write): New.
1344 (gcov_write_counter): Remove.
1345 (gcov_write_tag_length): Likewise.
1346 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
1347 gcov_write_unsigned().
1348 * doc/invoke.texi (fprofile-info-section): Mention
1349 __gcov_info_to_gdca().
1351 2021-08-06 Martin Sebor <msebor@redhat.com>
1353 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
1354 arguments to by-reference.
1355 (iterate_fix_dominators): Same.
1356 * dominance.h (iterate_fix_dominators): Same.
1357 * ipa-prop.h: Call auto_vec::to_vec_legacy.
1358 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
1359 arguments to by-reference.
1360 (debug_data_dependence_relation): Same.
1361 (dump_data_dependence_relations): Same.
1362 * tree-data-ref.h (debug_data_dependence_relation): Same.
1363 (dump_data_dependence_relations): Same.
1364 * tree-predcom.c (dump_chains): Same.
1365 (initialize_root_vars_lm): Same.
1366 (determine_unroll_factor): Same.
1367 (replace_phis_by_defined_names): Same.
1368 (insert_init_seqs): Same.
1369 (pcom_worker::tree_predictive_commoning_loop): Call
1370 auto_vec::to_vec_legacy.
1371 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
1372 arguments to by-reference.
1373 * tree-ssa-threadbackward.c (populate_worklist): Same.
1374 (back_threader::resolve_def): Same.
1375 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
1376 (vect_enhance_data_refs_alignment): Same.
1377 (vect_check_lower_bound): Same.
1378 (vect_prune_runtime_alias_test_list): Same.
1379 (vect_permute_store_chain): Same.
1380 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
1381 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
1382 * tree-vectorizer.h (vect_permute_store_chain): Same.
1383 * vec.c (test_init): New function.
1384 (vec_c_tests): Call new function.
1385 * vec.h (vec): Declare ctors, dtor, and assignment.
1386 (auto_vec::vec_to_legacy): New function.
1387 (vec::copy): Adjust initialization.
1389 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
1392 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
1393 callee only uses GPRs.
1394 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
1395 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
1396 * config/i386/x86gprintrin.h: Add
1397 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
1398 to disable non-GPR ISAs.
1400 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
1402 PR middle-end/101787
1403 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
1405 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
1407 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
1408 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
1409 (vect_is_extending_load, vect_is_integer_truncation): New functions,
1410 moved from aarch64.c but given different names.
1411 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
1412 (aarch64_is_reduction, aarch64_reduc_type)
1413 (aarch64_embedded_comparison_type, aarch64_comparison_type)
1414 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
1415 in favor of the above. Update callers accordingly.
1417 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
1420 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
1421 writing .cpu directive in asm output.
1422 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
1423 (arm_last_printed_arch_string): Delete.
1424 (arm_last-printed_fpu_string): Delete.
1425 (arm_configure_build_target): If use of floating-point/SIMD is
1426 disabled, remove all fp/simd related features from the target ISA.
1427 (last_arm_targ_options): New variable.
1428 (arm_print_asm_arch_directives): Add new parameters. Change order
1429 of emitted directives and handle all cases here.
1430 (arm_file_start): Always call arm_print_asm_arch_directives, move
1431 all generation of .arch/.arch_extension here.
1432 (arm_file_end): Call arm_print_asm_arch.
1433 (arm_declare_function_name): Call arm_print_asm_arch_directives
1434 instead of printing .arch/.fpu directives directly.
1436 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
1438 * config/arm/arm.c (arm_configure_build_target): Don't call
1439 arm_option_reconfigure_globals.
1440 (arm_option_restore): Call arm_option_reconfigure_globals after
1441 reconfiguring the target.
1442 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
1444 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
1446 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
1447 arch_name is always set.
1449 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
1451 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
1452 of vec_select high-half from being added into Neon subtract
1455 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
1457 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
1458 of vec_select high-half from being added into Neon add cost.
1460 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
1462 * cfgloop.h (loops_list::loops_list): Add one optional argument
1463 root and adjust accordingly, update loop tree walking and factor
1465 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
1467 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
1469 PR tree-optimization/101626
1470 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
1471 reverse scalar storage order on a pointer or vector component.
1473 2021-08-05 liuhongt <hongtao.liu@intel.com>
1475 * config/i386/sse.md (cond_<code><mode>): New expander.
1477 2021-08-05 liuhongt <hongtao.liu@intel.com>
1479 * config/i386/sse.md (cond_<code><mode>): New expander.
1481 2021-08-05 liuhongt <hongtao.liu@intel.com>
1483 * config/i386/sse.md (cond_<code><mode>): New expander.
1485 2021-08-04 David Malcolm <dmalcolm@redhat.com>
1488 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
1490 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
1493 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
1494 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
1496 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
1499 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
1500 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
1501 data with SSE register from one memory location to another.
1503 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
1505 * config/s390/s390.c (expand_perm_with_vpdi): New function.
1506 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
1507 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
1508 parameterized expander.
1509 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
1511 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
1513 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
1514 (struct expand_vec_perm_d): Define struct.
1515 (expand_perm_with_merge): New function.
1516 (vectorize_vec_perm_const_1): New function.
1517 (s390_vectorize_vec_perm_const): New function.
1518 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
1520 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
1522 * config/s390/vector.md (V_HW_64): Remove mode iterator.
1523 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
1524 * config/s390/vx-builtins.md
1525 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
1528 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
1530 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
1532 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
1534 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
1535 instead of an unspec.
1537 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
1539 * config/s390/s390-modes.def: Add more vector modes to support
1540 concatenation of two vectors.
1541 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
1543 (s390_expand_merge): Likewise.
1544 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
1545 (s390_expand_merge): New function.
1546 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
1547 Remove constant definitions.
1548 * config/s390/vector.md (V_HW_2): Add mode iterators.
1549 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
1550 (vec_2x_nelts, vec_2x_wide): New mode attributes.
1551 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
1552 New pattern definitions.
1553 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
1554 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
1555 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
1556 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
1558 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
1560 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
1561 emit vec merge pattern.
1563 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
1565 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
1567 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
1568 vec_select high-half from being added into Neon multiply
1570 * rtlanal.c (vec_series_highpart_p): Define.
1571 * rtlanal.h (vec_series_highpart_p): Declare.
1573 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
1575 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
1577 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
1578 vec_select cost from being added into Neon multiply cost.
1580 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
1582 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
1583 which old_loop_vinfo is an epilogue loop that handles a constant
1584 number of iterations.
1586 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
1588 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
1589 when a reanalyzed loop fails to be cheaper than the current
1592 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
1594 * config/aarch64/aarch64.c: Fix a typo.
1596 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
1598 PR gcov-profile/101773
1599 * gcov-io.c (gcov_close): Check return code of a fclose.
1601 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1604 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
1605 .file statement when needed.
1607 2021-08-04 Richard Biener <rguenther@suse.de>
1609 * tree-vect-data-refs.c (vect_check_gather_scatter):
1610 Include widening conversions only when the result is
1611 still handed by native gather or the current offset
1612 size not already matches the data size.
1613 Also succeed analysis in case there's no native support,
1614 noted by a IFN_LAST ifn and a NULL decl.
1615 (vect_analyze_data_refs): Always consider gathers.
1616 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
1617 Test for no IFN gather rather than decl gather.
1618 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
1619 gather-scatter info and cost emulated gathers accordingly.
1620 (vect_truncate_gather_scatter_offset): Properly test for
1622 (vect_use_strided_gather_scatters_p): Likewise.
1623 (get_load_store_type): Handle emulated gathers and its
1625 (vectorizable_load): Likewise. Emulate them by extracting
1626 scalar offsets, doing scalar loads and a vector construct.
1628 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
1631 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
1632 argument to set m_max_size.
1633 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
1634 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
1635 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
1637 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
1638 Marc Glisse <marc.glisse@inria.fr>
1640 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
1641 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
1642 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
1644 2021-08-04 Richard Biener <rguenther@suse.de>
1646 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
1647 out code to decompose vector loads ...
1648 (optimize_vector_load): ... here. Generalize it to
1649 handle intermediate widening and TARGET_MEM_REF loads
1650 and apply it to loads with a supported vector mode as well.
1652 2021-08-04 Richard Biener <rguenther@suse.de>
1654 PR tree-optimization/101756
1655 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
1656 the result of the reduction epilogue is compatible to the original
1659 2021-08-04 liuhongt <hongtao.liu@intel.com>
1662 * config/i386/i386.md (peephole2): Refine predicate from
1663 register_operand to general_reg_operand.
1665 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
1667 * gimple-range-path.h (path_range_query::dump): Mark override.
1669 2021-08-04 Richard Biener <rguenther@suse.de>
1671 PR tree-optimization/101769
1672 * tree-tailcall.c (eliminate_tail_call): Add the created loop
1673 for the first recursion and return it via the new output parameter.
1674 (optimize_tail_call): Pass through new output param.
1675 (tree_optimize_tail_calls_1): After creating all latches,
1676 add the created loop to the loop tree. Do not mark loops for fixup.
1678 2021-08-04 Martin Liska <mliska@suse.cz>
1680 * doc/invoke.texi: Document threader-mode param.
1682 2021-08-04 liuhongt <hongtao.liu@intel.com>
1684 * config/i386/sse.md (cond_fma<mode>): New expander.
1685 (cond_fms<mode>): Ditto.
1686 (cond_fnma<mode>): Ditto.
1687 (cond_fnms<mode>): Ditto.
1689 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
1691 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
1693 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
1695 * config/rs6000/constraints.md: Remove "e" from the list of available
1696 constraint characters.
1698 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
1700 PR gcov-profile/71672
1701 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
1703 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
1705 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
1707 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
1709 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
1710 try XMM31 to avoid vzeroupper.
1712 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
1714 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
1715 -mcpu=neoverse-512tvb.
1716 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
1717 * config/aarch64/aarch64-tune.md: Regenerate.
1718 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
1719 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
1720 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
1721 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
1722 (aarch64_adjust_body_cost): Likewise.
1724 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
1726 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
1727 record issue information for operations that occur in the
1730 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
1732 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
1733 parameter. Detect cases in which an Advanced SIMD MLA would almost
1734 certainly require a MOV.
1735 (aarch64_count_ops): Update accordingly.
1737 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
1739 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
1740 function, split out from...
1741 (aarch64_detect_vector_stmt_subtype): ...here.
1742 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
1744 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
1746 * config/aarch64/aarch64-protos.h (sve_vec_cost):
1747 Add gather_load_x32_cost and gather_load_x64_cost.
1748 * config/aarch64/aarch64.c (generic_sve_vector_cost)
1749 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
1750 accordingly, using the values given by the scalar_load * number
1751 of elements calculation that we used previously.
1752 (aarch64_detect_vector_stmt_subtype): Use the new fields.
1754 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
1756 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
1757 function, split out from...
1758 (aarch64_adjust_body_cost): ...here.
1760 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
1762 * config/aarch64/fractional-cost.h: New file.
1763 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
1764 and cost_fraction.h.
1765 (vec_cost_fraction): New typedef.
1766 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
1767 (aarch64_detect_vector_stmt_subtype): Likewise.
1768 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
1769 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
1771 (aarch64_adjust_body_cost): Likewise.
1772 (aarch64_test_cost_fraction): New function.
1773 (aarch64_run_selftests): Call it.
1775 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
1777 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
1779 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
1781 (aarch64_estimated_poly_value): Likewise. Use the least significant
1782 set bit for the minimum and likely values. Use the most significant
1783 set bit for the maximum value.
1785 2021-08-03 liuhongt <hongtao.liu@intel.com>
1787 * config/i386/sse.md (cond_<insn><mode>): New expander.
1788 (cond_mul<mode>): Ditto.
1790 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
1792 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
1794 2021-08-03 liuhongt <hongtao.liu@intel.com>
1796 * config/i386/sse.md (cond_<insn><mode>):New expander.
1797 (cond_mul<mode>): Ditto.
1798 (cond_div<mode>): Ditto.
1800 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
1802 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
1803 check stack_realign_needed for stack realignment.
1804 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
1805 than the largest integer supported by vector register.
1806 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
1807 (MOVE_MAX): Set to bytes of the largest integer supported by
1809 (STORE_MAX_PIECES): New.
1811 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
1813 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
1814 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
1815 data from one memory location to another.
1817 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
1820 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
1822 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
1824 PR tree-optimization/101724
1825 * params.opt: Remove --param=threader-iterative.
1826 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
1829 2021-08-02 Tom de Vries <tdevries@suse.de>
1831 PR middle-end/101665
1832 * doc/extend.texi (nonnull attribute): Improve documentation.
1834 2021-08-02 Andrew Pinski <apinski@marvell.com>
1836 PR rtl-optimization/101683
1837 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
1839 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
1841 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
1842 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
1843 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
1844 (tree_ssa_phiop_worker): Update call to function above.
1846 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
1849 * config/i386/i386.md (bsr_rex64_1_zext): New.
1850 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
1851 with gen_bsr_rex64_1_zext.
1853 2021-07-31 Jakub Jelinek <jakub@redhat.com>
1856 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
1857 define_insn patterns.
1858 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
1859 Add combine splitters for constant - clz.
1860 (clz<mode>2): Use a temporary pseudo for bsr result.
1862 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
1864 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
1865 _mm_floor_sd, _mm_floor_ss): New.
1867 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
1869 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
1870 _mm_ceil_sd, _mm_ceil_ss): New.
1872 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
1874 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
1875 _mm_blend_ps, _mm_blendv_ps): New.
1877 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
1878 Uroš Bizjak <ubizjak@gmail.com>
1880 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
1881 to generate a conditional move using the carry flag after sub $1.
1882 (peephole2): Eliminate a register-to-register move by inverting
1883 the condition of a conditional move.
1885 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
1887 * config/mmix/mmix.md ("call", "call_value", "*call_real")
1888 ("*call_value_real"): Don't generate rtx mentioning the generic
1889 operands 1 and 2 to "call", and similarly for "call_value".
1890 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
1891 (mmix_print_operand): Use '!' instead of 'p'.
1893 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
1895 * doc/md.texi (call): Correct information about operand 2.
1896 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
1898 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
1900 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
1902 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
1904 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
1906 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
1908 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
1910 (*::get_bb_range): Ditto.
1911 (*::bb_range_p): Ditto.
1912 * gimple-range-cache.h: Change prototypes.
1914 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
1917 * builtins.c (builtin_memcpy_read_str): Change the mode argument
1918 from scalar_int_mode to fixed_size_mode.
1919 (builtin_strncpy_read_str): Likewise.
1920 (gen_memset_value_from_prev): New function.
1921 (builtin_memset_read_str): Change the mode argument from
1922 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
1923 and support CONST_VECTOR.
1924 (builtin_memset_gen_str): Likewise.
1925 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
1927 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
1928 with fixed_size_mode.
1929 (builtin_memset_read_str): Likewise.
1930 * expr.c (widest_int_mode_for_size): Renamed to ...
1931 (widest_fixed_size_mode_for_size): Add a bool argument to
1932 indicate if QI vector mode can be used.
1933 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
1934 instead of widest_int_mode_for_size.
1935 (pieces_addr::adjust): Change the mode argument from
1936 scalar_int_mode to fixed_size_mode.
1937 (op_by_pieces_d): Make m_len read-only. Add a bool member,
1938 m_qi_vector_mode, to indicate that QI vector mode can be used.
1939 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
1940 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
1941 instead of widest_int_mode_for_size.
1942 (op_by_pieces_d::get_usable_mode): Change the mode argument from
1943 scalar_int_mode to fixed_size_mode. Call
1944 widest_fixed_size_mode_for_size instead of
1945 widest_int_mode_for_size.
1946 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
1947 function to return the smallest integer or QI vector mode.
1948 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
1949 instead of widest_int_mode_for_size. Call
1950 smallest_fixed_size_mode_for_size instead of
1951 smallest_int_mode_for_size.
1952 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
1953 indicate that QI vector mode can be used and pass it to
1954 op_by_pieces_d::op_by_pieces_d.
1955 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
1956 instead of widest_int_mode_for_size. Pass memsetp to
1957 widest_fixed_size_mode_for_size to support QI vector mode.
1958 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
1959 (store_by_pieces): Pass memsetp to
1960 store_by_pieces_d::store_by_pieces_d.
1961 (clear_by_pieces_1): Removed.
1962 (clear_by_pieces): Replace clear_by_pieces_1 with
1963 builtin_memset_read_str and pass true to store_by_pieces_d to
1964 support vector mode broadcast.
1965 (string_cst_read_str): Change the mode argument from
1966 scalar_int_mode to fixed_size_mode.
1967 * expr.h (by_pieces_constfn): Change scalar_int_mode to
1969 (by_pieces_prev): Likewise.
1970 * rtl.h (lowpart_subreg_regno): New.
1971 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
1972 simplify_subreg_regno.
1973 * target.def (gen_memset_scratch_rtx): New hook.
1974 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
1975 * doc/tm.texi: Regenerated.
1977 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
1980 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
1981 TARGET_EXPR instead of MODIFY_EXPR.
1983 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
1986 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
1987 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
1988 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
1990 (vec_cmpu<IMSA:mode><mode_i>): New expander.
1992 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
1995 * config/i386/i386-options.c (ix86_option_override_internal):
1996 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
1998 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
2001 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
2002 explicitly dereferencing __a.
2003 (vld1_s64): Likewise.
2004 (vld1_u64): Likewise.
2005 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
2006 and change to VAR13.
2008 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
2010 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
2011 use of m_range_analyzer.
2012 (loop_versioning::lv_dom_walker::before_dom_children): Same.
2013 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
2014 (loop_versioning::prune_loop_conditions): Replace vr_values use
2015 with range_query interface.
2016 (pass_loop_versioning::execute): Use ranger.
2018 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
2021 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
2022 enum values, and emit a warning if they mismatch.
2024 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
2026 * cfgloop.h (as_const): New function.
2027 (class loop_iterator): Rename to ...
2028 (class loops_list): ... this.
2029 (loop_iterator::next): Rename to ...
2030 (loops_list::Iter::fill_curr_loop): ... this and adjust.
2031 (loop_iterator::loop_iterator): Rename to ...
2032 (loops_list::loops_list): ... this and adjust.
2033 (loops_list::Iter): New class.
2034 (loops_list::iterator): New type.
2035 (loops_list::const_iterator): New type.
2036 (loops_list::begin): New function.
2037 (loops_list::end): Likewise.
2038 (loops_list::begin const): Likewise.
2039 (loops_list::end const): Likewise.
2040 (FOR_EACH_LOOP): Remove.
2041 (FOR_EACH_LOOP_FN): Remove.
2042 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
2043 for loop with loops_list instance.
2044 (sort_sibling_loops): Likewise.
2045 (disambiguate_loops_with_multiple_latches): Likewise.
2046 (verify_loop_structure): Likewise.
2047 * cfgloopmanip.c (create_preheaders): Likewise.
2048 (force_single_succ_latches): Likewise.
2049 * config/aarch64/falkor-tag-collision-avoidance.c
2050 (execute_tag_collision_avoidance): Likewise.
2051 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
2052 * config/s390/s390.c (s390_adjust_loops): Likewise.
2053 * doc/loop.texi: Likewise.
2054 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
2055 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
2056 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
2057 (loop_versioning::make_versioning_decisions): Likewise.
2058 * gimple-ssa-split-paths.c (split_paths): Likewise.
2059 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
2060 * graphite.c (canonicalize_loop_form): Likewise.
2061 (graphite_transform_loops): Likewise.
2062 * ipa-fnsummary.c (analyze_function_body): Likewise.
2063 * ipa-pure-const.c (analyze_function): Likewise.
2064 * loop-doloop.c (doloop_optimize_loops): Likewise.
2065 * loop-init.c (loop_optimizer_finalize): Likewise.
2066 (fix_loop_structure): Likewise.
2067 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2068 (move_loop_invariants): Likewise.
2069 * loop-unroll.c (decide_unrolling): Likewise.
2070 (unroll_loops): Likewise.
2071 * modulo-sched.c (sms_schedule): Likewise.
2072 * predict.c (predict_loops): Likewise.
2073 (pass_profile::execute): Likewise.
2074 * profile.c (branch_prob): Likewise.
2075 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
2076 (sel_find_rgns): Likewise.
2077 * tree-cfg.c (replace_loop_annotate): Likewise.
2078 (replace_uses_by): Likewise.
2079 (move_sese_region_to_fn): Likewise.
2080 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
2081 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
2082 * tree-parloops.c (parallelize_loops): Likewise.
2083 * tree-predcom.c (tree_predictive_commoning): Likewise.
2084 * tree-scalar-evolution.c (scev_initialize): Likewise.
2085 (scev_reset): Likewise.
2086 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
2087 * tree-ssa-live.c (remove_unused_locals): Likewise.
2088 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
2089 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2090 (tree_ssa_lim_initialize): Likewise.
2091 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
2092 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
2093 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
2094 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
2095 (free_numbers_of_iterations_estimates): Likewise.
2096 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
2097 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
2098 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
2099 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
2100 (pass_scev_cprop::execute): Likewise.
2101 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
2102 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
2103 * tree-ssa-threadupdate.c
2104 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
2105 * tree-vectorizer.c (vectorize_loops): Likewise.
2106 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
2108 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
2110 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
2111 generating a VOIDmode register for e.g the
2112 function_arg_info::end_marker.
2114 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
2116 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
2117 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
2118 (cc mode_attr): Similarly.
2119 (ccz subst_attr): Similarly.
2120 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
2121 * config/h8300/testcompare.md: Remove various cc0 based patterns
2122 that had been commented out. Add pattern to set CCZ from a bit
2125 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
2126 Julian Brown <julian@codesourcery.com>
2127 Kwok Cheung Yeung <kcy@codesourcery.com>
2129 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
2130 'update_stmt' after modification.
2131 (pass_oacc_loop_designation): New function, extracted out of...
2132 (pass_oacc_device_lower): ... this.
2133 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
2134 (make_pass_oacc_loop_designation): New
2135 * passes.def: Add it.
2136 * tree-parloops.c (create_parallel_loop): Adjust.
2137 * tree-pass.h (make_pass_oacc_loop_designation): New.
2139 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
2141 * flag-types.h (enum threader_mode): New.
2142 * params.opt: Add entry for --param=threader-mode.
2143 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
2144 (class back_threader): New.
2145 (back_threader::back_threader): New.
2146 (back_threader::~back_threader): New.
2147 (back_threader::maybe_register_path): New.
2148 (back_threader::find_taken_edge): New.
2149 (back_threader::find_taken_edge_switch): New.
2150 (back_threader::find_taken_edge_cond): New.
2151 (back_threader::resolve_def): New.
2152 (back_threader::resolve_phi): New.
2153 (back_threader::find_paths_to_names): New.
2154 (back_threader::find_paths): New.
2157 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
2158 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
2159 (pass_thread_jumps::execute): Abstract out code...
2160 (try_thread_blocks): ...here.
2161 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
2162 Abstract out threading candidate code to...
2163 (single_succ_to_potentially_threadable_block): ...here.
2164 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
2166 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
2167 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
2168 Return bool from register_jump_thread.
2170 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
2172 * target.def: in0 and in1 do not need to be registers.
2173 * doc/tm.texi: Regenerate.
2175 2021-07-29 liuhongt <hongtao.liu@intel.com>
2178 * config/i386/i386.c (ix86_widen_mult_cost): New function.
2179 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
2182 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
2185 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
2186 (rs6000_preferred_doloop_mode): New hook.
2187 * doc/tm.texi: Regenerate.
2188 * doc/tm.texi.in: Add hook preferred_doloop_mode.
2189 * target.def (preferred_doloop_mode): New hook.
2190 * targhooks.c (default_preferred_doloop_mode): New hook.
2191 * targhooks.h (default_preferred_doloop_mode): New hook.
2192 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
2193 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
2194 and compute_doloop_base_on_mode.
2196 2021-07-28 Martin Sebor <msebor@redhat.com>
2198 PR middle-end/101494
2199 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
2200 and size computation.
2202 2021-07-28 Martin Sebor <msebor@redhat.com>
2204 PR middle-end/101601
2205 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
2207 Handle pointers to functions.
2209 2021-07-28 Martin Sebor <msebor@redhat.com>
2211 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
2212 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
2213 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
2214 (access_ref::access_ref): Same.
2215 (access_ref::phi): Same.
2216 (access_ref::get_ref): Same.
2217 (access_ref::size_remaining): Same.
2218 (access_ref::offset_in_range): Same.
2219 (access_ref::add_offset): Same.
2220 (access_ref::inform_access): Same.
2221 (ssa_name_limit_t::visit_phi): Same.
2222 (ssa_name_limit_t::leave_phi): Same.
2223 (ssa_name_limit_t::next): Same.
2224 (ssa_name_limit_t::next_phi): Same.
2225 (ssa_name_limit_t::~ssa_name_limit_t): Same.
2226 (pointer_query::pointer_query): Same.
2227 (pointer_query::get_ref): Same.
2228 (pointer_query::put_ref): Same.
2229 (pointer_query::flush_cache): Same.
2230 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
2231 (check_nul_terminated_array): Same.
2232 (unterminated_array): Same.
2233 (maybe_warn_for_bound): Same.
2234 (check_read_access): Same.
2235 (warn_for_access): Same.
2236 (get_size_range): Same.
2237 (check_access): Same.
2238 (gimple_call_alloc_size): Move to tree.c.
2239 (gimple_parm_array_size): Move to pointer-query.cc.
2240 (get_offset_range): Same.
2241 (gimple_call_return_array): Same.
2242 (handle_min_max_size): Same.
2243 (handle_array_ref): Same.
2244 (handle_mem_ref): Same.
2245 (compute_objsize): Same.
2246 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
2247 (call_dealloc_argno): Same.
2248 (fndecl_dealloc_argno): Same.
2249 (new_delete_mismatch_p): Same.
2250 (matching_alloc_calls_p): Same.
2251 (warn_dealloc_offset): Same.
2252 (maybe_emit_free_warning): Same.
2253 * builtins.h (check_nul_terminated_array): Move to
2254 gimple-ssa-warn-access.h.
2255 (check_nul_terminated_array): Same.
2256 (warn_string_no_nul): Same.
2257 (unterminated_array): Same.
2258 (class ssa_name_limit_t): Same.
2259 (class pointer_query): Same.
2260 (struct access_ref): Same.
2261 (class range_query): Same.
2262 (struct access_data): Same.
2263 (gimple_call_alloc_size): Same.
2264 (gimple_parm_array_size): Same.
2265 (compute_objsize): Same.
2266 (class access_data): Same.
2267 (maybe_emit_free_warning): Same.
2268 * calls.c (initialize_argument_information): Remove call to
2269 maybe_emit_free_warning.
2270 * gimple-array-bounds.cc: Include new header..
2271 * gimple-fold.c: Same.
2272 * gimple-ssa-sprintf.c: Same.
2273 * gimple-ssa-warn-restrict.c: Same.
2274 * passes.def: Add pass_warn_access.
2275 * tree-pass.h (make_pass_warn_access): Declare.
2276 * tree-ssa-strlen.c: Include new headers.
2277 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
2278 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
2279 * gimple-ssa-warn-access.cc: New file.
2280 * gimple-ssa-warn-access.h: New file.
2281 * pointer-query.cc: New file.
2282 * pointer-query.h: New file.
2284 2021-07-28 Jakub Jelinek <jakub@redhat.com>
2286 PR middle-end/101624
2287 * ubsan.c (maybe_instrument_pointer_overflow,
2288 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
2289 PARM_DECLs or RESULT_DECLs.
2290 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
2292 2021-07-28 Jakub Jelinek <jakub@redhat.com>
2294 PR middle-end/101642
2295 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
2296 to type of bswap16 for comparison.
2297 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
2299 2021-07-28 Richard Biener <rguenther@suse.de>
2301 PR tree-optimization/101615
2302 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
2303 at CTOR SLP graph entries.
2305 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2307 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
2308 Add "r,w" alternative.
2310 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
2313 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
2314 AVX_U128_DIRTY when all bits are zero.
2316 2021-07-28 Richard Biener <rguenther@suse.de>
2318 PR tree-optimization/101615
2319 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
2320 external nodes cannot be permuted so make them perm_out 0.
2322 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
2325 * config.in: Regenerate.
2326 * config/gcn/gcn-hsa.h (A_FIJI): New define.
2327 (A_900): New define.
2328 (A_906): New define.
2329 (A_908): New define.
2330 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
2331 * config/gcn/gcn.c (output_file_start): Adjust attributes according
2332 to the assembler capabilities.
2333 * config/gcn/mkoffload.c (main): Likewise.
2334 * configure: Regenerate.
2335 * configure.ac: Add tests for LLVM assembler attribute features.
2337 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
2339 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
2340 cond_false and cond_true on branches.
2342 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
2344 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
2347 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
2349 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
2351 2021-07-28 Jakub Jelinek <jakub@redhat.com>
2354 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
2355 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
2356 and has special !TARGET_AVX512VL expansion.
2357 (vashrv2di3<mask_name>): Rename to ...
2358 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
2359 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
2361 2021-07-28 Martin Uecker <muecker@gwdg.de>
2363 * calls.c (maybe_warn_rdwr_sizes): Correct argument
2364 numbers in warning that were switched.
2366 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
2368 PR tree-optimization/101596
2369 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
2370 by using new_type's precision instead.
2372 2021-07-28 liuhongt <hongtao.liu@intel.com>
2375 * config/i386/i386.h (processor_costs): Add new member
2377 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
2378 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
2379 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
2380 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
2381 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
2382 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
2383 generic_cost, core_cost): Initialize integer_to_sse same value
2385 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
2386 * config/i386/i386.c (ix86_builtin_vectorization_cost):
2387 Use integer_to_sse instead of sse_op to calculate the cost of
2390 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
2392 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
2394 (write_init_file): Call write_ovld_static_init.
2396 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
2398 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
2400 (write_init_file): Call write_bif_static_init.
2402 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
2404 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
2405 (TYPE_MAP_SIZE): New macro.
2406 (type_map): New initialized variable.
2407 (typemap_cmp): New function.
2408 (write_type_node): Likewise.
2409 (write_fntype_init): Implement.
2411 2021-07-27 Martin Sebor <msebor@redhat.com>
2413 PR tree-optimization/101584
2414 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
2415 (check_defs): Call it.
2417 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
2419 * tree-ssa-dom.c (dom_jump_threader_simplifier):
2420 Put avail_exprs_stack in the class, instead of passing it to
2421 jump_threader_simplifier.
2422 (dom_jump_threader_simplifier::simplify): Add state argument.
2423 (dom_opt_dom_walker): Add state.
2424 (pass_dominator::execute): Pass state to threader.
2425 (dom_opt_dom_walker::before_dom_children): Use state.
2426 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
2428 (jump_threader::record_temporary_equivalences_from_phis):
2429 Register equivalences through the state variable.
2430 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
2431 Record ranges in a statement through the state variable.
2432 (jump_threader::simplify_control_stmt_condition): Pass state to
2434 (jump_threader::simplify_control_stmt_condition_1): Same.
2435 (jump_threader::thread_around_empty_blocks): Remove obsolete
2437 (jump_threader::thread_through_normal_block): Record equivalences
2438 on edge through the state variable.
2439 (jump_threader::thread_across_edge): Abstract state pushing.
2440 (jt_state::jt_state): New.
2441 (jt_state::push): New.
2442 (jt_state::pop): New.
2443 (jt_state::register_equiv): New.
2444 (jt_state::record_ranges_from_stmt): New.
2445 (jt_state::register_equivs_on_edge): New.
2446 (jump_threader_simplifier::jump_threader_simplifier): Move from
2448 (jump_threader_simplifier::simplify): Add state argument.
2449 * tree-ssa-threadedge.h (class jt_state): New.
2450 (class jump_threader): Add state to constructor.
2451 (class jump_threader_simplifier): Add state to simplify. Remove
2452 avail_exprs_stack from class.
2453 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
2455 (vrp_jump_threader::vrp_jump_threader): Add state.
2456 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
2458 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
2460 * Makefile.in (OBJS): Add gimple-range-path.o.
2461 * gimple-range-path.cc: New file.
2462 * gimple-range-path.h: New file.
2464 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
2466 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
2467 inside vec_duplicate for all patterns.
2468 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
2469 Push sign/zero-extension inside vec_duplicate.
2471 2021-07-27 Richard Biener <rguenther@suse.de>
2473 PR tree-optimization/101573
2474 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
2475 looking at uninitialized PHI arg defs in some constrained cases.
2476 (warn_uninitialized_vars): Call it.
2477 (execute_early_warn_uninitialized): Calculate dominators.
2479 2021-07-27 Richard Biener <rguenther@suse.de>
2481 PR tree-optimization/39821
2482 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
2483 vector_stmt for widening arithmetic.
2484 (vectorizable_conversion): Adjust.
2486 2021-07-27 Martin Jambor <mjambor@suse.cz>
2488 * cgraph.h (ipa_replace_map): New field force_load_ref.
2489 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
2490 aded new flag load_dereferenced, adjusted comments.
2491 (ipa_get_param_dereferenced): New function.
2492 (ipa_set_param_dereferenced): Likewise.
2493 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
2494 * ipa-cp.c: Include gimple.h.
2495 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
2496 (get_replacement_map): New parameter force_load_ref, set the
2497 appropriate flag in ipa_replace_map if set.
2498 (struct symbol_and_index_together): New type.
2499 (adjust_refs_in_act_callers): New function.
2500 (adjust_references_in_caller): Likewise.
2501 (create_specialized_node): When appropriate, call
2502 adjust_references_in_caller and force only load references.
2503 * ipa-prop.c (load_from_dereferenced_name): New function.
2504 (ipa_analyze_controlled_uses): Also detect loads from a
2505 dereference, harden testing of call statements.
2506 (ipa_write_node_info): Stream the dereferenced flag.
2507 (ipa_read_node_info): Likewise.
2508 (ipa_set_jf_constant): Also create refdesc when jump function
2509 references a variable.
2510 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
2511 also on references of variables and return a symtab_node. Adjust
2513 (propagate_controlled_uses): Also remove references to VAR_DECLs.
2515 2021-07-27 Jakub Jelinek <jakub@redhat.com>
2517 PR middle-end/101586
2518 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
2519 positions above or equal to sz except for diagnostics of flexible
2522 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
2524 PR tree-optimization/78888
2525 * gimple-range-fold.cc (get_letter_range): New.
2526 (fold_using_range::range_of_builtin_call): Call get_letter_range.
2528 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
2530 PR tree-optimization/78888
2531 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
2532 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
2534 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
2535 Marc Glisse <marc.glisse@inria.fr>
2537 * match.pd (rotate): Simplify equality/inequality of rotations.
2538 (bswap): Simplify equality/inequality tests of byte swapping.
2540 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
2542 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
2545 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
2547 * range-op.cc (operator_lshift::fold_range): Pass rel to
2548 base class fold_range.
2549 (operator_rshift::fold_range): Same.
2551 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
2554 * toplev.h (min_align_loops_log): Remove declaration.
2555 (min_align_jumps_log, min_align_labels_log): Likewise.
2556 (min_align_functions_log): Likewise.
2558 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
2560 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
2562 (execute_vrp): Abstract out simplification of conditionals...
2563 (simplify_casted_conds): ...here.
2565 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
2567 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
2568 Add gimple argument.
2569 (array_bounds_checker::check_array_ref): Same.
2570 (array_bounds_checker::check_addr_expr): Same.
2571 (array_bounds_checker::check_array_bounds): Pass statement to
2572 check_array_bounds and check_addr_expr.
2573 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
2574 (check_addr_expr): Same.
2575 (get_value_range): Same.
2577 2021-07-26 Tamar Christina <tamar.christina@arm.com>
2579 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
2580 (sdot_prod, udot_prod): ... This.
2581 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
2583 (<sur>dot_prod<vsi2qi>): ... this.
2584 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
2585 Change operands order.
2586 (<sur>sadv16qi): Use new operands order.
2587 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
2588 vdotq_s32): Use new RTL ordering.
2590 2021-07-26 Tamar Christina <tamar.christina@arm.com>
2592 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
2593 aarch64_types_ternop_suss_qualifiers): New.
2594 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
2595 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
2596 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
2598 2021-07-23 Jakub Jelinek <jakub@redhat.com>
2600 PR rtl-optimization/101562
2601 * expmed.c (store_integral_bit_field): Only use movstrict_optab
2602 if the operand isn't paradoxical.
2604 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
2606 * gimple-array-bounds.h (class array_bounds_checker): Change
2607 ranges type to range_query.
2609 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
2611 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
2612 __builtin_memcpy instead of constructing
2613 __builtin_aarch64_simd_oi one vector at a time.
2614 (vst1_u64_x2): Likewise.
2615 (vst1_f64_x2): Likewise.
2616 (vst1_s8_x2): Likewise.
2617 (vst1_p8_x2): Likewise.
2618 (vst1_s16_x2): Likewise.
2619 (vst1_p16_x2): Likewise.
2620 (vst1_s32_x2): Likewise.
2621 (vst1_u8_x2): Likewise.
2622 (vst1_u16_x2): Likewise.
2623 (vst1_u32_x2): Likewise.
2624 (vst1_f16_x2): Likewise.
2625 (vst1_f32_x2): Likewise.
2626 (vst1_p64_x2): Likewise.
2627 (vst1q_s8_x2): Likewise.
2628 (vst1q_p8_x2): Likewise.
2629 (vst1q_s16_x2): Likewise.
2630 (vst1q_p16_x2): Likewise.
2631 (vst1q_s32_x2): Likewise.
2632 (vst1q_s64_x2): Likewise.
2633 (vst1q_u8_x2): Likewise.
2634 (vst1q_u16_x2): Likewise.
2635 (vst1q_u32_x2): Likewise.
2636 (vst1q_u64_x2): Likewise.
2637 (vst1q_f16_x2): Likewise.
2638 (vst1q_f32_x2): Likewise.
2639 (vst1q_f64_x2): Likewise.
2640 (vst1q_p64_x2): Likewise.
2642 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
2644 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
2645 __builtin_memcpy instead of constructing
2646 __builtin_aarch64_simd_ci one vector at a time.
2647 (vst1_u64_x3): Likewise.
2648 (vst1_f64_x3): Likewise.
2649 (vst1_s8_x3): Likewise.
2650 (vst1_p8_x3): Likewise.
2651 (vst1_s16_x3): Likewise.
2652 (vst1_p16_x3): Likewise.
2653 (vst1_s32_x3): Likewise.
2654 (vst1_u8_x3): Likewise.
2655 (vst1_u16_x3): Likewise.
2656 (vst1_u32_x3): Likewise.
2657 (vst1_f16_x3): Likewise.
2658 (vst1_f32_x3): Likewise.
2659 (vst1_p64_x3): Likewise.
2660 (vst1q_s8_x3): Likewise.
2661 (vst1q_p8_x3): Likewise.
2662 (vst1q_s16_x3): Likewise.
2663 (vst1q_p16_x3): Likewise.
2664 (vst1q_s32_x3): Likewise.
2665 (vst1q_s64_x3): Likewise.
2666 (vst1q_u8_x3): Likewise.
2667 (vst1q_u16_x3): Likewise.
2668 (vst1q_u32_x3): Likewise.
2669 (vst1q_u64_x3): Likewise.
2670 (vst1q_f16_x3): Likewise.
2671 (vst1q_f32_x3): Likewise.
2672 (vst1q_f64_x3): Likewise.
2673 (vst1q_p64_x3): Likewise.
2675 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
2678 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
2679 hard register when LRA is in progress.
2681 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
2683 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
2684 __builtin_memcpy instead of using a union.
2685 (vst1q_s8_x4): Likewise.
2686 (vst1_s16_x4): Likewise.
2687 (vst1q_s16_x4): Likewise.
2688 (vst1_s32_x4): Likewise.
2689 (vst1q_s32_x4): Likewise.
2690 (vst1_u8_x4): Likewise.
2691 (vst1q_u8_x4): Likewise.
2692 (vst1_u16_x4): Likewise.
2693 (vst1q_u16_x4): Likewise.
2694 (vst1_u32_x4): Likewise.
2695 (vst1q_u32_x4): Likewise.
2696 (vst1_f16_x4): Likewise.
2697 (vst1q_f16_x4): Likewise.
2698 (vst1_f32_x4): Likewise.
2699 (vst1q_f32_x4): Likewise.
2700 (vst1_p8_x4): Likewise.
2701 (vst1q_p8_x4): Likewise.
2702 (vst1_p16_x4): Likewise.
2703 (vst1q_p16_x4): Likewise.
2704 (vst1_s64_x4): Likewise.
2705 (vst1_u64_x4): Likewise.
2706 (vst1_p64_x4): Likewise.
2707 (vst1q_s64_x4): Likewise.
2708 (vst1q_u64_x4): Likewise.
2709 (vst1q_p64_x4): Likewise.
2710 (vst1_f64_x4): Likewise.
2711 (vst1q_f64_x4): Likewise.
2713 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
2715 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
2716 instead of constructing __builtin_aarch64_simd_oi one vector
2718 (vst2_u64): Likewise.
2719 (vst2_f64): Likewise.
2720 (vst2_s8): Likewise.
2721 (vst2_p8): Likewise.
2722 (vst2_s16): Likewise.
2723 (vst2_p16): Likewise.
2724 (vst2_s32): Likewise.
2725 (vst2_u8): Likewise.
2726 (vst2_u16): Likewise.
2727 (vst2_u32): Likewise.
2728 (vst2_f16): Likewise.
2729 (vst2_f32): Likewise.
2730 (vst2_p64): Likewise.
2731 (vst2q_s8): Likewise.
2732 (vst2q_p8): Likewise.
2733 (vst2q_s16): Likewise.
2734 (vst2q_p16): Likewise.
2735 (vst2q_s32): Likewise.
2736 (vst2q_s64): Likewise.
2737 (vst2q_u8): Likewise.
2738 (vst2q_u16): Likewise.
2739 (vst2q_u32): Likewise.
2740 (vst2q_u64): Likewise.
2741 (vst2q_f16): Likewise.
2742 (vst2q_f32): Likewise.
2743 (vst2q_f64): Likewise.
2744 (vst2q_p64): Likewise.
2746 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
2748 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
2749 instead of constructing __builtin_aarch64_simd_ci one vector
2751 (vst3_u64): Likewise.
2752 (vst3_f64): Likewise.
2753 (vst3_s8): Likewise.
2754 (vst3_p8): Likewise.
2755 (vst3_s16): Likewise.
2756 (vst3_p16): Likewise.
2757 (vst3_s32): Likewise.
2758 (vst3_u8): Likewise.
2759 (vst3_u16): Likewise.
2760 (vst3_u32): Likewise.
2761 (vst3_f16): Likewise.
2762 (vst3_f32): Likewise.
2763 (vst3_p64): Likewise.
2764 (vst3q_s8): Likewise.
2765 (vst3q_p8): Likewise.
2766 (vst3q_s16): Likewise.
2767 (vst3q_p16): Likewise.
2768 (vst3q_s32): Likewise.
2769 (vst3q_s64): Likewise.
2770 (vst3q_u8): Likewise.
2771 (vst3q_u16): Likewise.
2772 (vst3q_u32): Likewise.
2773 (vst3q_u64): Likewise.
2774 (vst3q_f16): Likewise.
2775 (vst3q_f32): Likewise.
2776 (vst3q_f64): Likewise.
2777 (vst3q_p64): Likewise.
2779 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
2781 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
2782 instead of constructing __builtin_aarch64_simd_xi one vector
2784 (vst4_u64): Likewise.
2785 (vst4_f64): Likewise.
2786 (vst4_s8): Likewise.
2787 (vst4_p8): Likewise.
2788 (vst4_s16): Likewise.
2789 (vst4_p16): Likewise.
2790 (vst4_s32): Likewise.
2791 (vst4_u8): Likewise.
2792 (vst4_u16): Likewise.
2793 (vst4_u32): Likewise.
2794 (vst4_f16): Likewise.
2795 (vst4_f32): Likewise.
2796 (vst4_p64): Likewise.
2797 (vst4q_s8): Likewise.
2798 (vst4q_p8): Likewise.
2799 (vst4q_s16): Likewise.
2800 (vst4q_p16): Likewise.
2801 (vst4q_s32): Likewise.
2802 (vst4q_s64): Likewise.
2803 (vst4q_u8): Likewise.
2804 (vst4q_u16): Likewise.
2805 (vst4q_u32): Likewise.
2806 (vst4q_u64): Likewise.
2807 (vst4q_f16): Likewise.
2808 (vst4q_f32): Likewise.
2809 (vst4q_f64): Likewise.
2810 (vst4q_p64): Likewise.
2812 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
2814 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
2815 instead of constructing __builtin_aarch64_simd_oi one vector
2817 (vtbx4_u8): Likewise.
2818 (vtbx4_p8): Likewise.
2820 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
2822 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
2823 instead of constructing __builtin_aarch64_simd_oi one vector
2825 (vtbl3_u8): Likewise.
2826 (vtbl3_p8): Likewise.
2827 (vtbl4_s8): Likewise.
2828 (vtbl4_u8): Likewise.
2829 (vtbl4_p8): Likewise.
2831 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
2833 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
2834 instead of constructing __builtin_aarch64_simd_oi one vector
2836 (vqtbx2_u8): Likewise.
2837 (vqtbx2_p8): Likewise.
2838 (vqtbx2q_s8): Likewise.
2839 (vqtbx2q_u8): Likewise.
2840 (vqtbx2q_p8): Likewise.
2841 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
2842 __builtin_aarch64_simd_ci one vector at a time.
2843 (vqtbx3_u8): Likewise.
2844 (vqtbx3_p8): Likewise.
2845 (vqtbx3q_s8): Likewise.
2846 (vqtbx3q_u8): Likewise.
2847 (vqtbx3q_p8): Likewise.
2848 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
2849 __builtin_aarch64_simd_xi one vector at a time.
2850 (vqtbx4_u8): Likewise.
2851 (vqtbx4_p8): Likewise.
2852 (vqtbx4q_s8): Likewise.
2853 (vqtbx4q_u8): Likewise.
2854 (vqtbx4q_p8): Likewise.
2856 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
2858 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
2859 instead of constructing __builtin_aarch64_simd_oi one vector
2861 (vqtbl2_u8): Likewise.
2862 (vqtbl2_p8): Likewise.
2863 (vqtbl2q_s8): Likewise.
2864 (vqtbl2q_u8): Likewise.
2865 (vqtbl2q_p8): Likewise.
2866 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
2867 __builtin_aarch64_simd_ci one vector at a time.
2868 (vqtbl3_u8): Likewise.
2869 (vqtbl3_p8): Likewise.
2870 (vqtbl3q_s8): Likewise.
2871 (vqtbl3q_u8): Likewise.
2872 (vqtbl3q_p8): Likewise.
2873 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
2874 __builtin_aarch64_simd_xi one vector at a time.
2875 (vqtbl4_u8): Likewise.
2876 (vqtbl4_p8): Likewise.
2877 (vqtbl4q_s8): Likewise.
2878 (vqtbl4q_u8): Likewise.
2879 (vqtbl4q_p8): Likewise.
2881 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
2884 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
2886 2021-07-22 Andrew Pinski <apinski@marvell.com>
2888 PR tree-optimization/10153
2889 * tree-tailcall.c (create_tailcall_accumulator):
2890 Don't call fold_convert as the type should be correct already.
2891 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
2892 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
2894 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
2896 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
2897 varying_p check for null/non-null check.
2899 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
2901 PR tree-optimization/101511
2902 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
2903 is in ssa2's equiv set, and don't trap if so.
2905 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
2907 PR tree-optimization/101497
2908 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
2911 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
2913 PR tree-optimization/101496
2914 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
2915 first, then vrp_visit_cond_Stmt.
2917 2021-07-22 liuhongt <hongtao.liu@intel.com>
2919 * config/i386/i386-expand.c
2920 (ix86_broadcast_from_integer_constant): Rename to ..
2921 (ix86_broadcast_from_constant): .. this, and extend it to
2923 (ix86_expand_vector_move): Extend to float mode.
2924 * config/i386/i386-features.c
2925 (replace_constant_pool_with_broadcast): Remove.
2926 (remove_partial_avx_dependency_gate): Ditto.
2927 (constant_pool_broadcast): Ditto.
2928 (class pass_constant_pool_broadcast): Ditto.
2929 (make_pass_constant_pool_broadcast): Ditto.
2930 (remove_partial_avx_dependency): Adjust gate.
2931 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
2932 * config/i386/i386-protos.h
2933 (make_pass_constant_pool_broadcast): Remove.
2935 2021-07-22 liuhongt <hongtao.liu@intel.com>
2937 * config/i386/constraints.md (Wb): New constraint.
2939 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
2941 (*ashlqi3_1): Ditto.
2942 (*<insn><mode>3_1): Split to ..
2943 (*ashr<mode>3_1): this, ...
2944 (*lshr<mode>3_1): and this, also extend this pattern to avx512
2946 (*<insn><mode>3_1): Split to ..
2947 (*ashr<mode>3_1): this, ...
2948 (*lshrqi3_1): and this, also extend this pattern to avx512
2950 (*lshrhi3_1): And this, also extend this pattern to avx512
2952 * config/i386/sse.md (k<code><mode>): New define_split after
2953 it to convert generic shift pattern to mask shift ones.
2955 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
2956 Joseph Myers <joseph@codesourcery.com>
2957 Cesar Philippidis <cesar@codesourcery.com>
2959 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
2960 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
2962 * tree-pretty-print.c (dump_omp_clause): Likewise.
2963 * omp-general.c (oacc_verify_routine_clauses): Likewise.
2964 * gimplify.c (gimplify_scan_omp_clauses)
2965 (gimplify_adjust_omp_clauses): Likewise.
2966 * tree-nested.c (convert_nonlocal_omp_clauses)
2967 (convert_local_omp_clauses): Likewise.
2968 * omp-low.c (scan_sharing_clauses): Likewise.
2969 * omp-offload.c (execute_oacc_device_lower): Update.
2971 2021-07-21 Martin Sebor <msebor@redhat.com>
2973 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
2975 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
2977 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
2980 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
2982 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
2984 (write_fntype_init): New stub function.
2985 (write_init_bif_table): Likewise.
2986 (write_init_ovld_table): New function.
2987 (write_init_file): Implement.
2989 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
2991 * config/rs6000/rs6000-gen-builtins.c
2992 (write_autogenerated_header): New function.
2993 (write_decls): Likewise.
2994 (write_extern_fntype): New callback function.
2995 (write_header_file): Implement.
2997 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
2999 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
3002 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3004 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
3006 (complete_base_type): Likewise.
3007 (construct_fntype_id): Likewise.
3008 (parse_bif_entry): Call contruct_fntype_id.
3009 (parse_ovld_entry): Likewise.
3011 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3013 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
3014 (MAXOVLDSTANZAS): New macro.
3015 (ovld_stanzas): New variable.
3016 (curr_ovld_stanza): Likewise.
3017 (MAXOVLDS): New macro.
3018 (ovlddata): New struct.
3019 (ovlds): New variable.
3020 (curr_ovld): Likewise.
3021 (max_ovld_args): Likewise.
3022 (parse_ovld_entry): New function.
3023 (parse_ovld_stanza): Likewise.
3024 (parse_ovld): Implement.
3026 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3028 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
3031 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3033 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
3034 (parse_prototype): Implement.
3036 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3038 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
3039 (curr_bif_stanza): New variable.
3040 (stanza_entry): New struct.
3041 (stanza_map): New initialized variable.
3042 (enable_string): Likewise.
3043 (fnkinds): New enum.
3044 (typelist): New struct.
3045 (attrinfo): Likewise.
3046 (MAXRESTROPNDS): New macro.
3047 (prototype): New struct.
3048 (MAXBIFS): New macro.
3049 (bifdata): New struct.
3050 (bifs): New variable.
3051 (curr_bif): Likewise.
3052 (bif_order): Likewise.
3053 (bif_index): Likewise.
3054 (fatal): New function.
3055 (stanza_name_to_stanza): Likewise.
3056 (parse_bif_attrs): New stub function.
3057 (parse_prototype): Likewise.
3058 (parse_bif_entry): New function.
3059 (parse_bif_stanza): Likewise.
3060 (parse_bif): Implement.
3061 (set_bif_order): New function.
3062 (create_bif_order): Implement.
3064 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3066 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
3067 (num_bifs): New variable.
3068 (num_ovld_stanzas): Likewise.
3069 (num_ovlds): Likewise.
3070 (parse_codes): New enum.
3071 (bif_rbt): New variable.
3072 (ovld_rbt): Likewise.
3073 (fntype_rbt): Likewise.
3074 (bifo_rbt): Likewise.
3075 (parse_bif): New stub function.
3076 (create_bif_order): Likewise.
3077 (parse_ovld): Likewise.
3078 (write_header_file): Likewise.
3079 (write_init_file): Likewise.
3080 (write_defines_file): Likewise.
3081 (delete_output_files): New function.
3084 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
3087 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
3088 from CRC32 _builtin functions.
3090 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
3092 * coverage.c (build_gcov_info_var_registration): Mark the object placed
3093 in the linker set as referenced so that it does not get optimized away.
3095 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
3098 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
3100 * config.gcc (riscv*-*-*): Detect which python is available.
3102 2021-07-21 Jakub Jelinek <jakub@redhat.com>
3104 PR middle-end/101535
3105 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
3106 contexts in which decl isn't privatized and for ORT_TARGET return
3107 false if decl is mapped.
3109 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
3111 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
3112 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
3113 has been successfully unrolled.
3115 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
3117 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
3118 exit condition if no tail loop is needed, and if the original exit
3119 condition should therefore be kept as-is.
3120 (tree_transform_and_unroll_loop): Handle that case here too.
3122 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
3124 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
3126 (free_data_refs): Likewise.
3127 * tree-data-ref.h (free_dependence_relations): Likewise.
3128 (free_data_refs): Likewise.
3129 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
3131 (struct component): Likewise.
3132 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
3133 (pcom_worker::~pcom_worker): Likewise.
3134 (pcom_worker::release_chain): Adjust as auto_vec changes.
3135 (pcom_worker::loop): Rename to ...
3136 (pcom_worker::m_loop): ... this.
3137 (pcom_worker::datarefs): Rename to ...
3138 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
3139 (pcom_worker::dependences): Rename to ...
3140 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
3141 (pcom_worker::chains): Rename to ...
3142 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
3143 (pcom_worker::looparound_phis): Rename to ...
3144 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
3146 (pcom_worker::cache): Rename to ...
3147 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
3148 (pcom_worker::release_chain): Adjust for auto_vec changes.
3149 (pcom_worker::release_chains): Adjust for auto_vec and renaming
3151 (release_component): Remove.
3152 (release_components): Adjust for release_component removal.
3153 (component_of): Adjust to use vec.
3154 (merge_comps): Likewise.
3155 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
3156 (pcom_worker::determine_offset): Likewise.
3157 (class comp_ptrs): Remove.
3158 (pcom_worker::split_data_refs_to_components): Adjust for renaming
3159 changes, for comp_ptrs removal with auto_vec.
3160 (pcom_worker::suitable_component_p): Adjust for renaming changes.
3161 (pcom_worker::filter_suitable_components): Adjust for release_component
3163 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
3164 (pcom_worker::find_looparound_phi): Likewise.
3165 (pcom_worker::add_looparound_copies): Likewise.
3166 (pcom_worker::determine_roots_comp): Likewise.
3167 (pcom_worker::single_nonlooparound_use): Likewise.
3168 (pcom_worker::execute_pred_commoning_chain): Likewise.
3169 (pcom_worker::execute_pred_commoning): Likewise.
3170 (pcom_worker::try_combine_chains): Likewise.
3171 (pcom_worker::prepare_initializers_chain): Likewise.
3172 (pcom_worker::prepare_initializers): Likewise.
3173 (pcom_worker::prepare_finalizers_chain): Likewise.
3174 (pcom_worker::prepare_finalizers): Likewise.
3175 (pcom_worker::tree_predictive_commoning_loop): Likewise.
3177 2021-07-20 Martin Sebor <msebor@redhat.com>
3179 PR middle-end/101397
3180 * builtins.c (gimple_call_return_array): Add argument. Correct
3181 offsets for memchr, mempcpy, stpcpy, and stpncpy.
3182 (compute_objsize_r): Adjust offset computation for argument returning
3185 2021-07-20 Martin Sebor <msebor@redhat.com>
3187 PR middle-end/101300
3188 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
3190 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
3192 * function.c (assign_parm_setup_block): Use adjust_address instead
3193 of change_address to preserve MEM_EXPR and friends.
3195 2021-07-20 Martin Sebor <msebor@redhat.com>
3197 * cfgloop.h (single_likely_exit): Adjust by-value argument to
3199 * cfgloopanal.c (single_likely_exit): Same.
3200 * cgraph.h (struct cgraph_node): Same.
3201 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
3202 * genautomata.c (merge_states): Same.
3203 * genextract.c (VEC_char_to_string): Same.
3204 * genmatch.c (dt_node::gen_kids_1): Same.
3205 (walk_captures): Adjust by-value argument to by-reference.
3206 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
3207 to by-const-reference.
3208 * gimple.c (gimple_build_call_vec): Same.
3209 (gimple_build_call_internal_vec): Same.
3210 (gimple_build_switch): Same.
3211 (sort_case_labels): Same.
3212 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
3214 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
3216 (gimple_build_call_internal_vec): Same.
3217 (gimple_build_switch): Same.
3218 (sort_case_labels): Same.
3219 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
3221 * haifa-sched.c (calc_priorities): Adjust by-value argument to
3223 (sched_init_luids): Same.
3224 (haifa_init_h_i_d): Same.
3225 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
3226 (adjust_callers_for_value_intersection): Adjust by-value argument to
3228 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
3230 (find_more_contexts_for_caller_subset): Same.
3231 (find_aggregate_values_for_callers_subset): Same.
3232 (copy_useful_known_contexts): Same.
3233 * ipa-fnsummary.c (remap_edge_summaries): Same.
3234 (remap_freqcounting_predicate): Same.
3235 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
3237 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
3238 to by-const-reference.
3239 * ipa-predicate.h (predicate::remap_after_inlining): Same.
3240 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
3241 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
3242 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
3243 * read-rtl.c (add_overload_instance): Same.
3244 * rtl.h (native_decode_rtx): Same.
3245 (native_decode_vector_rtx): Same.
3246 * sched-int.h (sched_init_luids): Same.
3247 (haifa_init_h_i_d): Same.
3248 * simplify-rtx.c (native_decode_vector_rtx): Same.
3249 (native_decode_rtx): Same.
3250 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
3251 (shrink_wrap_one_built_in_call_with_conds): Same.
3252 (shrink_wrap_conditional_dead_built_in_calls): Same.
3253 * tree-data-ref.c (create_runtime_alias_checks): Same.
3254 (compute_all_dependences): Same.
3255 * tree-data-ref.h (compute_all_dependences): Same.
3256 (create_runtime_alias_checks): Same.
3257 (index_in_loop_nest): Same.
3258 * tree-if-conv.c (mask_exists): Same.
3259 * tree-loop-distribution.c (class loop_distribution): Same.
3260 (loop_distribution::create_rdg_vertices): Same.
3261 (dump_rdg_partitions): Same.
3262 (debug_rdg_partitions): Same.
3263 (partition_contains_all_rw): Same.
3264 (loop_distribution::distribute_loop): Same.
3265 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
3266 (oacc_entry_exit_single_gang): Same.
3267 * tree-ssa-loop-im.c (hoist_memory_references): Same.
3268 (loop_suitable_for_sm): Same.
3269 * tree-ssa-loop-niter.c (bound_index): Same.
3270 * tree-ssa-reassoc.c (update_ops): Same.
3271 (swap_ops_for_binary_stmt): Same.
3272 (rewrite_expr_tree): Same.
3273 (rewrite_expr_tree_parallel): Same.
3274 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
3275 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
3276 * tree-ssa-structalias.c (process_all_all_constraints): Same.
3277 (make_constraints_to): Same.
3278 (handle_lhs_call): Same.
3279 (find_func_aliases_for_builtin_call): Same.
3280 (sort_fieldstack): Same.
3281 (check_for_overlaps): Same.
3282 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
3283 (vect_create_cond_for_unequal_addrs): Same.
3284 (vect_create_cond_for_lower_bounds): Same.
3285 (vect_create_cond_for_alias_checks): Same.
3286 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
3287 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
3288 (vect_make_slp_decision): Same.
3289 (vect_slp_bbs): Same.
3290 (duplicate_and_interleave): Same.
3291 (vect_transform_slp_perm_load): Same.
3292 (vect_schedule_slp): Same.
3293 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
3294 (vect_schedule_slp): Same.
3295 (duplicate_and_interleave): Same.
3296 * tree.c (build_vector_from_ctor): Same.
3297 (build_vector): Same.
3298 (check_vector_cst): Same.
3299 (check_vector_cst_duplicate): Same.
3300 (check_vector_cst_fill): Same.
3301 (check_vector_cst_stepped): Same.
3302 * tree.h (build_vector_from_ctor): Same.
3304 2021-07-20 Jakub Jelinek <jakub@redhat.com>
3307 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
3308 type from bool to int.
3309 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
3310 EASY_VECTOR_MSB case if either step or copies is not 1.
3311 (vspltis_shifted): Fix comment typo.
3312 (easy_altivec_constant): Change return type from bool to int, instead
3313 of returning true return byte size of the element mode that should be
3314 used to synthetize the constant.
3315 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
3316 that vspltis_shifted is 0, handle the case where easy_altivec_constant
3317 assumes using different vector mode from CONST_VECTOR's mode.
3318 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
3319 easy_altivec_constant to determine mode in which -1 >> -1 should be
3320 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
3322 2021-07-20 Richard Biener <rguenther@suse.de>
3325 * dwarf2out.h (dwarf_file_data): Add key member.
3326 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
3327 (dwarf_file_hasher::hash): Hash key.
3328 (lookup_filename): Remap the filename and store it in the
3329 filename member of dwarf_file_data when creating a new
3331 (file_name_acquire): Do not remap the filename again.
3332 (maybe_emit_file): Likewise.
3334 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
3336 * config/aarch64/aarch64-simd-builtins.def: Use two variant
3337 generators for all TBL/TBX intrinsics and rename to
3338 consistent forms: qtbl[1234] or qtbx[1234].
3339 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
3341 (aarch64_qtbl1<mode>): This.
3342 (aarch64_tbx1<mode>): Rename to...
3343 (aarch64_qtbx1<mode>): This.
3344 (aarch64_tbl2v16qi): Delete.
3345 (aarch64_tbl3<mode>): Rename to...
3346 (aarch64_qtbl2<mode>): This.
3347 (aarch64_tbx4<mode>): Rename to...
3348 (aarch64_qtbx2<mode>): This.
3349 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
3350 renamed qtbl1 and qtbl2 RTL patterns.
3351 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
3353 (vqtbl1_s8): Likewise.
3354 (vqtbl1_u8): Likewise.
3355 (vqtbl1q_p8): Likewise.
3356 (vqtbl1q_s8): Likewise.
3357 (vqtbl1q_u8): Likewise.
3358 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
3359 (vqtbx1_u8): Likewise.
3360 (vqtbx1_p8): Likewise.
3361 (vqtbx1q_s8): Likewise.
3362 (vqtbx1q_u8): Likewise.
3363 (vqtbx1q_p8): Likewise.
3364 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
3365 (vtbl1_u8): Likewise.
3366 (vtbl1_p8): Likewise.
3367 (vtbl2_s8): Likewise
3368 (vtbl2_u8): Likewise.
3369 (vtbl2_p8): Likewise.
3370 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
3371 (vtbl3_u8): Likewise.
3372 (vtbl3_p8): Likewise.
3373 (vtbl4_s8): Likewise.
3374 (vtbl4_u8): Likewise.
3375 (vtbl4_p8): Likewise.
3376 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
3377 (vtbx2_u8): Likewise.
3378 (vtbx2_p8): Likewise.
3379 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
3380 (vqtbl2_u8): Likewise.
3381 (vqtbl2_p8): Likewise.
3382 (vqtbl2q_s8): Likewise.
3383 (vqtbl2q_u8): Likewise.
3384 (vqtbl2q_p8): Likewise.
3385 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
3386 (vqtbx2_u8): Likewise.
3387 (vqtbx2_p8): Likewise.
3388 (vqtbx2q_s8): Likewise.
3389 (vqtbx2q_u8): Likewise.
3390 (vqtbx2q_p8): Likewise.
3391 (vtbx4_s8): Likewise.
3392 (vtbx4_u8): Likewise.
3393 (vtbx4_p8): Likewise.
3395 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
3398 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
3400 (define_peephole2 atomic_loaddi_fpu): Ditto.
3402 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
3404 * config.gcc (riscv*-*-*): Detect which python is available.
3406 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
3408 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
3409 (smul<mode>3_highpart): ... this.
3410 (mulhu_<mode>): Rename to...
3411 (umul<mode>3_highpart): ... this.
3412 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
3413 MULHU_V2DI, MULHU_V4SI): Adjust.
3415 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
3417 PR tree-optimization/100696
3418 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
3419 * internal-fn.def (IFN_MULH): New internal function.
3420 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
3421 recog normal multiply highpart as IFN_MULH.
3422 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
3425 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
3427 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
3428 (BTF_DEBUGGING_INFO): Likewise.
3429 * doc/tm.texi.in: Document the new macros.
3430 * doc/tm.texi: Regenerated.
3431 * toplev.c: Guard initialization of debug hooks.
3433 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
3435 * flags.h (ctf_debuginfo_p): New function declaration.
3436 * opts.c (ctf_debuginfo_p): New function definition.
3438 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
3441 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
3442 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
3443 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
3444 * config/gcn/gcn-valu.md: Add a warning comment.
3445 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
3446 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
3447 * config/gcn/gcn.md: Add a warning comment.
3448 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
3449 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
3451 (EF_AMDGPU_XNACK): New.
3452 (EF_AMDGPU_SRAM_ECC): New.
3454 (copy_early_debug_info): Use elf_flags.
3455 (main): Handle -mxnack and -msram-ecc options.
3456 * doc/invoke.texi: Document -mxnack and -msram-ecc.
3458 2021-07-19 Andrew Pinski <apinski@marvell.com>
3461 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
3462 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
3464 2021-07-19 Richard Biener <rguenther@suse.de>
3466 PR tree-optimization/101505
3467 * tree-vect-patterns.c (vect_determine_precisions): Walk
3468 PHIs also for loop vectorization.
3470 2021-07-19 Richard Biener <rguenther@suse.de>
3472 * gimple.h (gimple_expr_type): Remove.
3473 * doc/gimple.texi: Remove gimple_expr_type documentation.
3475 2021-07-19 Richard Biener <rguenther@suse.de>
3477 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
3478 (ao_ref_init_from_vn_reference): Likewise.
3479 (fully_constant_reference): Likewise.
3480 (vn_reference_lookup_call): Do not set vr->type to random
3482 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
3484 * tree-vect-generic.c (expand_vector_piecewise): Pass in
3485 whether we expanded parallel.
3486 (expand_vector_parallel): Adjust.
3487 (expand_vector_addition): Likewise.
3488 (expand_vector_comparison): Likewise.
3489 (expand_vector_operation): Likewise.
3490 (expand_vector_scalar_condition): Likewise.
3491 (expand_vector_conversion): Likewise.
3493 2021-07-19 Richard Biener <rguenther@suse.de>
3495 * tree-vrp.c (register_edge_assert_for_2): Use the
3497 (vrp_folder::fold_predicate_in): Likewise.
3498 * vr-values.c (gimple_assign_nonzero_p): Likewise.
3499 (vr_values::extract_range_from_comparison): Likewise.
3500 (vr_values::extract_range_from_ubsan_builtin): Use the
3501 type of the first operand.
3502 (vr_values::extract_range_basic): Push down type
3503 computation, use the appropriate LHS.
3504 (vr_values::extract_range_from_assignment): Use the
3507 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
3510 * common/config/i386/i386-common.c (ix86_handle_option): For
3511 -mgeneral-regs-only, enable the GPR only instructions which are
3512 enabled implicitly by SSE ISAs unless they have been disabled
3515 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
3518 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
3519 ix86_avx_u128_mode_needed.
3520 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
3521 returns AVX register.
3523 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
3525 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
3526 (handle_const_call): Liekise
3527 (handle_pure_call): Liekise
3529 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
3531 PR tree-optimization/96542
3532 * range-op.cc (range_operator::wi_fold_in_parts): New.
3533 (range_operator::fold_range): Call wi_fold_in_parts.
3534 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
3535 * range-op.h (wi_fold_in_parts): Add prototype.
3537 2021-07-16 David Malcolm <dmalcolm@redhat.com>
3539 * doc/analyzer.texi: Add __analyzer_dump_state.
3541 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
3543 * config/rs6000/rbtree.c: New file.
3544 * config/rs6000/rbtree.h: New file.
3546 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
3548 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
3549 (typeinfo): Add restr field.
3550 (match_bracketed_pair): New function.
3551 (match_const_restriction): Implement.
3553 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
3555 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
3557 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
3559 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
3560 (basetype): Likewise.
3561 (typeinfo): Likewise.
3562 (handle_pointer): New function.
3563 (match_basetype): New stub function.
3564 (match_const_restriction): Likewise.
3565 (match_type): New function.
3567 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
3569 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
3571 (advance_line): Likewise.
3572 (safe_inc_pos): Likewise.
3573 (match_identifier): Likewise.
3574 (match_integer): Likewise.
3575 (match_to_right_bracket): Likewise.
3577 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
3579 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
3580 (ovld_file): Likewise.
3581 (header_file): Likewise.
3582 (init_file): Likewise.
3583 (defines_file): Likewise.
3584 (pgm_path): Likewise.
3585 (bif_path): Likewise.
3586 (ovld_path): Likewise.
3587 (header_path): Likewise.
3588 (init_path): Likewise.
3589 (defines_path): Likewise.
3590 (LINELEN): New macro.
3591 (linebuf): New variable.
3595 (bif_diag): New function.
3596 (ovld_diag): Likewise.
3598 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
3600 * config/rs6000/rs6000-builtin-new.def: New.
3601 * config/rs6000/rs6000-overload.def: New.
3603 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
3605 * config/rs6000/rs6000-gen-builtins.c: New.
3607 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
3609 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
3610 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
3611 * gengtype-state.c (state_writer::write_state_file_list): Add a
3612 parameter to the fileslist expression for the number of build
3614 (read_state_files_list): Detect build headers and strip the
3615 initial "./" or ".\" from their names.
3616 * gengtype.c (build_headers): New global variable.
3617 (num_build_headers): Likewise.
3618 (open_base_files): Emit #include for each build header.
3619 (main): Detect and count build headers.
3620 * gengtype.h (build_headers): New extern variable.
3621 (num_build_headers): Likewise.
3623 2021-07-16 Richard Biener <rguenther@suse.de>
3625 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
3626 the type of the LHS.
3627 (find_bswap_or_nop_1): Likewise.
3628 (find_bswap_or_nop): Likewise.
3629 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
3631 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
3632 Remove unused parameters, pass in the scalar type. Fix
3633 internal store function handling.
3634 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
3635 (vect_get_vector_types_for_stmt): Move down check for
3636 existing vector stmt after we've determined a scalar type.
3637 Pass down the used scalar type to vect_get_smallest_scalar_type.
3638 * tree-vect-generic.c (expand_vector_condition): Use
3639 the type of the LHS.
3640 (expand_vector_scalar_condition): Likewise.
3641 (expand_vector_operations_1): Likewise.
3642 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
3643 (vect_recog_dot_prod_pattern): Likewise.
3644 (vect_recog_sad_pattern): Likewise.
3645 (vect_recog_widen_op_pattern): Likewise.
3646 (vect_recog_widen_sum_pattern): Likewise.
3647 (vect_recog_mixed_size_cond_pattern): Likewise.
3649 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
3651 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
3652 (dump_eaf_flags): Dump EAF_NOT_RETURNED
3653 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
3654 and EAF_NOT_RETURNED.
3655 (modref_summary::useful_p): Likewise.
3656 (modref_summary_lto::useful_p): Likewise.
3657 (struct) modref_summary_lto: Use eaf_fleags_t.
3658 (deref_flags): Handle EAF_NOT_RETURNED.
3659 (struct escape_point): Use min_flags.
3660 (modref_lattice::init): Add EAF_NOT_RETURNED.
3661 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
3662 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
3664 (analyze_parms): Also analyze const functions; update conition on
3666 (modref_write): Update streaming.
3667 (read_section): Update streaming.
3668 (remap_arg_flags): Use eaf_flags_t.
3669 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
3670 * ipa-modref.h: (eaf_flags_t): New typedef.
3671 (struct modref_summary): Use eaf_flags_t.
3672 * tree-core.h (EAF_NOT_RETURNED): New constant.
3674 2021-07-16 Richard Biener <rguenther@suse.de>
3676 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
3677 the type of the LHS.
3678 (gimple_assign_nonnegative_warnv_p): Likewise.
3679 (gimple_call_nonnegative_warnv_p): Likewise. Return false
3680 if the call has no LHS.
3681 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
3682 * tree-eh.c (stmt_could_throw_1_p): Likewise.
3683 * tree-inline.c (insert_init_stmt): Likewise.
3684 * tree-ssa-loop-niter.c (get_val_for): Likewise.
3685 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
3687 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
3688 gassign *. Use the type of the lhs.
3689 (vn_nary_op_lookup_stmt): Adjust.
3690 (vn_nary_op_insert_stmt): Likewise.
3692 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
3694 * config/s390/predicates.md (bras_sym_operand): Accept all
3695 functions in 64-bit mode, use UNSPEC_PLT31.
3696 (larl_operand): Use UNSPEC_PLT31.
3697 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
3698 (legitimize_pic_address): Likewise.
3699 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
3701 (s390_delegitimize_address): Use UNSPEC_PLT31.
3702 (s390_output_addr_const_extra): Likewise.
3703 (print_operand): Add @PLT to TLS calls, handle %K.
3704 (s390_function_profiler): Mark __fentry__/_mcount as function,
3705 use %K, use UNSPEC_PLT31.
3706 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
3707 (s390_emit_call): Use UNSPEC_PLT31.
3708 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
3709 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
3710 (*movdi_64): Use %K.
3711 (reload_base_64): Likewise.
3712 (*sibcall_brc): Likewise.
3713 (*sibcall_brcl): Likewise.
3714 (*sibcall_value_brc): Likewise.
3715 (*sibcall_value_brcl): Likewise.
3718 (*bras_r): Likewise.
3719 (*brasl_r): Likewise.
3720 (*bras_tls): Likewise.
3721 (*brasl_tls): Likewise.
3722 (main_base_64): Likewise.
3723 (reload_base_64): Likewise.
3724 (@split_stack_call<mode>): Likewise.
3726 2021-07-16 Richard Biener <rguenther@suse.de>
3728 PR tree-optimization/101467
3729 * tree-vect-stmts.c (vect_gen_while): Properly guard
3730 make_temp_ssa_name usage.
3732 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
3734 * config.gcc: Don't use forked print-sysroot-suffix.sh and
3735 t-sysroot-suffix for C-SKY.
3736 * config/csky/print-sysroot-suffix.sh: Delete.
3737 * config/csky/t-csky-linux: Delete.
3738 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
3739 instead of CSKY_MULTILIB_DIRNAMES.
3741 2021-07-16 Richard Biener <rguenther@suse.de>
3743 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
3744 conversion issues with the partial reduction of the reused
3747 2021-07-16 Richard Biener <rguenther@suse.de>
3749 * config/i386/i386-options.c (ix86_option_override_internal): Set
3750 param_vect_partial_vector_usage to zero if not set.
3752 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
3755 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
3756 (VALID_INT_MODE_P): Add SDmode and DDmode.
3757 Add TDmode for TARGET_64BIT.
3758 (VALID_DFP_MODE_P): Remove.
3759 * config/i386/i386.c (ix86_hard_regno_mode_ok):
3760 Do not use VALID_DFP_MODE_P.
3762 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
3764 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
3766 (fold_using_range::fold_stmt): Ditto.
3767 (fold_using_range::range_of_range_op): Ditto.
3768 (fold_using_range::range_of_phi): Ditto.
3769 (fold_using_range::range_of_call): Ditto.
3770 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
3771 (fold_using_range::range_of_builtin_call): Ditto.
3772 (fold_using_range::range_of_cond_expr): Ditto.
3773 * gimple-range-fold.h (gimple_range_type): New.
3775 2021-07-15 Martin Sebor <msebor@redhat.com>
3778 * tree-ssa-strlen.c (handle_assign): New function.
3779 (maybe_warn_overflow): Add argument.
3780 (nonzero_bytes_for_type): New function.
3781 (count_nonzero_bytes): Handle more tree types. Call
3782 nonzero_bytes_for_tye.
3783 (count_nonzero_bytes): Handle types.
3784 (handle_store): Handle stores from function calls.
3785 (strlen_check_and_optimize_call): Move code to handle_assign. Call
3786 it for assignments from function calls.
3788 2021-07-15 David Malcolm <dmalcolm@redhat.com>
3793 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
3795 2021-07-15 David Malcolm <dmalcolm@redhat.com>
3797 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
3799 2021-07-15 Martin Sebor <msebor@redhat.com>
3803 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
3804 (operand_compare::verify_hash_value): Same.
3805 * tree-core.h (OEP_DECL_NAME): New.
3807 2021-07-15 Martin Jambor <mjambor@suse.cz>
3809 * profile-count.h (profile_count::value): Change the return type to
3811 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
3813 * tree-cfg.c (dump_function_to_file): Likewise.
3815 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
3818 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
3819 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
3822 2021-07-15 Richard Biener <rguenther@suse.de>
3824 * tree-vectorizer.h (vect_gen_while): Match up with
3826 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
3827 of vect_gen_while_not.
3828 (vect_gen_while_not): Adjust.
3829 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
3831 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
3833 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
3834 (ranger_cache::range_of_def): Call adjust_range.
3835 (ranger_cache::entry_range): Same.
3836 * gimple-range-cache.h (non_null_ref::adjust_range): New.
3837 * gimple-range.cc (gimple_ranger::range_of_expr): Call
3839 (gimple_ranger::range_on_entry): Same.
3841 2021-07-15 Tamar Christina <tamar.christina@arm.com>
3844 2021-07-14 Tamar Christina <tamar.christina@arm.com>
3846 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
3848 2021-07-15 Tamar Christina <tamar.christina@arm.com>
3851 2021-07-14 Tamar Christina <tamar.christina@arm.com>
3853 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
3854 (sdot_prod, udot_prod): ...These.
3855 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
3856 (aarch64_<sur>dot<vsi2qi>): Rename to...
3857 (<sur>dot_prod<vsi2qi>): ...This.
3858 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
3861 2021-07-15 Jakub Jelinek <jakub@redhat.com>
3863 PR middle-end/101437
3864 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
3865 types even if they have non-BLKmode TYPE_MODE.
3867 2021-07-15 Richard Biener <rguenther@suse.de>
3870 * gcc.c (process_command): Process -gtoggle like process_options
3871 would after parsing options.
3873 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
3875 * cfgexpand.c (expand_asm_loc): Adjust.
3876 (expand_asm_stmt): Likewise.
3877 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
3878 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
3879 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
3880 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
3881 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
3882 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
3883 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
3884 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
3885 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
3886 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
3887 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
3888 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
3889 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
3890 * doc/tm.texi: Regenerate.
3891 * target.def: Add location argument to md_asm_adjust.
3893 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
3895 * tree-diagnostic.c (diagnostic_report_current_function): Use the
3896 diagnostic's location, not input_location.
3898 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
3900 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
3902 (expand_asm_stmt): Likewise.
3904 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
3906 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
3907 addressed memory rtx, if any.
3908 (rs6000_split_multireg_move): Fix code formatting.
3909 Handle MMA build built-ins with operands in adjacent memory locations.
3911 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
3913 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
3916 2021-07-14 Jason Merrill <jason@redhat.com>
3918 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
3920 2021-07-14 Jason Merrill <jason@redhat.com>
3922 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
3925 2021-07-14 Tamar Christina <tamar.christina@arm.com>
3927 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
3928 Remove erroneous line.
3930 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
3932 * params.opt (param_evrp_mode): Change default.
3934 2021-07-14 Tamar Christina <tamar.christina@arm.com>
3936 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
3937 (sdot_prod, udot_prod): ...These.
3938 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
3939 (aarch64_<sur>dot<vsi2qi>): Rename to...
3940 (<sur>dot_prod<vsi2qi>): ...This.
3941 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
3944 2021-07-14 Tamar Christina <tamar.christina@arm.com>
3946 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
3948 2021-07-14 Tamar Christina <tamar.christina@arm.com>
3950 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
3952 2021-07-14 Tamar Christina <tamar.christina@arm.com>
3954 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
3956 2021-07-14 Tamar Christina <tamar.christina@arm.com>
3958 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
3959 (usdot_prod<vsi2qi>): ... This.
3960 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
3961 (usdot_prod): ...This.
3962 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
3963 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
3965 (@<sur>dot_prod<vsi2qi>): ...This.
3966 * config/aarch64/aarch64-sve-builtins-base.cc
3967 (svusdot_impl::expand): Use it.
3969 2021-07-14 Tamar Christina <tamar.christina@arm.com>
3971 * optabs.def (usdot_prod_optab): New.
3972 * doc/md.texi: Document it and clarify other dot prod optabs.
3973 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
3974 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
3975 * optabs.c (expand_widen_pattern_expr): Likewise.
3976 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
3977 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
3978 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
3980 (vect_widened_op_tree): Optionally ignore
3982 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
3984 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
3987 * config/i386/driver-i386.c (host_detect_local_cpu): Check
3988 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
3989 Enable UINTR only for 64-bit codegen.
3990 * config/i386/i386-options.c
3991 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
3993 * config/i386/i386.h (ARCH_ARG): New.
3994 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
3995 "[arch|tune] 64" for 64-bit codegen.
3997 2021-07-14 Richard Biener <rguenther@suse.de>
3999 PR tree-optimization/101445
4000 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
4001 of the IV in the correct direction for negative stride
4004 2021-07-14 Jakub Jelinek <jakub@redhat.com>
4007 * godump.c (godump_str_hash): New type.
4008 (godump_container::pot_dummy_types): Use string_hash instead of
4009 ptr_hash in the hash_set.
4011 2021-07-14 Richard Biener <rguenther@suse.de>
4013 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
4014 vector types where the old vector type has a multiple of
4015 the new vector type elements.
4016 (vect_create_partial_epilog): New function, split out from...
4017 (vect_create_epilog_for_reduction): ... here.
4018 (vect_transform_cycle_phi): Reduce the re-used accumulator
4019 to the new vector type.
4021 2021-07-14 Alexandre Oliva <oliva@adacore.com>
4023 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
4024 non-'t'-sized arg check.
4026 2021-07-14 Alexandre Oliva <oliva@adacore.com>
4028 * tree-cfg.c (cleanup_dead_labels_eh): Update
4029 post_landing_pad label upon change of landing pad block's
4031 (cleanup_dead_labels): Check that a removed label is not that
4034 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
4036 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
4038 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
4039 Add Neon to general purpose register case for zero-extend
4041 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
4042 case to prevent some cases opting to go through memory.
4043 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
4044 * rtl.c (rtvec_series_p): Define predicate to determine
4045 whether a vector contains a linear series of integers.
4046 * rtl.h (rtvec_series_p): Define.
4047 * rtlanal.c (vec_series_lowpart_p): Define predicate to
4048 determine if a vector selection is equivalent to the low part
4050 * rtlanal.h (vec_series_lowpart_p): Define.
4051 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
4052 Add vec_select -> subreg simplification.
4054 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
4056 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
4057 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
4058 _mm_test_mix_ones_zeros): New.
4060 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
4061 Richard Biener <rguenther@suse.de>
4063 * gimple.c (gimple_could_trap_p_1): Make S argument a
4064 "const gimple*". Preserve constness in call to
4065 gimple_asm_volatile_p.
4066 (gimple_could_trap_p): Make S argument a "const gimple*".
4067 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
4068 Update function prototypes.
4070 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4072 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
4073 (_loop_vec_info::main_loop_edge): New field.
4074 (_loop_vec_info::skip_main_loop_edge): Likewise.
4075 (_loop_vec_info::skip_this_loop_edge): Likewise.
4076 (_loop_vec_info::reusable_accumulators): Likewise.
4077 (_stmt_vec_info::reduc_scalar_results): Likewise.
4078 (_stmt_vec_info::reused_accumulator): Likewise.
4079 (vect_get_main_loop_result): Declare.
4080 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
4081 reduc_scalar_inputs.
4082 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
4083 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
4084 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
4085 skip_main_loop_edge and skip_this_loop_edge fields.
4086 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
4087 (vect_emit_reduction_init_stmts): New function.
4088 (get_initial_def_for_reduction): Use it.
4089 (get_initial_defs_for_reduction): Likewise. Change the vinfo
4090 parameter to a loop_vec_info.
4091 (vect_create_epilog_for_reduction): Store the scalar results
4092 in the reduc_info. If an epilogue loop is reusing an accumulator
4093 from the main loop, and if the epilogue loop can also be skipped,
4094 try to place the reduction code in the join block. Record
4095 accumulators that could potentially be reused by epilogue loops.
4096 (vect_transform_cycle_phi): When vectorizing epilogue loops,
4097 try to reuse accumulators from the main loop. Record the initial
4098 value in reduc_info for non-SLP reductions too.
4100 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4102 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
4103 adjustment handling. Take the neutral value as an argument,
4104 in place of the code argument.
4105 (vect_transform_cycle_phi): Update accordingly. Handle the
4106 initial values of cond reductions separately from code reductions.
4107 Choose the adjustment here rather than in
4108 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
4110 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4112 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
4113 (neutral_op_for_reduction): ...this, providing a more general
4115 (vect_create_epilog_for_reduction): Update accordingly.
4116 (vectorizable_reduction): Likewise.
4117 (vect_transform_cycle_phi): Likewise.
4119 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4121 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
4122 reduc_info instead of the original stmt_vec_info.
4123 (vect_transform_cycle_phi): Update accordingly.
4125 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4127 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
4128 reduc_info as an additional parameter.
4129 (vect_transform_cycle_phi): Update accordingly.
4131 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4133 * tree-vectorizer.h: Include tree-ssa-operands.h.
4134 (vect_phi_initial_value): New function.
4135 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
4136 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
4137 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
4138 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
4140 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4142 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
4143 the phi results to vectype after creating them. Remove later
4144 conversion code that thus becomes redundant.
4146 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4148 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
4149 the new_phis vector with a reduc_inputs vector. Combine handling
4150 of reduction chains and ncopies > 1.
4152 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4154 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
4155 scalar_results to group_size elements after reducing down from
4156 N*group_size elements. Construct an array_slice of the live-out
4157 stmts and assert that there is one stmt per scalar result.
4159 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4161 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
4162 nested_in_vect_loop and use double_reduc everywhere. Remove dead
4163 assignment to "loop".
4165 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4167 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
4168 vector types first. For scalar types, consider both the preferred
4169 vector mode and the alternative vector modes.
4170 * optabs-query.c (can_vec_mask_load_store_p): Use the same
4171 structure as above, in particular using related_vector_mode
4172 for modes provided by autovectorize_vector_modes.
4174 2021-07-13 Jakub Jelinek <jakub@redhat.com>
4175 Richard Biener <rguenther@suse.de>
4177 PR tree-optimization/101419
4178 * tree-pass.h (PROP_objsz): Define.
4179 (make_pass_early_object_sizes): Declare.
4180 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
4181 there to pass_early_object_sizes, drop parameter.
4182 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
4183 drop parameter, move pass_post_ipa_warn right after that.
4184 * tree-object-size.c (pass_object_sizes::execute): Rename to...
4185 (object_sizes_execute): ... this. Add insert_min_max_p argument.
4186 (pass_data_object_sizes): Move after object_sizes_execute.
4187 (pass_object_sizes): Likewise. In execute method call
4188 object_sizes_execute, drop set_pass_param method and insert_min_max_p
4189 non-static data member and its initializer in the ctor.
4190 (pass_data_early_object_sizes, pass_early_object_sizes,
4191 make_pass_early_object_sizes): New.
4192 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
4193 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
4195 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
4198 * config/riscv/constraints.md ("S"): Update description and remove
4200 * doc/md.texi (Machine Constraints): Document the 'S' constraints
4203 2021-07-13 Richard Biener <rguenther@suse.de>
4206 2021-07-12 Richard Biener <rguenther@suse.de>
4208 * tree-vect-slp.c (vect_slp_region): Show the number of
4209 SLP graph entries in the optimization message.
4211 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
4213 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
4215 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
4216 return type to long.
4217 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
4220 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
4222 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
4223 Query relation between the 2 operands and use it.
4225 2021-07-12 Sergei Trofimovich <siarheit@google.com>
4227 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
4229 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
4232 * config/i386/predicates.md (vec_setm_sse41_operand):
4233 Rename from vec_setm_operand.
4234 (vec_setm_avx2_operand): New predicate.
4235 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
4236 Use vec_setm_sse41_operand as operand 2 predicate.
4237 (vec_set<V_256_512:mode): New expander.
4238 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
4239 as operand 2 predicate.
4241 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
4243 PR tree-optimization/101335
4244 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
4246 2021-07-12 Andrew Pinski <apinski@marvell.com>
4248 * tree-ssa-phiopt.c (match_simplify_replacement): Move
4249 insert of the sequence before the movement of the
4250 statement. Check if to see if the statement is used
4251 outside of the original phi to see if we should move it.
4253 2021-07-12 Richard Biener <rguenther@suse.de>
4255 * dump-context.h (debug_dump_context::debug_dump_context):
4256 Add FILE * parameter defaulted to stderr.
4257 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
4258 * tree-vect-slp.c (dot_slp_tree): New functions.
4260 2021-07-12 Richard Biener <rguenther@suse.de>
4262 PR tree-optimization/101373
4263 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
4264 references when the BB may not return.
4265 (compute_avail): Pass in the function we're working on and
4266 replace cfun references with it. Externally throwing
4267 const calls also possibly terminate the function.
4268 (pass_pre::execute): Pass down the function we're working on.
4269 * gcse.c (compute_hash_table_work): Externally throwing
4270 const/pure calls also need record_last_mem_set_info.
4271 * postreload-gcse.c (record_opr_changes): Looping or externally
4272 throwing const/pure calls also need record_last_mem_set_info.
4274 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
4276 * recog.c (memory_address_addr_space_p): Change the type to bool.
4277 Return true/false instead of 1/0.
4278 (offsettable_memref_p): Ditto.
4279 (offsettable_nonstrict_memref_p): Ditto.
4280 (offsettable_address_addr_space_p): Ditto.
4281 Change the type of addressp indirect function to bool.
4282 * recog.h (memory_address_addr_space_p): Change the type to bool.
4283 (strict_memory_address_addr_space_p): Ditto.
4284 (offsettable_memref_p): Ditto.
4285 (offsettable_nonstrict_memref_p): Ditto.
4286 (offsettable_address_addr_space_p): Ditto.
4287 * reload.c (maybe_memory_address_addr_space_p): Ditto.
4288 (strict_memory_address_addr_space_p): Change the type to bool.
4289 Return true/false instead of 1/0.
4290 (maybe_memory_address_addr_space_p): Change the type to bool.
4292 2021-07-12 Richard Biener <rguenther@suse.de>
4294 * tree-vect-slp.c (vect_slp_region): Show the number of
4295 SLP graph entries in the optimization message.
4297 2021-07-12 Richard Biener <rguenther@suse.de>
4299 PR tree-optimization/101394
4300 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
4301 copies from abnormals for a full redundancy.
4303 2021-07-12 Richard Biener <rguenther@suse.de>
4305 PR middle-end/101423
4306 * gimple.c (gimple_could_trap_p_1): Internal function calls
4308 * tree-eh.c (tree_could_trap_p): Likewise.
4310 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
4313 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
4315 (vmulq_n_u32): Likewise.
4316 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
4317 (vmulq_n_f32): Likewise.
4318 (vmul_n_f16): Likewise.
4319 (vmulq_n_f16): Likewise.
4321 2021-07-12 Martin Liska <mliska@suse.cz>
4324 * gcc.c (check_offload_target_name): Call
4325 candidates_list_and_hint only if we have a candidate.
4327 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
4330 * config/arm/neon.md (vec_init): Move to ...
4331 * config/arm/vec-common.md (vec_init): ... here.
4332 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
4334 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
4336 PR tree-optimization/101403
4337 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
4338 signedness of the shift is not the same as the signedness of
4341 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
4342 Uroš Bizjak <ubizjak@gmail.com>
4344 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
4345 divmod of a constant numerator with new define_insn_and_split.
4347 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
4350 * config/i386/i386-expand.c (ix86_expand_call): If a call is
4351 to a non-local-binding, or local but to a public symbol, then
4352 assume that it might be indirected via the lazy symbol binder.
4353 Mark R10 and R10 as clobbered in that case.
4355 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
4358 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
4359 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
4360 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
4362 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
4364 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
4365 log2 range of operands[3] to [1,31].
4366 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
4368 2021-07-09 Sergei Trofimovich <siarheit@google.com>
4370 * doc/md.texi: Don't split @smallexample in multiple @groups.
4372 2021-07-09 Sergei Trofimovich <siarheit@google.com>
4374 * doc/md.texi: Add missing 'see' word.
4376 2021-07-09 Andrew Pinski <apinski@marvell.com>
4378 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
4379 to take sequence and gimple_match_op. Accept the case where
4380 op is a SSA_NAME and one statement in the sequence.
4381 Also allow constants.
4382 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
4383 Update call to phiopt_early_allow. Discard the sequence if not
4386 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
4391 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
4392 instead of ISA_HAS_MSA.
4393 (mips_expand_vec_unpack): Likewise.
4394 (mips_expand_vector_init): Likewise.
4396 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
4398 * config/rs6000/vsx.md (mods_<mode>): Rename to...
4399 (mod<mode>3): ... this.
4400 (modu_<mode>): Rename to...
4401 (umod<mode>3): ... this.
4402 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
4405 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
4407 * config/h8300/shiftrotate.md (variable shifts): Expose condition
4408 code handling for the test before the loop.
4410 2021-07-08 Martin Jambor <mjambor@suse.cz>
4413 * ipa-sra.c (class isra_call_summary): New member
4414 m_before_any_store, initialize it in the constructor.
4415 (isra_call_summary::dump): Dump the new field.
4416 (ipa_sra_call_summaries::duplicate): Copy it.
4417 (process_scan_results): Set it.
4418 (isra_write_edge_summary): Stream it.
4419 (isra_read_edge_summary): Likewise.
4420 (param_splitting_across_edge): Only override
4421 safe_to_import_accesses if m_before_any_store is set.
4423 2021-07-08 Martin Sebor <msebor@redhat.com>
4426 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
4427 Use Object Size Type 0 instead of 1.
4429 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
4431 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
4434 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
4436 * match.pd: Simplify an extend-operate-truncate sequence involving
4439 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
4440 Richard Biener <rguenther@suse.de>
4442 PR tree-optimization/40210
4443 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
4444 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
4445 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
4447 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
4450 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
4452 * config/i386/mmx.md (V_32): New mode iterator.
4453 (mov<V_32:mode>): Use V_32 mode iterator.
4454 (*mov<V_32:mode>_internal): Ditto.
4455 (*push<V_32:mode>2_rex64): Ditto.
4456 (*push<V_32:mode>2): Ditto.
4457 (movmisalign<V_32:mode>): Ditto.
4458 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
4459 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
4460 (vec_unpacks_lo_v4qi): New expander.
4461 (vec_unpacks_hi_v4qi): Ditto.
4462 (vec_unpacku_lo_v4qi): Ditto.
4463 (vec_unpacku_hi_v4qi): Ditto.
4464 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
4465 (VALID_INT_MODE_P): Ditto.
4467 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
4470 * config/rs6000/rs6000.md (udivti3): New insn.
4472 (umodti3): New insn.
4475 2021-07-07 Martin Sebor <msebor@redhat.com>
4477 PR tree-optimization/100137
4478 PR tree-optimization/99121
4479 PR tree-optimization/97027
4480 * builtins.c (access_ref::access_ref): Also set offmax.
4481 (access_ref::offset_in_range): Define new function.
4482 (access_ref::add_offset): Set offmax.
4483 (access_ref::inform_access): Handle access_none.
4484 (handle_mem_ref): Clear ostype.
4485 (compute_objsize_r): Handle ASSERT_EXPR.
4486 * builtins.h (struct access_ref): Add offmax member.
4487 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
4488 compute_objsize() and simplify.
4490 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
4492 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
4493 and VSX_BUILTIN_STXVP.
4495 2021-07-07 Martin Sebor <msebor@redhat.com>
4498 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
4499 a stray %K from error_at() missed in r12-2088.
4501 2021-07-07 Richard Biener <rguenther@suse.de>
4503 PR tree-optimization/99728
4504 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
4506 (mem_refs_may_alias_p): Add assert we handled aggregate
4508 (sm_seq_valid_bb): Give up when running into aggregate copies.
4509 (ref_indep_loop_p): Handle aggregate copies as never
4510 being invariant themselves but allow other refs to be
4511 disambiguated against them.
4512 (can_sm_ref_p): Do not try to apply store-motion to aggregate
4515 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
4518 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
4521 2021-07-06 Martin Sebor <msebor@redhat.com>
4523 * gimple-pretty-print.c (percent_G_format): Remove.
4524 * tree-diagnostic.c (default_tree_printer): Remove calls.
4525 * tree-pretty-print.c (percent_K_format): Remove.
4526 * tree-pretty-print.h (percent_K_format): Remove.
4528 2021-07-06 Martin Sebor <msebor@redhat.com>
4530 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
4531 Remove %K and use error_at.
4532 (aarch64_expand_fcmla_builtin): Same.
4533 (aarch64_expand_builtin_tme): Same.
4534 (aarch64_expand_builtin_memtag): Same.
4535 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
4536 (arm_expand_builtin): Same.
4537 * config/arm/arm.c (bounds_check): Same.
4539 2021-07-06 Martin Sebor <msebor@redhat.com>
4541 * builtins.c (warn_string_no_nul): Remove %G.
4542 (maybe_warn_for_bound): Same.
4543 (warn_for_access): Same.
4544 (check_access): Same.
4545 (check_strncat_sizes): Same.
4546 (expand_builtin_strncat): Same.
4547 (expand_builtin_strncmp): Same.
4548 (expand_builtin): Same.
4549 (expand_builtin_object_size): Same.
4550 (warn_dealloc_offset): Same.
4551 (maybe_emit_free_warning): Same.
4552 * calls.c (maybe_warn_alloc_args_overflow): Same.
4553 (maybe_warn_nonstring_arg): Same.
4554 (maybe_warn_rdwr_sizes): Same.
4555 * expr.c (expand_expr_real_1): Remove %K.
4556 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
4557 (gimple_fold_builtin_strncat): Same.
4558 * gimple-ssa-sprintf.c (format_directive): Same.
4559 (handle_printf_call): Same.
4560 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
4561 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
4562 (maybe_diag_access_bounds): Same. Call gimple_location.
4563 (check_bounds_or_overlap): Same.
4564 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
4565 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
4566 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
4567 (maybe_diag_stxncpy_trunc): Same.
4568 (handle_builtin_stxncpy_strncat): Same.
4569 (maybe_warn_pointless_strcmp): Same.
4570 * tree-ssa-uninit.c (maybe_warn_operand): Same.
4572 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
4575 * config/i386/predicates.md (vec_setm_operand): Enable
4576 register_operand for TARGET_SSE4_1.
4577 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
4578 as operand 2 predicate. Call ix86_expand_vector_set_var
4579 for non-constant index operand.
4580 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
4581 Call ix86_expand_vector_set_var for non-constant index operand.
4583 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
4585 * config/h8300/jumpcall.md (*branch): When possible, generate
4586 the comparison in CCZN mode.
4587 * config/h8300/predicates.md (simple_memory_operand): Reject all
4588 auto-increment addressing modes.
4590 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
4593 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
4596 2021-07-06 Richard Biener <rguenther@suse.de>
4598 * doc/md.texi (vec_fmaddsub<mode>4): Document.
4599 (vec_fmsubadd<mode>4): Likewise.
4600 * optabs.def (vec_fmaddsub$a4): Add.
4601 (vec_fmsubadd$a4): Likewise.
4602 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
4603 (IFN_VEC_FMSUBADD): Likewise.
4604 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
4605 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
4606 (addsub_pattern::build): Likewise.
4607 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
4608 and CFN_VEC_FMSUBADD are not transparent for permutes.
4609 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
4610 (vec_fmsubadd<mode>4): Likewise.
4612 2021-07-06 Richard Biener <rguenther@suse.de>
4614 * doc/invoke.texi (fmove-loop-stores): Document.
4615 * common.opt (fmove-loop-stores): New option.
4616 * opts.c (default_options_table): Enable -fmove-loop-stores
4618 * tree-ssa-loop-im.c (pass_lim::execute): Pass
4619 flag_move_loop_stores instead of true to
4620 loop_invariant_motion_in_fun.
4622 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
4624 * doc/install.texi: Document --with-dsymutil.
4626 2021-07-06 Andrew Pinski <apinski@marvell.com>
4628 PR tree-optimization/101256
4629 * dbgcnt.def (phiopt_edge_range): New counter.
4630 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
4631 Check to make sure the new name is defined in the same
4632 bb as the conditional before duplicating range info.
4633 Also add debug counter.
4635 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
4637 PR rtl-optimization/100328
4638 * config/i386/i386-options.c (ix86_option_override_internal):
4639 Set param_ira_consider_dup_in_all_alts to 0.
4641 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
4643 PR rtl-optimization/100328
4644 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
4646 * ira.c (ira_get_dup_out_num): Adjust as parameter
4647 param_ira_consider_dup_in_all_alts.
4648 * params.opt (ira-consider-dup-in-all-alts): New.
4649 * ira-conflicts.c (process_regs_for_copy): Add one parameter
4650 single_input_op_has_cstr_p.
4651 (get_freq_for_shuffle_copy): New function.
4652 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
4653 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
4655 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
4657 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
4658 generate condition code aware RTL directly.
4660 2021-07-05 Andrew Pinski <apinski@marvell.com>
4662 PR tree-optimization/101039
4663 * match.pd (A CMP 0 ? A : -A): New patterns.
4664 * tree-ssa-phiopt.c (abs_replacement): Delete function.
4665 (tree_ssa_phiopt_worker): Don't call abs_replacement.
4666 Update comment about abs_replacement.
4668 2021-07-05 Andrew Pinski <apinski@marvell.com>
4670 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
4671 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
4673 2021-07-05 Andrew Pinski <apinski@marvell.com>
4675 * tree-ssa-phiopt.c (match_simplify_replacement):
4676 Add early_p argument. Call gimple_simplify_phiopt
4677 instead of gimple_simplify.
4678 (tree_ssa_phiopt_worker): Update call to
4679 match_simplify_replacement and allow unconditionally.
4680 (phiopt_early_allow): New function.
4681 (gimple_simplify_phiopt): New function.
4683 2021-07-05 Andrew Pinski <apinski@marvell.com>
4685 PR middle-end/101237
4686 * fold-const.c (negate_expr_p): Remove call to element_mode
4687 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
4688 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
4689 (fold_negate_expr_1): Likewise.
4690 (const_unop): Likewise.
4691 (fold_cond_expr_with_comparison): Likewise.
4692 (fold_binary_loc): Likewise.
4693 (fold_ternary_loc): Likewise.
4694 (tree_call_nonnegative_warnv_p): Likewise.
4695 * match.pd (-(A + B) -> (-B) - A): Likewise.
4697 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
4699 * configure.ac: Handle --with-dsymutil in the same way as we
4700 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
4701 Extract the type and version for the dsymutil configured or
4702 found by the default searches.
4703 * config.in: Regenerated.
4704 * configure: Regenerated.
4705 * collect2.c (do_dsymutil): Handle locating dsymutil in the
4706 same way as for the assembler and linker.
4707 * config/darwin.h (DSYMUTIL): Delete.
4708 * gcc.c: Report a configured dsymutil correctly.
4709 * exec-tool.in: Allow for dsymutil.
4711 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
4713 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
4714 Handle V4QI and V2HI modes.
4715 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
4716 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
4717 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
4718 Handle 4-byte dual operands with TARGET_XOP and single operands
4719 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
4720 mmx_pshufbv4qi3 for TARGET_SSSE3.
4721 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
4722 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
4723 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
4724 (expand_vec_perm_even_odd_1): Handle V4QI mode.
4725 (expand_vec_perm_broadcast_1): Handle V4QI mode.
4726 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
4727 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
4728 (mmx_pshufbv4qi3): Ditto.
4729 (*mmx_pblendw32): Ditto.
4730 (*mmx_pblendw64): Rename from *mmx_pblendw.
4731 (mmx_punpckhbw_low): New insn_and_split pattern.
4732 (mmx_punpcklbw_low): Ditto.
4734 2021-07-05 Richard Biener <rguenther@suse.de>
4736 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
4737 set LOOP_C_INFINITE on the vectorized loop.
4739 2021-07-05 Richard Biener <rguenther@suse.de>
4741 PR middle-end/101291
4742 * cfgloopmanip.c (loop_version): Set the loop copy of the
4743 versioned loop to the new loop.
4745 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
4748 * config.gcc: Ensure that Darwin biarch definitions are
4749 added before i386.h.
4750 * config/i386/darwin.h (TARGET_64BIT): Remove.
4751 (PR80556_WORKAROUND): New.
4752 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
4753 (DARWIN_SUBARCH_SPEC): New.
4754 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
4755 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
4756 (REAL_LIBGCC_SPEC): Remove.
4757 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
4758 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
4759 (REAL_LIBGCC_SPEC): Remove.
4761 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
4763 PR middle-end/101294
4764 * expr.c (store_constructor): Don't use vec_duplicate on vector.
4766 2021-07-02 Martin Sebor <msebor@redhat.com>
4770 * diagnostic.c (get_any_inlining_info): New.
4771 (update_effective_level_from_pragmas): Handle inlining context.
4772 (diagnostic_enabled): Same.
4773 (diagnostic_report_diagnostic): Same.
4774 * diagnostic.h (struct diagnostic_info): Add ctor.
4775 (struct diagnostic_context): Add new member.
4776 * tree-diagnostic.c (set_inlining_locations): New.
4777 (tree_diagnostics_defaults): Set new callback pointer.
4779 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
4781 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
4783 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
4784 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
4785 lxvp and stxvp built-ins.
4786 (mma_init_builtins): Handle lxvp and stxvp built-ins.
4787 (builtin_function_type): Likewise.
4788 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
4790 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
4792 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
4793 additional argument for the code.
4794 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
4795 argument for the code. Just return if the ZN bits are useful or
4796 not rather than the old style CC_* enums.
4797 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
4798 more generic shiftqi patterns.
4799 (shifthi_noscratch, shiftsi_noscratch): Similarly.
4800 (shiftqi_noscratch_set_flags): New pattern.
4801 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
4803 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
4805 PR tree-optimization/101223
4806 * range-op.cc (build_lt): Add -1 for signed values.
4807 (built_gt): Subtract -1 for signed values.
4809 2021-07-02 David Faust <david.faust@oracle.com>
4811 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
4812 (btf_asm_type): Likewise.
4814 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
4816 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
4817 an array of rtx rather than a pointer to rtx. Add code argument.
4818 (compute_a_shift_length): Similarly.
4819 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
4820 shift itself isn't an operand. Create dummy operand[0] to carry
4821 a mode and pass a suitable rtx code to compute_a_shift_length.
4822 (get_shift_alg): Adjust operand number of clobber in output templates.
4823 (output_a_shift): Make first argument an array of rtx rather than
4824 a pointer to rtx. Add code argument for the type of shift.
4825 Adjust now that the shift itself is no longer an operand.
4826 (compute_a_shift_length): Similarly.
4827 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
4828 iterator rather than nshift_operator.
4829 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
4830 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
4831 and compute_a_shift_length.
4832 (shiftqi_noscratch_clobber_flags): Likewise.
4833 (shifthi_noscratch_clobber_flags): Likewise.
4834 (shiftsi_noscratch_clobber_flags): Likewise.
4836 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
4839 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
4840 dsymutil for BTF/CTF.
4842 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
4845 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
4846 segment to include BTF.
4847 (BTF_INFO_SECTION_NAME): New.
4849 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
4851 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
4852 (small_data_operand, memreg_operand, small_insn_p): Likewise.
4853 * config/m32r/m32r.c (call_operand): Adjust return type.
4854 (small_data_operand, memreg_operand): Likewise.
4856 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
4858 * config/frv/frv-protos.h (integer_register_operand): Adjust return
4860 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
4861 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
4862 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
4863 (move_source_operand, move_destination_operand): Likewise.
4864 (condexec_source_operand, condexec_dest_operand): Likewise.
4865 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
4866 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
4867 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
4868 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
4869 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
4870 (even_fpr_operand, odd_fpr_operand): Likewise.
4871 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
4872 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
4873 (uint4_operand, uint1_operand, int_2word_operand): Likewise
4874 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
4875 (relational_operator, float_relational_operator): Likewise.
4876 (ccr_eqne_operator, minmax_operator): Likewise.
4877 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
4878 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
4879 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
4880 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
4881 (quad_acc_operand, accg_operand): Likewise.
4883 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
4885 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
4886 return type to a bool.
4887 (nonimmediate_nonstack_operand): Likewise.
4888 (xstormy16_splittable_below100_operand): Likewise.
4889 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
4891 (xstormy16_splittable_below100_operand): Likewise.
4893 2021-07-02 Richard Biener <rguenther@suse.de>
4895 PR tree-optimization/101293
4896 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
4897 with combined offsets.
4898 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
4899 combined with the rest of the offset.
4901 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
4903 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
4904 PIC encodings for PE-COFF targets.
4906 2021-07-02 Jakub Jelinek <jakub@redhat.com>
4909 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
4910 Return nullptr for TImode inner mode.
4912 2021-07-02 Richard Biener <rguenther@suse.de>
4914 PR tree-optimization/101280
4915 PR tree-optimization/101173
4916 * gimple-loop-interchange.cc
4917 (tree_loop_interchange::valid_data_dependences): Properly
4918 guard all dependence checks with DDR_REVERSED_P or its
4921 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
4923 * config/i386/i386-expand.c (ix86_expand_builtin):
4924 Add branch to clear odata when ZF is set for asedecenc_expand
4925 and wideaesdecenc_expand.
4927 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
4929 * config/i386/gcc-auto-profile: regenerate
4931 2021-07-02 liuhongt <hongtao.liu@intel.com>
4933 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
4934 (trunc<mode><pmov_dst_4_lower>2): this.
4936 2021-07-01 David Malcolm <dmalcolm@redhat.com>
4938 * diagnostic.h (diagnostic_context::m_file_cache): New field.
4939 * input.c (class fcache): Rename to...
4940 (class file_cache_slot): ...this, making most members private and
4941 prefixing fields with "m_".
4942 (file_cache_slot::get_file_path): New accessor.
4943 (file_cache_slot::get_use_count): New accessor.
4944 (file_cache_slot::missing_trailing_newline_p): New accessor.
4945 (file_cache_slot::inc_use_count): New.
4946 (fcache_buffer_size): Move to...
4947 (file_cache_slot::buffer_size): ...here.
4948 (fcache_line_record_size): Move to...
4949 (file_cache_slot::line_record_size): ...here.
4950 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
4951 (fcache_tab_size): Move to file_cache::num_file_slots.
4952 (diagnostic_file_cache_init): Update for move of fcache_tab
4953 to global_dc->m_file_cache.
4954 (diagnostic_file_cache_fini): Likewise.
4955 (lookup_file_in_cache_tab): Convert to...
4956 (file_cache::lookup_file): ...this.
4957 (diagnostics_file_cache_forcibly_evict_file): Update for move of
4958 fcache_tab to global_dc->m_file_cache, moving most of
4959 implementation to...
4960 (file_cache::forcibly_evict_file): ...this new function and...
4961 (file_cache_slot::evict): ...this new function.
4962 (evicted_cache_tab_entry): Convert to...
4963 (file_cache::evicted_cache_tab_entry): ...this.
4964 (add_file_to_cache_tab): Convert to...
4965 (file_cache::add_file): ...this, moving bulk of implementation
4967 (file_cache_slot::create): ..this new function.
4968 (file_cache::file_cache): New.
4969 (file_cache::~file_cache): New.
4970 (lookup_or_add_file_to_cache_tab): Convert to...
4971 (file_cache::lookup_or_add_file): ..this new function.
4972 (fcache::fcache): Rename to...
4973 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
4975 (fcache::~fcache): Rename to...
4976 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
4978 (needs_read): Convert to...
4979 (file_cache_slot::needs_read_p): ...this.
4980 (needs_grow): Convert to...
4981 (file_cache_slot::needs_grow_p): ...this.
4982 (maybe_grow): Convert to...
4983 (file_cache_slot::maybe_grow): ...this.
4984 (read_data): Convert to...
4985 (file_cache_slot::read_data): ...this.
4986 (maybe_read_data): Convert to...
4987 (file_cache_slot::maybe_read_data): ...this.
4988 (get_next_line): Convert to...
4989 (file_cache_slot::get_next_line): ...this.
4990 (goto_next_line): Convert to...
4991 (file_cache_slot::goto_next_line): ...this.
4992 (read_line_num): Convert to...
4993 (file_cache_slot::read_line_num): ...this.
4994 (location_get_source_line): Update for moving of globals to
4995 global_dc->m_file_cache.
4996 (location_missing_trailing_newline): Likewise.
4997 * input.h (class file_cache_slot): New forward decl.
4998 (class file_cache): New.
5000 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
5002 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
5003 128-bit floating point conditional move support.
5004 (have_compare_and_set_mask): Add IEEE 128-bit floating point
5006 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
5007 (mov<mode>cc_p10, IEEE128 iterator): New insn.
5008 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
5009 (fpmask<mode>, IEEE128 iterator): New insn.
5010 (xxsel<mode>, IEEE128 iterator): New insn.
5012 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
5015 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
5017 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
5019 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
5021 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
5023 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
5024 (vec_duplicate<mode>): New expander.
5026 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
5029 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
5031 (ix86_byte_broadcast): New function.
5032 (ix86_convert_const_wide_int_to_broadcast): Likewise.
5033 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
5034 size is 16 bytes or bigger.
5035 (ix86_broadcast_from_integer_constant): New function.
5036 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
5037 to broadcast if mode size is 16 bytes or bigger.
5038 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
5040 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
5042 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
5044 * config/i386/predicates.md (ix86_endbr_immediate_operand):
5045 Return true/false instead of 1/0.
5046 (movq_parallel): Ditto.
5048 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
5050 * recog.c (general_operand): Return true/false instead of 1/0.
5051 (register_operand): Ditto.
5052 (immediate_operand): Ditto.
5053 (const_int_operand): Ditto.
5054 (const_scalar_int_operand): Ditto.
5055 (const_double_operand): Ditto.
5056 (push_operand): Ditto.
5057 (pop_operand): Ditto.
5058 (memory_operand): Ditto.
5059 (indirect_operand): Ditto.
5061 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
5063 * genpreds.c (write_predicate_subfunction):
5064 Change the type of written subfunction to bool.
5065 (write_one_predicate_function):
5066 Change the type of written function to bool.
5067 (write_tm_preds_h): Ditto.
5068 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
5069 * recog.c (general_operand): Change the type to bool.
5070 (address_operand): Ditto.
5071 (register_operand): Ditto.
5072 (pmode_register_operand): Ditto.
5073 (scratch_operand): Ditto.
5074 (immediate_operand): Ditto.
5075 (const_int_operand): Ditto.
5076 (const_scalar_int_operand): Ditto.
5077 (const_double_operand): Ditto.
5078 (nonimmediate_operand): Ditto.
5079 (nonmemory_operand): Ditto.
5080 (push_operand): Ditto.
5081 (pop_operand): Ditto.
5082 (memory_operand): Ditto.
5083 (indirect_operand): Ditto.
5084 (ordered_comparison_operator): Ditto.
5085 (comparison_operator): Ditto.
5086 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
5087 Change the type of indirect predicate function to bool.
5088 * config/rs6000/rs6000.c (easy_vector_constant):
5089 Change the type to bool.
5090 * config/mips/mips-protos.h (m16_based_address_p):
5091 Change the type of operand 3 to bool.
5093 2021-07-01 Richard Biener <rguenther@suse.de>
5095 PR tree-optimization/101280
5096 PR tree-optimization/101173
5097 * gimple-loop-interchange.cc
5098 (tree_loop_interchange::valid_data_dependences): Revert
5099 previous change and instead correctly handle DDR_REVERSED_P
5102 2021-07-01 Richard Biener <rguenther@suse.de>
5104 PR tree-optimization/101278
5105 * tree-ssa-dse.c (dse_classify_store): First check for
5106 uses, then ignore stmt for chaining purposes.
5108 2021-07-01 Richard Biener <rguenther@suse.de>
5110 PR tree-optimization/100778
5111 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
5112 vectorized ops ahead of their scalar BB.
5114 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
5117 * config/i386/i386.md (*nabs<dwi>2_doubleword):
5118 New insn_and_split pattern.
5119 (*nabs<dwi>2_1): Ditto.
5120 * config/i386/i386-features.c
5121 (general_scalar_chain::compute_convert_gain):
5122 Handle (NEG (ABS (...))) RTX. Rewrite src code
5123 scanner as switch statement.
5124 (general_scalar_chain::convert_insn):
5125 Handle (NEG (ABS (...))) RTX.
5126 (general_scalar_to_vector_candidate_p):
5127 Detect (NEG (ABS (...))) RTX. Reorder case statements
5128 for (AND (NOT (...) ...)) fallthrough.
5130 2021-07-01 Richard Biener <rguenther@suse.de>
5132 PR tree-optimization/101178
5133 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
5134 (slpg::perm_in): Add.
5135 (slpg::get_perm_in): Remove.
5136 (slpg::get_perm_materialized): Add.
5137 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
5138 during permute propagation and materialization.
5140 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5143 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
5145 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5148 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
5149 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
5150 use boolean_type_node instead of integer_type_node as NE_EXPR type.
5151 (lower_reduction_clauses): Likewise.
5153 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5155 * config/gcn/gcn.c: Include dwarf2.h.
5156 (gcn_addr_space_debug): New function.
5157 (TARGET_ADDR_SPACE_DEBUG): New hook.
5159 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5161 * common/config/gcn/gcn-common.c
5162 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
5163 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
5165 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
5166 (gcn_frame_pointer_rqd): New function.
5167 (TARGET_FRAME_POINTER_REQUIRED): New hook.
5169 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5171 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
5172 prologue register saves.
5173 (gcn_debug_unwind_info): Use UI_DWARF2.
5174 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
5175 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
5176 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
5177 (DWARF_LINK_REGISTER): New define.
5178 (FIRST_PSEUDO_REGISTER): Increment.
5179 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
5180 (CALL_USED_REGISTERS): Likewise.
5181 (REGISTER_NAMES): Likewise.
5183 2021-06-30 Richard Biener <rguenther@suse.de>
5185 PR tree-optimization/101267
5186 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
5187 API and use SLP compatible interface of vect_is_simple_use.
5188 Reject not vectorized SLP defs for callers that do not support
5190 (vect_check_store_rhs): Handle masked stores and pass down
5191 the appropriate operator index.
5192 (vectorizable_call): Adjust.
5193 (vectorizable_store): Likewise.
5194 (vectorizable_load): Likewise. Handle SLP pecularity of
5196 (vect_is_simple_use): Remove special-casing of masked stores.
5198 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
5200 * common.opt (foffload): Remove help as Driver only.
5201 * gcc.c (display_help): Add -foffload.
5203 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
5205 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
5206 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
5207 a candidate list; better inform no offload target is configured
5208 and fix hint extraction when passed target is not '\0' at [len].
5209 * common.opt (foffload): Add tailing '.'.
5210 (foffload-options): Likewise; fix flag name in the help string.
5212 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
5215 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
5216 (vcage_f32): Gate comparison on __FAST_MATH__.
5217 (vcageq_f32): Likewise.
5218 (vcale_f32): Likewise.
5219 (vcaleq_f32): Likewise.
5220 (vcagt_f32): Likewise.
5221 (vcagtq_f32): Likewise.
5222 (vcalt_f32): Likewise.
5223 (vcaltq_f32): Likewise.
5224 (vcage_f16): Likewise.
5225 (vcageq_f16): Likewise.
5226 (vcale_f16): Likewise.
5227 (vcaleq_f16): Likewise.
5228 (vcagt_f16): Likewise.
5229 (vcagtq_f16): Likewise.
5230 (vcalt_f16): Likewise.
5231 (vcaltq_f16): Likewise.
5233 2021-06-30 Richard Biener <rguenther@suse.de>
5235 PR tree-optimization/101264
5236 * tree-vect-slp.c (vect_optimize_slp): Propagate the
5237 computed perm_in to all "any" permute successors
5238 we cannot de-duplicate immediately.
5240 2021-06-30 liuhongt <hongtao.liu@intel.com>
5243 * config/i386/sse.md
5244 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
5246 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
5248 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
5249 * config/i386/subst.md (maskz_scalar): New define_subst.
5250 (maskz_scalar_name): New subst_attr.
5251 (maskz_scalar_op5): Ditto.
5252 (round_saeonly_maskz_scalar_op5): Ditto.
5253 (round_saeonly_maskz_scalar_operand5): Ditto.
5255 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
5257 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
5258 Increase code CSECT alignment to at least 32 bytes.
5259 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
5260 alignment designation.
5262 2021-06-29 Sergei Trofimovich <siarheit@google.com>
5264 * doc/generic.texi: Fix s/net yet/not yet/ typo.
5266 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
5268 PR tree-optimization/101254
5269 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
5270 wrapping/non-wrapping when setting the result range.
5272 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
5274 * value-query.cc (gimple_range_global): Allow phis.
5276 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
5278 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
5279 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
5280 statement for location context.
5281 (check_for_binary_op_overflow): Ditto.
5282 (simplify_using_ranges::get_vr_for_comparison): Ditto.
5283 (simplify_using_ranges::compare_name_with_value): Ditto.
5284 (simplify_using_ranges::compare_names): Ditto.
5285 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
5286 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
5287 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
5288 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
5289 (simplify_using_ranges::two_valued_val_range_p): Ditto.
5290 (simplify_using_ranges::simplify): Ditto.
5291 * vr-values.h: Adjust prototypes.
5293 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
5296 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
5298 2021-06-29 Julian Brown <julian@codesourcery.com>
5300 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
5301 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
5302 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
5304 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
5305 (MAX_FIXED_MODE_SIZE): Change to 128.
5307 2021-06-29 Julian Brown <julian@codesourcery.com>
5309 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
5310 (s_mnemonic): Add clrsb.
5311 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
5312 (clrsb<mode>2): Add expander for SImode/DImode.
5314 2021-06-29 Julian Brown <julian@codesourcery.com>
5316 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
5317 muldi3): Add patterns.
5319 2021-06-29 Julian Brown <julian@codesourcery.com>
5321 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
5322 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
5324 2021-06-29 Julian Brown <julian@codesourcery.com>
5326 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
5328 2021-06-29 Joseph Myers <joseph@codesourcery.com>
5330 * btfout.c, ctfout.c: Include "memmodel.h".
5332 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5334 * gcc.c (check_offload_target_name): Cast len argument to
5335 %q.*s to 'int'; avoid -Wstringop-truncation warning.
5337 2021-06-29 Richard Biener <rguenther@suse.de>
5339 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
5340 to "any" permute nodes and relax "any" permute proapgation
5341 during iterative backward propagation.
5343 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5346 * common.opt (-foffload=): Update description.
5347 (-foffload-options=): New.
5348 * doc/invoke.texi (C Language Options): Document
5349 -foffload and -foffload-options.
5350 * gcc.c (check_offload_target_name): New, split off from
5351 handle_foffload_option.
5352 (check_foffload_target_names): New.
5353 (handle_foffload_option): Handle -foffload=default.
5354 (driver_handle_option): Update for -foffload-options.
5355 * lto-opts.c (lto_write_options): Use -foffload-options
5356 instead of -foffload.
5357 * lto-wrapper.c (merge_and_complain, append_offload_options):
5359 * opts.c (common_handle_option): Likewise.
5361 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5363 * doc/invoke.texi (C Language Options): Sort options
5364 alphabetically in optlist and also the description itself.
5365 Remove leftover -fallow-single-precision from and add missing
5366 -fgnu-tm to the optlist.
5368 2021-06-29 Richard Biener <rguenther@suse.de>
5370 * tree-vect-slp.c (slpg_vertex::visited): Remove.
5371 (vect_slp_perms_eq): Handle -1 permutes.
5372 (vect_optimize_slp): Rewrite permute propagation.
5374 2021-06-29 Jakub Jelinek <jakub@redhat.com>
5377 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
5378 perform the optimization in GENERIC when sanitizing and x has a
5381 2021-06-29 Richard Biener <rguenther@suse.de>
5383 PR tree-optimization/101242
5384 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
5385 PHIs with not represented initial values as leafs.
5387 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
5389 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
5390 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
5392 (pdp11_initial_elimination_offset) Remove unused variable.
5393 (pdp11_cmp_length) Ditto.
5394 (pdp11_insn_cost): Ditto, and fix signedness warning.
5396 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
5398 * btfout.c: Include tm_p.h.
5401 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
5403 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
5405 (bpf_expand_epilogue): Likewise.
5406 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
5407 Do not define DBX_DEBUGGING_INFO.
5409 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
5411 * doc/invoke.texi: Document the CTF and BTF debug info options.
5413 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
5414 David Faust <david.faust@oracle.com>
5415 Jose E. Marchesi <jose.marchesi@oracle.com>
5416 Weimin Pan <weimin.pan@oracle.com>
5418 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
5419 GTFILES. Add new object files.
5420 * common.opt: Add CTF and BTF debug info options.
5421 * btfout.c: New file.
5424 * ctfout.c: Likewise.
5425 * dwarf2ctf.c: Likewise.
5426 * dwarf2ctf.h: Likewise.
5427 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
5429 * dwarf2out.c (dwarf2out_source_line): Likewise.
5430 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
5432 (debug_format_do_cu): New function.
5433 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
5435 Include dwarf2ctf.c.
5436 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
5438 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
5439 (CTF_DEBUG): New bitmask.
5440 (BTF_DEBUG): Likewise.
5441 (enum ctf_debug_info_levels): New enum.
5442 * gengtype.c (open_base_files): Handle ctfc.h.
5443 (main): Handle uint32_t type.
5444 * flags.h (btf_debuginfo_p): New definition.
5445 (dwarf_based_debuginfo_p): Likewise.
5446 * opts.c (debug_type_names): Add entries for CTF and BTF.
5447 (btf_debuginfo_p): New function.
5448 (dwarf_based_debuginfo_p): Likewise.
5449 (common_handle_option): Handle -gctfN and -gbtf options.
5450 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
5451 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
5454 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
5456 * dwarf2out.c (AT_class): Function is no longer static.
5458 (AT_unsigned): Likewise.
5461 (get_AT_string): Likewise.
5462 (get_AT_flag): Likewise.
5463 (get_AT_unsigned): Likewise.
5464 (get_AT_ref): Likewise.
5465 (new_die_raw): Likewise.
5466 (lookup_decl_die): Likewise.
5467 (base_type_die): Likewise.
5468 (add_name_attribute): Likewise.
5469 (add_AT_int): Likewise.
5470 (add_AT_unsigned): Likewise.
5471 (add_AT_loc): Likewise.
5472 (dw_get_die_tag): New function.
5473 (dw_get_die_child): Likewise.
5474 (dw_get_die_sib): Likewise.
5475 (struct dwarf_file_data): Move from here to dwarf2out.h
5476 (struct dw_attr_struct): Likewise.
5477 * dwarf2out.h: Analogous changes.
5479 2021-06-28 Martin Jambor <mjambor@suse.cz>
5482 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
5483 members m_dead_stmts and m_dead_ssas.
5484 * ipa-param-manipulation.c
5485 (ipa_param_body_adjustments::mark_dead_statements): New function.
5486 (ipa_param_body_adjustments::common_initialization): Call it on
5487 all removed but not split parameters.
5488 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
5490 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
5492 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
5493 dead debug statements.
5494 (copy_phis_for_bb): Do not copy dead PHI nodes.
5496 2021-06-28 Martin Jambor <mjambor@suse.cz>
5499 * symtab-clones.h (clone_info): Removed member param_adjustments.
5500 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
5501 deal with pass-through splits now.
5502 (ipa_param_performed_split): Removed.
5503 (ipa_param_adjustments::modify_call): Adjusted parameters.
5504 (class ipa_param_body_adjustments): Adjusted parameters of
5505 register_replacement, modify_gimple_stmt and modify_call_stmt.
5506 (ipa_verify_edge_has_no_modifications): Declare.
5507 (ipa_edge_modifications_finalize): Declare.
5508 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
5509 performed_splits processing, pas only edge to padjs->modify_call,
5510 check that call arguments were not modified if they should not have
5512 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
5514 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
5515 (ipa_edge_modification_info): Likewise.
5516 (ipa_edge_modification_sum): Likewise.
5517 (ipa_edge_modifications): New edge summary.
5518 (ipa_verify_edge_has_no_modifications): New function.
5519 (transitive_split_p): Removed.
5520 (transitive_split_map): Likewise.
5521 (init_transitive_splits): Likewise.
5522 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
5523 summary instead of performed_splits.
5524 (ipa_param_body_adjustments::register_replacement): Drop dummy
5525 parameter, set base_index of the created ipa_param_body_replacement.
5526 (phi_arg_will_live_p): New function.
5527 (ipa_param_body_adjustments::common_initialization): Do not create
5528 IPA_SRA dummy decls.
5529 (simple_tree_swap_info): Removed.
5530 (remap_split_decl_to_dummy): Likewise.
5531 (record_argument_state_1): New function.
5532 (record_argument_state): Likewise.
5533 (ipa_param_body_adjustments::modify_call_stmt): New parameter
5534 orig_stmt. Do not work with dummy decls, save necessary info about
5535 changes to ipa_edge_modifications.
5536 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
5537 orig_stmt, pass it to modify_call_stmt.
5538 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
5540 (ipa_edge_modifications_finalize): New function.
5541 * tree-inline.c (remap_gimple_stmt): Pass original statement to
5543 (copy_phis_for_bb): Do not copy dead PHI nodes.
5544 (expand_call_inline): Do not remap performed_splits.
5545 (update_clone_info): Likewise.
5546 * toplev.c: Include ipa-param-manipulation.h.
5547 (toplev::finalize): Call ipa_edge_modifications_finalize.
5549 2021-06-28 Andrew Pinski <apinski@marvell.com>
5551 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
5552 info if we're the only things setting the target PHI.
5553 (value_replacement): Don't duplicate range here.
5554 (minmax_replacement): Likewise.
5556 2021-06-28 Richard Biener <rguenther@suse.de>
5558 PR tree-optimization/101229
5559 * gimple-walk.c (gimple_walk_op): Handle PHIs.
5561 2021-06-28 Martin Liska <mliska@suse.cz>
5563 * config/v850/v850.c (construct_dispose_instruction): Allocate
5565 (construct_prepare_instruction): Likewise.
5567 2021-06-28 Martin Liska <mliska@suse.cz>
5569 * config/v850/v850.c (v850_option_override): Build default
5571 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
5572 ignored for inlining.
5573 (TARGET_CAN_INLINE_P): New.
5575 2021-06-28 Richard Biener <rguenther@suse.de>
5577 PR tree-optimization/101207
5578 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
5579 permute eliding for load permutations properly.
5581 2021-06-28 Richard Biener <rguenther@suse.de>
5583 PR tree-optimization/101173
5584 * gimple-loop-interchange.cc
5585 (tree_loop_interchange::valid_data_dependences): Disallow outer
5586 loop dependence distance of zero.
5588 2021-06-28 liuhongt <hongtao.liu@intel.com>
5591 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
5592 define_insn_and_split.
5593 (*avx_cmp<mode>3_ltint): Ditto.
5594 (*avx2_pcmp<mode>3_3): Ditto.
5595 (*avx2_pcmp<mode>3_4): Ditto.
5596 (*avx2_pcmp<mode>3_5): Ditto.
5598 2021-06-28 liuhongt <hongtao.liu@intel.com>
5600 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
5601 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
5602 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
5603 IX86_BUILTIN_PBLENDVB128): Replace icode with
5605 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
5607 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
5608 New pre_reload splitter.
5610 2021-06-27 Andrew Pinski <apinski@marvell.com>
5612 PR middle-end/101230
5613 * fold-const.c (fold_ternary_loc): Check
5614 the return value of invert_tree_comparison.
5616 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
5618 * config.gcc: Add SPDX License Identifier.
5619 (powerpc-ibm-aix789): Default to aix73.h.
5620 (powerpc-ibm-aix7.2.*.*): New stanza.
5621 * config/rs6000/aix72.h: Add SPDX License Identifier.
5622 * config/rs6000/aix73.h: New file.
5624 2021-06-26 Jason Merrill <jason@redhat.com>
5626 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
5628 2021-06-26 Andrew Pinski <apinski@marvell.com>
5630 * genmatch.c (lower_cond): Copy for_subst_vec
5631 for the simplify also.
5632 (lower): Swap the order for lower_for and lower_cond.
5634 2021-06-26 Andrew Pinski <apinski@marvell.com>
5636 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
5637 flow senatitive info on the moved ssa set.
5639 2021-06-26 Andrew Pinski <apinski@marvell.com>
5641 * fold-const.c (fold_cond_expr_with_comparison):
5642 Exand arg0 into comp_code, arg00, and arg01.
5643 (fold_ternary_loc): Use invert_tree_comparison
5644 instead of fold_invert_truthvalue for the case
5645 where we have A CMP B ? C : A.
5647 2021-06-25 Martin Sebor <msebor@redhat.com>
5649 PR middle-end/101216
5650 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
5652 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
5654 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
5656 2021-06-25 Richard Biener <rguenther@suse.de>
5658 PR tree-optimization/101202
5659 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
5662 2021-06-25 Richard Biener <rguenther@suse.de>
5664 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
5665 STMT_VINFO_REDUC_DEF from the original representative.
5667 2021-06-25 Martin Sebor <msebor@redhat.com>
5669 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
5670 gimple_no_warning_p and gimple_set_no_warning with
5671 warning_suppressed_p, and suppress_warning.
5673 (maybe_warn_for_bound): Same.
5674 (warn_for_access): Same.
5675 (check_access): Same.
5676 (expand_builtin_strncmp): Same.
5677 (fold_builtin_varargs): Same.
5678 * calls.c (maybe_warn_nonstring_arg): Same.
5679 (maybe_warn_rdwr_sizes): Same.
5680 * cfgexpand.c (expand_call_stmt): Same.
5681 * cgraphunit.c (check_global_declaration): Same.
5682 * fold-const.c (fold_undefer_overflow_warnings): Same.
5683 (fold_truth_not_expr): Same.
5684 (fold_unary_loc): Same.
5685 (fold_checksum_tree): Same.
5686 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
5687 (array_bounds_checker::check_mem_ref): Same.
5688 (array_bounds_checker::check_addr_expr): Same.
5689 (array_bounds_checker::check_array_bounds): Same.
5690 * gimple-expr.c (copy_var_decl): Same.
5691 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
5692 (gimple_fold_builtin_strncat): Same.
5693 (gimple_fold_builtin_stxcpy_chk): Same.
5694 (gimple_fold_builtin_stpcpy): Same.
5695 (gimple_fold_builtin_sprintf): Same.
5696 (fold_stmt_1): Same.
5697 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
5698 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
5699 * gimple-ssa-sprintf.c (handle_printf_call): Same.
5700 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
5701 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
5702 * gimple-ssa-warn-restrict.h: Adjust declarations.
5703 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
5704 gimple_no_warning_p and gimple_set_no_warning with
5705 warning_suppressed_p, and suppress_warning.
5707 (check_bounds_or_overlap): Same.
5708 * gimple.c (gimple_build_call_from_tree): Same.
5709 * gimplify.c (gimplify_return_expr): Same.
5710 (gimplify_cond_expr): Same.
5711 (gimplify_modify_expr_complex_part): Same.
5712 (gimplify_modify_expr): Same.
5713 (gimple_push_cleanup): Same.
5714 (gimplify_expr): Same.
5715 * omp-expand.c (expand_omp_for_generic): Same.
5716 (expand_omp_taskloop_for_outer): Same.
5717 * omp-low.c (lower_rec_input_clauses): Same.
5718 (lower_lastprivate_clauses): Same.
5719 (lower_send_clauses): Same.
5720 (lower_omp_target): Same.
5721 * tree-cfg.c (pass_warn_function_return::execute): Same.
5722 * tree-complex.c (create_one_component_var): Same.
5723 * tree-inline.c (remap_gimple_op_r): Same.
5724 (copy_tree_body_r): Same.
5725 (declare_return_variable): Same.
5726 (expand_call_inline): Same.
5727 * tree-nested.c (lookup_field_for_decl): Same.
5728 * tree-sra.c (create_access_replacement): Same.
5729 (generate_subtree_copies): Same.
5730 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
5731 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
5732 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
5733 * tree-ssa-loop-im.c (execute_sm): Same.
5734 * tree-ssa-phiopt.c (cond_store_replacement): Same.
5735 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
5736 (handle_builtin_strcpy): Same.
5737 (maybe_diag_stxncpy_trunc): Same.
5738 (handle_builtin_stxncpy_strncat): Same.
5739 (handle_builtin_strcat): Same.
5740 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
5741 (set_no_uninit_warning): Same.
5742 (uninit_undefined_value_p): Same.
5743 (warn_uninit): Same.
5744 (maybe_warn_operand): Same.
5745 * tree-vrp.c (compare_values_warnv): Same.
5746 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
5747 (test_for_singularity): Same.
5748 * gimple.h (warning_suppressed_p): New function.
5749 (suppress_warning): Same.
5750 (copy_no_warning): Same.
5751 (gimple_set_block): Call gimple_set_location.
5752 (gimple_set_location): Call copy_warning.
5754 2021-06-25 Martin Sebor <msebor@redhat.com>
5756 * tree.h (warning_suppressed_at, copy_warning,
5757 warning_suppressed_p, suppress_warning): New functions.
5759 2021-06-25 Martin Sebor <msebor@redhat.com>
5761 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
5762 * gengtype.c (open_base_files): Add diagnostic-spec.h.
5763 * diagnostic-spec.c: New file.
5764 * diagnostic-spec.h: New file.
5765 * tree.h (no_warning, all_warnings, suppress_warning_at): New
5767 * warning-control.cc: New file.
5769 2021-06-25 liuhongt <hongtao.liu@intel.com>
5772 * config/i386/i386.c (x86_order_regs_for_local_alloc):
5775 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
5777 PR tree-optimization/101189
5778 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
5779 LHS range of condition to postfold routine.
5780 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
5781 FALSE edge if the LHS range supports it being taken.
5782 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
5784 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
5786 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
5787 (relation_oracle::find_relation_block): Check correct bitmap.
5788 (relation_oracle::dump): Do not dump NULL blocks.
5790 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
5792 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
5793 range_on_edge instead of manually calculating.
5795 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
5797 * range-op.cc: Fix comment.
5799 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
5802 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
5803 Handle V8QI and V4HI modes.
5804 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
5806 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
5807 (mmxpackmode): New mode attribute.
5808 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
5809 (mmxunpackmode): New mode attribute.
5810 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
5811 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
5812 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
5813 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
5814 * config/i386/i386.md (extsuffix): Move from ...
5815 * config/i386/sse.md: ... here.
5817 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
5819 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
5820 (dwarf2out_finish): ...instead of here.
5822 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
5824 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
5825 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
5826 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
5827 * configure: Regenerate.
5829 2021-06-24 Richard Biener <rguenther@suse.de>
5831 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
5832 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
5833 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
5835 2021-06-24 Richard Biener <rguenther@suse.de>
5837 * config/i386/sse.md (avx_addsubv4df3): Rename to
5839 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
5840 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
5841 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
5842 * config/i386/i386-builtin.def: Adjust.
5843 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
5844 * optabs.def (vec_addsub_optab): New optab.
5845 * tree-vect-slp-patterns.c (class addsub_pattern): New.
5846 (slp_patterns): Add addsub_pattern.
5847 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
5848 across CFN_VEC_ADDSUB.
5849 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
5851 * doc/md.texi (vec_addsub<mode>3): Document.
5853 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5855 PR middle-end/101170
5856 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
5857 where regno + subreg_regno_offset wraps around use 0 as starting
5860 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5862 PR middle-end/101172
5863 * stor-layout.c (finish_bitfield_representative): If nextf has
5864 error_mark_node type, set repr type to error_mark_node too.
5866 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
5868 * config/s390/s390.c (s390_function_profiler): Ignore labelno
5870 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
5872 2021-06-24 Richard Biener <rguenther@suse.de>
5874 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
5875 across operations that have different semantics on different
5878 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5880 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
5881 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
5882 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
5883 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
5884 OMP_TARGET user outer_ctx instead of ctx for placeholders and
5885 initializer/combiner gimplification.
5886 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
5887 on target constructs.
5888 (lower_rec_input_clauses): Likewise.
5889 (lower_omp_target): Likewise.
5890 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
5891 on target if in_reduction is present.
5893 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
5895 * tree-predcom.c (class pcom_worker): New class.
5896 (release_chain): Renamed to...
5897 (pcom_worker::release_chain): ...this.
5898 (release_chains): Renamed to...
5899 (pcom_worker::release_chains): ...this.
5900 (aff_combination_dr_offset): Renamed to...
5901 (pcom_worker::aff_combination_dr_offset): ...this.
5902 (determine_offset): Renamed to...
5903 (pcom_worker::determine_offset): ...this.
5904 (class comp_ptrs): New class.
5905 (split_data_refs_to_components): Renamed to...
5906 (pcom_worker::split_data_refs_to_components): ...this,
5907 and update with class comp_ptrs.
5908 (suitable_component_p): Renamed to...
5909 (pcom_worker::suitable_component_p): ...this.
5910 (filter_suitable_components): Renamed to...
5911 (pcom_worker::filter_suitable_components): ...this.
5912 (valid_initializer_p): Renamed to...
5913 (pcom_worker::valid_initializer_p): ...this.
5914 (find_looparound_phi): Renamed to...
5915 (pcom_worker::find_looparound_phi): ...this.
5916 (add_looparound_copies): Renamed to...
5917 (pcom_worker::add_looparound_copies): ...this.
5918 (determine_roots_comp): Renamed to...
5919 (pcom_worker::determine_roots_comp): ...this.
5920 (determine_roots): Renamed to...
5921 (pcom_worker::determine_roots): ...this.
5922 (single_nonlooparound_use): Renamed to...
5923 (pcom_worker::single_nonlooparound_use): ...this.
5924 (remove_stmt): Renamed to...
5925 (pcom_worker::remove_stmt): ...this.
5926 (execute_pred_commoning_chain): Renamed to...
5927 (pcom_worker::execute_pred_commoning_chain): ...this.
5928 (execute_pred_commoning): Renamed to...
5929 (pcom_worker::execute_pred_commoning): ...this.
5930 (struct epcc_data): New member worker.
5931 (execute_pred_commoning_cbck): Call execute_pred_commoning
5932 with pcom_worker pointer.
5933 (find_use_stmt): Renamed to...
5934 (pcom_worker::find_use_stmt): ...this.
5935 (find_associative_operation_root): Renamed to...
5936 (pcom_worker::find_associative_operation_root): ...this.
5937 (find_common_use_stmt): Renamed to...
5938 (pcom_worker::find_common_use_stmt): ...this.
5939 (combinable_refs_p): Renamed to...
5940 (pcom_worker::combinable_refs_p): ...this.
5941 (reassociate_to_the_same_stmt): Renamed to...
5942 (pcom_worker::reassociate_to_the_same_stmt): ...this.
5943 (stmt_combining_refs): Renamed to...
5944 (pcom_worker::stmt_combining_refs): ...this.
5945 (combine_chains): Renamed to...
5946 (pcom_worker::combine_chains): ...this.
5947 (try_combine_chains): Renamed to...
5948 (pcom_worker::try_combine_chains): ...this.
5949 (prepare_initializers_chain): Renamed to...
5950 (pcom_worker::prepare_initializers_chain): ...this.
5951 (prepare_initializers): Renamed to...
5952 (pcom_worker::prepare_initializers): ...this.
5953 (prepare_finalizers_chain): Renamed to...
5954 (pcom_worker::prepare_finalizers_chain): ...this.
5955 (prepare_finalizers): Renamed to...
5956 (pcom_worker::prepare_finalizers): ...this.
5957 (tree_predictive_commoning_loop): Renamed to...
5958 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
5959 some calls and remove some cleanup code.
5960 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
5961 (static variable looparound_phis): Remove.
5962 (static variable name_expansions): Remove.
5964 2021-06-24 Richard Biener <rguenther@suse.de>
5966 * tree-vect-slp.c (slpg_vertex): New struct.
5967 (vect_slp_build_vertices): Adjust.
5968 (vect_optimize_slp): Likewise. Maintain an outgoing permute
5969 and a materialized one.
5971 2021-06-24 Richard Biener <rguenther@suse.de>
5973 PR tree-optimization/101105
5974 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5975 Only ignore steps when they are equal or scalar order is preserved.
5977 2021-06-24 liuhongt <hongtao.liu@intel.com>
5980 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
5981 Adjust comments for ix86_expand_vecop_qihi2.
5982 (ix86_expand_vecmul_qihi): Renamed to ..
5983 (ix86_expand_vecop_qihi2): Adjust function prototype to
5984 support shift operation, add static to definition.
5985 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
5986 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
5987 ix86_expand_vec_shift_qihi_constant.
5988 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
5989 (ix86_expand_vec_shift_qihi_constant): Deleted.
5990 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
5992 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
5993 condition TARGET_64BIT.
5994 (mul<mode>3): Ditto.
5995 (<insn><mode>3): Ditto.
5996 (vlshr<mode>3): Extend to support avx512 vlshr.
5997 (v<insn><mode>3): New expander for
5999 (v<insn>v8qi3): Ditto.
6000 (vashrv8hi3<mask_name>): Renamed to ..
6001 (vashr<mode>3): And extend to support V16QImode for avx512.
6002 (vashrv16qi3): Deleted.
6003 (vashrv2di3<mask_name>): Extend expander to support avx512
6006 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
6008 * doc/lto.texi (Design Overview): Update that slim objects are
6011 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
6013 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
6014 of OTHER_POWER10_MASKS so it will not be enabled by default.
6016 2021-06-23 Richard Biener <rguenther@suse.de>
6017 Martin Jambor <mjambor@suse.cz>
6019 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
6020 param replacement unconditionally. Adjust comment.
6022 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
6024 * Makefile.in (OBJS): Add gimple-range-fold.o
6025 * gimple-range-fold.cc: New.
6026 * gimple-range-fold.h: New.
6027 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
6028 (gimple_range_calc_op2): Ditto.
6029 * gimple-range-gori.h: Move prototypes to here.
6030 * gimple-range.cc: Adjust include files.
6031 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
6032 (fur_source::get_operand): Ditto.
6033 (fur_source::get_phi_operand): Ditto.
6034 (fur_source::query_relation): Ditto.
6035 (fur_source::register_relation): Ditto.
6036 (class fur_edge): Ditto.
6037 (fur_edge::fur_edge): Ditto.
6038 (fur_edge::get_operand): Ditto.
6039 (fur_edge::get_phi_operand): Ditto.
6040 (fur_stmt::fur_stmt): Ditto.
6041 (fur_stmt::get_operand): Ditto.
6042 (fur_stmt::get_phi_operand): Ditto.
6043 (fur_stmt::query_relation): Ditto.
6044 (class fur_depend): Relocate to gimple-range-fold.h.
6045 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
6046 (fur_depend::register_relation): Ditto.
6047 (fur_depend::register_relation): Ditto.
6048 (class fur_list): Ditto.
6049 (fur_list::fur_list): Ditto.
6050 (fur_list::get_operand): Ditto.
6051 (fur_list::get_phi_operand): Ditto.
6052 (fold_range): Ditto.
6053 (adjust_pointer_diff_expr): Ditto.
6054 (gimple_range_adjustment): Ditto.
6055 (gimple_range_base_of_assignment): Ditto.
6056 (gimple_range_operand1): Ditto.
6057 (gimple_range_operand2): Ditto.
6058 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
6059 (gimple_range_calc_op2): Ditto.
6060 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
6061 (fold_using_range::range_of_range_op): Ditto.
6062 (fold_using_range::range_of_address): Ditto.
6063 (fold_using_range::range_of_phi): Ditto.
6064 (fold_using_range::range_of_call): Ditto.
6065 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
6066 (fold_using_range::range_of_builtin_call): Ditto.
6067 (fold_using_range::range_of_cond_expr): Ditto.
6068 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
6069 (fold_using_range::relation_fold_and_or): Ditto.
6070 (fold_using_range::postfold_gcond_edges): Ditto.
6071 * gimple-range.h: Add gimple-range-fold.h to include files. Change
6072 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
6073 (gimple_range_handler): Relocate to gimple-range-fold.h.
6074 (gimple_range_ssa_p): Ditto.
6075 (range_compatible_p): Ditto.
6076 (class fur_source): Ditto.
6077 (class fur_stmt): Ditto.
6078 (class fold_using_range): Ditto.
6079 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
6080 (gimple_range_calc_op2): Ditto.
6082 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
6084 PR tree-optimization/101148
6085 PR tree-optimization/101014
6086 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
6087 (ranger_cache::~ranger_cache): Adjust.
6088 (ranger_cache::block_range): Check if propagation disallowed.
6089 (ranger_cache::propagate_cache): Disallow propagation if new value
6090 can't be stored properly.
6091 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
6093 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
6095 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
6096 (sbr_vector::set_bb_range): Return true.
6097 (class sbr_sparse_bitmap): Adjust.
6098 (sbr_sparse_bitmap::set_bb_range): Return value.
6099 (block_range_cache::set_bb_range): Return value.
6100 (ranger_cache::propagate_cache): Use return value to print msg.
6101 * gimple-range-cache.h (class block_range_cache): Adjust.
6103 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
6105 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
6107 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
6109 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
6110 so this pattern can be used for test/compare removal. Pass
6111 current insn to compute_logical_op_length and output_logical_op.
6112 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
6113 (h8300_and_costs): Add argument to compute_logical_op_length.
6114 (output_logical_op): Add new argument. Use it to determine if the
6115 condition codes are used and adjust the output accordingly.
6116 (compute_logical_op_length): Add new argument and update length
6117 computations when condition codes are used.
6118 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
6120 (output_logical_op): Likewise.
6122 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
6125 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
6126 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
6127 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
6128 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
6129 * config/i386/sse.md (unspec): ... here.
6131 2021-06-23 Martin Liska <mliska@suse.cz>
6134 * optc-save-gen.awk: Put back arm_fp16_format to
6137 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
6140 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
6143 (clz<mode>2): Update RTX pattern for additions.
6145 2021-06-23 Jakub Jelinek <jakub@redhat.com>
6147 PR middle-end/101167
6148 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
6149 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
6151 2021-06-22 Sergei Trofimovich <siarheit@google.com>
6153 * doc/rtl.texi: drop unbalanced parenthesis.
6155 2021-06-22 Richard Biener <rguenther@suse.de>
6157 PR middle-end/101156
6158 * gimplify.c (gimplify_expr): Remove premature incorrect
6161 2021-06-22 Jakub Jelinek <jakub@redhat.com>
6163 PR tree-optimization/101159
6164 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
6167 2021-06-22 Jakub Jelinek <jakub@redhat.com>
6169 PR middle-end/101160
6170 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
6171 clear crtl->return_rtx instead of keeping it referencing a pseudo.
6173 2021-06-22 Jakub Jelinek <jakub@redhat.com>
6174 Andrew Pinski <apinski@marvell.com>
6176 PR tree-optimization/101162
6177 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
6180 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
6182 * range-op.cc (range_relational_tests): New.
6183 (range_op_tests): Call range_relational_tests.
6185 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
6187 * range-op.cc (operator_cast::lhs_op1_relation): New.
6188 (operator_identity::lhs_op1_relation): Mew.
6190 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
6192 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
6194 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
6196 * range-op.cc (operator_plus::lhs_op1_relation): New.
6197 (operator_plus::lhs_op2_relation): New.
6199 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
6201 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
6202 relation_oracle if dominators exist.
6203 (ranger_cache::~ranger_cache): Dispose of oracle.
6204 (ranger_cache::dump_bb): Dump oracle.
6205 * gimple-range.cc (fur_source::fur_source): New.
6206 (fur_source::get_operand): Use mmeber query.
6207 (fur_source::get_phi_operand): Use member_query.
6208 (fur_source::query_relation): New.
6209 (fur_source::register_dependency): Delete.
6210 (fur_source::register_relation): New.
6211 (fur_edge::fur_edge): Adjust.
6212 (fur_edge::get_phi_operand): Fix comment.
6213 (fur_edge::query): Delete.
6214 (fur_stmt::fur_stmt): Adjust.
6215 (fur_stmt::query): Delete.
6216 (fur_depend::fur_depend): Adjust.
6217 (fur_depend::register_relation): New.
6218 (fur_depend::register_relation): New.
6219 (fur_list::fur_list): Adjust.
6220 (fur_list::get_operand): Use member query.
6221 (fold_using_range::range_of_range_op): Process and query relations.
6222 (fold_using_range::range_of_address): Adjust dependency call.
6223 (fold_using_range::range_of_phi): Ditto.
6224 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
6225 (fold_using_range::relation_fold_and_or): New.
6226 (fold_using_range::postfold_gcond_edges): New.
6227 * gimple-range.h (class gimple_ranger): Adjust.
6228 (class fur_source): Adjust members.
6229 (class fur_stmt): Ditto.
6230 (class fold_using_range): Ditto.
6232 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
6234 * range-op.cc (range_operator::wi_fold): Apply relation effect.
6235 (range_operator::fold_range): Adjust and apply relation effect.
6236 (*::fold_range): Add relation parameters.
6237 (*::op1_range): Ditto.
6238 (*::op2_range): Ditto.
6239 (range_operator::lhs_op1_relation): New.
6240 (range_operator::lhs_op2_relation): New.
6241 (range_operator::op1_op2_relation): New.
6242 (range_operator::op1_op2_relation_effect): New.
6243 (relop_early_resolve): New.
6244 (operator_equal::op1_op2_relation): New.
6245 (operator_equal::fold_range): Call relop_early_resolve.
6246 (operator_not_equal::op1_op2_relation): New.
6247 (operator_not_equal::fold_range): Call relop_early_resolve.
6248 (operator_lt::op1_op2_relation): New.
6249 (operator_lt::fold_range): Call relop_early_resolve.
6250 (operator_le::op1_op2_relation): New.
6251 (operator_le::fold_range): Call relop_early_resolve.
6252 (operator_gt::op1_op2_relation): New.
6253 (operator_gt::fold_range): Call relop_early_resolve.
6254 (operator_ge::op1_op2_relation): New.
6255 (operator_ge::fold_range): Call relop_early_resolve.
6256 * range-op.h (class range_operator): Adjust parameters and methods.
6258 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
6260 * Makefile.in (OBJS): Add value-relation.o.
6261 * gimple-range.h: Adjust include files.
6262 * tree-data-ref.c: Adjust include file order.
6263 * value-query.cc (range_query::get_value_range): Default to no oracle.
6264 (range_query::query_relation): New.
6265 (range_query::query_relation): New.
6266 * value-query.h (class range_query): Adjust.
6267 * value-relation.cc: New.
6268 * value-relation.h: New.
6270 2021-06-22 Richard Biener <rguenther@suse.de>
6272 PR tree-optimization/101151
6273 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
6276 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
6278 * config/riscv/riscv.c (thead_c906_tune_info): New.
6279 (riscv_tune_info_table): Use new tune.
6281 2021-06-22 Richard Biener <rguenther@suse.de>
6283 PR tree-optimization/101158
6284 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
6285 checking after checking for matching operation.
6287 2021-06-22 Richard Biener <rguenther@suse.de>
6289 PR tree-optimization/101159
6290 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
6291 missing NULL vectype check.
6293 2021-06-22 Richard Biener <rguenther@suse.de>
6295 PR tree-optimization/101154
6296 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
6298 2021-06-22 Jakub Jelinek <jakub@redhat.com>
6301 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
6302 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
6303 * config/i386/i386.c (ix86_expand_prologue): Clear it.
6304 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
6305 Remove "" from match_operand. Emit new insns using emit_move_insn and
6306 set ix86_last_zero_store_uid to INSN_UID of the last store.
6307 Add peephole2s for 1/2/4 stores of const0_rtx following previous
6310 2021-06-22 Martin Liska <mliska@suse.cz>
6312 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
6315 2021-06-22 Martin Liska <mliska@suse.cz>
6317 * gcov-io.h: Remove padding entries.
6319 2021-06-22 liuhongt <hongtao.liu@intel.com>
6321 PR tree-optimization/97770
6322 * tree-vect-patterns.c (vect_recog_popcount_pattern):
6324 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
6326 2021-06-22 liuhongt <hongtao.liu@intel.com>
6329 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
6330 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
6331 (expand<mode>_mask): this ..
6332 (*expand<mode>_mask): New pre_reload splitter to transform
6333 v{,p}expand* to vmov* when mask is zero, all ones, or has all
6334 ones in it's lower part, otherwise still generate
6337 2021-06-22 liuhongt <hongtao.liu@intel.com>
6340 * config/i386/i386-expand.c
6341 (ix86_expand_special_args_builtin): Keep constm1_operand only
6342 if it satisfies insn's operand predicate.
6344 2021-06-21 Jason Merrill <jason@redhat.com>
6347 * df-scan.c (df_ref_record): Check that regno < endregno.
6348 * function.c (assign_parms, expand_function_end): Do nothing with a
6349 TYPE_EMPTY_P result.
6351 2021-06-21 Richard Biener <rguenther@suse.de>
6353 PR tree-optimization/101120
6354 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
6356 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
6357 DR chain DCE capability.
6358 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
6359 * tree-vect-stmts.c (vectorizable_load): Remove unused
6360 loads in the DR chain for SLP.
6362 2021-06-21 Jakub Jelinek <jakub@redhat.com>
6364 PR inline-asm/100785
6365 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
6366 output or input operands were already error_mark_node.
6367 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
6368 remove all inputs, outputs and clobbers from the asm and
6371 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
6373 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
6374 (vceq_s16): Likewise.
6375 (vceq_s32): Likewise.
6376 (vceq_u8): Likewise.
6377 (vceq_u16): Likewise.
6378 (vceq_u32): Likewise.
6379 (vceq_p8): Likewise.
6380 (vceqq_s8): Likewise.
6381 (vceqq_s16): Likewise.
6382 (vceqq_s32): Likewise.
6383 (vceqq_u8): Likewise.
6384 (vceqq_u16): Likewise.
6385 (vceqq_u32): Likewise.
6386 (vceqq_p8): Likewise.
6387 (vceq_f32): Gate __a == __b on __FAST_MATH__.
6388 (vceqq_f32): Likewise.
6389 (vceq_f16): Likewise.
6390 (vceqq_f16): Likewise.
6392 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
6395 * config/arm/iterators.md (NEON_VACMP): Remove.
6396 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
6398 (neon_vca<cmp_op><mode>_insn): Likewise.
6399 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
6402 2021-06-21 Richard Biener <rguenther@suse.de>
6404 PR tree-optimization/101121
6405 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
6406 when we just lack a stmt with the desired op when doing permutation.
6407 (vect_build_slp_tree): When caching a failed SLP build attempt
6408 assert that at least one lane is marked as not matching.
6410 2021-06-21 liuhongt <hongtao.liu@intel.com>
6413 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
6414 register alternative.
6415 (*and<mode>_1): Ditto.
6417 (*andn<mode>_1): Ditto.
6418 (*<code><mode>_1): Ditto.
6419 (*<code>qi_1): Ditto.
6420 (*one_cmpl<mode>2_1): Ditto.
6421 (*one_cmplsi2_1_zext): Ditto.
6422 (*one_cmplqi2_1): Ditto.
6423 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
6424 the order of mask registers to be before general registers.
6426 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
6429 * config/i386/i386.md: New define_peephole2s to shrink writing
6430 1, 2 or 4 consecutive zeros to memory when optimizing for size.
6432 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
6434 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
6435 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
6436 more efficient code when the source can be trivially simplified.
6438 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
6440 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
6441 a range if global is not available.
6442 (ranger_cache::entry_range): Fallback to range_of_def.
6443 * gimple-range-cache.h (range_of_def): Adjust prototype.
6445 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
6447 PR tree-optimization/101014
6448 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
6450 (ranger_cache::~ranger_cache): Ditto.
6451 (ranger_cache::enable_new_values): Delete.
6452 (ranger_cache::push_poor_value): Delete.
6453 (ranger_cache::range_of_def): Remove poor value processing.
6454 (ranger_cache::entry_range): Ditto.
6455 (ranger_cache::fill_block_cache): Ditto.
6456 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
6457 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
6458 * gimple-range.h (class gimple_ranger): Adjust.
6460 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6463 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
6464 derived from arm_canon_arch.
6465 (arm_canon_arch_option): Call it.
6466 (arm_canon_arch_multilib_option): New function.
6467 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
6468 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
6469 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
6470 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
6471 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
6472 * config/arm/arm.opt (mlibarch): New option.
6473 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
6474 of march on RHS with mlibarch.
6476 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
6478 * config.in: Regenerate.
6479 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
6481 * configure: Regenerate.
6482 * configure.ac: Fix for global_load assembler functions.
6484 2021-06-18 Richard Biener <rguenther@suse.de>
6486 PR tree-optimization/101112
6487 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
6488 to lookup a pattern stmt def.
6490 2021-06-18 Jakub Jelinek <jakub@redhat.com>
6492 PR middle-end/101062
6493 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
6494 representatives in QUAL_UNION_TYPE.
6496 2021-06-18 Andrew Pinski <apinski@marvell.com>
6498 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
6499 Add counting of how many times it is done.
6500 (factor_out_conditional_conversion): Likewise.
6501 (match_simplify_replacement): Likewise.
6502 (value_replacement): Likewise.
6503 (spaceship_replacement): Likewise.
6504 (cond_store_replacement): Likewise.
6505 (cond_if_else_store_replacement_1): Likewise.
6506 (hoist_adjacent_loads): Likewise.
6508 2021-06-18 Andrew Pinski <apinski@marvell.com>
6510 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
6511 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
6512 (verify_gimple_assign_binary): Reject point and offset types on
6513 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
6514 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
6515 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
6517 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
6519 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
6520 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
6521 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
6524 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
6526 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
6527 earlyclobber to alts 0/1.
6528 (gen_addadd): Add earlyclobber to alts 0/1.
6529 * config/rs6000/fusion.md: Regenerate file.
6531 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
6533 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
6535 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
6537 * gimple-range-cache.cc: Comment cleanups.
6538 * gimple-range-gori.cc: Comment cleanups.
6539 * gimple-range.cc: Comment/spacing cleanups
6540 * value-range.h: Comment cleanups.
6542 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
6545 * calls.c (expand_call): Replace PUSH_ARGS with
6546 targetm.calls.push_argument (0).
6547 (emit_library_call_value_1): Likewise.
6548 * defaults.h (PUSH_ARGS): Removed.
6549 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
6550 targetm.calls.push_argument (0).
6551 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6552 (emit_push_insn): Pass the number bytes to push to
6553 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
6554 * hooks.c (hook_bool_uint_true): New.
6555 * hooks.h (hook_bool_uint_true): Likewise.
6556 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
6557 targetm.calls.push_argument (0).
6558 * target.def (push_argument): Add a targetm.calls hook.
6559 * targhooks.c (default_push_argument): New.
6560 * targhooks.h (default_push_argument): Likewise.
6561 * config/bpf/bpf.h (PUSH_ARGS): Removed.
6562 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
6563 * config/cr16/cr16.h (PUSH_ARGS): Removed.
6564 * config/i386/i386.c (ix86_push_argument): New.
6565 (TARGET_PUSH_ARGUMENT): Likewise.
6566 * config/i386/i386.h (PUSH_ARGS): Removed.
6567 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
6568 * config/m32c/m32c.h (PUSH_ARGS): Removed.
6569 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
6570 * config/pru/pru.h (PUSH_ARGS): Likewise.
6571 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
6572 TARGET_PUSH_ARGUMENT hook.
6573 * doc/tm.texi: Regenerated.
6575 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
6578 * config/i386/i386-expand.c (expand_vector_set_var):
6579 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
6580 ix86_expand_vector_init_duplicate.
6581 (ix86_expand_vector_init_duplicate): Emit insv_1 for
6582 QImode for !TARGET_PARTIAL_REG_STALL.
6583 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
6584 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
6585 as operand 2 predicate. Call ix86_expand_vector_set_var
6586 for non-constant index operand.
6587 (vec_setv2si): Ditto.
6588 (vec_setv4hi): Ditto.
6589 (vec_setv8qi): ditto.
6591 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
6593 PR tree-optimization/100790
6594 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
6597 2021-06-17 Martin Liska <mliska@suse.cz>
6599 * doc/invoke.texi: Use consistently -O1 instead of -O.
6601 2021-06-17 Martin Liska <mliska@suse.cz>
6603 * gcov-io.h: Update documentation entry about string format.
6605 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
6608 * config/s390/vecintrin.h (vec_doublee): Fix to use
6609 __builtin_s390_vflls.
6610 (vec_floate): Fix to use __builtin_s390_vflrd.
6612 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
6614 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
6615 * dominance.h (get_dominated_to_depth): Likewise.
6616 (get_all_dominated_blocks): Likewise.
6617 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
6618 * gcse.c (hoist_code): Likewise.
6619 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
6620 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
6621 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6622 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
6624 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
6626 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
6627 * dominance.h (get_dominated_by_region): Likewise.
6628 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
6629 (gimple_duplicate_sese_tail): Likewise.
6630 (move_sese_region_to_fn): Likewise.
6632 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
6634 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
6635 * dominance.h (get_dominated_by): Likewise.
6636 * auto-profile.c (afdo_find_equiv_class): Adjust.
6637 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
6638 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
6639 * tree-cfg.c (test_linear_chain): Likewise.
6640 (test_diamond): Likewise.
6642 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
6644 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
6645 * cfgloopanal.c (get_loop_hot_path): Likewise.
6646 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
6648 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
6650 * cgraph.c (cgraph_node::collect_callers): Return
6651 auto_vec<cgraph_edge *>.
6652 * cgraph.h (cgraph_node::collect_callers): Likewise.
6653 * ipa-cp.c (create_specialized_node): Adjust.
6654 (decide_about_value): Likewise.
6655 (decide_whether_version_node): Likewise.
6656 * ipa-sra.c (process_isra_node_results): Likewise.
6658 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
6660 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
6661 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
6663 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
6666 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
6668 * gimple-range.cc (debug_seed_ranger): New.
6670 (debug_ranger): New.
6672 2021-06-17 Richard Biener <rguenther@suse.de>
6674 PR tree-optimization/54400
6675 * tree-vectorizer.h (enum slp_instance_kind): Add
6676 slp_inst_kind_bb_reduc.
6677 (reduction_fn_for_scalar_code): Declare.
6678 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
6679 Check SLP_INSTANCE_KIND instead of looking at the
6681 (vect_slp_analyze_instance_alignment): Likewise.
6682 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
6683 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
6684 chain linearization from vect_build_slp_tree_2 and generalize
6685 for the use of BB reduction vectorization.
6686 (vect_build_slp_tree_2): Adjust accordingly.
6687 (vect_optimize_slp): Elide permutes at the root of BB reduction
6689 (vectorizable_bb_reduc_epilogue): New function.
6690 (vect_slp_prune_covered_roots): Likewise.
6691 (vect_slp_analyze_operations): Use them.
6692 (vect_slp_check_for_constructors): Recognize associatable
6693 chains for BB reduction vectorization.
6694 (vectorize_slp_instance_root_stmt): Generate code for the
6695 BB reduction epilogue.
6697 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
6699 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
6701 (gori_compute::may_recompute_p): New.
6702 (gori_compute::outgoing_edge_range_p): Perform recomputations.
6703 * gimple-range-gori.h (class gori_compute): Add prototype.
6705 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
6707 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
6708 true when a range can be calculated.
6709 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
6711 2021-06-16 Martin Sebor <msebor@redhat.com>
6713 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
6714 Correct documented defaults.
6716 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
6718 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
6719 m_new_value_p directly.
6721 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
6724 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
6725 Handle 64bit modes for TARGET_SSE4_1.
6726 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
6727 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
6728 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
6729 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
6730 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
6731 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
6733 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
6735 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
6736 Change to an expander that emits the correct instruction
6737 depending on endianness.
6738 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
6739 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
6741 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
6743 * config/aarch64/aarch64-simd-builtins.def: Split generator
6744 for aarch64_<su>qmovn builtins into scalar and vector
6746 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
6748 (aarch64_<su>qmovn<mode>_insn_be): Define.
6749 (aarch64_<su>qmovn<mode>): Split into scalar and vector
6750 variants. Change vector variant to an expander that emits the
6751 correct instruction depending on endianness.
6753 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
6755 * config/aarch64/aarch64-simd-builtins.def: Split generator
6756 for aarch64_sqmovun builtins into scalar and vector variants.
6757 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
6758 Split into scalar and vector variants. Change vector variant
6759 to an expander that emits the correct instruction depending
6761 (aarch64_sqmovun<mode>_insn_le): Define.
6762 (aarch64_sqmovun<mode>_insn_be): Define.
6764 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
6766 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
6767 Define - modeling zero-high-half semantics.
6768 (aarch64_xtn<mode>): Change to an expander that emits the
6769 appropriate instruction depending on endianness.
6770 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
6772 (aarch64_xtn2<mode>_le): Rename to...
6773 (aarch64_xtn2<mode>_insn_le): This.
6774 (aarch64_xtn2<mode>_be): Rename to...
6775 (aarch64_xtn2<mode>_insn_be): This.
6776 (vec_pack_trunc_<mode>): Emit truncation instruction instead
6778 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
6781 2021-06-16 Martin Jambor <mjambor@suse.cz>
6783 PR tree-optimization/100453
6784 * tree-sra.c (create_access): Disqualify any const candidates
6785 which are written to.
6786 (sra_modify_expr): Do not store sub-replacements back to a const base.
6787 (handle_unscalarized_data_in_subtree): Likewise.
6788 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
6789 instead of constant_decl_p.
6791 2021-06-16 Jakub Jelinek <jakub@redhat.com>
6793 PR middle-end/101062
6794 * stor-layout.c (finish_bitfield_representative): For fields in unions
6795 assume nextf is always NULL.
6796 (finish_bitfield_layout): Compute bit field representatives also in
6797 unions, but handle it as if each bitfield was the only field in the
6800 2021-06-16 Richard Biener <rguenther@suse.de>
6802 PR tree-optimization/101088
6803 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
6804 supported refs on edges. Do not assert same ref but
6805 different kind stores are unsuported but mark them so.
6806 (hoist_memory_references): Only look for supported refs
6809 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
6811 PR rtl-optimization/46235
6812 * config/i386/i386.md: New define_split for bt followed by cmov.
6813 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
6814 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
6815 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
6816 by setnc with zero extension.
6818 2021-06-16 Richard Biener <rguenther@suse.de>
6820 PR tree-optimization/101083
6821 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
6822 vectype as argument.
6823 (vect_build_slp_tree_2): Adjust.
6825 2021-06-15 Martin Sebor <msebor@redhat.com>
6827 PR middle-end/100876
6828 * builtins.c: (gimple_call_return_array): Account for size_t
6829 mangling as either unsigned int or unsigned long
6831 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
6833 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
6834 up before eliminating comparisons.
6836 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
6838 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
6839 nonzero|X is nonzero.
6840 (range_op_bitwise_and_tests): Add tests for above.
6842 2021-06-15 Carl Love <cel@us.ibm.com>
6845 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
6847 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
6850 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
6853 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
6854 (struct gimplify_omp_ctx): Extend defaultmap array by one.
6855 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
6856 (omp_notice_variable): Update type classification for Fortran.
6857 (gimplify_scan_omp_clauses): Update calls for new argument; handle
6858 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
6859 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
6860 * langhooks.c (lhd_omp_scalar_p): Likewise.
6861 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
6862 (LANG_HOOKS_DECLS): Add them.
6863 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
6864 omp_scalar_p pointer type to include the new bool argument.
6866 2021-06-15 David Malcolm <dmalcolm@redhat.com>
6869 (Special Functions for Debugging the Analyzer): Add
6870 __analyzer_dump_capacity.
6872 2021-06-15 Jakub Jelinek <jakub@redhat.com>
6875 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
6876 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
6878 2021-06-15 Richard Biener <rguenther@suse.de>
6880 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
6881 check to identify loop latches.
6882 * cfgloop.c (verify_loop_structure): Likewise.
6883 * loop-init.c (apply_loop_flags): Allow marked irreducible
6884 regions even with multiple latches.
6885 * predict.c (rebuild_frequencies): Simplify.
6887 2021-06-15 Richard Biener <rguenther@suse.de>
6889 * tree-ssa-threadupdate.c
6890 (jump_thread_path_registry::mark_threaded_blocks): Assert we
6891 have marked irreducible regions.
6893 2021-06-14 Martin Sebor <msebor@redhat.com>
6896 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
6897 Handle calls to placement new.
6898 (ndecl_dealloc_argno): Avoid placement delete.
6900 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
6903 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
6904 create_tmp_reg_or_ssa_name().
6906 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
6908 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
6909 (ranger_cache::enable_new_values): Set to specified value and
6910 return the old value.
6911 (ranger_cache::disable_new_values): Delete.
6912 (ranger_cache::fill_block_cache): Disable non 1st order derived
6914 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
6915 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
6917 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
6920 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
6921 Return true early when testing with V2HImode.
6922 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
6924 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
6926 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
6927 (mve_vec_unpack<US>_hi_<mode>): New pattern.
6928 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
6929 (mve_vmovntq_<supf><mode>): Prefix with '@'.
6930 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
6932 (vec_unpack<US>_lo_<mode>): Likewise.
6933 (vec_pack_trunc_<mode>): Rename to
6934 neon_quad_vec_pack_trunc_<mode>.
6935 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
6937 (vec_unpack<US>_lo_<mode>): New.
6938 (vec_pack_trunc_<mode>): New.
6940 2021-06-14 Richard Biener <rguenther@suse.de>
6942 PR tree-optimization/100934
6943 * tree-ssa-dom.c (pass_dominator::execute): Properly
6944 mark irreducible regions.
6946 2021-06-14 Martin Liska <mliska@suse.cz>
6948 * doc/invoke.texi: Put r{...} on the same line as @item.
6950 2021-06-14 Martin Liska <mliska@suse.cz>
6952 * doc/invoke.texi: Add missing newline.
6954 2021-06-14 Martin Liska <mliska@suse.cz>
6956 * doc/invoke.texi: Remove '+' charasters.
6958 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
6960 * config.gcc (arc): Add support for with_cpu option.
6961 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
6963 2021-06-14 Richard Biener <rguenther@suse.de>
6965 PR tree-optimization/101031
6966 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
6967 instead of size when accounting for a possibly string
6970 2021-06-14 Martin Liska <mliska@suse.cz>
6972 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
6974 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
6976 * value-query.cc (gimple_range_global): Call get_range_global
6977 if called after inlining.
6979 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
6982 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
6983 Emit constant permutation insn directly from here.
6985 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
6987 * attribs.c (find_attribute_namespace): Iterate over vec<> with
6989 * auto-profile.c (afdo_find_equiv_class): Likewise.
6990 * gcc.c (do_specs_vec): Likewise.
6991 (do_spec_1): Likewise.
6992 (driver::set_up_specs): Likewise.
6993 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
6994 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
6995 (imm_store_chain_info::try_coalesce_bswap): Likewise.
6996 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
6997 (get_location_for_stmts): Likewise.
6998 * graphite-poly.c (print_iteration_domains): Likewise.
6999 (free_poly_bb): Likewise.
7000 (remove_gbbs_in_scop): Likewise.
7001 (free_scop): Likewise.
7002 (dump_gbb_cases): Likewise.
7003 (dump_gbb_conditions): Likewise.
7004 (print_pdrs): Likewise.
7005 (print_scop): Likewise.
7006 * ifcvt.c (cond_move_process_if_block): Likewise.
7007 * lower-subreg.c (decompose_multiword_subregs): Likewise.
7008 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
7009 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
7010 * sel-sched-dump.c (dump_insn_vector): Likewise.
7011 * store-motion.c (store_ops_ok): Likewise.
7012 (store_killed_in_insn): Likewise.
7013 * timevar.c (timer::named_items::print): Likewise.
7014 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
7015 (cleanup_tree_cfg_noloop): Likewise.
7016 * tree-data-ref.c (dump_data_references): Likewise.
7017 (print_dir_vectors): Likewise.
7018 (print_dist_vectors): Likewise.
7019 (dump_data_dependence_relations): Likewise.
7020 (dump_dist_dir_vectors): Likewise.
7021 (dump_ddrs): Likewise.
7022 (create_runtime_alias_checks): Likewise.
7023 (free_subscripts): Likewise.
7024 (save_dist_v): Likewise.
7025 (save_dir_v): Likewise.
7026 (invariant_access_functions): Likewise.
7027 (same_access_functions): Likewise.
7028 (access_functions_are_affine_or_constant_p): Likewise.
7029 (find_data_references_in_stmt): Likewise.
7030 (graphite_find_data_references_in_stmt): Likewise.
7031 (free_dependence_relations): Likewise.
7032 (free_data_refs): Likewise.
7033 * tree-inline.c (copy_debug_stmts): Likewise.
7034 * tree-into-ssa.c (dump_currdefs): Likewise.
7035 (rewrite_update_phi_arguments): Likewise.
7036 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
7037 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
7039 (vect_slp_analyze_node_dependences): Likewise.
7040 (vect_slp_analyze_instance_dependence): Likewise.
7041 (vect_record_base_alignments): Likewise.
7042 (vect_get_peeling_costs_all_drs): Likewise.
7043 (vect_peeling_supportable): Likewise.
7044 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
7045 (vec_info::free_stmt_vec_infos): Likewise.
7047 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
7049 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
7050 (andqi3_1<cczn>): Removed.
7051 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
7052 (H8/SX bit logicals): Split out from other patterns.
7053 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
7054 mulqihi3_const_clobber_flags.
7055 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
7057 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
7060 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
7061 to true if red zone is used.
7062 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
7064 * config/i386/i386.h (machine_function): Add red_zone_used.
7065 (ix86_red_zone_size): Removed.
7066 (ix86_red_zone_used): New.
7067 * config/i386/i386.md (peephole2 patterns): Replace
7068 ix86_red_zone_size with ix86_red_zone_used.
7070 2021-06-12 Jason Merrill <jason@redhat.com>
7072 * doc/extend.texi (unused variable attribute): Applies to
7073 structure fields as well.
7075 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
7077 * auto-profile.c (read_profile): fix a typo in an error string
7079 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
7081 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
7083 * tree-pretty-print.c (dump_omp_clauses): Update.
7084 (dump_generic_node) <OMP_CLAUSE>: Use it.
7086 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7089 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
7090 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
7091 the polymorphic variants matching code.
7092 (__arm_vld1q_z): Likewise.
7093 (__arm_vld2q): Likewise.
7094 (__arm_vld4q): Likewise.
7095 (__arm_vldrbq_gather_offset): Likewise.
7096 (__arm_vldrbq_gather_offset_z): Likewise.
7098 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
7100 PR tree-optimization/96392
7101 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
7103 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
7105 PR tree-optimization/96392
7106 * fold-const.c (fold_real_zero_addition_p): Take both arguments
7107 of the addition or subtraction, not just the zero. Use this
7108 other argument in tests for signaling NaNs and signed zeros.
7109 (tree_expr_maybe_real_minus_zero_p): New predicate.
7110 * fold-const.h (fold_real_zero_addition_p): Update prototype.
7111 (tree_expr_maybe_real_minus_zero_p): New function prototype.
7112 * match.pd: Update calls to fold_real_zero_addition_p.
7113 Replace HONOR_NANS with tree_expr_maybe_nan_p.
7114 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
7115 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
7116 * tree-ssa-reassoc.c (eliminate_using_constants): Update
7117 call to fold_real_zero_addition_p.
7119 2021-06-11 Richard Biener <rguenther@suse.de>
7121 PR tree-optimization/101025
7122 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
7123 all refs that require dependence checking.
7125 2021-06-11 Richard Biener <rguenther@suse.de>
7127 PR tree-optimization/101028
7128 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
7129 reassoc discovery fails fatally, mark appropriate lanes
7132 2021-06-11 Richard Biener <rguenther@suse.de>
7134 PR tree-optimization/101026
7135 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
7136 have a representative for the associated chain nodes.
7138 2021-06-11 Jakub Jelinek <jakub@redhat.com>
7140 PR rtl-optimization/101008
7141 * simplify-rtx.c (relational_result): New function.
7142 (simplify_logical_relational_operation,
7143 simplify_relational_operation): Use it.
7145 2021-06-11 Jakub Jelinek <jakub@redhat.com>
7148 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
7150 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
7153 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
7154 false if the permutation can be implemented with constant
7155 permutation instruction in wider mode.
7156 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
7157 Handle V8QImode and V4HImode.
7159 2021-06-11 Martin Liska <mliska@suse.cz>
7161 PR gcov-profile/100788
7162 * common.opt: Add new option.
7163 * coverage.c (coverage_begin_function): Emit warning instead on
7164 the internal compiler error.
7165 * doc/invoke.texi: Document the option.
7166 * toplev.c (process_options): Enable it by default.
7168 2021-06-11 Richard Biener <rguenther@suse.de>
7170 PR middle-end/101009
7171 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
7172 to set *init_b to true when we encounter a constant equal
7174 (compute_affine_dependence): Also dump the actual DR_REF.
7176 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
7178 PR tree-optimization/100984
7179 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
7181 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
7183 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
7185 * config/rs6000/rs6000.md
7186 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
7187 define_insn_and_split.
7189 2021-06-11 Richard Biener <rguenther@suse.de>
7191 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
7192 to sort operands of the associative chain.
7194 2021-06-11 Richard Biener <rguenther@suse.de>
7196 * system.h (gcc_stablesort_r): Declare.
7197 * sort.cc (gcc_sort_r): Support stable sort.
7198 (gcc_stablesort_r): Define.
7199 * vec.h (vec<>::stablesort): Add.
7201 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
7204 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
7205 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
7206 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
7207 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
7208 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
7209 (expand_vec_perm_interleave2): Handle 64bit modes.
7210 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
7211 (expand_vec_perm_even_odd_1): Ditto.
7212 (ix86_vectorize_vec_perm_const): Ditto.
7213 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
7214 * config/i386/sse.md: ... here.
7215 * config/i386/mmx.md (*vec_interleave_lowv2sf):
7216 New insn_and_split pattern.
7217 (*vec_interleave_highv2sf): Ditto.
7218 (mmx_pshufbv8qi3): New insn pattern.
7219 (*mmx_pblendw): Ditto.
7221 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
7223 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
7224 (build_acc): Likewise.
7225 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
7226 source operands in little-endian mode.
7227 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
7228 (mma_init_builtins): Likewise.
7229 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
7230 ordering for the MMA assemble and build source operands.
7231 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
7233 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
7236 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
7238 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
7240 * config/h8300/extensions.md: Replace _clobber_flags patterns
7243 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
7245 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
7246 (vcond_mask_<mode><tointvec>): this.
7248 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
7249 Thomas Schwinge <thomas@codesourcery.com>
7251 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
7252 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
7253 * gimple.h (enum gf_mask): Split
7254 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
7255 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
7256 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
7257 (is_gimple_omp_oacc): Update.
7258 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
7259 * gimplify.c (gimplify_omp_target_update): Likewise.
7260 * omp-expand.c (expand_omp_target, build_omp_regions_1)
7261 (omp_make_gimple_edges): Likewise.
7262 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
7265 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
7267 * value-query.cc (value_query::value_on_edge): Rename name to
7269 (range_query::range_on_edge): Same.
7270 (range_query::value_of_expr): Same.
7271 (range_query::value_on_edge): Same.
7272 * value-query.h (class value_query): Same.
7273 (class range_query): Same.
7275 2021-06-10 Richard Biener <rguenther@suse.de>
7277 PR tree-optimization/101003
7278 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
7279 use the pattern stmt defs when linearizing a chain.
7281 2021-06-10 Jakub Jelinek <jakub@redhat.com>
7284 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
7285 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
7287 2021-06-10 Clement Chigot <clement.chigot@atos.net>
7289 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
7290 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
7292 2021-06-09 Andrew Pinski <apinski@marvell.com>
7294 PR tree-optimization/100925
7295 * match.pd (a ? CST1 : CST2): Limit transformations
7296 that would produce a negative to integeral types only.
7297 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
7299 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
7302 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
7304 * doc/tm.texi: Correctly update.
7306 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
7308 * doc/tm.texi: Correctly update.
7310 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
7313 * doc/tm.texi.in (Trampolines): Add a missing blank line.
7315 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
7318 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
7319 and -ftrampolines work only with Ada.
7320 * doc/tm.texi.in (Trampolines): Likewise.
7321 * doc/tm.texi: Regenerated.
7323 2021-06-09 Carl Love <cel@us.ibm.com>
7325 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
7326 Add define for new builtins.
7327 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
7328 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
7329 overloaded builtin definitions.
7330 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
7331 VSIGNEXTSD2Q): Add builtin expansions.
7332 (SIGNEXT): Add P10 overload definition.
7333 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
7334 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
7335 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
7336 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
7337 vsignextend_si_v2di)[VIlong]: Add define_expand.
7338 Make define_insn vsx_sign_extend_si_v2di visible.
7339 * doc/extend.texi: Add documentation for the vec_signexti,
7340 vec_signextll builtins and vec_signextq.
7342 2021-06-09 Carl Love <cel@us.ibm.com>
7344 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
7345 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
7346 __floattikf_sw, __floatuntikf_sw respectively.
7347 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
7348 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
7349 define_insn for mode IEEE 128.
7351 2021-06-09 Carl Love <cel@us.ibm.com>
7353 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
7354 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
7355 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
7356 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
7357 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
7358 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
7359 uses of VSX_TI to VEC_TI.
7361 2021-06-09 Carl Love <cel@us.ibm.com>
7363 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
7365 2021-06-09 Carl Love <cel@us.ibm.com>
7367 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
7369 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
7370 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
7371 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
7372 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
7373 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
7374 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
7375 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
7377 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
7378 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
7379 altivec_vrlqnm): New define_expands.
7380 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
7381 VCMPGTUT_P): Add macro expansions.
7382 (BU_P10V_AV_P): Add builtin predicate definition.
7383 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
7384 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
7385 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
7386 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
7387 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
7388 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
7389 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
7390 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
7391 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
7392 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
7393 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
7394 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
7395 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
7396 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
7397 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
7398 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
7399 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
7400 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
7401 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
7402 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
7403 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
7404 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
7405 P10V_BUILTIN_MODU_V1TI):
7406 New overloaded definitions.
7407 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
7408 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
7409 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
7410 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
7411 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
7412 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
7414 (altivec_init_builtins): New E_V1TImode case statement.
7415 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
7416 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
7417 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
7418 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
7419 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
7420 E_V1TImode]: New case statements.
7421 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
7422 value RS6000_BTI_bool_V1TI.
7423 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
7424 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
7425 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
7426 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
7427 vlshrv1ti3, vashrv1ti3): New define_expands.
7428 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
7429 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
7430 UNSPEC_VSX_MODUQ): New unspecs.
7431 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
7432 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
7434 (vcmpnet): New define_expand.
7435 * doc/extend.texi: Add documentation for the new builtins vec_rl,
7436 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
7437 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
7438 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
7439 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
7440 vec_any_ge, vec_any_le.
7442 2021-06-09 Carl Love <cel@us.ibm.com>
7444 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
7445 bug in argument generation.
7447 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
7449 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
7451 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
7452 remove <supf> iterator.
7453 (mve_vclzq_u<mode>): New.
7454 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
7455 (neon_vclz<mode): Move to ...
7456 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
7457 * config/arm/vec-common.md: ... here. Add support for MVE.
7459 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
7461 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
7462 (@mve_vrhaddq_<supf><mode): Likewise.
7463 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
7464 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
7465 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
7467 2021-06-09 imba-tjd <109224573@qq.com>
7469 * doc/invoke.texi: Fix typo.
7471 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
7474 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
7475 Support evaluation of fmod/fmodf/fmodl at compile-time.
7477 2021-06-09 Richard Biener <rguenther@suse.de>
7479 PR tree-optimization/100981
7480 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7481 gimple_get_lhs to also handle calls.
7482 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
7485 2021-06-09 Richard Biener <rguenther@suse.de>
7487 PR tree-optimization/97832
7488 * tree-vectorizer.h (_slp_tree::failed): New.
7489 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
7491 (_slp_tree::~_slp_tree): Free failed.
7492 (vect_build_slp_tree): Retain failed nodes and record
7493 matches in them, copying that back out when running
7494 into a cached fail. Dump start and end of discovery.
7496 (vect_build_slp_tree_2): Handle associatable chains
7497 together doing more aggressive operand swapping.
7499 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
7502 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
7504 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
7505 Linux and GNU targets.
7507 2021-06-09 Richard Biener <rguenther@suse.de>
7509 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
7512 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
7514 * config/arc/arc.md (loop_end): Change it to
7515 define_insn_and_split.
7517 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
7519 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
7520 (machi): New pattern.
7521 (umaddhisi4): Use VMAC2HU instruction.
7522 (umachi): New pattern.
7524 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
7526 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
7527 * config/arc/arc.c (arc_split_move_p): New function.
7528 (arc_split_move): Clean up.
7529 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
7530 (movdf_insn): Likewise.
7531 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
7533 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
7536 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
7537 argument to "raw". Do not emit segment overrides when "raw" is true.
7539 2021-06-09 Martin Liska <mliska@suse.cz>
7541 * doc/gcov.texi: Create a proper JSON files.
7542 * doc/invoke.texi: Remove dots in order to make it a valid
7545 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
7547 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
7548 (insn_is_load_p): Use pattern_is_rotate64.
7549 (insn_is_swap_p): Likewise.
7550 (quad_aligned_load_p): Likewise.
7551 (const_load_sequence_p): Likewise.
7552 (replace_swapped_aligned_load): Likewise.
7553 (recombine_lvx_pattern): Likewise.
7554 (recombine_stvx_pattern): Likewise.
7556 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
7558 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
7559 fur_stmt source record.
7560 * gimple-range.cc (fur_source::get_operand): Generic range query.
7561 (fur_source::get_phi_operand): New.
7562 (fur_source::register_dependency): New.
7563 (fur_source::query): New.
7564 (class fur_edge): New. Edge source for operands.
7565 (fur_edge::fur_edge): New.
7566 (fur_edge::get_operand): New.
7567 (fur_edge::get_phi_operand): New.
7568 (fur_edge::query): New.
7569 (fur_stmt::fur_stmt): New.
7570 (fur_stmt::get_operand): New.
7571 (fur_stmt::get_phi_operand): New.
7572 (fur_stmt::query): New.
7573 (class fur_depend): New. Statement source and process dependencies.
7574 (fur_depend::fur_depend): New.
7575 (fur_depend::register_dependency): New.
7576 (class fur_list): New. List source for operands.
7577 (fur_list::fur_list): New.
7578 (fur_list::get_operand): New.
7579 (fur_list::get_phi_operand): New.
7580 (fold_range): New. Instantiate appropriate fur_source class and fold.
7581 (fold_using_range::range_of_range_op): Use new API.
7582 (fold_using_range::range_of_address): Ditto.
7583 (fold_using_range::range_of_phi): Ditto.
7584 (imple_ranger::fold_range_internal): Use fur_depend class.
7585 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
7586 * gimple-range.h (class fur_source): Now a base class.
7587 (class fur_stmt): New.
7588 (fold_range): New prototypes.
7589 (fur_source::fur_source): Delete.
7591 2021-06-08 Andrew Pinski <apinski@marvell.com>
7593 PR tree-optimization/25290
7594 * tree-ssa-phiopt.c (xor_replacement): Delete.
7595 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
7596 (match_simplify_replacement): Allow one cheap preparation
7597 statement that can be moved to before the if.
7599 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
7601 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
7602 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
7604 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
7606 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
7607 Create length attribute on define_insn_and_split. Only split for cases which we
7609 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
7610 fix length computation.
7611 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
7613 2021-06-08 Richard Biener <rguenther@suse.de>
7615 PR tree-optimization/100923
7616 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
7617 the operand vector to be valueized.
7618 (valueize_refs): Likewise.
7619 (valueize_shared_reference_ops_from_ref): Adjust.
7620 (valueize_shared_reference_ops_from_call): Likewise.
7621 (vn_reference_lookup_3): Likewise.
7622 (vn_reference_lookup_pieces): Likewise. Re-valueize
7623 with honoring availability when we are about to create
7624 the ao_ref and valueized before.
7625 (vn_reference_lookup): Likewise.
7626 (vn_reference_insert_pieces): Adjust.
7628 2021-06-08 Richard Biener <rguenther@suse.de>
7630 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
7631 (_slp_instance::root_stmts): ... a vector.
7632 (SLP_INSTANCE_ROOT_STMT): Rename to ...
7633 (SLP_INSTANCE_ROOT_STMTS): ... this.
7634 (slp_root::root): Change to...
7635 (slp_root::roots): ... a vector.
7636 (slp_root::slp_root): Adjust.
7637 * tree-vect-slp.c (_slp_instance::location): Adjust.
7638 (vect_free_slp_instance): Release the root stmt vector.
7639 (vect_build_slp_instance): Adjust.
7640 (vect_analyze_slp): Likewise.
7641 (_bb_vec_info::~_bb_vec_info): Likewise.
7642 (vect_slp_analyze_operations): Likewise.
7643 (vect_bb_vectorization_profitable_p): Likewise. Adjust
7644 costs for the root stmt.
7645 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
7647 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
7649 (vectorize_slp_instance_root_stmt): Adjust.
7650 (vect_schedule_slp): Likewise.
7652 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
7654 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
7655 (ssa_equiv_stack::ssa_equiv_stack): New.
7656 (ssa_equiv_stack::~ssa_equiv_stack): New.
7657 (ssa_equiv_stack::enter): New.
7658 (ssa_equiv_stack::leave): New.
7659 (ssa_equiv_stack::push_replacement): New.
7660 (ssa_equiv_stack::get_replacement): New.
7661 (is_pointer_ssa): New.
7662 (class pointer_equiv_analyzer): New.
7663 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
7664 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
7665 (pointer_equiv_analyzer::set_global_equiv): New.
7666 (pointer_equiv_analyzer::set_cond_equiv): New.
7667 (pointer_equiv_analyzer::get_equiv): New.
7668 (pointer_equiv_analyzer::enter): New.
7669 (pointer_equiv_analyzer::leave): New.
7670 (pointer_equiv_analyzer::get_equiv_expr): New.
7671 (pta_valueize): New.
7672 (pointer_equiv_analyzer::visit_stmt): New.
7673 (pointer_equiv_analyzer::visit_edge): New.
7674 (hybrid_folder::value_of_expr): Call PTA.
7675 (hybrid_folder::value_on_edge): Same.
7676 (hybrid_folder::pre_fold_bb): New.
7677 (hybrid_folder::post_fold_bb): New.
7678 (hybrid_folder::pre_fold_stmt): New.
7679 (rvrp_folder::pre_fold_bb): New.
7680 (rvrp_folder::post_fold_bb): New.
7681 (rvrp_folder::pre_fold_stmt): New.
7682 (rvrp_folder::value_of_expr): Call PTA.
7683 (rvrp_folder::value_on_edge): Same.
7685 2021-06-08 Jakub Jelinek <jakub@redhat.com>
7688 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
7689 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
7691 2021-06-08 Richard Biener <rguenther@suse.de>
7693 PR middle-end/100951
7694 * tree-vect-generic.c (expand_vector_piecewise): Build a
7695 VECTOR_CST if all elements are constant.
7696 (expand_vector_condition): Likewise.
7697 (lower_vec_perm): Likewise.
7698 (expand_vector_conversion): Likewise.
7700 2021-06-08 Martin Liska <mliska@suse.cz>
7702 * doc/invoke.texi: Document new param evrp-sparse-threshold.
7704 2021-06-08 Martin Liska <mliska@suse.cz>
7706 * genautomata.c (create_automata): Fix typo.
7708 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
7710 PR tree-optimization/100794
7711 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
7712 allow_unroll_p and only allow unrolling when it's true.
7713 (tree_predictive_commoning): Add parameter allow_unroll_p and
7715 (run_tree_predictive_commoning): Likewise.
7716 (pass_predcom::gate): Check flag_tree_loop_vectorize and
7717 global_options_set.x_flag_predictive_commoning.
7718 (pass_predcom::execute): Adjust for allow_unroll_p.
7720 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
7722 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
7723 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
7724 lambda function cleanup, remove scev_reset call, and adjust return
7726 (tree_predictive_commoning): Adjust for different changed values,
7727 only set flag TODO_update_ssa_only_virtuals if changed.
7728 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
7729 from todo_flags_finish.
7731 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
7733 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
7734 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
7735 (sbr_sparse_bitmap::bitmap_set_quad): New.
7736 (sbr_sparse_bitmap::bitmap_get_quad): New.
7737 (sbr_sparse_bitmap::set_bb_range): New.
7738 (sbr_sparse_bitmap::get_bb_range): New.
7739 (sbr_sparse_bitmap::bb_range_p): New.
7740 (block_range_cache::block_range_cache): initialize bitmap obstack.
7741 (block_range_cache::~block_range_cache): Destruct obstack.
7742 (block_range_cache::set_bb_range): Decide when to utilze the
7743 sparse on entry cache.
7744 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
7745 * params.opt (-param=evrp-sparse-threshold): New.
7747 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
7749 * bitmap.c (bitmap_set_aligned_chunk): New.
7750 (bitmap_get_aligned_chunk): New.
7751 (test_aligned_chunk): New.
7752 (bitmap_c_tests): Call test_aligned_chunk.
7753 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
7755 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
7758 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
7760 (ix86_expand_vector_init_one_nonzero): Ditto.
7761 (ix86_expand_vector_init_one_var): Ditto.
7762 (ix86_expand_vector_init_general): Ditto.
7763 * config/i386/mmx.md (vec_initv4qiqi): New expander.
7765 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
7767 * config/h8300/movepush.md: Change most _clobber_flags
7768 patterns to instead use <cczn> subst.
7769 (movsi_cczn): New pattern with usable CC cases split out.
7770 (movsi_h8sx_cczn): Likewise.
7772 2021-06-07 Martin Liska <mliska@suse.cz>
7774 * common/common-target.def: Split long lines and replace them
7776 * target.def: Likewise.
7777 * doc/tm.texi: Re-generated.
7779 2021-06-07 Jakub Jelinek <jakub@redhat.com>
7782 * fold-const.c (fold_read_from_vector): Return NULL if trying to
7783 read from a CONSTRUCTOR with vector type elements.
7785 2021-06-07 Jakub Jelinek <jakub@redhat.com>
7787 PR middle-end/100898
7788 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
7789 should copy any arguments. Don't call gimple_call_num_args
7790 on id->call_stmt or call_stmt more than once.
7792 2021-06-07 liuhongt <hongtao.liu@intel.com>
7795 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
7797 (<insn>v4siv4di2): Delete constraints for define_expand.
7799 2021-06-07 liuhongt <hongtao.liu@intel.com>
7802 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
7803 assignment of cfun->machine->has_explicit_vzeroupper.
7804 * config/i386/i386-features.c
7805 (ix86_add_reg_usage_to_vzerouppers): Delete.
7806 (ix86_add_reg_usage_to_vzeroupper): Ditto.
7807 (rest_of_handle_insert_vzeroupper): Remove
7808 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
7810 (gate): Remove cfun->machine->has_explicit_vzeroupper.
7811 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
7813 * config/i386/i386.c (ix86_insn_callee_abi): New function.
7814 (ix86_initialize_callee_abi): Ditto.
7815 (ix86_expand_avx_vzeroupper): Ditto.
7816 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
7818 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
7819 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
7821 * config/i386/i386.h (struct GTY(()) machine_function): Delete
7822 has_explicit_vzeroupper.
7823 * config/i386/i386.md (enum unspec): New member
7825 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
7826 define_constants for insn callee abi index.
7827 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
7828 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
7829 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
7830 (*avx_vzeroupper): Rename to ..
7831 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
7832 call_insn which has a special vzeroupper ABI.
7833 (*avx_vzeroupper_1): Deleted.
7835 2021-06-07 liuhongt <hongtao.liu@intel.com>
7838 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
7839 it won't use stack pointer reg.
7840 * final.c (leaf_function_p): When call_insn is a fake call, it
7841 won't affect caller as a leaf function.
7842 * reg-stack.c (callee_clobbers_any_stack_reg): New.
7843 (subst_stack_regs): When call_insn doesn't clobber any stack
7844 reg, don't clear the arguments.
7845 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
7847 * shrink-wrap.c (requires_stack_frame_p): No need for stack
7848 frame for a fake call.
7849 * rtl.h (FAKE_CALL_P): New macro.
7851 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
7853 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
7855 (sparc_order_regs_for_local_alloc): ...this.
7856 (sparc_leaf_reg_remap): Declare.
7857 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
7858 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
7859 * config/sparc/sparc.c (leaf_reg_remap): Delete.
7860 (order_regs_for_local_alloc): Rename to...
7861 (sparc_order_regs_for_local_alloc): ...this.
7862 (sparc_leaf_reg_remap): New function.
7863 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
7865 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
7867 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
7868 Use assemble_name to output BSS section name.
7870 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
7872 * config/i386/constraints.md (Bs):
7873 Remove boolean operators from match_test RTX.
7876 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
7879 2021-06-06 Martin Liska <mliska@suse.cz>
7881 * doc/extend.texi: Add missing @headitem.
7882 * doc/invoke.texi: Likewise.
7883 * doc/objc.texi: Likewise.
7885 2021-06-06 Martin Liska <mliska@suse.cz>
7887 * genhooks.c (emit_findices): Remove unused function.
7888 (emit_documentation): Do not call emit_findices
7889 and do not search for @Fcode directives.
7891 2021-06-06 Martin Liska <mliska@suse.cz>
7893 * doc/invoke.texi: Remove extra character.
7895 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
7897 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
7899 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
7901 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
7902 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
7903 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
7904 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
7906 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
7908 * config/or1k/or1k.md (*movdi): Fix empty split condition.
7910 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
7912 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
7915 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
7917 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
7918 *zero_extendsidi2): Fix empty split condition.
7920 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
7922 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
7924 * config/h8300/bitfield.md: Likewise.
7925 * config/h8300/combiner.md: Likewise.
7926 * config/h8300/divmod.md: Likewise.
7927 * config/h8300/extensions.md: Likewise.
7928 * config/h8300/jumpcall.md: Likewise.
7929 * config/h8300/movepush.md: Likewise.
7930 * config/h8300/multiply.md: Likewise.
7931 * config/h8300/other.md: Likewise.
7932 * config/h8300/shiftrotate.md: Likewise.
7933 * config/h8300/logical.md: Likewise. Fix split pattern to use
7934 code iterator that somehow slipped through.
7936 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
7938 PR middle-end/100905
7939 * tree-nested.c (convert_nonlocal_omp_clauses,
7940 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
7942 2021-06-04 Martin Sebor <msebor@redhat.com>
7944 PR middle-end/100732
7945 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
7946 with either source or destination argument of invalid type.
7947 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
7948 calls with arguments of invalid type.
7950 2021-06-04 Martin Sebor <msebor@redhat.com>
7952 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
7954 (attr_access::vla_bounds): Also handle VLA bounds.
7956 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
7958 * config/i386/predicates.md (GOT_memory_operand):
7959 Implement using match_code RTXes.
7960 (GOT32_symbol_operand): Ditto.
7962 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
7965 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
7967 (ix86_expand_vector_init_general): Ditto.
7968 Use SImode instead of word_mode for logic operations
7969 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
7970 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
7971 implemented by expand_vec_perm_1.
7972 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
7973 should be implemented using standard shuffle patterns.
7974 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
7975 V2HI modes to modes, implementable with shuffle for one operand.
7976 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
7977 (*pshufw_1): New insn pattern.
7978 (*vec_dupv2hi): Ditto.
7979 (vec_initv2hihi): New expander.
7981 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
7983 * config/arm/vfp.md (no_literal_pool_df_immediate,
7984 no_literal_pool_sf_immediate): Fix empty split condition.
7986 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
7988 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
7989 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
7990 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
7991 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
7992 *<sse4_1_avx2>_pblendvb_lt): Likewise.
7994 2021-06-04 Jakub Jelinek <jakub@redhat.com>
7997 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
7998 concatenation from half-sized modes with TImode elements.
8000 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
8002 * config/arc/arc.c (arc_override_options): Disable millicode
8003 thunks when RF16 is on.
8005 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
8007 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
8009 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
8011 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
8012 Replace PROMOTE_MODE marco with its content.
8014 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
8016 * config/cris/cris.md (*addi_reload): Fix empty split condition.
8018 2021-06-03 Jim Wilson <jimw@sifive.com>
8020 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
8021 turn it on for all riscv targets.
8023 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
8026 * config/i386/i386-expand.c (ix86_expand_vector_set):
8027 Handle V2HI and V4QI modes.
8028 (ix86_expand_vector_extract): Ditto.
8029 * config/i386/mmx.md (*pinsrw): New insn pattern.
8032 (*pextrw_zext): Ditto.
8034 (*pextrb_zext): Ditto.
8035 (vec_setv2hi): New expander.
8036 (vec_extractv2hihi): Ditto.
8037 (vec_setv4qi): Ditto.
8038 (vec_extractv4qiqi): Ditto.
8039 (vec_setv8qi): Enable only for TARGET_SSE4_1.
8040 (vec_extractv8qiqi): Ditto.
8042 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8044 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
8045 order to subf instruction.
8046 * config/rs6000/fusion.md: Regenerate.
8048 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
8050 * calls.c (get_size_range): Use range_of_expr instead of
8051 determine_value_range.
8052 * tree-affine.c (expr_to_aff_combination): Same.
8053 * tree-data-ref.c (split_constant_offset): Same.
8054 * tree-vrp.c (determine_value_range_1): Remove.
8055 (determine_value_range): Remove.
8056 * tree-vrp.h (determine_value_range): Remove.
8058 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
8060 * function-tests.c (test_ranges): Call gimple_range_tests.
8061 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
8063 * gimple-range.cc (fur_source::get_operand): Do not call
8064 get_tree_range or gimple_range_global.
8066 (get_tree_range): Move to value-query.cc.
8067 Call get_arith_expr_range.
8068 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
8069 Include gimple-range-tests.cc.
8070 * gimple-range.h (fold_range): Add argument.
8071 (get_tree_range): Remove.
8072 * selftest.h (gimple_range_tests): New.
8073 * value-query.cc (global_range_query::range_of_expr): Add
8075 (range_query::get_tree_range): Move from gimple-range.cc.
8076 * value-query.h (class range_query): Add get_tree_range and
8077 get_arith_expr_range. Make fur_source a friend.
8078 * vr-values.c (vr_values::range_of_expr): Pass stmt to
8080 * gimple-range-tests.cc: New file.
8082 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
8084 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
8085 update_global_range.
8086 * value-query.cc (update_global_range): New.
8087 * value-query.h (update_global_range): New.
8089 2021-06-03 David Malcolm <dmalcolm@redhat.com>
8091 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
8092 printing the same location twice if there are fix-it hints,
8093 multiple locations, or a label.
8095 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
8097 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
8098 thresholds to narrow the upper bound on epilogue iterations.
8100 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
8102 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
8103 (mve_vabsq_s<mode>): Likewise.
8104 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
8105 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
8106 * config/arm/vec-common.md (neg<mode>2): Rename to
8107 <absneg_str><mode>2.
8109 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
8111 * common/config/arc/arc-common.c (arc_option_optimization_table):
8113 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
8114 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
8115 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
8116 * config/arc/arc.md (abssi2_mixed): Remove pattern.
8117 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
8118 (malign-call): Likewise.
8119 (mmixed-code): Likewise.
8120 * doc/invoke.texi (ARC): Update doc.
8122 2021-06-03 Martin Liska <mliska@suse.cz>
8124 * common.opt: Use proper Enum values.
8125 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
8126 (parse_sanitizer_options): Handle only sanitizer_opts.
8127 (common_handle_option): Just assign value.
8129 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
8132 * tree-inline.c (inline_forbidden_p): Remove test on return type.
8134 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
8136 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
8137 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
8138 (type_byte_size): Inline into...
8139 (add_byte_size_attribute): ...this and call add_scalar_info.
8141 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
8143 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
8144 (typed_binop_from_tree): New function.
8145 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
8146 turn a divide by a power of 2 into a shift.
8147 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
8148 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
8149 typed divide by calling typed_binop_from_tree.
8151 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
8153 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
8154 (is_handled_procedure_type): Likewise.
8155 (struct loc_descr_context): Add strict_signedness field.
8156 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
8157 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
8158 (resolve_args_picking): Minor tweak.
8159 (function_to_dwarf_procedure): Initialize strict_signedness field.
8160 (type_byte_size): Likewise.
8161 (field_byte_offset): Likewise.
8162 (gen_descr_array_type_die): Likewise.
8163 (gen_variant_part): Likewise.
8164 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
8165 to true when a context is present before evaluating the arguments.
8166 <COND_EXPR>: Do not generate a useless comparison with zero.
8167 When dereferencing an address, if strict_signedness is true and the
8168 type is small and signed, use DW_OP_deref_type to do the dereference
8169 and then DW_OP_convert to convert back to the generic type.
8171 2021-06-03 Jakub Jelinek <jakub@redhat.com>
8174 * tree-inline.c (copy_tree_body_r): Handle iterators on
8175 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
8177 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
8179 * config/arc/arc.md (*bbit_di): Remove.
8181 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
8183 PR rtl-optimization/100264
8184 * ree.c (get_sub_rtx): Ignore SET expressions without register
8185 destinations and remove assertion, as it is not valid anymore
8186 with this new behaviour.
8187 (merge_def_and_ext): Eliminate destination check for register
8188 as such SET expressions can't occur anymore.
8189 (combine_reaching_defs): Likewise.
8191 2021-06-02 Jakub Jelinek <jakub@redhat.com>
8194 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
8195 -Wtype-limits warnings.
8196 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
8197 in operands to avoid -Wsign-compare warnings.
8199 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
8201 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
8204 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
8206 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
8208 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
8210 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
8212 * config/s390/subst.md(cconly_subst): Use a single constraint
8215 2021-06-02 Martin Liska <mliska@suse.cz>
8217 * ipa-icf.h: Use auto_vec for memory_access_types.
8219 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
8221 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
8222 argument from prototype.
8223 (output_logical_op): Add rtx_code argument.
8224 (compute_logical_op_length): Likewise.
8225 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
8226 to compute_a_shift_length.
8227 (output_logical_op); New argument with the rtx code rather than
8228 extracting it from an operand. Handle QImode too.
8229 (compute_logical_op_length): Similary.
8230 (compute_a_shift_length): Drop unused argument.
8231 * config/h8300/h8300.md (logicals): New code iterator.
8232 * config/h8300/logical.md (<code><mode>3 expander): Combine
8233 the "and" expander with the "ior"/"xor" expander.
8234 (bclr<mode>msx): Combine the QI/HI mode patterns.
8235 (<logical><mode>3 insns): Use code iterator rather than match_operator.
8236 Handle QImode as well. Update call to output_logical_op and
8237 compute_logical_op_length to pass in rtx_code
8238 Fix split condition on all define_insn_and_split patterns.
8239 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
8240 the flags and setting ZN via existing define_subst.
8241 * config/h8300/shiftrotate.md: Drop unused argument from
8242 calls to compute_a_shift_length.
8243 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
8245 2021-06-01 Andrew Pinski <apinski@marvell.com>
8247 PR tree-optimization/25290
8248 * tree-ssa-phiopt.c (match_simplify_replacement):
8250 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
8251 (two_value_replacement): Change the comment about
8252 conditional_replacement.
8253 (conditional_replacement): Delete.
8255 2021-06-01 Andrew Pinski <apinski@marvell.com>
8257 PR tree-optimization/95481
8258 * tree-tailcall.c (find_tail_calls): Handle empty typed
8261 2021-06-01 Andrew Pinski <apinski@marvell.com>
8263 * gimplify.c (zero_sized_field_decl): Delete
8264 (zero_sized_type): Delete
8265 (gimplify_init_ctor_eval): Use is_empty_type instead
8266 of zero_sized_field_decl.
8267 (gimplify_modify_expr): Use is_empty_type instead of
8270 2021-06-01 Jason Merrill <jason@redhat.com>
8273 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
8275 2021-06-01 Jason Merrill <jason@redhat.com>
8278 * diagnostic.h (warning_enabled_at): Declare.
8279 * diagnostic.c (diagnostic_enabled): Factor out from...
8280 (diagnostic_report_diagnostic): ...here.
8281 (warning_enabled_at): New.
8283 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
8285 * gimple-ssa-evrp.c: Enable exporting of global ranges.
8287 2021-06-01 Martin Liska <mliska@suse.cz>
8290 * doc/invoke.texi: Mention that -fgcse-after-reload
8291 is enabled with -O3.
8293 2021-06-01 liuhongt <hongtao.liu@intel.com>
8295 PR tree-optimization/98365
8296 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
8297 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
8298 (convert_scalar_cond_reduction): Ditto.
8299 (predicate_scalar_phi): Ditto.
8301 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
8303 PR tree-optimization/100781
8304 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
8305 value calculation by default.
8306 (ranger_cache::enable_new_values): New.
8307 (ranger_cache::disable_new_values): New.
8308 (ranger_cache::push_poor_value): Check if new values are allowed.
8309 * gimple-range-cache.h (class ranger_cache): New member/methods.
8310 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
8311 statement, and disable/renable new value calculation.
8313 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
8315 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
8316 (ranger_cache::range_of_def): New.
8317 (ranger_cache::entry_range): New.
8318 (ranger_cache::exit_range): New.
8319 (ranger_cache::range_of_expr): Adjust.
8320 (ranger_cache::range_on_edge): Adjust.
8321 (ranger_cache::propagate_cache): Call exit_range directly.
8322 * gimple-range-cache.h (class ranger_cache): Adjust.
8324 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
8326 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
8327 gori_compute being a member rather than base class.
8328 dervied call to member call.
8329 (ranger_cache::dump): No longer dump gori_map.
8330 (ranger_cache::dump_bb): New.
8331 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
8332 being a member rather than base class.
8333 (ranger_cache::set_global_range): Ditto.
8334 (ranger_cache::ssa_range_in_bb): Ditto.
8335 (ranger_cache::range_of_expr): New.
8336 (ranger_cache::range_on_edge): New.
8337 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
8338 (ranger_cache::propagate_cache): Adjust debugging output.
8339 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
8341 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
8342 member, and inherit from range_query instead.
8343 (ranger_cache::dump_bb): New. split from dump.
8344 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
8345 (gori_compute::expr_range_at_stmt): Delete.
8346 (gori_compute::compute_name_range_op): Delete.
8347 (gori_compute::compute_operand_range_switch): Add fur_source.
8348 (gori_compute::compute_operand_range): Add fur_source param, inline
8349 old compute_name_range_op and optimize_logical_operands.
8350 (struct tf_range): Delete.
8351 (gori_compute::logical_combine): Adjust
8352 (gori_compute::optimize_logical_operands): Delete.
8353 (gori_compute::compute_logical_operands_in_chain): Delete.
8354 (gori_compute::compute_logical_operands): Adjust.
8355 (gori_compute::compute_operand1_range): Adjust to fur_source.
8356 (gori_compute::compute_operand2_range): Ditto.
8357 (gori_compute::compute_operand1_and_operand2_range): Ditto.
8358 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
8359 and adjust to fur_source.
8360 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
8361 range_query and fur_source.
8362 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
8363 from the ranger_cache..
8364 (gimple_ranger::fold_range_internal): Adjust to base class change of
8366 (gimple_ranger::dump_bb): Adjust dump.
8367 * gimple-range.h (gimple_ranger):export gori computes object.
8369 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
8371 PR tree-optimization/100774
8372 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
8373 Constant values are also not stale.
8374 (ranger_cache::set_global_range): Range invariant values should also
8375 have the correct timestamp.
8377 2021-05-31 Martin Liska <mliska@suse.cz>
8379 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
8380 Unpack FUNCTION_DECL_DECL_TYPE.
8381 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
8382 Stream FUNCTION_DECL_DECL_TYPE instead of
8383 DECL_IS_OPERATOR_NEW_P.
8384 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
8386 (DECL_IS_OPERATOR_NEW_P): Likewise.
8387 (DECL_IS_OPERATOR_DELETE_P): Likewise.
8388 (DECL_LAMBDA_FUNCTION_P): Likewise.
8390 2021-05-31 Richard Biener <rguenther@suse.de>
8393 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
8394 * internal-fn.def (SHUFFLEVECTOR): New.
8395 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
8396 * doc/extend.texi: Document __builtin_shufflevector.
8398 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
8401 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
8402 indexed form addresses.
8404 2021-05-29 Jeff Law <jlaw@tachyum.com>
8406 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
8407 parameter. Call callers fixed.
8409 (output_plussi): Add FALLTHRU markers.
8410 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
8412 2021-05-29 Jakub Jelinek <jakub@redhat.com>
8415 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
8416 combined with parallel, make sure to add shared clause to
8417 parallel for explicit linear clause.
8419 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
8421 PR tree-optimization/100787
8422 * gimple-ssa-evrp.c: Disable exporting of global ranges.
8424 2021-05-28 Jason Merrill <jason@redhat.com>
8426 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
8427 operator--, operator*, operator==, and operator!=.
8428 (class tsi_range): New.
8430 2021-05-28 Richard Biener <rguenther@suse.de>
8432 PR tree-optimization/100778
8433 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
8434 trapping ops in different BBs.
8436 2021-05-28 Richard Biener <rguenther@suse.de>
8439 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
8440 copy fntype from original call.
8442 2021-05-28 Martin Liska <mliska@suse.cz>
8444 PR gcov-profile/100751
8445 * doc/gcov.texi: Revert partially a hunk that was wrong.
8447 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
8449 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
8451 (HAVE_sync_compare_and_swaphi): Likewise.
8452 (HAVE_sync_compare_and_swapsi): Likewise.
8454 2021-05-28 Jakub Jelinek <jakub@redhat.com>
8457 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
8459 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
8461 * gimplify.c (gimplify_omp_affinity): New.
8462 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
8463 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
8464 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
8465 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
8466 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
8468 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
8469 Richard Biener <rguenther@suse.de>
8471 * match.pd <popcount & / + pattern matching>:
8472 When generating popcount directly fails, try doing it in two halves.
8474 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
8476 * Makefile.in (generated_files): Add gimple-match.c and
8479 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
8481 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
8483 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
8485 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
8487 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
8489 PR tree-optimization/99398
8490 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
8491 where the fed operands are CTOR/CST and propagated through
8492 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
8493 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
8495 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
8498 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
8500 * config/i386/mmx.md (addv2sf3): Do not call
8501 ix86_fixup_binary_operands_no_copy.
8504 (<smaxmin:code>v2sf3): Ditto.
8505 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
8506 (<plusminus:insn><VI_32:mode>3): Remove expander.
8507 (<plusminus:insn><VI_32:mode>3): Rename from
8508 "*<plusminus:insn><VI_32:mode>3".
8509 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
8510 (mulv2hi3): Remove expander.
8511 (mulv2hi3): Rename from *mulv2hi3.
8512 (<s>mulv2hi3_highpart): Remove expander.
8513 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
8514 (<smaxmin:code><MMXMODE14:mode>3): Rename from
8515 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
8516 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
8517 (SMAXMIN_MMXMODEI): Remove mode iterator.
8518 (<smaxmin:code>v4hi3): New expander.
8519 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
8520 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
8521 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
8522 (SMAXMIN_VI_32): Remove mode iterator.
8523 (<umaxmin:code><MMXMODE24:mode>3): Rename from
8524 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
8525 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
8526 (UMAXMIN_MMXMODEI): Remove mode iterator.
8527 (<umaxmin:code>v8qi3): New expander.
8528 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
8529 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
8530 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
8531 (UMAXMIN_VI_32): Remove mode iterator.
8532 (<any_shift:insn>v2hi3): Remove expander.
8533 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
8534 (<any_logic:code><MMXMODEI:mode>3): Do not call
8535 ix86_fixup_binary_operands_no_copy.
8536 (<any_logic:code><VI_32:mode>3): Remove expander.
8537 (<any_logic:code><VI_32:mode>3): Rename from
8538 "*<any_logic:code><VI_32:mode>3".
8539 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
8540 * config/i386/sse.md (div<VF2:mode>3): Do not call
8541 ix86_fixup_binary_operands_no_copy.
8542 (div<VF1:mode>3): Ditto.
8543 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
8544 (smulhrsv4hi3): Ditto.
8545 (smulhrsv2hi3): Ditto.
8547 2021-05-27 Martin Sebor <msebor@redhat.com>
8549 * ggc.h (gt_ggc_mx): Add overloads for all integers.
8551 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
8553 (hash_map::operator==): New function.
8555 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
8558 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
8559 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
8560 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
8561 (*xop_maskcmp<VI_32:mode>3): Ditto.
8562 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
8563 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
8565 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
8568 * config/arm/arm.c (arm_configure_build_target): Remove parameter
8569 opts_set, directly check opts parameters for being non-null.
8570 (arm_option_restore): Update call to arm_configure_build_target.
8571 (arm_option_override): Likewise.
8572 (arm_can_inline_p): Likewise.
8573 (arm_valid_target_attribute_tree): Likewise.
8574 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
8575 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
8578 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
8580 * vr-values.c (simplify_conversion_using_ranges): Use
8581 get_range_query instead of get_global_range_query.
8583 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
8585 * gimple-range.cc (get_range_global): Move to value-query.cc.
8586 (gimple_range_global): Same.
8587 (get_global_range_query): Same.
8588 (global_range_query::range_of_expr): Same.
8589 * gimple-range.h (class global_range_query): Move to
8591 (gimple_range_global): Same.
8592 * tree-ssanames.c (get_range_info): Move to value-query.cc.
8593 (get_ptr_nonnull): Same.
8594 * tree-ssanames.h (get_range_info): Remove.
8595 (get_ptr_nonnull): Remove.
8596 * value-query.cc (get_ssa_name_range_info): Move from
8598 (get_ssa_name_ptr_info_nonnull): Same.
8599 (get_range_global): Move from gimple-range.cc.
8600 (gimple_range_global): Same.
8601 (get_global_range_query): Same.
8602 (global_range_query::range_of_expr): Same.
8603 * value-query.h (class global_range_query): Move from
8605 (gimple_range_global): Same.
8607 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
8610 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
8611 (uavgv2hi3_ceil): Ditto.
8613 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
8616 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
8618 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
8620 * tree-ssanames.c (get_range_info): Merge both copies of
8621 get_range_info into one that works with irange.
8622 * tree-ssanames.h (get_range_info): Remove version that works on
8625 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
8627 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
8628 (expand_builtin_strnlen): Same.
8629 (determine_block_size): Same.
8630 * fold-const.c (expr_not_equal_to): Same.
8631 * gimple-fold.c (size_must_be_zero_p): Same.
8632 * gimple-match-head.c: Include gimple-range.h.
8633 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
8634 * gimple-ssa-warn-restrict.c
8635 (builtin_memref::extend_offset_range): Same.
8636 * graphite-sese-to-poly.c (add_param_constraints): Same.
8637 * internal-fn.c (get_min_precision): Same.
8638 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
8639 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
8641 * tree-data-ref.c (split_constant_offset): Same.
8642 (dr_step_indicator): Same.
8643 * tree-dfa.c (get_ref_base_and_extent): Same.
8644 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
8645 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
8646 (determine_value_range): Same.
8647 (record_nonwrapping_iv): Same.
8648 (infer_loop_bounds_from_signedness): Same.
8649 (scev_var_range_cant_overflow): Same.
8650 * tree-ssa-phiopt.c (two_value_replacement): Same.
8651 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
8652 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
8653 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
8655 (dump_strlen_info): Same.
8656 (set_strlen_range): Same.
8657 (maybe_diag_stxncpy_trunc): Same.
8658 (get_len_or_size): Same.
8659 (handle_integral_assign): Same.
8660 * tree-ssa-structalias.c (find_what_p_points_to): Same.
8661 * tree-ssa-uninit.c (find_var_cmp_const): Same.
8662 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
8663 * tree-vect-patterns.c (vect_get_range_info): Same.
8664 (vect_recog_divmod_pattern): Same.
8665 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
8666 (register_edge_assert_for_2): Same.
8667 (determine_value_range_1): Same.
8668 * tree.c (get_range_pos_neg): Same.
8669 * vr-values.c (vr_values::get_lattice_entry): Same.
8670 (vr_values::update_value_range): Same.
8671 (simplify_conversion_using_ranges): Same.
8673 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
8675 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
8676 get_range_query instead of query argument.
8677 (pass_walloca::execute): Enable and disable global ranger.
8679 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
8681 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
8683 (rvrp_folder::~rvrp_folder): Call disable_ranger.
8684 (hybrid_folder::hybrid_folder): Call enable_ranger.
8685 (hybrid_folder::~hybrid_folder): Call disable_ranger.
8687 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
8689 * function.c (allocate_struct_function): Set cfun->x_range_query.
8690 * function.h (struct function): Declare x_range_query.
8691 (get_range_query): New.
8692 (get_global_range_query): New.
8693 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
8694 Remove call to safe_grow_cleared.
8695 * gimple-range.cc (get_range_global): New.
8696 (gimple_range_global): Move from gimple-range.h.
8697 (get_global_range_query): New.
8698 (global_range_query::range_of_expr): New.
8699 (enable_ranger): New.
8700 (disable_ranger): New.
8701 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
8702 (class global_range_query): New.
8703 (enable_ranger): New.
8704 (disable_ranger): New.
8705 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
8706 dump_all_value_ranges to dump.
8707 * tree-vrp.c (vrp_prop::finalize): Same.
8708 * value-query.cc (range_query::dump): New.
8709 * value-query.h (range_query::dump): New.
8710 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
8711 (vr_values::dump): ...this.
8712 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
8713 dump and make virtual.
8715 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
8717 * config/i386/i386.c (ix86_autovectorize_vector_modes):
8718 Add V4QImode and V16QImode for TARGET_SSE2.
8719 * doc/sourcebuild.texi (Vector-specific attributes):
8720 Add vect64 and vect32 description.
8722 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
8724 * gimple-range-gori.cc (range_def_chain::register_dependency):
8725 Resize m_def_chain when needed.
8727 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
8729 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
8730 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
8731 * config/arm/vec-common.md: .. here. Add support for MVE.
8733 2021-05-26 Jakub Jelinek <jakub@redhat.com>
8735 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
8737 * config/microblaze/microblaze.c (microblaze_legitimize_address,
8739 microblaze_option_override, print_operand): Likewise.
8740 * config/microblaze/microblaze.md (call_internal_plt,
8741 call_value_intern_plt, call_value_intern): Likewise.
8742 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
8743 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
8744 call_value_multiple_internal1): Likewise.
8745 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
8747 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8749 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
8750 arc_ccfsm_advance, symbolic_reference_mentioned_p,
8751 arc_raw_symbolic_reference_mentioned_p): Remove register
8754 2021-05-26 Jakub Jelinek <jakub@redhat.com>
8757 * omp-low.c: Include omp-offload.h.
8758 (create_omp_child_function): If current_function_decl has
8759 "omp declare target" attribute and is_gimple_omp_offloaded,
8760 remove that attribute from the copy of attribute list and
8761 add "omp target entrypoint" attribute instead.
8762 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
8763 variables for offloading if in omp_maybe_offloaded_ctx.
8764 * omp-offload.c (pass_omp_target_link::execute): Nullify second
8765 argument to GOMP_target_data_ext in offloaded code.
8767 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
8769 * config/csky/csky.c (csky_can_change_mode_class): Delete.
8770 For csky, HF/SF mode use the low bits of VREGS.
8772 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
8774 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
8775 DECL which is a reference for OMP.
8777 2021-05-26 Martin Liska <mliska@suse.cz>
8779 PR gcov-profile/100751
8780 * doc/gcov.texi: Document that __gcov_dump can be called just
8781 once and that __gcov_reset resets run-time counters.
8783 2021-05-26 Martin Liska <mliska@suse.cz>
8785 * doc/install.texi: Port relevant part from install-old.texi
8786 and re-generate list of CPUs and systems.
8788 2021-05-26 Martin Liska <mliska@suse.cz>
8790 * Makefile.in: Remove it.
8791 * doc/include/fdl.texi: Update next/previous chapters.
8792 * doc/install.texi: Likewise.
8793 * doc/install-old.texi: Removed.
8795 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
8797 * config/csky/csky.c (ck810_legitimate_index_p): Support
8798 "base + index" with DF mode.
8799 * config/csky/constraints.md ("Y"): New constraint for memory operands
8800 without index register.
8801 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
8802 when mov between memory and general registers, and lower their priority.
8803 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
8805 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
8807 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
8809 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
8811 * config/csky/csky.md (untyped_call): Emit clobber for return
8812 registers to mark them used.
8814 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
8816 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
8818 2021-05-26 Andrew Pinski <apinski@marvell.com>
8820 * match.pd (x < 0 ? ~y : y): New patterns.
8822 2021-05-26 Andrew Pinski <apinski@marvell.com>
8824 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
8825 A?POW2:0 and A?0:POW2.
8827 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
8829 * gimple-range-gori.cc (class logical_stmt_cache): Delete
8830 (logical_stmt_cache::logical_stmt_cache ): Delete.
8831 (logical_stmt_cache::~logical_stmt_cache): Delete.
8832 (logical_stmt_cache::cache_entry::dump): Delete.
8833 (logical_stmt_cache::get_range): Delete.
8834 (logical_stmt_cache::cached_name ): Delete.
8835 (logical_stmt_cache::same_cached_name): Delete.
8836 (logical_stmt_cache::cacheable_p): Delete.
8837 (logical_stmt_cache::slot_diagnostics ): Delete.
8838 (logical_stmt_cache::dump): Delete.
8839 (gori_compute_cache::gori_compute_cache): Delete.
8840 (gori_compute_cache::~gori_compute_cache): Delete.
8841 (gori_compute_cache::compute_operand_range): Delete.
8842 (gori_compute_cache::cache_stmt): Delete.
8843 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
8845 (class gori_compute_cache): Delete.
8847 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
8849 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
8851 (fold_using_range::range_of_address): Adjust.
8852 (fold_using_range::range_of_phi): Adjust.
8853 * gimple-range.h (class fur_source): Adjust.
8854 (fur_source::fur_source): Adjust.
8856 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
8858 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
8859 from expr_range_in_bb and adjust.
8860 (gori_compute::compute_name_range_op): Adjust.
8861 (gori_compute::optimize_logical_operands): Adjust.
8862 (gori_compute::compute_logical_operands_in_chain): Adjust.
8863 (gori_compute::compute_operand1_range): Adjust.
8864 (gori_compute::compute_operand2_range): Adjust.
8865 (ori_compute_cache::cache_stmt): Adjust.
8866 * gimple-range-gori.h (gori_compute): Rename prototype.
8868 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
8870 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
8871 checked only after range_of_stmt, not range_on_entry.
8872 (gimple_ranger::range_on_entry): Check for non-null in any
8873 predecessor block, if it is not already non-null.
8874 (gimple_ranger::range_on_exit): DOnt check for non-null after
8875 range on entry call.
8876 (gimple_ranger::dump_bb): New. Split from dump.
8877 (gimple_ranger::dump): Adjust.
8878 * gimple-range.h (class gimple_ranger): Adjust.
8880 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
8882 * gimple-range-cache.cc (struct range_timestamp): Delete.
8883 (class temporal_cache): Adjust.
8884 (temporal_cache::get_timestamp): Delete.
8885 (temporal_cache::set_dependency): Delete.
8886 (temporal_cache::temporal_value): Adjust.
8887 (temporal_cache::current_p): Take dependencies as params.
8888 (temporal_cache::set_timestamp): Adjust.
8889 (temporal_cache::set_always_current): Adjust.
8890 (ranger_cache::get_non_stale_global_range): Adjust.
8891 (ranger_cache::register_dependency): Delete.
8892 * gimple-range-cache.h (class range_cache): Adjust.
8894 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
8896 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
8898 (range_def_chain::~range_def_chain): Dispose of obstack rather than
8899 each individual bitmap.
8900 (range_def_chain::set_import): New.
8901 (range_def_chain::get_imports): New.
8902 (range_def_chain::chain_import_p): New.
8903 (range_def_chain::register_dependency): Rename from build_def_chain
8905 (range_def_chain::def_chain_in_bitmap_p): New.
8906 (range_def_chain::add_def_chain_to_bitmap): New.
8907 (range_def_chain::has_def_chain): Just check first depenedence.
8908 (range_def_chain::get_def_chain): Process imports, use generic
8909 register_dependency routine.
8910 (range_def_chain::dump): New.
8911 (gori_map::gori_map): Allocate import list.
8912 (gori_map::~gori_map): Release imports.
8913 (gori_map::exports): Check for past allocated block size.
8914 (gori_map::imports): New.
8915 (gori_map::def_chain_in_export_p): Delete.
8916 (gori_map::is_import_p): New.
8917 (gori_map::maybe_add_gori): Handle imports.
8918 (gori_map::dump): Adjust output, add imports.
8919 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
8920 (gori_export_iterator::gori_export_iterator): New.
8921 (gori_export_iterator::next): New.
8922 (gori_export_iterator::get_name): New.
8923 * gimple-range-gori.h (range_def_chain): Add imports and direct
8924 dependecies via struct rdc.
8925 (range_def_chain::depend1): New.
8926 (range_def_chain::depend2): New.
8927 (class gori_map): Adjust.
8928 (FOR_EACH_GORI_IMPORT_NAME): New.
8929 (FOR_EACH_GORI_EXPORT_NAME): New.
8930 (class gori_export_iterator): New.
8932 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
8934 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
8935 export cache filling to here.
8936 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
8938 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
8940 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
8941 (gori_map): Move to gimple-range-gori.h.
8942 (gori_compute::gori_compute): Adjust.
8943 (gori_compute::~gori_compute): Delete.
8944 (gori_compute::compute_operand_range_switch): Adjust.
8945 (gori_compute::compute_operand_range): Adjust.
8946 (gori_compute::compute_logical_operands): Adjust.
8947 (gori_compute::has_edge_range_p ): Adjust.
8948 (gori_compute::set_range_invariant): Delete.
8949 (gori_compute::dump): Adjust.
8950 (gori_compute::outgoing_edge_range_p): Adjust.
8951 * gimple-range-gori.h (class range_def_chain): Relocate here.
8952 (class gori_map): Relocate here.
8953 (class gori_compute): Inherit from gori_map, and adjust.
8955 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
8957 * value-range.cc (range_tests_legacy): Use
8958 build_nonstandard_integer_type instead of int and short.
8960 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
8962 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
8963 when really creating an initialization statement for it.
8965 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
8967 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
8969 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
8971 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
8973 2021-05-25 Martin Liska <mliska@suse.cz>
8975 PR tree-optimization/92860
8977 * optc-save-gen.awk: Remove exceptions.
8979 2021-05-25 Martin Liska <mliska@suse.cz>
8981 * asan.h (sanitize_coverage_p): New function.
8982 * doc/extend.texi: Document it.
8983 * fold-const.c (fold_range_test): Use sanitize_flags_p
8984 instead of flag_sanitize_coverage.
8985 (fold_truth_andor): Likewise.
8986 * sancov.c: Likewise.
8987 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
8988 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
8989 -fsanitize-coverage when inlining.
8991 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
8993 * config/csky/csky-modes.def : Fix copyright.
8995 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
8997 * config/csky/csky-modes.def : Amend copyright.
8998 * config/csky/csky_insn_fpuv2.md : Likewise.
8999 * config/csky/csky_insn_fpuv3.md : Likewise.
9001 2021-05-25 Richard Biener <rguenther@suse.de>
9003 PR middle-end/100727
9004 * calls.c (initialize_argument_information): Explicitely test
9006 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
9008 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
9010 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
9011 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
9012 the signle definition. The signle definition may not work well
9013 at simplify_subreg_regno().
9014 (HARD_FRAME_POINTER_REGNUM): New.
9015 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
9016 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
9017 csky_initial_elimination_offset, csky_expand_prologue,
9018 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
9020 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
9022 * config/csky/csky.c (csky_option_override):
9023 Init csky_arch_isa_features[] in advance, so TARGET_DSP
9024 and TARGET_DIV can be set well.
9026 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
9028 * config/csky/constraints.md ("l", "h"): Delete.
9029 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
9030 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
9031 * config/csky/csky.c (regno_reg_classm,
9032 csky_secondary_reload, csky_register_move_cost):
9033 Use HILO_REGS instead of LO_REGS and HI_REGS.
9035 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
9037 * config/csky/constraints.md ("W"): New constriant for mem operand
9038 with base reg, index register.
9039 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
9040 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
9042 ("Dv"): New constraint for const double value that can be used at
9044 * config/csky/csky-modes.def (HFmode): New mode.
9045 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
9046 to "csky_valid_mem_constraint_operand" and support new constraint
9048 (csky_get_movedouble_length): New.
9049 (fpuv3_output_move): New.
9050 (fpuv3_const_double): New.
9051 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
9052 (decompose_csky_address): Refine.
9053 (csky_print_operand): New "CONST_DOUBLE" operand.
9054 (csky_output_move): Support fpv3 instructions.
9055 (csky_get_movedouble_length): New.
9056 (fpuv3_output_move): New.
9057 (fpuv3_const_double): New.
9058 (csky_emit_compare): Cover float comparsion.
9059 (csky_emit_compare_float): Refine.
9060 (csky_vaild_fpuv2_mem_operand): Rename to
9061 "csky_valid_mem_constraint_operand" and support new constraint "W".
9062 (ck860_rtx_costs): New.
9063 (csky_rtx_costs): Add the cost calculation of CK860.
9064 (regno_reg_class): New vregs for fpuv3.
9065 (csky_dbx_regno): Likewise.
9066 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
9067 (csky_conditional_register_usage): Suporrot fpuv3.
9068 (csky_dwarf_register_span): Suporrot fpuv3.
9069 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
9070 (ck810_legitimate_index_p): Support fp16.
9071 * config/csky/csky.h (TARGET_TLS): ADD CK860.
9072 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
9073 (TARGET_SINGLE_FPU): Support fpuv3.
9074 (TARGET_SUPPORT_FPV3): New.
9075 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
9076 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
9077 REG_CLASS_CONTENTS): Support fpuv3.
9078 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
9079 (csky_movsf_fpv2): Likewise.
9080 (ck801_movsf): Likewise.
9081 (csky_movsf): Likewise.
9083 (csky_movdf_fpv2): Likewise.
9084 (ck801_movdf): Likewise.
9085 (csky_movdf): Likewise.
9086 (movsicc): Refine. Use "comparison_operatior" instead of
9087 "ordered_comparison_operatior".
9088 (addsicc): Likewise.
9089 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
9090 (call_value_internal_vh): New.
9091 * config/csky/csky_cores.def (CK860): New arch and cpu.
9096 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
9097 into emit-patterns and match-patterns, remain the emit-patterns here,
9098 and move the match-patterns to csky_insn_fpuv2.md or
9100 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
9101 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
9103 * config/csky/csky_isa.def (fcr): New.
9108 (CK860): New definition for ck860.
9109 * config/csky/csky_tables.opt (ck860): New processors ck860,
9110 ck860f. And new arch ck860.
9115 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
9116 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
9117 * config/csky/t-csky-elf: Support 860.
9118 * config/csky/t-csky-linux: Likewise.
9119 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
9121 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
9123 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
9124 add generation of logical-add and add-logical fusion pairs.
9125 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
9127 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
9128 logical-add and add-logical fusion by default.
9129 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
9130 -mpower10-fusion-add-logical options.
9131 * config/rs6000/fusion.md: Regenerate file.
9133 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
9135 * value-range.cc (irange::legacy_equal_p): Check type when
9136 comparing VR_VARYING types.
9137 (range_tests_legacy): Test comparing VARYING ranges of different
9140 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
9142 * config/aarch64/aarch64.c (neoversen1_tunings):
9143 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
9145 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
9147 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
9148 extern weak symbols. Limit symbol offsets for non-GOT symbols with
9151 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
9153 * config/arm/neon.md (vec_load_lanesxi<mode>)
9154 (vec_store_lanexoi<mode>): Move ...
9155 * config/arm/vec-common.md: here.
9157 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
9159 * config/arm/neon.md (vec_load_lanesoi<mode>)
9160 (vec_store_lanesoi<mode>): Move ...
9161 * config/arm/vec-common.md: here.
9163 2021-05-24 liuhongt <hongtao.liu@intel.com>
9166 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
9167 stmt with GIMPLE_NOP when lhs doesn't exist.
9169 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
9172 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
9173 New instruction pattern.
9174 (*push<VI_32:mode>2): Ditto.
9175 (push splitter for SSE registers): New splitter.
9177 2021-05-23 Andrew Pinski <apinski@marvell.com>
9179 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
9181 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
9183 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
9184 * config/rs6000/fusion.md: Regenerate file.
9186 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
9188 * config/rs6000/genfusion.pl (gen_addadd): New function.
9189 * config/rs6000/fusion.md: Regenerate file.
9190 * config/rs6000/rs6000-cpus.def: Add
9191 OPTION_MASK_P10_FUSION_2ADD to masks.
9192 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9193 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
9194 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
9196 2021-05-21 Jakub Jelinek <jakub@redhat.com>
9199 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
9200 * gimplify.c (enum gimplify_omp_var_data): Fix up
9201 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
9202 (omp_lastprivate_for_combined_outer_constructs): If combined target
9203 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
9204 GOVD_MAP | GOVD_SEEN.
9205 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
9206 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
9207 (gimplify_adjust_omp_clauses): For firstprivate clauses with
9208 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
9209 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
9210 let it be replaced by implicit map clause.
9212 2021-05-21 Jakub Jelinek <jakub@redhat.com>
9215 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
9217 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
9218 (gimplify_omp_for): Likewise.
9220 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
9223 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
9224 'external' in blocks.
9226 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
9229 * flag-types.h (enum openacc_privatization): New.
9230 * params.opt (-param=openacc-privatization): New.
9231 * doc/invoke.texi (openacc-privatization): Document it.
9232 * omp-general.h (get_openacc_privatization_dump_flags): New
9234 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
9235 * omp-offload.c (execute_oacc_device_lower)
9236 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
9237 * target.def (goacc.adjust_private_decl): Add 'location_t'
9239 * doc/tm.texi: Regenerate.
9240 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
9241 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
9242 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
9243 Likewise. Preserve it for...
9244 (nvptx_goacc_expand_var_decl): ... use here.
9246 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
9248 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
9251 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
9254 * omp-low.c (oacc_privatization_candidate_p): New function.
9255 (oacc_privatization_scan_clause_chain)
9256 (oacc_privatization_scan_decl_chain): Use it. Also
9257 'gcc_checking_assert' that we're not seeing duplicates.
9259 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
9262 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
9265 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
9268 * omp-offload.c (execute_oacc_device_lower): Explain.
9270 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
9273 * omp-offload.c (execute_oacc_device_lower)
9274 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
9276 * internal-fn.c (expand_UNIQUE): Don't expect
9277 'IFN_UNIQUE_OACC_PRIVATE'.
9279 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
9282 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
9284 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
9287 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
9288 (nvptx_goacc_expand_var_decl): Tighten.
9290 2021-05-21 Julian Brown <julian@codesourcery.com>
9291 Chung-Lin Tang <cltang@codesourcery.com>
9292 Thomas Schwinge <thomas@codesourcery.com>
9295 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
9296 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
9297 * doc/tm.texi: Regenerate.
9298 * expr.c (expand_expr_real_1): Expand decls using the
9299 expand_var_decl OpenACC hook if defined.
9300 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
9301 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
9302 * omp-low.c (omp_context): Add oacc_privatization_candidates
9304 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
9306 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
9307 private marker's gimple call arguments, and pass it to
9308 lower_oacc_reductions.
9309 (oacc_privatization_scan_clause_chain)
9310 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
9312 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
9313 * omp-offload.c (convert.h): Include.
9314 (oacc_loop_xform_head_tail): Treat private-variable markers like
9315 fork/join when transforming head/tail sequences.
9316 (struct var_decl_rewrite_info): Add struct.
9317 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
9318 (execute_oacc_device_lower): Support rewriting gang-private
9319 variables using target hook, and fix up addr_expr and var_decl
9321 * target.def (adjust_private_decl, expand_var_decl): New hooks.
9322 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
9324 (gcn_goacc_adjust_private_decl): ...this.
9325 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
9327 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
9328 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
9329 definition using gcn_goacc_adjust_gangprivate_decl...
9330 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
9331 gcn_goacc_adjust_private_decl.
9332 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
9333 (gang_private_shared_size): New global variable.
9334 (gang_private_shared_align): Likewise.
9335 (gang_private_shared_sym): Likewise.
9336 (gang_private_shared_hmap): Likewise.
9337 (nvptx_option_override): Initialize these.
9338 (nvptx_file_end): Output gang_private_shared_sym.
9339 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
9341 (nvptx_set_current_function): Clear gang_private_shared_hmap.
9342 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
9343 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
9345 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
9347 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
9349 2021-05-21 Richard Biener <rguenther@suse.de>
9350 H.J. Lu <hjl.tools@gmail.com>
9353 * expr.c (expand_constructor): Elide expand_constructor if
9354 move by pieces is preferred.
9356 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9358 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
9359 Take a flag and mode value as arguments.
9360 (aarch64_modifies_global_state_p): Likewise.
9361 (aarch64_reads_global_state_p): Likewise.
9362 (aarch64_could_trap_p): Likewise.
9363 (aarch64_get_attributes): Likewise.
9364 (aarch64_init_simd_builtins): Adjust callsite of above.
9365 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
9366 function attributes to apply to builtins.
9367 (aarch64_init_crc32_builtins): Likewise.
9368 (aarch64_init_builtin_rsqrt): Likewise.
9370 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
9372 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
9373 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
9374 (gen_2logical): Use new fusion types.
9375 * config/rs6000/fusion.md: Regenerate.
9377 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
9380 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
9381 Handle V4QI and V2HI modes.
9382 (ix86_expand_sse_movcc): Ditto.
9383 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
9384 New instruction pattern.
9385 (*eq<VI_32:mode>3): Ditto.
9386 (*gt<VI_32:mode>3): Ditto.
9387 (*xop_pcmov_<VI_32:mode>): Ditto.
9388 (mmx_pblendvb32): Ditto.
9389 (mmx_pblendvb64): Rename from mmx_pblendvb.
9390 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
9391 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
9392 (vcond<VI_32:mode><VI_32:mode>): Ditto.
9393 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
9394 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
9396 2021-05-21 Jakub Jelinek <jakub@redhat.com>
9398 PR tree-optimization/94589
9399 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
9400 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
9401 not the same as cmp3) treat <= the same as < and >= the same as >.
9402 Don't require that cond2_phi_edge is true edge, instead take
9403 false/true edges into account based on cmp1/cmp2 comparison kinds.
9405 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
9408 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
9409 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
9410 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
9411 using SMAXMIN_MMXMODEI mode iterator.
9412 (*<smaxmin:code>v4qi3): New insn pattern.
9413 (*<smaxmin:code>v2hi3): Ditto.
9414 (SMAXMIN_VI_32): New mode iterator.
9415 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
9416 (UMAXMIN_MMXMODEI): New mode iterator.
9417 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
9418 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
9419 using UMAXMIN_MMXMODEI mode iterator.
9420 (*<umaxmin:code>v4qi3): New insn pattern.
9421 (*<umaxmin:code>v2hi3): Ditto.
9422 (UMAXMIN_VI_32): New mode iterator.
9423 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
9424 (abs<VI_32:mode>2): New insn pattern.
9425 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
9426 * config/i386/sse.md: ... here.
9428 2021-05-20 Clement Chigot <clement.chigot@atos.net>
9429 David Edelsohn <dje.gcc@gmail.com>
9431 * collect2.c (scan_prog_file): Issue non-fatal warning for
9434 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
9436 * doc/invoke.texi (-Wno-c++11-extensions)
9437 (-Wno-c++14-extensions, -Wno-c++17-extensions)
9438 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
9441 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
9443 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
9444 * config/darwin.c (darwin_override_options): Likewise.
9445 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
9446 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
9447 (DWARF2_FRAME_REG_OUT): Likewise.
9448 * config/mips/mips.c (mips_output_filename): Likewise.
9449 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
9451 (rs6000_dbx_register_number): Likewise.
9452 * dbxout.c: Include flags.h.
9453 * dwarf2cfi.c (cfi_label_required_p): Likewise.
9454 (dwarf2out_do_frame): Likewise.
9455 * except.c: Include flags.h.
9456 * final.c (dwarf2_debug_info_emitted_p): Likewise.
9457 (final_scan_insn_1): Likewise.
9458 * flags.h (dwarf_debuginfo_p): New function declaration.
9459 * opts.c (dwarf_debuginfo_p): New function definition.
9460 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
9461 * toplev.c (process_options): Likewise.
9463 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
9465 * common.opt: Change type to support bitmasks.
9466 * flag-types.h (enum debug_info_type): Rename enumerator constants.
9467 (NO_DEBUG): New bitmask.
9468 (DBX_DEBUG): Likewise.
9469 (DWARF2_DEBUG): Likewise.
9470 (XCOFF_DEBUG): Likewise.
9471 (VMS_DEBUG): Likewise.
9472 (VMS_AND_DWARF2_DEBUG): Likewise.
9473 * flags.h (debug_set_to_format): New function declaration.
9474 (debug_set_count): Likewise.
9475 (debug_set_names): Likewise.
9476 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
9477 (debug_set_to_format): New function definition.
9478 (debug_set_count): Likewise.
9479 (debug_set_names): Likewise.
9480 (set_debug_level): Update access to debug_type_names.
9481 * toplev.c: Likewise.
9483 2021-05-20 Martin Sebor <msebor@redhat.com>
9485 PR middle-end/100684
9486 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
9488 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
9491 * config/i386/i386.md (isa): Remove x64_bmi.
9492 (enabled): Remove x64_bmi.
9493 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
9494 Remove general register alternative.
9495 (*andnot<VI_32:mode>3): Ditto.
9496 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
9497 (*<any_logic:code><VI_32:mode>3): Ditto.
9499 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
9501 * config/arm/arm.c: Include head files tree-vectorizer.h and
9504 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
9507 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
9508 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
9509 (<s>mulv4hi3_highpart): New expander.
9510 (*<s>mulv2hi3_highpart): New insn pattern.
9511 (<s>mulv2hi3_higpart): New expander.
9512 (*<any_shift:insn>v2hi3): New insn pattern.
9513 (<any_shift:insn>v2hi3): New expander.
9514 * config/i386/sse.md (smulhrsv2hi3): New expander.
9515 (*smulhrsv2hi3): New insn pattern.
9517 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
9519 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
9521 * params.opt (vect-inner-loop-cost-factor): New.
9522 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
9523 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
9524 tree-vectorizer.h and its required ones.
9525 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
9526 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
9527 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
9528 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
9529 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
9530 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
9532 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
9533 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
9534 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
9536 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
9537 Torbjörn Svensson <torbjorn.svensson@st.com>
9540 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
9542 2021-05-20 Jakub Jelinek <jakub@redhat.com>
9545 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
9546 explicit linear clause when combined with target, make it map(tofrom:)
9547 instead of no clause or firstprivate.
9549 2021-05-20 Jakub Jelinek <jakub@redhat.com>
9551 PR tree-optimization/94589
9552 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
9553 of integral conversions.
9555 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
9557 * gimple-range.cc (fur_source::get_operand): New.
9558 (gimple_range_fold): Delete.
9559 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
9560 (fold_using_range::range_of_range_op): Move from gimple_ranger.
9561 (fold_using_range::range_of_address): Ditto.
9562 (fold_using_range::range_of_phi): Ditto.
9563 (fold_using_range::range_of_call): Ditto.
9564 (fold_using_range::range_of_builtin_ubsan_call): Move from
9565 range_of_builtin_ubsan_call.
9566 (fold_using_range::range_of_builtin_call): Move from
9567 range_of_builtin_call.
9568 (gimple_ranger::range_of_builtin_call): Delete.
9569 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
9570 (gimple_ranger::fold_range_internal): New.
9571 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
9572 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
9573 gimple_ranger. Improve ranges of SSA_NAMES when possible.
9574 * gimple-range.h (gimple_ranger): Remove various range_of routines.
9575 (class fur_source): New.
9576 (class fold_using_range): New.
9577 (fur_source::fur_source): New.
9579 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
9580 instead of range_of_builtin_call.
9582 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
9584 * doc/cpp.texi (Common Predefined Macros): Update documentation
9585 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
9587 2021-05-19 Alex Coplan <alex.coplan@arm.com>
9590 * config/arm/arm.md (nonsecure_call_internal): Always ensure
9591 callee's address is in a register.
9593 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
9595 * common/config/riscv/riscv-common.c
9596 (riscv_subset_list::parsing_subset_version): Properly parse the letter
9598 (riscv_subset_list::parse_std_ext,
9599 riscv_subset_list::parse_multiletter_ext): To handle errors generated
9600 in riscv_subset_list::parsing_subset_version.
9602 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
9604 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
9605 type attribute in patterns generating XTN(2).
9607 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
9609 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
9610 Remove as duplicate of...
9611 (aarch64_xtn<mode>): This.
9612 (aarch64_xtn2<mode>_le): Move position in file.
9613 (aarch64_xtn2<mode>_be): Move position in file.
9614 (aarch64_xtn2<mode>): Move position in file.
9615 (vec_pack_trunc_<mode>): Define as an expander.
9617 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
9619 * config/aarch64/aarch64-simd-builtins.def: Split builtin
9620 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
9621 separate scalar and vector generators.
9622 * config/aarch64/aarch64-simd.md
9623 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
9625 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
9626 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
9627 * config/aarch64/iterators.md: Define SD_HSDI iterator.
9629 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
9631 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
9633 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
9635 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
9637 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
9638 Implement as an expand emitting a big/little endian
9639 instruction pattern.
9640 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
9641 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
9643 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
9645 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
9646 Implement as an expand emitting a big/little endian
9647 instruction pattern.
9648 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
9649 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
9650 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
9651 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
9653 2021-05-19 Richard Biener <rguenther@suse.de>
9655 PR middle-end/100672
9656 * fold-const.c (fold_negate_expr_1): Use element_precision.
9657 (negate_expr_p): Likewise.
9659 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
9661 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
9662 (pred_load): New int attribute.
9663 * config/aarch64/aarch64-sve.md
9664 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
9665 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
9666 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
9667 code_for_aarch64_load.
9669 2021-05-19 Richard Biener <rguenther@suse.de>
9671 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
9672 sure TARGET_MEM_REF bases are expanded as memory.
9673 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
9674 Do not mark TARGET_MEM_REF bases addressable.
9675 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
9676 TARGET_MEM_REF bases as never rewritable.
9677 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
9678 walk TARGET_MEM_REF bases as address-takens.
9679 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
9681 2021-05-19 Richard Biener <rguenther@suse.de>
9683 * builtins.c (get_object_alignment_1): Strip outer
9685 * tree-dfa.c (get_ref_base_and_extent): Handle outer
9686 WITH_SIZE_EXPR for size processing and process the
9688 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
9689 outer WITH_SIZE_EXPR.
9690 (ao_ref_base_alias_ptr_type): Likewise.
9691 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
9692 and handle that accordingly, stripping it for the
9694 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
9695 looking through it instead of returning NULL.
9697 2021-05-19 Jakub Jelinek <jakub@redhat.com>
9699 PR middle-end/100576
9700 * builtins.c (check_read_access): Convert bound to size_type_node if
9703 2021-05-19 Richard Biener <rguenther@suse.de>
9705 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
9706 (verify_types_in_gimple_reference): ... here. Sanitize.
9707 (verify_gimple_call): Verify references in LHS and arguments.
9708 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
9710 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
9712 * config/i386/i386.h (VALID_INT_MODE_P):
9713 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
9714 * config/i386/i386.md (isa): Add x64_bmi.
9715 (enabled): Handle x64_bmi.
9716 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
9717 Add alternative using 64bit general registers.
9718 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
9720 2021-05-19 Jakub Jelinek <jakub@redhat.com>
9723 * tree.h (OMP_MASTER_COMBINED): Define.
9724 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
9725 handling for outer combined/composite constructs to a loop.
9726 Handle lastprivate on combined target.
9727 (gimplify_expr): Formatting fix.
9729 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
9731 * passes.def: Add sink_code pass before store_merging.
9732 * tree-ssa-sink.c (pass_sink_code:clone): New.
9734 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
9736 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
9737 rs6000_special_adjust_field_align_p.
9738 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
9739 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
9741 (rs6000_function_arg): Likewise.
9742 * config/rs6000/rs6000-protos.h
9743 (rs6000_special_adjust_field_align_p): Remove prototype.
9744 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
9746 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
9747 rs6000_special_adjust_field_align_p.
9749 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
9752 * config/i386/i386.h (VALID_SSE2_REG_MODE):
9753 Add V4QI and V2HI modes.
9754 (VALID_INT_MODE_P): Ditto.
9755 * config/i386/mmx.md (VI_32): New mode iterator.
9756 (mmxvecsize): Handle V4QI and V2HI.
9758 (mov<VI_32:mode>): New expander.
9759 (*mov<mode>_internal): New insn pattern.
9760 (movmisalign<VI_32:mode>): New expander.
9761 (neg<VI_32:mode>): New expander.
9762 (<plusminus:insn><VI_32:mode>3): New expander.
9763 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
9764 (mulv2hi3): New expander.
9765 (*mulv2hi3): New insn pattern.
9766 (one_cmpl<VI_32:mode>2): New expander.
9767 (*andnot<VI_32:mode>3): New insn pattern.
9768 (<any_logic:code><VI_32:mode>3): New expander.
9769 (*<any_logic:code><VI_32:mode>3): New insn pattern.
9771 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
9773 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
9774 Fix a mode mismatch with operand 1.
9776 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
9779 * config/i386/i386-expand.c (split_double_mode): Return
9780 temporary register when simplify_gen_subreg fails with
9781 the high half od the paradoxical subreg.
9783 2021-05-18 Richard Biener <rguenther@suse.de>
9785 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
9786 and honor it when expanding.
9787 (expand_used_vars_for_block): Pass through forced_stack_var.
9788 (expand_used_vars): Likewise.
9789 (discover_nonconstant_array_refs_r): Set bits in
9790 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
9791 (avoid_type_punning_on_regs): Likewise.
9792 (discover_nonconstant_array_refs): Likewise.
9793 (pass_expand::execute): Create and pass down forced_stack_var
9794 bitmap. For parameters and returns temporarily set
9795 TREE_ADDRESSABLE when expand_function_start.
9797 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
9799 * doc/sourcebuild.texi: Document 'dg-note'.
9801 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
9804 * configure: Regenerate.
9805 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
9807 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
9809 * gimple.h (is_gimple_omp_oacc): Tighten.
9810 * omp-low.c (check_omp_nesting_restrictions): Adjust.
9812 2021-05-18 Richard Biener <rguenther@suse.de>
9814 * tree-ssa-operands.c (mark_address_taken): Simplify.
9816 2021-05-18 Martin Liska <mliska@suse.cz>
9818 * config/gcn/mkoffload.c (STR): Redefine.
9819 * config/i386/intelmic-mkoffload.c (STR): Likewise.
9820 * config/nvptx/mkoffload.c (STR): Likewise.
9822 2021-05-18 Martin Liska <mliska@suse.cz>
9824 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
9825 Use startswith function instead of strncmp.
9826 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
9827 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
9828 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
9829 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
9830 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
9831 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
9832 * config/arm/arm.c (arm_file_start): Likewise.
9833 (arm_valid_target_attribute_rec): Likewise.
9834 (thumb1_md_asm_adjust): Likewise.
9835 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
9836 * config/avr/avr.c (STR_PREFIX_P): Likewise.
9837 (avr_set_current_function): Likewise.
9838 (avr_handle_addr_attribute): Likewise.
9839 (avr_asm_output_aligned_decl_common): Likewise.
9840 (avr_asm_named_section): Likewise.
9841 (avr_section_type_flags): Likewise.
9842 (avr_asm_select_section): Likewise.
9843 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
9844 (c6x_section_type_flags): Likewise.
9845 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
9846 (darwin_objc_declare_unresolved_class_reference): Likewise.
9847 (darwin_objc_declare_class_definition): Likewise.
9848 * config/darwin.c (indirect_data): Likewise.
9849 (darwin_encode_section_info): Likewise.
9850 (darwin_objc2_section): Likewise.
9851 (darwin_objc1_section): Likewise.
9852 (machopic_select_section): Likewise.
9853 (darwin_globalize_label): Likewise.
9854 (darwin_label_is_anonymous_local_objc_name): Likewise.
9855 (darwin_asm_named_section): Likewise.
9856 (darwin_asm_output_dwarf_offset): Likewise.
9857 * config/frv/frv.c (frv_string_begins_with): Likewise.
9858 (frv_in_small_data_p): Likewise.
9859 * config/gcn/mkoffload.c (STR): Likewise.
9861 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
9862 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
9863 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
9864 (ix86_md_asm_adjust): Likewise.
9865 * config/i386/intelmic-mkoffload.c (STR): Likewise.
9866 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
9867 (i386_pe_file_end): Likewise.
9868 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
9869 (ia64_section_type_flags): Likewise.
9870 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
9871 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
9872 (mips16_stub_function_p): Likewise.
9873 (mips_function_rodata_section): Likewise.
9874 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
9875 (msp430_function_section): Likewise.
9876 (msp430_section_type_flags): Likewise.
9877 (msp430_expand_helper): Likewise.
9878 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
9879 (nios2_valid_target_attribute_rec): Likewise.
9880 * config/nvptx/mkoffload.c (process): Likewise.
9882 * config/pa/som.h: Likewise.
9883 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
9884 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
9885 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
9886 (rs6000_inner_target_options): Likewise.
9887 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
9888 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
9889 * config/vax/vax.c (vax_output_int_move): Likewise.
9890 * config/vms/vms-ld.c (startswith): Likewise.
9891 (process_args): Likewise.
9893 * config/vms/vms.c: Likewise.
9895 2021-05-18 Jakub Jelinek <jakub@redhat.com>
9897 PR rtl-optimization/100590
9898 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
9899 they are NONJUMP_INSN_P.
9901 2021-05-18 Jakub Jelinek <jakub@redhat.com>
9904 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
9905 DECL_ASSEMBLER_NAME on the fn_decl.
9907 2021-05-18 Jakub Jelinek <jakub@redhat.com>
9909 PR tree-optimization/94589
9910 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
9911 phi result used in (res & ~1) == 0 comparison as res >= 0 as
9912 res == 2 would be UB with -ffinite-math-only.
9914 2021-05-18 Martin Liska <mliska@suse.cz>
9916 * Makefile.in: genversion.o should depend on DATESTAMP.
9918 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
9920 * config/arc/simdext.md (negv2si2): Remove round bracket.
9922 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
9924 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
9925 _Bool as macro expanding to _Bool.
9927 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
9930 * tree.c (build_reference_type_for_mode)
9931 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
9933 (build_reference_type, build_pointer_type): Invoke
9934 build_*_type_for_mode with VOIDmode.
9936 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
9938 PR tree-optimization/100512
9939 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
9940 and non-zero pointer ranges as invariant.
9941 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
9942 processing from here.
9944 2021-05-17 Tom de Vries <tdevries@suse.de>
9947 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
9948 * config/nvptx/nvptx.c (nvptx_output_barrier)
9949 (nvptx_output_atomic_insn): New function.
9950 (nvptx_print_operand): Add support for 'B'.
9951 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
9954 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
9956 PR tree-optimization/100349
9957 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
9960 2021-05-17 Tamar Christina <tamar.christina@arm.com>
9962 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
9963 (host_detect_local_cpu): Use it.
9965 2021-05-17 Martin Liska <mliska@suse.cz>
9967 * doc/invoke.texi: Add 2 missing dots.
9969 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
9972 * configure.ac: Replace pattern substitution with call to sed.
9973 * configure: Regenerate.
9975 2021-05-17 Richard Biener <rguenther@suse.de>
9977 PR middle-end/100582
9978 * tree.c (array_at_struct_end_p): Get to the base of the
9979 reference before looking for the underlying decl.
9981 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
9983 * genoutput.c (validate_insn_alternatives) Make "wrong number of
9984 alternatives" message more specific, and remove assumption on where
9987 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
9989 * config/arm/iterators.md (V16): New iterator.
9990 (VH_cvtto): New iterator.
9991 (v_cmp_result): Added V4HF and V8HF support.
9992 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
9993 (vcond<mode><mode>): Likewise.
9994 (vcond_mask_<mode><v_cmp_result>): Likewise.
9995 (vcond<VH_cvtto><mode>): New expander.
9997 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
9999 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
10001 * config/arm/arm.c (arm_expand_vector_compare): Add support for
10003 (arm_expand_vcond): Likewise.
10004 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
10005 VCMPEQQ_N_S, VCMPNEQ_N_S.
10006 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
10007 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
10008 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
10009 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
10010 (@mve_vpselq_<supf><mode>): Likewise.
10011 (@mve_vpselq_f<mode>"): Likewise.
10012 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
10013 and move to vec-common.md.
10014 (vec_cmpu<mode><mode>): Likewise.
10015 (vcond<mode><mode>): Likewise.
10016 (vcond<V_cvtto><mode>): Likewise.
10017 (vcondu<mode><v_cmp_result>): Likewise.
10018 (vcond_mask_<mode><v_cmp_result>): Likewise.
10019 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
10020 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
10021 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
10022 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
10023 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
10024 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
10026 (vec_cmpu<mode><mode>): Likewise.
10027 (vcond<mode><mode>): Likewise.
10028 (vcond<V_cvtto><mode>): Likewise.
10029 (vcondu<mode><v_cmp_result>): Likewise.
10030 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
10033 2021-05-17 liuhongt <hongtao.liu@intel.com>
10036 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
10037 gsi_insert_seq_before instead.
10039 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
10041 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
10042 (arm_sat_ok): ...this.
10044 2021-05-17 Martin Liska <mliska@suse.cz>
10046 * lto-wrapper.c (merge_flto_options): Factor out a new function.
10047 (merge_and_complain): Use it.
10048 (run_gcc): Merge also linker command line -flto=foo argument
10051 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
10053 * config/arm/arm.h (CPP_SPEC): Remove error message about
10054 -mlittle-endian/-mbig-endian conflict.
10056 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
10058 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10059 __ROP_PROTECT__ if -mrop-protect is selected.
10061 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
10063 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
10064 rop_hash_save_offset and rop_hash_size.
10065 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
10066 rop_hash_size and rop_hash_save_offset.
10067 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
10068 (rs6000_emit_prologue): Emit hashst[p] in prologue.
10069 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
10070 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
10072 (hashst): New define_insn.
10073 (hashchk): Likewise.
10075 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
10077 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10078 Disable shrink wrap when inserting ROP-protect instructions.
10079 * config/rs6000/rs6000.opt (mrop-protect): New option.
10080 (mprivileged): Likewise.
10081 * doc/invoke.texi: Document mrop-protect and mprivileged.
10083 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
10085 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
10088 2021-05-15 Martin Jambor <mjambor@suse.cz>
10091 2021-05-13 Martin Jambor <mjambor@suse.cz>
10093 PR tree-optimization/100453
10094 * tree-sra.c (sra_modify_assign): All const base accesses do not
10095 need refreshing, not just those from decl_pool.
10096 (sra_modify_assign): Do not refresh into a const base decl.
10098 2021-05-15 Jakub Jelinek <jakub@redhat.com>
10100 PR rtl-optimization/100342
10101 * regcprop.c (copy_value): When copying a source reg in a wider
10102 mode than it has recorded for the value, adjust recorded destination
10103 mode too or punt if !REG_CAN_CHANGE_MODE_P.
10105 2021-05-14 Jason Merrill <jason@redhat.com>
10107 * intl.h: Add comments.
10109 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10111 * config/aarch64/aarch64-simd.md
10112 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
10113 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
10114 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
10115 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
10116 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
10117 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
10118 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
10119 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
10120 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
10122 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10125 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
10126 boolean logic equivalent.
10127 (vtst_s16): Likewise.
10128 (vtst_s32): Likewise.
10129 (vtst_u8): Likewise.
10130 (vtst_u16): Likewise.
10131 (vtst_u32): Likewise.
10132 (vtst_p8): Likewise.
10133 (vtst_p16): Likewise.
10134 (vtstq_s8): Likewise.
10135 (vtstq_s16): Likewise.
10136 (vtstq_s32): Likewise.
10137 (vtstq_u8): Likewise.
10138 (vtstq_u16): Likewise.
10139 (vtstq_u32): Likewise.
10140 (vtstq_p8): Likewise.
10141 (vtstq_p16): Likewise.
10142 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
10143 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
10145 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10147 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
10148 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
10149 (aarch64_sqdmlsl2<mode>): Delete.
10150 (aarch64_sqdmlal2_lane<mode>): Merge this...
10151 (aarch64_sqdmlsl2_lane<mode>): ... And this...
10152 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
10153 (aarch64_sqdmlal2_laneq<mode>): Merge this...
10154 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
10155 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
10156 (aarch64_sqdmlal2_n<mode>): Merge this...
10157 (aarch64_sqdmlsl2_n<mode>): ... And this...
10158 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
10160 2021-05-13 Martin Sebor <msebor@redhat.com>
10162 PR middle-end/100574
10163 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
10164 all null arguments.
10166 2021-05-13 Martin Sebor <msebor@redhat.com>
10168 PR tree-optimization/93100
10169 PR middle-end/98583
10170 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
10171 don't modify referenced objects.
10173 2021-05-13 Martin Jambor <mjambor@suse.cz>
10175 PR tree-optimization/100453
10176 * tree-sra.c (sra_modify_assign): All const base accesses do not
10177 need refreshing, not just those from decl_pool.
10178 (sra_modify_assign): Do not refresh into a const base decl.
10180 2021-05-13 Martin Liska <mliska@suse.cz>
10182 * tree-ssa-dom.c: Remove m_simplifier.
10184 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
10187 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
10188 canonicalize DImode inequality comparisons against the
10189 maximum integral value.
10191 2021-05-13 Jakub Jelinek <jakub@redhat.com>
10193 PR tree-optimization/98856
10194 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
10195 Expect V2DI and V4DI arithmetic right shifts to be emulated.
10196 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
10198 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
10199 expand_vec_perm_2perm_pblendv): New functions.
10200 (ix86_expand_vec_perm_const_1): Use them.
10201 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
10202 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
10203 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
10204 (ashrv4di3): New define_expand.
10205 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
10206 and !TARGET_AVX512VL expansion.
10208 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
10211 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
10212 sizes < 16 to a register when constructing vpcmov pattern.
10213 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
10215 2021-05-13 Martin Liska <mliska@suse.cz>
10217 * gcov-io.c (gcov_write_block): Remove.
10218 (gcov_write_words): Likewise.
10219 (gcov_read_words): Re-implement using gcov_read_bytes.
10220 (gcov_allocate): Remove.
10221 (GCOV_BLOCK_SIZE): Likewise.
10222 (struct gcov_var): Remove most of the fields.
10223 (gcov_position): Implement with ftell.
10224 (gcov_rewrite): Remove setting of start and offset fields.
10225 (from_file): Re-format.
10226 (gcov_open): Remove setbuf call. It should not be needed.
10227 (gcov_close): Remove internal buffer handling.
10228 (gcov_magic): Use __builtin_bswap32.
10229 (gcov_write_counter): Use directly gcov_write_unsigned.
10230 (gcov_write_string): Use direct fwrite and do not round
10232 (gcov_seek): Use directly fseek.
10233 (gcov_write_tag): Use gcov_write_unsigned directly.
10234 (gcov_write_length): Likewise.
10235 (gcov_write_tag_length): Likewise.
10236 (gcov_read_bytes): Use directly fread.
10237 (gcov_read_unsigned): Use gcov_read_words.
10238 (gcov_read_counter): Likewise.
10239 (gcov_read_string): Use gcov_read_bytes.
10240 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
10241 that size is not in bytes, but words (4B).
10242 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
10243 (GCOV_TAG_ARCS_LENGTH): Likewise.
10244 (GCOV_TAG_ARCS_NUM): Likewise.
10245 (GCOV_TAG_COUNTER_LENGTH): Likewise.
10246 (GCOV_TAG_COUNTER_NUM): Likewise.
10247 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
10249 2021-05-13 liuhongt <hongtao.liu@intel.com>
10252 * config/i386/sse.md (ssedoublevecmode): Add attribute for
10253 V64QI/V32HI/V16SI/V4DI.
10254 (ssehalfvecmode): Add attribute for V2DI/V2DF.
10255 (*vec_concatv4si_0): Extend to VI124_128.
10256 (*vec_concat<mode>_0): New pre-reload splitter.
10257 * config/i386/predicates.md (movq_parallel): New predicate.
10259 2021-05-13 Alexandre Oliva <oliva@adacore.com>
10261 * targhooks.c (default_zero_call_used_regs): Retry using
10262 successfully-zeroed registers as sources.
10264 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
10266 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
10268 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
10271 * gimple-range.cc (range_of_builtin_call): Skip out on
10272 processing __builtin_clz when varying.
10274 2021-05-12 Tom de Vries <tdevries@suse.de>
10277 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
10278 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
10279 to ptx_version_option.
10280 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
10281 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
10282 (define_insn "nvptx_vote_ballot"): Use sync variant for
10284 * config/nvptx/nvptx.opt (ptx_version): Add enum.
10285 (mptx): Add option.
10286 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
10288 2021-05-12 Richard Biener <rguenther@suse.de>
10290 PR tree-optimization/100566
10291 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
10292 allow_back for all edge queries.
10294 2021-05-12 liuhongt <hongtao.liu@intel.com>
10297 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
10298 splitters for pblendvb of NOT mask register.
10300 2021-05-12 Richard Biener <rguenther@suse.de>
10302 PR tree-optimization/100519
10303 * tree-ssa-reassoc.c (can_associate_p): Split into...
10304 (can_associate_op_p): ... this
10305 (can_associate_type_p): ... and this.
10306 (is_reassociable_op): Call can_associate_op_p.
10307 (break_up_subtract_bb): Call the appropriate predicates.
10308 (reassociate_bb): Likewise.
10310 2021-05-12 Martin Liska <mliska@suse.cz>
10312 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
10313 (run_gcc): Use -flto argument detection for merged
10316 2021-05-12 Martin Liska <mliska@suse.cz>
10318 * lto-wrapper.c (print_lto_docs_link): New function.
10319 (run_gcc): Print warning about missing job server detection
10320 after we know NR of partitions. Do the same for -flto{,=1}.
10321 * opts.c (get_option_html_page): Support -flto option.
10323 2021-05-12 Martin Liska <mliska@suse.cz>
10325 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
10327 (append_option): Remove.
10328 (find_option): Rework to use the vector type.
10329 (remove_option): Remove.
10330 (merge_and_complain): Use vectors for cl_decoded_option data
10332 (append_compiler_options): Likewise.
10333 (append_diag_options): Likewise.
10334 (append_linker_options): Likewise.
10335 (append_offload_options): Likewise.
10336 (compile_offload_image): Likewise.
10337 (compile_images_for_offload_targets): Likewise.
10338 (find_and_merge_options): Likewise.
10339 (run_gcc): Likewise.
10341 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
10344 * dwarf2out.c (dwarf2out_finish): Set
10345 have_multiple_function_sections with multi-range text_section.
10347 2021-05-12 Martin Liska <mliska@suse.cz>
10349 PR bootstrap/100560
10350 * Makefile.in: Remove version.h from linker command line.
10352 2021-05-12 Richard Biener <rguenther@suse.de>
10354 PR middle-end/100547
10355 * rtl.h (rtvec_alloc): Make argument size_t.
10356 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
10358 2021-05-12 Jakub Jelinek <jakub@redhat.com>
10360 PR middle-end/100508
10361 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
10362 type, don't reuse DECL_RTL if it has different mode, instead force
10363 creation of a new DEBUG_EXPR.
10365 2021-05-12 Jakub Jelinek <jakub@redhat.com>
10366 Marc Glisse <marc.glisse@inria.fr>
10368 PR tree-optimization/94589
10369 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
10370 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
10372 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
10375 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
10376 * config/i386/mmx.md (MMXMODE124): New mode iterator.
10378 (mmxintvecmode): New mode attribute.
10379 (mmxintvecmodelower): Ditto.
10380 (*mmx_maskcmpv2sf3_comm): New insn pattern.
10381 (*mmx_maskcmpv2sf3): Ditto.
10382 (vec_cmpv2sfv2si): New expander.
10383 (vcond<V2FI:mode>v2si): Ditto.
10384 (mmx_vlendvps): New insn pattern.
10385 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
10386 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
10387 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
10389 2021-05-11 Martin Sebor <msebor@redhat.com>
10391 PR middle-end/21433
10392 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
10394 2021-05-11 Richard Biener <rguenther@suse.de>
10396 * gimple-fold.c (gimple_fold_call): Do not call
10397 maybe_fold_reference on call arguments or the static chain.
10398 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
10401 2021-05-11 Martin Liska <mliska@suse.cz>
10403 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
10404 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
10405 (DEF_HSAIL_SAT_BUILTIN): Likewise.
10406 (DEF_HSAIL_INTR_BUILTIN): Likewise.
10407 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
10408 * doc/frontends.texi: Remove BRIG.
10409 * doc/install.texi: Likewise.
10410 * doc/invoke.texi: Likewise.
10411 * doc/standards.texi: Likewise.
10412 * brig-builtins.def: Removed.
10413 * brig/ChangeLog: Removed.
10414 * brig/Make-lang.in: Removed.
10415 * brig/brig-builtins.h: Removed.
10416 * brig/brig-c.h: Removed.
10417 * brig/brig-lang.c: Removed.
10418 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
10419 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
10420 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
10421 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
10422 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
10423 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
10424 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
10425 * brig/brigfrontend/brig-comment-handler.cc: Removed.
10426 * brig/brigfrontend/brig-control-handler.cc: Removed.
10427 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
10428 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
10429 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
10430 * brig/brigfrontend/brig-function-handler.cc: Removed.
10431 * brig/brigfrontend/brig-function.cc: Removed.
10432 * brig/brigfrontend/brig-function.h: Removed.
10433 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
10434 * brig/brigfrontend/brig-label-handler.cc: Removed.
10435 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
10436 * brig/brigfrontend/brig-machine.c: Removed.
10437 * brig/brigfrontend/brig-machine.h: Removed.
10438 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
10439 * brig/brigfrontend/brig-module-handler.cc: Removed.
10440 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
10441 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
10442 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
10443 * brig/brigfrontend/brig-to-generic.cc: Removed.
10444 * brig/brigfrontend/brig-to-generic.h: Removed.
10445 * brig/brigfrontend/brig-util.cc: Removed.
10446 * brig/brigfrontend/brig-util.h: Removed.
10447 * brig/brigfrontend/brig-variable-handler.cc: Removed.
10448 * brig/brigfrontend/hsa-brig-format.h: Removed.
10449 * brig/brigfrontend/phsa.h: Removed.
10450 * brig/brigspec.c: Removed.
10451 * brig/config-lang.in: Removed.
10452 * brig/gccbrig.texi: Removed.
10453 * brig/lang-specs.h: Removed.
10454 * brig/lang.opt: Removed.
10456 2021-05-11 Richard Biener <rguenther@suse.de>
10459 * ipa-param-manipulation.c
10460 (ipa_param_body_adjustments::modify_call_stmt): Avoid
10461 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
10462 via gimple_call_lhs_ptr.
10464 2021-05-11 Alex Coplan <alex.coplan@arm.com>
10467 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
10468 Avoid emitting CFA adjusts on the sp if we have the fp.
10470 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
10472 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
10473 (VMULD): New iterator.
10474 (VCOND): Handle V4HF and V8HF.
10475 (VCONQ): Fix entry for V2SF.
10476 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
10477 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
10478 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
10479 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
10480 Use a 128-bit vector mode for the indexed operand. Use stype for
10481 the scheduling type.
10483 2021-05-11 Richard Biener <rguenther@suse.de>
10485 * gimple-fold.c (maybe_fold_reference): Only return
10486 is_gimple_min_invariant values.
10488 2021-05-11 Richard Biener <rguenther@suse.de>
10490 PR middle-end/100509
10491 * gimple-fold.c (fold_gimple_assign): Only call
10492 get_symbol_constant_value on register type symbols.
10494 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
10495 Joe Ramsay <joe.ramsay@arm.com>
10498 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
10499 (__arm_vcmpneq): Remove duplicate definition.
10500 (__arm_vstrwq_scatter_offset_p): Likewise.
10501 (__arm_vmaxq_x): Likewise.
10502 (__arm_vmlsdavaq): Likewise.
10503 (__arm_vmlsdavaxq): Likewise.
10504 (__arm_vmlsdavq_p): Likewise.
10505 (__arm_vmlsdavxq_p): Likewise.
10506 (__arm_vrmlaldavhaq): Likewise.
10507 (__arm_vstrbq_p): Likewise.
10508 (__arm_vstrbq_scatter_offset): Likewise.
10509 (__arm_vstrbq_scatter_offset_p): Likewise.
10510 (__arm_vstrdq_scatter_offset): Likewise.
10511 (__arm_vstrdq_scatter_offset_p): Likewise.
10512 (__arm_vstrdq_scatter_shifted_offset): Likewise.
10513 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
10515 2021-05-11 Jakub Jelinek <jakub@redhat.com>
10517 PR middle-end/100471
10518 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
10519 is 0, bypass the reduction loop including
10520 GOMP_taskgroup_reduction_unregister call.
10522 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
10524 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
10525 costing_for_scalar.
10526 (rs6000_density_test): Early return if costing_for_scalar is true.
10527 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
10529 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
10531 * doc/tm.texi: Regenerated.
10532 * target.def (init_cost): Add new parameter costing_for_scalar.
10533 * targhooks.c (default_init_cost): Adjust for new parameter.
10534 * targhooks.h (default_init_cost): Likewise.
10535 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
10536 (vect_compute_single_scalar_iteration_cost): Likewise.
10537 (vect_analyze_loop_2): Likewise.
10538 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
10539 (vect_bb_vectorization_profitable_p): Likewise.
10540 * tree-vectorizer.h (init_cost): Likewise.
10541 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
10542 * config/i386/i386.c (ix86_init_cost): Likewise.
10543 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
10545 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
10547 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
10548 vect_nonmem and moved into...
10549 (struct rs6000_cost_data): ...here.
10550 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
10551 (rs6000_add_stmt_cost): Likewise.
10552 (rs6000_finish_cost): Likewise.
10554 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
10556 * range-op.cc (get_bool_state): Adjust head comment.
10557 (operator_not_equal::op1_range): Fix comment.
10558 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
10560 2021-05-10 Martin Sebor <msebor@redhat.com>
10562 PR middle-end/100425
10563 PR middle-end/100510
10564 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
10565 (pass_walloca::xlimit_certain_p): ...to this.
10566 (pass_walloca::gate): Execute for any kind of handled warning.
10567 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
10568 warnings when xlimit_certain_p is set.
10570 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
10572 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
10573 Return ALTIVEC_REGS if that is best_class.
10574 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
10576 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
10578 * config/arm/arm.h (CPP_SPEC): Remove error message about
10581 2021-05-10 Martin Jambor <mjambor@suse.cz>
10583 * ipa-prop.h (IPA_NODE_REF): Removed.
10584 (IPA_NODE_REF_GET_CREATE): Likewise.
10585 (IPA_EDGE_REF): Likewise.
10586 (IPA_EDGE_REF_GET_CREATE): Likewise.
10587 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
10588 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
10589 use of ipa_node_params_sum.
10590 (ipcp_versionable_function_p): Likewise.
10591 (push_node_to_stack): Likewise.
10592 (pop_node_from_stack): Likewise.
10593 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
10594 direct use of ipa_node_params_sum.
10595 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
10596 ipa_node_params_sum.
10597 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
10599 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
10600 use of ipa_node_params_sum.
10601 (self_recursively_generated_p): Likewise.
10602 (propagate_scalar_across_jump_function): Likewise.
10603 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
10604 direct use of ipa_edge_args_sum, moved the lookup after the early
10605 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
10606 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
10607 direct uses of ipa_node_params_sum.
10608 (propagate_vr_across_jump_function): Likewise.
10609 (propagate_aggregate_lattice): Likewise.
10610 (propagate_aggs_across_jump_function): Likewise.
10611 (propagate_constants_across_call): Likewise, also replaced
10612 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
10613 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
10614 of ipa_node_params_sum.
10615 (estimate_local_effects): Likewise.
10616 (add_all_node_vals_to_toposort): Likewise.
10617 (propagate_constants_topo): Likewise.
10618 (ipcp_propagate_stage): Likewise.
10619 (ipcp_discover_new_direct_edges): Likewise.
10620 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
10621 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
10622 (get_info_about_necessary_edges): Likewise.
10623 (want_remove_some_param_p): Likewise.
10624 (create_specialized_node): Likewise.
10625 (self_recursive_pass_through_p): Likewise.
10626 (self_recursive_agg_pass_through_p): Likewise.
10627 (find_more_scalar_values_for_callers_subset): Likewise and also
10628 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
10629 case replacing two of those with a single query.
10630 (find_more_contexts_for_caller_subset): Likewise for the
10631 ipa_polymorphic_call_context overload.
10632 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
10633 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
10634 ipa_node_params_sum.
10635 (find_aggregate_values_for_callers_subset): Likewise, also reusing
10636 results of ipa_edge_args_sum->get.
10637 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
10638 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
10639 direct use of ipa_edge_args_sum.
10640 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
10641 summary query after the early exit and reused the result later.
10642 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
10643 ipa_node_params_sum.
10644 (decide_whether_version_node): Likewise. Removed re-querying for
10645 summaries after cloning.
10646 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
10647 ipa_node_params_sum.
10648 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
10650 (identify_dead_nodes): Likewise.
10651 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
10652 ipa_node_params_sum.
10653 (ipcp_store_vr_results): Likewise.
10654 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
10655 (ipa_fn_summary_t::duplicate): Likewise.
10656 (analyze_function_body): Likewise.
10657 (estimate_calls_size_and_time): Likewise.
10658 (ipa_cached_call_context::duplicate_from): Likewise.
10659 (ipa_call_context::equal_to): Likewise.
10660 (remap_edge_params): Likewise.
10661 (ipa_merge_fn_summary_after_inlining): Likewise.
10662 (inline_read_section): Likewise.
10663 * ipa-icf.c (sem_function::param_used_p): Likewise.
10664 * ipa-modref.c (compute_parm_map): Likewise.
10665 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
10667 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
10668 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
10670 * ipa-profile.c (check_argument_count): Likewise.
10671 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
10672 with a direct use of ipa_node_params_sum.
10673 (ipa_initialize_node_params): Likewise.
10674 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
10675 direct use of ipa_edge_args_sum and reused the query result.
10676 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
10677 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
10678 direct use of ipa_edge_args_sum.
10679 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
10680 ipa_node_params_sum and reused the result of the query.
10681 (ipa_analyze_node): Likewise.
10682 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
10683 of ipa_node_params_sum.
10684 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
10685 direct uses of ipa_edge_args_sum.
10686 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
10687 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
10688 direct use of ipa_edge_args_sum. Removed superficial re-querying the
10690 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
10691 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
10693 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
10694 direct use of ipa_edge_args_sum.
10695 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
10696 use of ipa_node_params_sum.
10697 (ipa_print_node_params): Likewise.
10698 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
10699 direct uses of ipa_edge_args_sum.
10700 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
10702 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
10703 ipa_node_params_sum.
10704 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
10705 scopes where it is used.
10707 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
10709 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
10710 <case E_V2SImode>: Force op_true to register.
10712 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
10714 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
10715 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
10716 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
10718 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
10719 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
10720 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
10721 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
10722 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
10723 (mve_vcmpneq_n_f<mode>): Remove.
10724 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
10725 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
10726 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
10728 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
10730 * config/arm/iterators.md (MVE_COMPARISONS): New.
10732 (mve_cmp_type): New.
10733 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
10735 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
10736 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
10737 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
10738 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
10739 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
10740 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
10741 (mve_vcmpneq_n_<mode>): Remove.
10743 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
10745 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
10746 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
10747 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
10750 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
10752 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
10753 (vcmpneq_n_u): Likewise.
10754 (vcmpeqq_u,): Likewise.
10755 (vcmpeqq_n_u): Likewise.
10756 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
10757 VCMPEQQ_N_U and VCMPNEQ_N_U.
10758 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
10759 (mve_vcmpeqq_n): Likewise.
10760 (mve_vcmpeqq): Likewise.
10761 (mve_vcmpneq_n): Likewise.
10763 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
10765 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
10766 the 's' version of the builtin.
10768 2021-05-10 Richard Biener <rguenther@suse.de>
10770 PR tree-optimization/100492
10771 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
10772 Find nothing when the loop contains an irreducible region.
10774 2021-05-10 Richard Biener <rguenther@suse.de>
10776 PR middle-end/100464
10778 * gimple-fold.c (canonicalize_constructor_val): Do not set
10781 2021-05-10 Richard Biener <rguenther@suse.de>
10783 PR tree-optimization/100434
10784 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10786 (dse_optimize_stmt): Handle call LHS by dropping the
10787 LHS or the whole call if it doesn't have other
10789 (pass_dse::execute): Adjust.
10791 2021-05-10 Martin Liska <mliska@suse.cz>
10793 * Makefile.in: Add missing genversion rule.
10795 2021-05-10 Alex Coplan <alex.coplan@arm.com>
10798 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
10799 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
10801 2021-05-10 Martin Liska <mliska@suse.cz>
10803 * builtins.c (is_builtin_name): Use startswith
10804 function instead of strncmp.
10805 * collect2.c (main): Likewise.
10806 (has_lto_section): Likewise.
10807 (scan_libraries): Likewise.
10808 * coverage.c (coverage_checksum_string): Likewise.
10809 (coverage_init): Likewise.
10810 * dwarf2out.c (is_cxx): Likewise.
10811 (gen_compile_unit_die): Likewise.
10812 * gcc-ar.c (main): Likewise.
10813 * gcc.c (init_spec): Likewise.
10814 (read_specs): Likewise.
10815 (execute): Likewise.
10816 (check_live_switch): Likewise.
10817 * genattrtab.c (write_attr_case): Likewise.
10818 (IS_ATTR_GROUP): Likewise.
10819 * gencfn-macros.c (main): Likewise.
10820 * gengtype.c (type_for_name): Likewise.
10821 (gen_rtx_next): Likewise.
10822 (get_file_langdir): Likewise.
10823 (write_local): Likewise.
10824 * genmatch.c (get_operator): Likewise.
10825 (get_operand_type): Likewise.
10826 (expr::gen_transform): Likewise.
10827 * genoutput.c (validate_optab_operands): Likewise.
10828 * incpath.c (add_sysroot_to_chain): Likewise.
10829 * langhooks.c (lang_GNU_C): Likewise.
10830 (lang_GNU_CXX): Likewise.
10831 (lang_GNU_Fortran): Likewise.
10832 (lang_GNU_OBJC): Likewise.
10833 * lto-wrapper.c (run_gcc): Likewise.
10834 * omp-general.c (omp_max_simt_vf): Likewise.
10835 * omp-low.c (omp_runtime_api_call): Likewise.
10836 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
10837 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
10838 * real.c (real_from_string): Likewise.
10839 * selftest.c (assert_str_startswith): Likewise.
10840 * timevar.c (timer::validate_phases): Likewise.
10841 * tree.c (get_file_function_name): Likewise.
10842 * ubsan.c (ubsan_use_new_style_p): Likewise.
10843 * varasm.c (default_function_rodata_section): Likewise.
10844 (incorporeal_function_p): Likewise.
10845 (default_section_type_flags): Likewise.
10846 * system.h (startswith): Define startswith.
10848 2021-05-10 Martin Liska <mliska@suse.cz>
10850 * bitmap.h (class auto_bitmap): Remove
10851 __cplusplus >= 201103.
10852 * config/aarch64/aarch64.c: Likewise.
10853 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
10855 * sbitmap.h: Likewise.
10857 2021-05-10 Martin Liska <mliska@suse.cz>
10859 * Makefile.in: Rename gcov-iov to genversion and depend
10860 on version.h (instead of gcov-iov.h).
10861 * gcov-io.h: Include version.h instread of gcov-iov.h.
10862 * gengtype-state.c (read_state_version): Likewise.
10863 * gcov-iov.c: Moved to...
10864 * genversion.c: ...here.
10865 * lto-streamer.h (LTO_major_version): Define it with
10867 * version.c: Removed.
10868 * version.h: Removed.
10870 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
10872 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
10873 * config/arc/simdext.md (VCT): Add predicates for iterator
10876 (voptab): Likewise.
10877 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
10878 (<voptab>v2si3): New patterns.
10880 (reduc_plus_scal_v4hi): Likewise.
10881 (reduc_plus_scal_v2si): Likewise.
10882 (vec_duplicatev2si): Likewise.
10883 (vec_duplicatev4hi): Likewise.
10885 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
10887 * config/arc/simdext.md: Format and cleanup file.
10889 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
10891 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
10892 only when munaligned-access option is on.
10893 (movmisalign<mode>): Likewise.
10895 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
10897 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
10899 * config/arc/arc.c (arc_reorg): Remove underscore from string.
10901 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
10903 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
10904 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
10905 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
10906 (norm_f): Likewise.
10909 (clzsi2): Use fls instruction when available.
10910 (arc_clzsi2): Likewise.
10912 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
10914 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
10916 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
10918 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
10920 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
10922 PR middle-end/100467
10923 * toplev.c (compile_file): Call insn_locations_init before
10924 targetm.asm_out.code_end.
10926 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
10929 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
10931 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
10933 2021-05-07 Jakub Jelinek <jakub@redhat.com>
10934 Andrew Stubbs <amd@codesourcery.com>
10937 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
10938 emit_move_insn operands.
10940 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
10942 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
10943 location for the outgoing edges of an empty block.
10944 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
10945 type by means of the get_array_descr_info langhook, if it is set and
10946 returns true. Remove obsolete code dealing with unnamed subtypes.
10948 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
10950 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
10951 (sbr_vector): Renamed from ssa_block_cache.
10952 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
10953 (ssa_block_ranges::~ssa_block_ranges): Remove.
10954 (sbr_vector::set_bb_range): Use varying and undefined cached values.
10955 (ssa_block_ranges::set_bb_varying): Remove.
10956 (sbr_vector::get_bb_range): Adjust assert.
10957 (sbr_vector::bb_range_p): Adjust assert.
10958 (~block_range_cache): No freeing loop required.
10959 (block_range_cache::get_block_ranges): Remove.
10960 (block_range_cache::set_bb_range): Inline get_block_ranges.
10961 (block_range_cache::set_bb_varying): Remove.
10962 * gimple-range-cache.h (set_bb_varying): Remove prototype.
10963 * value-range.h (irange_allocator::get_memory): New.
10965 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
10967 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
10968 dominator tree is available and requested.
10969 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
10970 (ranger_cache::fill_block_cache): Don't search dom tree here either.
10971 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
10973 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
10975 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
10976 only PHI nodes better.
10978 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
10980 * gimple-range-edge.h (gimple_outgoing_range): Rename from
10982 (gcond_edge_range): Export prototype.
10983 * gimple-range-edge.cc (gcond_edge_range): New.
10984 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
10985 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
10987 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
10989 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
10990 default range into a temp and allocate only what is needed.
10992 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
10994 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
10996 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
10998 * gimple-range.h (gimple_range_global): Pick up parameter initial
10999 values, and use-before defined locals are UNDEFINED.
11001 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
11003 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
11005 * tree.h (reverse_storage_order_for_component_p): Return false if
11006 the type is a pointer.
11008 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
11010 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
11012 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
11015 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
11016 Handle V8QI, V4HI and V2SI modes.
11017 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
11018 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
11019 * config/i386/i386.md (unspec): ... here.
11021 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
11022 Tom de Vries <tdevries@suse.de>
11024 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
11025 a truth_value_p reduction variable is nonintegral.
11027 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
11030 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
11031 Return false for mode sizes < 16.
11033 2021-05-07 Jakub Jelinek <jakub@redhat.com>
11036 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
11038 2021-05-06 Martin Jambor <mjambor@suse.cz>
11040 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
11041 when there is no function summary.
11042 (ipa_sra_summarize_function): produce edge summaries even when
11045 2021-05-06 Tom Tromey <tom@tromey.com>
11047 * godump.c (string_hash_eq): Remove.
11048 (go_finish): Use htab_eq_string.
11050 2021-05-06 Tom Tromey <tom@tromey.com>
11052 * gengtype-state.c (read_state): Use htab_eq_string.
11053 (string_eq): Remove.
11055 2021-05-06 Tom Tromey <tom@tromey.com>
11057 * gensupport.c (htab_eq_string): Remove.
11059 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
11062 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
11063 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
11064 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
11065 set_ignored_loc callbacks.
11066 * debug.c (do_nothing_debug_hooks): Likewise.
11067 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11068 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
11069 (in_text_section_p, last_text_label, last_cold_label,
11070 switch_text_ranges, switch_cold_ranges): New data items.
11071 (dwarf2out_note_section_used): Remove.
11072 (dwarf2out_begin_prologue): Set fde->ignored_debug and
11074 (mark_ignored_debug_section): New helper function.
11075 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
11076 mark_ignored_debug_section.
11077 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
11078 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
11079 (size_of_aranges): Adjust formula for multi-part text ranges size.
11080 (output_aranges): Output multi-part text ranges.
11081 (dwarf2out_set_ignored_loc): New callback function.
11082 (dwarf2out_finish): Output multi-part text ranges.
11083 (dwarf2out_c_finalize): Clear new data items.
11084 * final.c (final_start_function_1): Call set_ignored_loc callback.
11085 (final_scan_insn_1): Likewise.
11086 * ggc-page.c (gt_ggc_mx): New helper function.
11087 * stringpool.c (gt_pch_nx): Likewise.
11089 2021-05-06 Richard Biener <rguenther@suse.de>
11091 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
11092 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
11093 (TV_TREE_INTO_SSA): New.
11094 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
11095 (rewrite_blocks): Likewise.
11096 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
11098 2021-05-06 Jakub Jelinek <jakub@redhat.com>
11100 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
11101 abs_replacement, xor_replacement,
11102 cond_removal_in_popcount_clz_ctz_pattern,
11103 replace_phi_edge_with_variable): Change type of phi argument from
11104 gimple * to gphi *.
11106 2021-05-06 Richard Biener <rguenther@suse.de>
11108 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
11109 Output an opt-info message.
11110 (do_split_loop_on_cond): Likewise.
11111 (tree_ssa_split_loops): Update SSA form here.
11113 2021-05-06 Richard Biener <rguenther@suse.de>
11115 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
11116 return variable removal.
11118 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
11120 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
11121 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
11122 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
11124 * config/s390/s390.c (s390_const_operand_ok): Remove unused
11127 2021-05-06 Jakub Jelinek <jakub@redhat.com>
11129 PR tree-optimization/94589
11130 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
11131 spaceship_replacement.
11132 (cond_only_block_p, spaceship_replacement): New functions.
11134 2021-05-06 Richard Biener <rguenther@suse.de>
11137 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
11138 dealing with a debug use and only query existing addresses
11140 (lower_emutls_1): Avoid splitting out addresses for debug
11141 stmts, reset the debug stmt when we fail to find existing
11143 (lower_emutls_phi_arg): Set wi.stmt.
11145 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
11148 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
11149 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
11150 (stack_protect_test): Use cbranch helper.
11152 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
11155 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
11156 always return the establisher frame for __builtin_frame_address (0).
11158 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
11161 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
11162 (ix86_cpu_model_var): Likewise.
11163 (ix86_cpu_features2_type_node): Likewise.
11164 (ix86_cpu_features2_var): Likewise.
11165 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
11168 2021-05-05 Martin Sebor <msebor@redhat.com>
11170 * passes.def (pass_warn_printf): Run after SSA.
11172 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11174 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
11175 * config/arm/predicates.md (minus_one_operand): New predicate.
11177 2021-05-05 Jeff Law <jlaw@tachyum.com>
11179 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
11181 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
11183 PR rtl-optimization/100263
11184 * postreload.c (move2add_valid_value_p): Ensure register can
11187 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
11189 PR rtl-optimization/100411
11190 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
11191 and beginning of function markers.
11193 2021-05-05 Jeff Law <jlaw@tachyum.com>
11195 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
11196 * config/cr16/cr16.c (notice_update_cc): Remove.
11197 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
11199 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
11202 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
11203 Handle V8QI, V4HI and V2SI modes.
11204 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
11205 (ix86_build_signbit_mask): Ditto.
11206 * config/i386/mmx.md (MMXMODE14): New mode iterator.
11207 (<smaxmin:code><MMXMODE14:mode>3): New expander.
11208 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
11209 (<umaxmin:code><MMXMODE24:mode>3): New expander.
11210 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
11211 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
11212 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
11213 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
11214 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
11215 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
11217 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
11219 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
11220 not expand the VALUE_EXPR of variables put in the non-local frame.
11221 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
11222 to be ignored for debug info, ensure its variable offsets are not.
11224 2021-05-05 Richard Biener <rguenther@suse.de>
11226 PR tree-optimization/79333
11227 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
11228 Fold stmt following SSA edges.
11230 2021-05-05 Richard Biener <rguenther@suse.de>
11232 PR middle-end/100394
11233 * calls.c (expand_call): Preserve possibly throwing calls.
11234 * cfgexpand.c (expand_call_stmt): When a call can throw signal
11235 RTL expansion there are side-effects.
11236 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
11237 mark all possibly throwing stmts necessary unless we can elide
11239 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
11240 -fdelete-dead-exceptions.
11241 * tree.h (DECL_PURE_P): Add note about exceptions.
11243 2021-05-05 Alexandre Oliva <oliva@adacore.com>
11245 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
11248 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
11250 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
11251 get_fnname_from_decl for name of thunk.
11252 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
11253 and ASM_OUTPUT_LABEL.
11254 (rs6000_xcoff_declare_function_name): Use assemble_name and
11256 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
11257 (rs6000_xcoff_encode_section_info): Don't add mapping class
11258 for aliases. Always add [DS] mapping class to primary
11260 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
11262 2021-05-04 Martin Sebor <msebor@redhat.com>
11264 PR middle-end/100307
11265 * builtins.c (compute_objsize_r): Clear base0 for pointers.
11267 2021-05-04 Jeff Law <jlaw@tachyum.com>
11269 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
11271 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
11273 * caller-save.c: Remove CC0.
11274 * cfgcleanup.c: Remove CC0.
11275 * cfgrtl.c: Remove CC0.
11276 * combine.c: Remove CC0.
11277 * compare-elim.c: Remove CC0.
11278 * conditions.h: Remove CC0.
11279 * config/h8300/h8300.h: Remove CC0.
11280 * config/h8300/h8300-protos.h: Remove CC0.
11281 * config/h8300/peepholes.md: Remove CC0.
11282 * config/i386/x86-tune-sched.c: Remove CC0.
11283 * config/m68k/m68k.c: Remove CC0.
11284 * config/rl78/rl78.c: Remove CC0.
11285 * config/sparc/sparc.c: Remove CC0.
11286 * config/xtensa/xtensa.c: Remove CC0.
11287 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
11288 RTL where that is used as a placeholder only.
11289 * cprop.c: Remove CC0.
11290 * cse.c: Remove CC0.
11291 * cselib.c: Remove CC0.
11292 * df-problems.c: Remove CC0.
11293 * df-scan.c: Remove CC0.
11294 * doc/md.texi: Remove CC0. Adjust an example.
11295 * doc/rtl.texi: Remove CC0. Adjust an example.
11296 * doc/tm.texi: Regenerate.
11297 * doc/tm.texi.in: Remove CC0.
11298 * emit-rtl.c: Remove CC0.
11299 * final.c: Remove CC0.
11300 * fwprop.c: Remove CC0.
11301 * gcse-common.c: Remove CC0.
11302 * gcse.c: Remove CC0.
11303 * genattrtab.c: Remove CC0.
11304 * genconfig.c: Remove CC0.
11305 * genemit.c: Remove CC0.
11306 * genextract.c: Remove CC0.
11307 * gengenrtl.c: Remove CC0.
11308 * genrecog.c: Remove CC0.
11309 * haifa-sched.c: Remove CC0.
11310 * ifcvt.c: Remove CC0.
11311 * ira-costs.c: Remove CC0.
11312 * ira.c: Remove CC0.
11313 * jump.c: Remove CC0.
11314 * loop-invariant.c: Remove CC0.
11315 * lra-constraints.c: Remove CC0.
11316 * lra-eliminations.c: Remove CC0.
11317 * optabs.c: Remove CC0.
11318 * postreload-gcse.c: Remove CC0.
11319 * postreload.c: Remove CC0.
11320 * print-rtl.c: Remove CC0.
11321 * read-rtl-function.c: Remove CC0.
11322 * reg-notes.def: Remove CC0.
11323 * reg-stack.c: Remove CC0.
11324 * reginfo.c: Remove CC0.
11325 * regrename.c: Remove CC0.
11326 * reload.c: Remove CC0.
11327 * reload1.c: Remove CC0.
11328 * reorg.c: Remove CC0.
11329 * resource.c: Remove CC0.
11330 * rtl.c: Remove CC0.
11331 * rtl.def: Remove CC0.
11332 * rtl.h: Remove CC0.
11333 * rtlanal.c: Remove CC0.
11334 * sched-deps.c: Remove CC0.
11335 * sched-rgn.c: Remove CC0.
11336 * shrink-wrap.c: Remove CC0.
11337 * simplify-rtx.c: Remove CC0.
11338 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
11339 CC_STATUS_MDEP, and CC_STATUS.
11340 * target.def: Remove CC0.
11341 * valtrack.c: Remove CC0.
11342 * var-tracking.c: Remove CC0.
11344 2021-05-04 Richard Biener <rguenther@suse.de>
11346 PR tree-optimization/100414
11347 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
11349 (tree_ssa_phiopt_worker): But unconditionally here.
11351 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
11353 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
11354 && and || with floating-point and complex arguments.
11356 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
11358 * tree-inline.c (insert_debug_decl_map): Delete.
11359 (copy_debug_stmt): Minor tweak.
11360 (setup_one_parameter): Do not use a variable if the value is either
11361 a read-only DECL or a non-addressable local variable in the caller.
11362 In this case, insert the debug-only variable in the map manually.
11363 (expand_call_inline): Do not generate a CLOBBER for these values.
11364 * tree-inline.h (debug_map): Minor tweak.
11366 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
11368 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
11369 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
11371 2021-05-04 Richard Biener <rguenther@suse.de>
11373 PR tree-optimization/100329
11374 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
11376 (insert_stmt_after): Assert we're not running into asm goto.
11378 2021-05-04 Richard Biener <rguenther@suse.de>
11380 PR tree-optimization/100398
11381 * tree-ssa-dse.c (pass_dse::execute): Preserve control
11384 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11386 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
11388 2021-05-04 Alexandre Oliva <oliva@adacore.com>
11390 * builtins.c (try_store_by_multiple_pieces): New.
11391 (expand_builtin_memset_args): Use it. If target_char_cast
11392 fails, proceed as for non-constant val. Pass len's ctz to...
11393 * expr.c (clear_storage_hints): ... this. Try store by
11394 multiple pieces after setmem.
11395 (clear_storage): Adjust.
11396 * expr.h (clear_storage_hints): Likewise.
11397 (try_store_by_multiple_pieces): Declare.
11398 * passes.def: Replace the last copy_prop with ccp.
11400 2021-05-03 Tom de Vries <tdevries@suse.de>
11403 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
11406 2021-05-03 Richard Biener <rguenther@suse.de>
11408 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
11410 2021-05-03 Richard Biener <rguenther@suse.de>
11412 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
11413 (dse_dom_walker): Remove.
11414 (dse_dom_walker::dse_optimize_stmt): Rename...
11415 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
11416 (dse_dom_walker::before_dom_children): Inline ...
11417 (pass_dse::execute): ... here. Perform a reverse program
11420 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
11423 * configure: Regenerated.
11425 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
11428 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
11429 (s390_md_asm_adjust): Handle hard registers.
11431 2021-05-03 Jakub Jelinek <jakub@redhat.com>
11433 PR tree-optimization/100382
11434 * tree-ssa-dse.c: Include tree-eh.h.
11435 (dse_dom_walker::before_dom_children): Don't remove stmts if
11436 stmt_unremovable_because_of_non_call_eh_p is true.
11438 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
11440 * varasm.c (compute_reloc_for_var): Split out from...
11441 (get_variable_section): Use it.
11442 * output.h (compute_reloc_for_var): Declare.
11443 * config/rs6000/rs6000-protos.h
11444 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
11446 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
11447 Don't append storage mapping class to symbol.
11448 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
11449 Don't convert TLS BSS to common.
11450 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
11451 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
11453 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
11455 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
11456 If align is 0 from TLS class, use the same rules as varasm.c
11457 If not common, switch to BSS section manually.
11458 If common, emit appropriate comm or lcomm directive.
11459 (rs6000_xcoff_encode_section_info): Add logic to append all
11460 storage mapping classes.
11461 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
11462 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
11463 rs6000_xcoff_asm_output_aligned_decl_common.
11464 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
11465 rs6000_xcoff_asm_output_aligned_decl_common.
11466 (ASM_OUTPUT_TLS_COMMON): Use
11467 rs6000_xcoff_asm_output_aligned_decl_common.
11469 2021-05-02 Jakub Jelinek <jakub@redhat.com>
11472 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
11473 as first argument of pseudo_node_t constructors.
11475 2021-05-02 Jakub Jelinek <jakub@redhat.com>
11478 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
11480 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
11482 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
11483 (gt_pch_nx (int_range<1> *&)): New.
11484 (gt_ggc_mx (int_range<1> *&)): New.
11485 * value-range.h (class irange): Add GTY support for
11488 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
11490 * doc/options.texi (Negative): Change either or to both and.
11492 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
11494 * config/aarch64/aarch64-simd-builtins.def: Add
11495 float_ml[as][q]_laneq builtin generator macros.
11496 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
11497 (aarch64_float_mla_laneq<mode>): Define.
11498 (aarch64_float_mls_laneq<mode>): Define.
11499 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
11500 instead of GCC vector extensions.
11501 (vmlaq_laneq_f32): Likewise.
11502 (vmls_laneq_f32): Likewise.
11503 (vmlsq_laneq_f32): Likewise.
11505 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
11507 * config/aarch64/aarch64-simd-builtins.def: Add
11508 float_ml[as]_lane builtin generator macros.
11509 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
11511 (mul_lane<mode>3): This, and re-order arguments.
11512 (aarch64_float_mla_lane<mode>): Define.
11513 (aarch64_float_mls_lane<mode>): Define.
11514 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
11515 instead of GCC vector extensions.
11516 (vmlaq_lane_f32): Likewise.
11517 (vmls_lane_f32): Likewise.
11518 (vmlsq_lane_f32): Likewise.
11520 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
11522 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
11523 builtin generator macros.
11524 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
11526 (aarch64_float_mls<mode>): Define.
11527 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
11528 instead of relying on GCC vector extensions.
11529 (vmla_f64): Likewise.
11530 (vmlaq_f32): Likewise.
11531 (vmlaq_f64): Likewise.
11532 (vmls_f32): Likewise.
11533 (vmls_f64): Likewise.
11534 (vmlsq_f32): Likewise.
11535 (vmlsq_f64): Likewise.
11536 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
11538 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
11540 * config/aarch64/aarch64-simd-builtins.def: Add
11541 float_ml[as]_n_builtin generator macros.
11542 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
11544 (mul_n<mode>3): This, and re-order arguments.
11545 (aarch64_float_mla_n<mode>): Define.
11546 (aarch64_float_mls_n<mode>): Define.
11547 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
11548 instead of inline asm.
11549 (vmlaq_n_f32): Likewise.
11550 (vmls_n_f32): Likewise.
11551 (vmlsq_n_f32): Likewise.
11553 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
11555 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
11556 builtin generator macros.
11557 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
11558 (aarch64_pmull_hiv16qi_insn): Define.
11559 (aarch64_pmull_hiv16qi): Define.
11560 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
11561 instead of inline asm.
11562 (vmull_p8): Likewise.
11564 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
11566 * config/avr/avr.md: Adjust peepholes to match and
11567 generate parallels with clobber of REG_CC.
11568 (mov<mode>_insn): Rename to mov<mode>_insn_split.
11569 (*mov<mode>_insn): Rename to mov<mode>_insn.
11571 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
11573 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
11574 for VAR_DECLs if -fdata-sections enabled.
11576 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
11578 PR bootstrap/100327
11579 * config/rs6000/rs6000.c
11580 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
11581 (rs6000_libgcc_floating_mode_supported_p): New target hook.
11583 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
11585 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
11587 (class back_threader_registry): ...to here...
11588 (class back_threader_profitability): ...and here...
11589 (thread_jumps::thread_through_all_blocks): Remove argument.
11590 (back_threader_registry::back_threader_registry): New.
11591 (back_threader_registry::~back_threader_registry): New.
11592 (back_threader_registry::thread_through_all_blocks): New.
11593 (thread_jumps::profitable_jump_thread_path): Move from here...
11594 (back_threader_profitability::profitable_path_p): ...to here.
11595 (thread_jumps::find_taken_edge): New.
11596 (thread_jumps::convert_and_register_current_path): Move...
11597 (back_threader_registry::register_path): ...to here.
11598 (thread_jumps::register_jump_thread_path_if_profitable): Move...
11599 (thread_jumps::maybe_register_path): ...to here.
11600 (thread_jumps::handle_phi): Call find_taken_edge and
11601 maybe_register_path.
11602 (thread_jumps::handle_assignment): Same.
11603 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
11604 tree argument to handle_phi and handle_assignment.
11605 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
11606 set of m_speed_p and m_max_threaded_paths.
11607 (pass_thread_jumps::execute): Remove second argument from
11608 find_jump_threads_backwards.
11609 (pass_early_thread_jumps::execute): Same.
11611 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
11613 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
11614 (class dom_opt_dom_walker): Initialize some class variables.
11615 (pass_dominator::execute): Pass evrp_range_analyzer and
11616 dom_jump_threader_simplifier to dom_opt_dom_walker.
11617 Adjust for some functions moving into classes.
11618 (simplify_stmt_for_jump_threading): Adjust and move to...
11619 (jump_threader_simplifier::simplify): ...here.
11620 (dom_opt_dom_walker::before_dom_children): Adjust for
11621 m_evrp_range_analyzer.
11622 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
11623 (test_for_singularity): Place in dom_opt_dom_walker class.
11624 (dom_opt_dom_walker::optimize_stmt): The argument
11625 evrp_range_analyzer is now a class field.
11626 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
11627 (thread_jumps::thread_through_all_blocks): New.
11628 (thread_jumps::convert_and_register_current_path): Use m_registry.
11629 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
11630 being in the threader class.
11631 (pass_early_thread_jumps::execute): Same.
11632 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
11633 (jump_threader::jump_threader): ...here.
11634 (threadedge_finalize_values): Move...
11635 (jump_threader::~jump_threader): ...here.
11636 (jump_threader::remove_jump_threads_including): New.
11637 (jump_threader::thread_through_all_blocks): New.
11638 (record_temporary_equivalences_from_phis): Move...
11639 (jump_threader::record_temporary_equivalences_from_phis): ...here.
11640 (record_temporary_equivalences_from_stmts_at_dest): Move...
11641 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
11643 (simplify_control_stmt_condition_1): Move to jump_threader class.
11644 (simplify_control_stmt_condition): Move...
11645 (jump_threader::simplify_control_stmt_condition): ...here.
11646 (thread_around_empty_blocks): Move...
11647 (jump_threader::thread_around_empty_blocks): ...here.
11648 (thread_through_normal_block): Move...
11649 (jump_threader::thread_through_normal_block): ...here.
11650 (thread_across_edge): Move...
11651 (jump_threader::thread_across_edge): ...here.
11652 (thread_outgoing_edges): Move...
11653 (jump_threader::thread_outgoing_edges): ...here.
11654 * tree-ssa-threadedge.h: Move externally facing functings...
11655 (class jump_threader): ...here...
11656 (class jump_threader_simplifier): ...and here.
11657 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
11658 (jump_thread_path_allocator::jump_thread_path_allocator): New.
11659 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
11660 (jump_thread_path_allocator::allocate_thread_edge): New.
11661 (jump_thread_path_allocator::allocate_thread_path): New.
11662 (jump_thread_path_registry::jump_thread_path_registry): New.
11663 (jump_thread_path_registry::~jump_thread_path_registry): New.
11664 (jump_thread_path_registry::allocate_thread_edge): New.
11665 (jump_thread_path_registry::allocate_thread_path): New.
11666 (dump_jump_thread_path): Make extern.
11667 (debug (const vec<jump_thread_edge *> &path)): New.
11668 (struct removed_edges): Move to tree-ssa-threadupdate.h.
11669 (struct thread_stats_d): Remove.
11670 (remove_ctrl_stmt_and_useless_edges): Make static.
11671 (lookup_redirection_data): Move...
11672 (jump_thread_path_registry::lookup_redirection_data): ...here.
11673 (ssa_redirect_edges): Make static.
11674 (thread_block_1): Move...
11675 (jump_thread_path_registry::thread_block_1): ...here.
11676 (thread_block): Move...
11677 (jump_thread_path_registry::thread_block): ...here.
11678 (thread_through_loop_header): Move...
11679 (jump_thread_path_registry::thread_through_loop_header): ...here.
11680 (mark_threaded_blocks): Move...
11681 (jump_thread_path_registry::mark_threaded_blocks): ...here.
11682 (debug_path): Move...
11683 (jump_thread_path_registry::debug_path): ...here.
11684 (debug_all_paths): Move...
11685 (jump_thread_path_registry::dump): ..here.
11686 (rewire_first_differing_edge): Move...
11687 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
11688 (adjust_paths_after_duplication): Move...
11689 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
11690 (duplicate_thread_path): Move...
11691 (jump_thread_path_registry::duplicate_thread_path): ..here.
11692 (remove_jump_threads_including): Move...
11693 (jump_thread_path_registry::remove_jump_threads_including): ...here.
11694 (thread_through_all_blocks): Move to...
11695 (jump_thread_path_registry::thread_through_all_blocks): ...here.
11696 (delete_jump_thread_path): Remove.
11697 (register_jump_thread): Move...
11698 (jump_thread_path_registry::register_jump_thread): ...here.
11699 * tree-ssa-threadupdate.h: Move externally facing functions...
11700 (class jump_thread_path_allocator): ...here...
11701 (class jump_thread_path_registry): ...and here.
11702 (thread_through_all_blocks): Remove.
11703 (struct removed_edges): New.
11704 (register_jump_thread): Remove.
11705 (remove_jump_threads_including): Remove.
11706 (delete_jump_thread_path): Remove.
11707 (remove_ctrl_stmt_and_useless_edges): Remove.
11708 (free_dom_edge_info): New prototype.
11709 * tree-vrp.c: Remove x_vr_values hack.
11710 (class vrp_jump_threader_simplifier): New.
11711 (vrp_jump_threader_simplifier::simplify): New.
11712 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
11713 Remove m_dummy_cond.
11714 Instantiate m_simplifier and m_threader.
11715 (vrp_jump_threader::thread_through_all_blocks): New.
11716 (vrp_jump_threader::simplify_stmt): Remove.
11717 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
11718 Remove x_vr_values hack.
11719 (execute_vrp): Adjust for thread_through_all_blocks being in a
11722 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
11724 * genflags.c (gen_insn): Print failed expansion string.
11726 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
11728 * expr.c (alignment_for_piecewise_move): Call mode_for_size
11729 without limit to MAX_FIXED_MODE_SIZE.
11731 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
11733 PR middle-end/90773
11734 * builtins.c (builtin_memset_gen_str): Don't use return from
11735 simplify_gen_subreg.
11737 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
11740 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
11741 (*addsi3_carry_zext_0r): Ditto.
11742 (*sub<mode>3_carry_0): Ditto.
11743 (*subsi3_carry_zext_0r): Ditto.
11744 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
11746 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
11747 Also consider ix86_carry_flag_unset_operator to calculate
11748 the cost of adc/sbb insn.
11750 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
11752 PR rtl-optimization/100225
11753 PR rtl-optimization/84878
11754 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
11755 where we have an instruction which touches (writes) any hard
11756 register from df->regular_block_artificial_uses set.
11757 Allow not-single-set instruction only right before basic block
11760 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
11762 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
11764 2021-04-30 LevyHsu <admin@levyhsu.com>
11766 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
11767 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
11768 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
11769 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
11771 2021-04-29 Alexandre Oliva <oliva@adacore.com>
11773 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
11775 2021-04-29 Alexandre Oliva <oliva@adacore.com>
11777 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
11778 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
11779 * config/i386/i386.c: Adjust.
11780 * config/i386/i386.md: Adjust.
11781 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
11782 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11783 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11784 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11785 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11786 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11787 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11788 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11789 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11790 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11791 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
11793 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
11795 * config/i386/i386-expand.c (ix86_expand_int_compare):
11796 Swap operands of GTU and LEU comparison to emit carry flag comparison.
11797 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
11798 predicate to allow more combine opportunities with memory operands.
11799 (*sub<mode>3_carry_0): Ditto.
11801 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
11803 PR rtl-optimization/100303
11804 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
11805 boolean that indicates whether the use will only be used in
11806 debug instructions. Treat it in the same way that existing
11807 cross-EBB debug references would be handled if so.
11808 (function_info::make_uses_available): Likewise.
11809 * rtl-ssa/functions.h (function_info::make_uses_available): Update
11810 prototype accordingly.
11811 (function_info::make_uses_available): Likewise.
11812 * fwprop.c (try_fwprop_subst): Update call accordingly.
11814 2021-04-29 Jeff Law <jlaw@tachyum.com>
11816 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
11819 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
11820 Richard Biener <rguenther@suse.de>
11823 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
11824 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
11825 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
11826 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
11827 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
11828 to PURE_ARGS category.
11829 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
11830 Handle PURE_ARGS category.
11831 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
11833 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
11835 * configure.ac: Check for the presence of sys/locking.h header and
11836 for whether _LK_LOCK is supported by _locking.
11837 * configure: Regenerate.
11838 * config.in: Likewise.
11839 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
11840 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
11841 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
11843 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
11845 * config/i386/predicates.md (fcmov_comparison_operator):
11846 Do not check for trivial FP comparison operator.
11847 <case GEU, case LTU>: Allow CCGZmode.
11848 <case GTU, case LEU>: Do not allow CCCmode.
11849 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
11850 (ix86_carry_flag_operator): Match only LTU and UNLT code.
11851 Do not check for trivial FP comparison operator. Allow CCGZmode.
11853 2021-04-29 Tom de Vries <tdevries@suse.de>
11855 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
11856 fd->loop.step by either step or orig_step.
11858 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
11860 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
11861 (load_got_register): Do the PIC dance here.
11862 (sparc_legitimize_tls_address): Simplify.
11863 (sparc_emit_probe_stack_range): Likewise.
11864 (sparc32_initialize_trampoline): Likewise.
11865 (sparc64_initialize_trampoline): Likewise.
11866 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
11867 (probe_stack_range<P:mode>): Likewise.
11868 (flush<P:mode>): Likewise.
11869 (tgd_hi22<P:mode>): Likewise.
11870 (tgd_lo10<P:mode>): Likewise.
11871 (tgd_add<P:mode>): Likewise.
11872 (tgd_call<P:mode>): Likewise.
11873 (tldm_hi22<P:mode>): Likewise.
11874 (tldm_lo10<P:mode>): Likewise.
11875 (tldm_add<P:mode>): Likewise.
11876 (tldm_call<P:mode>): Likewise.
11877 (tldo_hix22<P:mode>): Likewise.
11878 (tldo_lox10<P:mode>): Likewise.
11879 (tldo_add<P:mode>): Likewise.
11880 (tie_hi22<P:mode>): Likewise.
11881 (tie_lo10<P:mode>): Likewise.
11882 (tie_add<P:mode>): Likewise.
11883 (tle_hix22<P:mode>): Likewise.
11884 (tle_lox10<P:mode>): Likewise.
11885 (stack_protect_setsi): Rename to...
11886 (stack_protect_set32): ...this.
11887 (stack_protect_setdi): Rename to...
11888 (stack_protect_set64): ...this.
11889 (stack_protect_set): Adjust calls to above.
11890 (stack_protect_testsi): Rename to...
11891 (stack_protect_test32): ...this.
11892 (stack_protect_testdi): Rename to...
11893 (stack_protect_test64): ...this.
11894 (stack_protect_test): Adjust calls to above.
11896 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
11898 PR middle-end/90773
11899 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
11900 (builtin_strncpy_read_str): Likewise.
11901 (builtin_memset_read_str): Add an argument for the previous RTL
11902 information and generate the new RTL from the previous RTL info.
11903 (builtin_memset_gen_str): Likewise.
11904 * builtins.h (builtin_strncpy_read_str): Update the prototype.
11905 (builtin_memset_read_str): Likewise.
11906 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
11907 returns true, round up size and alignment to the widest integer
11908 mode for maximum size.
11909 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
11910 and pass it to m_constfn.
11911 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
11912 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
11913 initialize m_push. Initialize m_overlap_op_by_pieces with
11914 targetm.overlap_op_by_pieces_p ().
11915 (op_by_pieces_d::run): Pass the previous RTL information to
11916 pieces_addr::adjust and generate overlapping operations if
11917 m_overlap_op_by_pieces is true.
11919 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
11921 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
11923 (can_store_by_pieces): Use by_pieces_constfn on constfun.
11924 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
11925 for op_by_pieces_d change.
11926 (clear_by_pieces_1): Add a dummy argument.
11927 (clear_by_pieces): Updated for op_by_pieces_d change.
11928 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
11929 (string_cst_read_str): Add a dummy argument.
11930 * expr.h (by_pieces_constfn): Add a dummy argument.
11931 (by_pieces_prev): New.
11932 * target.def (overlap_op_by_pieces_p): New target hook.
11933 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
11934 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
11935 * doc/tm.texi: Regenerated.
11937 2021-04-29 Richard Biener <rguenther@suse.de>
11939 PR tree-optimization/100253
11940 * tree-vect-stmts.c (vectorizable_load): Do not assume
11941 element alignment when DR_MISALIGNMENT is -1.
11942 (vectorizable_store): Likewise.
11944 2021-04-29 Jakub Jelinek <jakub@redhat.com>
11947 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
11948 absu_hwi instead of abs_hwi.
11950 2021-04-29 Richard Biener <rguenther@suse.de>
11952 PR middle-end/38474
11953 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
11954 forwarding when indirect forwarding through ESCAPED
11957 2021-04-29 Tom de Vries <tdevries@suse.de>
11960 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
11961 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
11962 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
11963 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
11965 2021-04-29 Richard Biener <rguenther@suse.de>
11967 PR tree-optimization/99912
11968 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
11969 (dse_dom_walker::todo): Likewise.
11970 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
11972 (dse_dom_walker::before_dom_children): Remove trivially
11973 dead SSA defs and schedule CFG cleanup if we removed all
11975 (pass_dse::execute): Get TODO as computed by the DOM walker
11976 and return it. Wipe dominator info earlier.
11978 2021-04-29 Richard Biener <rguenther@suse.de>
11981 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
11982 Track blocks to cleanup EH in new m_need_eh_cleanup.
11983 (ipcp_modif_dom_walker::cleanup_eh): New.
11984 (ipcp_transform_function): Release dominator info before
11987 2021-04-29 Martin Sebor <msebor@redhat.com>
11989 PR middle-end/100250
11990 * attribs.c (attr_access::array_as_string): Avoid dereferencing
11991 a pointer when it's null.
11993 2021-04-29 Martin Sebor <msebor@redhat.com>
11995 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
11996 * ipa-free-lang-data.cc: New file.
11997 * tree.c: Move pass free_lang_data to file above.
11998 (build_array_type_1): Declare extern.
11999 * tree.h (build_array_type_1): Declare.
12001 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12003 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
12004 make consistent with updated RTL pattern.
12005 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
12006 Implement using ss_truncate and us_truncate rather than
12008 * config/aarch64/iterators.md: Remove redundant unspecs and
12009 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
12011 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12013 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
12014 attributes consistent with those defined in arm_neon.h.
12016 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12018 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
12019 attributes consistent with those defined in arm_neon.h.
12021 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12023 * config/aarch64/aarch64-simd-builtins.def: Add
12024 float_trunc_rodd builtin generator macros.
12025 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
12027 (aarch64_float_trunc_rodd_lo_v2sf): Define.
12028 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
12029 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
12030 (aarch64_float_trunc_rodd_hi_v4sf): Define.
12031 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
12032 instead of inline asm.
12033 (vcvtx_high_f32_f64): Likewise.
12034 (vcvtxd_f32_f64): Likewise.
12035 * config/aarch64/iterators.md: Add FCVTXN unspec.
12037 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12039 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
12041 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
12043 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
12044 instead of inline asm.
12045 (vqtbx1_u8): Likewise.
12046 (vqtbx1_p8): Likewise.
12047 (vqtbx1q_s8): Likewise.
12048 (vqtbx1q_u8): Likewise.
12049 (vqtbx1q_p8): Likewise.
12050 (vtbx2_s8): Likewise.
12051 (vtbx2_u8): Likewise.
12052 (vtbx2_p8): Likewise.
12054 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12056 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
12058 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
12059 instead of inline asm.
12060 (vqtbl1_s8): Likewise.
12061 (vqtbl1_u8): Likewise.
12062 (vqtbl1q_p8): Likewise.
12063 (vqtbl1q_s8): Likewise.
12064 (vqtbl1q_u8): Likewise.
12065 (vtbl1_s8): Likewise.
12066 (vtbl1_u8): Likewise.
12067 (vtbl1_p8): Likewise.
12068 (vtbl2_s8): Likewise.
12069 (vtbl2_u8): Likewise.
12070 (vtbl2_p8): Likewise.
12072 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12074 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
12075 ssri_n buitin generator macro.
12076 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
12077 instead of inline asm.
12078 (vsri_n_p16): Likewise.
12079 (vsri_n_p64): Likewise.
12080 (vsriq_n_p8): Likewise.
12081 (vsriq_n_p16): Likewise.
12082 (vsriq_n_p64): Likewise.
12084 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12086 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
12087 iterator for polynomial ssli_n builtin generator macro.
12088 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
12089 instead of inline asm.
12090 (vsli_n_p16): Likewise.
12091 (vsliq_n_p8): Likewise.
12092 (vsliq_n_p16): Likewise.
12093 * config/aarch64/iterators.md: Define VALLP mode iterator.
12095 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12097 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
12098 iterator to generate [su]adalp RTL builtins.
12099 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
12100 [su]adalp RTL pattern.
12101 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
12102 instead of inline asm.
12103 (vpadal_u32): Likewise.
12105 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12107 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
12108 builtin generator macros.
12109 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
12111 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
12112 instead of inline asm.
12113 (vpaddl_s16): Likewise.
12114 (vpaddl_s32): Likewise.
12115 (vpaddl_u8): Likewise.
12116 (vpaddl_u16): Likewise.
12117 (vpaddl_u32): Likewise.
12118 (vpaddlq_s8): Likewise.
12119 (vpaddlq_s16): Likewise.
12120 (vpaddlq_s32): Likewise.
12121 (vpaddlq_u8): Likewise.
12122 (vpaddlq_u16): Likewise.
12123 (vpaddlq_u32): Liwewise.
12124 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
12125 appropriate attributes.
12127 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12129 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
12130 for aarch64_addp<mode> builtin macro generator.
12131 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
12132 aarch64_addp<mode> RTL pattern.
12133 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
12134 instead of inline asm.
12135 (vpaddq_s16): Likewise.
12136 (vpaddq_s32): Likewise.
12137 (vpaddq_s64): Likewise.
12138 (vpaddq_u8): Likewise.
12139 (vpaddq_u16): Likewise.
12140 (vpaddq_u32): Likewise.
12141 (vpaddq_u64): Likewise.
12143 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12145 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
12146 builtin generator macros.
12147 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
12149 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
12150 instead of inline asm.
12151 (vqdmulh_n_s32): Likewise.
12152 (vqdmulhq_n_s16): Likewise.
12153 (vqdmulhq_n_s32): Likewise.
12154 (vqrdmulh_n_s16): Likewise.
12155 (vqrdmulh_n_s32): Likewise.
12156 (vqrdmulhq_n_s16): Likewise.
12157 (vqrdmulhq_n_s32): Likewise.
12159 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
12161 * doc/install.texi (--enable-offload-defaulted): Document.
12163 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
12165 * config/avr/avr-dimode.md: Turn existing patterns into
12166 define_insn_and_split style patterns where the splitter
12167 adds a clobber of the condition code register. Drop "cc"
12168 attribute. Add new patterns to match output of
12170 * config/avr/avr-fixed.md: Likewise.
12171 * config/avr/avr.c (cc_reg_rtx): New.
12172 (avr_parallel_insn_from_insns): Adjust insn count
12173 for removal of set of cc0.
12174 (avr_is_casesi_sequence): Likewise.
12175 (avr_casei_sequence_check_operands): Likewise.
12176 (avr_optimize_casesi): Likewise. Also insert
12177 new insns after jump_insn.
12178 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
12179 for removal of set of cc0.
12180 (avr_init_expanders): Initialize cc_reg_rtx.
12181 (avr_regno_reg_class): Handle REG_CC.
12182 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
12183 (avr_notice_update_cc): Remove function.
12184 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
12185 (compare_condition): Adjust for PARALLEL with
12187 (out_shift_with_cnt): Likewise.
12188 (ashlhi3_out): Likewise.
12189 (ashrhi3_out): Likewise.
12190 (lshrhi3_out): Likewise.
12191 (avr_class_max_nregs): Return single reg for REG_CC.
12192 (avr_compare_pattern): Check for REG_CC instead
12194 (avr_reorg_remove_redundant_compare): Likewise.
12195 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
12196 (avr_hard_regno_nregs): Return single reg for REG_CC.
12197 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
12198 (avr_md_asm_adjust): Clobber REG_CC.
12199 (TARGET_HARD_REGNO_NREGS): Define.
12200 (TARGET_CLASS_MAX_NREGS): Define.
12201 (TARGET_MD_ASM_ADJUST): Define.
12202 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
12204 (enum reg_class): Add CC_REG class.
12205 (NOTICE_UPDATE_CC): Remove.
12206 (CC_OVERFLOW_UNUSABLE): Remove.
12207 (CC_NO_CARRY): Remove.
12208 * config/avr/avr.md: Turn existing patterns into
12209 define_insn_and_split style patterns where the splitter
12210 adds a clobber of the condition code register. Drop "cc"
12211 attribute. Add new patterns to match output of
12213 (sez): Remove unused pattern.
12215 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
12218 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
12221 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
12224 * config/aarch64/constraints.md (Utq): Require the address to
12225 be valid for both the element mode and for V2DImode.
12227 2021-04-28 Jakub Jelinek <jakub@redhat.com>
12228 Tobias Burnus <tobias@codesourcery.com>
12230 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
12231 * gcc.c (process_command): New variable.
12232 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
12233 set it if -foffload is defaulted.
12234 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
12235 (compile_offload_image): If OFFLOAD_DEFAULTED and
12236 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
12237 if corresponding mkoffload can't be found.
12238 (compile_images_for_offload_targets): Likewise. Free and clear
12239 offload_names if no valid offload is found.
12240 * config.in: Regenerate.
12241 * configure: Regenerate.
12243 2021-04-28 Richard Biener <rguenther@suse.de>
12245 PR tree-optimization/100292
12246 * tree-vect-generic.c (expand_vector_condition): Do not fold
12249 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
12251 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
12252 * config/rs6000/aix64.opt (m64): New.
12255 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
12257 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
12258 (index_term_p): Handle ASHIFT too.
12260 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
12262 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
12263 (sync_lock_test_and_set<mode>): Adjust accordingly.
12264 (sync_lock_release<mode>): Likewise.
12266 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
12268 * config/vax/vax-protos.h (adjacent_operands_p): Remove
12270 * config/vax/vax.c (adjacent_operands_p): Remove.
12272 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
12274 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
12275 through to the non-conditional execution case if getting the
12276 condition for conditional execution has failed.
12278 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
12280 PR middle-end/100284
12281 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
12282 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
12283 than asserting on it.
12285 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
12287 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
12288 with TARGET_AIX_OS.
12290 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
12293 * calls.c (precompute_register_parameters): Additionally test
12294 targetm.precompute_tls_p to pre-compute argument.
12295 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
12296 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
12297 * target.def (precompute_tls_p): New.
12298 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
12299 * doc/tm.texi: Regenerated.
12301 2021-04-27 Jakub Jelinek <jakub@redhat.com>
12304 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
12305 back to HOST_WIDE_INT.
12307 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
12310 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
12311 memory alignment for the outer mode.
12313 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
12315 PR middle-end/90773
12316 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
12317 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
12319 2021-04-27 Alex Coplan <alex.coplan@arm.com>
12322 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
12323 with negative immediates: ensure we expand cbranchsi4_scratch
12324 correctly and ensure we satisfy its constraints.
12325 * config/arm/sync.md
12326 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
12327 attempt to tie two output operands together with constraints;
12328 collapse two alternatives.
12329 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
12330 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
12332 2021-04-27 Jakub Jelinek <jakub@redhat.com>
12335 * config/aarch64/predicates.md (aarch64_sub_immediate,
12336 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
12337 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
12338 * config/aarch64/aarch64.c (aarch64_print_operand,
12339 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
12341 2021-04-27 Jakub Jelinek <jakub@redhat.com>
12343 PR tree-optimization/100239
12344 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
12345 permutations with all indices from the first zero element as vec_shl.
12347 2021-04-27 Jakub Jelinek <jakub@redhat.com>
12349 PR rtl-optimization/100254
12350 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
12351 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
12353 2021-04-27 Richard Biener <rguenther@suse.de>
12355 PR tree-optimization/99912
12356 * passes.def: Add comment about new TODO_remove_unused_locals.
12357 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
12360 2021-04-27 Richard Biener <rguenther@suse.de>
12362 PR tree-optimization/99912
12363 * passes.def (pass_all_optimizations): Add pass_dse before
12364 the first pass_dce, move the first pass_dse before the
12365 pass_dce following pass_pre.
12367 2021-04-27 Jakub Jelinek <jakub@redhat.com>
12369 PR tree-optimization/95527
12370 * generic-match-head.c: Include tm.h.
12371 * gimple-match-head.c: Include tm.h.
12372 * match.pd (CLZ == INTEGER_CST): Don't use
12373 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
12374 if clz == CFN_CLZ. Add missing val declaration.
12375 (CTZ cmp CST): New simplifications.
12377 2021-04-27 Jakub Jelinek <jakub@redhat.com>
12379 PR tree-optimization/96696
12380 * expr.c (expand_expr_divmod): New function.
12381 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
12382 divisions. Formatting fixes.
12383 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
12386 2021-04-27 Martin Jambor <mjambor@suse.cz>
12389 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
12390 If removing a call statement LHS SSA name, release it.
12392 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
12395 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
12396 is valid before including it in the mask.
12398 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
12401 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
12404 2021-04-27 Richard Biener <rguenther@suse.de>
12406 PR tree-optimization/100051
12407 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
12408 disambiguator based on access size vs. decl size.
12410 2021-04-27 Richard Biener <rguenther@suse.de>
12412 PR tree-optimization/100278
12413 * tree-ssa-pre.c (compute_avail): Give up when we cannot
12414 adjust TBAA beacuse of mismatching bases.
12416 2021-04-27 Jakub Jelinek <jakub@redhat.com>
12419 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
12420 For any_rotate define_insn_split and following splitters, use
12421 SWI iterator instead of SWI48.
12423 2021-04-27 Richard Biener <rguenther@suse.de>
12425 PR tree-optimization/99776
12426 * match.pd (bit_field_ref (ctor)): Relax element extract
12427 type compatibility checks.
12429 2021-04-27 Cui,Lili <lili.cui@intel.com>
12431 * common/config/i386/i386-common.c (processor_names):
12432 Sync processor_names with processor_type.
12433 * config/i386/i386-options.c (processor_cost_table):
12434 Sync processor_cost_table with processor_type.
12436 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
12438 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
12439 (irange::set): Call irange_set_1bit_anti_range for handling all
12440 1-bit ranges. Fall through on ~[MIN,MAX].
12442 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
12444 * value-range.cc (irange::legacy_num_pairs): Remove.
12445 (irange::invert): Change gcc_assert to gcc_checking_assert.
12446 * value-range.h (irange::num_pairs): Adjust for a cached
12447 num_pairs(). Also, rename all gcc_assert's to
12448 gcc_checking_assert's.
12450 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
12452 * value-range.cc (irange::operator=): Set m_kind.
12453 (irange::copy_to_legacy): Handle varying and undefined sources
12454 as a legacy copy since they can be easily copied.
12455 (irange::irange_set): Set m_kind.
12456 (irange::irange_set_anti_range): Same.
12457 (irange::set): Rename normalize_min_max to normalize_kind.
12458 (irange::verify_range): Adjust for multi-ranges having the
12460 (irange::irange_union): Set m_kind.
12461 (irange::irange_intersect): Same.
12462 (irange::invert): Same.
12463 * value-range.h (irange::kind): Always return m_kind.
12464 (irange::varying_p): Rename to...
12465 (irange::varying_comptaible_p): ...this.
12466 (irange::undefined_p): Only look at m_kind.
12467 (irange::irange): Always set VR_UNDEFINED if applicable.
12468 (irange::set_undefined): Always set VR_UNDEFINED.
12469 (irange::set_varying): Always set m_kind to VR_VARYING.
12470 (irange::normalize_min_max): Rename to...
12471 (irange::normalize_kind): ...this.
12473 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
12475 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
12476 Adjust for constant_p including varying_p.
12477 * tree-vrp.c (vrp_prop::finalize): Same.
12478 (determine_value_range): Same.
12479 * vr-values.c (vr_values::range_of_expr): Same.
12480 * value-range.cc (irange::symbolic_p): Do not check varying_p.
12481 (irange::constant_p): Same.
12483 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
12485 * value-range.cc (irange::legacy_lower_bound): Replace
12486 !undefined_p check with num_ranges > 0.
12487 (irange::legacy_upper_bound): Same.
12488 * value-range.h (irange::type): Same.
12489 (irange::lower_bound): Same.
12490 (irange::upper_bound): Same.
12492 2021-04-26 Richard Biener <rguenther@suse.de>
12494 PR tree-optimization/99956
12495 * gimple-loop-interchange.cc (compute_access_stride):
12496 Try instantiating the access in a shallower loop nest
12497 if instantiating failed.
12498 (compute_access_strides): Pass adjustable loop_nest
12499 to compute_access_stride.
12501 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
12503 * doc/sourcebuild.texi (arm_cmse_hw): Document.
12505 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12507 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
12509 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
12510 Nathan Sidwell <nathan@codesourcery.com>
12511 Tom de Vries <vries@codesourcery.com>
12512 Julian Brown <julian@codesourcery.com>
12513 Kwok Cheung Yeung <kcy@codesourcery.com>
12515 * omp-offload.c (oacc_validate_dims): Implement
12516 '-Wopenacc-parallelism'.
12517 * doc/invoke.texi (-Wopenacc-parallelism): Document.
12519 2021-04-26 Richard Biener <rguenther@suse.de>
12521 * tree-cfg.h (gimplify_build1): Remove.
12522 (gimplify_build2): Likewise.
12523 (gimplify_build3): Likewise.
12524 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
12525 (gimplify_build2): Likewise.
12526 (gimplify_build3): Likewise.
12527 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
12529 (gimplify_build2): Likewise.
12530 (gimplify_build3): Likewise.
12531 (tree_vec_extract): Use resimplify with following SSA edges.
12532 (expand_vector_parallel): Avoid passing NULL size/bitpos
12533 to tree_vec_extract.
12534 * expr.c (store_constructor): Deal with zero-element CTORs.
12535 * match.pd (bit_field_ref <vector CTOR>): Make sure to
12536 produce vector constants when possible.
12538 2021-04-26 Richard Biener <rguenther@suse.de>
12540 * tree-complex.c: Include gimple-fold.h.
12541 (expand_complex_addition): Use gimple_build.
12542 (expand_complex_multiplication_components): Likewise.
12543 (expand_complex_multiplication): Likewise.
12544 (expand_complex_div_straight): Likewise.
12545 (expand_complex_div_wide): Likewise.
12546 (expand_complex_division): Likewise.
12547 (expand_complex_conjugate): Likewise.
12548 (expand_complex_comparison): Likewise.
12550 2021-04-26 Richard Biener <rguenther@suse.de>
12552 * tree-ssa-phiopt.c (two_value_replacement): Remove use
12553 of legacy gimplify_buildN API.
12555 2021-04-26 Richard Biener <rguenther@suse.de>
12557 PR tree-optimization/99473
12558 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
12561 2021-04-26 Richard Biener <rguenther@suse.de>
12563 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
12564 Use replace_call_with_value.
12566 2021-04-26 Richard Biener <rguenther@suse.de>
12568 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
12569 (update_gimple_call): Likewise.
12570 (update_call_from_tree): Likewise.
12571 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
12572 (valid_gimple_call_p): Likewise.
12573 (move_ssa_defining_stmt_for_defs): Likewise.
12574 (finish_update_gimple_call): Likewise.
12575 (update_gimple_call): Likewise.
12576 (update_call_from_tree): Likewise.
12577 (propagate_tree_value_into_stmt): Use replace_call_with_value.
12578 * gimple-fold.h (update_gimple_call): Declare.
12579 * gimple-fold.c (valid_gimple_rhs_p): Move here from
12580 tree-ssa-propagate.c.
12581 (update_gimple_call): Likewise.
12582 (valid_gimple_call_p): Likewise.
12583 (finish_update_gimple_call): Likewise, and simplify.
12584 (gimplify_and_update_call_from_tree): Implement
12585 update_call_from_tree functionality, avoid excessive
12586 push/pop_gimplify_context.
12587 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
12588 (gimple_fold_call): Likewise.
12589 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
12590 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
12591 (pass_fold_builtins::execute): Likewise.
12592 (optimize_stack_restore): Use replace_call_with_value.
12593 * tree-cfg.c (fold_loop_internal_call): Likewise.
12594 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
12595 only gimplify_and_update_call_from_tree.
12596 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
12597 (handle_builtin_strchr): Likewise.
12598 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
12600 2021-04-26 Jakub Jelinek <jakub@redhat.com>
12603 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
12604 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
12607 2021-04-25 liuhongt <hongtao.liu@intel.com>
12610 * config/i386/i386-builtin.def (BDESC): Change the icode of
12611 the following builtins to CODE_FOR_nothing.
12612 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
12613 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
12614 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
12615 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
12616 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
12617 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
12618 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
12619 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
12620 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
12621 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
12622 (sse2_eq<mode>3): Ditto.
12623 (sse4_1_eqv2di3): Ditto.
12624 (sse2_gt<mode>3): Rename to ..
12625 (*sse2_gt<mode>3): .. this.
12627 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
12630 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
12633 * config/darwin.c (darwin_binds_local_p): Assume that any
12634 public symbol might be interposed for PIC code. Update function
12635 header comment to reflect current Darwin capability.
12637 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
12640 * config/darwin.c (darwin_binds_local_p): Assume that any
12641 public symbol might be interposed for PIC code. Update function
12642 header comment to reflect current Darwin capability.
12644 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
12646 * doc/sourcebuild.texi: Document no-opts and any-opts target
12649 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
12651 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
12653 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
12655 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
12657 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
12660 * config/i386/i386-options.c (ix86_option_override_internal):
12661 Error out when -m96bit-long-double is used with 64bit targets.
12662 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
12664 2021-04-23 Martin Liska <mliska@suse.cz>
12666 * lto-wrapper.c: Remove FIXME about usage of
12667 hardware_concurrency. The function is not on par with
12670 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
12673 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
12674 Copy operand 3 to operand 4. Use sse_reg_operand
12675 as operand 3 predicate.
12676 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
12677 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
12678 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
12679 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
12680 Copy operand 1 to operand 0.
12681 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
12682 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
12683 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
12685 2021-04-23 Alex Coplan <alex.coplan@arm.com>
12687 PR rtl-optimization/100230
12688 * early-remat.c (early_remat::sort_candidates): Use delete[]
12689 instead of delete for array allocated with new[].
12691 2021-04-23 Richard Biener <rguenther@suse.de>
12693 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
12694 (capture_info::capture_info): Likewise.
12695 (capture_info::walk_match): Likewise.
12696 (expr::gen_transform): Likewise.
12697 (dt_simplify::gen_1): Likewise.
12698 * gimple-match-head.c (maybe_resimplify_conditional_op):
12699 Remove VEC_COND_EXPR special-casing.
12700 (gimple_simplify): Likewise.
12701 * gimple.c (gimple_could_trap_p_1): Adjust.
12702 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
12703 to participate in PRE.
12705 2021-04-23 Richard Biener <rguenther@suse.de>
12707 * cfganal.c (connect_infinite_loops_to_exit): First call
12708 add_noreturn_fake_exit_edges.
12709 * ipa-sra.c (process_scan_results): Do not call the now redundant
12710 add_noreturn_fake_exit_edges.
12711 * predict.c (tree_estimate_probability): Likewise.
12712 (rebuild_frequencies): Likewise.
12713 * store-motion.c (one_store_motion_pass): Likewise.
12715 2021-04-23 Richard Biener <rguenther@suse.de>
12717 PR tree-optimization/100222
12718 * predict.c (pass_profile::execute): Remove redundant call to
12719 mark_irreducible_loops.
12720 (report_predictor_hitrates): Likewise.
12722 2021-04-23 Richard Biener <rguenther@suse.de>
12724 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
12725 valid_gimple_rhs_p by instead gimplifying to one.
12727 2021-04-23 Richard Biener <rguenther@suse.de>
12729 PR tree-optimization/99971
12730 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
12731 Always use TBAA for loads.
12733 2021-04-23 liuhongt <hongtao.liu@intel.com>
12736 * config/i386/i386-options.c (ix86_option_override_internal):
12737 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
12738 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
12739 by target attribute.
12741 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
12743 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
12745 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
12747 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
12749 * config.gcc (powerpc-ibm-aix6.*): Remove.
12750 * config/rs6000/aix61.h: Delete.
12752 2021-04-22 Martin Liska <mliska@suse.cz>
12754 PR testsuite/100159
12755 PR testsuite/100192
12756 * builtins.c (expand_builtin): Fix typos and missing comments.
12757 * dwarf2out.c (gen_subprogram_die): Likewise.
12758 (gen_struct_or_union_type_die): Likewise.
12760 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
12763 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
12764 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
12766 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
12768 * config/i386/darwin.h (TARGET_64BIT): Remove definition
12769 based on TARGET_ISA_64BIT.
12770 (TARGET_64BIT_P): Remove definition based on
12771 TARGET_ISA_64BIT_P().
12773 2021-04-21 Martin Liska <mliska@suse.cz>
12776 2021-04-21 Martin Liska <mliska@suse.cz>
12778 * lto-wrapper.c (cpuset_popcount): Remove.
12779 (init_num_threads): Remove and use hardware_concurrency.
12781 2021-04-21 Martin Liska <mliska@suse.cz>
12784 * main.c (main): Call toplev::finalize in CHECKING_P mode.
12785 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
12786 when incremental LTO linking happens.
12788 2021-04-21 Martin Liska <mliska@suse.cz>
12790 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
12791 makeserver cannot be detected, then use -flto=N fallback.
12793 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
12795 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
12796 default to yes for aarch64-linux-gnu.
12797 * configure: Regenerate.
12799 2021-04-21 Martin Liska <mliska@suse.cz>
12801 * lto-wrapper.c (cpuset_popcount): Remove.
12802 (init_num_threads): Remove and use hardware_concurrency.
12804 2021-04-21 Martin Liska <mliska@suse.cz>
12806 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
12807 which remains to be '(... || 0)' and clang complains about it.
12808 * dwarf2out.c (AT_vms_delta): Declare conditionally.
12809 (add_AT_vms_delta): Likewise.
12810 * tree.c (fld_simplified_type): Use rather more common pattern
12811 for disabling of something (#if 0).
12812 (get_tree_code_name): Likewise.
12813 (verify_type_variant): Likewise.
12815 2021-04-21 Martin Liska <mliska@suse.cz>
12817 * config/i386/i386-expand.c (decide_alignment): Use newly named
12818 macro TARGET_CPU_P.
12819 * config/i386/i386.c (ix86_decompose_address): Likewise.
12820 (ix86_address_cost): Likewise.
12821 (ix86_lea_outperforms): Likewise.
12822 (ix86_avoid_lea_for_addr): Likewise.
12823 (ix86_add_stmt_cost): Likewise.
12824 * config/i386/i386.h (TARGET_*): Remove.
12825 (TARGET_CPU_P): New macro.
12826 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
12827 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
12828 (swap_top_of_ready_list): Likewise.
12829 (ix86_atom_sched_reorder): Likewise.
12830 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
12831 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
12833 2021-04-21 Martin Liska <mliska@suse.cz>
12835 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
12837 (SET_TARGET_NO_SAHF): Likewise.
12838 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
12839 (SET_TARGET_PREFETCH_SSE): Likewise.
12840 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
12841 (SET_TARGET_NO_TUNE): Likewise.
12842 (TARGET_EXPLICIT_NO_80387_P): Likewise.
12843 (SET_TARGET_NO_80387): Likewise.
12845 * config/i386/i386.h (TARGET_*): Remove.
12846 * opth-gen.awk: Generate new used macros.
12848 2021-04-21 Martin Liska <mliska@suse.cz>
12850 * config/i386/i386.h (PTA_*): Remove.
12851 (enum pta_flag): New.
12852 (DEF_PTA): Generate PTA_* values from i386-isa.def.
12853 * config/i386/i386-isa.def: New file.
12855 2021-04-21 Alex Coplan <alex.coplan@arm.com>
12858 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
12859 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
12860 jump table targets.
12862 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
12864 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
12865 x86_64-*-* targets.
12866 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
12868 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
12869 (ix86_handle_option): Handle -mmwait.
12870 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
12871 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
12872 __builtin_ia32_monitor and __builtin_ia32_mwait.
12873 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
12874 (ix86_valid_target_attribute_inner_p): Likewise.
12875 (ix86_option_override_internal): Enable mwait/monitor
12876 instructions for -msse3.
12877 * config/i386/i386.h (TARGET_MWAIT): New.
12878 (TARGET_MWAIT_P): Likewise.
12879 * config/i386/i386.opt: Add -mmwait.
12880 * config/i386/mwaitintrin.h: New file.
12881 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
12882 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
12884 (@sse3_monitor_<mode>): Likewise.
12885 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
12886 * doc/extend.texi: Document mwait target attribute.
12887 * doc/invoke.texi: Document -mmwait.
12889 2021-04-21 Martin Liska <mliska@suse.cz>
12891 * config/i386/i386-options.c (DEF_ENUM): Remove it.
12892 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
12893 * config/i386/stringop.def (DEF_ENUM): Likewise.
12895 2021-04-21 Martin Liska <mliska@suse.cz>
12897 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
12898 of print_generic_expr.
12900 2021-04-21 Jakub Jelinek <jakub@redhat.com>
12902 PR rtl-optimization/100148
12903 * cprop.c (constprop_register): Use next_nondebug_insn instead of
12906 2021-04-21 Martin Liska <mliska@suse.cz>
12909 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
12910 free_dominance_info calls.
12912 2021-04-21 Richard Biener <rguenther@suse.de>
12914 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
12915 parameter (and assume it to be false).
12916 (fold_gimple_assign): Adjust, remove all callers of
12917 maybe_fold_reference calling it with is_lhs true.
12918 (gimple_fold_call): Likewise.
12919 (fold_stmt_1): Likewise.
12921 2021-04-21 Richard Biener <rguenther@suse.de>
12923 * fold-const.c (pedantic_non_lvalue_loc): Remove.
12924 (fold_binary_loc): Adjust.
12925 (fold_ternary_loc): Likewise.
12927 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
12929 PR middle-end/100130
12930 * varasm.c (get_block_for_decl): Make sure that any use of the
12931 retain attribute matches the section's retain flag.
12932 (switch_to_section): Check for retain mismatches even when
12933 changing sections, but do not warn if the given decl is the
12934 section's named.decl.
12935 (output_object_block): Pass the first decl in the block (if any)
12936 to switch_to_section.
12938 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
12940 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12941 __CRC32__ for -mcrc32.
12942 * config/i386/i386-options.c (ix86_option_override_internal):
12943 Enable crc32 instruction for -msse4.2.
12944 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
12946 (sse4_2_crc32di): Likewise.
12947 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
12950 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
12953 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
12956 2021-04-20 Martin Liska <mliska@suse.cz>
12958 * doc/invoke.texi: Fix typo.
12959 * params.opt: Likewise.
12961 2021-04-20 Martin Liska <mliska@suse.cz>
12963 * doc/invoke.texi: Document new param.
12965 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
12967 PR tree-optimization/100081
12968 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
12969 rather than gori_compute_cache.
12970 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
12971 (range_def_chain::m_logical_depth): New member.
12972 (range_def_chain::range_def_chain): Initialize m_logical_depth.
12973 (range_def_chain::get_def_chain): Don't build defchains through more
12974 than LOGICAL_LIMIT logical expressions.
12975 * params.opt (param_ranger_logical_depth): New.
12977 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
12980 * config/arm/arm.c (arm_configure_build_target): Do not strip
12981 extended FPU/SIMD feature bits from the target ISA when -mfpu
12982 is specified (partial revert of r11-8168).
12984 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
12986 * params.opt (-param=openacc-kernels=): Add.
12987 * omp-oacc-kernels-decompose.cc
12988 (pass_omp_oacc_kernels_decompose::gate): Use it.
12989 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
12990 (--param): ... here, 'openacc-kernels'.
12992 2021-04-19 Martin Liska <mliska@suse.cz>
12995 * gengtype.c (finish_root_table): Align function arguments
12996 in between declaration and definition.
12998 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
13000 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
13001 frames larger than the SEH maximum frame size.
13003 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
13005 PR rtl-optimization/99927
13006 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
13007 is dead, just drop it.
13009 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
13012 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
13013 * doc/tm.texi: Regenerate.
13014 * doc/tm.texi.in (D language and ABI): Add @hook for
13015 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
13017 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
13019 * config/darwin-d.c (darwin_d_handle_target_object_format): New
13021 (darwin_d_register_target_info): New function.
13022 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13023 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
13025 (dragonfly_d_register_target_info): New function.
13026 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13027 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
13029 (freebsd_d_register_target_info): New function.
13030 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13031 * config/glibc-d.c (glibc_d_handle_target_object_format): New
13033 (glibc_d_register_target_info): New function.
13034 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13035 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
13037 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
13038 as handler for objectFormat key.
13039 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
13041 (winnt_d_register_target_info): New function.
13042 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13043 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
13045 (netbsd_d_register_target_info): New function.
13046 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13047 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
13049 (openbsd_d_register_target_info): New function.
13050 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13051 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
13052 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
13053 handler for objectFormat key.
13054 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
13056 (rs6000_d_register_target_info): Add
13057 rs6000_d_handle_target_object_format as handler for objectFormat key.
13058 * config/sol2-d.c (solaris_d_handle_target_object_format): New
13060 (solaris_d_register_target_info): New function.
13061 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13063 2021-04-16 Jakub Jelinek <jakub@redhat.com>
13066 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
13067 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
13069 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
13070 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
13071 the old and new alignment after applying MIN/MAX to it is different.
13073 2021-04-16 Tamar Christina <tamar.christina@arm.com>
13076 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
13077 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
13079 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
13081 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
13083 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
13084 this section and its subsections.
13086 2021-04-16 Jakub Jelinek <jakub@redhat.com>
13089 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
13090 define_insn patterns.
13092 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
13094 PR rtl-optimization/98689
13095 * reg-notes.def (UNTYPED_CALL): New note.
13096 * combine.c (distribute_notes): Handle it.
13097 * emit-rtl.c (try_split): Likewise.
13098 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
13099 that calls with the note implicitly set all return value registers.
13100 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
13103 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
13105 PR rtl-optimization/99596
13106 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
13107 register accesses for const calls. Assume that pure functions
13108 can only read from global registers. Ignore cases in which
13109 the stack pointer has been marked global.
13111 2021-04-16 Jakub Jelinek <jakub@redhat.com>
13114 * tree-vect-loop.c (vect_transform_loop): Don't remove just
13115 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
13116 them by their last argument.
13118 2021-04-15 Martin Liska <mliska@suse.cz>
13120 * doc/invoke.texi: Other params don't use it, remove it.
13122 2021-04-15 Richard Biener <rguenther@suse.de>
13124 * gimple-builder.h: Add deprecation note.
13126 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
13129 * attribs.h (restrict_type_identity_attributes_to): Declare.
13130 * attribs.c (restrict_type_identity_attributes_to): New function.
13132 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
13135 * attribs.h (affects_type_identity_attributes): Declare.
13136 * attribs.c (remove_attributes_matching): New function.
13137 (affects_type_identity_attributes): Likewise.
13139 2021-04-15 Jakub Jelinek <jakub@redhat.com>
13142 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
13143 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
13144 ZERO_EXTEND, SIGN_EXTEND or AND.
13146 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
13148 PR rtl-optimization/99929
13149 * rtl.h (same_vector_encodings_p): New function.
13150 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
13151 * cselib.c (rtx_equal_for_cselib_1): Likewise.
13152 * jump.c (rtx_renumbered_equal_p): Likewise.
13153 * lra-constraints.c (operands_match_p): Likewise.
13154 * reload.c (operands_match_p): Likewise.
13155 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
13157 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
13159 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
13160 more information about variable-length CONST_VECTORs.
13162 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
13164 PR rtl-optimization/100066
13165 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
13166 ordered modes when choosing splitting mode for hard reg.
13168 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
13171 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
13173 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
13175 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
13177 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
13178 for mask operand types.
13179 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
13180 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
13182 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
13184 * config/s390/s390.c (s390_const_operand_ok): Check the new
13185 operand types and generate a list of valid values.
13187 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
13189 * doc/tm.texi: Regenerate.
13190 * doc/tm.texi.in (D language and ABI): Add @hook for
13191 TARGET_D_REGISTER_OS_TARGET_INFO.
13193 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
13195 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
13197 (aarch64_d_register_target_info): New function.
13198 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
13200 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
13202 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
13203 (arm_d_register_target_info): New function.
13204 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
13205 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13206 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
13207 (ix86_d_register_target_info): New function.
13208 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
13209 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13210 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
13211 (mips_d_register_target_info): New function.
13212 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
13213 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13214 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
13215 (pa_d_register_target_info): New function.
13216 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
13217 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13218 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
13220 (riscv_d_register_target_info): New function.
13221 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
13222 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13223 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
13225 (rs6000_d_register_target_info): New function.
13226 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
13228 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13229 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
13230 (s390_d_register_target_info): New function.
13231 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
13232 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13233 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
13235 (sparc_d_register_target_info): New function.
13236 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
13237 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13238 * doc/tm.texi: Regenerate.
13239 * doc/tm.texi.in (D language and ABI): Add @hook for
13240 TARGET_D_REGISTER_CPU_TARGET_INFO.
13242 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
13244 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
13245 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
13246 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
13247 * doc/tm.texi: Regenerate.
13248 * doc/tm.texi.in (D language and ABI): Add @hook for
13249 TARGET_D_HAS_STDCALL_CONVENTION.
13251 2021-04-14 Richard Biener <rguenther@suse.de>
13253 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
13254 VEC_COND_EXPRs have a gimple_val condition.
13255 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
13256 can no longer have a GENERIC condition.
13258 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
13261 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
13262 from the isa_delta when -mfpu has been used.
13263 (arm_options_perform_arch_sanity_checks): It's the architecture that
13264 lacks an FPU not the processor.
13266 2021-04-13 Richard Biener <rguenther@suse.de>
13268 PR tree-optimization/100053
13269 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
13270 not use optimistic dominance queries for backedges to validate
13272 (dominated_by_p_w_unex): Add parameter to ignore executable
13273 state on backedges.
13274 (rpo_elim::eliminate_avail): Adjust.
13276 2021-04-13 Jakub Jelinek <jakub@redhat.com>
13279 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
13280 *aarch64_bfxilsi_extrdi): New define_insn patterns.
13282 2021-04-13 Jakub Jelinek <jakub@redhat.com>
13285 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
13286 outermode, return NULL if the result doesn't encode back to the
13287 original byte sequence.
13288 (simplify_gen_subreg): Don't create SUBREGs from constants to
13289 MODE_COMPOSITE_P outermode.
13291 2021-04-12 Jakub Jelinek <jakub@redhat.com>
13293 PR rtl-optimization/99905
13294 * combine.c (expand_compound_operation): If pos + len > modewidth,
13295 perform the right shift by pos in inner_mode and then convert to mode,
13296 instead of trying to simplify a shift of rtx with inner_mode by pos
13297 as if it was a shift in mode.
13299 2021-04-12 Jakub Jelinek <jakub@redhat.com>
13302 * combine.c (simplify_and_const_int_1): Don't optimize varop
13303 away if it has side-effects.
13305 2021-04-12 Martin Liska <mliska@suse.cz>
13307 * doc/extend.texi: Escape @smallexample content.
13309 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
13311 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
13312 alternative in order to load a DFP zero.
13314 2021-04-12 Martin Liska <mliska@suse.cz>
13316 * doc/extend.texi: Be more precise in documentation
13317 of symver attribute.
13319 2021-04-12 Martin Liska <mliska@suse.cz>
13322 * gimplify.c (gimplify_expr): Right now, we unpoison all
13323 variables before a goto <dest>. We should not do it if we are
13326 2021-04-12 Cui,Lili <lili.cui@intel.com>
13328 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
13330 * common/config/i386/i386-common.c (processor_names): Add
13332 (processor_alias_table): Add rocketlake.
13333 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
13334 INTEL_COREI7_ROCKETLAKE.
13335 * config.gcc: Add -march=rocketlake.
13336 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13338 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
13339 (processor_cost_table): Add rocketlake cost.
13340 * config/i386/i386.h (ix86_size_cost) : Define
13342 (processor_type) : Add PROCESSOR_ROCKETLAKE.
13343 (PTA_ROCKETLAKE): Ditto.
13344 * doc/extend.texi: Add rocketlake.
13345 * doc/invoke.texi: Add rocketlake.
13347 2021-04-12 Cui,Lili <lili.cui@intel.com>
13349 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
13350 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
13351 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
13352 * doc/invoke.texi: Change alderlake ISA list.
13354 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
13356 PR middle-end/98088
13357 * omp-expand.c (expand_oacc_collapse_init): Update condition in
13360 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
13363 * config/i386/serializeintrin.h (_serialize): Defined as macro.
13365 2021-04-10 Jakub Jelinek <jakub@redhat.com>
13368 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
13369 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
13371 2021-04-10 Jakub Jelinek <jakub@redhat.com>
13373 PR middle-end/99989
13374 * gimple-ssa-warn-alloca.c
13375 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
13376 0 with integer precision unconditionally.
13378 2021-04-10 Jakub Jelinek <jakub@redhat.com>
13380 PR rtl-optimization/98601
13381 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
13382 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
13383 unaligned_mems handle VOIDmode like BLKmode.
13385 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
13388 * tree.c (free_lang_data_in_decl): Do not release body of
13389 declare_variant_alt.
13391 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
13393 * config/aarch64/aarch64.c (aarch64_option_restore): If the
13394 architecture was specified explicitly and the tuning wasn't,
13395 tune for the architecture rather than the configured default CPU.
13397 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
13399 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
13400 as the temporary register.
13402 2021-04-09 Martin Liska <mliska@suse.cz>
13404 * doc/extend.texi: Move non-target attributes on the top level.
13406 2021-04-09 Martin Liska <mliska@suse.cz>
13408 * doc/invoke.texi: Document minimum and maximum value of the
13409 argument for both supported compression algorithms.
13411 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
13413 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
13414 TLS BSS before TLS data.
13415 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
13417 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
13419 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
13421 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
13423 * match.pd: Extend vec_cond folds to handle shifts.
13425 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
13427 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
13430 2021-04-08 Alex Coplan <alex.coplan@arm.com>
13433 * config/arm/iterators.md (MVE_vecs): New.
13434 (V_elem): Also handle V2DF.
13435 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
13436 (*mve_vdup<mode>): ... this. Remove second alternative since
13437 vec_duplicate of const_int is not canonical RTL, and we don't
13438 want to match symbol_refs.
13439 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
13441 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
13443 * fold-const.c (fold_single_bit_test): Fix typo.
13444 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
13447 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
13449 PR tree-optimization/97513
13450 * tree-vect-slp.c (vect_add_slp_permutation): New function,
13452 (vectorizable_slp_permutation): ...here. Detect cases in which
13453 all VEC_PERM_EXPRs are guaranteed to have the same stepped
13454 permute vector and only generate one permute vector for that case.
13455 Extend that case to handle variable-length vectors.
13457 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
13459 PR tree-optimization/99873
13460 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
13461 (vect_build_slp_instance): Don't split store groups that could
13462 use IFN_STORE_LANES.
13464 2021-04-07 Jakub Jelinek <jakub@redhat.com>
13467 * varasm.c (output_constant_pool_contents): Don't strip name encoding
13468 from XSTR (desc->sym, 0) or from label before passing those to
13471 2021-04-07 Richard Biener <rguenther@suse.de>
13473 PR tree-optimization/99954
13474 * tree-loop-distribution.c: Include tree-affine.h.
13475 (generate_memcpy_builtin): Try using tree-affine to prove
13477 (loop_distribution::classify_builtin_ldst): Always classify
13480 2021-04-07 Richard Biener <rguenther@suse.de>
13482 PR tree-optimization/99947
13483 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
13484 steps vector to avoid pushing elements from the reallocated
13487 2021-04-07 Richard Biener <rguenther@suse.de>
13489 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
13490 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
13492 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
13494 (debug_vn_reference_ops): New.
13496 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
13498 PR tree-optimization/98736
13499 * tree-loop-distribution.c
13500 * (loop_distribution::bb_top_order_init):
13501 Compute RPO with programing order preserved by calling function
13502 rev_post_order_and_mark_dfs_back_seme.
13504 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
13507 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
13508 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
13510 (process_bb_lives): Don't update biggest mode of hard reg for
13511 implicit in multi-register group. Use the new functions for
13512 updating dead_set and unused_set by register notes.
13514 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
13516 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
13519 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
13521 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
13522 (skylake_memset): Likewise.
13523 (skylake_cost): Change CLEAR_RATIO to 17.
13524 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
13525 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
13526 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
13528 2021-04-06 Richard Biener <rguenther@suse.de>
13530 PR tree-optimization/99880
13531 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
13532 set vectorized defs of relevant PHIs.
13534 2021-04-06 Richard Biener <rguenther@suse.de>
13536 PR tree-optimization/99924
13537 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
13538 nodes w/o scalar stmts as visited.
13540 2021-04-06 Alex Coplan <alex.coplan@arm.com>
13543 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
13544 PCS for [su]fix_optab.
13546 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
13548 * config/darwin.c (machopic_legitimize_pic_address): Check
13549 that the current pic register is one of the hard reg set
13550 before setting liveness.
13552 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
13554 * config/darwin.c (machopic_legitimize_pic_address): Fix
13555 whitespace, remove unused code.
13557 2021-04-03 Jakub Jelinek <jakub@redhat.com>
13559 PR tree-optimization/99882
13560 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
13563 2021-04-03 Jakub Jelinek <jakub@redhat.com>
13565 PR rtl-optimization/99863
13566 * dse.c (replace_read): Drop regs_live argument. Instead of
13567 regs_live, use store_insn->fixed_regs_live if non-NULL,
13568 otherwise punt if insns sequence clobbers or sets any hard
13571 2021-04-03 Jakub Jelinek <jakub@redhat.com>
13574 * targhooks.h (default_print_patchable_function_entry_1): Declare.
13575 * targhooks.c (default_print_patchable_function_entry_1): New function,
13576 copied from default_print_patchable_function_entry with an added flags
13578 (default_print_patchable_function_entry): Rewritten into a small
13579 wrapper around default_print_patchable_function_entry_1.
13580 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
13582 (rs6000_print_patchable_function_entry): New function.
13584 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
13586 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
13588 2021-04-01 Jason Merrill <jason@redhat.com>
13591 * common.opt: Document v15 and v16.
13593 2021-04-01 Richard Biener <rguenther@suse.de>
13595 PR tree-optimization/99863
13596 * gimplify.c (gimplify_init_constructor): Recompute vector
13599 2021-04-01 Jakub Jelinek <jakub@redhat.com>
13601 * doc/extend.texi (symver attribute): Fix up syntax errors
13604 2021-04-01 Jakub Jelinek <jakub@redhat.com>
13606 PR tree-optimization/96573
13607 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
13608 also pointer types.
13610 2021-04-01 Richard Biener <rguenther@suse.de>
13612 PR tree-optimization/99856
13613 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
13614 precision to vector element precision.
13616 2021-04-01 Martin Jambor <mjambor@suse.cz>
13618 PR tree-optimization/97009
13619 * tree-sra.c (access_or_its_child_written): New function.
13620 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
13623 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
13626 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
13628 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
13631 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
13632 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
13633 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
13634 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
13635 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
13636 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
13638 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
13639 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
13640 (define_attr "prefixed"): Update initializer.
13642 2021-03-31 Jakub Jelinek <jakub@redhat.com>
13645 * dwarf2out.c (debug_ranges_dwo_section): New variable.
13646 (DW_RANGES_IDX_SKELETON): Define.
13647 (struct dw_ranges): Add begin_entry and end_entry members.
13648 (DEBUG_DWO_RNGLISTS_SECTION): Define.
13649 (add_ranges_num): Adjust r initializer for addition of *_entry
13651 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
13652 set idx to DW_RANGES_IDX_SKELETON.
13653 (use_distinct_base_address_for_range): New function.
13654 (index_rnglists): Don't set r->idx if it is equal to
13655 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
13656 r->end_entry for -gsplit-dwarf if those will be needed by
13658 (output_rnglists): Add DWO argument. If true, switch to
13659 debug_ranges_dwo_section rather than debug_ranges_section.
13660 Adjust l1/l2 label indexes. Only output the offset table when
13661 dwo is true and don't include in there the skeleton range
13662 entry if present. For -gsplit-dwarf, skip ranges that belong
13663 to the other rnglists section. Change return type from void
13664 to bool and return true if there are any range entries for
13665 the other section. For dwarf_split_debug_info use
13666 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
13667 entries instead of DW_RLE_start_end, DW_RLE_start_length and
13668 DW_RLE_base_address. Use use_distinct_base_address_for_range.
13669 (init_sections_and_labels): Initialize debug_ranges_dwo_section
13670 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
13671 and range_base_label indexes.
13672 (dwarf2out_finish): Call index_rnglists earlier before finalizing
13673 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
13674 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
13675 with different dwo arguments.
13676 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
13678 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
13680 PR tree-optimization/98268
13681 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
13682 recompute_tree_invariant_for_addr_expr after successfully
13683 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
13685 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
13687 PR tree-optimization/99726
13688 * tree-data-ref.c (create_intersect_range_checks_index): Bail
13689 out if there is more than one access function SCEV for the loop
13692 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
13694 PR rtl-optimization/97141
13695 PR rtl-optimization/98726
13696 * emit-rtl.c (valid_for_const_vector_p): Return true for
13698 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
13699 poly_wide_int instead of a wide_int.
13700 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
13702 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
13703 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
13704 false for CONST_VECTORs that cannot be forced to memory.
13705 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
13706 is too complex to force to memory, build it up from individual
13709 2021-03-31 Jan Hubicka <jh@suse.cz>
13712 * cgraph.c (cgraph_node::release_body): Fix overactive check.
13714 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
13717 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
13720 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
13722 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
13723 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
13725 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
13726 "rep movsb/stosb" only for known sizes.
13727 * config/i386/i386-options.c (processor_cost_table): Use Ice
13728 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
13729 Rapids and Alder Lake.
13730 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
13731 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
13732 (icelake_memset): Likewise.
13733 (icelake_cost): Likewise.
13734 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
13737 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
13740 * config/aarch64/aarch64.c
13741 (aarch64_vectorize_preferred_vector_alignment): Query the size
13742 of the provided SVE vector; do not assume that all SVE vectors
13743 have the same size.
13745 2021-03-31 Jan Hubicka <jh@suse.cz>
13748 * cgraph.c (cgraph_node::release_body): Remove all callers and
13750 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
13751 * cgraphunit.c (cgraph_node::expand): And here.
13753 2021-03-31 Martin Liska <mliska@suse.cz>
13755 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
13756 and one negated condition.
13758 2021-03-31 Jakub Jelinek <jakub@redhat.com>
13759 Richard Sandiford <richard.sandiford@arm.com>
13762 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
13763 constraints on operands[2] and similarly 0 and rk constraints
13764 on operands[1] corresponding to that.
13766 2021-03-31 Jakub Jelinek <jakub@redhat.com>
13769 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
13770 linker doesn't support DWARF sections new in DWARF5.
13771 * config/i386/i386-options.c (ix86_option_override_internal): Default
13772 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
13774 * config.in: Regenerated.
13775 * configure: Regenerated.
13777 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13780 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
13781 available issue_info before using it.
13783 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13786 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
13789 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
13792 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
13793 (altivec_lvsl_reg_<mode>): ... this.
13794 (altivec_lvsr_reg): Change to ...
13795 (altivec_lvsr_reg_<mode>): ... this.
13796 * config/rs6000/predicates.md (vec_set_index_operand): New.
13797 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13798 Enable 32bit variable vec_insert for all TARGET_VSX.
13799 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
13800 Enable 32bit variable vec_insert for p9 and above.
13801 (rs6000_expand_vector_set_var_p8): Rename to ...
13802 (rs6000_expand_vector_set_var_p7): ... this.
13803 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
13805 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
13806 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
13807 gen_altivec_lvsr_reg_di.
13809 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
13812 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
13813 (__rdtscp): Likewise.
13815 2021-03-30 Tamar Christina <tamar.christina@arm.com>
13817 PR tree-optimization/99825
13818 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
13819 Reject non-mult 2 lanes.
13821 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
13824 * config/arm/arm.c (arm_file_start): Fix emission of
13825 Tag_ABI_VFP_args attribute.
13827 2021-03-30 Richard Biener <rguenther@suse.de>
13829 PR tree-optimization/99824
13830 * stor-layout.c (set_min_and_max_values_for_integral_type):
13831 Assert the precision is within the bounds of
13832 WIDE_INT_MAX_PRECISION.
13833 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
13834 the outermost component ref only to lower the access size
13835 and initialize that from the access type.
13837 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
13840 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
13841 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
13843 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
13845 * config/aarch64/aarch64.md
13846 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
13847 attribute to disambiguate between SIMD and FP variants of the
13850 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
13852 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
13853 (analyze_ssa_name_flags): Fix typo in comment.
13855 2021-03-29 Alex Coplan <alex.coplan@arm.com>
13858 * config/aarch64/aarch64-sve-builtins.cc
13859 (function_builder::add_function): Add placeholder_p argument, use
13860 placeholder decls if this is set.
13861 (function_builder::add_unique_function): Instead of conditionally adding
13862 direct overloads, unconditionally add either a direct overload or a
13864 (function_builder::add_overloaded_function): Set placeholder_p if we're
13865 using C++ overloads. Use the obstack for string storage instead
13866 of relying on the tree nodes.
13867 (function_builder::add_overloaded_functions): Don't return early for
13868 m_direct_overloads: we need to add placeholders.
13869 * config/aarch64/aarch64-sve-builtins.h
13870 (function_builder::add_function): Add placeholder_p argument.
13872 2021-03-29 Richard Biener <rguenther@suse.de>
13874 PR tree-optimization/99807
13875 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
13876 assert below VEC_PERM handling.
13878 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13881 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
13882 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
13883 matching const_int 0.
13884 (move_lo_quad_internal_be_<mode>): Likewise.
13885 (move_lo_quad_<mode>): Update for the above.
13886 * config/aarch64/iterators.md (VQ_2E): Delete.
13888 2021-03-29 Jakub Jelinek <jakub@redhat.com>
13890 PR tree-optimization/99777
13891 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
13892 types other than scalar integral types.
13894 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
13896 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
13897 XCOFF TLS reloc decorations.
13899 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
13901 * doc/analyzer.texi (Analyzer Internals): Update link to
13902 "A Memory Model for Static Analysis of C Programs".
13904 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
13906 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
13907 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
13909 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
13910 (rs6000_special_round_type_align): Recursively check innermost first
13913 2021-03-26 Jakub Jelinek <jakub@redhat.com>
13916 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
13917 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
13918 assignment with drap_reg active, queue reg save for hfp with offset 0
13919 and flush queued reg saves. When handling a push with rule18,
13920 defer queueing reg save for hfp and just assert the offset is 0.
13921 (scan_trace): Assert that fde->rule18 is false.
13923 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
13926 * ira-costs.c (record_reg_classes): Put case with
13927 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
13928 * ira.c (ira_setup_alts): Ditto.
13929 * lra-constraints.c (process_alt_operands): Ditto.
13930 * recog.c (asm_operand_ok): Ditto.
13931 * reload.c (find_reloads): Ditto.
13933 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
13935 * config/aarch64/aarch64-protos.h
13936 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
13937 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
13938 * config/aarch64/aarch64.c (generic_addrcost_table): Update
13939 accordingly, using the same costs as for post_modify.
13940 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
13941 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
13942 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
13943 (a64fx_addrcost_table): Likewise.
13944 (neoversev1_addrcost_table): New.
13945 (neoversev1_tunings): Use neoversev1_addrcost_table.
13946 (aarch64_address_cost): Use the new post_modify costs for CImode
13949 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
13951 * config/aarch64/aarch64.opt
13952 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
13953 * doc/invoke.texi: Document it.
13954 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
13955 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
13956 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
13957 (aarch64_vec_issue_info): New structures.
13958 (cpu_vector_cost): Write comments above the variables rather
13960 (cpu_vector_cost::issue_info): New member variable.
13961 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
13962 and tree-ssa-loop-niter.h.
13963 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
13964 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
13965 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
13966 (thunderx3t110_vector_cost): Initialize issue_info to null.
13967 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
13968 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
13969 (neoversev1_vector_cost): Use them.
13970 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
13971 (aarch64_vector_costs::saw_sve_only_op): New member variable.
13972 (aarch64_vector_costs::num_vector_iterations): Likewise.
13973 (aarch64_vector_costs::scalar_ops): Likewise.
13974 (aarch64_vector_costs::advsimd_ops): Likewise.
13975 (aarch64_vector_costs::sve_ops): Likewise.
13976 (aarch64_vector_costs::seen_loads): Likewise.
13977 (aarch64_simd_vec_costs_for_flags): New function.
13978 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
13979 Count the number of predicate operations required by SVE WHILE
13981 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
13982 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
13983 (aarch64_count_ops): Likewise.
13984 (aarch64_add_stmt_cost): Record whether see an SVE operation
13985 that cannot currently be implementing using Advanced SIMD.
13986 Record issue information about the scalar, Advanced SIMD
13987 and (where relevant) SVE versions of a loop.
13988 (aarch64_vec_op_count::dump): New function.
13989 (aarch64_sve_op_count::dump): Likewise.
13990 (aarch64_estimate_min_cycles_per_iter): Likewise.
13991 (aarch64_adjust_body_cost): If issue information is available,
13992 try to compare the issue rates of the various loop implementations
13993 and increase or decrease the vector body cost accordingly.
13995 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
13997 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
13998 Assume a zero cost for induction phis.
14000 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14002 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
14004 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
14005 vector comparisons.
14007 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14009 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
14011 (aarch64_add_stmt_cost): Call it.
14013 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14015 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
14016 New tuning parameter.
14017 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
14018 (aarch64_estimated_sve_vq): New function.
14019 (aarch64_vector_costs::analyzed_vinfo): New member variable.
14020 (aarch64_vector_costs::is_loop): Likewise.
14021 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
14022 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
14023 (aarch64_record_potential_advsimd_unrolling): New function.
14024 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
14025 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
14026 aarch64_analyze_bb_vinfo on the first use of a costs structure.
14027 Detect whether we're vectorizing a loop for SVE that might be
14028 completely unrolled if it used Advanced SIMD instead.
14029 (aarch64_adjust_body_cost_for_latency): New function.
14030 (aarch64_finish_cost): Call it.
14032 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14034 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
14035 (aarch64_init_cost): New function.
14036 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
14037 the default unsigned[3].
14038 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
14039 (TARGET_VECTORIZE_INIT_COST): Override.
14040 (TARGET_VECTORIZE_FINISH_COST): Likewise.
14041 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
14043 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14045 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
14046 (neoversev1_sve_vector_cost): New cost structures.
14047 (neoversev1_vector_cost): Likewise.
14048 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
14050 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14052 * config/aarch64/aarch64-protos.h
14053 (sve_vec_cost::scatter_store_elt_cost): New member variable.
14054 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
14055 accordingly, taking the cost from the cost of a scalar_store.
14056 (a64fx_sve_vector_cost): Likewise.
14057 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
14059 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14061 * config/aarch64/aarch64-protos.h
14062 (simd_vec_cost::store_elt_extra_cost): New member variable.
14063 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
14064 accordingly, using the vec_to_scalar cost for the new field.
14065 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
14066 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
14067 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
14068 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
14069 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
14070 (thunderx3t110_advsimd_vector_cost): Likewise.
14071 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
14073 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14075 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
14076 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
14077 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
14078 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
14079 accordingly, using zero for the new costs.
14080 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
14081 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
14082 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
14083 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
14084 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
14085 (thunderx3t110_advsimd_vector_cost): Likewise.
14086 (aarch64_ld234_st234_vectors): New function.
14087 (aarch64_adjust_stmt_cost): Likewise.
14088 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
14089 the new vector costs.
14091 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14093 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
14094 derived class of simd_vec_cost. Add information about CLAST[AB]
14095 and FADDA instructions.
14096 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
14097 accordingly, using the vec_to_scalar costs for the new fields.
14098 (a64fx_sve_vector_cost): Likewise.
14099 (aarch64_reduc_type): New function.
14100 (aarch64_sve_in_loop_reduction_latency): Likewise.
14101 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
14102 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
14103 that occur in the loop body.
14104 (aarch64_add_stmt_cost): Update call accordingly.
14106 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14108 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
14110 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
14111 above the fields rather than to the right.
14112 (simd_vec_cost::reduc_i8_cost): New member variable.
14113 (simd_vec_cost::reduc_i16_cost): Likewise.
14114 (simd_vec_cost::reduc_i32_cost): Likewise.
14115 (simd_vec_cost::reduc_i64_cost): Likewise.
14116 (simd_vec_cost::reduc_f16_cost): Likewise.
14117 (simd_vec_cost::reduc_f32_cost): Likewise.
14118 (simd_vec_cost::reduc_f64_cost): Likewise.
14119 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
14120 accordingly, using the vec_to_scalar_cost for the new fields.
14121 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
14122 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
14123 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
14124 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
14125 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
14126 (thunderx3t110_advsimd_vector_cost): Likewise.
14127 (aarch64_use_new_vector_costs_p): New function.
14128 (aarch64_simd_vec_costs): New function, split out from...
14129 (aarch64_builtin_vectorization_cost): ...here.
14130 (aarch64_is_reduction): New function.
14131 (aarch64_detect_vector_stmt_subtype): Likewise.
14132 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
14133 using the new vector costs.
14135 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
14138 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
14139 TLS declarations as public.
14141 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
14143 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
14144 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
14145 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
14146 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
14147 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
14148 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
14149 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
14150 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
14151 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
14153 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
14156 * config.gcc (*-*-cygwin*): Add winnt-d.o
14157 (*-*-mingw*): Likewise.
14158 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
14159 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
14160 * config/i386/t-cygming: Add winnt-d.o.
14161 * config/i386/winnt-d.c: New file.
14163 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
14165 * config/freebsd-d.c: Include memmodel.h.
14167 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
14170 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
14171 * config/t-openbsd: Add openbsd-d.o.
14172 * config/openbsd-d.c: New file.
14174 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
14176 PR tree-optimization/96974
14177 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
14178 with graceful exit.
14180 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
14183 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
14187 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
14188 always_inline in system headers.
14190 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
14192 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
14194 2021-03-25 Jakub Jelinek <jakub@redhat.com>
14197 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
14198 * fold-const.c (operand_compare::operand_equal_p): Don't compare
14199 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
14201 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
14205 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
14206 always_inline in system headers.
14208 2021-03-25 Richard Biener <rguenther@suse.de>
14210 PR tree-optimization/99746
14211 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
14212 the scalar stmt as patterned. Instead set up required things
14215 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
14217 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
14220 2021-03-24 Martin Liska <mliska@suse.cz>
14223 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
14225 * config/i386/i386-options.c (ix86_option_override_internal):
14226 Add run-time assert.
14228 2021-03-24 Martin Jambor <mjambor@suse.cz>
14231 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
14232 parameters with unknown type.
14233 (ipacp_value_safe_for_type): New function.
14234 (propagate_vals_across_arith_jfunc): Verify that the constant type
14235 can be used for a type of the formal parameter.
14236 (propagate_vals_across_ancestor): Likewise.
14237 (propagate_scalar_across_jump_function): Likewise. Pass the type
14238 also to propagate_vals_across_ancestor.
14240 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
14243 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
14245 (movmisalign<mode>_mve_load): Likewise.
14247 2021-03-24 Jakub Jelinek <jakub@redhat.com>
14250 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
14251 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
14253 2021-03-24 Alexandre Oliva <oliva@adacore.com>
14255 * doc/sourcebuild.texi (sysconf): New effective target.
14257 2021-03-24 Alexandre Oliva <oliva@adacore.com>
14259 * config/i386/predicates.md (reg_or_const_vec_operand): New.
14260 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
14261 the now *-prefixed insn_and_split, turn the splitter const vec
14262 into an input for the insn, making it an ignored immediate for
14263 non-split cases, and loaded into the scratch register
14266 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
14269 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
14270 Use define_relaxed_memory_constraint for them.
14272 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
14275 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
14276 colon to the diagnostic message.
14278 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
14280 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
14282 (try_fwprop_subst_note): Use set_info instead of insn_info.
14283 (try_fwprop_subst_pattern): Likewise.
14284 (try_fwprop_subst_notes): Likewise.
14285 (try_fwprop_subst): Likewise.
14286 (forward_propagate_subreg): Likewise.
14287 (forward_propagate_and_simplify): Likewise.
14288 (forward_propagate_into): Likewise.
14289 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
14291 (set_info::single_nondebug_insn_use): Likewise.
14292 (set_info::single_phi_use): Likewise.
14293 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
14295 (set_info::single_nondebug_insn_use): Likewise.
14296 (set_info::single_phi_use): Likewise.
14298 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
14300 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
14302 2021-03-23 Jakub Jelinek <jakub@redhat.com>
14305 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
14306 expand_mult to perform an unsigned rather than a signed
14309 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
14312 * config/i386/cpuid.h (__cpuid): Add __volatile__.
14313 (__cpuid_count): Likewise.
14315 2021-03-23 Richard Biener <rguenther@suse.de>
14317 PR tree-optimization/99721
14318 * tree-vect-slp.c (vect_slp_analyze_node_operations):
14319 Make sure we can schedule the node.
14321 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
14323 * config/riscv/riscv.c (riscv_subword): Take endianness into
14324 account when calculating the byte offset.
14326 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
14328 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
14329 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
14330 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
14331 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
14332 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
14333 new predicate "subreg_lowpart_operator"
14335 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
14337 * config/riscv/riscv.c (riscv_swap_instruction): New function
14338 to byteswap an SImode rtx containing an instruction.
14339 (riscv_trampoline_init): Byteswap the generated instructions
14342 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
14344 * common/config/riscv/riscv-common.c
14345 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
14346 * config.gcc (riscv32be-*, riscv64be-*): Set
14347 TARGET_BIG_ENDIAN_DEFAULT to 1.
14348 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
14349 depending on default endianness.
14350 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
14351 * config/riscv/linux.h (LINK_SPEC): Likewise.
14352 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
14353 default endianness.
14354 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
14356 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
14358 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
14359 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
14360 * config/riscv/linux.h (LINK_SPEC): Likewise.
14361 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
14363 (BYTES_BIG_ENDIAN): Handle big endian.
14364 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
14365 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
14367 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
14369 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
14371 * regcprop.c (find_oldest_value_reg): Ask target whether
14372 different mode is fine for replacement register.
14374 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
14376 PR tree-optimization/99296
14377 * value-range.cc (irange::irange_set_1bit_anti_range): New.
14378 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
14379 * value-range.h (irange::irange_set_1bit_anti_range): New.
14381 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
14384 * config/aarch64/constraints.md (UtQ): Use
14385 define_relaxed_memory_constraint for it.
14386 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
14387 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
14388 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
14389 (have_relaxed_memory_constraints): New static var.
14390 (relaxed_memory_start, relaxed_memory_end): Ditto.
14391 (add_constraint): Add arg is_relaxed_memory. Check name for
14392 relaxed memory. Set up is_relaxed_memory in constraint_data and
14393 have_relaxed_memory_constraints. Adjust calls.
14394 (choose_enum_order): Process relaxed memory.
14395 (write_tm_preds_h): Ditto.
14396 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
14397 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
14398 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
14399 * ira-lives.c (single_reg_class): Use
14400 insn_extra_relaxed_memory_constraint.
14401 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
14402 * lra-constraints.c (valid_address_p): Use
14403 insn_extra_relaxed_memory_constraint instead of other memory
14405 (process_alt_operands): Process CT_RELAXED_MEMORY.
14406 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
14407 * recog.c (asm_operand_ok, preprocess_constraints): Process
14409 * reload.c (find_reloads): Ditto.
14410 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
14411 * stmt.c (parse_input_constraint): Use
14412 insn_extra_relaxed_memory_constraint.
14414 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
14417 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
14420 2021-03-22 Alex Coplan <alex.coplan@arm.com>
14423 * config/arm/arm-protos.h (neon_make_constant): Add generate
14424 argument to guard emitting insns, default to true.
14425 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
14426 CONST_VECTORs which neon_make_constant can't handle.
14427 (neon_vdup_constant): Add generate argument, avoid emitting
14428 insns if it's not set.
14429 (neon_make_constant): Plumb new generate argument through.
14430 * config/arm/constraints.md (Ui): New. Use it...
14431 * config/arm/mve.md (*mve_mov<mode>): ... here.
14432 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
14433 synthesize constants.
14435 2021-03-22 Richard Biener <rguenther@suse.de>
14437 * debug.h: Add deprecation warning.
14439 2021-03-22 Richard Biener <rguenther@suse.de>
14441 PR tree-optimization/99694
14442 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
14445 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
14448 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
14449 after type checking.
14451 2021-03-22 Jakub Jelinek <jakub@redhat.com>
14455 * dwarf2out.c (get_full_len): Use get_precision rather than
14457 (add_const_value_attribute): Make sure add_AT_wide argument has
14458 precision prec rather than some very wide one.
14460 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
14462 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
14463 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
14464 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
14465 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
14466 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
14467 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
14468 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
14469 *fix_trunc<mode>si2_internal): Fix empty split condition.
14470 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
14471 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
14472 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
14473 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
14475 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
14478 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
14479 Convert idx to DImode.
14480 (rs6000_expand_vector_set_var_p8): Likewise.
14482 2021-03-21 Jakub Jelinek <jakub@redhat.com>
14485 * dwarf2out.c (insert_float): Change return type from void to
14486 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
14487 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
14490 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
14493 * config/i386/i386.c (construct_container): Check cfun != NULL
14494 before accessing silent_p.
14496 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
14498 * asan.c: Fix typos in comments.
14500 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
14502 PR rtl-optimization/99680
14503 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
14504 (process_address_1): Check empty constraint before using
14507 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
14509 * config/rs6000/rs6000.c (power10_cost): New.
14510 (rs6000_option_override_internal): Set Power10 costs.
14511 (rs6000_issue_rate): Set Power10 issue rate.
14512 * config/rs6000/power10.md: Rewrite for Power10.
14514 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
14517 * lra-constraints.c (process_address_1): Don't use unknown
14518 constraint for address constraint.
14520 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
14523 * config.gcc (powerpc-*-darwin8): Delete the reference to
14524 the now removed darwin8.h.
14526 2021-03-19 Olivier Hainque <hainque@adacore.com>
14529 * config/vxworksae.h (VX_CPU_PREFIX): Define.
14531 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
14533 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
14535 2021-03-19 Tamar Christina <tamar.christina@arm.com>
14537 PR tree-optimization/99656
14538 * tree-vect-slp-patterns.c (linear_loads_p,
14539 complex_add_pattern::matches, is_eq_or_top,
14540 vect_validate_multiplication, complex_mul_pattern::matches,
14541 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
14542 * tree-vectorizer.h: (complex_load_perm_t): Removed.
14543 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
14544 complex_load_perm_t.
14546 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
14549 * config/i386/i386-options.c (ix86_init_machine_status): Set
14551 * config/i386/i386.c (init_cumulative_args): Set silent_p to
14553 (construct_container): Return early for return and argument
14554 errors if silent_p is true.
14555 * config/i386/i386.h (machine_function): Add silent_p.
14557 2021-03-19 Jakub Jelinek <jakub@redhat.com>
14560 * config/arm/constraints.md (Ds): New constraint.
14561 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
14562 constraint instead of w,Dm.
14564 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
14566 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
14569 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
14571 PR middle-end/99641
14572 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
14573 array type, do the computation of the current position in sizetype.
14575 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
14578 * lra-constraints.c (process_address_1): Use lookup_constraint
14579 only for a single constraint.
14581 2021-03-18 Martin Sebor <msebor@redhat.com>
14583 PR middle-end/99502
14584 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
14585 (inbounds_memaccess_p): ...to this. Check the ending offset of
14586 the accessed member.
14588 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
14590 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
14591 %> quote markers to error messages.
14592 (gcn_goacc_validate_dims): Likewise.
14593 (gcn_conditional_register_usage): Remove exclaimation mark from error
14595 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
14597 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
14599 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
14602 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
14603 Kito Cheng <kito.cheng@sifive.com>
14605 * config/riscv/riscv.c (riscv_block_move_straight): Change type
14606 to unsigned HOST_WIDE_INT for parameter and local variable with
14607 HOST_WIDE_INT type.
14608 (riscv_adjust_block_mem): Ditto.
14609 (riscv_block_move_loop): Ditto.
14610 (riscv_expand_block_move): Ditto.
14612 2021-03-18 Nick Clifton <nickc@redhat.com>
14614 * config/v850/v850.c (construct_restore_jr): Increase static
14616 (construct_save_jarl): Likewise.
14617 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
14619 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14621 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
14622 (aarch64_override_options_internal): Use it.
14623 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
14626 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
14628 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
14629 error message format issues.
14630 (nios2_option_override): Likewise.
14631 (nios2_expand_fpu_builtin): Likewise.
14632 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
14633 truncation warning.
14634 (nios2_expand_custom_builtin): More error message format fixes.
14635 (nios2_expand_rdwrctl_builtin): Likewise.
14636 (nios2_expand_rdprs_builtin): Likewise.
14637 (nios2_expand_eni_builtin): Likewise.
14638 (nios2_expand_builtin): Likewise.
14639 (nios2_register_custom_code): Likewise.
14640 (nios2_valid_target_attribute_rec): Likewise.
14641 (nios2_add_insn_asm): Fix uninitialized variable warning.
14643 2021-03-17 Jan Hubicka <jh@suse.cz>
14645 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
14646 of gather to match reality.
14647 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
14649 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14651 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
14652 to compare against CC_REG rather than NE.
14654 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
14657 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
14658 inline assembly statements.
14659 (ix86_print_operand): Update 'P' handling for -fno-plt.
14661 2021-03-17 Tamar Christina <tamar.christina@arm.com>
14664 * config/aarch64/aarch64.c
14665 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
14667 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
14670 * config/rs6000/predicates.md (branch_comparison_operator): Allow
14671 ordered and unordered for CCFPmode, if flag_finite_math_only.
14673 2021-03-16 Jakub Jelinek <jakub@redhat.com>
14676 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
14677 rather than ASHIFT.
14678 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
14680 2021-03-16 Martin Liska <mliska@suse.cz>
14683 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
14684 cl_optimization_compare function.
14686 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
14688 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
14691 2021-03-16 Jakub Jelinek <jakub@redhat.com>
14694 * config/i386/i386.h (struct machine_function): Add
14695 has_explicit_vzeroupper bitfield.
14696 * config/i386/i386-expand.c (ix86_expand_builtin): Set
14697 cfun->machine->has_explicit_vzeroupper when expanding
14698 IX86_BUILTIN_VZEROUPPER.
14699 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
14700 Do the mode switching only when TARGET_VZEROUPPER, expensive
14701 optimizations turned on and not optimizing for size.
14702 (pass_insert_vzeroupper::gate): Enable even when
14703 cfun->machine->has_explicit_vzeroupper is set.
14705 2021-03-16 Jakub Jelinek <jakub@redhat.com>
14708 * config/aarch64/aarch64.c
14709 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
14710 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
14711 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
14713 2021-03-15 Richard Biener <rguenther@suse.de>
14715 PR tree-optimization/98834
14716 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
14717 subsetting by truncating the access size.
14719 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
14721 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
14722 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
14725 2021-03-15 Martin Liska <mliska@suse.cz>
14727 * spellcheck.c: Add missing comma in initialization.
14729 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
14731 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
14732 alternative 2 and alternative 1 with alternative 3 using
14733 YW register constraint.
14734 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
14735 using YW register constraint.
14736 (*vec_extractv16qi_zext): Ditto.
14737 (*vec_extractv4si): Merge alternatives 4 and 5
14738 using Yw register constraint.
14739 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
14741 2021-03-13 Martin Sebor <msebor@redhat.com>
14743 PR tree-optimization/99489
14744 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
14745 is not a call statement.
14747 2021-03-13 Jakub Jelinek <jakub@redhat.com>
14749 PR tree-optimization/99544
14750 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
14751 if for vector types multiplication can't be done in type's mode.
14753 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
14756 * config/sparc/constraints.md (w): Rename to...
14757 (W): ... this and ditch previous implementation.
14758 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
14759 (*movdf_insn_sp64): Likewise.
14760 (*mov<VM64:mode>_insn_sp64): Likewise.
14761 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
14763 (atomic_compare_and_swap_leon3_1): Likewise.
14764 (*atomic_compare_and_swapdi_v8plus): Likewise.
14765 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
14766 architecture and add missing address validity check during LRA.
14768 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
14771 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
14772 occuring for assumed-size arrays in use_device_{ptr,addr}.
14774 2021-03-12 Jakub Jelinek <jakub@redhat.com>
14777 * config/i386/constraints.md (YW): New internal constraint.
14778 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
14779 (*<sse2_avx2>_<insn><mode>3<mask_name>,
14780 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
14781 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
14783 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
14784 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
14785 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
14786 into one, use Yw instead of former x,v.
14787 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
14788 the last alternative.
14789 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
14790 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
14791 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
14792 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
14793 into one, use <v_Yw> instead of former x,v.
14794 (avx2_interleave_highv32qi<mask_name>,
14795 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
14796 constraints. Add && <mask_avx512bw_condition> to condition.
14797 (avx2_interleave_lowv32qi<mask_name>,
14798 vec_interleave_lowv16qi<mask_name>,
14799 avx2_interleave_highv16hi<mask_name>,
14800 vec_interleave_highv8hi<mask_name>,
14801 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
14802 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
14803 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
14804 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
14805 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
14806 Yw instead of v in constraints.
14807 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
14808 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
14809 instead of Yv in constraints.
14810 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
14811 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
14812 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
14813 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
14814 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
14816 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
14817 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
14818 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
14819 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
14820 two, one with just x, another isa avx512vl with v.
14822 2021-03-12 Martin Liska <mliska@suse.cz>
14824 * doc/invoke.texi: Add missing param documentation.
14826 2021-03-11 David Malcolm <dmalcolm@redhat.com>
14829 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
14830 analyzer/trimmed-graph.o.
14831 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
14832 feasibility checking to reflect new implementation.
14833 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
14835 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
14837 2021-03-11 David Malcolm <dmalcolm@redhat.com>
14839 * digraph.cc (selftest::test_shortest_paths): Update
14840 shortest_paths init for new param. Add test of
14841 SPS_TO_GIVEN_TARGET.
14842 * shortest-paths.h (enum shortest_path_sense): New.
14843 (shortest_paths::shortest_paths): Add "sense" param.
14844 Update for renamings. Generalize to use "sense" param.
14845 (shortest_paths::get_shortest_path): Rename param.
14846 (shortest_paths::m_sense): New field.
14847 (shortest_paths::m_prev): Rename...
14848 (shortest_paths::m_best_edge): ...to this.
14849 (shortest_paths::get_shortest_path): Update for renamings.
14850 Conditionalize flipping of path on sense of traversal.
14852 2021-03-11 David Malcolm <dmalcolm@redhat.com>
14854 * digraph.cc (selftest::test_shortest_paths): Add test coverage
14855 for paths from B and C.
14856 * shortest-paths.h (shortest_paths::shortest_paths): Handle
14857 unreachable nodes, rather than asserting.
14859 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
14862 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
14863 xcoff_tbss_section_name.
14864 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
14865 * xcoffout.c (xcoff_tbss_section_name): Delete.
14866 * xcoffout.h (xcoff_tbss_section_name): Delete.
14868 2021-03-11 Richard Biener <rguenther@suse.de>
14870 PR tree-optimization/99523
14871 * tree-cfg.c (dump_function_to_file): Dump SSA names
14872 w/o identifier to the decls section as well, not only those
14873 without a VAR_DECL.
14875 2021-03-11 Jakub Jelinek <jakub@redhat.com>
14878 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
14879 function calls with lhs fail if the lhs don't have compatible types.
14881 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
14883 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
14884 Change FRAME_POINTER_REGNUM to correspond to a new faked
14885 register faked_fp, part of GENNONACR_REGS like faked_ap.
14886 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
14887 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
14888 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
14889 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
14890 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
14892 (CRIS_REAL_FP_REGNUM): New constant.
14893 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
14894 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
14895 (cris_initial_elimination_offset): Handle elimination changes
14896 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
14897 and add one from FRAME_POINTER_REGNUM to
14898 HARD_FRAME_POINTER_REGNUM.
14899 (cris_expand_prologue, cris_expand_epilogue): Emit code for
14900 hard_frame_pointer_rtx instead of frame_pointer_rtx.
14902 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
14905 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
14906 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
14908 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
14911 * lra-constraints.c (process_address_1): Don't check unknown
14912 constraint, use X for empty constraint.
14914 2021-03-10 Alex Coplan <alex.coplan@arm.com>
14916 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
14917 Fix typo in comment describing "is_ha" argument.
14919 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
14921 * doc/sourcebuild.texi: Document LRA target selector.
14923 2021-03-10 David Malcolm <dmalcolm@redhat.com>
14925 * doc/ux.texi: Add subsection contrasting interactive versus
14926 batch usage of GCC.
14928 2021-03-10 Joel Hutton <joel.hutton@arm.com>
14931 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
14933 (vectorizable_load): Fix gather load mask check condition.
14935 2021-03-10 Richard Biener <rguenther@suse.de>
14937 PR tree-optimization/99510
14938 * tree.c (check_aligned_type): Check that the candidate
14939 has TYPE_USER_ALIGN set instead of matching with the
14942 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
14944 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
14945 float and vector integer modes only if the mode is not larger.
14947 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
14949 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
14951 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
14953 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
14955 * ira-lives.c (single_reg_class): Ditto.
14957 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
14959 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
14960 the architecture-specific rtems.h.
14961 (aarch64-*-rtems*): Likewise.
14962 (arm*-*-rtems*): Likewise.
14963 (epiphany-*-rtems*): Likewise.
14964 (riscv*-*-rtems*): Likewise.
14966 2021-03-09 Jakub Jelinek <jakub@redhat.com>
14968 PR tree-optimization/99305
14969 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
14970 before integer_all_onesp instead of vice versa.
14972 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
14974 * common/config/arm/arm-common.c (arm_config_default): Change type
14975 of 'i' to unsigned.
14977 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
14980 * lra-constraints.c (process_address_1): Process constraint 'g'
14981 separately and digital constraints containing more one digit.
14983 2021-03-09 Nick Clifton <nickc@redhat.com>
14985 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
14986 (DWARF"_DEBUGGING_INFO): Define.
14988 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
14991 * calls.c (initialize_argument_information): When the argument
14992 is passed by reference, do not make a copy in a thunk only if
14993 the argument is already in memory. Remove redundant test for
14994 the case of callee copy.
14996 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
14999 * lra-constraints.c (process_address_1): Process 0..9 constraints
15000 in process_address_1.
15002 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
15004 * config/s390/s390.c (struct s390_processor processor_table):
15005 Binutils name string must not be empty.
15007 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
15009 * config/arc/arc.c (arc_attr_type): Remove function.
15011 2021-03-09 Martin Liska <mliska@suse.cz>
15014 * config/i386/i386-options.c (ix86_option_override_internal):
15015 Set isa_flags for OPTS argument and not for the global
15018 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
15020 * config/rs6000/predicates.md (ds_form_mem_operand): Check
15023 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
15026 * config/rs6000/predicates.md (ds_form_mem_operand) New
15028 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
15029 ds_form_mem_operand in ld/lwa patterns.
15030 * config/rs6000/fusion.md: Regenerate file.
15032 2021-03-08 Martin Sebor <msebor@redhat.com>
15034 PR middle-end/98266
15035 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
15036 (array_bounds_checker::check_array_bounds): Call it.
15038 2021-03-08 Martin Sebor <msebor@redhat.com>
15040 PR middle-end/97631
15041 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
15042 (handle_builtin_stxncpy_strncat): Rename locals. Determine
15043 destination size from allocation calls. Issue a more appropriate
15045 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
15046 (handle_builtin_memset): Same.
15048 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
15051 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
15052 to ensure we do not have an Altivec style address.
15053 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
15054 an Altivec style address.
15055 (*vsx_le_perm_store_<mode>): Likewise.
15056 (splitters after *vsx_le_perm_store_<mode>): Likewise.
15057 (vsx_load_<mode>): Disable special expander if passed an Altivec
15059 (vsx_store_<mode>): Likewise.
15061 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15064 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
15065 (aarch64_simd_shift_imm_vec_hi): Likewise.
15066 (aarch64_simd_shift_imm_vec_si): Likewise.
15067 (aarch64_simd_shift_imm_vec_di): Likewise.
15068 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
15069 predicate from above.
15070 (aarch64_shrn<mode>_insn_be): Likewise.
15071 (aarch64_rshrn<mode>_insn_le): Likewise.
15072 (aarch64_rshrn<mode>_insn_be): Likewise.
15073 (aarch64_shrn2<mode>_insn_le): Likewise.
15074 (aarch64_shrn2<mode>_insn_be): Likewise.
15075 (aarch64_rshrn2<mode>_insn_le): Likewise.
15076 (aarch64_rshrn2<mode>_insn_be): Likewise.
15078 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
15081 * lra-constraints.c (skip_contraint_modifiers): New function.
15082 (process_address_1): Use it before lookup_constraint call.
15084 2021-03-08 Martin Liska <mliska@suse.cz>
15087 * config/i386/i386-options.c (ix86_option_override_internal):
15088 Enable UINTR and HRESET for -march that supports it.
15090 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
15092 * config/s390/s390.c (f_constraint_p): New function.
15093 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
15094 (TARGET_MD_ASM_ADJUST): Likewise.
15096 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
15099 * tree-nested.c (convert_local_reference_stmt): Avoid calling
15100 lookup_field_for_decl for Fortran module (= namespace context).
15102 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
15104 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
15105 comparison with arithmetic right shift.
15106 (s390_expand_vcond): No need for a force_reg anymore.
15107 s390_vec_compare will do it.
15108 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
15109 immediate operands.
15111 2021-03-07 Jakub Jelinek <jakub@redhat.com>
15114 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
15115 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
15117 * config/i386/sse.md (v_Yw): New define_mode_attr.
15118 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
15119 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
15121 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
15122 xYw in constraints.
15124 2021-03-06 Julian Brown <julian@codesourcery.com>
15126 * tree-pretty-print.c (dump_generic_node): Emit non-generic
15127 address space info for aggregates.
15129 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
15131 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
15133 2021-03-05 Jakub Jelinek <jakub@redhat.com>
15135 PR middle-end/99322
15136 * tree-cfg.c (bb_to_omp_idx): New variable.
15137 (execute_build_cfg): Release the bb_to_omp_idx vector after
15138 cleanup_tree_cfg returns.
15139 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
15140 for bb_to_omp_idx being a vec<int> instead of pointer to array
15142 (make_edges): Remove bb_to_omp_idx local variable, don't pass
15143 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
15144 vec<int> instead of pointer to array of ints and don't free/release
15146 (remove_bb): When removing a bb and placing forced label somewhere
15147 else, ensure it is put into the same OpenMP region during cfg
15148 pass if possible or to entry successor as fallback. Unregister
15149 bb from bb_to_omp_idx.
15151 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
15154 * lra-constraints.c (process_address_1): Skip decomposing address
15155 for asm insn operand with unknown constraint.
15157 2021-03-05 Martin Jambor <mjambor@suse.cz>
15160 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
15161 corresponding speculative edges if we are about to resolve
15162 sepculation. Make edge direct (and so resolve speculations) before
15163 removing it from call_site_hash.
15164 (cgraph_edge::make_direct): Relax the initial assert to allow calling
15165 the function on speculative direct edges.
15167 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
15169 PR rtl-optimization/99376
15170 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
15171 of low-order zero bits is too large, set the result to 0 directly.
15173 2021-03-04 Jakub Jelinek <jakub@redhat.com>
15175 PR middle-end/93235
15176 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
15177 SUBREG and a SUBREG to op_mode can't be created.
15179 2021-03-04 Alex Coplan <alex.coplan@arm.com>
15182 * config/aarch64/aarch64-sve-builtins.cc
15183 (function_resolver::require_vector_type): Handle error_mark_node.
15185 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
15187 * cfgexpand.c (expand_asm_loc): Pass new parameter.
15188 (expand_asm_stmt): Likewise.
15189 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
15191 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
15192 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
15193 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
15194 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
15195 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
15196 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
15197 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
15198 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
15199 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
15200 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
15201 * doc/tm.texi (md_asm_adjust): Likewise.
15202 * target.def (md_asm_adjust): Likewise.
15204 2021-03-04 Richard Biener <rguenther@suse.de>
15206 PR middle-end/97855
15207 * tree-pretty-print.c: Poison pp_printf.
15208 (dump_decl_name): Avoid use of pp_printf.
15209 (dump_block_node): Likewise.
15210 (dump_generic_node): Likewise.
15212 2021-03-04 Martin Sebor <msebor@redhat.com>
15214 PR middle-end/96963
15215 PR middle-end/94655
15216 * builtins.c (handle_array_ref): New helper.
15217 (handle_mem_ref): New helper.
15218 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
15219 into new helper functions. Correct a workaround for vectorized
15222 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
15224 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
15225 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
15226 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
15227 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
15228 attribute for Power10.
15229 * config/rs6000/mma.md (*movoo): Likewise.
15230 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
15231 (define_mode_attr bits): Add DD/TD modes.
15232 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
15233 store_conditionalpti): Update size attribute for Power10.
15235 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15238 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
15239 -Wuninitialized, -Wmaybe-uninitialized.
15240 (wide-int.o-warn): Likewise.
15242 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
15244 * common/config/arm/arm-common.c: Include configargs.h.
15245 (arm_config_default): New function.
15246 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
15247 processors that do not support Thumb. Take into account the
15248 --with-mode configuration setting for selecting the default.
15249 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
15250 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
15252 2021-03-03 Martin Liska <mliska@suse.cz>
15254 PR gcov-profile/97461
15255 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
15257 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
15260 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
15261 point back the hard frame pointer to its default location when the
15262 frame is larger than SEH_MAX_FRAME_SIZE.
15264 2021-03-03 Jakub Jelinek <jakub@redhat.com>
15267 * config/i386/predicates.md (logic_operator): New define_predicate.
15268 * config/i386/i386.md (mov + mem using comm arith peephole2):
15269 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
15270 and the inner mode is [QH]Imode.
15272 2021-03-03 Jakub Jelinek <jakub@redhat.com>
15275 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
15276 (new_loc_list): Clear end_entry.
15277 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
15278 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
15280 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
15281 initialize also end_entry.
15283 2021-03-03 Jakub Jelinek <jakub@redhat.com>
15286 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
15287 partitions, if in non-layout mode after reorder_blocks also move
15288 affected blocks to ensure a single partition transition.
15290 2021-03-03 Jason Merrill <jason@redhat.com>
15293 * cgraphunit.c (process_function_and_variable_attributes): Don't
15294 warn about flatten on an alias if the target also has it.
15295 * cgraph.h (symtab_node::get_alias_target_tree): New.
15297 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
15299 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
15300 period to symbol name.
15301 (tls_get_addr_internal<mode>): Same.
15303 2021-03-02 David Malcolm <dmalcolm@redhat.com>
15306 * diagnostic-show-locus.c
15307 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
15310 2021-03-02 Martin Sebor <msebor@redhat.com>
15312 PR middle-end/99276
15313 * builtins.c (warn_for_access): Remove stray warning text.
15315 2021-03-02 Martin Sebor <msebor@redhat.com>
15317 PR middle-end/99295
15318 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
15321 2021-03-02 Jakub Jelinek <jakub@redhat.com>
15324 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
15325 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
15326 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
15327 DW_MACRO_define_strx and DW_MACRO_undef_strx.
15328 (save_macinfo_strings): Use DW_MACRO_*_str* even with
15329 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
15330 DW_MACRO_undef_strx.
15332 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
15334 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
15336 (BT_FN_V8HI_V8HI_UINT): Likewise.
15337 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
15338 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
15339 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
15340 New builtin definitions.
15341 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
15342 vector extension version.
15343 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
15344 available with current -march level.
15345 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
15346 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
15347 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
15348 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
15349 (vec_extend_to_fp32_lo): Likewise.
15350 (vec_round_from_fp32): Likewise.
15351 (vec_convert_to_fp16): Likewise.
15352 (vec_convert_from_fp16): Likewise.
15353 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
15354 (vclfnls_v8hi): Likewise.
15355 (vcrnfs_v8hi): Likewise.
15356 (vcfn_v8hi): Likewise.
15357 (vcnf_v8hi): Likewise.
15359 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
15361 * common/config/s390/s390-common.c (processor_flags_table): New entry.
15362 * config.gcc: Enable arch14 for --with-arch and --with-tune.
15363 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
15364 arch14 for unknown CPU models.
15365 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
15366 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
15367 (s390_get_sched_attrmask): Likewise.
15368 (s390_get_unit_mask): Likewise.
15369 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
15370 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
15371 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
15372 (TARGET_NNPA_P): New macro definitions.
15373 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
15374 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
15376 2021-03-02 Jakub Jelinek <jakub@redhat.com>
15378 PR middle-end/95757
15379 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
15380 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
15381 != 1 comparisons if name is lhs of a comparison.
15383 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
15387 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
15388 * config/darwin.c (darwin_should_restore_cfa_state): New.
15389 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
15390 * doc/tm.texi: Regenerated.
15391 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
15392 * dwarf2cfi.c (connect_traces): If the target requests, restore
15393 the CFA expression after a DW_CFA_restore.
15394 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
15396 2021-03-01 Martin Liska <mliska@suse.cz>
15399 * optc-save-gen.awk: Add 4 more exceptions.
15401 2021-03-01 Nathan Sidwell <nathan@acm.org>
15404 * tree.h (TYPE_ALIGN_RAW): New accessor.
15405 (TYPE_ALIGN): Use it.
15407 2021-03-01 Jan Hubicka <jh@suse.cz>
15410 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
15412 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
15415 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
15416 point the hard frame pointer to the SSE register save area instead
15417 of the general register save area. Perform only minimal adjustment
15418 for small frames if it is initially not correctly aligned.
15419 (ix86_expand_prologue): Remove early saves for a SEH target.
15420 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
15422 2021-02-28 Jakub Jelinek <jakub@redhat.com>
15425 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
15426 typo - referneced -> referenced.
15427 * tree.c (component_ref_size): Fix comment typo -
15428 refernce -> reference.
15429 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
15430 traling -> trailing.
15431 (aliasing_component_refs_p): Fix comment typos -
15432 refernce -> reference and refernece -> reference and
15433 traling -> trailing.
15434 (nonoverlapping_refs_since_match_p): Fix comment typo -
15435 referneces -> references.
15436 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
15437 referneces -> references.
15439 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
15441 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
15442 diagnostic message to avoid use of a contraction and format
15445 2021-02-27 Jakub Jelinek <jakub@redhat.com>
15448 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
15449 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
15450 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
15451 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
15454 2021-02-26 Richard Biener <rguenther@suse.de>
15456 PR middle-end/99281
15457 * expr.c (store_field): For calls with return-slot optimization
15458 and addressable return type expand the store directly.
15460 2021-02-26 Richard Biener <rguenther@suse.de>
15463 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
15465 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
15468 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
15471 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
15473 * config.gcc: Add rs6000-pcrel-opt.o.
15474 * config/rs6000/rs6000-pcrel-opt.c: New file.
15475 * config/rs6000/pcrel-opt.md: New file.
15476 * config/rs6000/predicates.md: Add d_form_memory predicate.
15477 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
15478 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
15479 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
15480 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
15481 and make_pass_pcrel_opt().
15482 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
15483 (rs6000_option_override_internal): Add pcrel-opt.
15484 (rs6000_delegitimize_address): Support pcrel-opt.
15485 (rs6000_opt_masks): Add pcrel-opt.
15486 (pcrel_opt_valid_mem_p): New function.
15487 (reg_to_non_prefixed): Make global.
15488 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
15489 (output_pcrel_opt_reloc): New function.
15490 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
15491 (pcrel_extern_addr): Set loads_extern_addr.
15492 Add include for pcrel-opt.md.
15493 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
15494 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
15497 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
15500 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
15501 If TARGET_64BIT and dest is SUBREG, we check the width, if it
15502 equal to SImode, we use SImode operation, just like what we are
15505 2021-02-26 Marek Polacek <polacek@redhat.com>
15507 * builtins.c (warn_for_access): Fix typos.
15509 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
15511 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
15512 mark in front of the immediate quantity.
15513 (<optab>_rolsi3_uxtw): Likewise.
15515 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
15518 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
15519 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
15520 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
15521 address and disable when the FPCXT is not available.
15522 (nonsecure_call_value_reg_thumb2): Likewise.
15524 2021-02-25 Nathan Sidwell <nathan@acm.org>
15527 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
15529 2021-02-25 Tamar Christina <tamar.christina@arm.com>
15531 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
15533 2021-02-25 Richard Biener <rguenther@suse.de>
15535 PR tree-optimization/99253
15536 * tree-vect-loop.c (check_reduction_path): First compute
15537 code, then verify out-of-loop uses.
15539 2021-02-25 Jakub Jelinek <jakub@redhat.com>
15542 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
15544 2021-02-25 Jakub Jelinek <jakub@redhat.com>
15546 PR tree-optimization/80635
15547 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
15548 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
15549 has mode precision.
15551 2021-02-25 Richard Biener <rguenther@suse.de>
15553 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
15554 load_map population.
15555 (vect_match_slp_patterns_2): Revert part of last change.
15556 (vect_analyze_slp): Do not interleave optimize_load_redistribution
15557 with pattern detection but do it afterwards. Dump the
15558 whole SLP graph after pattern recognition and load
15559 redistribution optimization finished.
15561 2021-02-24 Jakub Jelinek <jakub@redhat.com>
15564 * omp-low.c (struct omp_context): Add teams_nested_p and
15565 nonteams_nested_p members.
15566 (scan_omp_target): Diagnose teams nested inside of target with other
15567 directives strictly nested inside of the same target.
15568 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
15569 ctx->nonteams_nested_p as needed.
15571 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
15573 PR inline-asm/99123
15574 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
15576 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
15578 * config/cris/cris.c (cris_expand_prologue): Set
15579 current_function_static_stack_size, if flag_stack_usage_info.
15581 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
15583 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
15584 (rs6000_final_prescan_insn): Adjust.
15585 (rs6000_asm_output_opcode): Likewise.
15587 2021-02-24 Martin Sebor <msebor@redhat.com>
15589 PR middle-end/97172
15590 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
15591 from function arguments.
15593 2021-02-24 Tamar Christina <tamar.christina@arm.com>
15595 PR tree-optimization/99220
15596 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
15597 node from cache when it's about to be deleted.
15599 2021-02-24 Jakub Jelinek <jakub@redhat.com>
15601 PR tree-optimization/99225
15602 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
15603 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
15604 build_int_cst (..., 1). Formatting fixes.
15606 2021-02-24 Tamar Christina <tamar.christina@arm.com>
15608 PR tree-optimization/99149
15609 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
15611 (vect_slp_reset_pattern): Remove.
15612 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
15613 (complex_mul_pattern::build, complex_fma_pattern::build,
15614 complex_fms_pattern::build): Fix ref counts.
15615 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
15616 when node is being deleted.
15617 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
15618 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
15620 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
15622 2021-02-24 Matthias Klose <doko@ubuntu.com>
15625 2020-12-07 Matthias Klose <doko@ubuntu.com>
15627 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
15628 and ENABLE_RTL_FLAG_CHECKING.
15630 2021-02-24 Richard Biener <rguenther@suse.de>
15633 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
15635 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
15637 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
15638 (vsx_assemble_pair): ...to this.
15639 (*mma_assemble_pair): Rename from this...
15640 (*vsx_assemble_pair): ...to this.
15641 (mma_disassemble_pair): Rename from this...
15642 (vsx_disassemble_pair): ...to this.
15643 (*mma_disassemble_pair): Rename from this...
15644 (*vsx_disassemble_pair): ...to this.
15645 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
15646 BU_COMPAT): New macros.
15647 (mma_assemble_pair): Rename from this...
15648 (vsx_assemble_pair): ...to this.
15649 (mma_disassemble_pair): Rename from this...
15650 (vsx_disassemble_pair): ...to this.
15651 (mma_assemble_pair): New compatibility built-in.
15652 (mma_disassemble_pair): Likewise.
15653 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
15654 (RS6000_BUILTIN_COMPAT): Define.
15655 (bdesc_compat): New.
15656 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
15657 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
15658 and VSX_BUILTIN_ASSEMBLE_PAIR.
15659 (rs6000_init_builtins): Register compatibility built-ins.
15660 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
15661 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
15662 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
15663 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
15664 (__builtin_vsx_assemble_pair): ...to this.
15665 (__builtin_mma_disassemble_pair): Rename from this...
15666 (__builtin_vsx_disassemble_pair): ...to this.
15668 2021-02-23 Martin Liska <mliska@suse.cz>
15671 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
15672 with different alignment. That leads to an invalid red zone
15673 size allocated in runtime.
15675 2021-02-23 Jakub Jelinek <jakub@redhat.com>
15677 PR tree-optimization/99204
15678 * fold-const.c (fold_read_from_constant_string): Check that
15679 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
15681 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
15682 Kewen Lin <linkw@gcc.gnu.org>
15684 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
15685 (rotl<mode>3_insert_3): ...this.
15686 (plus_ior_xor): New code_iterator.
15687 (define_split for GPR rl*imi): New splitter.
15688 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
15689 for integer merging.
15691 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15693 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
15695 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
15696 into a register when the above is enabled.
15697 * config/aarch64/aarch64.c (neoversev1_tunings):
15698 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
15699 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
15701 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
15703 * config/cris/cris.c (cris_print_operand) <'T'>: Change
15704 valid operand from is now an addi mult-value to shift-value.
15705 * config/cris/cris.md (*addi): Change expression of scaled
15706 operand from mult to ashift.
15707 * config/cris/cris.md (*addi_reload): New insn_and_split.
15709 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
15712 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
15713 hook_bool_const_tree_hwi_hwi_const_tree_true.
15714 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
15716 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
15718 PR rtl-optimization/98791
15719 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
15720 for unordered modes.
15722 2021-02-22 Martin Liska <mliska@suse.cz>
15724 * tree-inline.c (inline_forbidden_p): Set
15725 inline_forbidden_reason.
15727 2021-02-22 Richard Biener <rguenther@suse.de>
15729 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
15732 2021-02-22 Richard Biener <rguenther@suse.de>
15734 PR tree-optimization/99165
15735 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
15736 Accumulate changed to ret.
15738 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
15741 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
15743 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
15745 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
15748 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
15750 (trunctf<DFP_ALL:mode>2): Likewise.
15751 (trunctdtf2_vr): Likewise.
15752 (trunctdtf2): Likewise.
15753 (extend<DFP_ALL:mode>tf2_vr): Likewise.
15754 (extend<DFP_ALL:mode>tf2): Likewise.
15755 (extendtftd2_vr): Likewise.
15756 (extendtftd2): Likewise.
15758 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
15760 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
15761 add memory alternative.
15762 (tf_to_fprx2): New pattern.
15764 2021-02-19 Martin Sebor <msebor@redhat.com>
15767 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
15768 (attr_access::free_lang_data): Remove a spurious test.
15770 2021-02-19 Nathan Sidwell <nathan@acm.org>
15772 * doc/invoke.texi (flang-info-module-read): Document.
15774 2021-02-19 Martin Liska <mliska@suse.cz>
15776 PR translation/99167
15777 * params.opt: Fix typo.
15779 2021-02-19 Richard Biener <rguenther@suse.de>
15781 PR middle-end/99122
15782 * tree-inline.c (inline_forbidden_p): Do not inline functions
15783 with VLA arguments or return value.
15785 2021-02-19 Jakub Jelinek <jakub@redhat.com>
15788 * config/arm/arm.md (*stack_protect_combined_set_insn,
15789 *stack_protect_combined_test_insn): If force_const_mem result
15790 is not valid general operand, force its address into the destination
15793 2021-02-19 Jakub Jelinek <jakub@redhat.com>
15796 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
15797 pad or non-local label, put FORCED_LABELs from bb b after that label
15798 rather than before it.
15800 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
15803 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
15804 expand_vector_broadcast' to emit the vec_duplicate operand.
15806 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
15808 PR rtl-optimization/96264
15809 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
15812 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
15815 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
15816 looking up the retain attribute.
15817 (resolve_unique_section): Likewise.
15818 (get_variable_section): Likewise.
15819 (switch_to_section): Likewise. Warn when a symbol without the
15820 retain attribute and a symbol with the retain attribute are
15821 placed in the section with the same name, instead of the used
15823 * doc/extend.texi: Document the "retain" attribute.
15825 2021-02-18 Nathan Sidwell <nathan@acm.org>
15828 * doc/invoke.texi (flang-info-include-translate): Document header
15831 2021-02-18 Richard Biener <rguenther@suse.de>
15833 PR middle-end/99122
15834 * ipa-fnsummary.c (analyze_function_body): Set
15835 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
15836 * tree-inline.c (insert_init_debug_bind): Pass NULL for
15837 error_mark_node values.
15838 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
15840 (setup_one_parameter): Delay force_value_to_type until when
15843 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
15845 PR tree-optimization/99142
15846 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
15848 2021-02-18 Jakub Jelinek <jakub@redhat.com>
15850 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
15851 wide_int_bitmask::wide_int_bitmask (uint64_t),
15852 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
15853 wide_int_bitmask::operator ~ () const,
15854 wide_int_bitmask::operator | (wide_int_bitmask) const,
15855 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
15857 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
15858 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
15859 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
15860 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
15861 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
15862 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
15863 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
15864 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
15865 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
15866 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
15867 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
15868 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
15869 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
15870 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
15871 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
15872 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
15873 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
15874 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
15875 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
15876 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
15877 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
15878 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
15879 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
15880 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
15882 2021-02-18 Jakub Jelinek <jakub@redhat.com>
15884 PR middle-end/99109
15885 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
15886 (build_printable_array_type): ... this. Add nelts argument. For
15887 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
15888 nelts, call build_array_type_nelts.
15889 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
15890 instead of build_zero_elt_array_type and build_array_type_nelts.
15892 2021-02-18 Jakub Jelinek <jakub@redhat.com>
15895 * config/i386/i386.c (distance_non_agu_define): Don't call
15896 extract_insn_cached here.
15897 (ix86_lea_outperforms): Save and restore recog_data around call
15898 to distance_non_agu_define and distance_agu_use.
15899 (ix86_ok_to_clobber_flags): Remove.
15900 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
15901 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
15902 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
15903 into define_insn. Move the splitting to define_peephole2 and
15904 check there using peep2_regno_dead_p if FLAGS_REG is dead.
15906 2021-02-17 Julian Brown <julian@codesourcery.com>
15908 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
15911 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
15914 * config/mips/mips.c (mips_symbol_insns): Do not use
15915 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
15917 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
15919 PR inline-asm/98096
15920 * stmt.c (resolve_operand_name_1): Take inout operands into account
15921 for access to labels by names.
15922 * doc/extend.texi: Describe counting operands for accessing labels.
15924 2021-02-16 Richard Biener <rguenther@suse.de>
15926 PR tree-optimization/38474
15927 * tree-ssa-structalias.c (variable_info::address_taken): New.
15928 (new_var_info): Initialize address_taken.
15929 (process_constraint): Set address_taken.
15930 (solve_constraints): Use the new address_taken flag rather
15931 than is_reg_var for sorting variables.
15932 (dump_constraint): Dump the variable number if the name
15935 2021-02-16 Jakub Jelinek <jakub@redhat.com>
15938 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
15939 multiply by 4096 and for inbranch by 8192.
15940 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
15941 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
15943 2021-02-15 Maya Rashish <coypu@sdf.org>
15945 * config/aarch64/aarch64.c (aarch64_init_builtins):
15946 Call SUBTARGET_INIT_BUILTINS.
15948 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
15950 PR rtl-optimization/98872
15951 * init-regs.c (initialize_uninitialized_regs): Skip initialization
15952 if CONST0_RTX is NULL.
15954 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
15956 PR rtl-optimization/98863
15957 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
15958 (function_info::build_info): Turn into a declaration, moving the
15959 definition to internals.h.
15960 (function_info::bb_walker): Declare.
15961 (function_info::create_reg_use): Likewise.
15962 (function_info::calculate_potential_phi_regs): Take a build_info
15964 (function_info::place_phis, function_info::create_ebbs): Declare.
15965 (function_info::calculate_ebb_live_in_for_debug): Likewise.
15966 (function_info::populate_backedge_phis): Delete.
15967 (function_info::start_block, function_info::end_block): Declare.
15968 (function_info::populate_phi_inputs): Delete.
15969 (function_info::m_potential_phi_regs): Move information to build_info.
15970 * rtl-ssa/internals.h: New file.
15971 (function_info::bb_phi_info): New class.
15972 (function_info::build_info): Moved from functions.h.
15973 Add a constructor and destructor.
15974 (function_info::build_info::ebb_use): Delete.
15975 (function_info::build_info::ebb_def): Likewise.
15976 (function_info::build_info::bb_live_out): Likewise.
15977 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
15978 (function_info::build_info::potential_phi_regs): Likewise.
15979 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
15980 (function_info::build_info::ebb_def_regs): Likewise.
15981 (function_info::build_info::bb_phis): Likewise.
15982 (function_info::build_info::bb_mem_live_out): Likewise.
15983 (function_info::build_info::bb_to_rpo): Likewise.
15984 (function_info::build_info::def_stack): Likewise.
15985 (function_info::build_info::old_def_stack_limit): Likewise.
15986 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
15987 Remove the regno argument. Push the previous definition onto the
15988 definition stack where necessary.
15989 * rtl-ssa/accesses.cc: Include internals.h.
15990 * rtl-ssa/changes.cc: Likewise.
15991 * rtl-ssa/blocks.cc: Likewise.
15992 (function_info::build_info::build_info): Define.
15993 (function_info::build_info::~build_info): Likewise.
15994 (function_info::bb_walker): New class.
15995 (function_info::bb_walker::bb_walker): Define.
15996 (function_info::add_live_out_use): Convert a logarithmic-complexity
15997 test into a linear one. Allow the same definition to be passed
15999 (function_info::calculate_potential_phi_regs): Moved from
16000 functions.cc. Take a build_info parameter and store the
16001 information there instead.
16002 (function_info::place_phis): New function.
16003 (function_info::add_entry_block_defs): Update call to record_reg_def.
16004 (function_info::calculate_ebb_live_in_for_debug): New function.
16005 (function_info::add_phi_nodes): Use bb_phis to decide which
16006 registers need phi nodes and initialize ebb_def_regs accordingly.
16007 Do not add degenerate phis here.
16008 (function_info::add_artificial_accesses): Use create_reg_use.
16009 Assert that all definitions are listed in the DF LR sets.
16010 Update call to record_reg_def.
16011 (function_info::record_block_live_out): Record live-out register
16012 values in the phis of successor blocks. Use the live-out set
16013 when processing the last block in an EBB, instead of always
16014 using the live-in sets of successor blocks. AND the live sets
16015 with the set of registers that have been defined in the EBB,
16016 rather than with all potential phi registers. Cope correctly
16017 with branches back to the start of the current EBB.
16018 (function_info::start_block): New function.
16019 (function_info::end_block): Likewise.
16020 (function_info::populate_phi_inputs): Likewise.
16021 (function_info::create_ebbs): Likewise.
16022 (function_info::process_all_blocks): Rewrite into a multi-phase
16024 * rtl-ssa/functions.cc: Include internals.h.
16025 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
16026 (function_info::init_function_data): Remove caller.
16027 * rtl-ssa/insns.cc: Include internals.h
16028 (function_info::create_reg_use): New function. Lazily any
16029 degenerate phis needed by the linear RPO view.
16030 (function_info::record_use): Use create_reg_use. When processing
16031 debug uses, use potential_phi_regs and test it before checking
16032 whether the register is live on entry to the current EBB. Lazily
16033 calculate ebb_live_in_for_debug.
16034 (function_info::record_call_clobbers): Update call to record_reg_def.
16035 (function_info::record_def): Likewise.
16037 2021-02-15 Martin Liska <mliska@suse.cz>
16039 * toplev.c (init_asm_output): Free output of
16040 gen_command_line_string function.
16041 (process_options): Likewise.
16043 2021-02-15 Martin Liska <mliska@suse.cz>
16045 * params.opt: Add 2 missing Param keywords.
16047 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
16049 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
16051 2021-02-15 Jakub Jelinek <jakub@redhat.com>
16053 PR tree-optimization/99079
16054 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
16055 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
16056 require both type and TREE_TYPE (@1) to be integral types and either
16057 type having smaller or equal precision, or TREE_TYPE (@1) being
16058 unsigned type, or type being signed type. If TREE_TYPE (@1)
16059 doesn't have wrapping overflow, perform the subtraction of one in
16062 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
16063 Richard Biener <rguether@suse.de>
16066 * ipa-reference.c (ipa_init): Only conditinally initialize
16067 reference_vars_to_consider.
16068 (propagate): Conditionally deninitialize reference_vars_to_consider.
16069 (ipa_reference_write_optimization_summary): Sanity check that
16070 reference_vars_to_consider is not allocated.
16072 2021-02-13 Levy Hsu <admin@levyhsu.com>
16075 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
16076 extend parameter to get_si_mem_base_reg declaration.
16077 (get_si_mem_base_reg): Add extend parameter. Set it.
16078 (analyze): Pass extend arg to get_si_mem_base_reg.
16079 (transform): Likewise. Use it when rewriting mems.
16080 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
16081 loads and emit sign/zero extending load followed by subreg move.
16083 2021-02-13 Jim Wilson <jimw@sifive.com>
16086 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
16087 exit when !reload_completed. Only perform check for compressed reg
16088 if reload_completed.
16089 (riscv_rtx_costs): In MEM case, when optimizing for size and
16090 shorten memrefs, if not compressible, then increase cost.
16092 2021-02-13 Jakub Jelinek <jakub@redhat.com>
16094 PR rtl-optimization/98439
16095 * recog.c (pass_split_before_regstack::gate): Enable even when
16096 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
16099 2021-02-13 Jakub Jelinek <jakub@redhat.com>
16102 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
16103 swap of V2SImode elements in memory into DImode memory rotate by 32.
16105 2021-02-12 Martin Sebor <msebor@redhat.com>
16107 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
16109 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
16111 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
16112 m_temp_obstack rather than m_obstack to allocate the temporary use.
16114 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
16116 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
16117 as read-modify operations.
16119 2021-02-12 Richard Biener <rguenther@suse.de>
16121 PR middle-end/38474
16122 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
16123 fbi->aa_walk_budget is bigger than zero. Update
16124 fbi->aa_walk_budget.
16125 (param_change_prob): Likewise.
16126 * ipa-prop.c (detect_type_change_from_memory_writes):
16127 Properly account walk_aliased_vdefs.
16128 (parm_preserved_before_stmt_p): Canonicalize updates.
16129 (parm_ref_data_preserved_p): Likewise.
16130 (parm_ref_data_pass_through_p): Likewise.
16131 (determine_known_aggregate_parts): Account own alias queries.
16133 2021-02-12 Martin Liska <mliska@suse.cz>
16135 * opts-common.c (decode_cmdline_option): Release werror_arg.
16136 * opts.c (gen_producer_string): Release output of
16137 gen_command_line_string.
16139 2021-02-12 Richard Biener <rguenther@suse.de>
16141 PR tree-optimization/38474
16142 * params.opt (-param=max-store-chains-to-track=): New param.
16143 (-param=max-stores-to-track=): Likewise.
16144 * doc/invoke.texi (max-store-chains-to-track): Document.
16145 (max-stores-to-track): Likewise.
16146 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
16148 (pass_store_merging::m_n_stores): Likewise.
16149 (pass_store_merging::terminate_and_process_chain): Update
16150 m_n_stores and m_n_chains.
16151 (pass_store_merging::process_store): Likewise. Terminate
16152 oldest chains if the number of stores or chains get too large.
16153 (imm_store_chain_info::terminate_and_process_chain): Dump
16156 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
16158 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
16159 the cold section, emit a nop before the directive if the previous
16160 active instruction can throw.
16162 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
16165 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
16166 memory addresses that are legal for quad word accesses.
16168 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
16171 * config/arm/thumb2.md (*doloop_end_internal): Generate
16172 alternative sequence to handle long range branches.
16174 2021-02-11 Joel Hutton <joel.hutton@arm.com>
16176 PR tree-optimization/98772
16177 * optabs-tree.c (supportable_half_widening_operation): New function
16178 to check for supportable V8QI->V8HI widening patterns.
16179 * optabs-tree.h (supportable_half_widening_operation): New function.
16180 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
16181 to create promotion stmts for V8QI->V8HI widening patterns.
16182 (vectorizable_conversion): Add case for V8QI->V8HI.
16184 2021-02-11 Richard Biener <rguenther@suse.de>
16186 * sparseset.h (SPARSESET_ELT_BITS): Remove.
16187 (SPARSESET_ELT_TYPE): Use unsigned int.
16188 * fwprop.c: Do not include sparseset.h.
16190 2021-02-10 Jakub Jelinek <jakub@redhat.com>
16193 * varasm.c (declare_weak): For -fsyntax-only, allow even
16194 TREE_ASM_WRITTEN function decls.
16196 2021-02-10 Jakub Jelinek <jakub@redhat.com>
16199 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
16200 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
16201 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
16202 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
16203 calling simplify_gen_subreg on it.
16205 2021-02-10 Martin Liska <mliska@suse.cz>
16207 * config/nvptx/nvptx.c (nvptx_option_override): Use
16208 flag_patchable_function_entry instead of the removed
16209 function_entry_patch_area_size.
16211 2021-02-10 Martin Liska <mliska@suse.cz>
16213 PR tree-optimization/99002
16214 PR tree-optimization/99026
16215 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
16216 leak when adjacent cases are merged.
16217 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
16219 (make_pass_lower_switch): Remove trailing whitespace.
16220 * tree-switch-conversion.h (release_clusters): New.
16222 2021-02-10 Richard Biener <rguenther@suse.de>
16224 PR rtl-optimization/99054
16225 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
16226 (fixup_partitions): Adjust.
16227 (rtl_verify_edges): Likewise.
16229 2021-02-10 Jakub Jelinek <jakub@redhat.com>
16231 PR middle-end/99007
16232 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
16233 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
16236 2021-02-10 Richard Biener <rguenther@suse.de>
16239 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
16242 2021-02-10 Richard Biener <rguenther@suse.de>
16244 PR tree-optimization/99024
16245 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
16246 clear loop->aux if it is associated with the destroyed loop_vinfo.
16248 2021-02-10 Martin Liska <mliska@suse.cz>
16250 PR tree-optimization/99002
16251 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
16254 2021-02-10 Martin Liska <mliska@suse.cz>
16257 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
16258 a reference exists.
16260 2021-02-10 Jakub Jelinek <jakub@redhat.com>
16263 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
16264 at class scope for DWARF5+.
16266 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
16268 PR rtl-optimization/96015
16269 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
16270 (relax_delay_slots): When deleting a jump to the next active
16271 instruction over a barrier, first delete the barrier if the
16272 jump is the only way to reach the target label.
16274 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
16276 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
16277 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
16278 vector multiplies and vect.alu for SSRA.
16279 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
16280 vect.mul cost field.
16281 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
16282 * config/arm/arm.c: Likewise.
16284 2021-02-09 Richard Biener <rguenther@suse.de>
16286 PR tree-optimization/98863
16287 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
16288 * tree-ssa-sccvn.c (last_pushed_avail): New global.
16289 (rpo_elim::eliminate_push_avail): Chain pushed avails.
16290 (unwind_state::avail_top): Add.
16291 (do_unwind): Rewrite unwinding of avail entries.
16292 (do_rpo_vn): Initialize last_pushed_avail and
16293 avail_top of the undo state.
16295 2021-02-09 Jakub Jelinek <jakub@redhat.com>
16297 PR middle-end/99004
16298 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
16299 const char * to char * and free those pointers after use.
16301 2021-02-09 Richard Biener <rguenther@suse.de>
16303 PR tree-optimization/99017
16304 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
16305 zero vector cost entries.
16307 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
16309 PR middle-end/98974
16310 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
16311 parameter in vectorizable_condition.
16313 2021-02-08 Richard Biener <rguenther@suse.de>
16316 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
16318 2021-02-08 Martin Liska <mliska@suse.cz>
16321 * cfgexpand.c (pass_expand::execute): Parse per-function option
16322 flag_patchable_function_entry and use it.
16323 * common.opt: Remove function_entry_patch_area_size and
16324 function_entry_patch_area_start global variables.
16325 * opts.c (parse_and_check_patch_area): New function.
16326 (common_handle_option): Use it.
16327 * opts.h (parse_and_check_patch_area): New function.
16328 * toplev.c (process_options): Parse and use
16329 function_entry_patch_area_size.
16331 2021-02-08 Martin Sebor <msebor@redhat.com>
16333 * doc/extend.texi (attribute malloc): Correct typos.
16335 2021-02-05 Nathan Sidwell <nathan@acm.org>
16338 * gcc.c (driver::maybe_run_linker): Check for input file
16339 accessibility if not linking.
16341 2021-02-05 Richard Biener <rguenther@suse.de>
16343 PR tree-optimization/98855
16344 * tree-vectorizer.h (add_stmt_cost): New overload.
16345 * tree-vect-slp.c (li_cost_vec_cmp): New.
16346 (vect_bb_slp_scalar_cost): Cost individual loop regions
16347 separately. Account for the scalar instance root stmt.
16349 2021-02-05 Tom de Vries <tdevries@suse.de>
16352 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
16354 (bit_test_cluster::emit): Reuse location_t for newly created
16356 (switch_decision_tree::try_switch_expansion): Preserve
16358 * tree-switch-conversion.h: Change function signatures.
16360 2021-02-05 Jakub Jelinek <jakub@redhat.com>
16363 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
16364 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
16365 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
16366 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
16368 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16370 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
16371 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
16372 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
16373 (vget_high_f16): Reimplement using new builtin.
16374 (vget_high_f32): Likewise.
16375 (vget_high_f64): Likewise.
16376 (vget_high_p8): Likewise.
16377 (vget_high_p16): Likewise.
16378 (vget_high_p64): Likewise.
16379 (vget_high_s8): Likewise.
16380 (vget_high_s16): Likewise.
16381 (vget_high_s32): Likewise.
16382 (vget_high_s64): Likewise.
16383 (vget_high_u8): Likewise.
16384 (vget_high_u16): Likewise.
16385 (vget_high_u32): Likewise.
16386 (vget_high_u64): Likewise.
16388 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16390 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
16391 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
16392 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
16393 (vget_low_f16): Reimplement using new builtin.
16394 (vget_low_f32): Likewise.
16395 (vget_low_f64): Likewise.
16396 (vget_low_p8): Likewise.
16397 (vget_low_p16): Likewise.
16398 (vget_low_p64): Likewise.
16399 (vget_low_s8): Likewise.
16400 (vget_low_s16): Likewise.
16401 (vget_low_s32): Likewise.
16402 (vget_low_s64): Likewise.
16403 (vget_low_u8): Likewise.
16404 (vget_low_u16): Likewise.
16405 (vget_low_u32): Likewise.
16406 (vget_low_u64): Likewise.
16408 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
16410 * gcc.c (print_multilib_info): Check all required argument is provided
16413 2021-02-05 liuhongt <hongtao.liu@intel.com>
16416 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
16417 generate integer mask comparison for 128/256-bits vector when
16418 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
16419 delete redundant !maskcmp condition.
16420 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
16422 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
16423 condition directly to if (maskcmp), add extra check for
16424 cmpmode, it should be MODE_INT.
16425 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
16426 parameters op_true/op_false.
16427 (ix86_use_mask_cmp_p): New.
16429 2021-02-05 liuhongt <hongtao.liu@intel.com>
16432 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
16433 Remove m_GENERIC from ~list.
16434 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
16436 2021-02-04 David Malcolm <dmalcolm@redhat.com>
16439 * diagnostic-show-locus.c (compatible_locations_p): Require
16440 locations in the same macro map to be either both from the
16441 macro definition, or both from the macro arguments.
16443 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
16445 * config/aarch64/aarch64-simd-builtins.def: Add
16446 [su]mull_hi_lane[q] builtin generator macros.
16447 * config/aarch64/aarch64-simd.md
16448 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
16449 (aarch64_<su>mull_hi_lane<mode>): Define.
16450 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
16451 (aarch64_<su>mull_hi_laneq<mode>): Define.
16452 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
16453 builtin instead of inline asm.
16454 (vmull_high_lane_s32): Likewise.
16455 (vmull_high_lane_u16): Likewise.
16456 (vmull_high_lane_u32): Likewise.
16457 (vmull_high_laneq_s16): Likewise.
16458 (vmull_high_laneq_s32): Likewise.
16459 (vmull_high_laneq_u16): Likewise.
16460 (vmull_high_laneq_u32): Liekwise.
16462 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
16464 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
16465 builtin generator macros.
16466 * config/aarch64/aarch64-simd.md
16467 (aarch64_<su>mull_hi_n<mode>_insn): Define.
16468 (aarch64_<su>mull_hi_n<mode>): Define.
16469 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
16470 instead of inline asm.
16471 (vmull_high_n_s32): Likewise.
16472 (vmull_high_n_u16): Likewise.
16473 (vmull_high_n_u32): Likewise.
16475 2021-02-04 Richard Biener <rguenther@suse.de>
16477 PR tree-optimization/98855
16478 * tree-vect-loop.c (vectorizable_phi): Do not cost
16479 single-argument PHIs.
16480 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
16481 * tree-vect-stmts.c (vectorizable_bswap): Also perform
16482 costing for SLP operation.
16484 2021-02-04 Martin Liska <mliska@suse.cz>
16486 * doc/extend.texi: Mention -mprefer-vector-width in target
16489 2021-02-03 Martin Sebor <msebor@redhat.com>
16491 PR tree-optimization/98937
16492 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
16493 Flush pointer_query cache.
16495 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
16497 * config/rs6000/genfusion.pl (gen_2logical): Add missing
16498 fixes based on patch review.
16499 * config/rs6000/fusion.md: Regenerate file.
16501 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
16503 * config/rs6000/t-rs6000: Comment out auto generation of
16506 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
16508 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
16509 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
16510 (output_file_start): Add gfx908.
16511 * config/gcn/gcn.opt (gpu_type): Add gfx908.
16512 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
16513 (MULTILIB_DIRNAMES): Add gfx908.
16514 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
16515 (main): Recognize gfx908.
16516 * config/gcn/t-omp-device: Add gfx908.
16518 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
16520 * config/aarch64/aarch64-simd-builtins.def: Add
16521 [su]mlsl_hi_lane[q] builtin macro generators.
16522 * config/aarch64/aarch64-simd.md
16523 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
16524 (aarch64_<su>mlsl_hi_lane<mode>): Define.
16525 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
16526 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
16527 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
16528 builtin instead of inline asm.
16529 (vmlsl_high_lane_s32): Likewise.
16530 (vmlsl_high_lane_u16): Likewise.
16531 (vmlsl_high_lane_u32): Likewise.
16532 (vmlsl_high_laneq_s16): Likewise.
16533 (vmlsl_high_laneq_s32): Likewise.
16534 (vmlsl_high_laneq_u16): Likewise.
16535 (vmlsl_high_laneq_u32): Likewise.
16536 (vmlal_high_laneq_u32): Likewise.
16538 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
16540 * config/aarch64/aarch64-simd-builtins.def: Add
16541 [su]mlal_hi_lane[q] builtin generator macros.
16542 * config/aarch64/aarch64-simd.md
16543 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
16544 (aarch64_<su>mlal_hi_lane<mode>): Define.
16545 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
16546 (aarch64_<su>mlal_hi_laneq<mode>): Define.
16547 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
16548 builtin instead of inline asm.
16549 (vmlal_high_lane_s32): Likewise.
16550 (vmlal_high_lane_u16): Likewise.
16551 (vmlal_high_lane_u32): Likewise.
16552 (vmlal_high_laneq_s16): Likewise.
16553 (vmlal_high_laneq_s32): Likewise.
16554 (vmlal_high_laneq_u16): Likewise.
16555 (vmlal_high_laneq_u32): Likewise.
16557 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
16559 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
16560 builtin generator macros.
16561 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
16563 (aarch64_<su>mlsl_hi_n<mode>): Define.
16564 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
16565 instead of inline asm.
16566 (vmlsl_high_n_s32): Likewise.
16567 (vmlsl_high_n_u16): Likewise.
16568 (vmlsl_high_n_u32): Likewise.
16570 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
16572 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
16573 builtin generator macros.
16574 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
16576 (aarch64_<su>mlal_hi_n<mode>): Define.
16577 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
16578 instead of inline asm.
16579 (vmlal_high_n_s32): Likewise.
16580 (vmlal_high_n_u16): Likewise.
16581 (vmlal_high_n_u32): Likewise.
16583 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
16585 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
16587 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
16589 (aarch64_<su>mlal_hi<mode>_insn): This.
16590 (aarch64_<su>mlal_hi<mode>): Define.
16591 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
16592 instead of inline asm.
16593 (vmlal_high_s16): Likewise.
16594 (vmlal_high_s32): Likewise.
16595 (vmlal_high_u8): Likewise.
16596 (vmlal_high_u16): Likewise.
16597 (vmlal_high_u32): Likewise.
16599 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
16601 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
16602 after calling alter_subreg() on a (mem).
16604 2021-02-03 Martin Liska <mliska@suse.cz>
16607 * lto-streamer-out.c (produce_lto_section): Fill up missing
16609 * lto-streamer.h (struct lto_section): Add _padding field.
16611 2021-02-03 Richard Biener <rguenther@suse.de>
16613 * lto-streamer.c (lto_get_section_name): Free temporary
16615 * tree-loop-distribution.c
16616 (loop_distribution::merge_dep_scc_partitions): Free edge data.
16618 2021-02-03 Jakub Jelinek <jakub@redhat.com>
16620 PR middle-end/97487
16621 * ifcvt.c (noce_can_force_operand): New function.
16622 (noce_emit_move_insn): Use it.
16623 (noce_try_sign_mask): Likewise. Formatting fix.
16625 2021-02-03 Jakub Jelinek <jakub@redhat.com>
16627 PR middle-end/97971
16628 * lra-constraints.c (process_alt_operands): For inline asm, don't call
16629 fatal_insn, but instead return false.
16631 2021-02-03 Jakub Jelinek <jakub@redhat.com>
16633 PR tree-optimization/98287
16634 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
16637 2021-02-03 Tamar Christina <tamar.christina@arm.com>
16639 PR tree-optimization/98928
16640 * tree-vect-loop.c (vect_analyze_loop_2): Change
16641 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
16642 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
16643 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
16644 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
16646 2021-02-02 Richard Biener <rguenther@suse.de>
16648 * gimple-loop-interchange.cc (prepare_data_references):
16650 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
16651 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
16652 * tree-vect-stmts.c (vectorizable_condition): Do not
16654 (vectorizable_comparison): Likewise.
16656 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16658 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
16659 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
16660 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
16661 (vrsqrteq_u32): Likewise.
16663 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16665 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
16666 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
16667 (aarch64_sqxtun2<mode>_be): Likewise.
16668 (aarch64_sqxtun2<mode>): Likewise.
16669 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
16670 (vqmovun_high_s32): Likewise.
16671 (vqmovun_high_s64): Likewise.
16672 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
16674 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16676 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
16678 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
16680 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16682 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
16683 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
16684 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
16685 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
16686 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
16687 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
16688 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
16689 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
16691 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16693 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
16694 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
16695 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
16697 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16699 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
16700 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
16702 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16704 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
16705 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
16706 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
16707 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
16708 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
16709 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
16710 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
16711 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
16712 NONE builtin flags.
16714 2021-02-02 Jakub Jelinek <jakub@redhat.com>
16716 PR tree-optimization/98848
16717 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
16718 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
16720 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
16723 * expr.c: Check mode before calling store_expr.
16725 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
16727 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
16729 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
16730 instruction using expression ior.
16731 (mve_vornq_u<mode>): New expander.
16732 (mve_vornq_f<mode>): Use ior code instead of unspec.
16733 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
16735 2021-02-02 Alexandre Oliva <oliva@adacore.com>
16737 * tree-nested.c (convert_nonlocal_reference_op): Move
16738 current_function_decl restore after re-gimplification.
16739 (convert_local_reference_op): Likewise.
16741 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16743 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
16745 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
16747 (aarch64_rshrn<mode>_insn_be): Likewise.
16748 (aarch64_rshrn<mode>): Likewise.
16749 (aarch64_rshrn2<mode>_insn_le): Likewise.
16750 (aarch64_rshrn2<mode>_insn_be): Likewise.
16751 (aarch64_rshrn2<mode>): Likewise.
16752 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
16753 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
16755 (vrshrn_high_n_s32): Likewise.
16756 (vrshrn_high_n_s64): Likewise.
16757 (vrshrn_high_n_u16): Likewise.
16758 (vrshrn_high_n_u32): Likewise.
16759 (vrshrn_high_n_u64): Likewise.
16760 (vrshrn_n_s16): Likewise.
16761 (vrshrn_n_s32): Likewise.
16762 (vrshrn_n_s64): Likewise.
16763 (vrshrn_n_u16): Likewise.
16764 (vrshrn_n_u32): Likewise.
16765 (vrshrn_n_u64): Likewise.
16767 2021-02-01 Sergei Trofimovich <siarheit@google.com>
16769 PR tree-optimization/98499
16770 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
16771 conservatively and assume all possible side-effects.
16773 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16775 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
16776 vec_unpacku_hi_): Define builtins.
16777 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
16779 (vmovl_high_s16): Likewise.
16780 (vmovl_high_s32): Likewise.
16781 (vmovl_high_u8): Likewise.
16782 (vmovl_high_u16): Likewise.
16783 (vmovl_high_u32): Likewise.
16785 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16787 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
16789 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
16791 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
16793 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
16795 (vabdl_s16): Likewise.
16796 (vabdl_s32): Likewise.
16797 (vabdl_u8): Likewise.
16798 (vabdl_u16): Likewise.
16799 (vabdl_u32): Likewise.
16800 * config/aarch64/iterators.md (ABDL): New int iterator.
16801 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
16803 2021-02-01 Martin Sebor <msebor@redhat.com>
16805 * tree.h (BLOCK_VARS): Add comment.
16806 (BLOCK_SUBBLOCKS): Same.
16807 (BLOCK_SUPERCONTEXT): Same.
16808 (BLOCK_ABSTRACT_ORIGIN): Same.
16809 (inlined_function_outer_scope_p): Same.
16811 2021-02-01 Martin Sebor <msebor@redhat.com>
16813 PR middle-end/97172
16814 * attribs.c (attr_access::free_lang_data): Define new function.
16815 * attribs.h (attr_access::free_lang_data): Declare new function.
16817 2021-02-01 Richard Biener <rguenther@suse.de>
16819 * vec.h (auto_vec::auto_vec): Add memory stat parameters
16821 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
16823 2021-02-01 Tamar Christina <tamar.christina@arm.com>
16825 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
16826 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
16828 2021-02-01 Richard Biener <rguenther@suse.de>
16830 PR rtl-optimization/98863
16831 * config/i386/i386-features.c (convert_scalars_to_vector):
16832 Set DF_RD_PRUNE_DEAD_DEFS.
16834 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
16836 * system.h (SIZE_MAX): Define if not already defined.
16838 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
16840 * config/rs6000/genfusion.pl (gen_2logical): New function to
16841 generate patterns for logical-logical fusion.
16842 * config/rs6000/fusion.md: Regenerated patterns.
16843 * config/rs6000/rs6000-cpus.def: Add
16844 OPTION_MASK_P10_FUSION_2LOGICAL.
16845 * config/rs6000/rs6000.c (rs6000_option_override_internal):
16846 Enable logical-logical fusion for p10.
16847 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
16849 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
16851 * config/rs6000/rs6000.opt: Add periods to new AIX options.
16853 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
16855 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
16856 (mabi=vec-default): New.
16857 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
16858 __EXTABI__ for AIX Vector extended ABI.
16859 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
16861 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
16863 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
16865 2021-01-30 Jakub Jelinek <jakub@redhat.com>
16867 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
16868 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
16870 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
16873 * lra-constraints.c (in_class_p): Don't narrow class only for REG
16876 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
16878 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
16879 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
16880 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
16882 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
16884 PR tree-optimization/98866
16885 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
16886 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
16887 (gori_map::m_maybe_invariant): Rename from all_outgoing.
16888 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
16889 (gori_map::is_export_p): Ditto.
16890 (gori_map::calculate_gori): Ditto.
16891 (gori_compute::set_range_invariant): New.
16892 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
16893 invariant for pointers evaluating to [1, +INF].
16895 2021-01-29 Richard Biener <rguenther@suse.de>
16897 PR rtl-optimization/98863
16898 * config/i386/i386-features.c (remove_partial_avx_dependency):
16899 Do not perform DF analysis.
16900 (pass_data_remove_partial_avx_dependency): Remove
16903 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
16905 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
16906 builtin generator macros.
16907 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
16909 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
16910 instead of inline asm.
16911 (vmull_n_s32): Likewise.
16912 (vmull_n_u16): Likewise.
16913 (vmull_n_u32): Likewise.
16915 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16917 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
16919 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
16921 (aarch64_<sur>abdl2<mode>): ... This.
16922 (<sur>sadv16qi): Adjust use of above.
16923 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
16925 (vabdl_high_s16): Likewise.
16926 (vabdl_high_s32): Likewise.
16927 (vabdl_high_u8): Likewise.
16928 (vabdl_high_u16): Likewise.
16929 (vabdl_high_u32): Likewise.
16931 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16933 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
16935 (uabal2): Likewise.
16936 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
16938 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
16940 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
16942 (vabal_high_s16): Likewise.
16943 (vabal_high_s32): Likewise.
16944 (vabal_high_u8): Likewise.
16945 (vabal_high_u16): Likewise.
16946 (vabal_high_u32): Likewise.
16947 * config/aarch64/iterators.md (ABAL2): New mode iterator.
16948 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
16950 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16952 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
16955 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
16957 (aarch64_<sur>abal<mode>): ... This
16958 (<sur>sadv16qi): Adust use of the above.
16959 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
16961 (vabal_s16): Likewise.
16962 (vabal_s32): Likewise.
16963 (vabal_u8): Likewise.
16964 (vabal_u16): Likewise.
16965 (vabal_u32): Likewise.
16967 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16969 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
16971 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
16973 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
16975 (vaddlv_s16): Likewise.
16976 (vaddlv_u8): Likewise.
16977 (vaddlv_u16): Likewise.
16978 (vaddlvq_s8): Likewise.
16979 (vaddlvq_s16): Likewise.
16980 (vaddlvq_s32): Likewise.
16981 (vaddlvq_u8): Likewise.
16982 (vaddlvq_u16): Likewise.
16983 (vaddlvq_u32): Likewise.
16984 (vaddlv_s32): Likewise.
16985 (vaddlv_u32): Likewise.
16986 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
16987 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
16988 (Vwstype): New mode attribute.
16990 (VWIDE_S): Likewise.
16991 (USADDLV): New int iterator.
16992 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
16994 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
16996 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
16997 builtin generator macros.
16998 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
17000 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
17001 instead of inline asm.
17002 (vmlsl_lane_s32): Likewise.
17003 (vmlsl_lane_u16): Likewise.
17004 (vmlsl_lane_u32): Likewise.
17005 (vmlsl_laneq_s16): Likewise.
17006 (vmlsl_laneq_s32): Likewise.
17007 (vmlsl_laneq_u16): Likewise.
17008 (vmlsl_laneq_u32): Likewise.
17010 2021-01-29 Richard Biener <rguenther@suse.de>
17012 * doc/invoke.texi (--param max-gcse-memory): Document unit
17014 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
17015 * params.opt (--param max-gcse-memory): Adjust default and
17016 document unit of size.
17018 2021-01-29 Richard Biener <rguenther@suse.de>
17020 PR rtl-optimization/98863
17021 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
17022 HOST_WIDE_INT for the memory estimate.
17024 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
17025 Richard Biener <rguenther@suse.de>
17027 PR tree-optimization/97627
17028 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
17029 Do not analyze fake edges.
17031 2021-01-29 Richard Biener <rguenther@suse.de>
17033 PR rtl-optimization/98144
17034 * df.h (df_mir_bb_info): Add con_visited member.
17035 * df-problems.c (df_mir_alloc): Initialize con_visited,
17036 do not fully populate IN and OUT.
17037 (df_mir_reset): Likewise.
17038 (df_mir_confluence_0): Set con_visited.
17039 (df_mir_confluence_n): Properly handle implicitely
17040 fully populated IN and OUT as designated by con_visited
17041 and update con_visited accordingly.
17043 2021-01-29 Jakub Jelinek <jakub@redhat.com>
17046 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
17047 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
17048 && !TARGET_REALLY_IWMMXT to conditions.
17050 2021-01-29 Jakub Jelinek <jakub@redhat.com>
17053 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
17056 2021-01-28 Marek Polacek <polacek@redhat.com>
17059 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
17060 the main variant, maybe reset it in its variants too.
17061 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
17062 (check_aligned_type): Check if TYPE_USER_ALIGN match.
17064 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
17067 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
17068 of constant zero for comparisons.
17070 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
17072 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
17073 support for mapping built-in function names for long double
17074 built-in functions if long double is IEEE 128-bit.
17076 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
17078 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
17079 builtin generator macros.
17080 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
17082 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
17083 instead of inline asm.
17084 (vmlsl_n_s32): Likewise.
17085 (vmlsl_n_u16): Likewise.
17086 (vmlsl_n_u32): Likewise.
17088 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
17090 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
17091 builtin generator macros.
17092 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
17094 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
17095 instead of inline asm.
17096 (vmlal_n_s32): Likewise.
17097 (vmlal_n_u16): Likewise.
17098 (vmlal_n_u32): Likewise.
17100 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17102 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
17104 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
17106 (aarch64_shrn2<mode>_insn_be): Likewise.
17107 (aarch64_shrn2<mode>): Likewise.
17108 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
17110 (vshrn_high_n_s32): Likewise.
17111 (vshrn_high_n_s64): Likewise.
17112 (vshrn_high_n_u16): Likewise.
17113 (vshrn_high_n_u32): Likewise.
17114 (vshrn_high_n_u64): Likewise.
17116 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17118 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
17120 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
17122 (aarch64_shrn<mode>_insn_be): Likewise.
17123 (aarch64_shrn<mode>): Likewise.
17124 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
17126 (vshrn_n_s32): Likewise.
17127 (vshrn_n_s64): Likewise.
17128 (vshrn_n_u16): Likewise.
17129 (vshrn_n_u32): Likewise.
17130 (vshrn_n_u64): Likewise.
17131 * config/aarch64/iterators.md (vn_mode): New mode attribute.
17133 2021-01-28 Richard Biener <rguenther@suse.de>
17135 PR rtl-optimization/80960
17136 * dse.c (check_mem_read_rtx): Call get_addr on the
17139 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
17140 David Edelsohn <dje.gcc@gmail.com>
17143 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17144 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
17146 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
17148 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
17149 wrapper call rs6000_expand_vector_set_var for cleanup. Call
17150 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
17152 (rs6000_expand_vector_set_var): Delete.
17153 (rs6000_expand_vector_set_var_p9): Make static.
17154 (rs6000_expand_vector_set_var_p8): Make static.
17156 2021-01-28 Xing GUO <higuoxing@gmail.com>
17158 * common/config/riscv/riscv-common.c
17159 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
17160 when `p` extension exists.
17162 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
17164 PR rtl-optimization/97684
17165 * ira.c (ira): Call ira_set_pseudo_classes before
17166 update_equiv_regs when it is necessary.
17168 2021-01-27 Jakub Jelinek <jakub@redhat.com>
17171 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
17172 %w0, %w1 and %2 instead of %0, %1 and %2.
17174 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
17176 * config/rs6000/genfusion.pl: New script to generate
17177 define_insn_and_split patterns so combine can arrange fused
17178 instructions next to each other.
17179 * config/rs6000/fusion.md: New file, generated fused instruction
17180 patterns for combine.
17181 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
17182 (non_update_memory_operand): New predicate.
17183 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
17184 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
17186 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
17188 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17189 Automatically set OPTION_MASK_P10_FUSION and
17190 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
17191 (rs600_opt_masks): Allow -mpower10-fusion
17192 in function attributes.
17193 (address_is_non_pfx_d_or_x): New function.
17194 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
17195 * config/rs6000/rs6000.md: Include fusion.md.
17196 * config/rs6000/rs6000.opt: Add -mpower10-fusion
17197 and -mpower10-fusion-ld-cmpi.
17198 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
17200 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
17202 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
17203 builtin generator macros.
17204 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
17206 (aarch64_<su>mlal<mode>): This.
17207 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
17208 instead of inline asm.
17209 (vmlal_s16): Likewise.
17210 (vmlal_s32): Likewise.
17211 (vmlal_u8): Likewise.
17212 (vmlal_u16): Likewise.
17213 (vmlal_u32): Likewise.
17215 2021-01-27 Richard Biener <rguenther@suse.de>
17217 PR tree-optimization/98854
17218 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
17219 PHIs from scalars when the number of CTORs matches the
17220 number of children.
17222 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
17224 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
17226 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
17228 (aarch64_mls_n<mode>): This.
17229 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
17231 (vmls_n_s32): Likewise.
17232 (vmls_n_u16): Likewise.
17233 (vmls_n_u32): Likewise.
17234 (vmlsq_n_s16): Likewise.
17235 (vmlsq_n_s32): Likewise.
17236 (vmlsq_n_u16): Likewise.
17237 (vmlsq_n_u32): Likewise.
17239 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
17241 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
17243 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
17245 (vmls_s16): Likewise.
17246 (vmls_s32): Likewise.
17247 (vmls_u8): Likewise.
17248 (vmls_u16): Likewise.
17249 (vmls_u32): Likewise.
17250 (vmlsq_s8): Likewise.
17251 (vmlsq_s16): Likewise.
17252 (vmlsq_s32): Likewise.
17253 (vmlsq_u8): Likewise.
17254 (vmlsq_u16): Likewise.
17255 (vmlsq_u32): Likewise.
17257 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
17259 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
17261 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
17263 (aarch64_mla_n<mode>): This.
17264 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
17266 (vmla_n_s32): Likewise.
17267 (vmla_n_u16): Likewise.
17268 (vmla_n_u32): Likewise.
17269 (vmlaq_n_s16): Likewise.
17270 (vmlaq_n_s32): Likewise.
17271 (vmlaq_n_u16): Likewise.
17272 (vmlaq_n_u32): Likewise.
17274 2021-01-27 liuhongt <hongtao.liu@intel.com>
17277 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
17278 (*sse2_eq<mode>3): Ditto.
17280 2021-01-27 Jakub Jelinek <jakub@redhat.com>
17282 * tree-pass.h (PROP_trees): Rename to ...
17283 (PROP_gimple): ... this.
17284 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
17285 * passes.c (execute_function_dump, execute_function_todo,
17286 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
17287 * varpool.c (ctor_for_folding): Likewise.
17289 2021-01-27 Jakub Jelinek <jakub@redhat.com>
17291 PR tree-optimization/97260
17292 * varpool.c: Include tree-pass.h.
17293 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
17294 non-TREE_SIDE_EFFECTS automatic variables.
17296 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
17298 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
17300 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
17301 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
17302 (gen_compile_unit_die): Recognise C++23.
17304 2021-01-26 Jakub Jelinek <jakub@redhat.com>
17307 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
17310 2021-01-26 Jakub Jelinek <jakub@redhat.com>
17313 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
17314 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
17315 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
17317 2021-01-26 Richard Biener <rguenther@suse.de>
17319 * gimple-pretty-print.c (dump_binary_rhs): Handle
17320 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
17322 2021-01-26 Richard Biener <rguenther@suse.de>
17324 PR middle-end/98726
17325 * tree.h (vector_cst_int_elt): Remove.
17326 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
17329 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
17331 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
17332 for V64DFmode min/max reductions.
17334 2021-01-26 Jakub Jelinek <jakub@redhat.com>
17336 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
17337 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
17338 two halves, one with x and the other with const0_rtx, ordered
17339 depending on endianity.
17341 2021-01-26 Alexandre Oliva <oliva@adacore.com>
17343 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
17344 temporaries not seen in binding block, and not about to be
17345 added as gimple variables.
17347 2021-01-25 Martin Sebor <msebor@redhat.com>
17350 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
17352 2021-01-25 Martin Liska <mliska@suse.cz>
17354 * value-prof.c (get_nth_most_common_value): Use %s instead
17357 2021-01-25 Jakub Jelinek <jakub@redhat.com>
17360 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
17361 readelf -wi is able to read the emitted .debug_info back.
17362 * configure: Regenerated.
17364 2021-01-25 Martin Liska <mliska@suse.cz>
17366 PR gcov-profile/98739
17367 * common.opt: Add missing sign symbol.
17368 * value-prof.c (get_nth_most_common_value): Restore handling
17369 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
17370 PROFILE_REPRODUCIBILITY_MULTITHREADED.
17372 2021-01-25 Richard Biener <rguenther@suse.de>
17374 PR middle-end/98807
17375 * tree.c (vector_element_bits): Always use precision of
17376 the element type for boolean vectors.
17378 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
17380 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
17381 (ENDFILE_SPEC): Evaluate qnolinkcmds.
17383 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
17385 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
17386 nostartfiles handling since this is already done by
17387 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
17388 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
17389 is already done by LINK_COMMAND_SPEC.
17390 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
17391 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
17394 2021-01-25 Jakub Jelinek <jakub@redhat.com>
17397 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
17398 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
17399 value rather than host size_t.
17400 (fold_const_call): Change type of s2 from size_t to
17401 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
17402 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
17403 instead of s2 as last argument.
17405 2021-01-25 Tamar Christina <tamar.christina@arm.com>
17407 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
17408 VCMLA_OP, VCMUL_OP): New.
17409 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
17410 * config/arm/neon.md (cmul<conj_op><mode>3): New.
17411 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
17412 UNSPEC_VCMUL_CONJ): New.
17413 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
17414 cml<fcmac1><conj_op><mode>4): New.
17416 2021-01-23 Jakub Jelinek <jakub@redhat.com>
17419 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
17421 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
17423 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
17425 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
17427 (vmla_s16): Likewise.
17428 (vmla_s32): Likewise.
17429 (vmla_u8): Likewise.
17430 (vmla_u16): Likewise.
17431 (vmla_u32): Likewise.
17432 (vmlaq_s8): Likewise.
17433 (vmlaq_s16): Likewise.
17434 (vmlaq_s32): Likewise.
17435 (vmlaq_u8): Likewise.
17436 (vmlaq_u16): Likewise.
17437 (vmlaq_u32): Likewise.
17439 2021-01-22 David Malcolm <dmalcolm@redhat.com>
17441 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
17444 2021-01-22 Jakub Jelinek <jakub@redhat.com>
17447 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
17448 filenames to emit, still emit the required 0 index directory and
17449 filename entries that match DW_AT_comp_dir and DW_AT_name of the
17452 2021-01-22 Marek Polacek <polacek@redhat.com>
17455 * doc/invoke.texi: Update C++ ABI Version 15 description.
17457 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17459 PR tree-optimization/98766
17460 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
17461 comparing against type size with param_avoid_fma_max_bits.
17463 2021-01-22 Richard Biener <rguenther@suse.de>
17465 PR middle-end/98793
17466 * tree.c (vector_element_bits): Key single-bit bool vector on
17467 integer mode rather than not vector mode.
17469 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
17472 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17473 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
17475 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
17476 to call different path for P8 and P9.
17477 (rs6000_expand_vector_set_var_p9): New function.
17478 (rs6000_expand_vector_set_var_p8): New function.
17480 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
17484 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17485 Ajdust variable index vec_insert from address dereference to
17486 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
17487 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
17489 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
17491 2021-01-22 Martin Liska <mliska@suse.cz>
17493 PR gcov-profile/98739
17494 * profile.c (compute_value_histograms): Drop time profile for
17495 -fprofile-reproducible=multithreaded.
17497 2021-01-22 Nathan Sidwell <nathan@acm.org>
17499 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
17502 2021-01-22 Richard Biener <rguenther@suse.de>
17504 PR middle-end/98773
17505 * tree-data-ref.c (initalize_matrix_A): Revert previous
17506 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
17508 2021-01-22 Jakub Jelinek <jakub@redhat.com>
17510 PR tree-optimization/90248
17511 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
17512 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
17514 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
17515 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
17517 2021-01-22 Jakub Jelinek <jakub@redhat.com>
17519 PR tree-optimization/98255
17520 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
17521 extend index - low_bound from sizetype's precision rather than index
17523 (get_addr_base_and_unit_offset_1): Likewise.
17524 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
17525 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
17527 2021-01-22 Richard Biener <rguenther@suse.de>
17529 PR tree-optimization/98786
17530 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
17531 adding new uses of abnormals. Verify we deal with a conditional
17534 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17537 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
17539 2021-01-22 liuhongt <hongtao.liu@intel.com>
17543 * config/i386/sse.md (VI_128_256): New mode iterator.
17544 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
17545 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
17546 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
17547 define_insn_and_split to lower avx512 vector comparison to avx
17548 version when dest is vector.
17549 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
17550 define_insn_and_split for negating the comparison result.
17551 * config/i386/predicates.md (float_vector_all_ones_operand):
17553 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
17554 general NOT operator without UNSPEC_MASKOP.
17556 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
17558 PR rtl-optimization/98777
17559 * lra-int.h (lra_pmode_pseudo): New extern.
17560 * lra.c (lra_pmode_pseudo): New global.
17562 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
17564 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
17566 * fwprop.c (fwprop_propagation::classify_result): Allow
17567 (subreg (mem)) simplifications.
17569 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17571 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
17573 (aarch64_sqdmlal<mode>): ... This...
17574 (aarch64_sqdmlsl<mode>): ... And this.
17575 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
17576 (aarch64_sqdmlal_lane<mode>): ... This...
17577 (aarch64_sqdmlsl_lane<mode>): ... And this.
17578 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
17579 (aarch64_sqdmlsl_laneq<mode>): ... This...
17580 (aarch64_sqdmlal_laneq<mode>): ... And this.
17581 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
17582 (aarch64_sqdmlsl_n<mode>): ... This...
17583 (aarch64_sqdmlal_n<mode>): ... And this.
17584 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
17585 (aarch64_sqdmlal2<mode>_internal): ... This...
17586 (aarch64_sqdmlsl2<mode>_internal): ... And this.
17588 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
17590 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
17592 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
17595 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
17597 2021-01-21 liuhongt <hongtao.liu@intel.com>
17599 PR rtl-optimization/98694
17600 * regcprop.c (copy_value): If SRC had been assigned a mode
17601 narrower than the copy, we can't link DEST into the chain even
17602 they have same hard_regno_nregs(i.e. HImode/SImode in i386
17605 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17607 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
17608 Convert to define_insn_and_split. Split into simple move when moving
17611 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
17613 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
17614 Adjust comment. Simplify code.
17616 2021-01-20 Jakub Jelinek <jakub@redhat.com>
17619 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
17620 with DW_FORM_line_strp form.
17621 (prune_unused_types_update_strings): Don't add into debug_str_hash
17622 indirect strings with DW_FORM_line_strp form.
17623 (adjust_name_comp_dir): New function.
17624 (dwarf2out_finish): Call it on CU DIEs after resetting
17625 debug_line_str_hash.
17627 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
17629 PR rtl-optimization/98722
17630 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
17631 has no 3-op add insn to transform insns containing two pluses.
17633 2021-01-20 Richard Biener <rguenther@suse.de>
17635 * hwint.h (add_hwi): New function.
17636 (mul_hwi): Likewise.
17637 * tree-data-ref.c (initialize_matrix_A): Properly translate
17638 tree constants and avoid HOST_WIDE_INT_MIN.
17639 (lambda_matrix_row_add): Avoid undefined integer overflow
17640 and return true on such overflow.
17641 (lambda_matrix_right_hermite): Handle overflow from
17642 lambda_matrix_row_add gracefully. Simplify previous fix.
17643 (analyze_subscript_affine_affine): Likewise.
17645 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
17647 PR tree-optimization/96674
17648 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
17649 x >= y && y != XXX_MIN --> x > y - 1
17651 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
17653 PR tree-optimization/98535
17654 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
17655 If the high and low permutes are the same, remove the high permutes
17656 from the working set and only continue with the low ones.
17658 2021-01-20 Jakub Jelinek <jakub@redhat.com>
17660 PR tree-optimization/98721
17661 * builtins.c (access_ref::inform_access): Don't assume
17662 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
17663 object whenever allocfn is NULL, rather than only when DECL_P
17664 is true. Use %qE instead of %qD for that. Formatting fixes.
17666 2021-01-20 Richard Biener <rguenther@suse.de>
17668 PR tree-optimization/98758
17669 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
17670 (lambda_matrix_right_hermite): Avoid undefinedness with
17671 signed integer abs and multiplication.
17672 (analyze_subscript_affine_affine): Use lambda_int.
17674 2021-01-20 David Malcolm <dmalcolm@redhat.com>
17677 * dwarf2out.c (output_line_info): Rename static variable
17678 "generation", moving it out of the function to...
17679 (output_line_info_generation): New.
17680 (init_sections_and_labels): Likewise, renaming the variable to...
17681 (init_sections_and_labels_generation): New.
17682 (dwarf2out_c_finalize): Reset the new variables.
17684 2021-01-19 Martin Sebor <msebor@redhat.com>
17686 PR middle-end/98664
17687 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
17688 all functions, even if they're not declared artificial or inline.
17689 * tree.c (tree_inlined_location): Use macro expansion location
17690 only if scope traversal fails to expose one.
17692 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
17694 PR rtl-optimization/92294
17695 * alias.c (compare_base_symbol_refs): Take an extra parameter
17696 and add the distance between two symbols to it. Enshrine in
17697 comments that -1 means "either 0 or 1, but we can't tell
17698 which at compile time".
17699 (memrefs_conflict_p): Update call accordingly.
17700 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
17703 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17705 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
17706 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
17707 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
17708 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
17709 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
17710 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
17711 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
17712 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
17713 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
17714 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
17715 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
17716 sqmovun): Use NONE flags.
17718 2021-01-19 Richard Biener <rguenther@suse.de>
17721 * ipa-modref.c (analyze_stmt): Only record a summary for a
17724 2021-01-19 Richard Biener <rguenther@suse.de>
17726 PR middle-end/98638
17727 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
17729 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
17731 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
17732 built-in define __FIX_LEON3FT_TN0018.
17734 2021-01-19 Richard Biener <rguenther@suse.de>
17737 * tree-inline.c (tree_function_versioning): Set input_location
17738 to UNKNOWN_LOCATION throughout the function.
17740 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
17743 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
17745 2021-01-19 Martin Jambor <mjambor@suse.cz>
17748 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
17749 whether non-call exceptions allow removal of a statement.
17750 (isra_analyze_call): Pass the appropriate function to
17751 ssa_name_only_returned_p.
17753 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
17755 * config/riscv/arch-canonicalize (longext_sort): New function for
17756 sorting 'multi-letter'.
17757 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
17758 'alts'. The 'arch' may not be the first of 'alts'.
17759 (_expand_combination): Add underline for the 'ext' without '*'.
17760 This is because, a single-letter extension can always be treated well
17761 with a '_' prefix, but it cannot be separated out if it is appended
17764 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
17767 * ira.c (ira): Skip abnormal critical edge splitting.
17769 2021-01-18 Jakub Jelinek <jakub@redhat.com>
17771 PR tree-optimization/98727
17772 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
17773 second .MUL_OVERFLOW operand for signed multiplication with overflow
17774 checking if the second operand of multiplication is not constant.
17776 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
17778 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
17779 defaults to version 4.
17781 2021-01-18 David Malcolm <dmalcolm@redhat.com>
17783 * attribs.h (fndecl_dealloc_argno): New decl.
17784 * builtins.c (call_dealloc_argno): Split out second half of
17786 (fndecl_dealloc_argno): New.
17787 * doc/extend.texi (Common Function Attributes): Document the
17788 interaction between the analyzer and the malloc attribute.
17789 * doc/invoke.texi (Static Analyzer Options): Likewise.
17791 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
17793 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
17794 dwarf_version to 4.
17795 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
17797 2021-01-17 Martin Jambor <mjambor@suse.cz>
17800 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
17803 2021-01-17 Mark Wielaard <mark@klomp.org>
17805 * common.opt (gdwarf-): Init(5).
17806 * doc/invoke.texi (-gdwarf): Document default to 5.
17808 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
17810 * builtin-types.def
17811 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
17813 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
17814 ...this. Add extra argument.
17815 * gimplify.c (omp_default_clause): Ensure that event handle is
17816 firstprivate in a task region.
17817 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
17818 (gimplify_adjust_omp_clauses): Likewise.
17819 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
17820 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
17821 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
17822 if detach clause specified. Add detach argument when generating
17824 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
17826 (finish_taskreg_scan): Move field for variable containing the event
17827 handle to the front of the struct.
17828 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
17830 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
17831 OMP_CLAUSE_DETACH clause.
17832 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
17833 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
17834 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
17836 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
17838 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
17840 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
17842 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
17843 multilib directory names. Use MULTILIB_REQUIRED instead of
17844 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
17845 -mcustom-fpu-cfg=fph2 multilib.
17847 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
17849 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
17850 (nios2_init_fpu_configs): Provide register values for new
17851 -mcustom-fpu-cfg=fph2 option variant.
17852 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
17855 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
17857 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
17858 custom instruction warnings.
17860 2021-01-16 Jakub Jelinek <jakub@redhat.com>
17862 PR tree-optimization/96669
17863 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
17865 2021-01-16 Jakub Jelinek <jakub@redhat.com>
17867 PR tree-optimization/96271
17868 * passes.def: Pass false argument to first two pass_cd_dce
17869 instances and true to last instance. Add comment that
17870 last instance rewrites no longer addressed locals.
17871 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
17873 (pass_cd_dce::set_pass_param): New method.
17874 (pass_cd_dce::execute): Return TODO_update_address_taken from
17875 last cd_dce instance.
17877 2021-01-15 Carl Love <cel@us.ibm.com>
17879 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
17881 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
17882 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
17883 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
17884 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
17885 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
17886 Add builtin define.
17887 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
17888 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
17889 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
17890 New overloaded definitions.
17891 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
17892 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
17893 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
17894 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
17895 P10V_BUILTIN_MULHU_V4SI]: Add case
17896 statement for builtins.
17897 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
17898 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
17899 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
17900 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
17901 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
17902 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
17903 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
17904 Add define_insn, mode is VIlong.
17905 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
17906 Add builtin descriptions.
17908 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
17910 * final.c (final_start_function_1): Reset force_source_line.
17912 2021-01-15 Jakub Jelinek <jakub@redhat.com>
17914 PR tree-optimization/96669
17915 * match.pd (((1 << A) & 1) != 0 -> A == 0,
17916 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
17917 possibly different power of two constants and to right shift too.
17919 2021-01-15 Jakub Jelinek <jakub@redhat.com>
17921 PR tree-optimization/96681
17922 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
17923 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
17924 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
17925 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
17927 2021-01-15 Alexandre Oliva <oliva@adacore.com>
17929 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
17931 2021-01-15 Tamar Christina <tamar.christina@arm.com>
17933 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
17934 cmul<conj_op><mode>3): New.
17935 * config/aarch64/iterators.md (UNSPEC_FCMUL,
17936 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
17937 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
17938 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
17939 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
17940 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
17941 (rot_op): Renamed to conj_op.
17942 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
17943 cmul<conj_op><mode>3): New.
17944 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
17945 cmul<conj_op><mode>3): New.
17947 2021-01-15 David Malcolm <dmalcolm@redhat.com>
17951 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
17952 Escape the tempfile name when constructing the expected output.
17954 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17956 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
17958 (aarch64_<su>mlsl_hi<mode>): ... This.
17959 (aarch64_<su>mlsl_hi<mode>): Define.
17960 (*aarch64_<su>mlsl<mode): Rename to...
17961 (aarch64_<su>mlsl<mode): ... This.
17962 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
17963 smlsl_hi, umlsl_hi): Define builtins.
17964 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
17965 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
17966 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
17967 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
17969 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
17971 * config/i386/i386-c.c (ix86_target_macros):
17972 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
17974 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
17977 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
17978 * Makefile.in (RTL_SSA_H): New variable.
17979 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
17980 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
17981 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
17983 * config/aarch64/aarch64-cc-fusion.cc: New file.
17985 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
17987 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
17988 calling cancel_changes for changes that no longer exist.
17990 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
17992 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
17993 (function_info::reg_defs): ...this.
17994 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
17995 (function_info::reg_defs): ...this.
17997 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18000 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
18002 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18005 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18008 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
18010 2021-01-15 Richard Biener <rguenther@suse.de>
18012 PR tree-optimization/96376
18013 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
18014 for VMAT_INVARIANT.
18016 2021-01-15 Martin Liska <mliska@suse.cz>
18018 * doc/install.texi: Document that some tests need pytest module.
18019 * doc/sourcebuild.texi: Likewise.
18021 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18024 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
18026 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18028 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
18029 (mve_vshrq_n_u<mode>_imm): Likewise.
18030 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
18031 * config/arm/vec-common.md: ... here.
18033 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18035 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
18037 * config/arm/neon.md (vashl<mode>3): Delete.
18038 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
18039 (vasl<mode>3): New expander.
18041 2021-01-15 Richard Biener <rguenther@suse.de>
18043 PR tree-optimization/98685
18044 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
18045 of vector extern defs.
18047 2021-01-14 David Malcolm <dmalcolm@redhat.com>
18050 * diagnostic.c (diagnostic_kind_text): Break out this array
18052 (diagnostic_build_prefix): ...here.
18053 (fancy_abort): Detect when diagnostic_initialize has not yet been
18054 called and fall back to a minimal implementation of printing the
18055 ICE, rather than segfaulting in internal_error.
18057 2021-01-14 David Malcolm <dmalcolm@redhat.com>
18059 * diagnostic.c (diagnostic_initialize): Eliminate
18060 parseable_fixits_p in favor of initializing extra_output_kind from
18061 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
18062 (convert_column_unit): New function, split out from...
18063 (diagnostic_converted_column): ...this.
18064 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
18065 Use them to call convert_column_unit on the column values.
18066 (diagnostic_report_diagnostic): Eliminate conditional on
18067 parseable_fixits_p in favor of a switch statement on
18068 extra_output_kind, passing the appropriate values to the new
18069 params of print_parseable_fixits.
18070 (selftest::test_print_parseable_fixits_none): Update for new
18071 params of print_parseable_fixits.
18072 (selftest::test_print_parseable_fixits_insert): Likewise.
18073 (selftest::test_print_parseable_fixits_remove): Likewise.
18074 (selftest::test_print_parseable_fixits_replace): Likewise.
18075 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
18077 (selftest::diagnostic_c_tests): Call it.
18078 * diagnostic.h (enum diagnostics_extra_output_kind): New.
18079 (diagnostic_context::parseable_fixits_p): Delete field in favor
18081 (diagnostic_context::extra_output_kind): ...this new field.
18082 * doc/invoke.texi (Environment Variables): Add
18083 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
18084 * opts.c (common_handle_option): Update handling of
18085 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
18088 2021-01-14 Tamar Christina <tamar.christina@arm.com>
18090 * tree-vect-slp-patterns.c (class complex_operations_pattern,
18091 complex_operations_pattern::matches,
18092 complex_operations_pattern::recognize,
18093 complex_operations_pattern::build): New.
18094 (slp_patterns): Use it.
18096 2021-01-14 Tamar Christina <tamar.christina@arm.com>
18098 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
18099 * optabs.def (cmls_optab, cmls_conj_optab): New.
18100 * doc/md.texi: Document them.
18101 * tree-vect-slp-patterns.c (class complex_fms_pattern,
18102 complex_fms_pattern::matches, complex_fms_pattern::recognize,
18103 complex_fms_pattern::build): New.
18105 2021-01-14 Tamar Christina <tamar.christina@arm.com>
18107 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
18108 * optabs.def (cmla_optab, cmla_conj_optab): New.
18109 * doc/md.texi: Document them.
18110 * tree-vect-slp-patterns.c (vect_match_call_p,
18111 class complex_fma_pattern, vect_slp_reset_pattern,
18112 complex_fma_pattern::matches, complex_fma_pattern::recognize,
18113 complex_fma_pattern::build): New.
18115 2021-01-14 Tamar Christina <tamar.christina@arm.com>
18117 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
18118 * optabs.def (cmul_optab, cmul_conj_optab): New.
18119 * doc/md.texi: Document them.
18120 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
18121 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
18122 vect_build_combine_node, class complex_mul_pattern,
18123 complex_mul_pattern::matches, complex_mul_pattern::recognize,
18124 complex_mul_pattern::build): New.
18126 2021-01-14 Tamar Christina <tamar.christina@arm.com>
18128 * tree-vect-slp.c (optimize_load_redistribution_1): New.
18129 (optimize_load_redistribution, vect_is_slp_load_node): New.
18130 (vect_match_slp_patterns): Use it.
18132 2021-01-14 Tamar Christina <tamar.christina@arm.com>
18134 * tree-vect-slp-patterns.c (complex_add_pattern::build):
18137 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
18139 * config/gcn/mkoffload.c (main): Create an offload image only in
18140 64-bit configurations.
18142 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
18145 * config/i386/i386-options.c (ix86_option_override_internal):
18146 Issue an error for -fcf-protection with CF_BRANCH when compiling
18147 for 32-bit non-TARGET_CMOV targets.
18149 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
18152 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
18153 Remove declaration and initialization of shadow variable "ret".
18154 (ix86_option_override_internal): Remove delcaration of
18155 shadow variable "i". Redeclare shadowed variable to unsigned.
18156 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
18157 * config/i386/i386-builtins.c (get_builtin_code_for_version):
18158 Update for redeclaration.
18159 * config/i386/i386.h (pta_size): Ditto.
18161 2021-01-14 Richard Biener <rguenther@suse.de>
18163 PR tree-optimization/98674
18164 * tree-data-ref.c (base_supports_access_fn_components_p): New.
18165 (initialize_data_dependence_relation): For two bases without
18166 possible access fns resort to type size equality when determining
18167 shape compatibility.
18169 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18172 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
18173 <=, >= operators in vcle and vcge intrinsics respectively.
18174 * config/arm/arm_neon_builtins.def: Remove entry for
18177 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
18180 * config/i386/i386-options.c (ix86_function_specific_save):
18181 Remove redundant assignment to opts->x_ix86_branch_cost.
18182 * config/i386/i386.c (ix86_prefetch_sse):
18183 Rename from x86_prefetch_sse. Update all uses.
18184 * config/i386/i386.h: Update for rename.
18185 * config/i386/i386-options.h: Ditto.
18187 2021-01-14 Jakub Jelinek <jakub@redhat.com>
18190 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
18191 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
18192 Use Bm instead of m for non-avx. Add isa attribute.
18194 2021-01-14 Jakub Jelinek <jakub@redhat.com>
18196 PR tree-optimization/96688
18197 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
18198 ~X can be simplified.
18200 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
18202 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
18203 IFN_LOAD_LANES results.
18205 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18207 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
18209 (aarch64_xtn<mode>): Likewise.
18210 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
18213 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
18215 (vmovl_s16): Likewise.
18216 (vmovl_s32): Likewise.
18217 (vmovl_u8): Likewise.
18218 (vmovl_u16): Likewise.
18219 (vmovl_u32): Likewise.
18220 (vmovn_s16): Likewise.
18221 (vmovn_s32): Likewise.
18222 (vmovn_s64): Likewise.
18223 (vmovn_u16): Likewise.
18224 (vmovn_u32): Likewise.
18225 (vmovn_u64): Likewise.
18227 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18229 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
18231 (aarch64_<su>qxtn2<mode>_be): Likewise.
18232 (aarch64_<su>qxtn2<mode>): Likewise.
18233 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
18235 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
18236 (su): Handle ss_truncate and us_truncate.
18237 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
18239 (vqmovn_high_s32): Likewise.
18240 (vqmovn_high_s64): Likewise.
18241 (vqmovn_high_u16): Likewise.
18242 (vqmovn_high_u32): Likewise.
18243 (vqmovn_high_u64): Likewise.
18245 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18247 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
18249 (aarch64_xtn2<mode>_be): Likewise.
18250 (aarch64_xtn2<mode>): Likewise.
18251 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
18253 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
18255 (vmovn_high_s32): Likewise.
18256 (vmovn_high_s64): Likewise.
18257 (vmovn_high_u16): Likewise.
18258 (vmovn_high_u32): Likewise.
18259 (vmovn_high_u64): Likewise.
18261 2021-01-13 Stafford Horne <shorne@gmail.com>
18263 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
18265 2021-01-13 Stafford Horne <shorne@gmail.com>
18267 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
18269 2021-01-13 Stafford Horne <shorne@gmail.com>
18271 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
18272 define for __or1k_hard_float__.
18274 2021-01-13 Stafford Horne <shorne@gmail.com>
18276 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
18277 (PROFILE_HOOK): Define to call _mcount.
18278 (FUNCTION_PROFILER): Change from abort to no-op.
18280 2021-01-13 Jakub Jelinek <jakub@redhat.com>
18282 PR tree-optimization/96691
18283 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
18284 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
18285 (~D ^ C) or (D ^ C) can be simplified.
18287 2021-01-13 Richard Biener <rguenther@suse.de>
18289 PR tree-optimization/92645
18290 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
18291 until after vector lowering.
18293 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
18295 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
18297 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
18298 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
18300 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
18302 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
18304 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
18305 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
18307 2021-01-13 Richard Biener <rguenther@suse.de>
18309 PR tree-optimization/92645
18310 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
18311 BIT_FIELD_REF argument.
18312 (vect_build_slp_tree_2): Record the desired vector type
18313 on the external vector def.
18314 (vectorizable_slp_permutation): Handle required punning
18315 of existing vector defs.
18317 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
18319 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
18321 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
18323 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
18325 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
18327 * config.gcc [$target == *-*-gnu*]: Enable
18328 'default_gnu_indirect_function'.
18330 2021-01-13 Jakub Jelinek <jakub@redhat.com>
18333 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
18334 registers before calling targetm.vectorize.vec_perm_const, only after
18336 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
18337 two argument permutation when one operand is zero vector and only
18338 after that force operands into registers.
18339 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
18340 define_insn_and_split pattern.
18341 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
18342 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
18343 (*avx2_zero_extendv8hiv8si2_1): Likewise.
18344 (*avx512f_zero_extendv8siv8di2_1): Likewise.
18345 (*avx2_zero_extendv4siv4di2_1): Likewise.
18346 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
18348 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
18349 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
18350 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
18351 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
18352 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
18353 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
18355 2021-01-13 Martin Liska <mliska@suse.cz>
18357 PR tree-optimization/98455
18358 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
18359 Record also virtual PHIs.
18360 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
18363 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
18365 * doc/invoke.texi (C++ Modules): Fix typos.
18367 2021-01-13 Richard Biener <rguenther@suse.de>
18369 PR tree-optimization/98640
18370 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
18371 handle plus or minus from a truncated operand to be
18374 2021-01-13 Jakub Jelinek <jakub@redhat.com>
18377 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
18378 define_insn_and_split patterns.
18379 (splitter after *btr<mode>_2): New splitter.
18381 2021-01-13 Martin Liska <mliska@suse.cz>
18384 * cgraphunit.c (analyze_functions): Remove dead code.
18386 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
18388 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
18389 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
18390 (a64fx_regmove_cost, a64fx_vector_cost): New.
18391 (a64fx_tunings): Use the new added cost tables.
18393 2021-01-13 Jakub Jelinek <jakub@redhat.com>
18396 * config/i386/predicates.md (pmovzx_parallel): New predicate.
18397 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
18398 define_insn_and_split pattern.
18399 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
18400 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
18402 2021-01-13 Julian Brown <julian@codesourcery.com>
18404 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
18405 to fix v0 register.
18407 2021-01-13 Julian Brown <julian@codesourcery.com>
18409 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
18412 2021-01-13 Julian Brown <julian@codesourcery.com>
18414 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
18415 for reciprocal-approximation instructions.
18416 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
18417 refinement and division result.
18418 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
18420 2021-01-13 Julian Brown <julian@codesourcery.com>
18422 * config/gcn/gcn-valu.md (subdf): Rename to...
18425 2021-01-12 Martin Liska <mliska@suse.cz>
18427 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
18429 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
18431 * function-abi.h: Fix typo.
18433 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
18437 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
18438 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
18439 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
18440 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
18441 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
18442 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
18443 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
18444 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
18445 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
18446 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
18447 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
18448 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
18449 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
18450 (ARM_HAVE_V2DI_LDST): Likewise.
18451 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
18452 (*movmisalign<mode>_mve_load): New pattern.
18453 * config/arm/neon.md (movmisalign<mode>): Move to ...
18454 * config/arm/vec-common.md: ... here.
18456 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
18459 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
18460 of pattern 'plus (plus (hard reg, const), pseudo)'.
18462 2021-01-12 Richard Biener <rguenther@suse.de>
18464 PR tree-optimization/98550
18465 * tree-vect-slp.c (vect_record_max_nunits): Check whether
18466 the group size is a multiple of the vector element count.
18467 (vect_build_slp_tree_1): When we need to fail because
18468 the vector type choosen causes unrolling do so lazily
18469 without affecting matches only at the end to guide group splitting.
18471 2021-01-12 Martin Liska <mliska@suse.cz>
18474 * optc-save-gen.awk: Compare also n_target_save vars with
18477 2021-01-12 Martin Liska <mliska@suse.cz>
18479 * gcov.c (source_info::debug): New.
18480 (print_usage): Add --debug (-D) option.
18481 (process_args): Likewise.
18482 (generate_results): Call src->debug after
18483 accumulate_line_counts.
18484 (read_graph_file): Properly assign id for EXIT_BLOCK.
18485 * profile.c (branch_prob): Dump function body before it is
18488 2021-01-12 Jakub Jelinek <jakub@redhat.com>
18490 PR tree-optimization/98629
18491 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
18492 unless returning non-zero.
18494 2021-01-12 Jakub Jelinek <jakub@redhat.com>
18496 PR tree-optimization/95731
18497 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
18498 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
18499 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
18500 only after optimize_range_tests_var_bound.
18502 2021-01-12 Jakub Jelinek <jakub@redhat.com>
18504 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
18505 * configure: Regenerated.
18507 2021-01-12 liuhongt <hongtao.liu@intel.com>
18510 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
18512 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
18515 2021-01-12 Alexandre Oliva <oliva@adacore.com>
18517 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
18519 (auto_end_imm_use_stmt_traverse): New struct.
18520 (FOR_EACH_IMM_USE_STMT): Use it.
18521 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
18523 * gimple-ssa-strength-reduction.c: ... here, ...
18524 * graphite-scop-detection.c: ... here, ...
18525 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
18526 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
18527 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
18528 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
18529 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
18530 * tree-vect-slp.c: ... and here, ...
18531 * doc/tree-ssa.texi: ... and the example here.
18533 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
18535 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
18536 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
18537 (*sdiv_pow2<mode>3): New pattern.
18538 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
18539 Wrap the ASRD in an UNSPEC_PRED_X.
18540 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
18541 predicate with a constant PTRUE, if it isn't already.
18542 (*cond_<sve_int_op><mode>_z): Replace with...
18543 (*cond_<sve_int_op><mode>_any): ...this new pattern.
18545 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
18547 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
18548 SVE_FULL_I to SVE_I.
18549 (*cond_bic<mode>_any): Likewise.
18551 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
18553 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
18554 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
18557 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
18559 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
18560 SVE_FULL_I to SVE_I.
18561 (*aarch64_cond_<su>abd<mode>_2): Likewise.
18562 (*aarch64_cond_<su>abd<mode>_any): Likewise.
18563 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
18564 for the max and min but not for the minus.
18565 (*aarch64_cond_<su>abd<mode>_3): New pattern.
18567 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
18569 * config/aarch64/iterators.md (SVE_24I): New iterator.
18570 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
18571 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
18573 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
18575 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
18576 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
18578 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
18579 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
18580 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
18581 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
18583 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
18585 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
18586 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
18587 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
18590 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
18592 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
18593 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
18594 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
18596 2021-01-11 Martin Liska <mliska@suse.cz>
18599 * symtab-clones.h (clone_info::release): Release
18600 symtab::m_clones with ggc_delete as it's a GGC memory.
18602 2021-01-11 Matthias Klose <doko@ubuntu.com>
18604 * Makefile.in (LINK_PROGRESS): Show the link target.
18606 2021-01-11 Richard Biener <rguenther@suse.de>
18608 PR tree-optimization/91403
18609 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
18610 single-element interleaving group size at 4096 elements.
18612 2021-01-11 Richard Biener <rguenther@suse.de>
18614 PR tree-optimization/98526
18615 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
18616 of the actual reduction op for the regular case.
18617 (vectorizable_reduction): Cost the stmts
18618 vect_transform_reduction produces here.
18620 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
18622 * tree-ssa-forwprop.c (simplify_vector_constructor): For
18623 big-endian, use UNPACK[_FLOAT]_HI.
18625 2021-01-11 Tamar Christina <tamar.christina@arm.com>
18627 * tree-vect-slp-patterns.c (class complex_pattern,
18628 class complex_add_pattern): Add parameters to matches.
18629 (complex_add_pattern::build): Free memory.
18630 (complex_add_pattern::matches): Move validation end of match.
18631 (complex_add_pattern::recognize): Likewise.
18633 2021-01-11 Tamar Christina <tamar.christina@arm.com>
18635 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
18637 2021-01-11 Tamar Christina <tamar.christina@arm.com>
18639 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
18641 2021-01-11 Jakub Jelinek <jakub@redhat.com>
18643 PR tree-optimization/95867
18644 * tree-ssa-math-opts.h: New header.
18645 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
18646 (powi_as_mults): No longer static. Use build_one_cst instead of
18647 build_real. Formatting fix.
18648 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
18649 (attempt_builtin_powi): Handle multiplication reassociation without
18650 powi_fndecl using powi_as_mults.
18651 (reassociate_bb): For integral types don't require
18652 -funsafe-math-optimizations to call attempt_builtin_powi.
18654 2021-01-11 Jakub Jelinek <jakub@redhat.com>
18656 PR tree-optimization/95852
18657 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
18658 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
18659 allow in the bb any of the stmts in that vector, div_stmt and
18660 up to 3 cast stmts.
18661 (arith_cast_equal_p): New function.
18662 (arith_overflow_check_p): Add cast_stmt argument, handle signed
18663 multiply overflow checks.
18664 (match_arith_overflow): Adjust caller. Handle signed multiply
18667 2021-01-11 Jakub Jelinek <jakub@redhat.com>
18669 PR tree-optimization/95852
18670 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
18671 (uaddsub_overflow_check_p): Renamed to ...
18672 (arith_overflow_check_p): ... this. Handle also multiplication
18673 with overflow check.
18674 (match_uaddsub_overflow): Renamed to ...
18675 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
18676 also multiplication with overflow check. Adjust function comment.
18677 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
18678 match_arith_overflow also for MULT_EXPR.
18680 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18682 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
18683 __builtin_convertvector.
18684 (vmovl_s16): Likewise.
18685 (vmovl_s32): Likewise.
18686 (vmovl_u8): Likewise.
18687 (vmovl_u16): Likewise.
18688 (vmovl_u32): Likewise.
18689 (vmovn_s16): Likewise.
18690 (vmovn_s32): Likewise.
18691 (vmovn_s64): Likewise.
18692 (vmovn_u16): Likewise.
18693 (vmovn_u32): Likewise.
18694 (vmovn_u64): Likewise.
18696 2021-01-11 Martin Liska <mliska@suse.cz>
18698 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
18699 (if_chain::is_beneficial): Delete clusters
18700 (find_conditions): Make second argument of conditions_in_bbs a
18701 pointer so that we control over it's lifetime.
18702 (pass_if_to_switch::execute): Delete them.
18704 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
18706 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
18709 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
18711 * config/vax/vax.md (cc): Remove mode attribute.
18712 (subst_<cc>, subst_f<cc>): Rename to...
18713 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
18714 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
18715 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
18716 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
18718 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
18720 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
18721 `const_double_zero'.
18723 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
18725 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
18726 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
18729 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
18731 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
18733 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
18734 with `const_double_zero'.
18735 * doc/rtl.texi (Constant Expression Types): Document it.
18737 2021-01-09 Jakub Jelinek <jakub@redhat.com>
18740 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
18741 POINTER_DIFF_EXPR to be any integral type.
18743 2021-01-09 Jakub Jelinek <jakub@redhat.com>
18745 PR rtl-optimization/98603
18746 * function.c (instantiate_virtual_regs_in_insn): For asm goto
18747 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
18748 if any, set ASM_OPERANDS mode to VOIDmode and change
18749 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
18751 2021-01-09 Alexandre Oliva <oliva@gnu.org>
18754 * final.c (notice_source_line): Narrow down the condition to
18755 skip a line-0 marker.
18757 2021-01-08 Sergei Trofimovich <siarheit@google.com>
18759 * ipa-modref.c (merge_call_side_effects): Fix
18760 linebreak split by reordering two print calls.
18762 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
18764 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
18765 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
18766 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
18767 consistency, fix constraint.
18769 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
18771 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
18772 callables instead of mask values.
18773 (struct target_flag_set_p): New predicate.
18774 (s390_cpu_cpp_builtins_internal): Define or undefine
18775 __LONG_DOUBLE_VX__ macro.
18777 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
18780 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
18781 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
18784 2021-01-08 Richard Biener <rguenther@suse.de>
18786 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
18788 2021-01-08 Richard Biener <rguenther@suse.de>
18790 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
18791 (vect_build_slp_tree): On cache hit release the matched
18792 scalar stmts vector.
18793 * tree-vect-stmts.c (vectorizable_store): Properly free
18794 vec_oprnds before possibly gathering them again.
18796 2021-01-08 Richard Biener <rguenther@suse.de>
18798 PR tree-optimization/98544
18799 * tree-vect-slp.c (vect_optimize_slp): Always materialize
18800 permutes at a permute node.
18802 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
18805 * config/i386/i386.c (x86_function_profiler): Use R10 to call
18806 mcount in large model. Sorry for large model with PIC.
18808 2021-01-08 Jakub Jelinek <jakub@redhat.com>
18811 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
18812 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
18813 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
18814 TargetSave and initialize for variables with enum types.
18815 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
18816 mstack-protector-guard-symbol=): Add Save.
18817 * config/i386/i386-options.c (ix86_function_specific_save,
18818 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
18819 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
18820 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
18821 x_ix86_veclibabi_type.
18823 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
18825 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
18826 SVE_FULL_I to SVE_I.
18827 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
18829 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
18831 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
18832 SVE_FULL_I to SVE_I.
18833 (*cond_uxt<mode>_any): Likewise.
18835 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18837 * config/aarch64/iterators.md (Vwhalf): New iterator.
18838 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
18840 (aarch64_<sur>adalp<mode>): ... This. Make more
18842 (<sur>sadv16qi): Adjust callsite of the above.
18843 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
18845 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
18847 (vpadal_s16): Likewise.
18848 (vpadal_u8): Likewise.
18849 (vpadal_u16): Likewise.
18850 (vpadalq_s8): Likewise.
18851 (vpadalq_s16): Likewise.
18852 (vpadalq_s32): Likewise.
18853 (vpadalq_u8): Likewise.
18854 (vpadalq_u16): Likewise.
18855 (vpadalq_u32): Likewise.
18857 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18859 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
18861 (aarch64_<su>abd<mode>): ... This.
18862 (<sur>sadv16qi): Adjust callsite of the above.
18863 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
18865 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
18867 (vabd_s16): Likewise.
18868 (vabd_s32): Likewise.
18869 (vabd_u8): Likewise.
18870 (vabd_u16): Likewise.
18871 (vabd_u32): Likewise.
18872 (vabdq_s8): Likewise.
18873 (vabdq_s16): Likewise.
18874 (vabdq_s32): Likewise.
18875 (vabdq_u8): Likewise.
18876 (vabdq_u16): Likewise.
18877 (vabdq_u32): Likewise.
18879 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18881 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
18883 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
18884 (vaba_s16): Likewise.
18885 (vaba_s32): Likewise.
18886 (vaba_u8): Likewise.
18887 (vaba_u16): Likewise.
18888 (vaba_u32): Likewise.
18889 (vabaq_s8): Likewise.
18890 (vabaq_s16): Likewise.
18891 (vabaq_s32): Likewise.
18892 (vabaq_u8): Likewise.
18893 (vabaq_u16): Likewise.
18894 (vabaq_u32): Likewise.
18896 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18898 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
18899 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
18900 Change RTL pattern to match.
18902 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
18904 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
18905 * config/riscv/riscv-c.c (riscv-subset.h): New.
18906 (INCLUDE_STRING): Define.
18907 (riscv_cpu_cpp_builtins): Add new style architecture extension
18909 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
18910 (riscv_subset_list::end): New.
18911 (riscv_current_subset_list): New.
18913 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
18915 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
18916 Move to riscv-subset.h.
18917 (struct riscv_subset_t): Ditto.
18918 (class riscv_subset_list): Ditto.
18919 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
18920 from riscv-common.c.
18921 (struct riscv_subset_t): Ditto.
18922 (class riscv_subset_list): Ditto.
18923 * config/riscv/t-riscv ($(common_out_file)): Add file
18926 2021-01-07 Jakub Jelinek <jakub@redhat.com>
18929 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
18930 New define_insn patterns.
18932 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
18934 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
18935 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
18936 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
18938 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
18940 PR tree-optimization/98560
18941 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
18942 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
18944 (vec_cond_direct): Likewise argument 2.
18945 (vec_condu_direct, vec_condeq_direct): Delete.
18946 (expand_vect_cond_optab_fn): Rename to...
18947 (expand_vec_cond_optab_fn): ...this, replacing old macro.
18948 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
18949 (expand_vect_cond_mask_optab_fn): Rename to...
18950 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
18951 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
18953 (direct_vec_cond_optab_supported_p): Likewise.
18954 (direct_vec_condu_optab_supported_p): Delete.
18955 (direct_vec_condeq_optab_supported_p): Delete.
18956 * gimple-isel.cc: Include internal-fn.h.
18957 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
18960 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
18962 PR tree-optimization/98560
18963 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
18964 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
18966 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
18968 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
18969 rotate_insn and optab code attributes.
18970 Update all uses to merged code attribute.
18971 * config/i386/sse.md: Update all uses to merged code attribute.
18972 * config/i386/mmx.md: Update all uses to merged code attribute.
18974 2021-01-07 Jakub Jelinek <jakub@redhat.com>
18976 PR tree-optimization/98568
18977 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
18978 (bswap_replace): Use it.
18980 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
18982 PR rtl-optimization/97978
18983 * lra-int.h (lra_hard_reg_split_p): New external.
18984 * lra.c (lra_hard_reg_split_p): New global.
18985 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
18986 * lra-assigns.c (lra_assign): Don't check allocation correctness
18987 after hard reg splitting.
18989 2021-01-06 Martin Sebor <msebor@redhat.com>
18992 * builtins.c (new_delete_mismatch_p): New overload.
18993 (new_delete_mismatch_p (tree, tree)): Call it.
18995 2021-01-06 Alexandre Oliva <oliva@adacore.com>
18997 * Makefile.in (T_GLIMITS_H): New.
18998 (stmp-int-hdrs): Depend on it, use it.
18999 * config/t-vxworks (T_GLIMITS_H): Override it.
19000 (vxw-glimits.h): New.
19002 2021-01-06 Richard Biener <rguenther@suse.de>
19004 PR tree-optimization/98513
19005 * value-range.cc (intersect_ranges): Compare the upper bounds
19006 for the expected relation.
19008 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19011 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
19013 * doc/standards.texi (HSAIL): Remove section.
19015 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
19017 * configure: Re-generate.
19019 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19021 * doc/invoke.texi (-std=c++20): Adjust for the publication of
19022 ISO 14882:2020 standard.
19023 * doc/standards.texi: Likewise.
19025 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19027 PR tree-optimization/94802
19028 * expr.h (maybe_optimize_sub_cmp_0): Declare.
19029 * expr.c: Include tree-pretty-print.h and flags.h.
19030 (maybe_optimize_sub_cmp_0): New function.
19031 (do_store_flag): Use it.
19032 * cfgexpand.c (expand_gimple_cond): Likewise.
19034 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
19036 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
19037 * rtlanal.c (simple_regno_set): Tweak description to clarify the
19040 2021-01-05 Richard Biener <rguenther@suse.de>
19042 PR tree-optimization/98516
19043 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
19044 lanes when materializing on a VEC_PERM node.
19045 (vectorizable_slp_permutation): Dump the permute properly.
19047 2021-01-05 Richard Biener <rguenther@suse.de>
19049 * tree-vect-slp.c (vect_slp_region): Move debug counter
19050 to cover individual subgraphs.
19052 2021-01-05 Richard Biener <rguenther@suse.de>
19054 PR tree-optimization/98428
19055 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
19056 vector lane extracts for loop vectorization.
19058 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19060 PR tree-optimization/98514
19061 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
19063 (operand_rank): Change type from hash_map<tree, long> to
19064 hash_map<tree, int64_t>.
19065 (phi_rank): Change return type from long to int64_t.
19066 (loop_carried_phi): Change block_rank variable type from long to
19068 (propagate_rank): Change return type, rank parameter type and
19069 op_rank variable type from long to int64_t.
19070 (find_operand_rank): Change return type from long to int64_t
19071 and change slot variable type from long * to int64_t *.
19072 (insert_operand_rank): Change rank parameter type from long to
19074 (get_rank): Change return type and rank variable type from long to
19075 int64_t. Use PRId64 instead of ld to print the rank.
19076 (init_reassoc): Change rank variable type from long to int64_t
19077 and adjust correspondingly bb_rank and operand_rank initialization.
19079 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19081 PR tree-optimization/96928
19082 * tree-ssa-phiopt.c (xor_replacement): New function.
19083 (tree_ssa_phiopt_worker): Call it.
19085 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19087 PR tree-optimization/96930
19088 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
19089 from narrower value which has the same type as 1 << B, perform
19090 the right shift on the narrower value followed by extension.
19092 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19094 PR tree-optimization/96239
19095 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
19097 (get_status_for_store_merging): Don't return BB_INVALID for blocks
19098 with potential bswap optimizable CONSTRUCTORs.
19099 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
19102 2021-01-05 Richard Biener <rguenther@suse.de>
19104 PR tree-optimization/98381
19105 * tree.c (vector_element_bits): Properly compute bool vector
19107 * tree-vect-loop.c (vectorizable_live_operation): Properly
19108 compute the last lane bit offset.
19110 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
19113 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
19114 Clear the top 64 bytes of the input XMM register.
19115 (sse_cvttps2pi): Ditto.
19117 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
19120 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
19122 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
19125 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
19128 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
19130 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
19131 (umaddsidi4_split): Likewise.
19133 2021-01-05 liuhongt <hongtao.liu@intel.com>
19136 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
19137 define_insn_and_split for zero_extend of subreg HI of pmovskb
19139 (*sse2_pmovskb_zexthisi): Add new combine splitters for
19140 zero_extend of not of subreg HI of pmovskb result.
19142 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
19145 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
19147 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
19148 convert_memory_address to convert symbolic immediates to ptr_mode
19149 before forcing them to memory.
19151 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
19153 PR rtl-optimization/97144
19154 * recog.c (constrain_operands): Initialize matching_operand
19155 for each alternative, rather than only doing it once.
19157 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
19159 PR rtl-optimization/98403
19160 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
19161 why we don't remove call clobbers.
19162 (function_info::apply_changes_to_insn): Don't attempt to add
19163 call clobbers here.
19165 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
19167 PR tree-optimization/98371
19168 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
19169 (vect_analyze_loop): If an epilogue loop appears to be cheaper
19170 than the main loop, re-analyze it as a main loop before adopting
19173 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19176 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
19177 * aclocal.m4, configure: Regenerate.
19178 * Makefile.in (NETLIBS): Define.
19179 (BACKEND): Remove $(CODYLIB).
19181 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19183 PR rtl-optimization/98334
19184 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
19185 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
19187 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
19189 * tree-inline.c (expand_call_inline): Restore input_location.
19190 Return result from recursive call.
19192 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
19194 PR tree-optimization/95401
19195 * config/aarch64/aarch64-sve-builtins.cc
19196 (gimple_folder::load_store_cookie): Use bits rather than bytes
19197 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
19198 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
19199 * tree-vect-stmts.c (vectorizable_store): Likewise.
19200 (vectorizable_load): Likewise.
19202 2021-01-04 Richard Biener <rguenther@suse.de>
19204 PR tree-optimization/98308
19205 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
19208 2021-01-04 Jakub Jelinek <jakub@redhat.com>
19210 PR tree-optimization/95771
19211 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
19212 with precision smaller than int's precision and types with precision
19213 twice as large as long long. Formatting fixes.
19215 2021-01-04 Richard Biener <rguenther@suse.de>
19217 PR tree-optimization/98464
19218 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
19219 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
19220 (process_bb): Adjust.
19222 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
19225 * doc/invoke.texi (-fsanitize=address): Fix wording describing
19226 clash with -fsanitize=hwaddress.
19228 2021-01-04 Richard Biener <rguenther@suse.de>
19230 PR tree-optimization/98282
19231 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
19232 invariants as VN_NARY.
19234 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
19237 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
19238 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
19239 to handle zero operands.
19241 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
19243 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
19244 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
19245 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
19248 2021-01-04 Richard Biener <rguenther@suse.de>
19250 PR tree-optimization/98393
19251 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
19252 when hitting the limit.
19254 2021-01-04 Richard Biener <rguenther@suse.de>
19256 PR tree-optimization/98291
19257 * tree-vect-loop.c (vectorizable_reduction): Bypass
19258 associativity check for SLP reductions with VF 1.
19260 2021-01-04 Jakub Jelinek <jakub@redhat.com>
19262 PR tree-optimization/96782
19263 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
19265 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19267 * collect-utils.c (collect_execute): Check dumppfx.
19268 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
19269 to collect_execute.
19270 (do_link): Add new parameter atsuffix.
19271 (main): Handle -dumpdir option. Skip one argument for
19272 -o, -isystem and -B options.
19273 * gcc.c (make_at_file): New helper function.
19274 (close_at_file): Use it.
19276 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
19278 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
19279 Amend handling for LD64_VERSION fallback defaults.
19281 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
19283 * config.gcc: Compute default version information
19284 from the configured target. Likewise defaults for
19286 * config/darwin10.h: Removed.
19287 * config/darwin12.h: Removed.
19288 * config/darwin9.h: Removed.
19289 * config/rs6000/darwin8.h: Removed.
19291 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
19293 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
19295 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
19297 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
19298 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
19300 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
19302 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
19304 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
19306 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
19308 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
19309 for the Darwin10 unwinder stub from here ...
19310 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
19312 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
19314 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
19315 (ASM_DEBUG_SPEC):Only define if the assembler supports
19317 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
19318 (DARWIN_PREFER_DWARF): Define.
19319 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
19320 (DARWIN_PREFER_DWARF): Likewise
19321 (DSYMUTIL_SPEC): Likewise.
19322 (COLLECT_RUN_DSYMUTIL): Likewise.
19323 (ASM_DEBUG_SPEC): Likewise.
19324 (ASM_DEBUG_OPTION_SPEC): Likewise.
19326 2021-01-02 Jan Hubicka <jh@suse.cz>
19328 * cfg.c (free_block): ggc_free bb.
19330 2021-01-01 Jakub Jelinek <jakub@redhat.com>
19332 * gcc.c (process_command): Update copyright notice dates.
19333 * gcov-dump.c (print_version): Ditto.
19334 * gcov.c (print_version): Ditto.
19335 * gcov-tool.c (print_version): Ditto.
19336 * gengtype.c (create_file): Ditto.
19337 * doc/cpp.texi: Bump @copying's copyright year.
19338 * doc/cppinternals.texi: Ditto.
19339 * doc/gcc.texi: Ditto.
19340 * doc/gccint.texi: Ditto.
19341 * doc/gcov.texi: Ditto.
19342 * doc/install.texi: Ditto.
19343 * doc/invoke.texi: Ditto.
19345 2021-01-01 Jakub Jelinek <jakub@redhat.com>
19347 * ChangeLog-2020: Rotate ChangeLog. New file.
19350 Copyright (C) 2021 Free Software Foundation, Inc.
19352 Copying and distribution of this file, with or without modification,
19353 are permitted in any medium without royalty provided the copyright
19354 notice and this notice are preserved.