]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2021-09-17 Martin Sebor <msebor@redhat.com>
2
3 * Makefile.in (OBJS): Add gimple-predicate-analysis.o.
4 * tree-ssa-uninit.c (max_phi_args): Move to gimple-predicate-analysis.
5 (MASK_SET_BIT, MASK_TEST_BIT, MASK_EMPTY): Same.
6 (check_defs): Add comment.
7 (can_skip_redundant_opnd): Update comment.
8 (compute_uninit_opnds_pos): Adjust to namespace change.
9 (find_pdom): Move to gimple-predicate-analysis.cc.
10 (find_dom): Same.
11 (struct uninit_undef_val_t): New.
12 (is_non_loop_exit_postdominating): Move to gimple-predicate-analysis.cc.
13 (find_control_equiv_block): Same.
14 (MAX_NUM_CHAINS, MAX_CHAIN_LEN, MAX_POSTDOM_CHECK): Same.
15 (MAX_SWITCH_CASES): Same.
16 (compute_control_dep_chain): Same.
17 (find_uninit_use): Use predicate analyzer.
18 (struct pred_info): Move to gimple-predicate-analysis.
19 (convert_control_dep_chain_into_preds): Same.
20 (find_predicates): Same.
21 (collect_phi_def_edges): Same.
22 (warn_uninitialized_phi): Use predicate analyzer.
23 (find_def_preds): Move to gimple-predicate-analysis.
24 (dump_pred_info): Same.
25 (dump_pred_chain): Same.
26 (dump_predicates): Same.
27 (destroy_predicate_vecs): Remove.
28 (execute_late_warn_uninitialized): New.
29 (get_cmp_code): Move to gimple-predicate-analysis.
30 (is_value_included_in): Same.
31 (value_sat_pred_p): Same.
32 (find_matching_predicate_in_rest_chains): Same.
33 (is_use_properly_guarded): Same.
34 (prune_uninit_phi_opnds): Same.
35 (find_var_cmp_const): Same.
36 (use_pred_not_overlap_with_undef_path_pred): Same.
37 (pred_equal_p): Same.
38 (is_neq_relop_p): Same.
39 (is_neq_zero_form_p): Same.
40 (pred_expr_equal_p): Same.
41 (is_pred_expr_subset_of): Same.
42 (is_pred_chain_subset_of): Same.
43 (is_included_in): Same.
44 (is_superset_of): Same.
45 (pred_neg_p): Same.
46 (simplify_pred): Same.
47 (simplify_preds_2): Same.
48 (simplify_preds_3): Same.
49 (simplify_preds_4): Same.
50 (simplify_preds): Same.
51 (push_pred): Same.
52 (push_to_worklist): Same.
53 (get_pred_info_from_cmp): Same.
54 (is_degenerated_phi): Same.
55 (normalize_one_pred_1): Same.
56 (normalize_one_pred): Same.
57 (normalize_one_pred_chain): Same.
58 (normalize_preds): Same.
59 (can_one_predicate_be_invalidated_p): Same.
60 (can_chain_union_be_invalidated_p): Same.
61 (uninit_uses_cannot_happen): Same.
62 (pass_late_warn_uninitialized::execute): Define.
63 * gimple-predicate-analysis.cc: New file.
64 * gimple-predicate-analysis.h: New file.
65
66 2021-09-17 Julian Brown <julian@codesourcery.com>
67
68 * config/gcn/gcn.c (gimple.h): Include.
69 (gcn_fork_join): Emit barrier for worker-level joins.
70 * omp-oacc-neuter-broadcast.cc (find_local_vars_to_propagate): Add
71 writes_gang_private bitmap parameter. Set bit for blocks
72 containing gang-private variable writes.
73 (worker_single_simple): Don't emit barrier after predicated block.
74 (worker_single_copy): Don't emit barrier if we're not broadcasting
75 anything and the block contains no gang-private writes.
76 (neuter_worker_single): Don't predicate blocks that only contain
77 NOPs or internal marker functions. Pass has_gang_private_write
78 argument to worker_single_copy.
79 (oacc_do_neutering): Add writes_gang_private bitmap handling.
80
81 2021-09-17 Julian Brown <julian@codesourcery.com>
82
83 * config/gcn/gcn-protos.h
84 (gcn_goacc_create_worker_broadcast_record): Update prototype.
85 * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Use
86 preallocated block of LDS memory. Do not cache/share decls for
87 reduction temporaries between invocations.
88 (gcn_goacc_reduction_teardown): Unshare VAR on second use.
89 (gcn_goacc_create_worker_broadcast_record): Add OFFSET parameter
90 and return temporary LDS space at that offset. Return pointer in
91 "sender" case.
92 * config/gcn/gcn.c (acc_lds_size, gang_private_hwm, lds_allocs):
93 New global vars.
94 (ACC_LDS_SIZE): Define as acc_lds_size.
95 (gcn_init_machine_status): Don't initialise lds_allocated,
96 lds_allocs, reduc_decls fields of machine function struct.
97 (gcn_option_override): Handle default size for gang-private
98 variables and -mgang-private-size option.
99 (gcn_expand_prologue): Use LDS_SIZE instead of LDS_SIZE-1 when
100 initialising M0_REG.
101 (gcn_shared_mem_layout): New function.
102 (gcn_print_lds_decl): Update comment. Use global lds_allocs map and
103 gang_private_hwm variable.
104 (TARGET_GOACC_SHARED_MEM_LAYOUT): Define target hook.
105 * config/gcn/gcn.h (machine_function): Remove lds_allocated,
106 lds_allocs, reduc_decls. Add reduction_base, reduction_limit.
107 * config/gcn/gcn.opt (gang_private_size_opt): New global.
108 (mgang-private-size=): New option.
109 * doc/tm.texi.in (TARGET_GOACC_SHARED_MEM_LAYOUT): Place
110 documentation hook.
111 * doc/tm.texi: Regenerate.
112 * omp-oacc-neuter-broadcast.cc (targhooks.h, diagnostic-core.h):
113 Add includes.
114 (build_sender_ref): Handle sender_decl being pointer.
115 (worker_single_copy): Add PLACEMENT and ISOLATE_BROADCASTS
116 parameters. Pass placement argument to
117 create_worker_broadcast_record hook invocations. Handle
118 sender_decl being pointer and isolate_broadcasts inserting extra
119 barriers.
120 (blk_offset_map_t): Add typedef.
121 (neuter_worker_single): Add BLK_OFFSET_MAP parameter. Pass
122 preallocated range to worker_single_copy call.
123 (dfs_broadcast_reachable_1): New function.
124 (idx_decl_pair_t, used_range_vec_t): New typedefs.
125 (sort_size_descending): New function.
126 (addr_range): New class.
127 (splay_tree_compare_addr_range, splay_tree_free_key)
128 (first_fit_range, merge_ranges_1, merge_ranges): New functions.
129 (execute_omp_oacc_neuter_broadcast): Rename to...
130 (oacc_do_neutering): ... this. Add BOUNDS_LO, BOUNDS_HI
131 parameters. Arrange layout of shared memory for broadcast
132 operations.
133 (execute_omp_oacc_neuter_broadcast): New function.
134 (pass_omp_oacc_neuter_broadcast::gate): Remove num_workers==1
135 handling from here. Enable pass for all OpenACC routines in order
136 to call shared memory-layout hook.
137 * target.def (create_worker_broadcast_record): Add OFFSET
138 parameter.
139 (shared_mem_layout): New hook.
140
141 2021-09-17 Julian Brown <julian@codesourcery.com>
142 Thomas Schwinge <thomas@codesourcery.com>
143
144 * omp-oacc-neuter-broadcast.cc
145 (pass_omp_oacc_neuter_broadcast::gate): Disable if num_workers is
146 1.
147 (execute_omp_oacc_neuter_broadcast): Adjust.
148
149 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
150
151 * value-relation.cc (class equiv_chain): Move to header file.
152 (path_oracle::path_oracle): New.
153 (path_oracle::~path_oracle): New.
154 (path_oracle::register_relation): New.
155 (path_oracle::query_relation): New.
156 (path_oracle::reset_path): New.
157 (path_oracle::dump): New.
158 * value-relation.h (class equiv_chain): Move to here.
159 (class path_oracle): New.
160
161 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
162
163 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a DOM
164 based oracle.
165 * gimple-range-fold.cc (fur_depend::register_relation): Use
166 register_stmt/edge routines.
167 * value-relation.cc (equiv_chain::find): Relocate from equiv_oracle.
168 (equiv_oracle::equiv_oracle): Create self equivalence cache.
169 (equiv_oracle::~equiv_oracle): Release same.
170 (equiv_oracle::equiv_set): Return entry from self equiv cache if there
171 are no equivalences.
172 (equiv_oracle::find_equiv_block): Move list find to equiv_chain.
173 (equiv_oracle::register_relation): Rename from register_equiv.
174 (relation_chain_head::find_relation): Relocate from dom_oracle.
175 (relation_oracle::register_stmt): New.
176 (relation_oracle::register_edge): New.
177 (dom_oracle::*): Rename from relation_oracle.
178 (dom_oracle::register_relation): Adjust to call equiv_oracle.
179 (dom_oracle::set_one_relation): Split from register_relation.
180 (dom_oracle::register_transitives): Consolidate 2 methods.
181 (dom_oracle::find_relation_block): Move core to relation_chain.
182 (dom_oracle::query_relation): Rename from find_relation_dom and adjust.
183 * value-relation.h (class relation_oracle): New pure virtual base.
184 (class equiv_oracle): Inherit from relation_oracle and adjust.
185 (class dom_oracle): Rename from old relation_oracle and adjust.
186
187 2021-09-17 Martin Sebor <msebor@redhat.com>
188
189 PR middle-end/102200
190 * pointer-query.cc (access_ref::inform_access): Handle MIN/MAX_EXPR.
191 (handle_min_max_size): Change argument. Store original SSA_NAME for
192 operands to potentially distinct (sub)objects.
193 (compute_objsize_r): Adjust call to the above.
194
195 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
196
197 * config/rs6000/rs6000.c (rs6000-builtins.h): New include.
198 (rs6000_new_builtin_vectorized_function): New function.
199 (rs6000_new_builtin_md_vectorized_function): Likewise.
200 (rs6000_builtin_vectorized_function): Call
201 rs6000_new_builtin_vectorized_function.
202 (rs6000_builtin_md_vectorized_function): Call
203 rs6000_new_builtin_md_vectorized_function.
204
205 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
206
207 * config/rs6000/rs6000-builtin-new.def (ASSEMBLE_ACC): Add mmaint flag.
208 (ASSEMBLE_PAIR): Likewise.
209 (BUILD_ACC): Likewise.
210 (DISASSEMBLE_ACC): Likewise.
211 (DISASSEMBLE_PAIR): Likewise.
212 (PMXVBF16GER2): Likewise.
213 (PMXVBF16GER2NN): Likewise.
214 (PMXVBF16GER2NP): Likewise.
215 (PMXVBF16GER2PN): Likewise.
216 (PMXVBF16GER2PP): Likewise.
217 (PMXVF16GER2): Likewise.
218 (PMXVF16GER2NN): Likewise.
219 (PMXVF16GER2NP): Likewise.
220 (PMXVF16GER2PN): Likewise.
221 (PMXVF16GER2PP): Likewise.
222 (PMXVF32GER): Likewise.
223 (PMXVF32GERNN): Likewise.
224 (PMXVF32GERNP): Likewise.
225 (PMXVF32GERPN): Likewise.
226 (PMXVF32GERPP): Likewise.
227 (PMXVF64GER): Likewise.
228 (PMXVF64GERNN): Likewise.
229 (PMXVF64GERNP): Likewise.
230 (PMXVF64GERPN): Likewise.
231 (PMXVF64GERPP): Likewise.
232 (PMXVI16GER2): Likewise.
233 (PMXVI16GER2PP): Likewise.
234 (PMXVI16GER2S): Likewise.
235 (PMXVI16GER2SPP): Likewise.
236 (PMXVI4GER8): Likewise.
237 (PMXVI4GER8PP): Likewise.
238 (PMXVI8GER4): Likewise.
239 (PMXVI8GER4PP): Likewise.
240 (PMXVI8GER4SPP): Likewise.
241 (XVBF16GER2): Likewise.
242 (XVBF16GER2NN): Likewise.
243 (XVBF16GER2NP): Likewise.
244 (XVBF16GER2PN): Likewise.
245 (XVBF16GER2PP): Likewise.
246 (XVF16GER2): Likewise.
247 (XVF16GER2NN): Likewise.
248 (XVF16GER2NP): Likewise.
249 (XVF16GER2PN): Likewise.
250 (XVF16GER2PP): Likewise.
251 (XVF32GER): Likewise.
252 (XVF32GERNN): Likewise.
253 (XVF32GERNP): Likewise.
254 (XVF32GERPN): Likewise.
255 (XVF32GERPP): Likewise.
256 (XVF64GER): Likewise.
257 (XVF64GERNN): Likewise.
258 (XVF64GERNP): Likewise.
259 (XVF64GERPN): Likewise.
260 (XVF64GERPP): Likewise.
261 (XVI16GER2): Likewise.
262 (XVI16GER2PP): Likewise.
263 (XVI16GER2S): Likewise.
264 (XVI16GER2SPP): Likewise.
265 (XVI4GER8): Likewise.
266 (XVI4GER8PP): Likewise.
267 (XVI8GER4): Likewise.
268 (XVI8GER4PP): Likewise.
269 (XVI8GER4SPP): Likewise.
270 (XXMFACC): Likewise.
271 (XXMTACC): Likewise.
272 (XXSETACCZ): Likewise.
273 (ASSEMBLE_PAIR_V): Likewise.
274 (BUILD_PAIR): Likewise.
275 (DISASSEMBLE_PAIR_V): Likewise.
276 (LXVP): New.
277 (STXVP): New.
278 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_mma_builtin):
279 Handle RS6000_BIF_LXVP and RS6000_BIF_STXVP.
280 * config/rs6000/rs6000-gen-builtins.c (attrinfo): Add ismmaint.
281 (parse_bif_attrs): Handle ismmaint.
282 (write_decls): Add bif_mmaint_bit and bif_is_mmaint.
283 (write_bif_static_init): Handle ismmaint.
284
285 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
286
287 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin): New
288 forward decl.
289 (rs6000_gimple_fold_builtin): Call rs6000_gimple_fold_new_builtin.
290 (rs6000_new_builtin_valid_without_lhs): New function.
291 (rs6000_gimple_fold_new_mma_builtin): Likewise.
292 (rs6000_gimple_fold_new_builtin): Likewise.
293
294 2021-09-17 Thomas Schwinge <thomas@codesourcery.com>
295
296 * hash-table.h (hash_table<Descriptor, Lazy, Allocator>::expand):
297 Destruct stale Value objects.
298 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
299 Update.
300
301 2021-09-17 Roger Sayle <roger@nextmovesoftware.com>
302
303 PR c/102245
304 * match.pd (shift optimizations): Disable recent sign-changing
305 optimization for shifts by zero, these will be folded later.
306
307 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
308
309 * config/rs6000/rs6000-builtin-new.def (__builtin_mffsl): Move from
310 [power9] to [always].
311
312 2021-09-17 Richard Biener <rguenther@suse.de>
313
314 * tree-vect-stmts.c (vectorizable_load): Do not frob
315 stmt_info for SLP.
316
317 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
318
319 * config/i386/i386-features.c (remove_partial_avx_dependency):
320 Also check TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY and
321 and TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY before generating
322 vxorps.
323 * config/i386/i386.h (TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY):
324 New.
325 (TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
326 * config/i386/i386.md (SSE FP to FP splitters): Replace
327 TARGET_SSE_PARTIAL_REG_DEPENDENCY with
328 TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY.
329 (SSE INT to FP splitter): Replace TARGET_SSE_PARTIAL_REG_DEPENDENCY
330 with TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY.
331 * config/i386/x86-tune.def
332 (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): New.
333 (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
334
335 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
336
337 PR target/101900
338 * config/i386/i386-features.c (remove_partial_avx_dependency):
339 Check TARGET_USE_VECTOR_FP_CONVERTS and TARGET_USE_VECTOR_CONVERTS
340 before generating vxorps.
341
342 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
343
344 * config/i386/i386-options.c (processor_cost_table): Use
345 tremont_cost for Tremont.
346 * config/i386/x86-tune-costs.h (tremont_memcpy): New.
347 (tremont_memset): Likewise.
348 (tremont_cost): Likewise.
349 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
350 Enable for Tremont.
351
352 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
353
354 * common/config/i386/i386-common.c: Use Haswell scheduling model
355 for Tremont.
356 * config/i386/i386.c (ix86_sched_init_global): Prepare for Tremont
357 scheduling pass.
358 * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Tremont
359 issue rate to 4.
360 (ix86_adjust_cost): Handle Tremont.
361 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
362 Enable for Tremont.
363 (X86_TUNE_USE_LEAVE): Likewise.
364 (X86_TUNE_PUSH_MEMORY): Likewise.
365 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
366 (X86_TUNE_USE_CLTD): Likewise.
367 (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
368 (X86_TUNE_AVOID_MFENCE): Likewise.
369 (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
370 (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
371 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS): Disable for Tremont.
372 (X86_TUNE_FOUR_JUMP_LIMIT): Likewise.
373 (X86_TUNE_OPT_AGU): Likewise.
374 (X86_TUNE_AVOID_LEA_FOR_ADDR): Likewise.
375 (X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE): Likewise.
376 (X86_TUNE_EXPAND_ABS): Likewise.
377 (X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS): Likewise.
378 (X86_TUNE_SLOW_PSHUFB): Likewise.
379
380 2021-09-17 Eric Botcazou <ebotcazou@adacore.com>
381
382 PR rtl-optimization/102306
383 * combine.c (try_combine): Abort the combination if we are about to
384 duplicate volatile references.
385
386 2021-09-17 liuhongt <hongtao.liu@intel.com>
387
388 * config/i386/avx512fp16intrin.h (_mm_undefined_ph):
389 New intrinsic.
390 (_mm256_undefined_ph): Likewise.
391 (_mm512_undefined_ph): Likewise.
392 (_mm_cvtsh_h): Likewise.
393 (_mm256_cvtsh_h): Likewise.
394 (_mm512_cvtsh_h): Likewise.
395 (_mm512_castph_ps): Likewise.
396 (_mm512_castph_pd): Likewise.
397 (_mm512_castph_si512): Likewise.
398 (_mm512_castph512_ph128): Likewise.
399 (_mm512_castph512_ph256): Likewise.
400 (_mm512_castph128_ph512): Likewise.
401 (_mm512_castph256_ph512): Likewise.
402 (_mm512_zextph128_ph512): Likewise.
403 (_mm512_zextph256_ph512): Likewise.
404 (_mm512_castps_ph): Likewise.
405 (_mm512_castpd_ph): Likewise.
406 (_mm512_castsi512_ph): Likewise.
407 * config/i386/avx512fp16vlintrin.h (_mm_castph_ps):
408 New intrinsic.
409 (_mm256_castph_ps): Likewise.
410 (_mm_castph_pd): Likewise.
411 (_mm256_castph_pd): Likewise.
412 (_mm_castph_si128): Likewise.
413 (_mm256_castph_si256): Likewise.
414 (_mm_castps_ph): Likewise.
415 (_mm256_castps_ph): Likewise.
416 (_mm_castpd_ph): Likewise.
417 (_mm256_castpd_ph): Likewise.
418 (_mm_castsi128_ph): Likewise.
419 (_mm256_castsi256_ph): Likewise.
420 (_mm256_castph256_ph128): Likewise.
421 (_mm256_castph128_ph256): Likewise.
422 (_mm256_zextph128_ph256): Likewise.
423
424 2021-09-17 liuhongt <hongtao.liu@intel.com>
425
426 * config/i386/avx512fp16intrin.h (_mm_cvtsh_ss):
427 New intrinsic.
428 (_mm_mask_cvtsh_ss): Likewise.
429 (_mm_maskz_cvtsh_ss): Likewise.
430 (_mm_cvtsh_sd): Likewise.
431 (_mm_mask_cvtsh_sd): Likewise.
432 (_mm_maskz_cvtsh_sd): Likewise.
433 (_mm_cvt_roundsh_ss): Likewise.
434 (_mm_mask_cvt_roundsh_ss): Likewise.
435 (_mm_maskz_cvt_roundsh_ss): Likewise.
436 (_mm_cvt_roundsh_sd): Likewise.
437 (_mm_mask_cvt_roundsh_sd): Likewise.
438 (_mm_maskz_cvt_roundsh_sd): Likewise.
439 (_mm_cvtss_sh): Likewise.
440 (_mm_mask_cvtss_sh): Likewise.
441 (_mm_maskz_cvtss_sh): Likewise.
442 (_mm_cvtsd_sh): Likewise.
443 (_mm_mask_cvtsd_sh): Likewise.
444 (_mm_maskz_cvtsd_sh): Likewise.
445 (_mm_cvt_roundss_sh): Likewise.
446 (_mm_mask_cvt_roundss_sh): Likewise.
447 (_mm_maskz_cvt_roundss_sh): Likewise.
448 (_mm_cvt_roundsd_sh): Likewise.
449 (_mm_mask_cvt_roundsd_sh): Likewise.
450 (_mm_maskz_cvt_roundsd_sh): Likewise.
451 * config/i386/i386-builtin-types.def
452 (V8HF_FTYPE_V2DF_V8HF_V8HF_UQI_INT,
453 V8HF_FTYPE_V4SF_V8HF_V8HF_UQI_INT,
454 V2DF_FTYPE_V8HF_V2DF_V2DF_UQI_INT,
455 V4SF_FTYPE_V8HF_V4SF_V4SF_UQI_INT): Add new builtin types.
456 * config/i386/i386-builtin.def: Add corrresponding new builtins.
457 * config/i386/i386-expand.c: Handle new builtin types.
458 * config/i386/sse.md (VF48_128): New mode iterator.
459 (avx512fp16_vcvtsh2<ssescalarmodesuffix><mask_scalar_name><round_saeonly_scalar_name>):
460 New.
461 (avx512fp16_vcvt<ssescalarmodesuffix>2sh<mask_scalar_name><round_scalar_name>):
462 Ditto.
463
464 2021-09-17 liuhongt <hongtao.liu@intel.com>
465
466 * config/i386/avx512fp16intrin.h (_mm512_cvtph_pd):
467 New intrinsic.
468 (_mm512_mask_cvtph_pd): Likewise.
469 (_mm512_maskz_cvtph_pd): Likewise.
470 (_mm512_cvt_roundph_pd): Likewise.
471 (_mm512_mask_cvt_roundph_pd): Likewise.
472 (_mm512_maskz_cvt_roundph_pd): Likewise.
473 (_mm512_cvtxph_ps): Likewise.
474 (_mm512_mask_cvtxph_ps): Likewise.
475 (_mm512_maskz_cvtxph_ps): Likewise.
476 (_mm512_cvtx_roundph_ps): Likewise.
477 (_mm512_mask_cvtx_roundph_ps): Likewise.
478 (_mm512_maskz_cvtx_roundph_ps): Likewise.
479 (_mm512_cvtxps_ph): Likewise.
480 (_mm512_mask_cvtxps_ph): Likewise.
481 (_mm512_maskz_cvtxps_ph): Likewise.
482 (_mm512_cvtx_roundps_ph): Likewise.
483 (_mm512_mask_cvtx_roundps_ph): Likewise.
484 (_mm512_maskz_cvtx_roundps_ph): Likewise.
485 (_mm512_cvtpd_ph): Likewise.
486 (_mm512_mask_cvtpd_ph): Likewise.
487 (_mm512_maskz_cvtpd_ph): Likewise.
488 (_mm512_cvt_roundpd_ph): Likewise.
489 (_mm512_mask_cvt_roundpd_ph): Likewise.
490 (_mm512_maskz_cvt_roundpd_ph): Likewise.
491 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_pd):
492 New intrinsic.
493 (_mm_mask_cvtph_pd): Likewise.
494 (_mm_maskz_cvtph_pd): Likewise.
495 (_mm256_cvtph_pd): Likewise.
496 (_mm256_mask_cvtph_pd): Likewise.
497 (_mm256_maskz_cvtph_pd): Likewise.
498 (_mm_cvtxph_ps): Likewise.
499 (_mm_mask_cvtxph_ps): Likewise.
500 (_mm_maskz_cvtxph_ps): Likewise.
501 (_mm256_cvtxph_ps): Likewise.
502 (_mm256_mask_cvtxph_ps): Likewise.
503 (_mm256_maskz_cvtxph_ps): Likewise.
504 (_mm_cvtxps_ph): Likewise.
505 (_mm_mask_cvtxps_ph): Likewise.
506 (_mm_maskz_cvtxps_ph): Likewise.
507 (_mm256_cvtxps_ph): Likewise.
508 (_mm256_mask_cvtxps_ph): Likewise.
509 (_mm256_maskz_cvtxps_ph): Likewise.
510 (_mm_cvtpd_ph): Likewise.
511 (_mm_mask_cvtpd_ph): Likewise.
512 (_mm_maskz_cvtpd_ph): Likewise.
513 (_mm256_cvtpd_ph): Likewise.
514 (_mm256_mask_cvtpd_ph): Likewise.
515 (_mm256_maskz_cvtpd_ph): Likewise.
516 * config/i386/i386-builtin.def: Add corresponding new builtins.
517 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
518 * config/i386/i386-expand.c: Handle new builtin types.
519 * config/i386/sse.md
520 (VF4_128_8_256): New.
521 (VF48H_AVX512VL): Ditto.
522 (ssePHmode): Add HF vector modes.
523 (castmode): Add new convertable modes.
524 (qq2phsuff): Ditto.
525 (ph2pssuffix): New.
526 (avx512fp16_vcvt<castmode>2ph_<mode><mask_name><round_name>): Ditto.
527 (avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
528 (*avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
529 (avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
530 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
531 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask_1): Ditto.
532 (avx512fp16_float_extend_ph<mode>2<mask_name><round_saeonly_name>):
533 Ditto.
534 (avx512fp16_float_extend_ph<mode>2<mask_name>): Ditto.
535 (*avx512fp16_float_extend_ph<mode>2_load<mask_name>): Ditto.
536 (avx512fp16_float_extend_phv2df2<mask_name>): Ditto.
537 (*avx512fp16_float_extend_phv2df2_load<mask_name>): Ditto.
538
539 2021-09-17 liuhongt <hongtao.liu@intel.com>
540
541 * config/i386/avx512fp16intrin.h (_mm_cvttsh_i32):
542 New intrinsic.
543 (_mm_cvttsh_u32): Likewise.
544 (_mm_cvtt_roundsh_i32): Likewise.
545 (_mm_cvtt_roundsh_u32): Likewise.
546 (_mm_cvttsh_i64): Likewise.
547 (_mm_cvttsh_u64): Likewise.
548 (_mm_cvtt_roundsh_i64): Likewise.
549 (_mm_cvtt_roundsh_u64): Likewise.
550 * config/i386/i386-builtin.def: Add corresponding new builtins.
551 * config/i386/sse.md
552 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<round_saeonly_name>):
553 New.
554
555 2021-09-17 liuhongt <hongtao.liu@intel.com>
556
557 * config/i386/avx512fp16intrin.h (_mm512_cvttph_epi32):
558 New intrinsic.
559 (_mm512_mask_cvttph_epi32): Likewise.
560 (_mm512_maskz_cvttph_epi32): Likewise.
561 (_mm512_cvtt_roundph_epi32): Likewise.
562 (_mm512_mask_cvtt_roundph_epi32): Likewise.
563 (_mm512_maskz_cvtt_roundph_epi32): Likewise.
564 (_mm512_cvttph_epu32): Likewise.
565 (_mm512_mask_cvttph_epu32): Likewise.
566 (_mm512_maskz_cvttph_epu32): Likewise.
567 (_mm512_cvtt_roundph_epu32): Likewise.
568 (_mm512_mask_cvtt_roundph_epu32): Likewise.
569 (_mm512_maskz_cvtt_roundph_epu32): Likewise.
570 (_mm512_cvttph_epi64): Likewise.
571 (_mm512_mask_cvttph_epi64): Likewise.
572 (_mm512_maskz_cvttph_epi64): Likewise.
573 (_mm512_cvtt_roundph_epi64): Likewise.
574 (_mm512_mask_cvtt_roundph_epi64): Likewise.
575 (_mm512_maskz_cvtt_roundph_epi64): Likewise.
576 (_mm512_cvttph_epu64): Likewise.
577 (_mm512_mask_cvttph_epu64): Likewise.
578 (_mm512_maskz_cvttph_epu64): Likewise.
579 (_mm512_cvtt_roundph_epu64): Likewise.
580 (_mm512_mask_cvtt_roundph_epu64): Likewise.
581 (_mm512_maskz_cvtt_roundph_epu64): Likewise.
582 (_mm512_cvttph_epi16): Likewise.
583 (_mm512_mask_cvttph_epi16): Likewise.
584 (_mm512_maskz_cvttph_epi16): Likewise.
585 (_mm512_cvtt_roundph_epi16): Likewise.
586 (_mm512_mask_cvtt_roundph_epi16): Likewise.
587 (_mm512_maskz_cvtt_roundph_epi16): Likewise.
588 (_mm512_cvttph_epu16): Likewise.
589 (_mm512_mask_cvttph_epu16): Likewise.
590 (_mm512_maskz_cvttph_epu16): Likewise.
591 (_mm512_cvtt_roundph_epu16): Likewise.
592 (_mm512_mask_cvtt_roundph_epu16): Likewise.
593 (_mm512_maskz_cvtt_roundph_epu16): Likewise.
594 * config/i386/avx512fp16vlintrin.h (_mm_cvttph_epi32):
595 New intirnsic.
596 (_mm_mask_cvttph_epi32): Likewise.
597 (_mm_maskz_cvttph_epi32): Likewise.
598 (_mm256_cvttph_epi32): Likewise.
599 (_mm256_mask_cvttph_epi32): Likewise.
600 (_mm256_maskz_cvttph_epi32): Likewise.
601 (_mm_cvttph_epu32): Likewise.
602 (_mm_mask_cvttph_epu32): Likewise.
603 (_mm_maskz_cvttph_epu32): Likewise.
604 (_mm256_cvttph_epu32): Likewise.
605 (_mm256_mask_cvttph_epu32): Likewise.
606 (_mm256_maskz_cvttph_epu32): Likewise.
607 (_mm_cvttph_epi64): Likewise.
608 (_mm_mask_cvttph_epi64): Likewise.
609 (_mm_maskz_cvttph_epi64): Likewise.
610 (_mm256_cvttph_epi64): Likewise.
611 (_mm256_mask_cvttph_epi64): Likewise.
612 (_mm256_maskz_cvttph_epi64): Likewise.
613 (_mm_cvttph_epu64): Likewise.
614 (_mm_mask_cvttph_epu64): Likewise.
615 (_mm_maskz_cvttph_epu64): Likewise.
616 (_mm256_cvttph_epu64): Likewise.
617 (_mm256_mask_cvttph_epu64): Likewise.
618 (_mm256_maskz_cvttph_epu64): Likewise.
619 (_mm_cvttph_epi16): Likewise.
620 (_mm_mask_cvttph_epi16): Likewise.
621 (_mm_maskz_cvttph_epi16): Likewise.
622 (_mm256_cvttph_epi16): Likewise.
623 (_mm256_mask_cvttph_epi16): Likewise.
624 (_mm256_maskz_cvttph_epi16): Likewise.
625 (_mm_cvttph_epu16): Likewise.
626 (_mm_mask_cvttph_epu16): Likewise.
627 (_mm_maskz_cvttph_epu16): Likewise.
628 (_mm256_cvttph_epu16): Likewise.
629 (_mm256_mask_cvttph_epu16): Likewise.
630 (_mm256_maskz_cvttph_epu16): Likewise.
631 * config/i386/i386-builtin.def: Add new builtins.
632 * config/i386/sse.md
633 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name><round_saeonly_name>):
634 New.
635 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name>): Ditto.
636 (*avx512fp16_fix<fixunssuffix>_trunc<mode>2_load<mask_name>): Ditto.
637 (avx512fp16_fix<fixunssuffix>_truncv2di2<mask_name>): Ditto.
638 (avx512fp16_fix<fixunssuffix>_truncv2di2_load<mask_name>): Ditto.
639
640 2021-09-17 liuhongt <hongtao.liu@intel.com>
641
642 * config/i386/avx512fp16intrin.h (_mm_cvtsh_i32): New intrinsic.
643 (_mm_cvtsh_u32): Likewise.
644 (_mm_cvt_roundsh_i32): Likewise.
645 (_mm_cvt_roundsh_u32): Likewise.
646 (_mm_cvtsh_i64): Likewise.
647 (_mm_cvtsh_u64): Likewise.
648 (_mm_cvt_roundsh_i64): Likewise.
649 (_mm_cvt_roundsh_u64): Likewise.
650 (_mm_cvti32_sh): Likewise.
651 (_mm_cvtu32_sh): Likewise.
652 (_mm_cvt_roundi32_sh): Likewise.
653 (_mm_cvt_roundu32_sh): Likewise.
654 (_mm_cvti64_sh): Likewise.
655 (_mm_cvtu64_sh): Likewise.
656 (_mm_cvt_roundi64_sh): Likewise.
657 (_mm_cvt_roundu64_sh): Likewise.
658 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
659 * config/i386/i386-builtin.def: Add corresponding new builtins.
660 * config/i386/i386-expand.c (ix86_expand_round_builtin):
661 Handle new builtin types.
662 * config/i386/sse.md
663 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix><round_name>):
664 New define_insn.
665 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix>_2): Likewise.
666 (avx512fp16_vcvt<floatsuffix>si2sh<rex64namesuffix><round_name>): Likewise.
667
668 2021-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
669
670 * config/rs6000/rs6000-c.c (rs6000-builtins.h): New include.
671 (altivec_resolve_new_overloaded_builtin): New forward decl.
672 (rs6000_new_builtin_type_compatible): New function.
673 (altivec_resolve_overloaded_builtin): Call
674 altivec_resolve_new_overloaded_builtin.
675 (altivec_build_new_resolved_builtin): New function.
676 (altivec_resolve_new_overloaded_builtin): Likewise.
677 * config/rs6000/rs6000-call.c (rs6000_new_builtin_is_supported):
678 Likewise.
679 * config/rs6000/rs6000-gen-builtins.c (write_decls): Remove _p from
680 name of rs6000_new_builtin_is_supported.
681
682 2021-09-16 Uroš Bizjak <ubizjak@gmail.com>
683
684 * config/i386/i386-protos.h (ix86_decompose_address):
685 Change return type to bool.
686 * config/i386/i386.c (ix86_decompose_address): Ditto.
687
688 2021-09-16 Tobias Burnus <tobias@codesourcery.com>
689
690 PR target/102353
691 * config/rs6000/t-rs6000 (build/rs6000-gen-builtins.o, build/rbtree.o):
692 Added 'build/' to target, use build/%.o rule.
693 (build/rs6000-gen-builtins$(build_exeext)): Add 'build/' and
694 '$(build_exeext)' to target and 'build/' for the *.o files.
695 (rs6000-builtins.c): Update for those changes; run rs6000-gen-builtins
696 with $(RUN_GEN).
697
698 2021-09-16 Martin Jambor <mjambor@suse.cz>
699
700 * cgraph.c (cgraph_node::dump): Do not check caller count sums if
701 the body has been removed. Remove trailing whitespace.
702
703 2021-09-16 Richard Biener <rguenther@suse.de>
704
705 PR middle-end/102360
706 * internal-fn.c (expand_DEFERRED_INIT): Make pattern-init
707 of non-memory more robust.
708
709 2021-09-16 Daniel Cederman <cederman@gaisler.com>
710
711 * config/sparc/sparc-opts.h (enum sparc_processor_type): Add LEON5
712 * config/sparc/sparc.c (struct processor_costs): Add LEON5 costs
713 (leon5_adjust_cost): Increase cost of store with data dependency
714 on ALU instruction and FPU anti-dependencies.
715 (sparc_option_override): Add LEON5 costs
716 (sparc_adjust_cost): Add LEON5 cost adjustments
717 * config/sparc/sparc.h: Add LEON5
718 * config/sparc/sparc.md: Include LEON5 scheduling information
719 * config/sparc/sparc.opt: Add LEON5
720 * doc/invoke.texi: Add LEON5
721 * config/sparc/leon5.md: New file.
722
723 2021-09-16 Daniel Cederman <cederman@gaisler.com>
724
725 * config/sparc/sparc.md (stack_protect_set32): Add NOP to prevent
726 sensitive sequence for B2BST errata workaround.
727
728 2021-09-16 Daniel Cederman <cederman@gaisler.com>
729
730 * config/sparc/sparc.c (sparc_do_work_around_errata): Do not begin
731 functions with atomic instruction in the UT700 errata workaround.
732
733 2021-09-16 Daniel Cederman <cederman@gaisler.com>
734
735 * config/sparc/sparc.c (next_active_non_empty_insn): New function
736 that returns next active non empty assembly instruction.
737 (sparc_do_work_around_errata): Use new function.
738
739 2021-09-16 Daniel Cederman <cederman@gaisler.com>
740
741 * config/sparc/sparc.c (store_insn_p): Add predicate for store
742 attributes.
743 (load_insn_p): Add predicate for load attributes.
744 (sparc_do_work_around_errata): Use new predicates.
745
746 2021-09-16 Andreas Larsson <andreas@gaisler.com>
747
748 * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
749 LEON and LEON3.
750
751 2021-09-16 Martin Liska <mliska@suse.cz>
752
753 * config/mips/netbsd.h: Fix typo in name of a macro.
754
755 2021-09-16 liuhongt <hongtao.liu@intel.com>
756
757 PR middle-end/102080
758 * match.pd: Check mask type when doing cond_op related gimple
759 simplification.
760 * tree.c (is_truth_type_for): New function.
761 * tree.h (is_truth_type_for): New declaration.
762
763 2021-09-16 liuhongt <hongtao.liu@intel.com>
764
765 * config/i386/avx512fp16intrin.h (_mm512_cvtepi32_ph): New
766 intrinsic.
767 (_mm512_mask_cvtepi32_ph): Likewise.
768 (_mm512_maskz_cvtepi32_ph): Likewise.
769 (_mm512_cvt_roundepi32_ph): Likewise.
770 (_mm512_mask_cvt_roundepi32_ph): Likewise.
771 (_mm512_maskz_cvt_roundepi32_ph): Likewise.
772 (_mm512_cvtepu32_ph): Likewise.
773 (_mm512_mask_cvtepu32_ph): Likewise.
774 (_mm512_maskz_cvtepu32_ph): Likewise.
775 (_mm512_cvt_roundepu32_ph): Likewise.
776 (_mm512_mask_cvt_roundepu32_ph): Likewise.
777 (_mm512_maskz_cvt_roundepu32_ph): Likewise.
778 (_mm512_cvtepi64_ph): Likewise.
779 (_mm512_mask_cvtepi64_ph): Likewise.
780 (_mm512_maskz_cvtepi64_ph): Likewise.
781 (_mm512_cvt_roundepi64_ph): Likewise.
782 (_mm512_mask_cvt_roundepi64_ph): Likewise.
783 (_mm512_maskz_cvt_roundepi64_ph): Likewise.
784 (_mm512_cvtepu64_ph): Likewise.
785 (_mm512_mask_cvtepu64_ph): Likewise.
786 (_mm512_maskz_cvtepu64_ph): Likewise.
787 (_mm512_cvt_roundepu64_ph): Likewise.
788 (_mm512_mask_cvt_roundepu64_ph): Likewise.
789 (_mm512_maskz_cvt_roundepu64_ph): Likewise.
790 (_mm512_cvtepi16_ph): Likewise.
791 (_mm512_mask_cvtepi16_ph): Likewise.
792 (_mm512_maskz_cvtepi16_ph): Likewise.
793 (_mm512_cvt_roundepi16_ph): Likewise.
794 (_mm512_mask_cvt_roundepi16_ph): Likewise.
795 (_mm512_maskz_cvt_roundepi16_ph): Likewise.
796 (_mm512_cvtepu16_ph): Likewise.
797 (_mm512_mask_cvtepu16_ph): Likewise.
798 (_mm512_maskz_cvtepu16_ph): Likewise.
799 (_mm512_cvt_roundepu16_ph): Likewise.
800 (_mm512_mask_cvt_roundepu16_ph): Likewise.
801 (_mm512_maskz_cvt_roundepu16_ph): Likewise.
802 * config/i386/avx512fp16vlintrin.h (_mm_cvtepi32_ph): New
803 intrinsic.
804 (_mm_mask_cvtepi32_ph): Likewise.
805 (_mm_maskz_cvtepi32_ph): Likewise.
806 (_mm256_cvtepi32_ph): Likewise.
807 (_mm256_mask_cvtepi32_ph): Likewise.
808 (_mm256_maskz_cvtepi32_ph): Likewise.
809 (_mm_cvtepu32_ph): Likewise.
810 (_mm_mask_cvtepu32_ph): Likewise.
811 (_mm_maskz_cvtepu32_ph): Likewise.
812 (_mm256_cvtepu32_ph): Likewise.
813 (_mm256_mask_cvtepu32_ph): Likewise.
814 (_mm256_maskz_cvtepu32_ph): Likewise.
815 (_mm_cvtepi64_ph): Likewise.
816 (_mm_mask_cvtepi64_ph): Likewise.
817 (_mm_maskz_cvtepi64_ph): Likewise.
818 (_mm256_cvtepi64_ph): Likewise.
819 (_mm256_mask_cvtepi64_ph): Likewise.
820 (_mm256_maskz_cvtepi64_ph): Likewise.
821 (_mm_cvtepu64_ph): Likewise.
822 (_mm_mask_cvtepu64_ph): Likewise.
823 (_mm_maskz_cvtepu64_ph): Likewise.
824 (_mm256_cvtepu64_ph): Likewise.
825 (_mm256_mask_cvtepu64_ph): Likewise.
826 (_mm256_maskz_cvtepu64_ph): Likewise.
827 (_mm_cvtepi16_ph): Likewise.
828 (_mm_mask_cvtepi16_ph): Likewise.
829 (_mm_maskz_cvtepi16_ph): Likewise.
830 (_mm256_cvtepi16_ph): Likewise.
831 (_mm256_mask_cvtepi16_ph): Likewise.
832 (_mm256_maskz_cvtepi16_ph): Likewise.
833 (_mm_cvtepu16_ph): Likewise.
834 (_mm_mask_cvtepu16_ph): Likewise.
835 (_mm_maskz_cvtepu16_ph): Likewise.
836 (_mm256_cvtepu16_ph): Likewise.
837 (_mm256_mask_cvtepu16_ph): Likewise.
838 (_mm256_maskz_cvtepu16_ph): Likewise.
839 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
840 * config/i386/i386-builtin.def: Add corresponding new builtins.
841 * config/i386/i386-expand.c
842 (ix86_expand_args_builtin): Handle new builtin types.
843 (ix86_expand_round_builtin): Ditto.
844 * config/i386/i386-modes.def: Declare V2HF and V6HF.
845 * config/i386/sse.md (VI2H_AVX512VL): New.
846 (qq2phsuff): Ditto.
847 (sseintvecmode): Add HF vector modes.
848 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode><mask_name><round_name>):
849 New.
850 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
851 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
852 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
853 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
854 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask_1): Ditto.
855 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
856 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
857 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
858 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
859 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask_1): Ditto.
860 * config/i386/subst.md (round_qq2phsuff): New subst_attr.
861
862 2021-09-16 liuhongt <hongtao.liu@intel.com>
863
864 * config/i386/avx512fp16intrin.h (_mm512_cvtph_epi32):
865 New intrinsic/
866 (_mm512_mask_cvtph_epi32): Likewise.
867 (_mm512_maskz_cvtph_epi32): Likewise.
868 (_mm512_cvt_roundph_epi32): Likewise.
869 (_mm512_mask_cvt_roundph_epi32): Likewise.
870 (_mm512_maskz_cvt_roundph_epi32): Likewise.
871 (_mm512_cvtph_epu32): Likewise.
872 (_mm512_mask_cvtph_epu32): Likewise.
873 (_mm512_maskz_cvtph_epu32): Likewise.
874 (_mm512_cvt_roundph_epu32): Likewise.
875 (_mm512_mask_cvt_roundph_epu32): Likewise.
876 (_mm512_maskz_cvt_roundph_epu32): Likewise.
877 (_mm512_cvtph_epi64): Likewise.
878 (_mm512_mask_cvtph_epi64): Likewise.
879 (_mm512_maskz_cvtph_epi64): Likewise.
880 (_mm512_cvt_roundph_epi64): Likewise.
881 (_mm512_mask_cvt_roundph_epi64): Likewise.
882 (_mm512_maskz_cvt_roundph_epi64): Likewise.
883 (_mm512_cvtph_epu64): Likewise.
884 (_mm512_mask_cvtph_epu64): Likewise.
885 (_mm512_maskz_cvtph_epu64): Likewise.
886 (_mm512_cvt_roundph_epu64): Likewise.
887 (_mm512_mask_cvt_roundph_epu64): Likewise.
888 (_mm512_maskz_cvt_roundph_epu64): Likewise.
889 (_mm512_cvtph_epi16): Likewise.
890 (_mm512_mask_cvtph_epi16): Likewise.
891 (_mm512_maskz_cvtph_epi16): Likewise.
892 (_mm512_cvt_roundph_epi16): Likewise.
893 (_mm512_mask_cvt_roundph_epi16): Likewise.
894 (_mm512_maskz_cvt_roundph_epi16): Likewise.
895 (_mm512_cvtph_epu16): Likewise.
896 (_mm512_mask_cvtph_epu16): Likewise.
897 (_mm512_maskz_cvtph_epu16): Likewise.
898 (_mm512_cvt_roundph_epu16): Likewise.
899 (_mm512_mask_cvt_roundph_epu16): Likewise.
900 (_mm512_maskz_cvt_roundph_epu16): Likewise.
901 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_epi32):
902 New intrinsic.
903 (_mm_mask_cvtph_epi32): Likewise.
904 (_mm_maskz_cvtph_epi32): Likewise.
905 (_mm256_cvtph_epi32): Likewise.
906 (_mm256_mask_cvtph_epi32): Likewise.
907 (_mm256_maskz_cvtph_epi32): Likewise.
908 (_mm_cvtph_epu32): Likewise.
909 (_mm_mask_cvtph_epu32): Likewise.
910 (_mm_maskz_cvtph_epu32): Likewise.
911 (_mm256_cvtph_epu32): Likewise.
912 (_mm256_mask_cvtph_epu32): Likewise.
913 (_mm256_maskz_cvtph_epu32): Likewise.
914 (_mm_cvtph_epi64): Likewise.
915 (_mm_mask_cvtph_epi64): Likewise.
916 (_mm_maskz_cvtph_epi64): Likewise.
917 (_mm256_cvtph_epi64): Likewise.
918 (_mm256_mask_cvtph_epi64): Likewise.
919 (_mm256_maskz_cvtph_epi64): Likewise.
920 (_mm_cvtph_epu64): Likewise.
921 (_mm_mask_cvtph_epu64): Likewise.
922 (_mm_maskz_cvtph_epu64): Likewise.
923 (_mm256_cvtph_epu64): Likewise.
924 (_mm256_mask_cvtph_epu64): Likewise.
925 (_mm256_maskz_cvtph_epu64): Likewise.
926 (_mm_cvtph_epi16): Likewise.
927 (_mm_mask_cvtph_epi16): Likewise.
928 (_mm_maskz_cvtph_epi16): Likewise.
929 (_mm256_cvtph_epi16): Likewise.
930 (_mm256_mask_cvtph_epi16): Likewise.
931 (_mm256_maskz_cvtph_epi16): Likewise.
932 (_mm_cvtph_epu16): Likewise.
933 (_mm_mask_cvtph_epu16): Likewise.
934 (_mm_maskz_cvtph_epu16): Likewise.
935 (_mm256_cvtph_epu16): Likewise.
936 (_mm256_mask_cvtph_epu16): Likewise.
937 (_mm256_maskz_cvtph_epu16): Likewise.
938 * config/i386/i386-builtin-types.def: Add new builtin types.
939 * config/i386/i386-builtin.def: Add new builtins.
940 * config/i386/i386-expand.c
941 (ix86_expand_args_builtin): Handle new builtin types.
942 (ix86_expand_round_builtin): Ditto.
943 * config/i386/sse.md (sseintconvert): New.
944 (ssePHmode): Ditto.
945 (UNSPEC_US_FIX_NOTRUNC): Ditto.
946 (sseintconvertsignprefix): Ditto.
947 (avx512fp16_vcvtph2<sseintconvertsignprefix><sseintconvert>_<mode><mask_name><round_name>):
948 Ditto.
949
950 2021-09-16 liuhongt <hongtao.liu@intel.com>
951
952 * config/i386/avx512fp16intrin.h: (_mm_cvtsi16_si128):
953 New intrinsic.
954 (_mm_cvtsi128_si16): Likewise.
955 (_mm_mask_load_sh): Likewise.
956 (_mm_maskz_load_sh): Likewise.
957 (_mm_mask_store_sh): Likewise.
958 (_mm_move_sh): Likewise.
959 (_mm_mask_move_sh): Likewise.
960 (_mm_maskz_move_sh): Likewise.
961 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
962 * config/i386/i386-builtin.def: Add corresponding new builtins.
963 * config/i386/i386-expand.c
964 (ix86_expand_special_args_builtin): Handle new builtin types.
965 (ix86_expand_vector_init_one_nonzero): Adjust for FP16 target.
966 * config/i386/sse.md (VI2F): New mode iterator.
967 (vec_set<mode>_0): Use new mode iterator.
968 (avx512f_mov<ssescalarmodelower>_mask): Adjust for HF vector mode.
969 (avx512f_store<mode>_mask): Ditto.
970
971 2021-09-16 Kewen Lin <linkw@linux.ibm.com>
972
973 * config/rs6000/rs6000.opt (-mtoc-fusion): Remove.
974
975 2021-09-15 David Edelsohn <dje.gcc@gmail.com>
976
977 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
978 Proceed if no symbol summary or the symbol alias flag is false.
979
980 2021-09-15 Jakub Jelinek <jakub@redhat.com>
981
982 PR c++/88578
983 PR c++/102295
984 * varasm.c (output_constructor_regular_field): Instead of assertion
985 that array_size_for_constructor result is equal to size of
986 TREE_TYPE (local->val) in bytes, assert that the type size is greater
987 or equal to array_size_for_constructor result and use type size as
988 fieldsize.
989
990 2021-09-15 Martin Liska <mliska@suse.cz>
991
992 PR target/102351
993 * config/i386/vxworks.h: Use new macro TARGET_CPU_P.
994
995 2021-09-15 Martin Liska <mliska@suse.cz>
996
997 PR target/102349
998 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
999 Check that we have a symbol summary for a symbol.
1000
1001 2021-09-15 Richard Biener <rguenther@suse.de>
1002
1003 PR target/102348
1004 * config/rs6000/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
1005 to inherit from elfos.h
1006
1007 2021-09-15 liuhongt <hongtao.liu@intel.com>
1008
1009 PR target/102327
1010 * config/i386/i386-expand.c
1011 (ix86_expand_vector_init_interleave): Use puncklwd to pack 2
1012 HFmodes.
1013 (ix86_expand_vector_set): Use blendw instead of pinsrw.
1014 * config/i386/i386.c (ix86_can_change_mode_class): Adjust for
1015 AVX512FP16 which supports 16bit vector load.
1016 * config/i386/sse.md (avx512bw_interleave_highv32hi<mask_name>):
1017 Rename to ..
1018 (avx512bw_interleave_high<mode><mask_name>): .. this, and
1019 extend to V32HFmode.
1020 (avx2_interleave_highv16hi<mask_name>): Rename to ..
1021 (avx2_interleave_high<mode><mask_name>): .. this, and extend
1022 to V16HFmode.
1023 (vec_interleave_highv8hi<mask_name>): Rename to ..
1024 (vec_interleave_high<mode><mask_name>): .. this, and extend to V8HFmode.
1025 (<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>):
1026 Rename to ..
1027 (<mask_codefor>avx512bw_interleave_low<mode><mask_name>):
1028 this, and extend to V32HFmode.
1029 (avx2_interleave_lowv16hi<mask_name>): Rename to ..
1030 (avx2_interleave_low<mode><mask_name>): .. this, and extend to V16HFmode.
1031 (vec_interleave_lowv8hi<mask_name>): Rename to ..
1032 (vec_interleave_low<mode><mask_name>): .. this, and extend to V8HFmode.
1033 (sse4_1_pblendw): Rename to ..
1034 (sse4_1_pblend<blendsuf>): .. this, and extend to V8HFmode.
1035 (avx2_pblendph): New define_expand.
1036 (<sse2p4_1>_pinsr<ssemodesuffix>): Refactor, use
1037 sseintmodesuffix instead of ssemodesuffix.
1038 (blendsuf): New mode attr.
1039
1040 2021-09-15 Richard Biener <rguenther@suse.de>
1041
1042 * tree-vectorizer.h (dr_misalignment): Move out of line.
1043 (dr_target_alignment): New.
1044 (DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
1045 (set_dr_target_alignment): New.
1046 (SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
1047 * tree-vect-data-refs.c (dr_misalignment): Compute and
1048 return the group members misalignment.
1049 (vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
1050 (vect_analyze_data_refs_alignment): Compute alignment only
1051 for the first element of a DR group.
1052 (vect_slp_analyze_node_alignment): Likewise.
1053
1054 2021-09-15 Hongyu Wang <hongyu.wang@intel.com>
1055
1056 * config/i386/avx512fp16intrin.h: Adjust all builtin calls.
1057 * config/i386/avx512fp16vlintrin.h: Likewise.
1058 * config/i386/i386-builtin.def: Adjust builtin name and
1059 enumeration to match AVX512F style.
1060
1061 2021-09-15 Richard Biener <rguenther@suse.de>
1062
1063 PR tree-optimization/102318
1064 * tree-vect-loop.c (vect_transform_cycle_phi): Revert
1065 previous change and do the mode conversion separately from
1066 the sign conversion.
1067
1068 2021-09-15 Hongtao Liu <hongtao.liu@intel.com>
1069 Peter Cordes <peter@cordes.ca>
1070
1071 PR target/91103
1072 * config/i386/sse.md (extract_suf): Add V8SF/V8SI/V4DF/V4DI.
1073 (*vec_extract<mode><ssescalarmodelower>_valign): Output
1074 vextract{i,f}{32x4,64x2} instruction when byte_offset % 16 ==
1075 0.
1076
1077 2021-09-15 Richard Biener <rguenther@suse.de>
1078
1079 * config.gcc: Remove vax-*-openbsd* configuration.
1080
1081 2021-09-15 Richard Biener <rguenther@suse.de>
1082
1083 * config.gcc: Remove m68k-openbsd.
1084
1085 2021-09-15 Max Filippov <jcmvbkbc@gmail.com>
1086
1087 PR target/102336
1088 * config/xtensa/t-xtensa (TM_H): Add include/xtensa-config.h.
1089
1090 2021-09-14 Peter Bergner <bergner@linux.ibm.com>
1091
1092 * config/rs6000/mma.md (unspec): Delete UNSPEC_MMA_XXSETACCZ.
1093 (unspecv): Add UNSPECV_MMA_XXSETACCZ.
1094 (*mma_xxsetaccz): Delete.
1095 (mma_xxsetaccz): Change to define_insn. Remove operand 1.
1096 Use UNSPECV_MMA_XXSETACCZ. Update comment.
1097 * config/rs6000/rs6000.c (rs6000_rtx_costs): Use UNSPECV_MMA_XXSETACCZ.
1098
1099 2021-09-14 Iain Sandoe <iain@sandoe.co.uk>
1100
1101 * Makefile.in: Remove variables related to applying no-PIE
1102 to the exes on $build.
1103 * configure: Regenerate.
1104 * configure.ac: Remove configuration related to applying
1105 no-PIE to the exes on $build.
1106
1107 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
1108
1109 * config/arc/arc.md (doloop_end): Add missing mode.
1110 (loop_end): Likewise.
1111
1112 2021-09-14 Jakub Jelinek <jakub@redhat.com>
1113
1114 * gimplify.c (goa_stabilize_expr): Add depth argument, propagate
1115 it to recursive calls, for depth above 7 just gimplify or return.
1116 Perform a test even for MODIFY_EXPR, ADDR_EXPR, COMPOUND_EXPR with
1117 __builtin_clear_padding and TARGET_EXPR.
1118 (gimplify_omp_atomic): Adjust goa_stabilize_expr callers.
1119
1120 2021-09-14 liuhongt <hongtao.liu@intel.com>
1121
1122 * config/i386/avx512fp16intrin.h (_mm_fpclass_sh_mask):
1123 New intrinsic.
1124 (_mm_mask_fpclass_sh_mask): Likewise.
1125 (_mm512_mask_fpclass_ph_mask): Likewise.
1126 (_mm512_fpclass_ph_mask): Likewise.
1127 (_mm_getexp_sh): Likewise.
1128 (_mm_mask_getexp_sh): Likewise.
1129 (_mm_maskz_getexp_sh): Likewise.
1130 (_mm512_getexp_ph): Likewise.
1131 (_mm512_mask_getexp_ph): Likewise.
1132 (_mm512_maskz_getexp_ph): Likewise.
1133 (_mm_getexp_round_sh): Likewise.
1134 (_mm_mask_getexp_round_sh): Likewise.
1135 (_mm_maskz_getexp_round_sh): Likewise.
1136 (_mm512_getexp_round_ph): Likewise.
1137 (_mm512_mask_getexp_round_ph): Likewise.
1138 (_mm512_maskz_getexp_round_ph): Likewise.
1139 (_mm_getmant_sh): Likewise.
1140 (_mm_mask_getmant_sh): Likewise.
1141 (_mm_maskz_getmant_sh): Likewise.
1142 (_mm512_getmant_ph): Likewise.
1143 (_mm512_mask_getmant_ph): Likewise.
1144 (_mm512_maskz_getmant_ph): Likewise.
1145 (_mm_getmant_round_sh): Likewise.
1146 (_mm_mask_getmant_round_sh): Likewise.
1147 (_mm_maskz_getmant_round_sh): Likewise.
1148 (_mm512_getmant_round_ph): Likewise.
1149 (_mm512_mask_getmant_round_ph): Likewise.
1150 (_mm512_maskz_getmant_round_ph): Likewise.
1151 * config/i386/avx512fp16vlintrin.h (_mm_mask_fpclass_ph_mask):
1152 New intrinsic.
1153 (_mm_fpclass_ph_mask): Likewise.
1154 (_mm256_mask_fpclass_ph_mask): Likewise.
1155 (_mm256_fpclass_ph_mask): Likewise.
1156 (_mm256_getexp_ph): Likewise.
1157 (_mm256_mask_getexp_ph): Likewise.
1158 (_mm256_maskz_getexp_ph): Likewise.
1159 (_mm_getexp_ph): Likewise.
1160 (_mm_mask_getexp_ph): Likewise.
1161 (_mm_maskz_getexp_ph): Likewise.
1162 (_mm256_getmant_ph): Likewise.
1163 (_mm256_mask_getmant_ph): Likewise.
1164 (_mm256_maskz_getmant_ph): Likewise.
1165 (_mm_getmant_ph): Likewise.
1166 (_mm_mask_getmant_ph): Likewise.
1167 (_mm_maskz_getmant_ph): Likewise.
1168 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
1169 * config/i386/i386-builtin.def: Add corresponding new builtins.
1170 * config/i386/i386-expand.c
1171 (ix86_expand_args_builtin): Handle new builtin types.
1172 (ix86_expand_round_builtin): Ditto.
1173 * config/i386/sse.md (vecmemsuffix): Add HF vector modes.
1174 (<avx512>_getexp<mode><mask_name><round_saeonly_name>): Adjust
1175 to support HF vector modes.
1176 (avx512f_sgetexp<mode><mask_scalar_name><round_saeonly_scalar_name):
1177 Ditto.
1178 (avx512dq_fpclass<mode><mask_scalar_merge_name>): Ditto.
1179 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Ditto.
1180 (<avx512>_getmant<mode><mask_name><round_saeonly_name>): Ditto.
1181 (avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
1182 Ditto.
1183
1184 2021-09-14 liuhongt <hongtao.liu@intel.com>
1185
1186 * config/i386/avx512fp16intrin.h (_mm512_reduce_ph):
1187 New intrinsic.
1188 (_mm512_mask_reduce_ph): Likewise.
1189 (_mm512_maskz_reduce_ph): Likewise.
1190 (_mm512_reduce_round_ph): Likewise.
1191 (_mm512_mask_reduce_round_ph): Likewise.
1192 (_mm512_maskz_reduce_round_ph): Likewise.
1193 (_mm_reduce_sh): Likewise.
1194 (_mm_mask_reduce_sh): Likewise.
1195 (_mm_maskz_reduce_sh): Likewise.
1196 (_mm_reduce_round_sh): Likewise.
1197 (_mm_mask_reduce_round_sh): Likewise.
1198 (_mm_maskz_reduce_round_sh): Likewise.
1199 (_mm512_roundscale_ph): Likewise.
1200 (_mm512_mask_roundscale_ph): Likewise.
1201 (_mm512_maskz_roundscale_ph): Likewise.
1202 (_mm512_roundscale_round_ph): Likewise.
1203 (_mm512_mask_roundscale_round_ph): Likewise.
1204 (_mm512_maskz_roundscale_round_ph): Likewise.
1205 (_mm_roundscale_sh): Likewise.
1206 (_mm_mask_roundscale_sh): Likewise.
1207 (_mm_maskz_roundscale_sh): Likewise.
1208 (_mm_roundscale_round_sh): Likewise.
1209 (_mm_mask_roundscale_round_sh): Likewise.
1210 (_mm_maskz_roundscale_round_sh): Likewise.
1211 * config/i386/avx512fp16vlintrin.h: (_mm_reduce_ph):
1212 New intrinsic.
1213 (_mm_mask_reduce_ph): Likewise.
1214 (_mm_maskz_reduce_ph): Likewise.
1215 (_mm256_reduce_ph): Likewise.
1216 (_mm256_mask_reduce_ph): Likewise.
1217 (_mm256_maskz_reduce_ph): Likewise.
1218 (_mm_roundscale_ph): Likewise.
1219 (_mm_mask_roundscale_ph): Likewise.
1220 (_mm_maskz_roundscale_ph): Likewise.
1221 (_mm256_roundscale_ph): Likewise.
1222 (_mm256_mask_roundscale_ph): Likewise.
1223 (_mm256_maskz_roundscale_ph): Likewise.
1224 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
1225 * config/i386/i386-builtin.def: Add corresponding new builtins.
1226 * config/i386/i386-expand.c
1227 (ix86_expand_args_builtin): Handle new builtin types.
1228 (ix86_expand_round_builtin): Ditto.
1229 * config/i386/sse.md (<mask_codefor>reducep<mode><mask_name>):
1230 Renamed to ...
1231 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
1232 ... this, and adjust for round operands.
1233 (reduces<mode><mask_scalar_name>): Likewise, with ...
1234 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name):
1235 ... this.
1236 (<avx512>_rndscale<mode><mask_name><round_saeonly_name>):
1237 Adjust for HF vector modes.
1238 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
1239 Ditto.
1240 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
1241
1242 2021-09-14 liuhongt <hongtao.liu@intel.com>
1243
1244 * config/i386/avx512fp16intrin.h: (_mm512_rcp_ph):
1245 New intrinsic.
1246 (_mm512_mask_rcp_ph): Likewise.
1247 (_mm512_maskz_rcp_ph): Likewise.
1248 (_mm_rcp_sh): Likewise.
1249 (_mm_mask_rcp_sh): Likewise.
1250 (_mm_maskz_rcp_sh): Likewise.
1251 (_mm512_scalef_ph): Likewise.
1252 (_mm512_mask_scalef_ph): Likewise.
1253 (_mm512_maskz_scalef_ph): Likewise.
1254 (_mm512_scalef_round_ph): Likewise.
1255 (_mm512_mask_scalef_round_ph): Likewise.
1256 (_mm512_maskz_scalef_round_ph): Likewise.
1257 (_mm_scalef_sh): Likewise.
1258 (_mm_mask_scalef_sh): Likewise.
1259 (_mm_maskz_scalef_sh): Likewise.
1260 (_mm_scalef_round_sh): Likewise.
1261 (_mm_mask_scalef_round_sh): Likewise.
1262 (_mm_maskz_scalef_round_sh): Likewise.
1263 * config/i386/avx512fp16vlintrin.h (_mm_rcp_ph):
1264 New intrinsic.
1265 (_mm256_rcp_ph): Likewise.
1266 (_mm_mask_rcp_ph): Likewise.
1267 (_mm256_mask_rcp_ph): Likewise.
1268 (_mm_maskz_rcp_ph): Likewise.
1269 (_mm256_maskz_rcp_ph): Likewise.
1270 (_mm_scalef_ph): Likewise.
1271 (_mm256_scalef_ph): Likewise.
1272 (_mm_mask_scalef_ph): Likewise.
1273 (_mm256_mask_scalef_ph): Likewise.
1274 (_mm_maskz_scalef_ph): Likewise.
1275 (_mm256_maskz_scalef_ph): Likewise.
1276 * config/i386/i386-builtin.def: Add new builtins.
1277 * config/i386/sse.md (VFH_AVX512VL): New.
1278 (avx512fp16_rcp<mode>2<mask_name>): Ditto.
1279 (avx512fp16_vmrcpv8hf2<mask_scalar_name>): Ditto.
1280 (avx512f_vmscalef<mode><mask_scalar_name><round_scalar_name>):
1281 Adjust to support HF vector modes.
1282 (<avx512>_scalef<mode><mask_name><round_name>): Ditto.
1283
1284 2021-09-14 liuhongt <hongtao.liu@intel.com>
1285
1286 * config/i386/avx512fp16intrin.h: (_mm512_sqrt_ph):
1287 New intrinsic.
1288 (_mm512_mask_sqrt_ph): Likewise.
1289 (_mm512_maskz_sqrt_ph): Likewise.
1290 (_mm512_sqrt_round_ph): Likewise.
1291 (_mm512_mask_sqrt_round_ph): Likewise.
1292 (_mm512_maskz_sqrt_round_ph): Likewise.
1293 (_mm512_rsqrt_ph): Likewise.
1294 (_mm512_mask_rsqrt_ph): Likewise.
1295 (_mm512_maskz_rsqrt_ph): Likewise.
1296 (_mm_rsqrt_sh): Likewise.
1297 (_mm_mask_rsqrt_sh): Likewise.
1298 (_mm_maskz_rsqrt_sh): Likewise.
1299 (_mm_sqrt_sh): Likewise.
1300 (_mm_mask_sqrt_sh): Likewise.
1301 (_mm_maskz_sqrt_sh): Likewise.
1302 (_mm_sqrt_round_sh): Likewise.
1303 (_mm_mask_sqrt_round_sh): Likewise.
1304 (_mm_maskz_sqrt_round_sh): Likewise.
1305 * config/i386/avx512fp16vlintrin.h (_mm_sqrt_ph): New intrinsic.
1306 (_mm256_sqrt_ph): Likewise.
1307 (_mm_mask_sqrt_ph): Likewise.
1308 (_mm256_mask_sqrt_ph): Likewise.
1309 (_mm_maskz_sqrt_ph): Likewise.
1310 (_mm256_maskz_sqrt_ph): Likewise.
1311 (_mm_rsqrt_ph): Likewise.
1312 (_mm256_rsqrt_ph): Likewise.
1313 (_mm_mask_rsqrt_ph): Likewise.
1314 (_mm256_mask_rsqrt_ph): Likewise.
1315 (_mm_maskz_rsqrt_ph): Likewise.
1316 (_mm256_maskz_rsqrt_ph): Likewise.
1317 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
1318 * config/i386/i386-builtin.def: Add corresponding new builtins.
1319 * config/i386/i386-expand.c
1320 (ix86_expand_args_builtin): Handle new builtins.
1321 (ix86_expand_round_builtin): Ditto.
1322 * config/i386/sse.md (VF_AVX512FP16VL): New.
1323 (sqrt<mode>2): Adjust for HF vector modes.
1324 (<sse>_sqrt<mode>2<mask_name><round_name>): Likewise.
1325 (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
1326 Likewise.
1327 (<sse>_rsqrt<mode>2<mask_name>): New.
1328 (avx512fp16_vmrsqrtv8hf2<mask_scalar_name>): Likewise.
1329
1330 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
1331
1332 PR bootstrap/101574
1333 * diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
1334 'RESERVED_LOCATION_P' locations.
1335 * warning-control.cc (get_nowarn_spec, suppress_warning)
1336 (copy_warning): Likewise.
1337
1338 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
1339
1340 * diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
1341 (typedef key_type_t): ... this. Remove.
1342 (nowarn_map): Document.
1343 * diagnostic-spec.c (nowarn_map): Likewise.
1344 * warning-control.cc (convert_to_key): Evolve functions into...
1345 (get_location): ... these. Adjust all users.
1346
1347 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
1348
1349 * warning-control.cc (copy_warning): Remove 'nowarn_map' setup.
1350
1351 2021-09-13 Jason Merrill <jason@redhat.com>
1352
1353 * params.opt: Add destructive-interference-size and
1354 constructive-interference-size.
1355 * doc/invoke.texi: Document them.
1356 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1357 Set them.
1358 * config/arm/arm.c (arm_option_override): Set them.
1359 * config/i386/i386-options.c (ix86_option_override_internal):
1360 Set them.
1361
1362 2021-09-13 Martin Liska <mliska@suse.cz>
1363 H.J. Lu <hjl.tools@gmail.com>
1364
1365 PR target/101696
1366 * common/config/i386/cpuinfo.h (cpu_indicator_init): Add support
1367 for x86-64 micro levels for __builtin_cpu_supports.
1368 * common/config/i386/i386-cpuinfo.h (enum feature_priority):
1369 Add priorities for the micro-arch levels.
1370 (enum processor_features): Add new features.
1371 * common/config/i386/i386-isas.h: Add micro-arch features.
1372 * config/i386/i386-builtins.c (get_builtin_code_for_version):
1373 Support the micro-arch levels by callsing
1374 __builtin_cpu_supports.
1375 * doc/extend.texi: Document that the levels are support by
1376 __builtin_cpu_supports.
1377
1378 2021-09-13 Andrew Pinski <apinski@marvell.com>
1379
1380 PR target/95969
1381 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
1382 New function.
1383 (aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
1384 (aarch64_general_gimple_fold_builtin): Likewise.
1385
1386 2021-09-13 Andrew Pinski <apinski@marvell.com>
1387
1388 * config.gcc: Add m32r-*-linux* and m32rle-*-linux*
1389 to the Unsupported targets list.
1390 Remove support for m32r-*-linux* and m32rle-*-linux*.
1391 * config/m32r/linux.h: Removed.
1392 * config/m32r/t-linux: Removed.
1393
1394 2021-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1395
1396 PR target/102252
1397 * config/aarch64/aarch64.c (aarch64_classify_address): Don't allow
1398 register index for SVE predicate modes.
1399
1400 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
1401
1402 * tree-ssa-threadbackward.c
1403 (back_threader_profitability::profitable_path_p): Remove FSM
1404 references.
1405 (back_threader_registry::register_path): Same.
1406 * tree-ssa-threadedge.c
1407 (jump_threader::simplify_control_stmt_condition): Same.
1408 * tree-ssa-threadupdate.c (jt_path_registry::jt_path_registry):
1409 Add backedge_threads argument.
1410 (fwd_jt_path_registry::fwd_jt_path_registry): Pass
1411 backedge_threads argument.
1412 (back_jt_path_registry::back_jt_path_registry): Same.
1413 (dump_jump_thread_path): Adjust for FSM removal.
1414 (back_jt_path_registry::rewire_first_differing_edge): Same.
1415 (back_jt_path_registry::adjust_paths_after_duplication): Same.
1416 (back_jt_path_registry::update_cfg): Same.
1417 (jt_path_registry::register_jump_thread): Same.
1418 * tree-ssa-threadupdate.h (enum jump_thread_edge_type): Remove
1419 EDGE_FSM_THREAD.
1420 (class back_jt_path_registry): Add backedge_threads to
1421 constructor.
1422
1423 2021-09-13 Martin Liska <mliska@suse.cz>
1424
1425 PR c++/101331
1426 * asan.h (sanitize_coverage_p): Handle when fn == NULL.
1427
1428 2021-09-13 H.J. Lu <hjl.tools@gmail.com>
1429
1430 PR target/101935
1431 * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): New.
1432 (TARGET_AVX256_STORE_BY_PIECES): Likewise.
1433 (MOVE_MAX): Check TARGET_AVX256_MOVE_BY_PIECES and
1434 TARGET_AVX256_STORE_BY_PIECES instead of
1435 TARGET_AVX256_SPLIT_UNALIGNED_LOAD and
1436 TARGET_AVX256_SPLIT_UNALIGNED_STORE.
1437 (STORE_MAX_PIECES): Check TARGET_AVX256_STORE_BY_PIECES instead
1438 of TARGET_AVX256_SPLIT_UNALIGNED_STORE.
1439 * config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES): New.
1440 (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
1441
1442 2021-09-13 liuhongt <hongtao.liu@intel.com>
1443
1444 PR bootstrap/102302
1445 * expmed.c (extract_bit_field_using_extv): Use
1446 gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
1447
1448 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
1449
1450 * Makefile.in (OBJS): Add value-pointer-equiv.o.
1451 * gimple-ssa-evrp.c (class ssa_equiv_stack): Move to
1452 value-pointer-equiv.*.
1453 (ssa_equiv_stack::ssa_equiv_stack): Same.
1454 (ssa_equiv_stack::enter): Same.
1455 (ssa_equiv_stack::leave): Same.
1456 (ssa_equiv_stack::push_replacement): Same.
1457 (ssa_equiv_stack::get_replacement): Same.
1458 (is_pointer_ssa): Same.
1459 (class pointer_equiv_analyzer): Same.
1460 (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
1461 (pointer_equiv_analyzer::~pointer_equiv_analyzer): Same.
1462 (pointer_equiv_analyzer::set_global_equiv): Same.
1463 (pointer_equiv_analyzer::set_cond_equiv): Same.
1464 (pointer_equiv_analyzer::get_equiv): Same.
1465 (pointer_equiv_analyzer::enter): Same.
1466 (pointer_equiv_analyzer::leave): Same.
1467 (pointer_equiv_analyzer::get_equiv_expr): Same.
1468 (pta_valueize): Same.
1469 (pointer_equiv_analyzer::visit_stmt): Same.
1470 (pointer_equiv_analyzer::visit_edge): Same.
1471 (hybrid_folder::value_of_expr): Same.
1472 (hybrid_folder::value_on_edge): Same.
1473 * value-pointer-equiv.cc: New file.
1474 * value-pointer-equiv.h: New file.
1475
1476 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
1477
1478 PR target/102125
1479 * gimple-fold.c (gimple_fold_builtin_memory_op): Allow folding
1480 memcpy if the size is not more than MOVE_MAX * MOVE_RATIO.
1481
1482 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
1483
1484 PR target/102125
1485 * config/arm/arm.md (movmisaligndi): New define_expand.
1486 * config/arm/vec-common.md (movmisalign<mode>): Iterate over VDQ mode.
1487
1488 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
1489
1490 PR target/102125
1491 * emit-rtl.c (gen_highpart): Use adjust_address to handle
1492 MEM rather than calling simplify_gen_subreg.
1493
1494 2021-09-13 Jan-Benedict Glaw <jbglaw@ług-owl.de>
1495
1496 * config/alpha/vms.h (INIT_CUMULATIVE_ARGS): Wrap multi-statment
1497 define into a block.
1498
1499 2021-09-13 Richard Biener <rguenther@suse.de>
1500
1501 * config/darwin.h (DARWIN_PREFER_DWARF): Do not define.
1502 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Do not
1503 change based on DARWIN_PREFER_DWARF not being defined.
1504
1505 2021-09-13 Richard Biener <rguenther@suse.de>
1506
1507 * config/i386/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
1508 to inherit from elfos.h
1509
1510 2021-09-13 Richard Biener <rguenther@suse.de>
1511
1512 * config.gcc: Add cr16-*-* to the list of obsoleted targets.
1513
1514 2021-09-13 Richard Biener <rguenther@suse.de>
1515
1516 * config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
1517 override, pick up DWARF2_DEBUG define from elfos.h
1518
1519 2021-09-13 Richard Biener <rguenther@suse.de>
1520
1521 * config/rx/rx.h (PREFERRED_DEBUGGING_TYPE): Always define to
1522 DWARF2_DEBUG.
1523
1524 2021-09-13 Richard Biener <rguenther@suse.de>
1525
1526 * config/alpha/vms.h (PREFERRED_DEBUGGING_TYPE): Define to
1527 DWARF2_DEBUG.
1528
1529 2021-09-13 Richard Biener <rguenther@suse.de>
1530
1531 * config/i386/cygming.h: Always default to DWARF2 debugging.
1532 Do not define DBX_DEBUGGING_INFO, that's done via dbxcoff.h
1533 already.
1534 * doc/install.texi: Document binutils 2.16 as minimum
1535 requirement for mingw.
1536
1537 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
1538
1539 * config/rs6000/rs6000.c (struct rs6000_cost_data): New members
1540 nstmts, nloads and extra_ctor_cost.
1541 (rs6000_density_test): Add load density related heuristics. Do
1542 extra costing on vector construction statements if need.
1543 (rs6000_init_cost): Init new members.
1544 (rs6000_update_target_cost_per_stmt): New function.
1545 (rs6000_add_stmt_cost): Factor vect_nonmem hunk out to function
1546 rs6000_update_target_cost_per_stmt and call it.
1547
1548 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
1549
1550 * config/rs6000/rs6000.c (struct rs6000_cost_data): Remove typedef.
1551 (rs6000_init_cost): Adjust.
1552
1553 2021-09-13 liuhongt <hongtao.liu@intel.com>
1554
1555 * config/i386/i386.md: (UNSPEC_COPYSIGN): Remove.
1556 (UNSPEC_XORSIGN): Ditto.
1557
1558 2021-09-12 Roger Sayle <roger@nextmovesoftware.com>
1559
1560 * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when
1561 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
1562 subreg.
1563
1564 2021-09-11 Aldy Hernandez <aldyh@redhat.com>
1565
1566 * tree-ssa-threadbackward.c (class back_threader_registry): Use
1567 back_jt_path_registry.
1568 * tree-ssa-threadedge.c (jump_threader::jump_threader): Use
1569 fwd_jt_path_registry.
1570 * tree-ssa-threadedge.h (class jump_threader): Same..
1571 * tree-ssa-threadupdate.c
1572 (jump_thread_path_registry::jump_thread_path_registry): Rename...
1573 (jt_path_registry::jt_path_registry): ...to this.
1574 (jump_thread_path_registry::~jump_thread_path_registry): Rename...
1575 (jt_path_registry::~jt_path_registry): ...this.
1576 (fwd_jt_path_registry::fwd_jt_path_registry): New.
1577 (fwd_jt_path_registry::~fwd_jt_path_registry): New.
1578 (jump_thread_path_registry::allocate_thread_edge): Rename...
1579 (jt_path_registry::allocate_thread_edge): ...to this.
1580 (jump_thread_path_registry::allocate_thread_path): Rename...
1581 (jt_path_registry::allocate_thread_path): ...to this.
1582 (jump_thread_path_registry::lookup_redirection_data): Rename...
1583 (fwd_jt_path_registry::lookup_redirection_data): ...to this.
1584 (jump_thread_path_registry::thread_block_1): Rename...
1585 (fwd_jt_path_registry::thread_block_1): ...to this.
1586 (jump_thread_path_registry::thread_block): Rename...
1587 (fwd_jt_path_registry::thread_block): ...to this.
1588 (jt_path_registry::thread_through_loop_header): Rename...
1589 (fwd_jt_path_registry::thread_through_loop_header): ...to this.
1590 (jump_thread_path_registry::mark_threaded_blocks): Rename...
1591 (fwd_jt_path_registry::mark_threaded_blocks): ...to this.
1592 (jump_thread_path_registry::debug_path): Rename...
1593 (jt_path_registry::debug_path): ...to this.
1594 (jump_thread_path_registry::dump): Rename...
1595 (jt_path_registry::debug): ...to this.
1596 (jump_thread_path_registry::rewire_first_differing_edge): Rename...
1597 (back_jt_path_registry::rewire_first_differing_edge): ...to this.
1598 (jump_thread_path_registry::adjust_paths_after_duplication): Rename...
1599 (back_jt_path_registry::adjust_paths_after_duplication): ...to this.
1600 (jump_thread_path_registry::duplicate_thread_path): Rename...
1601 (back_jt_path_registry::duplicate_thread_path): ...to this. Also,
1602 drop ill-formed candidates.
1603 (jump_thread_path_registry::remove_jump_threads_including): Rename...
1604 (fwd_jt_path_registry::remove_jump_threads_including): ...to this.
1605 (jt_path_registry::thread_through_all_blocks): New.
1606 (back_jt_path_registry::update_cfg): New.
1607 (fwd_jt_path_registry::update_cfg): New.
1608 (jump_thread_path_registry::register_jump_thread): Rename...
1609 (jt_path_registry::register_jump_thread): ...to this.
1610 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
1611 Abstract to...
1612 (class jt_path_registry): ...here.
1613 (class fwd_jt_path_registry): New.
1614 (class back_jt_path_registry): New.
1615
1616 2021-09-10 liuhongt <hongtao.liu@intel.com>
1617
1618 Revert:
1619 2021-09-01 liuhongt <hongtao.liu@intel.com>
1620
1621 * emit-rtl.c (validate_subreg): Get rid of all float-int
1622 special cases.
1623
1624 2021-09-10 Jakub Jelinek <jakub@redhat.com>
1625
1626 * tree-core.h (enum omp_memory_order): Add OMP_MEMORY_ORDER_MASK,
1627 OMP_FAIL_MEMORY_ORDER_UNSPECIFIED, OMP_FAIL_MEMORY_ORDER_RELAXED,
1628 OMP_FAIL_MEMORY_ORDER_ACQUIRE, OMP_FAIL_MEMORY_ORDER_RELEASE,
1629 OMP_FAIL_MEMORY_ORDER_ACQ_REL, OMP_FAIL_MEMORY_ORDER_SEQ_CST and
1630 OMP_FAIL_MEMORY_ORDER_MASK enumerators.
1631 (OMP_FAIL_MEMORY_ORDER_SHIFT): Define.
1632 * gimple-pretty-print.c (dump_gimple_omp_atomic_load,
1633 dump_gimple_omp_atomic_store): Print [weak] for weak atomic
1634 load/store.
1635 * gimple.h (enum gf_mask): Change GF_OMP_ATOMIC_MEMORY_ORDER
1636 to 6-bit mask, adjust GF_OMP_ATOMIC_NEED_VALUE value and add
1637 GF_OMP_ATOMIC_WEAK.
1638 (gimple_omp_atomic_weak_p, gimple_omp_atomic_set_weak): New inline
1639 functions.
1640 * tree.h (OMP_ATOMIC_WEAK): Define.
1641 * tree-pretty-print.c (dump_omp_atomic_memory_order): Adjust for
1642 fail memory order being encoded in the same enum and also print
1643 fail clause if present.
1644 (dump_generic_node): Print weak clause if OMP_ATOMIC_WEAK.
1645 * gimplify.c (goa_stabilize_expr): Add target_expr and rhs arguments,
1646 handle pre_p == NULL case as a test mode that only returns value
1647 but doesn't change gimplify nor change anything otherwise, adjust
1648 recursive calls, add MODIFY_EXPR, ADDR_EXPR, COND_EXPR, TARGET_EXPR
1649 and CALL_EXPR handling, adjust COMPOUND_EXPR handling for
1650 __builtin_clear_padding calls, for !rhs gimplify as lvalue rather
1651 than rvalue.
1652 (gimplify_omp_atomic): Adjust goa_stabilize_expr caller. Handle
1653 COND_EXPR rhs. Set weak flag on gimple load/store for
1654 OMP_ATOMIC_WEAK.
1655 * omp-expand.c (omp_memory_order_to_fail_memmodel): New function.
1656 (omp_memory_order_to_memmodel): Adjust for fail clause encoded
1657 in the same enum.
1658 (expand_omp_atomic_cas): New function.
1659 (expand_omp_atomic_pipeline): Use omp_memory_order_to_fail_memmodel
1660 function.
1661 (expand_omp_atomic): Attempt to optimize atomic compare and exchange
1662 using expand_omp_atomic_cas.
1663
1664 2021-09-10 Aldy Hernandez <aldyh@redhat.com>
1665 Michael Matz <matz@suse.de>
1666
1667 * tree-pass.h (PROP_loop_opts_done): New.
1668 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
1669 Intersect with global range.
1670 * tree-ssa-loop.c (tree_ssa_loop_done): Set PROP_loop_opts_done.
1671 * tree-ssa-threadbackward.c
1672 (back_threader_profitability::profitable_path_p): Disable
1673 threading through latches until after loop optimizations have run.
1674
1675 2021-09-10 David Faust <david.faust@oracle.com>
1676
1677 * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32
1678 options.
1679
1680 2021-09-10 David Faust <david.faust@oracle.com>
1681
1682 * config/bpf/bpf-opts.h (bpf_isa_version): New enum.
1683 * config/bpf/bpf-protos.h (bpf_expand_cbranch): New.
1684 * config/bpf/bpf.c (bpf_option_override): Handle -mcpu option.
1685 (bpf_expand_cbranch): New function.
1686 * config/bpf/bpf.md (AM mode iterator): Conditionalize support for SI
1687 mode.
1688 (zero_extendsidi2): Only use mov32 instruction if it is available.
1689 (SIM mode iterator): Conditionalize support for SI mode.
1690 (JM mode iterator): New.
1691 (cbranchdi4): Update name, use new JM iterator. Use bpf_expand_cbranch.
1692 (*branch_on_di): Update name, use new JM iterator.
1693 * config/bpf/bpf.opt: (mjmpext): New option.
1694 (malu32): Likewise.
1695 (mjmp32): Likewise.
1696 (mcpu): Likewise.
1697 (bpf_isa): New enum.
1698
1699 2021-09-10 David Faust <david.faust@oracle.com>
1700
1701 * config/bpf/bpf.md (zero_extendhidi2): Add new output template
1702 for register-to-register extensions.
1703 (zero_extendqidi2): Likewise.
1704
1705 2021-09-10 Richard Biener <rguenther@suse.de>
1706
1707 PR middle-end/102273
1708 * internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.
1709
1710 2021-09-10 Richard Biener <rguenther@suse.de>
1711
1712 PR middle-end/102269
1713 * gimplify.c (is_var_need_auto_init): Empty types do not need
1714 initialization.
1715
1716 2021-09-10 Richard Biener <rguenther@suse.de>
1717
1718 * configure.ac (--with-stabs): Remove.
1719 * configure: Regenerate.
1720 * doc/install.texi: Remove --with-stabs documentation.
1721
1722 2021-09-10 liuhongt <hongtao.liu@intel.com>
1723
1724 * config/i386/avx512fp16intrin.h: (_mm512_cmp_ph_mask):
1725 New intrinsic.
1726 (_mm512_mask_cmp_ph_mask): Likewise.
1727 (_mm512_cmp_round_ph_mask): Likewise.
1728 (_mm512_mask_cmp_round_ph_mask): Likewise.
1729 (_mm_cmp_sh_mask): Likewise.
1730 (_mm_mask_cmp_sh_mask): Likewise.
1731 (_mm_cmp_round_sh_mask): Likewise.
1732 (_mm_mask_cmp_round_sh_mask): Likewise.
1733 (_mm_comieq_sh): Likewise.
1734 (_mm_comilt_sh): Likewise.
1735 (_mm_comile_sh): Likewise.
1736 (_mm_comigt_sh): Likewise.
1737 (_mm_comige_sh): Likewise.
1738 (_mm_comineq_sh): Likewise.
1739 (_mm_ucomieq_sh): Likewise.
1740 (_mm_ucomilt_sh): Likewise.
1741 (_mm_ucomile_sh): Likewise.
1742 (_mm_ucomigt_sh): Likewise.
1743 (_mm_ucomige_sh): Likewise.
1744 (_mm_ucomineq_sh): Likewise.
1745 (_mm_comi_round_sh): Likewise.
1746 (_mm_comi_sh): Likewise.
1747 * config/i386/avx512fp16vlintrin.h (_mm_cmp_ph_mask): New intrinsic.
1748 (_mm_mask_cmp_ph_mask): Likewise.
1749 (_mm256_cmp_ph_mask): Likewise.
1750 (_mm256_mask_cmp_ph_mask): Likewise.
1751 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
1752 * config/i386/i386-builtin.def: Add corresponding new builtins.
1753 * config/i386/i386-expand.c
1754 (ix86_expand_args_builtin): Handle new builtin types.
1755 (ix86_expand_round_builtin): Ditto.
1756 * config/i386/i386.md (ssevecmode): Add HF mode.
1757 (MODEFH): New mode iterator.
1758 * config/i386/sse.md
1759 (V48H_AVX512VL): New mode iterator to support HF vector modes.
1760 Ajdust corresponding description.
1761 (ssecmpintprefix): New.
1762 (VI12_AVX512VL): Adjust to support HF vector modes.
1763 (cmp_imm_predicate): Likewise.
1764 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
1765 Likewise.
1766 (avx512f_vmcmp<mode>3<round_saeonly_name>): Likewise.
1767 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Likewise.
1768 (<sse>_<unord>comi<round_saeonly_name>): Likewise.
1769
1770 2021-09-10 liuhongt <hongtao.liu@intel.com>
1771
1772 * config/i386/avx512fp16intrin.h: (_mm512_max_ph): New intrinsic.
1773 (_mm512_mask_max_ph): Likewise.
1774 (_mm512_maskz_max_ph): Likewise.
1775 (_mm512_min_ph): Likewise.
1776 (_mm512_mask_min_ph): Likewise.
1777 (_mm512_maskz_min_ph): Likewise.
1778 (_mm512_max_round_ph): Likewise.
1779 (_mm512_mask_max_round_ph): Likewise.
1780 (_mm512_maskz_max_round_ph): Likewise.
1781 (_mm512_min_round_ph): Likewise.
1782 (_mm512_mask_min_round_ph): Likewise.
1783 (_mm512_maskz_min_round_ph): Likewise.
1784 (_mm_max_sh): Likewise.
1785 (_mm_mask_max_sh): Likewise.
1786 (_mm_maskz_max_sh): Likewise.
1787 (_mm_min_sh): Likewise.
1788 (_mm_mask_min_sh): Likewise.
1789 (_mm_maskz_min_sh): Likewise.
1790 (_mm_max_round_sh): Likewise.
1791 (_mm_mask_max_round_sh): Likewise.
1792 (_mm_maskz_max_round_sh): Likewise.
1793 (_mm_min_round_sh): Likewise.
1794 (_mm_mask_min_round_sh): Likewise.
1795 (_mm_maskz_min_round_sh): Likewise.
1796 * config/i386/avx512fp16vlintrin.h (_mm_max_ph): New intrinsic.
1797 (_mm256_max_ph): Likewise.
1798 (_mm_mask_max_ph): Likewise.
1799 (_mm256_mask_max_ph): Likewise.
1800 (_mm_maskz_max_ph): Likewise.
1801 (_mm256_maskz_max_ph): Likewise.
1802 (_mm_min_ph): Likewise.
1803 (_mm256_min_ph): Likewise.
1804 (_mm_mask_min_ph): Likewise.
1805 (_mm256_mask_min_ph): Likewise.
1806 (_mm_maskz_min_ph): Likewise.
1807 (_mm256_maskz_min_ph): Likewise.
1808 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
1809 * config/i386/i386-builtin.def: Add corresponding new builtins.
1810 * config/i386/i386-expand.c
1811 (ix86_expand_args_builtin): Handle new builtin types.
1812 * config/i386/sse.md
1813 (<code><mode>3<mask_name><round_saeonly_name>): Adjust to
1814 support HF vector modes.
1815 (*<code><mode>3<mask_name><round_saeonly_name>): Likewise.
1816 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
1817 Likewise.
1818 (<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
1819 Likewise.
1820 * config/i386/subst.md (round_saeonly_mode512bit_condition):
1821 Adjust for HF vector modes.
1822
1823 2021-09-10 Liu, Hongtao <hongtao.liu@intel.com>
1824
1825 * config/i386/avx512fp16intrin.h (_mm_add_sh): New intrinsic.
1826 (_mm_mask_add_sh): Likewise.
1827 (_mm_maskz_add_sh): Likewise.
1828 (_mm_sub_sh): Likewise.
1829 (_mm_mask_sub_sh): Likewise.
1830 (_mm_maskz_sub_sh): Likewise.
1831 (_mm_mul_sh): Likewise.
1832 (_mm_mask_mul_sh): Likewise.
1833 (_mm_maskz_mul_sh): Likewise.
1834 (_mm_div_sh): Likewise.
1835 (_mm_mask_div_sh): Likewise.
1836 (_mm_maskz_div_sh): Likewise.
1837 (_mm_add_round_sh): Likewise.
1838 (_mm_mask_add_round_sh): Likewise.
1839 (_mm_maskz_add_round_sh): Likewise.
1840 (_mm_sub_round_sh): Likewise.
1841 (_mm_mask_sub_round_sh): Likewise.
1842 (_mm_maskz_sub_round_sh): Likewise.
1843 (_mm_mul_round_sh): Likewise.
1844 (_mm_mask_mul_round_sh): Likewise.
1845 (_mm_maskz_mul_round_sh): Likewise.
1846 (_mm_div_round_sh): Likewise.
1847 (_mm_mask_div_round_sh): Likewise.
1848 (_mm_maskz_div_round_sh): Likewise.
1849 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
1850 * config/i386/i386-builtin.def: Add corresponding new builtins.
1851 * config/i386/i386-expand.c
1852 (ix86_expand_round_builtin): Handle new builtins.
1853 * config/i386/sse.md (VF_128): Change description.
1854 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>):
1855 Adjust to support HF vector modes.
1856 (<sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>):
1857 Likewise.
1858
1859 2021-09-10 H.J. Lu <hjl.tools@gmail.com>
1860
1861 * config/i386/i386-expand.c
1862 (ix86_avx256_split_vector_move_misalign): Handle V16HF mode.
1863 * config/i386/i386.c
1864 (ix86_preferred_simd_mode): Handle HF mode.
1865 * config/i386/sse.md (V_256H): New mode iterator.
1866 (avx_vextractf128<mode>): Use it.
1867 (VEC_INIT_MODE): Align vector HFmode condition to vector
1868 HImodes since there're no real HF instruction used.
1869 (VEC_INIT_HALF_MODE): Ditto.
1870 (VIHF): Ditto.
1871 (VIHF_AVX512BW): Ditto.
1872 (*vec_extracthf): Ditto.
1873 (VEC_EXTRACT_MODE): Ditto.
1874
1875 2021-09-10 Richard Biener <rguenther@suse.de>
1876
1877 PR target/102255
1878 * config/dbx.h: Remove.
1879 * config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
1880 * config/lynx.h: Likewise.
1881
1882 2021-09-10 liuhongt <hongtao.liu@intel.com>
1883
1884 * config/i386/i386-expand.c (ix86_expand_copysign): Expand
1885 right into ANDNOT + AND + IOR, using paradoxical subregs.
1886 (ix86_split_copysign_const): Remove.
1887 (ix86_split_copysign_var): Ditto.
1888 * config/i386/i386-protos.h (ix86_split_copysign_const): Dotto.
1889 (ix86_split_copysign_var): Ditto.
1890 * config/i386/i386.md (@copysign<mode>3_const): Ditto.
1891 (@copysign<mode>3_var): Ditto.
1892
1893 2021-09-09 qing zhao <qing.zhao@oracle.com>
1894
1895 * builtins.c (expand_builtin_memset): Make external visible.
1896 * builtins.h (expand_builtin_memset): Declare extern.
1897 * common.opt (ftrivial-auto-var-init=): New option.
1898 * doc/extend.texi: Document the uninitialized attribute.
1899 * doc/invoke.texi: Document -ftrivial-auto-var-init.
1900 * flag-types.h (enum auto_init_type): New enumerated type
1901 auto_init_type.
1902 * gimple-fold.c (clear_padding_type): Add one new parameter.
1903 (clear_padding_union): Likewise.
1904 (clear_padding_emit_loop): Likewise.
1905 (clear_type_padding_in_mask): Likewise.
1906 (gimple_fold_builtin_clear_padding): Handle this new parameter.
1907 * gimplify.c (gimple_add_init_for_auto_var): New function.
1908 (gimple_add_padding_init_for_auto_var): New function.
1909 (is_var_need_auto_init): New function.
1910 (gimplify_decl_expr): Add initialization to automatic variables per
1911 users' requests.
1912 (gimplify_call_expr): Add one new parameter for call to
1913 __builtin_clear_padding.
1914 (gimplify_init_constructor): Add padding initialization in the end.
1915 * internal-fn.c (INIT_PATTERN_VALUE): New macro.
1916 (expand_DEFERRED_INIT): New function.
1917 * internal-fn.def (DEFERRED_INIT): New internal function.
1918 * tree-cfg.c (verify_gimple_call): Verify calls to .DEFERRED_INIT.
1919 * tree-sra.c (generate_subtree_deferred_init): New function.
1920 (scan_function): Avoid setting cannot_scalarize_away_bitmap for
1921 calls to .DEFERRED_INIT.
1922 (sra_modify_deferred_init): New function.
1923 (sra_modify_function_body): Handle calls to DEFERRED_INIT specially.
1924 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
1925 * tree-ssa-uninit.c (warn_uninit): Handle calls to DEFERRED_INIT
1926 specially.
1927 (check_defs): Likewise.
1928 (warn_uninitialized_vars): Likewise.
1929 * tree-ssa.c (ssa_undefined_value_p): Likewise.
1930 * tree.c (build_common_builtin_nodes): Build tree node for
1931 BUILT_IN_CLEAR_PADDING when needed.
1932
1933 2021-09-09 Richard Biener <rguenther@suse.de>
1934
1935 * tree-ssa-loop-im.c (fill_always_executed_in_1): Walk
1936 into all subloops.
1937
1938 2021-09-09 Richard Biener <rguenther@suse.de>
1939
1940 * tree-ssa-loop-im.c (fill_always_executed_in_1): Integrate
1941 DOM walk from get_loop_body_in_dom_order using a worklist
1942 approach.
1943
1944 2021-09-09 liuhongt <hongtao.liu@intel.com>
1945
1946 * config.gcc: Add avx512fp16vlintrin.h.
1947 * config/i386/avx512fp16intrin.h: (_mm512_add_ph): New intrinsic.
1948 (_mm512_mask_add_ph): Likewise.
1949 (_mm512_maskz_add_ph): Likewise.
1950 (_mm512_sub_ph): Likewise.
1951 (_mm512_mask_sub_ph): Likewise.
1952 (_mm512_maskz_sub_ph): Likewise.
1953 (_mm512_mul_ph): Likewise.
1954 (_mm512_mask_mul_ph): Likewise.
1955 (_mm512_maskz_mul_ph): Likewise.
1956 (_mm512_div_ph): Likewise.
1957 (_mm512_mask_div_ph): Likewise.
1958 (_mm512_maskz_div_ph): Likewise.
1959 (_mm512_add_round_ph): Likewise.
1960 (_mm512_mask_add_round_ph): Likewise.
1961 (_mm512_maskz_add_round_ph): Likewise.
1962 (_mm512_sub_round_ph): Likewise.
1963 (_mm512_mask_sub_round_ph): Likewise.
1964 (_mm512_maskz_sub_round_ph): Likewise.
1965 (_mm512_mul_round_ph): Likewise.
1966 (_mm512_mask_mul_round_ph): Likewise.
1967 (_mm512_maskz_mul_round_ph): Likewise.
1968 (_mm512_div_round_ph): Likewise.
1969 (_mm512_mask_div_round_ph): Likewise.
1970 (_mm512_maskz_div_round_ph): Likewise.
1971 * config/i386/avx512fp16vlintrin.h: New header.
1972 * config/i386/i386-builtin-types.def (V16HF, V8HF, V32HF):
1973 Add new builtin types.
1974 * config/i386/i386-builtin.def: Add corresponding builtins.
1975 * config/i386/i386-expand.c
1976 (ix86_expand_args_builtin): Handle new builtin types.
1977 (ix86_expand_round_builtin): Likewise.
1978 * config/i386/immintrin.h: Include avx512fp16vlintrin.h
1979 * config/i386/sse.md (VFH): New mode_iterator.
1980 (VF2H): Likewise.
1981 (avx512fmaskmode): Add HF vector modes.
1982 (avx512fmaskhalfmode): Likewise.
1983 (<plusminus_insn><mode>3<mask_name><round_name>): Adjust to for
1984 HF vector modes.
1985 (*<plusminus_insn><mode>3<mask_name><round_name>): Likewise.
1986 (mul<mode>3<mask_name><round_name>): Likewise.
1987 (*mul<mode>3<mask_name><round_name>): Likewise.
1988 (div<mode>3): Likewise.
1989 (<sse>_div<mode>3<mask_name><round_name>): Likewise.
1990 * config/i386/subst.md (SUBST_V): Add HF vector modes.
1991 (SUBST_A): Likewise.
1992 (round_mode512bit_condition): Adjust for V32HFmode.
1993
1994 2021-09-09 liuhongt <hongtao.liu@intel.com>
1995
1996 PR target/101059
1997 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
1998 (reduc_plus_scal_v4sf): .. this, New define_expand.
1999 (reduc_plus_scal_v2df): .. and this, New define_expand.
2000
2001 2021-09-09 liuhongt <hongtao.liu@intel.com>
2002
2003 PR target/91103
2004 * config/i386/sse.md (*vec_extract<mode><ssescalarmodelower>_valign):
2005 New define_insn.
2006
2007 2021-09-08 Jonathan Wakely <jwakely@redhat.com>
2008
2009 PR c++/60318
2010 * doc/trouble.texi (Copy Assignment): Fix description of
2011 behaviour and fix code in example.
2012
2013 2021-09-08 Segher Boessenkool <segher@kernel.crashing.org>
2014
2015 PR target/102107
2016 * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use
2017 r11 instead of r12 for restoring CR.
2018
2019 2021-09-08 Jakub Jelinek <jakub@redhat.com>
2020 liuhongt <hongtao.liu@intel.com>
2021
2022 PR target/89984
2023 * config/i386/i386.md (@xorsign<mode>3_1): Remove.
2024 * config/i386/i386-expand.c (ix86_expand_xorsign): Expand right away
2025 into AND with mask and XOR, using paradoxical subregs.
2026 (ix86_split_xorsign): Remove.
2027 * config/i386/i386-protos.h (ix86_split_xorsign): Remove.
2028
2029 2021-09-08 Di Zhao <dizhao@os.amperecomputing.com>
2030
2031 * tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
2032
2033 2021-09-08 Jakub Jelinek <jakub@redhat.com>
2034
2035 PR target/102224
2036 * config/i386/i386.md (xorsign<mode>3): If operands[1] is equal to
2037 operands[2], emit abs<mode>2 instead.
2038 (@xorsign<mode>3_1): Add early-clobbers for output operand, enable
2039 first alternative even for avx, add another alternative with
2040 =&Yv <- 0, Yv, Yvm constraints.
2041 * config/i386/i386-expand.c (ix86_split_xorsign): If op0 is equal
2042 to op1, emit vpandn instead.
2043
2044 2021-09-08 liuhongt <hongtao.liu@intel.com>
2045
2046 * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic.
2047 (_mm256_set_ph): Likewise.
2048 (_mm512_set_ph): Likewise.
2049 (_mm_setr_ph): Likewise.
2050 (_mm256_setr_ph): Likewise.
2051 (_mm512_setr_ph): Likewise.
2052 (_mm_set1_ph): Likewise.
2053 (_mm256_set1_ph): Likewise.
2054 (_mm512_set1_ph): Likewise.
2055 (_mm_setzero_ph): Likewise.
2056 (_mm256_setzero_ph): Likewise.
2057 (_mm512_setzero_ph): Likewise.
2058 (_mm_set_sh): Likewise.
2059 (_mm_load_sh): Likewise.
2060 (_mm_store_sh): Likewise.
2061 * config/i386/i386-builtin-types.def (V8HF): New type.
2062 (DEF_FUNCTION_TYPE (V8HF, V8HI)): New builtin function type
2063 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
2064 Support vector HFmodes.
2065 (ix86_expand_vector_init_one_nonzero): Likewise.
2066 (ix86_expand_vector_init_one_var): Likewise.
2067 (ix86_expand_vector_init_interleave): Likewise.
2068 (ix86_expand_vector_init_general): Likewise.
2069 (ix86_expand_vector_set): Likewise.
2070 (ix86_expand_vector_extract): Likewise.
2071 (ix86_expand_vector_init_concat): Likewise.
2072 (ix86_expand_sse_movcc): Handle vector HFmodes.
2073 (ix86_expand_vector_set_var): Ditto.
2074 * config/i386/i386-modes.def: Add HF vector modes in comment.
2075 * config/i386/i386.c (classify_argument): Add HF vector modes.
2076 (ix86_hard_regno_mode_ok): Allow HF vector modes for AVX512FP16.
2077 (ix86_vector_mode_supported_p): Likewise.
2078 (ix86_set_reg_reg_cost): Handle vector HFmode.
2079 (ix86_get_ssemov): Handle vector HFmode.
2080 (function_arg_advance_64): Pass unamed V16HFmode and V32HFmode
2081 by stack.
2082 (function_arg_advance_32): Pass V8HF/V16HF/V32HF by sse reg for 32bit
2083 mode.
2084 (function_arg_advance_32): Ditto.
2085 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): New.
2086 (VALID_AVX256_REG_OR_OI_MODE): Rename to ..
2087 (VALID_AVX256_REG_OR_OI_VHF_MODE): .. this, and add V16HF.
2088 (VALID_SSE2_REG_VHF_MODE): New.
2089 (VALID_AVX512VL_128_REG_MODE): Add V8HF and TImode.
2090 (SSE_REG_MODE_P): Add vector HFmode.
2091 * config/i386/i386.md (mode): Add HF vector modes.
2092 (MODE_SIZE): Likewise.
2093 (ssemodesuffix): Add ph suffix for HF vector modes.
2094 * config/i386/sse.md (VFH_128): New mode iterator.
2095 (VMOVE): Adjust for HF vector modes.
2096 (V): Likewise.
2097 (V_256_512): Likewise.
2098 (avx512): Likewise.
2099 (avx512fmaskmode): Likewise.
2100 (shuffletype): Likewise.
2101 (sseinsnmode): Likewise.
2102 (ssedoublevecmode): Likewise.
2103 (ssehalfvecmode): Likewise.
2104 (ssehalfvecmodelower): Likewise.
2105 (ssePScmode): Likewise.
2106 (ssescalarmode): Likewise.
2107 (ssescalarmodelower): Likewise.
2108 (sseintprefix): Likewise.
2109 (i128): Likewise.
2110 (bcstscalarsuff): Likewise.
2111 (xtg_mode): Likewise.
2112 (VI12HF_AVX512VL): New mode_iterator.
2113 (VF_AVX512FP16): Likewise.
2114 (VIHF): Likewise.
2115 (VIHF_256): Likewise.
2116 (VIHF_AVX512BW): Likewise.
2117 (V16_256): Likewise.
2118 (V32_512): Likewise.
2119 (sseintmodesuffix): New mode_attr.
2120 (sse): Add scalar and vector HFmodes.
2121 (ssescalarmode): Add vector HFmode mapping.
2122 (ssescalarmodesuffix): Add sh suffix for HFmode.
2123 (*<sse>_vm<insn><mode>3): Use VFH_128.
2124 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
2125 (*ieee_<ieee_maxmin><mode>3): Likewise.
2126 (<avx512>_blendm<mode>): New define_insn.
2127 (vec_setv8hf): New define_expand.
2128 (vec_set<mode>_0): New define_insn for HF vector set.
2129 (*avx512fp16_movsh): Likewise.
2130 (avx512fp16_movsh): Likewise.
2131 (vec_extract_lo_v32hi): Rename to ...
2132 (vec_extract_lo_<mode>): ... this, and adjust to allow HF
2133 vector modes.
2134 (vec_extract_hi_v32hi): Likewise.
2135 (vec_extract_hi_<mode>): Likewise.
2136 (vec_extract_lo_v16hi): Likewise.
2137 (vec_extract_lo_<mode>): Likewise.
2138 (vec_extract_hi_v16hi): Likewise.
2139 (vec_extract_hi_<mode>): Likewise.
2140 (vec_set_hi_v16hi): Likewise.
2141 (vec_set_hi_<mode>): Likewise.
2142 (vec_set_lo_v16hi): Likewise.
2143 (vec_set_lo_<mode>): Likewise.
2144 (*vec_extract<mode>_0): New define_insn_and_split for HF
2145 vector extract.
2146 (*vec_extracthf): New define_insn.
2147 (VEC_EXTRACT_MODE): Add HF vector modes.
2148 (PINSR_MODE): Add V8HF.
2149 (sse2p4_1): Likewise.
2150 (pinsr_evex_isa): Likewise.
2151 (<sse2p4_1>_pinsr<ssemodesuffix>): Adjust to support
2152 insert for V8HFmode.
2153 (pbroadcast_evex_isa): Add HF vector modes.
2154 (AVX2_VEC_DUP_MODE): Likewise.
2155 (VEC_INIT_MODE): Likewise.
2156 (VEC_INIT_HALF_MODE): Likewise.
2157 (avx2_pbroadcast<mode>): Adjust to support HF vector mode
2158 broadcast.
2159 (avx2_pbroadcast<mode>_1): Likewise.
2160 (<avx512>_vec_dup<mode>_1): Likewise.
2161 (<avx512>_vec_dup<mode><mask_name>): Likewise.
2162 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>):
2163 Likewise.
2164
2165 2021-09-08 Guo, Xuepeng <xuepeng.guo@intel.com>
2166 H.J. Lu <hongjiu.lu@intel.com>
2167 Liu Hongtao <hongtao.liu@intel.com>
2168 Wang Hongyu <hongyu.wang@intel.com>
2169 Xu Dianhong <dianhong.xu@intel.com>
2170
2171 * common/config/i386/cpuinfo.h (get_available_features):
2172 Detect FEATURE_AVX512FP16.
2173 * common/config/i386/i386-common.c
2174 (OPTION_MASK_ISA_AVX512FP16_SET,
2175 OPTION_MASK_ISA_AVX512FP16_UNSET,
2176 OPTION_MASK_ISA2_AVX512FP16_SET,
2177 OPTION_MASK_ISA2_AVX512FP16_UNSET): New.
2178 (OPTION_MASK_ISA2_AVX512BW_UNSET,
2179 OPTION_MASK_ISA2_AVX512BF16_UNSET): Add AVX512FP16.
2180 (ix86_handle_option): Handle -mavx512fp16.
2181 * common/config/i386/i386-cpuinfo.h (enum processor_features):
2182 Add FEATURE_AVX512FP16.
2183 * common/config/i386/i386-isas.h: Add entry for AVX512FP16.
2184 * config.gcc: Add avx512fp16intrin.h.
2185 * config/i386/avx512fp16intrin.h: New intrinsic header.
2186 * config/i386/cpuid.h: Add bit_AVX512FP16.
2187 * config/i386/i386-builtin-types.def: (FLOAT16): New primitive type.
2188 * config/i386/i386-builtins.c: Support _Float16 type for i386
2189 backend.
2190 (ix86_register_float16_builtin_type): New function.
2191 (ix86_float16_type_node): New.
2192 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2193 __AVX512FP16__.
2194 * config/i386/i386-expand.c (ix86_expand_branch): Support
2195 HFmode.
2196 (ix86_prepare_fp_compare_args): Adjust TARGET_SSE_MATH &&
2197 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
2198 (ix86_expand_fp_movcc): Ditto.
2199 * config/i386/i386-isa.def: Add PTA define for AVX512FP16.
2200 * config/i386/i386-options.c (isa2_opts): Add -mavx512fp16.
2201 (ix86_valid_target_attribute_inner_p): Add avx512fp16 attribute.
2202 * config/i386/i386.c (ix86_get_ssemov): Use
2203 vmovdqu16/vmovw/vmovsh for HFmode/HImode scalar or vector.
2204 (ix86_get_excess_precision): Use
2205 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when TARGET_AVX512FP16
2206 existed.
2207 (sse_store_index): Use SFmode cost for HFmode cost.
2208 (inline_memory_move_cost): Add HFmode, and perfer SSE cost over
2209 GPR cost for HFmode.
2210 (ix86_hard_regno_mode_ok): Allow HImode in sse register.
2211 (ix86_mangle_type): Add manlging for _Float16 type.
2212 (inline_secondary_memory_needed): No memory is needed for
2213 16bit movement between gpr and sse reg under
2214 TARGET_AVX512FP16.
2215 (ix86_multiplication_cost): Adjust TARGET_SSE_MATH &&
2216 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
2217 (ix86_division_cost): Ditto.
2218 (ix86_rtx_costs): Ditto.
2219 (ix86_add_stmt_cost): Ditto.
2220 (ix86_optab_supported_p): Ditto.
2221 * config/i386/i386.h (VALID_AVX512F_SCALAR_MODE): Add HFmode.
2222 (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Add HFmode.
2223 (PTA_SAPPHIRERAPIDS): Add PTA_AVX512FP16.
2224 * config/i386/i386.md (mode): Add HFmode.
2225 (MODE_SIZE): Add HFmode.
2226 (isa): Add avx512fp16.
2227 (enabled): Handle avx512fp16.
2228 (ssemodesuffix): Add sh suffix for HFmode.
2229 (comm): Add mult, div.
2230 (plusminusmultdiv): New code iterator.
2231 (insn): Add mult, div.
2232 (*movhf_internal): Adjust for avx512fp16 instruction.
2233 (*movhi_internal): Ditto.
2234 (*cmpi<unord>hf): New define_insn for HFmode.
2235 (*ieee_s<ieee_maxmin>hf3): Likewise.
2236 (extendhf<mode>2): Likewise.
2237 (trunc<mode>hf2): Likewise.
2238 (float<floatunssuffix><mode>hf2): Likewise.
2239 (*<insn>hf): Likewise.
2240 (cbranchhf4): New expander.
2241 (movhfcc): Likewise.
2242 (<insn>hf3): Likewise.
2243 (mulhf3): Likewise.
2244 (divhf3): Likewise.
2245 * config/i386/i386.opt: Add mavx512fp16.
2246 * config/i386/immintrin.h: Include avx512fp16intrin.h.
2247 * doc/invoke.texi: Add mavx512fp16.
2248 * doc/extend.texi: Add avx512fp16 Usage Notes.
2249
2250 2021-09-08 liuhongt <hongtao.liu@intel.com>
2251
2252 * common.opt: Support -fexcess-precision=16.
2253 * config/aarch64/aarch64.c (aarch64_excess_precision): Return
2254 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when
2255 EXCESS_PRECISION_TYPE_FLOAT16.
2256 * config/arm/arm.c (arm_excess_precision): Ditto.
2257 * config/i386/i386.c (ix86_get_excess_precision): Ditto.
2258 * config/m68k/m68k.c (m68k_excess_precision): Issue an error
2259 when EXCESS_PRECISION_TYPE_FLOAT16.
2260 * config/s390/s390.c (s390_excess_precision): Ditto.
2261 * coretypes.h (enum excess_precision_type): Add
2262 EXCESS_PRECISION_TYPE_FLOAT16.
2263 * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Update documents.
2264 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): Ditto.
2265 * doc/extend.texi (Half-Precision): Document
2266 -fexcess-precision=16.
2267 * flag-types.h (enum excess_precision): Add
2268 EXCESS_PRECISION_FLOAT16.
2269 * target.def (excess_precision): Update document.
2270 * tree.c (excess_precision_type): Set excess_precision_type to
2271 EXCESS_PRECISION_FLOAT16 when -fexcess-precision=16.
2272
2273 2021-09-08 liuhongt <hongtao.liu@intel.com>
2274
2275 * doc/extend.texi: (@node Floating Types): Adjust the wording.
2276 (@node Half-Precision): Ditto.
2277
2278 2021-09-07 Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
2279
2280 PR target/102115
2281 * config/xtensa/xtensa.c (xtensa_emit_move_sequence): Add
2282 'CONST_INT_P (src)' to the condition of the block that tries to
2283 eliminate literal when loading integer contant.
2284
2285 2021-09-07 David Faust <david.faust@oracle.com>
2286
2287 * doc/extend.texi (BPF Type Attributes) New node.
2288 Document new preserve_access_index attribute.
2289 Document new preserve_access_index builtin.
2290 * doc/invoke.texi: Document -mco-re and -mno-co-re options.
2291
2292 2021-09-07 David Faust <david.faust@oracle.com>
2293
2294 * config/bpf/bpf.c: Adjust includes.
2295 (bpf_handle_preserve_access_index_attribute): New function.
2296 (bpf_attribute_table): Use it here.
2297 (bpf_builtins): Add BPF_BUILTIN_PRESERVE_ACCESS_INDEX.
2298 (bpf_option_override): Handle "-mco-re" option.
2299 (bpf_asm_init_sections): New.
2300 (TARGET_ASM_INIT_SECTIONS): Redefine.
2301 (bpf_file_end): New.
2302 (TARGET_ASM_FILE_END): Redefine.
2303 (bpf_init_builtins): Add "__builtin_preserve_access_index".
2304 (bpf_core_compute, bpf_core_get_index): New.
2305 (is_attr_preserve_access): New.
2306 (bpf_expand_builtin): Handle new builtins.
2307 (bpf_core_newdecl, bpf_core_is_maybe_aggregate_access): New.
2308 (bpf_core_walk): New.
2309 (bpf_resolve_overloaded_builtin): New.
2310 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Redefine.
2311 (handle_attr): New.
2312 (pass_bpf_core_attr): New RTL pass.
2313 * config/bpf/bpf-passes.def: New file.
2314 * config/bpf/bpf-protos.h (make_pass_bpf_core_attr): New.
2315 * config/bpf/coreout.c: New file.
2316 * config/bpf/coreout.h: Likewise.
2317 * config/bpf/t-bpf (TM_H): Add $(srcdir)/config/bpf/coreout.h.
2318 (coreout.o): New rule.
2319 (PASSES_EXTRA): Add $(srcdir)/config/bpf/bpf-passes.def.
2320 * config.gcc (bpf): Add coreout.h to extra_headers.
2321 Add coreout.o to extra_objs.
2322 Add $(srcdir)/config/bpf/coreout.c to target_gtfiles.
2323
2324 2021-09-07 David Faust <david.faust@oracle.com>
2325
2326 * btfout.c (get_btf_id): Function is no longer static.
2327 * ctfc.h: Expose it here.
2328
2329 2021-09-07 David Faust <david.faust@oracle.com>
2330
2331 * ctfc.c (ctf_lookup_tree_type): New function.
2332 * ctfc.h: Likewise.
2333
2334 2021-09-07 David Faust <david.faust@oracle.com>
2335
2336 * ctfc.c (ctf_dtd_lookup): Function is no longer static.
2337 * ctfc.h: Analogous change.
2338
2339 2021-09-07 David Faust <david.faust@oracle.com>
2340
2341 * dwarf2out.c (lookup_type_die): Function is no longer static.
2342 * dwarf2out.h: Expose it here.
2343
2344 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
2345
2346 * dwarf2ctf.c (ctf_debug_finalize): Make it static.
2347 (ctf_debug_early_finish): New definition.
2348 (ctf_debug_finish): Likewise.
2349 * dwarf2ctf.h (ctf_debug_finalize): Remove declaration.
2350 (ctf_debug_early_finish): New declaration.
2351 (ctf_debug_finish): Likewise.
2352 * dwarf2out.c (dwarf2out_finish): Invoke ctf_debug_finish.
2353 (dwarf2out_early_finish): Invoke ctf_debug_early_finish.
2354
2355 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
2356
2357 * config/bpf/bpf.c (bpf_option_override): For BPF backend, disable LTO
2358 support when compiling for CO-RE.
2359 * config/bpf/bpf.opt: Add new command line option -mco-re.
2360
2361 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
2362
2363 * flag-types.h (enum debug_info_type): Add new enum
2364 DINFO_TYPE_BTF_WITH_CORE.
2365 (BTF_WITH_CORE_DEBUG): New bitmask.
2366 * flags.h (btf_with_core_debuginfo_p): New declaration.
2367 * opts.c (btf_with_core_debuginfo_p): New definition.
2368
2369 2021-09-07 Jason Merrill <jason@redhat.com>
2370
2371 * tree.h (error_operand_p): Change to inline function.
2372
2373 2021-09-07 Aldy Hernandez <aldyh@redhat.com>
2374
2375 * tree-ssa-threadedge.c (forwarder_block_p): Rename to...
2376 (empty_block_with_phis_p): ...this.
2377 (potentially_threadable_block): Same.
2378 (jump_threader::thread_through_normal_block): Same.
2379
2380 2021-09-07 Eric Botcazou <ebotcazou@adacore.com>
2381
2382 PR debug/101947
2383 * dwarf2out.c (mark_base_types): New overloaded function.
2384 (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
2385 as the compilation unit, and call move_marked_base_types afterward.
2386
2387 2021-09-07 H.J. Lu <hjl.tools@gmail.com>
2388
2389 PR target/85819
2390 * config/i386/i386-expand.c (ix86_expand_convert_uns_sisf_sse):
2391 Enable FMA.
2392 (ix86_expand_vector_convert_uns_vsivsf): Likewise.
2393
2394 2021-09-07 Richard Biener <rguenther@suse.de>
2395
2396 PR tree-optimization/102226
2397 * tree-vect-loop.c (vect_transform_cycle_phi): Record
2398 the converted value for the epilogue PHI use.
2399
2400 2021-09-07 Martin Liska <mliska@suse.cz>
2401
2402 PR gcov-profile/80223
2403 * ipa-inline.c (can_inline_edge_p): Similarly to sanitizer
2404 options, do not inline when no_profile_instrument_function
2405 attributes are different in early inliner. It's fine to inline
2406 it after PGO instrumentation.
2407
2408 2021-09-07 Richard Biener <rguenther@suse.de>
2409
2410 PR tree-optimization/101555
2411 * tree-ssa-pre.c (translate_vuse_through_block): Do not
2412 perform an alias walk to determine the validity of the
2413 mem at the start of the block which is already guaranteed
2414 by means of prune_clobbered_mems.
2415 (phi_translate_1): Pass edge to translate_vuse_through_block.
2416
2417 2021-09-07 Xionghu Luo <luoxhu@linux.ibm.com>
2418
2419 PR target/97142
2420 * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
2421 (remainder<mode>3): Likewise.
2422
2423 2021-09-07 YunQiang Su <yunqiang.su@cipunited.com>
2424
2425 * config/mips/mips.c (mips_file_start): add .module for
2426 arch and ase.
2427
2428 2021-09-06 Roger Sayle <roger@nextmovesoftware.com>
2429
2430 * wide-int.cc (wi::clz): Reorder tests to ensure the result
2431 is zero for all negative values.
2432
2433 2021-09-06 Tobias Burnus <tobias@codesourcery.com>
2434
2435 * doc/invoke.texi (-foffload-options): Fix @opindex.
2436
2437 2021-09-06 H.J. Lu <hjl.tools@gmail.com>
2438
2439 PR target/89984
2440 * config/i386/i386-expand.c (ix86_split_xorsign): Use operands[2].
2441 * config/i386/i386.md (@xorsign<mode>3_1): Add non-destructive
2442 source alternative for AVX.
2443
2444 2021-09-06 liuhongt <hongtao.liu@intel.com>
2445
2446 PR middle-end/102182
2447 * optabs.c (expand_fix): Add from1 to avoid from being
2448 overwritten.
2449
2450 2021-09-06 Eric Botcazou <ebotcazou@adacore.com>
2451
2452 * dwarf2out.c (modified_type_die): Deal with all array types earlier
2453 and use local variable consistently throughout the function.
2454
2455 2021-09-06 Jakub Jelinek <jakub@redhat.com>
2456
2457 PR tree-optimization/102207
2458 * match.pd: Don't demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
2459 were promoted from signed to wider unsigned type.
2460
2461 2021-09-06 Andrew Pinski <apinski@marvell.com>
2462
2463 PR tree-optimization/63184
2464 * match.pd: Add simplification of pointer_diff of two pointer_plus
2465 with addr_expr in the first operand of each pointer_plus.
2466 Add simplificatoin of ne/eq of two pointer_plus with addr_expr
2467 in the first operand of each pointer_plus.
2468
2469 2021-09-06 Richard Biener <rguenther@suse.de>
2470
2471 PR tree-optimization/102176
2472 * tree-vect-slp.c (vect_slp_gather_vectorized_scalar_stmts):
2473 New function.
2474 (vect_bb_slp_scalar_cost): Use the computed set of
2475 vectorized scalar stmts instead of relying on the out-of-date
2476 and not accurate PURE_SLP_STMT.
2477 (vect_bb_vectorization_profitable_p): Compute the set
2478 of vectorized scalar stmts.
2479
2480 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
2481
2482 * gimple-range-path.cc (path_range_query::range_of_stmt): Remove
2483 GIMPLE_COND special casing.
2484 (path_range_query::range_defined_in_block): Use range_of_stmt
2485 instead of calling fold_range directly.
2486
2487 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
2488
2489 * gimple-range-path.cc (path_range_query::range_of_expr): Set
2490 m_undefined_path when appropriate.
2491 (path_range_query::internal_range_of_expr): Copy from range_of_expr.
2492 (path_range_query::unreachable_path_p): New.
2493 (path_range_query::precompute_ranges): Set m_undefined_path.
2494 * gimple-range-path.h (path_range_query::unreachable_path_p): New.
2495 (path_range_query::internal_range_of_expr): New.
2496 * tree-ssa-threadbackward.c (back_threader::find_taken_edge_cond):
2497 Use unreachable_path_p.
2498
2499 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
2500
2501 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
2502 Remove argument and call find_taken_edge.
2503 (back_threader::resolve_phi): Do not calculate taken edge before
2504 calling maybe_register_path.
2505 (back_threader::find_paths_to_names): Same.
2506
2507 2021-09-05 Jeff Law <jlaw@localhost.localdomain>
2508
2509 * config/h8300/h8300.md (QHSI2 mode iterator): New mode iterator.
2510 * config/h8300/testcompare.md (store_c): Update name, use new
2511 QHSI2 iterator.
2512 (store_neg_c, store_shifted_c): New patterns.
2513
2514 2021-09-03 Segher Boessenkool <segher@kernel.crashing.org>
2515
2516 PR target/102107
2517 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): On ELFv2 use r11
2518 instead of r12 for CR save, in all cases.
2519
2520 2021-09-03 Andrew Pinski <apinski@marvell.com>
2521
2522 * config/aarch64/aarch64-sve-builtins.cc (register_vector_type):
2523 Handle error_mark_node as the type of the type_decl.
2524
2525 2021-09-03 Andrew Pinski <apinski@marvell.com>
2526
2527 * config/aarch64/aarch64-builtins.c (struct aarch64_simd_type_info):
2528 Mark with GTY.
2529 (aarch64_simd_types): Likewise.
2530 (aarch64_simd_intOI_type_node): Likewise.
2531 (aarch64_simd_intCI_type_node): Likewise.
2532 (aarch64_simd_intXI_type_node): Likewise.
2533 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Likewise.
2534 (aarch64_fp16_ptr_type_node): Likewise.
2535 (aarch64_bf16_type_node): Likewise.
2536 (aarch64_bf16_ptr_type_node): Likewise.
2537
2538 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2539
2540 * range-op.cc (operator_minus::op1_op2_relation_effect): Abstract
2541 out to...
2542 (minus_op1_op2_relation_effect): ...here.
2543 (class operator_pointer_diff): New.
2544 (operator_pointer_diff::op1_op2_relation_effect): Call
2545 minus_op1_op2_relation_effect.
2546 (integral_table::integral_table): Add entry for POINTER_DIFF_EXPR.
2547
2548 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2549
2550 * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
2551 Add may_peel_loop_headers.
2552 (back_threader_registry::thread_through_all_blocks): Same.
2553 (try_thread_blocks): Pass may_peel_loop_headers argument.
2554 (pass_early_thread_jumps::execute): Same.
2555
2556 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2557
2558 * tree-ssa-threadedge.c (has_phis_p): New.
2559 (forwarder_block_p): New.
2560 (potentially_threadable_block): Call forwarder_block_p.
2561 (jump_threader::thread_around_empty_blocks): Call has_phis_p.
2562 (jump_threader::thread_through_normal_block): Call
2563 forwarder_block_p.
2564
2565 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2566
2567 * tree-ssa-threadbackward.c (back_threader::dump): New.
2568 (back_threader::debug): New.
2569 (back_threader_profitability::profitable_path_p): Dump blocks
2570 even if we are bailing early.
2571
2572 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2573
2574 * tree-ssa-threadupdate.c (cancel_thread): New.
2575 (jump_thread_path_registry::thread_block_1): Use cancel_thread.
2576 (jump_thread_path_registry::mark_threaded_blocks): Same.
2577 (jump_thread_path_registry::register_jump_thread): Same.
2578
2579 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2580
2581 * tree-ssa-threadedge.c (jt_state::push): Only call methods for
2582 which objects are available.
2583 (jt_state::pop): Same.
2584 (jt_state::register_equiv): Same.
2585 (jt_state::register_equivs_on_edge): Same.
2586
2587 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2588
2589 * tree-ssa-threadedge.c (jump_threader::thread_across_edge):
2590 Move pop until after a thread is registered.
2591
2592 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2593
2594 * tree-ssa-threadupdate.c (debug): New.
2595
2596 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2597
2598 * gimple-range-trace.cc (push_dump_file::push_dump_file): New.
2599 (push_dump_file::~push_dump_file): New.
2600 (dump_ranger): Change dump_file temporarily while dumping
2601 ranger.
2602 * gimple-range-trace.h (class push_dump_file): New.
2603
2604 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2605
2606 * gimple-range-trace.cc (debug_seed_ranger): Remove static.
2607 (dump_ranger): Dump function name.
2608
2609 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2610
2611 * gimple-range-path.cc (path_range_query::range_defined_in_block):
2612 Adjust for non-null.
2613 (path_range_query::adjust_for_non_null_uses): New.
2614 (path_range_query::precompute_ranges): Call
2615 adjust_for_non_null_uses.
2616 * gimple-range-path.h: Add m_non_null and
2617 adjust_for_non_null_uses.
2618
2619 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2620
2621 * gimple-range-path.cc (path_range_query::dump): Dump path
2622 length.
2623 (path_range_query::precompute_ranges): Dump entire path.
2624
2625 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2626
2627 * value-relation.cc (relation_oracle::debug): New.
2628 * value-relation.h (relation_oracle::debug): New.
2629
2630 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2631
2632 * tree-ssa-loop-ch.c: Remove unnecessary include file.
2633
2634 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2635
2636 * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges):
2637 Skip statements with no defining BB.
2638 * gimple-range-path.cc (path_range_query::range_defined_in_block):
2639 Do not get confused by statements with no defining BB.
2640
2641 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
2642
2643 * gimple-range-fold.cc (adjust_imagpart_expr): Move from
2644 gimple_range_adjustment. Add support for constants.
2645 (adjust_realpart_expr): New.
2646 (gimple_range_adjustment): Move IMAGPART_EXPR code to
2647 adjust_imagpart_expr.
2648 * range-op.cc (integral_table::integral_table): Add entry for
2649 REALPART_CST.
2650
2651 2021-09-03 Jakub Jelinek <jakub@redhat.com>
2652
2653 * omp-expand.c (expand_omp_atomic_pipeline): Use
2654 IFN_ATOMIC_COMPARE_EXCHANGE instead of
2655 BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_? so that memory order
2656 can be provided.
2657
2658 2021-09-03 Jakub Jelinek <jakub@redhat.com>
2659
2660 PR target/102024
2661 * tree.h (DECL_FIELD_ABI_IGNORED): Changed into rvalue only macro
2662 that is false if DECL_BIT_FIELD.
2663 (SET_DECL_FIELD_ABI_IGNORED, DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD,
2664 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD): Define.
2665 * tree-streamer-out.c (pack_ts_decl_common_value_fields): For
2666 DECL_BIT_FIELD stream DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead
2667 of DECL_FIELD_ABI_IGNORED.
2668 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
2669 SET_DECL_FIELD_ABI_IGNORED instead of writing to
2670 DECL_FIELD_ABI_IGNORED and for DECL_BIT_FIELD use
2671 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead.
2672 * lto-streamer-out.c (hash_tree): For DECL_BIT_FIELD hash
2673 DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead of DECL_FIELD_ABI_IGNORED.
2674
2675 2021-09-03 liuhongt <hongtao.liu@intel.com>
2676
2677 PR target/102166
2678 * config/i386/amxbf16intrin.h : Remove macro check for __AMX_BF16__.
2679 * config/i386/amxint8intrin.h : Remove macro check for __AMX_INT8__.
2680 * config/i386/amxtileintrin.h : Remove macro check for __AMX_TILE__.
2681
2682 2021-09-02 Martin Sebor <msebor@redhat.com>
2683
2684 PR tree-optimization/17506
2685 PR testsuite/37182
2686 * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
2687
2688 2021-09-02 Richard Biener <rguenther@suse.de>
2689
2690 * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
2691 fix for PR78185 and continue processing when leaving
2692 finite inner loops.
2693
2694 2021-09-02 Jakub Jelinek <jakub@redhat.com>
2695
2696 PR tree-optimization/99591
2697 * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
2698 were promoted.
2699
2700 2021-09-02 Richard Biener <rguenther@suse.de>
2701
2702 Revert:
2703 2021-09-02 Richard Biener <rguenther@suse.de>
2704
2705 PR tree-optimization/102155
2706 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
2707 over a part of the RPO array and do not recurse here.
2708 Dump blocks marked as always executed.
2709 (fill_always_executed_in): Walk over the RPO array and
2710 process loops whose header we run into.
2711 (loop_invariant_motion_in_fun): Compute the first RPO
2712 using rev_post_order_and_mark_dfs_back_seme in iteration
2713 order and pass that to fill_always_executed_in.
2714
2715 2021-09-02 liuhongt <hongtao.liu@intel.com>
2716
2717 * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
2718 * config/i386/i386.c (enum x86_64_reg_class): Add
2719 X86_64_SSEHF_CLASS.
2720 (merge_classes): Handle X86_64_SSEHF_CLASS.
2721 (examine_argument): Ditto.
2722 (construct_container): Ditto.
2723 (classify_argument): Ditto, and set HFmode/HCmode to
2724 X86_64_SSEHF_CLASS.
2725 (function_value_32): Return _FLoat16/Complex Float16 by
2726 %xmm0.
2727 (function_value_64): Return _Float16/Complex Float16 by SSE
2728 register.
2729 (ix86_print_operand): Handle CONST_DOUBLE HFmode.
2730 (ix86_secondary_reload): Require gpr as intermediate register
2731 to store _Float16 from sse register when sse4 is not
2732 available.
2733 (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
2734 sse2.
2735 (ix86_scalar_mode_supported_p): Ditto.
2736 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
2737 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
2738 (VALID_INT_MODE_P): Add HFmode and HCmode.
2739 * config/i386/i386.md (*pushhf_rex64): New define_insn.
2740 (*pushhf): Ditto.
2741 (*movhf_internal): Ditto.
2742 * doc/extend.texi (Half-Precision Floating Point): Documemt
2743 _Float16 for x86.
2744
2745 2021-09-02 Richard Biener <rguenther@suse.de>
2746
2747 PR tree-optimization/102155
2748 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
2749 over a part of the RPO array and do not recurse here.
2750 Dump blocks marked as always executed.
2751 (fill_always_executed_in): Walk over the RPO array and
2752 process loops whose header we run into.
2753 (loop_invariant_motion_in_fun): Compute the first RPO
2754 using rev_post_order_and_mark_dfs_back_seme in iteration
2755 order and pass that to fill_always_executed_in.
2756
2757 2021-09-02 YunQiang Su <syq@debian.org>
2758
2759 Revert:
2760 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
2761
2762 * config/mips/mips.c (mips_module_isa_name): New.
2763 mips_file_start: add .module mipsREV to all asm output
2764
2765 2021-09-01 Jeff Law <jlaw@localhost.localdomain>
2766
2767 PR tree-optimization/102152
2768 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
2769 comparison to a scalar comparison before calling
2770 update_stmt_if_modified.
2771
2772 2021-09-01 Andrew Pinski <apinski@marvell.com>
2773
2774 PR target/101934
2775 * config/aarch64/aarch64.c (aarch64_expand_setmem):
2776 Check STRICT_ALIGNMENT before creating an overlapping
2777 store.
2778
2779 2021-09-01 Martin Sebor <msebor@redhat.com>
2780
2781 * gimple-ssa-warn-access.cc (get_size_range): Add argument.
2782 (check_access): Pass additional argument.
2783 (check_memop_access): Remove template and make a member function.
2784 (maybe_check_dealloc_call): Make a pass_waccess member function.
2785 (class pass_waccess): Add, rename, and remove members.
2786 (pass_waccess::pass_waccess): Adjust to name change.
2787 (pass_waccess::~pass_waccess): Same.
2788 (check_alloca): Make a member function.
2789 (check_alloc_size_call): Same.
2790 (check_strcat): Same.
2791 (check_strncat): Same.
2792 (check_stxcpy): Same.
2793 (check_stxncpy): Same.
2794 (check_strncmp): Same.
2795 (maybe_warn_rdwr_sizes): Rename...
2796 (pass_waccess::maybe_check_access_sizes): ...to this.
2797 (pass_waccess::check_call): Adjust to name changes.
2798 (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
2799 function.
2800 (pass_waccess::execute): Adjust to name changes.
2801 * gimple-ssa-warn-access.h (check_memop_access): Remove.
2802 * pointer-query.cc (access_ref::phi): Handle null pointer.
2803 (access_ref::inform_access): Same.
2804 (pointer_query::put_ref): Modify a cached value, not a copy of it.
2805 (pointer_query::dump): New function.
2806 (compute_objsize_r): Avoid overwriting access_ref::bndrng. Cache
2807 more results.
2808 * pointer-query.h (pointer_query::dump): Declare.
2809 * tree-ssa-strlen.c (get_range): Simplify. Use function query.
2810 (dump_strlen_info): Use function query.
2811 (printf_strlen_execute): Factor code out into pointer_query::put_ref.
2812
2813 2021-09-01 Thomas Schwinge <thomas@codesourcery.com>
2814
2815 * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
2816
2817 2021-09-01 Iain Sandoe <iain@sandoe.co.uk>
2818
2819 * doc/extend.texi: Document unavailable attribute.
2820 * print-tree.c (print_node): Handle unavailable attribute.
2821 * tree-core.h (struct tree_base): Add a bit to carry unavailability.
2822 * tree.c (error_unavailable_use): New.
2823 * tree.h (TREE_UNAVAILABLE): New.
2824 (error_unavailable_use): New.
2825
2826 2021-09-01 Jakub Jelinek <jakub@redhat.com>
2827
2828 PR tree-optimization/102124
2829 * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
2830 MINUS_EXPR, if itype is unsigned with smaller precision than type,
2831 add an extra cast to signed variant of itype to ensure sign-extension.
2832
2833 2021-09-01 Martin Liska <mliska@suse.cz>
2834
2835 * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
2836 edges and rather use colors for TRUE and FALSE edges.
2837
2838 2021-09-01 Richard Biener <rguenther@suse.de>
2839
2840 PR tree-optimization/93491
2841 * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
2842 after processing the stmt itself. Do not consider
2843 pure functions possibly not returning. Properly avoid
2844 adding possibly trapping calls to EXP_GEN when there's
2845 a preceeding possibly not returning call.
2846 * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
2847 not handle calls.
2848
2849 2021-09-01 Richard Biener <rguenther@suse.de>
2850
2851 PR tree-optimization/102139
2852 * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
2853 type to record a std::pair of the stmt-info and the innermost
2854 loop behavior.
2855 (dr_vec_info::group): New member.
2856 * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
2857 (vect_compute_data_ref_alignment): Verify the recorded
2858 base alignment can be used.
2859 (data_ref_pair): Remove.
2860 (dr_group_sort_cmp): Adjust.
2861 (vect_analyze_data_ref_accesses): Store the group-ID in the
2862 dr_vec_info and operate on a vector of dr_vec_infos.
2863
2864 2021-09-01 YunQiang Su <yunqiang.su@cipunited.com>
2865
2866 * read-md.c (md_reader::handle_enum): support value assignation.
2867 * doc/md.texi: record define_c_enum value assignation support.
2868
2869 2021-09-01 Jakub Jelinek <jakub@redhat.com>
2870
2871 PR tree-optimization/102141
2872 * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
2873 argument. If false, emit stmts after gsi instead of before, and
2874 with GSI_NEW_STMT.
2875 (bswap_replace): Adjust callers. When converting output of bswap,
2876 emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
2877 of before it.
2878
2879 2021-09-01 liuhongt <hongtao.liu@intel.com>
2880
2881 * emit-rtl.c (validate_subreg): Get rid of all float-int
2882 special cases.
2883
2884 2021-09-01 liuhongt <hongtao.liu@intel.com>
2885
2886 Revert:
2887 2021-08-30 liuhongt <hongtao.liu@intel.com>
2888
2889 * expmed.c (extract_bit_field_1): Make sure we're playing with
2890 integral modes before call extract_integral_bit_field.
2891 (extract_integral_bit_field): Add a parameter of type
2892 scalar_int_mode which corresponds to of tmode.
2893 And call extract_and_convert_fixed_bit_field instead of
2894 extract_fixed_bit_field and convert_extracted_bit_field.
2895 (extract_and_convert_fixed_bit_field): New function, it's a
2896 combination of extract_fixed_bit_field and
2897 convert_extracted_bit_field.
2898
2899 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
2900
2901 * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
2902
2903 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
2904
2905 * omp-general.h (omp_is_reference): Rename to...
2906 (omp_privatize_by_reference): ... this. Adjust all users...
2907 * omp-general.c: ... here, ...
2908 * gimplify.c: ... here, ...
2909 * omp-expand.c: ... here, ...
2910 * omp-low.c: ... here.
2911
2912 2021-08-31 Martin Sebor <msebor@redhat.com>
2913
2914 * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
2915 pointer element for equality to zero, not that of the cotaining
2916 array.
2917
2918 2021-08-31 Martin Sebor <msebor@redhat.com>
2919
2920 * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
2921
2922 2021-08-31 Martin Sebor <msebor@redhat.com>
2923
2924 * function.h (function): Add comments.
2925 (get_range_query): Same. Add attribute returns nonnull.
2926
2927 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
2928
2929 * expr.c (convert_modes): Don't use subreg_promoted_mode on a
2930 SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
2931 Instead use the standard (safer) is_a <scalar_int_mode> idiom.
2932
2933 2021-08-31 Jeff Law <jlaw@localhost.localdomain>
2934
2935 * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
2936 tm_file.
2937 (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
2938 (mn10300-*-*, am33_2.0-*-linux*): Likewise.
2939 (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
2940 (m32c-*-elf*, m32c-*-rtems*): Likewise.
2941 * config/cris/cris.h (DBX_NO_XREFS): Remove.
2942 (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
2943 * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
2944 (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
2945 * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
2946 * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
2947
2948 2021-08-31 Marcel Vollweiler <marcel@codesourcery.com>
2949
2950 * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
2951 allowed on target constructs and only with particular other clauses.
2952 * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
2953 'ancestor' is used.
2954 * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
2955 structs when 'ancestor' is used.
2956 (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
2957 'ancestor' is used.
2958 * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
2959 * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
2960
2961 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
2962
2963 * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
2964 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
2965 subreg.
2966 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
2967 Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
2968 partial subreg from a SUBREG_PROMOTED_VAR_P subreg. Generate
2969 SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
2970 [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
2971 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
2972 subreg. Generate ZERO_EXTEND of the SUBREG_REG when a subreg
2973 would be paradoxical.
2974
2975 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
2976
2977 * combine.c (combine_simplify_rtx): Avoid converting an explicit
2978 TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
2979 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2980
2981 2021-08-31 Richard Biener <rguenther@suse.de>
2982
2983 PR tree-optimization/102142
2984 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
2985 condition under which to unset the visited flag.
2986
2987 2021-08-31 Richard Biener <rguenther@suse.de>
2988
2989 PR middle-end/102129
2990 * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
2991 possibly trapping expressions across calls.
2992
2993 2021-08-31 Jakub Jelinek <jakub@redhat.com>
2994
2995 PR tree-optimization/102134
2996 * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
2997 UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
2998 become negative.
2999
3000 2021-08-31 Andrew Pinski <apinski@marvell.com>
3001
3002 PR driver/79181
3003 * collect-utils.c (setup_signals): New declaration.
3004 * collect-utils.h (setup_signals): New function.
3005 * collect2.c (handler): Delete.
3006 (main): Instead of manually setting up the signals,
3007 just call setup_signals.
3008 * lto-wrapper.c (main): Likewise.
3009
3010 2021-08-31 Andrew Pinski <apinski@marvell.com>
3011
3012 PR target/56337
3013 * config/i386/i386-protos.h (x86_output_aligned_bss):
3014 Change align argument to unsigned type.
3015 (x86_elf_aligned_decl_common): Likewise.
3016 * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
3017 (x86_output_aligned_bss): Likewise.
3018
3019 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
3020
3021 * config/mips/mips.c (mips_module_isa_name): New.
3022 mips_file_start: add .module mipsREV to all asm output
3023
3024 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
3025
3026 * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
3027 use enum instead of int for 'isa' member.
3028 * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
3029 config/mips/netbsd.h: replace hardcoded numbers with enum.
3030
3031 2021-08-31 liuhongt <hongtao.liu@intel.com>
3032
3033 * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
3034 define_split to define_insn_and_split.
3035 (*avx2_eq<mode>3): Removed.
3036 (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
3037 (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
3038 (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
3039 adjust pattern.
3040 (*avx2_gt<mode>3): Removed.
3041 (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
3042 define_insn to define_expand, and adjust pattern.
3043 (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
3044
3045 2021-08-30 David Malcolm <dmalcolm@redhat.com>
3046
3047 PR analyzer/99260
3048 * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
3049
3050 2021-08-30 Jason Merrill <jason@redhat.com>
3051
3052 * doc/invoke.texi: Document -Wmissing-requires.
3053
3054 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
3055
3056 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
3057 TARGET_EXTRA_BUILTINS guard.
3058
3059 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
3060
3061 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
3062 initialization of V2DI_type_node and unsigned_V2DI_type_node.
3063
3064 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
3065
3066 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
3067 decl when new_builtins_are_live.
3068 * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
3069 built-in.
3070
3071 2021-08-30 Pat Haugen <pthaugen@linux.ibm.com>
3072
3073 * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
3074 OPTION_MASK_P10_FUSION_2STORE.
3075 (POWERPC_MASKS): Likewise.
3076 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
3077 store fusion for Power10.
3078 (is_fusable_store): New.
3079 (power10_sched_reorder): Likewise.
3080 (rs6000_sched_reorder): Do Power10 specific reordering.
3081 (rs6000_sched_reorder2): Likewise.
3082 * config/rs6000/rs6000.opt: Add new option.
3083
3084 2021-08-30 Richard Biener <rguenther@suse.de>
3085
3086 PR tree-optimization/102128
3087 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
3088 Move scanning for if-converted scalar code to the caller
3089 and instead delay clearing the visited flag for profitable
3090 subgraphs.
3091 (vect_slp_region): Cost all subgraphs before scheduling.
3092 For if-converted BB vectorization scan for scalar COND_EXPRs
3093 and do not vectorize if any found and the cost model is
3094 very-cheap.
3095
3096 2021-08-30 Richard Biener <rguenther@suse.de>
3097
3098 * common.opt (fexceptions): Mark
3099 EnabledBy(fnon-call-exceptions).
3100 * doc/invoke.texi (fnon-call-exceptions): Document this
3101 enables -fexceptions.
3102
3103 2021-08-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
3104
3105 * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
3106 is not already defined.
3107
3108 2021-08-30 liuhongt <hongtao.liu@intel.com>
3109
3110 * expmed.c (extract_bit_field_1): Make sure we're playing with
3111 integral modes before call extract_integral_bit_field.
3112 (extract_integral_bit_field): Add a parameter of type
3113 scalar_int_mode which corresponds to of tmode.
3114 And call extract_and_convert_fixed_bit_field instead of
3115 extract_fixed_bit_field and convert_extracted_bit_field.
3116 (extract_and_convert_fixed_bit_field): New function, it's a
3117 combination of extract_fixed_bit_field and
3118 convert_extracted_bit_field.
3119
3120 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
3121
3122 * config/darwin.c (darwin_libc_has_function): Do not run
3123 the checks for x86 or modern Darwin. Make sure that there
3124 is a value set for darwin_macosx_version_min before testing.
3125
3126 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
3127
3128 * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
3129
3130 2021-08-28 Jan Hubicka <hubicka@ucw.cz>
3131
3132 * ipa-modref-tree.h (modref_access_node::merge): Break out
3133 logic combining offsets and logic merging ranges to ...
3134 (modref_access_node::combined_offsets): ... here
3135 (modref_access_node::update2): ... here
3136 (modref_access_node::closer_pair_p): New member function.
3137 (modref_access_node::forced_merge): New member function.
3138 (modre_ref_node::insert): Do merging when table is full.
3139
3140 2021-08-28 YunQiang Su <yunqiang.su@cipunited.com>
3141
3142 PR target/102089
3143 * config.gcc: MIPS: use N64 ABI by default if the triple end
3144 with -gnuabi64, which is used by Debian since 2013.
3145
3146 2021-08-28 Alexandre Oliva <oliva@adacore.com>
3147
3148 * ipa-modref.c (analyze_function): Skip debug stmts.
3149 * tree-inline.c (estimate_num_insn): Consider builtins even
3150 without a cgraph_node.
3151
3152 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
3153
3154 * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
3155 * config/h8300/h8300.c (h8300_expand_branch): Remove function.
3156 * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
3157 * config/h8300/h8300.md (eqne): New code iterator.
3158 (geultu, geultu_to_c): Similarly.
3159 * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
3160 (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
3161 (cmp<mode>_c): New pattern
3162
3163 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
3164
3165 * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
3166 function.
3167 (dom_opt_dom_walker::optimize_stmt): Use it.
3168
3169 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
3170
3171 * config/darwin.c (finalize_ctors): Add a section-start linker-
3172 visible symbol.
3173 (finalize_dtors): Likewise.
3174 * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
3175
3176 2021-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
3177
3178 * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
3179 (rs6000_init_builtins): Call rs6000_init_generated_builtins. Skip the
3180 old initialization logic when new builtins are enabled.
3181 * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
3182 rs6000_autoinit_builtins to rs6000_init_generated_builtins.
3183 (write_init_file): Likewise.
3184
3185 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
3186
3187 * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
3188 gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
3189 (amdgcn-* | gcn-*) Likewise.
3190
3191 2021-08-27 Anthony Sharp <anthonysharp15@gmail.com>
3192
3193 * symbol-summary.h: Added missing template keyword.
3194
3195 2021-08-27 Richard Biener <rguenther@suse.de>
3196
3197 PR tree-optimization/45178
3198 * tree-ssa-dce.c (find_obviously_necessary_stmts): For
3199 infinite loops without exit do not mark control dependent
3200 edges of the latch necessary.
3201
3202 2021-08-27 konglin1 <lingling.kong@intel.com>
3203
3204 PR target/101472
3205 * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
3206 UNSPEC_VSIBADDR.
3207 (<avx512>scattersi<mode>): Likewise.
3208 (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
3209 (*avx512f_scatterdi<VI48F:mode>): Likewise
3210
3211 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
3212
3213 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
3214 support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
3215 MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
3216 P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
3217 P10_BUILTIN_PEXTD on Power10.
3218
3219 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
3220
3221 * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
3222 signedness for some Power10 bifs.
3223
3224 2021-08-27 David Edelsohn <dje.gcc@gmail.com>
3225
3226 PR target/102068
3227 * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
3228 computed alignment if the entire struct has attribute packed.
3229
3230 2021-08-27 liuhongt <hongtao.liu@intel.com>
3231
3232 PR target/98167
3233 PR target/43147
3234 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
3235 IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
3236 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
3237 IX86_BUILTIN_SHUFPS256.
3238 (ix86_masked_all_ones): New function.
3239
3240 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
3241
3242 * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
3243 (conditional moves with memory inputs splitters): Ditto.
3244 * config/i386/sse.md (one_cmpl<mode>2): Simplify.
3245
3246 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
3247
3248 * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
3249 search after merging.
3250
3251 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
3252
3253 * config/rs6000/rs6000-overload.def: Add remaining overloads.
3254
3255 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
3256
3257 * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
3258
3259 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
3260
3261 * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
3262 crypto, and htm stanzas.
3263
3264 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
3265
3266 * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
3267
3268 2021-08-26 Martin Sebor <msebor@redhat.com>
3269
3270 * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
3271 (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
3272 (warn_uninitialized_vars): Same. Reduce visibility of locals.
3273 (warn_uninitialized_phi): Same.
3274
3275 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
3276
3277 * tree-ssa-ccp.c (get_individual_bits): Helper function to
3278 extract the individual bits from a widest_int constant (mask).
3279 (gray_code_bit_flips): New read-only table for effiently
3280 enumerating permutations/combinations of bits.
3281 (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
3282 by unknown counts that are guaranteed less than the target
3283 precision and four or fewer unknown bits by enumeration.
3284 [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
3285 enumeration under the same conditions. Handle remaining
3286 shifts as a mask based upon the minimum possible shift value.
3287
3288 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
3289 Richard Biener <rguenther@suse.de>
3290
3291 * match.pd (shift transformations): Remove a redundant
3292 !POINTER_TYPE_P check.
3293
3294 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
3295
3296 PR target/102057
3297 * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
3298 Set all_regs to true in the call to replace_rtx.
3299
3300 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
3301
3302 * ipa-modref-tree.c (test_insert_search_collapse): Update test.
3303 * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
3304 hiting --param modref-max-refs limit.
3305 (modref_tree:insert_base): Be smarter when hitting
3306 --param modref-max-bases limit. Add new parameter REF.
3307 (modref_tree:insert): Update.
3308 (modref_tree:merge): Update.
3309 * ipa-modref.c (read_modref_records): Update.
3310
3311 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
3312
3313 * params.opt: (modref-max-adjustments): Add full stop.
3314
3315 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
3316
3317 * ipa-modref-tree.h (modref_ref_node::verify): New member
3318 functoin.
3319 (modref_ref_node::insert): Use it.
3320 (modref_ref_node::try_mere_with): Fix off by one error.
3321
3322 2021-08-26 Martin Liska <mliska@suse.cz>
3323 Stefan Kneifel <stefan.kneifel@bluewin.ch>
3324
3325 * cgraph.h (create_version_clone_with_body): Add new parameter.
3326 * cgraphclones.c: Likewise.
3327 * multiple_target.c (create_dispatcher_calls): Do not use
3328 numbered suffixes.
3329 (create_target_clone): Likewise here.
3330
3331 2021-08-26 Jonathan Yong <10walls@gmail.com>
3332
3333 * doc/extend.texi: Add note about reserved priorities
3334 to the constructor attribute.
3335
3336 2021-08-25 Martin Sebor <msebor@redhat.com>
3337
3338 * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
3339 range table header alone.
3340 * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
3341
3342 2021-08-25 Jan Hubicka <hubicka@ucw.cz>
3343
3344 * doc/invoke.texi: Document --param modref-max-adjustments.
3345 * ipa-modref-tree.c (test_insert_search_collapse): Update.
3346 (test_merge): Update.
3347 * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
3348 (modref_access_node::operator==): Fix handling of access ranges.
3349 (modref_access_node::contains): Constify parameter; handle also
3350 mismatched parm offsets.
3351 (modref_access_node::update): New function.
3352 (modref_access_node::merge): New function.
3353 (unspecified_modref_access_node): Update constructor.
3354 (modref_ref_node::insert_access): Add record_adjustments parameter;
3355 handle merging.
3356 (modref_ref_node::try_merge_with): New private function.
3357 (modref_tree::insert): New record_adjustments parameter.
3358 (modref_tree::merge): New record_adjustments parameter.
3359 (modref_tree::copy_from): Update.
3360 * ipa-modref.c (dump_access): Dump adjustments field.
3361 (get_access): Update constructor.
3362 (record_access): Update call of insert.
3363 (record_access_lto): Update call of insert.
3364 (merge_call_side_effects): Add record_adjustments parameter.
3365 (get_access_for_fnspec): Update.
3366 (process_fnspec): Update.
3367 (analyze_call): Update.
3368 (analyze_function): Update.
3369 (read_modref_records): Update.
3370 (ipa_merge_modref_summary_after_inlining): Update.
3371 (propagate_unknown_call): Update.
3372 (modref_propagate_in_scc): Update.
3373 * params.opt (param-max-modref-adjustments=): New.
3374
3375 2021-08-25 Michael Meissner <meissner@linux.ibm.com>
3376
3377 * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
3378 UNSPEC_XXSPLTID.
3379 (xxspltiw_v4si): Use vecperm type attribute.
3380 (xxspltiw_v4si_inst): Use vecperm type attribute.
3381 (xxspltiw_v4sf_inst): Likewise.
3382 (xxspltidp_v2df): Use vecperm type attribute. Use
3383 UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
3384 (xxspltidp_v2df_inst): Likewise.
3385 (xxsplti32dx_v4si): Use vecperm type attribute.
3386 (xxsplti32dx_v4si_inst): Likewise.
3387 (xxsplti32dx_v4sf_inst): Likewise.
3388 (xxblend_<mode>): Likewise.
3389 (xxpermx): Likewise.
3390 (xxpermx_inst): Likewise.
3391 (xxeval): Likewise.
3392
3393 2021-08-25 Lewis Hyatt <lhyatt@gmail.com>
3394
3395 PR other/93067
3396 * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
3397 * diagnostic.c (diagnostic_initialize_input_context): New function.
3398 * diagnostic.h (diagnostic_initialize_input_context): Declare.
3399 * input.c (default_charset_callback): New function.
3400 (file_cache::initialize_input_context): New function.
3401 (file_cache_slot::create): Added ability to convert the input
3402 according to the input context.
3403 (file_cache::file_cache): Initialize the new input context.
3404 (class file_cache_slot): Added new m_alloc_offset member.
3405 (file_cache_slot::file_cache_slot): Initialize the new member.
3406 (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
3407 (file_cache_slot::maybe_grow): Likewise.
3408 (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
3409 (file_cache_slot::get_next_line): Likewise.
3410 * input.h (class file_cache): Added input context member.
3411
3412 2021-08-25 Richard Biener <rguenther@suse.de>
3413
3414 PR tree-optimization/102046
3415 * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
3416 update ->any_pattern when swapping operands.
3417
3418 2021-08-25 Hongyu Wang <hongyu.wang@intel.com>
3419
3420 PR target/101716
3421 * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
3422 (ix86_decompose_address): Remove retval check for ASHIFT,
3423 allow non-canonical zero extend if AND mask covers ASHIFT
3424 count.
3425 (ix86_legitimate_address_p): Adjust condition for decompose.
3426 (ix86_rtx_costs): Adjust cost for lea with non-canonical
3427 zero-extend.
3428 Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
3429
3430 2021-08-25 Jiufu Guo <guojiufu@linux.ibm.com>
3431
3432 PR tree-optimization/101145
3433 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
3434 New function.
3435 (number_of_iterations_lt): Invoke above function.
3436 (adjust_cond_for_loop_until_wrap):
3437 Merge to number_of_iterations_until_wrap.
3438 (number_of_iterations_cond): Update invokes for
3439 adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
3440
3441 2021-08-25 konglin1 <lingling.kong@intel.com>
3442
3443 PR target/101471
3444 * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
3445 macro define in O0.
3446 (_mm512_mask_fpclass_ps_mask): Ditto.
3447
3448 2021-08-25 Kewen Lin <linkw@linux.ibm.com>
3449
3450 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
3451 (vec_unpacku_hi_v8hi): Likewise.
3452 (vec_unpacku_lo_v16qi): Likewise.
3453 (vec_unpacku_lo_v8hi): Likewise.
3454 (vec_unpacku_hi_<VP_small_lc>): New define_expand.
3455 (vec_unpacku_lo_<VP_small_lc>): Likewise.
3456
3457 2021-08-24 David Edelsohn <dje.gcc@gmail.com>
3458
3459 * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
3460 * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
3461 * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
3462 * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
3463
3464 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
3465
3466 PR middle-end/102031
3467 * simplify-rtx.c (simplify_truncation): When comparing precisions
3468 use "subreg_prec" variable, not "subreg_mode".
3469
3470 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
3471
3472 * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
3473 stanzas.
3474
3475 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
3476
3477 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
3478 various pointer type nodes.
3479 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
3480 values for various pointer types.
3481 (ptr_V16QI_type_node): New macro.
3482 (ptr_V1TI_type_node): New macro.
3483 (ptr_V2DI_type_node): New macro.
3484 (ptr_V2DF_type_node): New macro.
3485 (ptr_V4SI_type_node): New macro.
3486 (ptr_V4SF_type_node): New macro.
3487 (ptr_V8HI_type_node): New macro.
3488 (ptr_unsigned_V16QI_type_node): New macro.
3489 (ptr_unsigned_V1TI_type_node): New macro.
3490 (ptr_unsigned_V8HI_type_node): New macro.
3491 (ptr_unsigned_V4SI_type_node): New macro.
3492 (ptr_unsigned_V2DI_type_node): New macro.
3493 (ptr_bool_V16QI_type_node): New macro.
3494 (ptr_bool_V8HI_type_node): New macro.
3495 (ptr_bool_V4SI_type_node): New macro.
3496 (ptr_bool_V2DI_type_node): New macro.
3497 (ptr_bool_V1TI_type_node): New macro.
3498 (ptr_pixel_type_node): New macro.
3499 (ptr_intQI_type_node): New macro.
3500 (ptr_uintQI_type_node): New macro.
3501 (ptr_intHI_type_node): New macro.
3502 (ptr_uintHI_type_node): New macro.
3503 (ptr_intSI_type_node): New macro.
3504 (ptr_uintSI_type_node): New macro.
3505 (ptr_intDI_type_node): New macro.
3506 (ptr_uintDI_type_node): New macro.
3507 (ptr_intTI_type_node): New macro.
3508 (ptr_uintTI_type_node): New macro.
3509 (ptr_long_integer_type_node): New macro.
3510 (ptr_long_unsigned_type_node): New macro.
3511 (ptr_float_type_node): New macro.
3512 (ptr_double_type_node): New macro.
3513 (ptr_long_double_type_node): New macro.
3514 (ptr_dfloat64_type_node): New macro.
3515 (ptr_dfloat128_type_node): New macro.
3516 (ptr_ieee128_type_node): New macro.
3517 (ptr_ibm128_type_node): New macro.
3518 (ptr_vector_pair_type_node): New macro.
3519 (ptr_vector_quad_type_node): New macro.
3520 (ptr_long_long_integer_type_node): New macro.
3521 (ptr_long_long_unsigned_type_node): New macro.
3522
3523 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
3524
3525 * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
3526 and power9-64 stanzas.
3527
3528 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
3529 Tom de Vries <tdevries@suse.de>
3530
3531 * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
3532 * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
3533 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
3534 a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
3535 * config/nvptx/t-nvptx (nvptx-c.o): New rule.
3536 * config/nvptx/nvptx-c.c: New source file.
3537 (nvptx_cpu_cpp_builtins): Move implementation here.
3538
3539 2021-08-24 Martin Sebor <msebor@redhat.com>
3540
3541 PR middle-end/101600
3542 PR middle-end/101977
3543 * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
3544 the phrasing of a warning.
3545 (check_access): Use the remaining size after subtracting any offset
3546 rather than the whole object size.
3547 * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
3548 clear for any nonnull PHI argument.
3549 (compute_objsize): Clear argument.
3550
3551 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
3552
3553 * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
3554
3555 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
3556
3557 * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
3558 stanzas.
3559
3560 2021-08-24 Andrew MacLeod <amacleod@redhat.com>
3561
3562 * value-relation.cc (rr_transitive_table): New.
3563 (relation_transitive): New.
3564 (value_relation::swap): Remove.
3565 (value_relation::apply_transitive): New.
3566 (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
3567 (relation_oracle::register_relation): Call register_transitives.
3568 (relation_oracle::register_transitives): New.
3569 * value-relation.h (relation_oracle): Add new temporary bitmap and
3570 methods.
3571
3572 2021-08-24 H.J. Lu <hjl.tools@gmail.com>
3573
3574 PR target/102021
3575 * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
3576 from integer to a pseudo vector register.
3577
3578 2021-08-24 Richard Biener <rguenther@suse.de>
3579
3580 PR tree-optimization/100089
3581 * tree-vectorizer.h (vect_slp_bb): Rename to ...
3582 (vect_slp_if_converted_bb): ... this and get the original
3583 loop as new argument.
3584 * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
3585 pass original loop to vect_slp_if_converted_bb.
3586 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
3587 If orig_loop was passed scan the not vectorized stmts
3588 for COND_EXPRs and force not profitable if found.
3589 (vect_slp_region): Pass down all SLP instances to costing
3590 if orig_loop was specified.
3591 (vect_slp_bbs): Pass through orig_loop.
3592 (vect_slp_bb): Rename to ...
3593 (vect_slp_if_converted_bb): ... this and get the original
3594 loop as new argument.
3595 (vect_slp_function): Adjust.
3596
3597 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
3598
3599 PR target/102035
3600 * config/arm/arm.md (attribute arch): Add fix_vlldm.
3601 (arch_enabled): Use it.
3602 * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
3603 use when erratum mitigation is needed.
3604
3605 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
3606
3607 PR target/102035
3608 * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
3609 * doc/invoke.texi (Arm Options): Document it.
3610 * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
3611 (ALL_QUIRKS): Add quirk_vlldm.
3612 (cortex-m33): Add quirk_vlldm.
3613 (cortex-m35p, cortex-m55): Likewise.
3614 * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
3615 targetting an affected CPU and not explicitly controlled on
3616 the command line.
3617
3618 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
3619
3620 * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
3621 (lazy_load_multiple_insn): Likewise.
3622
3623 2021-08-24 liuhongt <hongtao.liu@intel.com>
3624
3625 PR target/101989
3626 * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
3627 Enable avx512 embedded broadcast.
3628 (*<avx512>_vternlog<mode>_all): Ditto.
3629 (<avx512>_vternlog<mode>_mask): Ditto.
3630
3631 2021-08-24 liuhongt <hongtao.liu@intel.com>
3632
3633 PR target/101989
3634 * config/i386/i386.c (ix86_rtx_costs): Define cost for
3635 UNSPEC_VTERNLOG.
3636 * config/i386/i386.h (STRIP_UNARY): New macro.
3637 * config/i386/predicates.md (reg_or_notreg_operand): New
3638 predicate.
3639 * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
3640 (*<avx512>_vternlog<mode>_1): New pre_reload
3641 define_insn_and_split.
3642 (*<avx512>_vternlog<mode>_2): Ditto.
3643 (*<avx512>_vternlog<mode>_3): Ditto.
3644 (any_logic1,any_logic2): New code iterator.
3645 (logic_op): New code attribute.
3646 (ternlogsuffix): Extend to VNxDF and VNxSF.
3647
3648 2021-08-24 Richard Biener <rguenther@suse.de>
3649
3650 * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
3651 * params.opt (--param vect-inner-loop-cost-factor): Adjust
3652 maximum value.
3653 * tree-vect-loop.c (vect_analyze_loop_form): Initialize
3654 inner_loop_cost_factor to the minimum of the estimated number
3655 of iterations of the inner loop and vect-inner-loop-cost-factor.
3656
3657 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
3658 Richard Biener <rguenther@suse.de>
3659
3660 * config/i386/i386-features.c (compute_convert_gain): Provide
3661 more accurate values for CONST_INT, when optimizing for size.
3662 * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
3663 * config/i386/i386.h (COSTS_N_BYTES): to here.
3664
3665 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
3666 Jakub Jelinek <jakub@redhat.com>
3667
3668 PR middle-end/102029
3669 * match.pd (shift transformations): Add an additional check for
3670 !POINTER_TYPE_P in the recently added left shift transformation.
3671
3672 2021-08-24 liuhongt <hongtao.liu@intel.com>
3673
3674 PR tree-optimization/100089
3675 * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
3676 loop vectorizer when cost model is very-cheap.
3677
3678 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
3679
3680 * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
3681 asprintf, which is not available on AIX.
3682
3683 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
3684
3685 * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
3686 * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
3687
3688 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
3689
3690 * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
3691 * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
3692 last.
3693 * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
3694 (rbtree.o): Likewise.
3695 (rs6000-gen-builtins): Likewise.
3696 (rs6000-builtins.c): Likewise.
3697 (rs6000-builtins.h): Likewise.
3698 (rs6000.o): Add dependency.
3699 (EXTRA_HEADERS): Add rs6000-vecdefines.h.
3700 (rs6000-vecdefines.h): New target.
3701 (rs6000-builtins.o): Likewise.
3702 (rs6000-call.o): Add rs6000-builtins.h as a dependency.
3703 (rs6000-c.o): Likewise.
3704
3705 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
3706
3707 PR target/101830
3708 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
3709 Diagnose buffer overrun.
3710 (safe_inc_pos): Fix overrun detection.
3711 (match_identifier): Diagnose buffer overrun.
3712 (match_integer): Likewise.
3713 (match_to_right_bracket): Likewise.
3714
3715 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
3716
3717 * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
3718 Improve range compare.
3719 (modref_access_node::contains): New member function.
3720 (modref_access_node::search): Remove.
3721 (modref_access_node::insert): Be smarter about subaccesses.
3722
3723 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
3724
3725 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
3726 <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
3727 * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
3728 Add "intel_mic".
3729
3730 2021-08-23 Jeff Law <jlaw@localhost.localdomain>
3731
3732 * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
3733 argument.
3734 * config/h8300/jumpcall.md (call, call_value): Restrict to
3735 !SIBLING_CALL_P cases.
3736 (subcall, sibcall_value): New patterns & expanders.
3737 * config/h8300/proepi.md (epilogue): Pass new argument to
3738 h8300_expand_epilogue.
3739 (sibcall_epilogue): New expander.
3740 * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
3741 epilogues too.
3742 (h8300_ok_for_sibcall_p): New function.
3743 (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
3744
3745 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
3746
3747 * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
3748 Handle case where the operand is already the desired mode.
3749
3750 2021-08-23 Richard Biener <rguenther@suse.de>
3751
3752 PR ipa/97565
3753 * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
3754 in addition to has_gimple_body.
3755
3756 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
3757
3758 PR middle-end/101949
3759 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
3760 EAF_NOCLOBBER
3761
3762 2021-08-23 Martin Liska <mliska@suse.cz>
3763
3764 * doc/invoke.texi: Put the option out of -mxl-mode-app-model
3765 table.
3766
3767 2021-08-23 Richard Biener <rguenther@suse.de>
3768
3769 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3770 Properly scale the inner loop cost only once.
3771
3772 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
3773
3774 * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
3775 Provide bounds for unsigned (and signed with non-negative operands)
3776 division and modulus.
3777
3778 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
3779
3780 * simplify-rtx.c (simplify_truncation): Generalize simplification
3781 of (truncate:A (subreg:B X)).
3782 (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
3783 SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
3784 already has the desired machine mode.
3785 (test_scalar_int_ops): Add tests that useless extensions and
3786 truncations are optimized away.
3787 (test_scalar_int_ext_ops): New self-test function to confirm
3788 that truncations of extensions are correctly simplified.
3789 (test_scalar_int_ext_ops2): New self-test function to check
3790 truncations of truncations, extensions of extensions, and
3791 truncations of extensions.
3792 (test_scalar_ops): Call the above two functions with a
3793 representative sampling of integer machine modes.
3794
3795 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
3796
3797 * match.pd (shift transformations): Change the sign of an
3798 LSHIFT_EXPR if it reduces the number of explicit conversions.
3799
3800 2021-08-23 Jakub Jelinek <jakub@redhat.com>
3801
3802 PR tree-optimization/86723
3803 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
3804 cast64_to_32 argument, set *cast64_to_32 to false, unless n is
3805 non-memory permutation of 64-bit src which only has bytes of
3806 0 or [5..8] and n->range is 4.
3807 (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
3808 find_bswap_or_nop_finalize caller, support bswap with some bytes
3809 zeroed, as long as at least two bytes are not zeroed.
3810 (bswap_replace): Add mask argument and handle masking of bswap
3811 result.
3812 (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
3813 caller, punt if cast64_to_32 or mask is not all ones.
3814 (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
3815 caller, for now punt if cast64_to_32.
3816
3817 2021-08-23 Richard Biener <rguenther@suse.de>
3818
3819 PR tree-optimization/79334
3820 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
3821 a type also for COMPONENT_REFs.
3822 (vn_reference_may_trap): Check ARRAY_REF with constant index
3823 against the array domain.
3824
3825 2021-08-23 liuhongt <hongtao.liu@intel.com>
3826
3827 PR target/102016
3828 * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
3829 TARGET_AVX512BW to condition.
3830
3831 2021-08-23 Jakub Jelinek <jakub@redhat.com>
3832
3833 PR debug/101905
3834 * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
3835 register variables already during early_dwarf if possible.
3836
3837 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
3838
3839 * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
3840
3841 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
3842
3843 PR target/100856
3844 * config/arm/arm.opt: Fix typo.
3845 * config/arm/t-rmprofile: Fix typo.
3846
3847 2021-08-23 Jakub Jelinek <jakub@redhat.com>
3848
3849 * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
3850 (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
3851 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
3852 case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
3853 * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
3854 if either grainsize or num_tasks clause has the strict modifier.
3855
3856 2021-08-23 Martin Liska <mliska@suse.cz>
3857
3858 * dbgcnt.def (DEBUG_COUNTER): New counter.
3859 * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
3860
3861 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
3862
3863 * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
3864
3865 2021-08-23 Xi Ruoyao <xry111@mengyan1223.wang>
3866
3867 PR target/101922
3868 * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
3869 Declare.
3870 * config/mips/mips.c (mips_msa_output_shift_immediate): New
3871 function.
3872 * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
3873 vlshr<mode>3): Call it.
3874
3875 2021-08-22 Jan Hubicka <hubicka@ucw.cz>
3876 Martin Liska <mliska@suse.cz>
3877
3878 PR middle-end/101949
3879 * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
3880 ~EAF_NOCLOBBER.
3881
3882 2021-08-21 Dragan Mladjenovic <OT_Dragan.Mladjenovic@mediatek.com>
3883
3884 * config/mips/mips.c (mips_function_rodata_section,
3885 TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
3886
3887 2021-08-21 John David Anglin <danglin@gcc.gnu.org>
3888
3889 * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
3890
3891 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
3892
3893 * configure.ac (thread-local storage support): Remove tls_first_major
3894 and tls_first_minor. Use "$conftest_s" to check support.
3895 * configure: Regenerate.
3896
3897 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
3898
3899 * configure.ac: Fixup formatting.
3900
3901 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
3902
3903 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
3904 * configure.ac: ... update all callers.
3905
3906 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
3907
3908 PR target/91602
3909 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
3910 (gcc_GAS_VERSION_GTE_IFELSE): Remove.
3911 (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
3912 * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
3913 Remove remaining checks for in-tree assembler.
3914 * configure: Regenerate.
3915
3916 2021-08-20 Jeff Law <jlaw@localhost.localdomain>
3917
3918 * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
3919 by 15 bits for H8/300H and H8/S. Improve logical shifts by 12
3920 bits for H8/S.
3921 (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
3922 H8/300H. Improve arithmetic shift right by 15 bits for H8/S.
3923 Improve logical shifts by 27 bits for H8/S.
3924 (get_shift_alg): Corresponding changes.
3925 (h8300_option_override): Revert to loops for -Os when profitable.
3926
3927 2021-08-20 Richard Biener <rguenther@suse.de>
3928
3929 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
3930 BBs.
3931 (vect_analyze_data_ref_accesses): Likewise. Assign the BB
3932 index as group_id when dataref_groups were not computed.
3933 * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
3934 we advace to the next BB.
3935
3936 2021-08-20 Jakub Jelinek <jakub@redhat.com>
3937
3938 * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
3939 builtins.
3940
3941 2021-08-20 Martin Liska <mliska@suse.cz>
3942
3943 PR gcov-profile/89961
3944 * gcov.c (make_gcov_file_name): Rewrite using std::string.
3945 (mangle_name): Simplify, do not used the second argument.
3946 (strip_extention): New function.
3947 (get_md5sum): Likewise.
3948 (get_gcov_intermediate_filename): Handle properly -p and -x
3949 options.
3950 (output_gcov_file): Use string type.
3951 (generate_results): Likewise.
3952 (md5sum_to_hex): Remove.
3953
3954 2021-08-20 Michael Meissner <meissner@linux.ibm.com>
3955
3956 * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
3957 (UNSPEC_XXSPLTIW): Move to vsx.md.
3958 (UNSPEC_XXSPLTID): Move to vsx.md.
3959 (UNSPEC_XXSPLTI32DX): Move to vsx.md.
3960 (UNSPEC_XXBLEND): Move to vsx.md.
3961 (UNSPEC_XXPERMX): Move to vsx.md.
3962 (VM3): Move to vsx.md.
3963 (VM3_char): Move to vsx.md.
3964 (xxspltiw_v4si): Move to vsx.md.
3965 (xxspltiw_v4sf): Move to vsx.md.
3966 (xxspltiw_v4sf_inst): Move to vsx.md.
3967 (xxspltidp_v2df): Move to vsx.md.
3968 (xxspltidp_v2df_inst): Move to vsx.md.
3969 (xxsplti32dx_v4si_inst): Move to vsx.md.
3970 (xxsplti32dx_v4sf): Move to vsx.md.
3971 (xxsplti32dx_v4sf_inst): Move to vsx.md.
3972 (xxblend_<mode>): Move to vsx.md.
3973 (xxpermx): Move to vsx.md.
3974 (xxpermx_inst): Move to vsx.md.
3975 * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
3976 (UNSPEC_XXSPLTIW): Move from altivec.md.
3977 (UNSPEC_XXSPLTID): Move from altivec.md.
3978 (UNSPEC_XXSPLTI32DX): Move from altivec.md.
3979 (UNSPEC_XXBLEND): Move from altivec.md.
3980 (UNSPEC_XXPERMX): Move from altivec.md.
3981 (VM3): Move from altivec.md.
3982 (VM3_char): Move from altivec.md.
3983 (xxspltiw_v4si): Move from altivec.md.
3984 (xxspltiw_v4sf): Move from altivec.md.
3985 (xxspltiw_v4sf_inst): Move from altivec.md.
3986 (xxspltidp_v2df): Move from altivec.md.
3987 (xxspltidp_v2df_inst): Move from altivec.md.
3988 (xxsplti32dx_v4si_inst): Move from altivec.md.
3989 (xxsplti32dx_v4sf): Move from altivec.md.
3990 (xxsplti32dx_v4sf_inst): Move from altivec.md.
3991 (xxblend_<mode>): Move from altivec.md.
3992 (xxpermx): Move from altivec.md.
3993 (xxpermx_inst): Move from altivec.md.
3994
3995 2021-08-19 Roger Sayle <roger@nextmovesoftware.com>
3996
3997 * tree-vect-generic.c (expand_vector_operations_1): Use either
3998 gimplify_build1 or gimplify_build2 instead of gimple_build_assign
3999 when constructing scalar splat expressions.
4000
4001 2021-08-19 Peter Bergner <bergner@linux.ibm.com>
4002
4003 PR target/101849
4004 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
4005 pointer to __vector_pair *.
4006
4007 2021-08-19 Martin Sebor <msebor@redhat.com>
4008
4009 * gimple-range.cc: Add comments.
4010 * gimple-range.h: Same.
4011
4012 2021-08-19 Martin Sebor <msebor@redhat.com>
4013
4014 PR middle-end/101984
4015 * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
4016 disable_ranger.
4017
4018 2021-08-19 Jeff Law <jlaw@localhost.localdomain>
4019
4020 * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
4021 (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
4022 * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
4023
4024 2021-08-19 Jakub Jelinek <jakub@redhat.com>
4025
4026 PR middle-end/101950
4027 * optabs.c (expand_clrsb_using_clz): New function.
4028 (expand_unop): Use it as another clrsb expansion fallback.
4029
4030 2021-08-19 liuhongt <hongtao.liu@intel.com>
4031
4032 Revert:
4033 2021-07-28 liuhongt <hongtao.liu@intel.com>
4034
4035 PR target/99881
4036 * config/i386/i386.h (processor_costs): Add new member
4037 integer_to_sse.
4038 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
4039 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
4040 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
4041 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
4042 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
4043 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
4044 generic_cost, core_cost): Initialize integer_to_sse same value
4045 as sse_op.
4046 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
4047 * config/i386/i386.c (ix86_builtin_vectorization_cost):
4048 Use integer_to_sse instead of sse_op to calculate the cost of
4049 vec_construct.
4050
4051 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
4052
4053 * config.gcc: Include rpath.opt for Darwin.
4054 * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
4055
4056 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
4057
4058 PR bootstrap/101959
4059 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
4060 Use an 'int_hash'.
4061
4062 2021-08-18 Jonathan Wright <jonathan.wright@arm.com>
4063
4064 * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
4065 pattern and type cast.
4066 (vld4_lane_f32): Use float RTL pattern.
4067 (vld4q_lane_f64): Use float type cast.
4068
4069 2021-08-18 Jan Hubicka <hubicka@ucw.cz>
4070
4071 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
4072 EAF_NOREAD.
4073
4074 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
4075
4076 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
4077 (test_map_of_type_with_ctor_and_dtor_expand): Add function.
4078 (hash_map_tests_c_tests): Call it.
4079
4080 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
4081
4082 * ggc.h (enum ggc_collect): New.
4083 (ggc_collect): Use it.
4084 * ggc-page.c: Adjust.
4085 * ggc-common.c: Likewise.
4086 * ggc-tests.c: Likewise.
4087 * read-rtl-function.c: Likewise.
4088 * selftest-run-tests.c: Likewise.
4089 * doc/gty.texi (Invoking the garbage collector): Likewise.
4090
4091 2021-08-18 liuhongt <hongtao.liu@intel.com>
4092
4093 PR target/97147
4094 * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
4095 New macro.
4096 * config/i386/sse.md (*sse3_haddv2df3_low): Add
4097 TARGET_V2DF_REDUCTION_PREFER_HADDPD.
4098 (*sse3_hsubv2df3_low): Ditto.
4099 * config/i386/x86-tune.def
4100 (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
4101
4102 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
4103
4104 * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
4105 (gori_compute::compute_operand_range): Add tracing.
4106 (gori_compute::logical_combine): Ditto.
4107 (gori_compute::compute_logical_operands): Ditto.
4108 (gori_compute::compute_operand1_range): Ditto.
4109 (gori_compute::compute_operand2_range): Ditto.
4110 (gori_compute::outgoing_edge_range_p): Ditto.
4111 * gimple-range-gori.h (class gori_compute): Add range_tracer.
4112
4113 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
4114
4115 * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
4116 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
4117 * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
4118 * params.opt (--param=evrp-mode): Adjust options.
4119
4120 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
4121
4122 * Makefile.in (OBJS): Add gimple-range-trace.o.
4123 * gimple-range-cache.h (enable_new_values): Remove unused prototype.
4124 * gimple-range-fold.cc: Adjust headers.
4125 * gimple-range-trace.cc: New.
4126 * gimple-range-trace.h: New.
4127 * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
4128 (gimple_ranger::range_of_expr): Add tracing.
4129 (gimple_ranger::range_on_entry): Ditto.
4130 (gimple_ranger::range_on_exit): Ditto.
4131 (gimple_ranger::range_on_edge): Ditto.
4132 (gimple_ranger::fold_range_internal): Ditto.
4133 (gimple_ranger::dump_bb): Do not calculate edge range twice.
4134 (trace_ranger::*): Remove.
4135 (enable_ranger): Never create a trace_ranger.
4136 (debug_seed_ranger): Move to gimple-range-trace.cc.
4137 (dump_ranger): Ditto.
4138 (debug_ranger): Ditto.
4139 * gimple-range.h: Include gimple-range-trace.h.
4140 (range_on_entry, range_on_exit): No longer virtual.
4141 (class trace_ranger): Remove.
4142 (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
4143
4144 2021-08-17 Martin Sebor <msebor@redhat.com>
4145
4146 PR middle-end/101854
4147 * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
4148 in gimple-ssa-warn-access.cc.
4149 * calls.c (alloc_max_size): Move code to check_alloca.
4150 (get_size_range): Move to pointer-query.cc.
4151 (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
4152 (get_attr_nonstring_decl): Move to tree.c.
4153 (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
4154 (append_attrname): Same.
4155 (maybe_warn_rdwr_sizes): Same.
4156 (initialize_argument_information): Move code to
4157 gimple-ssa-warn-access.cc.
4158 * calls.h (maybe_warn_alloc_args_overflow): Move to
4159 gimple-ssa-warn-access.h.
4160 (get_attr_nonstring_decl): Move to tree.h.
4161 (maybe_warn_nonstring_arg): Move to gimple-ssa-warn-access.h.
4162 (enum size_range_flags): Move to pointer-query.h.
4163 (get_size_range): Same.
4164 * gimple-ssa-warn-access.cc (has_location): Remove unused overload
4165 to avoid Clang -Wunused-function.
4166 (get_size_range): Declare static.
4167 (maybe_emit_free_warning): Rename...
4168 (maybe_check_dealloc_call): ...to this for consistency.
4169 (class pass_waccess): Add members.
4170 (pass_waccess::~pass_waccess): Defined.
4171 (alloc_max_size): Move here from calls.c.
4172 (maybe_warn_alloc_args_overflow): Same.
4173 (check_alloca): New function.
4174 (check_alloc_size_call): New function.
4175 (check_strncat): Handle another warning flag.
4176 (pass_waccess::check_builtin): Handle alloca.
4177 (fntype_argno_type): Move here from calls.c.
4178 (append_attrname): Same.
4179 (maybe_warn_rdwr_sizes): Same.
4180 (pass_waccess::check_call): Define.
4181 (check_nonstring_args): New function.
4182 (pass_waccess::check): Call new member functions.
4183 (pass_waccess::execute): Enable ranger.
4184 * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
4185 (maybe_warn_nonstring_arg): Same.
4186 * gimple-ssa-warn-restrict.c: Remove #include.
4187 * pointer-query.cc (get_size_range): Move here from calls.c.
4188 * pointer-query.h (enum size_range_flags): Same.
4189 (get_size_range): Same.
4190 * tree.c (get_attr_nonstring_decl): Move here from calls.c.
4191 * tree.h (get_attr_nonstring_decl): Move here from calls.h.
4192
4193 2021-08-17 Thomas Schwinge <thomas@codesourcery.com>
4194
4195 * ggc.h (ggc_collect): Add 'force_collect' parameter.
4196 * ggc-page.c (ggc_collect): Use that one instead of global
4197 'ggc_force_collect'. Adjust all users.
4198 * doc/gty.texi (Invoking the garbage collector): Update.
4199 * ggc-internal.h (ggc_force_collect): Remove.
4200 * ggc-common.c (ggc_force_collect): Likewise.
4201 * selftest.h (forcibly_ggc_collect): Remove.
4202 * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
4203 * read-rtl-function.c (test_loading_labels): Adjust.
4204 * selftest-run-tests.c (run_tests): Likewise.
4205
4206 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
4207
4208 * config/darwin.c (darwin_file_end): Reset and reclaim the
4209 section names table at the end of compile.
4210
4211 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
4212
4213 PR target/100340
4214 * config.in: Regenerate.
4215 * config/i386/darwin.h (EXTRA_ASM_OPTS): New
4216 (ASM_SPEC): Pass options to disable branch shortening where
4217 needed.
4218 * configure: Regenerate.
4219 * configure.ac: Detect versions of 'as' that support the
4220 optimisation which has the bug.
4221
4222 2021-08-17 Richard Biener <rguenther@suse.de>
4223
4224 * optabs-query.c (supports_vec_gather_load_p): Also check
4225 for masked optabs.
4226 (supports_vec_scatter_store_p): Likewise.
4227 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
4228 back to masked variants if non-masked are not supported.
4229 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
4230 When we need to use masked gather/scatter but do not have
4231 a mask set up a constant true one.
4232 * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
4233 non-SSA_NAME masks.
4234
4235 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
4236
4237 * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
4238 algorithm as PLUS_EXPR to improve subtraction bit bounds.
4239 [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
4240
4241 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
4242
4243 * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
4244 calculate the mask-value pair result of a multiplication by an
4245 unsigned constant.
4246 (bit_value_binop) [MULT_EXPR]: Call it from here for
4247 multiplications by (sparse) non-negative constants.
4248
4249 2021-08-17 Christophe Lyon <christophe.lyon@foss.st.com>
4250
4251 PR target/100896
4252 * config.gcc (gcc_cv_initfini_array): Leave undefined for
4253 uclinuxfdpiceabi targets.
4254
4255 2021-08-17 Alexandre Oliva <oliva@adacore.com>
4256
4257 * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
4258 reverse debug stmts.
4259
4260 2021-08-17 Alexandre Oliva <oliva@adacore.com>
4261
4262 * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
4263
4264 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
4265
4266 * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
4267 (__LD4Q_LANE_FUNC): Likewise.
4268 (vld4_lane_u8): Define without macro.
4269 (vld4_lane_u16): Likewise.
4270 (vld4_lane_u32): Likewise.
4271 (vld4_lane_u64): Likewise.
4272 (vld4_lane_s8): Likewise.
4273 (vld4_lane_s16): Likewise.
4274 (vld4_lane_s32): Likewise.
4275 (vld4_lane_s64): Likewise.
4276 (vld4_lane_f16): Likewise.
4277 (vld4_lane_f32): Likewise.
4278 (vld4_lane_f64): Likewise.
4279 (vld4_lane_p8): Likewise.
4280 (vld4_lane_p16): Likewise.
4281 (vld4_lane_p64): Likewise.
4282 (vld4q_lane_u8): Likewise.
4283 (vld4q_lane_u16): Likewise.
4284 (vld4q_lane_u32): Likewise.
4285 (vld4q_lane_u64): Likewise.
4286 (vld4q_lane_s8): Likewise.
4287 (vld4q_lane_s16): Likewise.
4288 (vld4q_lane_s32): Likewise.
4289 (vld4q_lane_s64): Likewise.
4290 (vld4q_lane_f16): Likewise.
4291 (vld4q_lane_f32): Likewise.
4292 (vld4q_lane_f64): Likewise.
4293 (vld4q_lane_p8): Likewise.
4294 (vld4q_lane_p16): Likewise.
4295 (vld4q_lane_p64): Likewise.
4296 (vld4_lane_bf16): Likewise.
4297 (vld4q_lane_bf16): Likewise.
4298
4299 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
4300
4301 * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
4302 (__LD3Q_LANE_FUNC): Delete.
4303 (vld3_lane_u8): Define without macro.
4304 (vld3_lane_u16): Likewise.
4305 (vld3_lane_u32): Likewise.
4306 (vld3_lane_u64): Likewise.
4307 (vld3_lane_s8): Likewise.
4308 (vld3_lane_s16): Likewise.
4309 (vld3_lane_s32): Likewise.
4310 (vld3_lane_s64): Likewise.
4311 (vld3_lane_f16): Likewise.
4312 (vld3_lane_f32): Likewise.
4313 (vld3_lane_f64): Likewise.
4314 (vld3_lane_p8): Likewise.
4315 (vld3_lane_p16): Likewise.
4316 (vld3_lane_p64): Likewise.
4317 (vld3q_lane_u8): Likewise.
4318 (vld3q_lane_u16): Likewise.
4319 (vld3q_lane_u32): Likewise.
4320 (vld3q_lane_u64): Likewise.
4321 (vld3q_lane_s8): Likewise.
4322 (vld3q_lane_s16): Likewise.
4323 (vld3q_lane_s32): Likewise.
4324 (vld3q_lane_s64): Likewise.
4325 (vld3q_lane_f16): Likewise.
4326 (vld3q_lane_f32): Likewise.
4327 (vld3q_lane_f64): Likewise.
4328 (vld3q_lane_p8): Likewise.
4329 (vld3q_lane_p16): Likewise.
4330 (vld3q_lane_p64): Likewise.
4331 (vld3_lane_bf16): Likewise.
4332 (vld3q_lane_bf16): Likewise.
4333
4334 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
4335
4336 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
4337 (__LD2Q_LANE_FUNC): Likewise.
4338 (vld2_lane_u8): Define without macro.
4339 (vld2_lane_u16): Likewise.
4340 (vld2_lane_u32): Likewise.
4341 (vld2_lane_u64): Likewise.
4342 (vld2_lane_s8): Likewise.
4343 (vld2_lane_s16): Likewise.
4344 (vld2_lane_s32): Likewise.
4345 (vld2_lane_s64): Likewise.
4346 (vld2_lane_f16): Likewise.
4347 (vld2_lane_f32): Likewise.
4348 (vld2_lane_f64): Likewise.
4349 (vld2_lane_p8): Likewise.
4350 (vld2_lane_p16): Likewise.
4351 (vld2_lane_p64): Likewise.
4352 (vld2q_lane_u8): Likewise.
4353 (vld2q_lane_u16): Likewise.
4354 (vld2q_lane_u32): Likewise.
4355 (vld2q_lane_u64): Likewise.
4356 (vld2q_lane_s8): Likewise.
4357 (vld2q_lane_s16): Likewise.
4358 (vld2q_lane_s32): Likewise.
4359 (vld2q_lane_s64): Likewise.
4360 (vld2q_lane_f16): Likewise.
4361 (vld2q_lane_f32): Likewise.
4362 (vld2q_lane_f64): Likewise.
4363 (vld2q_lane_p8): Likewise.
4364 (vld2q_lane_p16): Likewise.
4365 (vld2q_lane_p64): Likewise.
4366 (vld2_lane_bf16): Likewise.
4367 (vld2q_lane_bf16): Likewise.
4368
4369 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4370
4371 * haifa-sched.c (advance_one_cycle): Output more context-synchronization
4372 lines for diff.
4373
4374 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4375
4376 * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
4377 (rank_for_schedule): Use it.
4378
4379 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4380
4381 PR rtl-optimization/91598
4382 * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
4383 insns after memory reads and before memory writes.
4384
4385 2021-08-17 Alistair_Lee <alistair.lee@arm.com>
4386
4387 * rtl.h (CONST_VECTOR_P): New macro.
4388 * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
4389 code testing macros.
4390 (aarch64_ptrue_all_mode): Likewise.
4391 (aarch64_expand_mov_immediate): Likewise.
4392 (aarch64_const_vec_all_in_range_p): Likewise.
4393 (aarch64_rtx_costs): Likewise.
4394 (aarch64_legitimate_constant_p): Likewise.
4395 (aarch64_simd_valid_immediate): Likewise.
4396 (aarch64_simd_make_constant): Likewise.
4397 (aarch64_convert_mult_to_shift): Likewise.
4398 (aarch64_expand_sve_vec_perm): Likewise.
4399 (aarch64_vec_fpconst_pow_of_2): Likewise.
4400
4401 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
4402
4403 PR tree-optimization/101938
4404 * range-op.cc (operator_abs::op1_range): Special case
4405 -TYPE_MIN_VALUE for flag_wrapv.
4406
4407 2021-08-17 Kewen Lin <linkw@linux.ibm.com>
4408
4409 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
4410 value extraction.
4411
4412 2021-08-17 Jakub Jelinek <jakub@redhat.com>
4413
4414 * tree.def (OMP_SCOPE): New tree code.
4415 * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
4416 * tree-nested.c (convert_nonlocal_reference_stmt,
4417 convert_local_reference_stmt, convert_gimple_call): Handle
4418 GIMPLE_OMP_SCOPE.
4419 * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
4420 * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
4421 * gimple.c (gimple_build_omp_scope): New function.
4422 (gimple_copy): Handle GIMPLE_OMP_SCOPE.
4423 * gimple.h (gimple_build_omp_scope): Declare.
4424 (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
4425 (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
4426 gimple_omp_scope_set_clauses): New inline functions.
4427 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
4428 * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
4429 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
4430 * gimple-walk.c (walk_gimple_stmt): Likewise.
4431 * gimple-low.c (lower_stmt): Likewise.
4432 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
4433 (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
4434 like ORT_WORKSHARE constructs. Adjust diagnostics for %<scope%>
4435 allowing task reductions. Reject inscan reductions on scope.
4436 (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
4437 (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
4438 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
4439 (estimate_num_insns): Likewise.
4440 * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
4441 contexts if var isn't privatized there.
4442 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
4443 (scan_omp_1_stmt): Likewise.
4444 (maybe_add_implicit_barrier_cancel): Look through outer
4445 scope constructs.
4446 (lower_omp_scope): New function.
4447 (lower_omp_task_reductions): Handle OMP_SCOPE.
4448 (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
4449 (diagnose_sb_1, diagnose_sb_2): Likewise.
4450 * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
4451 (expand_omp): Handle GIMPLE_OMP_SCOPE.
4452 (omp_make_gimple_edges): Likewise.
4453 * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
4454
4455 2021-08-17 Richard Biener <rguenther@suse.de>
4456
4457 PR tree-optimization/101925
4458 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
4459 reverse on COMPONENT_REF and ARRAY_REF according to
4460 what reverse_storage_order_for_component_p does.
4461 (vn_reference_eq): Compare reversed on reference ops.
4462 (reverse_storage_order_for_component_p): New overload.
4463 (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
4464 on the reference looked up.
4465
4466 2021-08-17 Jeff Law <jlaw@localhost.localdomain>
4467
4468 * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
4469 shifts on the H8/S.
4470 (h8300_option_override): Use loops on H8/S more often when optimizing
4471 for size.
4472 (get_shift_alg): Handle new "special" cases on H8/S. Simplify
4473 accordingly. Handle various arithmetic right shifts with special
4474 sequences that we couldn't handle before.
4475
4476 2021-08-16 Jeff Law <jlaw@localhost.localdomain>
4477
4478 * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
4479
4480 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
4481
4482 * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
4483 * config/sparc/sparc.c (sparc_gcov_type_size): New.
4484 (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
4485 * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
4486 * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
4487 * doc/tm.texi.in: Regenerate.
4488 * target.def (gcov_type_size): New target hook.
4489 * targhooks.c (default_gcov_type_size): New.
4490 * targhooks.h (default_gcov_type_size): Declare.
4491 * tree-profile.c (gimple_gen_edge_profiler): Use precision of
4492 gcov_type_node.
4493 (gimple_gen_time_profiler): Likewise.
4494
4495 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
4496
4497 * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
4498
4499 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
4500
4501 PR middle-end/101931
4502 * omp-low.c (omp_runtime_api_call): Update for routines
4503 added in the meanwhile.
4504
4505 2021-08-16 Martin Liska <mliska@suse.cz>
4506
4507 PR tree-optimization/100393
4508 * tree-switch-conversion.c (group_cluster::dump): Use
4509 get_comparison_count.
4510 (jump_table_cluster::find_jump_tables): Pre-compute number of
4511 comparisons and then decrement it. Cache also max_ratio.
4512 (jump_table_cluster::can_be_handled): Change signature.
4513 * tree-switch-conversion.h (get_comparison_count): New.
4514
4515 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
4516
4517 * dwarf2out.c (add_data_member_location_attribute): Use GNAT
4518 encodings only when -fgnat-encodings=all is specified.
4519 (add_bound_info): Likewise.
4520 (add_byte_size_attribute): Likewise.
4521 (gen_member_die): Likewise.
4522
4523 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
4524
4525 * omp-oacc-neuter-broadcast.cc
4526 (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
4527
4528 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
4529
4530 * omp-oacc-neuter-broadcast.cc
4531 (execute_omp_oacc_neuter_broadcast): Clarify memory management for
4532 'prop_set'.
4533
4534 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
4535
4536 * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
4537 (execute_omp_oacc_neuter_broadcast): ... here.
4538 (install_var_field, build_receiver_ref, build_sender_ref): Take
4539 'field_map_t *' parameter. Adjust all users.
4540 (worker_single_copy, neuter_worker_single): Take a
4541 'record_field_map_t *' parameter. Adjust all users.
4542
4543 2021-08-16 liuhongt <hongtao.liu@intel.com>
4544
4545 PR target/101930
4546 * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
4547 reg.
4548
4549 2021-08-16 Martin Liska <mliska@suse.cz>
4550
4551 PR ipa/101726
4552 * multiple_target.c (create_dispatcher_calls): Make default
4553 function local only if it is a definition.
4554
4555 2021-08-16 Martin Liska <mliska@suse.cz>
4556
4557 PR ipa/100600
4558 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
4559 consider equal SSA_NAMEs when one is a param.
4560
4561 2021-08-16 liuhongt <hongtao.liu@intel.com>
4562
4563 PR target/101846
4564 * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
4565 Support vpermi2b for V32QI/V16QImode.
4566 (ix86_extract_perm_from_pool_constant): New function.
4567 (ix86_expand_vec_one_operand_perm_avx512): Support
4568 vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
4569 (expand_vec_perm_1): Adjust comments for upper.
4570 * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
4571 New declare.
4572 * config/i386/predicates.md (permvar_truncate_operand): New predicate.
4573 (pshufb_truncv4siv4hi_operand): Ditto.
4574 (pshufb_truncv8hiv8qi_operand): Ditto.
4575 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
4576 New pre_reload define_insn_and_split.
4577 (*avx512f_permvar_truncv8siv8hi_1): Ditto.
4578 (*avx512f_vpermvar_truncv8div8si_1): Ditto.
4579 (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
4580 (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
4581 (*avx512f_permvar_truncv4div4si_1): Ditto.
4582 (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
4583 (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
4584 (*avx512f_pshufd_truncv2div2si_1): Ditto.
4585
4586 2021-08-16 Kito Cheng <kito.cheng@sifive.com>
4587
4588 * config/riscv/multilib-generator: Support code model option for
4589 multi-lib.
4590 * doc/install.texi: Add document of new option for
4591 --with-multilib-generator.
4592
4593 2021-08-15 Clément Chigot <clement.chigot@atos.net>
4594
4595 * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
4596 (rs6000_legitimize_tls_address_aix): Use it.
4597 (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
4598 xcoff_tls_exec_model_detected is true.
4599
4600 2021-08-15 Jeff Law <jlaw@localhost.localdomain>
4601
4602 * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
4603 to allow a bit more code growth, saving many dozens of cycles.
4604 (h8300_option_override): Adjus shift_alg_si if optimizing for
4605 code size.
4606 (get_shift_alg): Use special + inline shifts for residuals
4607 in more cases.
4608
4609 2021-08-14 Stafford Horne <shorne@gmail.com>
4610
4611 PR target/99783
4612 * config/or1k/or1k-opts.h: New file.
4613 * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
4614 Support generating gotha relocations if -mcmodel=large is
4615 specified.
4616 * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
4617 New macros.
4618 * config/or1k/or1k.opt (mcmodel=): New option.
4619 * doc/invoke.texi (OpenRISC Options): Document mcmodel.
4620
4621 2021-08-14 Martin Sebor <msebor@redhat.com>
4622
4623 PR middle-end/101791
4624 * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
4625 to valid_new_delete_pair_p.
4626 * tree.c (valid_new_delete_pair_p): Add argument.
4627 * tree.h (valid_new_delete_pair_p): Same.
4628
4629 2021-08-14 Jakub Jelinek <jakub@redhat.com>
4630
4631 PR target/101896
4632 * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
4633 <case E_V64QImode>: For this mode assert
4634 !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
4635
4636 2021-08-13 Michael Meissner <meissner@linux.ibm.com>
4637
4638 PR target/99921
4639 * config/rs6000/altivec.md (xxeval): Use register_predicate
4640 instead of altivec_register_predicate.
4641
4642 2021-08-13 Martin Sebor <msebor@redhat.com>
4643
4644 PR middle-end/101734
4645 * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
4646 (maybe_warn_operand): Call it.
4647
4648 2021-08-13 Martin Liska <mliska@suse.cz>
4649
4650 PR ipa/101354
4651 * attribs.c (decl_attributes): Make naked functions "noipa"
4652 functions.
4653
4654 2021-08-13 Martin Liska <mliska@suse.cz>
4655
4656 PR ipa/101261
4657 * symtab.c (symtab_node::noninterposable_alias): Do not create
4658 local aliases for target_clone functions as the clonning pass
4659 rejects aliases.
4660
4661 2021-08-13 Martin Liska <mliska@suse.cz>
4662
4663 * opts.c (LIVE_PATCHING_OPTION): Define.
4664 (control_options_for_live_patching): Use it in error messages.
4665
4666 2021-08-13 Jan Hubicka <hubicka@ucw.cz>
4667
4668 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
4669 (implicit_const_eaf_flags, implicit_pure_eaf_flags,
4670 ignore_stores_eaf_flags): New constants.
4671 (remove_useless_eaf_flags): New function.
4672 (eaf_flags_useful_p): Use it.
4673 (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
4674 handle EAF_NOREAD.
4675 (modref_lattice::init): Add EAF_NOREAD.
4676 (modref_lattice::add_escape_point): Do not reacord escape point if
4677 result is unused.
4678 (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
4679 use remove_useless_eaf_flags.
4680 (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
4681 (modref_lattice::merge_direct_load): Add EAF_NOREAD
4682 (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
4683 (analyze_parms): Use remove_useless_eaf_flags.
4684 (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
4685 (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
4686 use remove_useless_eaf_flags.
4687 (modref_propagate_flags_in_scc): Update.
4688 * ipa-modref.h: Turn eaf_flags_t back to char.
4689 * tree-core.h (EAF_NOT_RETURNED): Fix.
4690 (EAF_NOREAD): New constant
4691 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
4692 EAF_NOREAD.
4693 * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
4694 (handle_pure_call): Likewise.
4695
4696 2021-08-12 Jakub Jelinek <jakub@redhat.com>
4697
4698 * tree.def (OMP_MASKED): New tree code.
4699 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
4700 * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
4701 OMP_CLAUSE_FILTER_EXPR): Define.
4702 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
4703 (omp_clause_code_name): Likewise.
4704 (walk_tree_1): Handle OMP_CLAUSE_FILTER.
4705 * tree-nested.c (convert_nonlocal_omp_clauses,
4706 convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
4707 (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
4708 convert_gimple_call): Handle GIMPLE_OMP_MASTER.
4709 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
4710 (dump_generic_node): Handle OMP_MASTER.
4711 * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
4712 * gimple.c (gimple_build_omp_masked): New function.
4713 (gimple_copy): Handle GIMPLE_OMP_MASKED.
4714 * gimple.h (gimple_build_omp_masked): Declare.
4715 (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
4716 (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
4717 gimple_omp_masked_set_clauses): New inline functions.
4718 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
4719 * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
4720 (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
4721 * gimple-walk.c (walk_gimple_stmt): Likewise.
4722 * gimple-low.c (lower_stmt): Likewise.
4723 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
4724 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER. For clauses
4725 that take one expression rather than decl or constant, force
4726 gimplification of that into a SSA_NAME or temporary unless min
4727 invariant.
4728 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
4729 (gimplify_expr): Handle OMP_MASKED.
4730 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
4731 (estimate_num_insns): Likewise.
4732 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
4733 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED. Adjust
4734 diagnostics for existence of masked construct.
4735 (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
4736 diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
4737 * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
4738 Likewise.
4739
4740 2021-08-12 Uroš Bizjak <ubizjak@gmail.com>
4741
4742 PR target/98309
4743 * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
4744 (ldexp<mode>3): Use avx512f_scalef<mode>2.
4745 (UNSPEC_SCALEF): Move from ...
4746 * config/i386/sse.md (UNSPEC_SCALEF): ... here.
4747
4748 2021-08-12 Jan Hubicka <hubicka@ucw.cz>
4749
4750 * ipa-split.c (consider_split): Fix condition testing void functions.
4751
4752 2021-08-12 Aldy Hernandez <aldyh@redhat.com>
4753
4754 * doc/invoke.texi: Remove docs for threader-mode param.
4755 * flag-types.h (enum threader_mode): Remove.
4756 * params.opt: Remove threader-mode param.
4757 * tree-ssa-threadbackward.c (class back_threader): Remove
4758 path_is_unreachable_p.
4759 Make find_paths private.
4760 Add maybe_thread and thread_through_all_blocks.
4761 Remove reference marker for m_registry.
4762 Remove reference marker for m_profit.
4763 (back_threader::back_threader): Adjust for registry and profit not
4764 being references.
4765 (dump_path): Move down.
4766 (debug): Move down.
4767 (class thread_jumps): Remove.
4768 (class back_threader_registry): Remove m_all_paths.
4769 Remove destructor.
4770 (thread_jumps::thread_through_all_blocks): Move to back_threader
4771 class.
4772 (fsm_find_thread_path): Remove
4773 (back_threader::maybe_thread): New.
4774 (back_threader::thread_through_all_blocks): Move from
4775 thread_jumps.
4776 (back_threader_registry::back_threader_registry): Remove
4777 m_all_paths.
4778 (back_threader_registry::~back_threader_registry): Remove.
4779 (thread_jumps::find_taken_edge): Remove.
4780 (thread_jumps::check_subpath_and_update_thread_path): Remove.
4781 (thread_jumps::maybe_register_path): Remove.
4782 (thread_jumps::handle_phi): Remove.
4783 (handle_assignment_p): Remove.
4784 (thread_jumps::handle_assignment): Remove.
4785 (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
4786 (thread_jumps::find_jump_threads_backwards): Remove.
4787 (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
4788 (try_thread_blocks): Rename find_jump_threads_backwards to
4789 maybe_thread.
4790 (pass_early_thread_jumps::execute): Same.
4791
4792 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
4793
4794 * tree-core.h (omp_clause_proc_bind_kind): Add
4795 OMP_CLAUSE_PROC_BIND_PRIMARY.
4796 * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
4797 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4798
4799 2021-08-12 Claudiu Zissulescu <claziss@synopsys.com>
4800
4801 * common/config/arc/arc-common.c (arc_option_init_struct): Remove
4802 fno-common reference.
4803 * config/arc/arc.c (arc_override_options): Remove overriding of
4804 flag_no_common.
4805
4806 2021-08-12 Jakub Jelinek <jakub@redhat.com>
4807
4808 PR target/101860
4809 * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
4810 If d->testing_p, return true after performing checks instead of
4811 actually expanding the insn.
4812 (expand_vec_perm_broadcast_1): Handle V32HImode - assert
4813 !TARGET_AVX512BW and return false.
4814
4815 2021-08-12 Eric Botcazou <ebotcazou@gcc.gnu.org>
4816
4817 * configure.ac (PE linker --disable-dynamicbase support): New check.
4818 * configure: Regenerate.
4819 * config.in: Likewise.
4820 * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
4821 (LINK_SPEC): Use it.
4822 * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
4823 (LINK_SPEC): Likewise.
4824
4825 2021-08-12 liuhongt <hongtao.liu@intel.com>
4826
4827 PR target/101846
4828 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
4829 post_reload define_insn_and_split.
4830 (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
4831 (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
4832 (*avx512f_zero_extendv16hiv16si2_2): Ditto.
4833 (*avx2_zero_extendv8hiv8si2_2): Ditto.
4834 (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
4835 (*avx512f_zero_extendv8siv8di2_2): Ditto.
4836 (*avx2_zero_extendv4siv4di2_2): Ditto.
4837 (*sse4_1_zero_extendv2siv2di2_4): Ditto.
4838 (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
4839 mode iterator.
4840
4841 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
4842
4843 * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
4844 power6 stanzas.
4845
4846 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
4847
4848 * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
4849
4850 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
4851
4852 * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
4853 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
4854 initialization of pcvoid_type_node here...
4855 (altivec_init_builtins): ...from here.
4856 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
4857 RS6000_BTI_const_ptr_void.
4858 (pcvoid_type_node): New macro.
4859
4860 2021-08-11 Richard Biener <rguenther@suse.de>
4861
4862 PR target/101877
4863 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
4864 hard-register accesses.
4865
4866 2021-08-11 Richard Biener <rguenther@suse.de>
4867
4868 * tree-ssa-operands.c (operands_scanner::get_expr_operands):
4869 Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
4870 to determine has_volatile_ops.
4871
4872 2021-08-11 Eric Botcazou <ebotcazou@gcc.gnu.org>
4873
4874 * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
4875
4876 2021-08-11 Jan Hubicka <hubicka@ucw.cz>
4877 Alexandre Oliva <oliva@adacore.com>
4878
4879 * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
4880 dumping.
4881 (modref_lattice::merge_deref): Fix handling of indirect scape points.
4882 (update_escape_summary_1): Likewise.
4883 (update_escape_summary): Likewise.
4884 (ipa_merge_modref_summary_after_inlining): Likewise.
4885
4886 2021-08-11 Richard Biener <rguenther@suse.de>
4887
4888 PR middle-end/101858
4889 * fold-const.c (fold_binary_loc): Guard simplification
4890 of X < (cast) (1 << Y) to integer types.
4891
4892 2021-08-11 Richard Biener <rguenther@suse.de>
4893
4894 PR tree-optimization/101861
4895 * tree-vect-stmts.c (vectorizable_load): Fix error in
4896 previous change with regard to gather vectorization.
4897
4898 2021-08-11 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
4899
4900 PR target/66791
4901 * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
4902 with constructor.
4903 (vdup_n_s16): Likewise.
4904 (vdup_n_s32): Likewise.
4905 (vdup_n_s64): Likewise.
4906 (vdup_n_u8): Likewise.
4907 (vdup_n_u16): Likewise.
4908 (vdup_n_u32): Likewise.
4909 (vdup_n_u64): Likewise.
4910 (vdup_n_p8): Likewise.
4911 (vdup_n_p16): Likewise.
4912 (vdup_n_p64): Likewise.
4913 (vdup_n_f16): Likewise.
4914 (vdup_n_f32): Likewise.
4915 (vdupq_n_s8): Likewise.
4916 (vdupq_n_s16): Likewise.
4917 (vdupq_n_s32): Likewise.
4918 (vdupq_n_s64): Likewise.
4919 (vdupq_n_u8): Likewise.
4920 (vdupq_n_u16): Likewise.
4921 (vdupq_n_u32): Likewise.
4922 (vdupq_n_u64): Likewise.
4923 (vdupq_n_p8): Likewise.
4924 (vdupq_n_p16): Likewise.
4925 (vdupq_n_p64): Likewise.
4926 (vdupq_n_f16): Likewise.
4927 (vdupq_n_f32): Likewise.
4928 (vmov_n_s8): Replace call to builtin with call to corresponding
4929 vdup_n intrinsic.
4930 (vmov_n_s16): Likewise.
4931 (vmov_n_s32): Likewise.
4932 (vmov_n_s64): Likewise.
4933 (vmov_n_u8): Likewise.
4934 (vmov_n_u16): Likewise.
4935 (vmov_n_u32): Likewise.
4936 (vmov_n_u64): Likewise.
4937 (vmov_n_p8): Likewise.
4938 (vmov_n_p16): Likewise.
4939 (vmov_n_f16): Likewise.
4940 (vmov_n_f32): Likewise.
4941 (vmovq_n_s8): Likewise.
4942 (vmovq_n_s16): Likewise.
4943 (vmovq_n_s32): Likewise.
4944 (vmovq_n_s64): Likewise.
4945 (vmovq_n_u8): Likewise.
4946 (vmovq_n_u16): Likewise.
4947 (vmovq_n_u32): Likewise.
4948 (vmovq_n_u64): Likewise.
4949 (vmovq_n_p8): Likewise.
4950 (vmovq_n_p16): Likewise.
4951 (vmovq_n_f16): Likewise.
4952 (vmovq_n_f32): Likewise.
4953 * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
4954
4955 2021-08-11 liuhongt <hongtao.liu@intel.com>
4956
4957 PR target/98309
4958 * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
4959 when TARGET_AVX512F and TARGET_SSE_MATH.
4960
4961 2021-08-10 Jakub Jelinek <jakub@redhat.com>
4962
4963 PR target/80355
4964 * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
4965 for V32HImode if !TARGET_AVX512BW.
4966 (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
4967 If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
4968 early, but actually check the permutation.
4969
4970 2021-08-10 Richard Biener <rguenther@suse.de>
4971
4972 PR tree-optimization/101809
4973 * tree-vect-stmts.c (get_load_store_type): Allow emulated
4974 gathers with offset vector nunits being a constant multiple
4975 of the data vector nunits.
4976 (vect_get_gather_scatter_ops): Use the appropriate nunits
4977 for the offset vector defs.
4978 (vectorizable_store): Adjust call to
4979 vect_get_gather_scatter_ops.
4980 (vectorizable_load): Likewise. Handle the case of less
4981 offset vectors than data vectors.
4982
4983 2021-08-10 Jakub Jelinek <jakub@redhat.com>
4984
4985 PR target/80355
4986 * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
4987 *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
4988 patterns.
4989
4990 2021-08-10 Richard Biener <rguenther@suse.de>
4991
4992 PR tree-optimization/101801
4993 PR tree-optimization/101819
4994 * tree-vectorizer.h (vect_emulated_vector_p): Declare.
4995 * tree-vect-loop.c (vect_emulated_vector_p): New function.
4996 (vectorizable_reduction): Re-instantiate a check for emulated
4997 operations.
4998 * tree-vect-stmts.c (vectorizable_shift): Likewise.
4999 (vectorizable_operation): Likewise. Cost emulated vector
5000 operations according to the scalar sequence synthesized by
5001 vector lowering.
5002
5003 2021-08-10 Richard Biener <rguenther@suse.de>
5004
5005 PR middle-end/101824
5006 * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
5007 volatile in case the variable was.
5008
5009 2021-08-10 H.J. Lu <hjl.tools@gmail.com>
5010
5011 PR target/101804
5012 * config/i386/constraints.md (BC): Document for integer SSE
5013 constant all bits set operand.
5014 (BF): New constraint for const floating-point all bits set
5015 vectors.
5016 * config/i386/i386.c (standard_sse_constant_p): Likewise.
5017 (standard_sse_constant_opcode): Likewise.
5018 * config/i386/sse.md (sseconstm1): New mode attribute.
5019 (mov<mode>_internal): Replace BC with <sseconstm1>.
5020
5021 2021-08-10 liuhongt <hongtao.liu@intel.com>
5022
5023 * config/i386/sse.md (cond_<insn><mode>): New expander.
5024 (VI248_AVX512VLBW): New mode iterator.
5025 * config/i386/predicates.md
5026 (nonimmediate_or_const_vec_dup_operand): New predicate.
5027
5028 2021-08-09 Andrew MacLeod <amacleod@redhat.com>
5029
5030 PR tree-optimization/101741
5031 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
5032 type of parameter for toupper/tolower.
5033
5034 2021-08-09 Martin Jambor <mjambor@suse.cz>
5035
5036 PR testsuite/101654
5037 * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
5038
5039 2021-08-09 Pat Haugen <pthaugen@linux.ibm.com>
5040
5041 * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
5042 register.
5043 (is_store_insn1): Verify source is a register.
5044
5045 2021-08-09 Uroš Bizjak <ubizjak@gmail.com>
5046
5047 PR target/101812
5048 * config/i386/mmx.md (<any_logic:code>v2sf3):
5049 Rename from *mmx_<any_logic:code>v2sf3
5050
5051 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
5052
5053 * config/nvptx/nvptx.c: Cross-reference parts adapted in
5054 'gcc/omp-oacc-neuter-broadcast.cc'.
5055 * omp-low.c: Likewise.
5056 * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
5057 the above files.
5058
5059 2021-08-09 Julian Brown <julian@codesourcery.com>
5060 Kwok Cheung Yeung <kcy@codesourcery.com>
5061 Thomas Schwinge <thomas@codesourcery.com>
5062
5063 * config/gcn/gcn.c (gcn_init_builtins): Override decls for
5064 BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
5065 BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
5066 (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
5067 (gcn_fork_join): Update comment.
5068 * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
5069 (macc_experimental_workers): Remove unused option.
5070
5071 2021-08-09 Julian Brown <julian@codesourcery.com>
5072 Nathan Sidwell <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
5073 Kwok Cheung Yeung <kcy@codesourcery.com>
5074 Thomas Schwinge <thomas@codesourcery.com>
5075
5076 * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
5077 * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
5078 Add documentation hook.
5079 * doc/tm.texi: Regenerate.
5080 * omp-oacc-neuter-broadcast.cc: New file.
5081 * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
5082 (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
5083 (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
5084 * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
5085 * target.def (goacc.create_worker_broadcast_record): Add target
5086 hook.
5087 * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
5088 prototype.
5089 * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
5090 Rename prototype to...
5091 (gcn_goacc_create_worker_broadcast_record): ... this.
5092 * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
5093 function to...
5094 (gcn_goacc_create_worker_broadcast_record): ... this.
5095 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
5096 Rename to...
5097 (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
5098
5099 2021-08-09 Tejas Belagod <tejas.belagod@arm.com>
5100
5101 PR target/101609
5102 * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
5103 the right iterator.
5104
5105 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
5106
5107 * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
5108
5109 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
5110
5111 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
5112 consider '-foffload-abi'.
5113 * common.opt (-foffload-abi): Remove 'Var', 'Init'.
5114 * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
5115 Ignore.
5116
5117 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
5118
5119 * optc-gen.awk: Sanity check that 'Init' doesn't appear without
5120 'Var'.
5121
5122 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
5123
5124 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
5125
5126 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
5127
5128 * doc/gty.texi (Files): Update.
5129
5130 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
5131
5132 * doc/gty.texi (Files): Fix GTY header file example.
5133
5134 2021-08-09 Roger Sayle <roger@nextmovesoftware.com>
5135
5136 * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
5137 determine the upper and lower bounds from a mask-value pair.
5138 (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
5139 absolute value and unsigned absolute value expressions.
5140 (bit_value_binop): Initialize *VAL's precision.
5141 [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
5142 upper and lower bounds of operands. Add LE_EXPR/GE_EXPR
5143 support when the operands are unknown but potentially equal.
5144 [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
5145
5146 2021-08-09 Bin Cheng <bin.cheng@linux.alibaba.com>
5147
5148 * config/aarch64/aarch64.md
5149 (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
5150
5151 2021-08-08 Sergei Trofimovich <siarheit@google.com>
5152
5153 * lra-constraints.c: Fix s/otput/output/ typo.
5154
5155 2021-08-06 Martin Sebor <msebor@redhat.com>
5156
5157 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
5158 (expand_builtin_strcat): Same.
5159 (expand_builtin_stpncpy): Same.
5160 (expand_builtin_strncat): Same.
5161 (check_read_access): Same.
5162 (check_memop_access): Same.
5163 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
5164 (expand_builtin_strnlen): Same.
5165 (expand_builtin_memcpy): Same.
5166 (expand_builtin_memmove): Same.
5167 (expand_builtin_mempcpy): Same.
5168 (expand_builtin_strcpy): Same.
5169 (expand_builtin_strcpy_args): Same.
5170 (expand_builtin_stpcpy_1): Same.
5171 (expand_builtin_strncpy): Same.
5172 (expand_builtin_memset): Same.
5173 (expand_builtin_bzero): Same.
5174 (expand_builtin_strcmp): Same.
5175 (expand_builtin_strncmp): Same.
5176 (expand_builtin): Remove handlers.
5177 (fold_builtin_strlen): Add a comment.
5178 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
5179 * calls.c (maybe_warn_nonstring_arg): Same.
5180 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
5181 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
5182 (gimple_fold_builtin_stpcpy): Same.
5183 * gimple-ssa-warn-access.cc (has_location): New function.
5184 (get_location): Same.
5185 (get_callee_fndecl): Same.
5186 (call_nargs): Same.
5187 (call_arg): Same.
5188 (warn_string_no_nul): Define.
5189 (unterminated_array): Same.
5190 (check_nul_terminated_array): Same.
5191 (maybe_warn_nonstring_arg): Same.
5192 (maybe_warn_for_bound): Same.
5193 (warn_for_access): Same.
5194 (check_access): Same.
5195 (check_memop_access): Same.
5196 (check_read_access): Same.
5197 (warn_dealloc_offset): Use helper functions.
5198 (maybe_emit_free_warning): Same.
5199 (class pass_waccess): Add members.
5200 (check_strcat): New function.
5201 (check_strncat): New function.
5202 (check_stxcpy): New function.
5203 (check_stxncpy): New function.
5204 (check_strncmp): New function.
5205 (pass_waccess::check_builtin): New function.
5206 (pass_waccess::check): Call it.
5207 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
5208 builtins.h.
5209 (maybe_warn_for_bound): Same.
5210 (check_access): Same.
5211 (check_memop_access): Same.
5212 (check_read_access): Same.
5213 * pointer-query.h (struct access_data): Define a ctor overload.
5214
5215 2021-08-06 Richard Biener <rguenther@suse.de>
5216
5217 PR tree-optimization/101801
5218 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
5219 (vect_can_vectorize_without_simd_p): ... to this.
5220 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
5221 (vect_can_vectorize_without_simd_p): ... to this and fold
5222 in vect_min_worthwhile_factor.
5223 (vect_min_worthwhile_factor): Remove.
5224 (vectorizable_reduction): Adjust and remove the cost part.
5225 * tree-vect-stmts.c (vectorizable_shift): Likewise.
5226 (vectorizable_operation): Likewise.
5227
5228 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
5229
5230 PR target/101797
5231 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
5232 Add general_gr_operand predicate to operand 3.
5233
5234 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
5235
5236 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
5237 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
5238
5239 2021-08-06 Tamar Christina <tamar.christina@arm.com>
5240
5241 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
5242 register_svprfop): Pass vec<> by pointer.
5243 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
5244 * langhooks.c (lhd_simulate_enum_decl): Likewise.
5245 * langhooks.h (struct lang_hooks_for_types): Likewise.
5246
5247 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
5248
5249 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
5250 __builtin_memcpy instead of constructing an additional
5251 __builtin_aarch64_simd_oi one vector at a time.
5252 (vst1q_bf16_x2): Likewise.
5253 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
5254 an additional __builtin_aarch64_simd_ci one vector at a time.
5255 (vst1q_bf16_x3): Likewise.
5256 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
5257 (vst1q_bf16_x4): Likewise.
5258 (vst2_bf16): Use __builtin_memcpy instead of constructing an
5259 additional __builtin_aarch64_simd_oi one vector at a time.
5260 (vst2q_bf16): Likewise.
5261 (vst3_bf16): Use __builtin_memcpy instead of constructing an
5262 additional __builtin_aarch64_simd_ci mode one vector at a
5263 time.
5264 (vst3q_bf16): Likewise.
5265 (vst4_bf16): Use __builtin_memcpy instead of constructing an
5266 additional __builtin_aarch64_simd_xi one vector at a time.
5267 (vst4q_bf16): Likewise.
5268
5269 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
5270
5271 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
5272 (__ST2Q_LANE_FUNC): Delete.
5273 (vst2_lane_f16): Use __builtin_memcpy to copy vector
5274 structure instead of constructing __builtin_aarch64_simd_oi
5275 one vector at a time.
5276 (vst2_lane_f32): Likewise.
5277 (vst2_lane_f64): Likewise.
5278 (vst2_lane_p8): Likewise.
5279 (vst2_lane_p16): Likewise.
5280 (vst2_lane_p64): Likewise.
5281 (vst2_lane_s8): Likewise.
5282 (vst2_lane_s16): Likewise.
5283 (vst2_lane_s32): Likewise.
5284 (vst2_lane_s64): Likewise.
5285 (vst2_lane_u8): Likewise.
5286 (vst2_lane_u16): Likewise.
5287 (vst2_lane_u32): Likewise.
5288 (vst2_lane_u64): Likewise.
5289 (vst2_lane_bf16): Likewise.
5290 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
5291 structure instead of using a union.
5292 (vst2q_lane_f32): Likewise.
5293 (vst2q_lane_f64): Likewise.
5294 (vst2q_lane_p8): Likewise.
5295 (vst2q_lane_p16): Likewise.
5296 (vst2q_lane_p64): Likewise.
5297 (vst2q_lane_s8): Likewise.
5298 (vst2q_lane_s16): Likewise.
5299 (vst2q_lane_s32): Likewise.
5300 (vst2q_lane_s64): Likewise.
5301 (vst2q_lane_u8): Likewise.
5302 (vst2q_lane_u16): Likewise.
5303 (vst2q_lane_u32): Likewise.
5304 (vst2q_lane_u64): Likewise.
5305 (vst2q_lane_bf16): Likewise.
5306
5307 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
5308
5309 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
5310 (__ST3Q_LANE_FUNC): Delete.
5311 (vst3_lane_f16): Use __builtin_memcpy to copy vector
5312 structure instead of constructing __builtin_aarch64_simd_ci
5313 one vector at a time.
5314 (vst3_lane_f32): Likewise.
5315 (vst3_lane_f64): Likewise.
5316 (vst3_lane_p8): Likewise.
5317 (vst3_lane_p16): Likewise.
5318 (vst3_lane_p64): Likewise.
5319 (vst3_lane_s8): Likewise.
5320 (vst3_lane_s16): Likewise.
5321 (vst3_lane_s32): Likewise.
5322 (vst3_lane_s64): Likewise.
5323 (vst3_lane_u8): Likewise.
5324 (vst3_lane_u16): Likewise.
5325 (vst3_lane_u32): Likewise.
5326 (vst3_lane_u64): Likewise.
5327 (vst3_lane_bf16): Likewise.
5328 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
5329 structure instead of using a union.
5330 (vst3q_lane_f32): Likewise.
5331 (vst3q_lane_f64): Likewise.
5332 (vst3q_lane_p8): Likewise.
5333 (vst3q_lane_p16): Likewise.
5334 (vst3q_lane_p64): Likewise.
5335 (vst3q_lane_s8): Likewise.
5336 (vst3q_lane_s16): Likewise.
5337 (vst3q_lane_s32): Likewise.
5338 (vst3q_lane_s64): Likewise.
5339 (vst3q_lane_u8): Likewise.
5340 (vst3q_lane_u16): Likewise.
5341 (vst3q_lane_u32): Likewise.
5342 (vst3q_lane_u64): Likewise.
5343 (vst3q_lane_bf16): Likewise.
5344
5345 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
5346
5347 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
5348 (__ST4Q_LANE_FUNC): Delete.
5349 (vst4_lane_f16): Use __builtin_memcpy to copy vector
5350 structure instead of constructing __builtin_aarch64_simd_xi
5351 one vector at a time.
5352 (vst4_lane_f32): Likewise.
5353 (vst4_lane_f64): Likewise.
5354 (vst4_lane_p8): Likewise.
5355 (vst4_lane_p16): Likewise.
5356 (vst4_lane_p64): Likewise.
5357 (vst4_lane_s8): Likewise.
5358 (vst4_lane_s16): Likewise.
5359 (vst4_lane_s32): Likewise.
5360 (vst4_lane_s64): Likewise.
5361 (vst4_lane_u8): Likewise.
5362 (vst4_lane_u16): Likewise.
5363 (vst4_lane_u32): Likewise.
5364 (vst4_lane_u64): Likewise.
5365 (vst4_lane_bf16): Likewise.
5366 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
5367 structure instead of using a union.
5368 (vst4q_lane_f32): Likewise.
5369 (vst4q_lane_f64): Likewise.
5370 (vst4q_lane_p8): Likewise.
5371 (vst4q_lane_p16): Likewise.
5372 (vst4q_lane_p64): Likewise.
5373 (vst4q_lane_s8): Likewise.
5374 (vst4q_lane_s16): Likewise.
5375 (vst4q_lane_s32): Likewise.
5376 (vst4q_lane_s64): Likewise.
5377 (vst4q_lane_u8): Likewise.
5378 (vst4q_lane_u16): Likewise.
5379 (vst4q_lane_u32): Likewise.
5380 (vst4q_lane_u64): Likewise.
5381 (vst4q_lane_bf16): Likewise.
5382
5383 2021-08-06 Martin Liska <mliska@suse.cz>
5384
5385 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
5386 a target option is restored, it can have
5387 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
5388 and error should not be emitted.
5389
5390 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
5391
5392 * gcov-io.h (gcov_write): Declare.
5393 * gcov-io.c (gcov_write): New.
5394 (gcov_write_counter): Remove.
5395 (gcov_write_tag_length): Likewise.
5396 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
5397 gcov_write_unsigned().
5398 * doc/invoke.texi (fprofile-info-section): Mention
5399 __gcov_info_to_gdca().
5400
5401 2021-08-06 Martin Sebor <msebor@redhat.com>
5402
5403 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
5404 arguments to by-reference.
5405 (iterate_fix_dominators): Same.
5406 * dominance.h (iterate_fix_dominators): Same.
5407 * ipa-prop.h: Call auto_vec::to_vec_legacy.
5408 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
5409 arguments to by-reference.
5410 (debug_data_dependence_relation): Same.
5411 (dump_data_dependence_relations): Same.
5412 * tree-data-ref.h (debug_data_dependence_relation): Same.
5413 (dump_data_dependence_relations): Same.
5414 * tree-predcom.c (dump_chains): Same.
5415 (initialize_root_vars_lm): Same.
5416 (determine_unroll_factor): Same.
5417 (replace_phis_by_defined_names): Same.
5418 (insert_init_seqs): Same.
5419 (pcom_worker::tree_predictive_commoning_loop): Call
5420 auto_vec::to_vec_legacy.
5421 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
5422 arguments to by-reference.
5423 * tree-ssa-threadbackward.c (populate_worklist): Same.
5424 (back_threader::resolve_def): Same.
5425 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
5426 (vect_enhance_data_refs_alignment): Same.
5427 (vect_check_lower_bound): Same.
5428 (vect_prune_runtime_alias_test_list): Same.
5429 (vect_permute_store_chain): Same.
5430 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
5431 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
5432 * tree-vectorizer.h (vect_permute_store_chain): Same.
5433 * vec.c (test_init): New function.
5434 (vec_c_tests): Call new function.
5435 * vec.h (vec): Declare ctors, dtor, and assignment.
5436 (auto_vec::vec_to_legacy): New function.
5437 (vec::copy): Adjust initialization.
5438
5439 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
5440
5441 PR target/99744
5442 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
5443 callee only uses GPRs.
5444 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
5445 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
5446 * config/i386/x86gprintrin.h: Add
5447 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
5448 to disable non-GPR ISAs.
5449
5450 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
5451
5452 PR middle-end/101787
5453 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
5454
5455 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
5456
5457 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
5458 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
5459 (vect_is_extending_load, vect_is_integer_truncation): New functions,
5460 moved from aarch64.c but given different names.
5461 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
5462 (aarch64_is_reduction, aarch64_reduc_type)
5463 (aarch64_embedded_comparison_type, aarch64_comparison_type)
5464 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
5465 in favor of the above. Update callers accordingly.
5466
5467 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
5468
5469 PR target/101723
5470 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
5471 writing .cpu directive in asm output.
5472 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
5473 (arm_last_printed_arch_string): Delete.
5474 (arm_last-printed_fpu_string): Delete.
5475 (arm_configure_build_target): If use of floating-point/SIMD is
5476 disabled, remove all fp/simd related features from the target ISA.
5477 (last_arm_targ_options): New variable.
5478 (arm_print_asm_arch_directives): Add new parameters. Change order
5479 of emitted directives and handle all cases here.
5480 (arm_file_start): Always call arm_print_asm_arch_directives, move
5481 all generation of .arch/.arch_extension here.
5482 (arm_file_end): Call arm_print_asm_arch.
5483 (arm_declare_function_name): Call arm_print_asm_arch_directives
5484 instead of printing .arch/.fpu directives directly.
5485
5486 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
5487
5488 * config/arm/arm.c (arm_configure_build_target): Don't call
5489 arm_option_reconfigure_globals.
5490 (arm_option_restore): Call arm_option_reconfigure_globals after
5491 reconfiguring the target.
5492 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
5493
5494 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
5495
5496 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
5497 arch_name is always set.
5498
5499 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
5500
5501 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
5502 of vec_select high-half from being added into Neon subtract
5503 cost.
5504
5505 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
5506
5507 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
5508 of vec_select high-half from being added into Neon add cost.
5509
5510 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
5511
5512 * cfgloop.h (loops_list::loops_list): Add one optional argument
5513 root and adjust accordingly, update loop tree walking and factor
5514 out to ...
5515 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
5516
5517 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
5518
5519 PR tree-optimization/101626
5520 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
5521 reverse scalar storage order on a pointer or vector component.
5522
5523 2021-08-05 liuhongt <hongtao.liu@intel.com>
5524
5525 * config/i386/sse.md (cond_<code><mode>): New expander.
5526
5527 2021-08-05 liuhongt <hongtao.liu@intel.com>
5528
5529 * config/i386/sse.md (cond_<code><mode>): New expander.
5530
5531 2021-08-05 liuhongt <hongtao.liu@intel.com>
5532
5533 * config/i386/sse.md (cond_<code><mode>): New expander.
5534
5535 2021-08-04 David Malcolm <dmalcolm@redhat.com>
5536
5537 PR analyzer/101570
5538 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
5539
5540 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
5541
5542 PR target/101742
5543 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
5544 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
5545
5546 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
5547
5548 PR target/101772
5549 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
5550 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
5551 data with SSE register from one memory location to another.
5552
5553 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
5554
5555 * config/s390/s390.c (expand_perm_with_vpdi): New function.
5556 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
5557 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
5558 parameterized expander.
5559 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
5560
5561 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
5562
5563 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
5564 (struct expand_vec_perm_d): Define struct.
5565 (expand_perm_with_merge): New function.
5566 (vectorize_vec_perm_const_1): New function.
5567 (s390_vectorize_vec_perm_const): New function.
5568 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
5569
5570 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
5571
5572 * config/s390/vector.md (V_HW_64): Remove mode iterator.
5573 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
5574 * config/s390/vx-builtins.md
5575 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
5576 V_HW_64.
5577
5578 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
5579
5580 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
5581 definition.
5582 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
5583 definitions.
5584 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
5585 instead of an unspec.
5586
5587 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
5588
5589 * config/s390/s390-modes.def: Add more vector modes to support
5590 concatenation of two vectors.
5591 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
5592 prototype.
5593 (s390_expand_merge): Likewise.
5594 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
5595 (s390_expand_merge): New function.
5596 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
5597 Remove constant definitions.
5598 * config/s390/vector.md (V_HW_2): Add mode iterators.
5599 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
5600 (vec_2x_nelts, vec_2x_wide): New mode attributes.
5601 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
5602 New pattern definitions.
5603 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
5604 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
5605 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
5606 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
5607 vec merge.
5608 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
5609 in vector.md.
5610 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
5611 emit vec merge pattern.
5612
5613 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
5614
5615 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
5616 Define.
5617 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
5618 vec_select high-half from being added into Neon multiply
5619 cost.
5620 * rtlanal.c (vec_series_highpart_p): Define.
5621 * rtlanal.h (vec_series_highpart_p): Declare.
5622
5623 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
5624
5625 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
5626 Define.
5627 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
5628 vec_select cost from being added into Neon multiply cost.
5629
5630 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
5631
5632 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
5633 which old_loop_vinfo is an epilogue loop that handles a constant
5634 number of iterations.
5635
5636 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
5637
5638 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
5639 when a reanalyzed loop fails to be cheaper than the current
5640 main loop.
5641
5642 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
5643
5644 * config/aarch64/aarch64.c: Fix a typo.
5645
5646 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
5647
5648 PR gcov-profile/101773
5649 * gcov-io.c (gcov_close): Check return code of a fclose.
5650
5651 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
5652
5653 PR ada/101575
5654 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
5655 .file statement when needed.
5656
5657 2021-08-04 Richard Biener <rguenther@suse.de>
5658
5659 * tree-vect-data-refs.c (vect_check_gather_scatter):
5660 Include widening conversions only when the result is
5661 still handed by native gather or the current offset
5662 size not already matches the data size.
5663 Also succeed analysis in case there's no native support,
5664 noted by a IFN_LAST ifn and a NULL decl.
5665 (vect_analyze_data_refs): Always consider gathers.
5666 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
5667 Test for no IFN gather rather than decl gather.
5668 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
5669 gather-scatter info and cost emulated gathers accordingly.
5670 (vect_truncate_gather_scatter_offset): Properly test for
5671 no IFN gather.
5672 (vect_use_strided_gather_scatters_p): Likewise.
5673 (get_load_store_type): Handle emulated gathers and its
5674 restrictions.
5675 (vectorizable_load): Likewise. Emulate them by extracting
5676 scalar offsets, doing scalar loads and a vector construct.
5677
5678 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
5679
5680 PR target/101742
5681 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
5682 argument to set m_max_size.
5683 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
5684 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
5685 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
5686
5687 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
5688 Marc Glisse <marc.glisse@inria.fr>
5689
5690 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
5691 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
5692 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
5693
5694 2021-08-04 Richard Biener <rguenther@suse.de>
5695
5696 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
5697 out code to decompose vector loads ...
5698 (optimize_vector_load): ... here. Generalize it to
5699 handle intermediate widening and TARGET_MEM_REF loads
5700 and apply it to loads with a supported vector mode as well.
5701
5702 2021-08-04 Richard Biener <rguenther@suse.de>
5703
5704 PR tree-optimization/101756
5705 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
5706 the result of the reduction epilogue is compatible to the original
5707 scalar result.
5708
5709 2021-08-04 liuhongt <hongtao.liu@intel.com>
5710
5711 PR target/101743
5712 * config/i386/i386.md (peephole2): Refine predicate from
5713 register_operand to general_reg_operand.
5714
5715 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
5716
5717 * gimple-range-path.h (path_range_query::dump): Mark override.
5718
5719 2021-08-04 Richard Biener <rguenther@suse.de>
5720
5721 PR tree-optimization/101769
5722 * tree-tailcall.c (eliminate_tail_call): Add the created loop
5723 for the first recursion and return it via the new output parameter.
5724 (optimize_tail_call): Pass through new output param.
5725 (tree_optimize_tail_calls_1): After creating all latches,
5726 add the created loop to the loop tree. Do not mark loops for fixup.
5727
5728 2021-08-04 Martin Liska <mliska@suse.cz>
5729
5730 * doc/invoke.texi: Document threader-mode param.
5731
5732 2021-08-04 liuhongt <hongtao.liu@intel.com>
5733
5734 * config/i386/sse.md (cond_fma<mode>): New expander.
5735 (cond_fms<mode>): Ditto.
5736 (cond_fnma<mode>): Ditto.
5737 (cond_fnms<mode>): Ditto.
5738
5739 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
5740
5741 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
5742
5743 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
5744
5745 * config/rs6000/constraints.md: Remove "e" from the list of available
5746 constraint characters.
5747
5748 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
5749
5750 PR gcov-profile/71672
5751 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
5752
5753 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
5754
5755 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
5756
5757 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
5758
5759 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
5760 try XMM31 to avoid vzeroupper.
5761
5762 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
5763
5764 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
5765 -mcpu=neoverse-512tvb.
5766 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
5767 * config/aarch64/aarch64-tune.md: Regenerate.
5768 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
5769 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
5770 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
5771 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
5772 (aarch64_adjust_body_cost): Likewise.
5773
5774 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
5775
5776 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
5777 record issue information for operations that occur in the
5778 innermost loop.
5779
5780 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
5781
5782 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
5783 parameter. Detect cases in which an Advanced SIMD MLA would almost
5784 certainly require a MOV.
5785 (aarch64_count_ops): Update accordingly.
5786
5787 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
5788
5789 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
5790 function, split out from...
5791 (aarch64_detect_vector_stmt_subtype): ...here.
5792 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
5793
5794 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
5795
5796 * config/aarch64/aarch64-protos.h (sve_vec_cost):
5797 Add gather_load_x32_cost and gather_load_x64_cost.
5798 * config/aarch64/aarch64.c (generic_sve_vector_cost)
5799 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
5800 accordingly, using the values given by the scalar_load * number
5801 of elements calculation that we used previously.
5802 (aarch64_detect_vector_stmt_subtype): Use the new fields.
5803
5804 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
5805
5806 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
5807 function, split out from...
5808 (aarch64_adjust_body_cost): ...here.
5809
5810 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
5811
5812 * config/aarch64/fractional-cost.h: New file.
5813 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
5814 and cost_fraction.h.
5815 (vec_cost_fraction): New typedef.
5816 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
5817 (aarch64_detect_vector_stmt_subtype): Likewise.
5818 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
5819 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
5820 for cycle counts.
5821 (aarch64_adjust_body_cost): Likewise.
5822 (aarch64_test_cost_fraction): New function.
5823 (aarch64_run_selftests): Call it.
5824
5825 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
5826
5827 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
5828 into a bitmask.
5829 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
5830 accordingly.
5831 (aarch64_estimated_poly_value): Likewise. Use the least significant
5832 set bit for the minimum and likely values. Use the most significant
5833 set bit for the maximum value.
5834
5835 2021-08-03 liuhongt <hongtao.liu@intel.com>
5836
5837 * config/i386/sse.md (cond_<insn><mode>): New expander.
5838 (cond_mul<mode>): Ditto.
5839
5840 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
5841
5842 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
5843
5844 2021-08-03 liuhongt <hongtao.liu@intel.com>
5845
5846 * config/i386/sse.md (cond_<insn><mode>):New expander.
5847 (cond_mul<mode>): Ditto.
5848 (cond_div<mode>): Ditto.
5849
5850 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
5851
5852 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
5853 check stack_realign_needed for stack realignment.
5854 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
5855 than the largest integer supported by vector register.
5856 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
5857 (MOVE_MAX): Set to bytes of the largest integer supported by
5858 vector register.
5859 (STORE_MAX_PIECES): New.
5860
5861 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
5862
5863 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
5864 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
5865 data from one memory location to another.
5866
5867 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
5868
5869 PR middle-end/90773
5870 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
5871
5872 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
5873
5874 PR tree-optimization/101724
5875 * params.opt: Remove --param=threader-iterative.
5876 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
5877 iterative mode.
5878
5879 2021-08-02 Tom de Vries <tdevries@suse.de>
5880
5881 PR middle-end/101665
5882 * doc/extend.texi (nonnull attribute): Improve documentation.
5883
5884 2021-08-02 Andrew Pinski <apinski@marvell.com>
5885
5886 PR rtl-optimization/101683
5887 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
5888
5889 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
5890
5891 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
5892 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
5893 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
5894 (tree_ssa_phiop_worker): Update call to function above.
5895
5896 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
5897
5898 PR target/78103
5899 * config/i386/i386.md (bsr_rex64_1_zext): New.
5900 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
5901 with gen_bsr_rex64_1_zext.
5902
5903 2021-07-31 Jakub Jelinek <jakub@redhat.com>
5904
5905 PR target/78103
5906 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
5907 define_insn patterns.
5908 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
5909 Add combine splitters for constant - clz.
5910 (clz<mode>2): Use a temporary pseudo for bsr result.
5911
5912 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
5913
5914 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
5915 _mm_floor_sd, _mm_floor_ss): New.
5916
5917 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
5918
5919 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
5920 _mm_ceil_sd, _mm_ceil_ss): New.
5921
5922 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
5923
5924 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
5925 _mm_blend_ps, _mm_blendv_ps): New.
5926
5927 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
5928 Uroš Bizjak <ubizjak@gmail.com>
5929
5930 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
5931 to generate a conditional move using the carry flag after sub $1.
5932 (peephole2): Eliminate a register-to-register move by inverting
5933 the condition of a conditional move.
5934
5935 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
5936
5937 * config/mmix/mmix.md ("call", "call_value", "*call_real")
5938 ("*call_value_real"): Don't generate rtx mentioning the generic
5939 operands 1 and 2 to "call", and similarly for "call_value".
5940 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
5941 (mmix_print_operand): Use '!' instead of 'p'.
5942
5943 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
5944
5945 * doc/md.texi (call): Correct information about operand 2.
5946 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
5947
5948 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
5949
5950 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
5951
5952 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
5953
5954 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
5955
5956 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
5957
5958 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
5959 const_basic_block..
5960 (*::get_bb_range): Ditto.
5961 (*::bb_range_p): Ditto.
5962 * gimple-range-cache.h: Change prototypes.
5963
5964 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
5965
5966 PR middle-end/90773
5967 * builtins.c (builtin_memcpy_read_str): Change the mode argument
5968 from scalar_int_mode to fixed_size_mode.
5969 (builtin_strncpy_read_str): Likewise.
5970 (gen_memset_value_from_prev): New function.
5971 (builtin_memset_read_str): Change the mode argument from
5972 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
5973 and support CONST_VECTOR.
5974 (builtin_memset_gen_str): Likewise.
5975 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
5976 constfun.
5977 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
5978 with fixed_size_mode.
5979 (builtin_memset_read_str): Likewise.
5980 * expr.c (widest_int_mode_for_size): Renamed to ...
5981 (widest_fixed_size_mode_for_size): Add a bool argument to
5982 indicate if QI vector mode can be used.
5983 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
5984 instead of widest_int_mode_for_size.
5985 (pieces_addr::adjust): Change the mode argument from
5986 scalar_int_mode to fixed_size_mode.
5987 (op_by_pieces_d): Make m_len read-only. Add a bool member,
5988 m_qi_vector_mode, to indicate that QI vector mode can be used.
5989 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
5990 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
5991 instead of widest_int_mode_for_size.
5992 (op_by_pieces_d::get_usable_mode): Change the mode argument from
5993 scalar_int_mode to fixed_size_mode. Call
5994 widest_fixed_size_mode_for_size instead of
5995 widest_int_mode_for_size.
5996 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
5997 function to return the smallest integer or QI vector mode.
5998 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
5999 instead of widest_int_mode_for_size. Call
6000 smallest_fixed_size_mode_for_size instead of
6001 smallest_int_mode_for_size.
6002 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
6003 indicate that QI vector mode can be used and pass it to
6004 op_by_pieces_d::op_by_pieces_d.
6005 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
6006 instead of widest_int_mode_for_size. Pass memsetp to
6007 widest_fixed_size_mode_for_size to support QI vector mode.
6008 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
6009 (store_by_pieces): Pass memsetp to
6010 store_by_pieces_d::store_by_pieces_d.
6011 (clear_by_pieces_1): Removed.
6012 (clear_by_pieces): Replace clear_by_pieces_1 with
6013 builtin_memset_read_str and pass true to store_by_pieces_d to
6014 support vector mode broadcast.
6015 (string_cst_read_str): Change the mode argument from
6016 scalar_int_mode to fixed_size_mode.
6017 * expr.h (by_pieces_constfn): Change scalar_int_mode to
6018 fixed_size_mode.
6019 (by_pieces_prev): Likewise.
6020 * rtl.h (lowpart_subreg_regno): New.
6021 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
6022 simplify_subreg_regno.
6023 * target.def (gen_memset_scratch_rtx): New hook.
6024 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
6025 * doc/tm.texi: Regenerated.
6026
6027 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
6028
6029 PR target/94780
6030 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
6031 TARGET_EXPR instead of MODIFY_EXPR.
6032
6033 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
6034
6035 PR target/101132
6036 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
6037 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
6038 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
6039 expander.
6040 (vec_cmpu<IMSA:mode><mode_i>): New expander.
6041
6042 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
6043
6044 PR target/101685
6045 * config/i386/i386-options.c (ix86_option_override_internal):
6046 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
6047
6048 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
6049
6050 PR target/66791
6051 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
6052 explicitly dereferencing __a.
6053 (vld1_s64): Likewise.
6054 (vld1_u64): Likewise.
6055 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
6056 and change to VAR13.
6057
6058 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
6059
6060 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
6061 use of m_range_analyzer.
6062 (loop_versioning::lv_dom_walker::before_dom_children): Same.
6063 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
6064 (loop_versioning::prune_loop_conditions): Replace vr_values use
6065 with range_query interface.
6066 (pass_loop_versioning::execute): Use ranger.
6067
6068 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
6069
6070 PR ipa/101396
6071 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
6072 enum values, and emit a warning if they mismatch.
6073
6074 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
6075
6076 * cfgloop.h (as_const): New function.
6077 (class loop_iterator): Rename to ...
6078 (class loops_list): ... this.
6079 (loop_iterator::next): Rename to ...
6080 (loops_list::Iter::fill_curr_loop): ... this and adjust.
6081 (loop_iterator::loop_iterator): Rename to ...
6082 (loops_list::loops_list): ... this and adjust.
6083 (loops_list::Iter): New class.
6084 (loops_list::iterator): New type.
6085 (loops_list::const_iterator): New type.
6086 (loops_list::begin): New function.
6087 (loops_list::end): Likewise.
6088 (loops_list::begin const): Likewise.
6089 (loops_list::end const): Likewise.
6090 (FOR_EACH_LOOP): Remove.
6091 (FOR_EACH_LOOP_FN): Remove.
6092 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
6093 for loop with loops_list instance.
6094 (sort_sibling_loops): Likewise.
6095 (disambiguate_loops_with_multiple_latches): Likewise.
6096 (verify_loop_structure): Likewise.
6097 * cfgloopmanip.c (create_preheaders): Likewise.
6098 (force_single_succ_latches): Likewise.
6099 * config/aarch64/falkor-tag-collision-avoidance.c
6100 (execute_tag_collision_avoidance): Likewise.
6101 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
6102 * config/s390/s390.c (s390_adjust_loops): Likewise.
6103 * doc/loop.texi: Likewise.
6104 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
6105 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
6106 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
6107 (loop_versioning::make_versioning_decisions): Likewise.
6108 * gimple-ssa-split-paths.c (split_paths): Likewise.
6109 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
6110 * graphite.c (canonicalize_loop_form): Likewise.
6111 (graphite_transform_loops): Likewise.
6112 * ipa-fnsummary.c (analyze_function_body): Likewise.
6113 * ipa-pure-const.c (analyze_function): Likewise.
6114 * loop-doloop.c (doloop_optimize_loops): Likewise.
6115 * loop-init.c (loop_optimizer_finalize): Likewise.
6116 (fix_loop_structure): Likewise.
6117 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6118 (move_loop_invariants): Likewise.
6119 * loop-unroll.c (decide_unrolling): Likewise.
6120 (unroll_loops): Likewise.
6121 * modulo-sched.c (sms_schedule): Likewise.
6122 * predict.c (predict_loops): Likewise.
6123 (pass_profile::execute): Likewise.
6124 * profile.c (branch_prob): Likewise.
6125 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
6126 (sel_find_rgns): Likewise.
6127 * tree-cfg.c (replace_loop_annotate): Likewise.
6128 (replace_uses_by): Likewise.
6129 (move_sese_region_to_fn): Likewise.
6130 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
6131 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
6132 * tree-parloops.c (parallelize_loops): Likewise.
6133 * tree-predcom.c (tree_predictive_commoning): Likewise.
6134 * tree-scalar-evolution.c (scev_initialize): Likewise.
6135 (scev_reset): Likewise.
6136 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
6137 * tree-ssa-live.c (remove_unused_locals): Likewise.
6138 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
6139 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6140 (tree_ssa_lim_initialize): Likewise.
6141 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
6142 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
6143 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
6144 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
6145 (free_numbers_of_iterations_estimates): Likewise.
6146 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
6147 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
6148 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
6149 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
6150 (pass_scev_cprop::execute): Likewise.
6151 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
6152 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
6153 * tree-ssa-threadupdate.c
6154 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
6155 * tree-vectorizer.c (vectorize_loops): Likewise.
6156 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
6157
6158 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
6159
6160 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
6161 generating a VOIDmode register for e.g the
6162 function_arg_info::end_marker.
6163
6164 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
6165
6166 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
6167 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
6168 (cc mode_attr): Similarly.
6169 (ccz subst_attr): Similarly.
6170 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
6171 * config/h8300/testcompare.md: Remove various cc0 based patterns
6172 that had been commented out. Add pattern to set CCZ from a bit
6173 test.
6174
6175 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
6176 Julian Brown <julian@codesourcery.com>
6177 Kwok Cheung Yeung <kcy@codesourcery.com>
6178
6179 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
6180 'update_stmt' after modification.
6181 (pass_oacc_loop_designation): New function, extracted out of...
6182 (pass_oacc_device_lower): ... this.
6183 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
6184 (make_pass_oacc_loop_designation): New
6185 * passes.def: Add it.
6186 * tree-parloops.c (create_parallel_loop): Adjust.
6187 * tree-pass.h (make_pass_oacc_loop_designation): New.
6188
6189 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
6190
6191 * flag-types.h (enum threader_mode): New.
6192 * params.opt: Add entry for --param=threader-mode.
6193 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
6194 (class back_threader): New.
6195 (back_threader::back_threader): New.
6196 (back_threader::~back_threader): New.
6197 (back_threader::maybe_register_path): New.
6198 (back_threader::find_taken_edge): New.
6199 (back_threader::find_taken_edge_switch): New.
6200 (back_threader::find_taken_edge_cond): New.
6201 (back_threader::resolve_def): New.
6202 (back_threader::resolve_phi): New.
6203 (back_threader::find_paths_to_names): New.
6204 (back_threader::find_paths): New.
6205 (dump_path): New.
6206 (debug): New.
6207 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
6208 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
6209 (pass_thread_jumps::execute): Abstract out code...
6210 (try_thread_blocks): ...here.
6211 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
6212 Abstract out threading candidate code to...
6213 (single_succ_to_potentially_threadable_block): ...here.
6214 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
6215 New.
6216 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
6217 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
6218 Return bool from register_jump_thread.
6219
6220 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
6221
6222 * target.def: in0 and in1 do not need to be registers.
6223 * doc/tm.texi: Regenerate.
6224
6225 2021-07-29 liuhongt <hongtao.liu@intel.com>
6226
6227 PR target/39821
6228 * config/i386/i386.c (ix86_widen_mult_cost): New function.
6229 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
6230 WIDEN_MULT_EXPR.
6231
6232 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
6233
6234 PR target/61837
6235 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
6236 (rs6000_preferred_doloop_mode): New hook.
6237 * doc/tm.texi: Regenerate.
6238 * doc/tm.texi.in: Add hook preferred_doloop_mode.
6239 * target.def (preferred_doloop_mode): New hook.
6240 * targhooks.c (default_preferred_doloop_mode): New hook.
6241 * targhooks.h (default_preferred_doloop_mode): New hook.
6242 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
6243 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
6244 and compute_doloop_base_on_mode.
6245
6246 2021-07-28 Martin Sebor <msebor@redhat.com>
6247
6248 PR middle-end/101494
6249 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
6250 and size computation.
6251
6252 2021-07-28 Martin Sebor <msebor@redhat.com>
6253
6254 PR middle-end/101601
6255 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
6256 a pointless test.
6257 Handle pointers to functions.
6258
6259 2021-07-28 Martin Sebor <msebor@redhat.com>
6260
6261 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
6262 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
6263 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
6264 (access_ref::access_ref): Same.
6265 (access_ref::phi): Same.
6266 (access_ref::get_ref): Same.
6267 (access_ref::size_remaining): Same.
6268 (access_ref::offset_in_range): Same.
6269 (access_ref::add_offset): Same.
6270 (access_ref::inform_access): Same.
6271 (ssa_name_limit_t::visit_phi): Same.
6272 (ssa_name_limit_t::leave_phi): Same.
6273 (ssa_name_limit_t::next): Same.
6274 (ssa_name_limit_t::next_phi): Same.
6275 (ssa_name_limit_t::~ssa_name_limit_t): Same.
6276 (pointer_query::pointer_query): Same.
6277 (pointer_query::get_ref): Same.
6278 (pointer_query::put_ref): Same.
6279 (pointer_query::flush_cache): Same.
6280 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
6281 (check_nul_terminated_array): Same.
6282 (unterminated_array): Same.
6283 (maybe_warn_for_bound): Same.
6284 (check_read_access): Same.
6285 (warn_for_access): Same.
6286 (get_size_range): Same.
6287 (check_access): Same.
6288 (gimple_call_alloc_size): Move to tree.c.
6289 (gimple_parm_array_size): Move to pointer-query.cc.
6290 (get_offset_range): Same.
6291 (gimple_call_return_array): Same.
6292 (handle_min_max_size): Same.
6293 (handle_array_ref): Same.
6294 (handle_mem_ref): Same.
6295 (compute_objsize): Same.
6296 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
6297 (call_dealloc_argno): Same.
6298 (fndecl_dealloc_argno): Same.
6299 (new_delete_mismatch_p): Same.
6300 (matching_alloc_calls_p): Same.
6301 (warn_dealloc_offset): Same.
6302 (maybe_emit_free_warning): Same.
6303 * builtins.h (check_nul_terminated_array): Move to
6304 gimple-ssa-warn-access.h.
6305 (check_nul_terminated_array): Same.
6306 (warn_string_no_nul): Same.
6307 (unterminated_array): Same.
6308 (class ssa_name_limit_t): Same.
6309 (class pointer_query): Same.
6310 (struct access_ref): Same.
6311 (class range_query): Same.
6312 (struct access_data): Same.
6313 (gimple_call_alloc_size): Same.
6314 (gimple_parm_array_size): Same.
6315 (compute_objsize): Same.
6316 (class access_data): Same.
6317 (maybe_emit_free_warning): Same.
6318 * calls.c (initialize_argument_information): Remove call to
6319 maybe_emit_free_warning.
6320 * gimple-array-bounds.cc: Include new header..
6321 * gimple-fold.c: Same.
6322 * gimple-ssa-sprintf.c: Same.
6323 * gimple-ssa-warn-restrict.c: Same.
6324 * passes.def: Add pass_warn_access.
6325 * tree-pass.h (make_pass_warn_access): Declare.
6326 * tree-ssa-strlen.c: Include new headers.
6327 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
6328 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
6329 * gimple-ssa-warn-access.cc: New file.
6330 * gimple-ssa-warn-access.h: New file.
6331 * pointer-query.cc: New file.
6332 * pointer-query.h: New file.
6333
6334 2021-07-28 Jakub Jelinek <jakub@redhat.com>
6335
6336 PR middle-end/101624
6337 * ubsan.c (maybe_instrument_pointer_overflow,
6338 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
6339 PARM_DECLs or RESULT_DECLs.
6340 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
6341
6342 2021-07-28 Jakub Jelinek <jakub@redhat.com>
6343
6344 PR middle-end/101642
6345 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
6346 to type of bswap16 for comparison.
6347 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
6348
6349 2021-07-28 Richard Biener <rguenther@suse.de>
6350
6351 PR tree-optimization/101615
6352 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
6353 at CTOR SLP graph entries.
6354
6355 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6356
6357 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
6358 Add "r,w" alternative.
6359
6360 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
6361
6362 PR target/101456
6363 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
6364 AVX_U128_DIRTY when all bits are zero.
6365
6366 2021-07-28 Richard Biener <rguenther@suse.de>
6367
6368 PR tree-optimization/101615
6369 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
6370 external nodes cannot be permuted so make them perm_out 0.
6371
6372 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
6373
6374 PR target/100208
6375 * config.in: Regenerate.
6376 * config/gcn/gcn-hsa.h (A_FIJI): New define.
6377 (A_900): New define.
6378 (A_906): New define.
6379 (A_908): New define.
6380 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
6381 * config/gcn/gcn.c (output_file_start): Adjust attributes according
6382 to the assembler capabilities.
6383 * config/gcn/mkoffload.c (main): Likewise.
6384 * configure: Regenerate.
6385 * configure.ac: Add tests for LLVM assembler attribute features.
6386
6387 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
6388
6389 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
6390 cond_false and cond_true on branches.
6391
6392 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
6393
6394 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
6395 gcc_stablesort.
6396
6397 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
6398
6399 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
6400
6401 2021-07-28 Jakub Jelinek <jakub@redhat.com>
6402
6403 PR target/101611
6404 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
6405 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
6406 and has special !TARGET_AVX512VL expansion.
6407 (vashrv2di3<mask_name>): Rename to ...
6408 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
6409 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
6410
6411 2021-07-28 Martin Uecker <muecker@gwdg.de>
6412
6413 * calls.c (maybe_warn_rdwr_sizes): Correct argument
6414 numbers in warning that were switched.
6415
6416 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
6417
6418 PR tree-optimization/101596
6419 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
6420 by using new_type's precision instead.
6421
6422 2021-07-28 liuhongt <hongtao.liu@intel.com>
6423
6424 PR target/99881
6425 * config/i386/i386.h (processor_costs): Add new member
6426 integer_to_sse.
6427 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
6428 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
6429 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
6430 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
6431 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
6432 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
6433 generic_cost, core_cost): Initialize integer_to_sse same value
6434 as sse_op.
6435 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
6436 * config/i386/i386.c (ix86_builtin_vectorization_cost):
6437 Use integer_to_sse instead of sse_op to calculate the cost of
6438 vec_construct.
6439
6440 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
6441
6442 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
6443 function.
6444 (write_init_file): Call write_ovld_static_init.
6445
6446 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
6447
6448 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
6449 function.
6450 (write_init_file): Call write_bif_static_init.
6451
6452 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
6453
6454 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
6455 (TYPE_MAP_SIZE): New macro.
6456 (type_map): New initialized variable.
6457 (typemap_cmp): New function.
6458 (write_type_node): Likewise.
6459 (write_fntype_init): Implement.
6460
6461 2021-07-27 Martin Sebor <msebor@redhat.com>
6462
6463 PR tree-optimization/101584
6464 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
6465 (check_defs): Call it.
6466
6467 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
6468
6469 * tree-ssa-dom.c (dom_jump_threader_simplifier):
6470 Put avail_exprs_stack in the class, instead of passing it to
6471 jump_threader_simplifier.
6472 (dom_jump_threader_simplifier::simplify): Add state argument.
6473 (dom_opt_dom_walker): Add state.
6474 (pass_dominator::execute): Pass state to threader.
6475 (dom_opt_dom_walker::before_dom_children): Use state.
6476 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
6477 arguments by state.
6478 (jump_threader::record_temporary_equivalences_from_phis):
6479 Register equivalences through the state variable.
6480 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
6481 Record ranges in a statement through the state variable.
6482 (jump_threader::simplify_control_stmt_condition): Pass state to
6483 simplify.
6484 (jump_threader::simplify_control_stmt_condition_1): Same.
6485 (jump_threader::thread_around_empty_blocks): Remove obsolete
6486 comment.
6487 (jump_threader::thread_through_normal_block): Record equivalences
6488 on edge through the state variable.
6489 (jump_threader::thread_across_edge): Abstract state pushing.
6490 (jt_state::jt_state): New.
6491 (jt_state::push): New.
6492 (jt_state::pop): New.
6493 (jt_state::register_equiv): New.
6494 (jt_state::record_ranges_from_stmt): New.
6495 (jt_state::register_equivs_on_edge): New.
6496 (jump_threader_simplifier::jump_threader_simplifier): Move from
6497 header.
6498 (jump_threader_simplifier::simplify): Add state argument.
6499 * tree-ssa-threadedge.h (class jt_state): New.
6500 (class jump_threader): Add state to constructor.
6501 (class jump_threader_simplifier): Add state to simplify. Remove
6502 avail_exprs_stack from class.
6503 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
6504 argument.
6505 (vrp_jump_threader::vrp_jump_threader): Add state.
6506 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
6507
6508 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
6509
6510 * Makefile.in (OBJS): Add gimple-range-path.o.
6511 * gimple-range-path.cc: New file.
6512 * gimple-range-path.h: New file.
6513
6514 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
6515
6516 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
6517 inside vec_duplicate for all patterns.
6518 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
6519 Push sign/zero-extension inside vec_duplicate.
6520
6521 2021-07-27 Richard Biener <rguenther@suse.de>
6522
6523 PR tree-optimization/101573
6524 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
6525 looking at uninitialized PHI arg defs in some constrained cases.
6526 (warn_uninitialized_vars): Call it.
6527 (execute_early_warn_uninitialized): Calculate dominators.
6528
6529 2021-07-27 Richard Biener <rguenther@suse.de>
6530
6531 PR tree-optimization/39821
6532 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
6533 vector_stmt for widening arithmetic.
6534 (vectorizable_conversion): Adjust.
6535
6536 2021-07-27 Martin Jambor <mjambor@suse.cz>
6537
6538 * cgraph.h (ipa_replace_map): New field force_load_ref.
6539 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
6540 aded new flag load_dereferenced, adjusted comments.
6541 (ipa_get_param_dereferenced): New function.
6542 (ipa_set_param_dereferenced): Likewise.
6543 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
6544 * ipa-cp.c: Include gimple.h.
6545 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
6546 (get_replacement_map): New parameter force_load_ref, set the
6547 appropriate flag in ipa_replace_map if set.
6548 (struct symbol_and_index_together): New type.
6549 (adjust_refs_in_act_callers): New function.
6550 (adjust_references_in_caller): Likewise.
6551 (create_specialized_node): When appropriate, call
6552 adjust_references_in_caller and force only load references.
6553 * ipa-prop.c (load_from_dereferenced_name): New function.
6554 (ipa_analyze_controlled_uses): Also detect loads from a
6555 dereference, harden testing of call statements.
6556 (ipa_write_node_info): Stream the dereferenced flag.
6557 (ipa_read_node_info): Likewise.
6558 (ipa_set_jf_constant): Also create refdesc when jump function
6559 references a variable.
6560 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
6561 also on references of variables and return a symtab_node. Adjust
6562 all callers.
6563 (propagate_controlled_uses): Also remove references to VAR_DECLs.
6564
6565 2021-07-27 Jakub Jelinek <jakub@redhat.com>
6566
6567 PR middle-end/101586
6568 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
6569 positions above or equal to sz except for diagnostics of flexible
6570 array members.
6571
6572 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
6573
6574 PR tree-optimization/78888
6575 * gimple-range-fold.cc (get_letter_range): New.
6576 (fold_using_range::range_of_builtin_call): Call get_letter_range.
6577
6578 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
6579
6580 PR tree-optimization/78888
6581 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
6582 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
6583
6584 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
6585 Marc Glisse <marc.glisse@inria.fr>
6586
6587 * match.pd (rotate): Simplify equality/inequality of rotations.
6588 (bswap): Simplify equality/inequality tests of byte swapping.
6589
6590 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
6591
6592 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
6593 New.
6594
6595 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
6596
6597 * range-op.cc (operator_lshift::fold_range): Pass rel to
6598 base class fold_range.
6599 (operator_rshift::fold_range): Same.
6600
6601 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
6602
6603 PR driver/101447
6604 * toplev.h (min_align_loops_log): Remove declaration.
6605 (min_align_jumps_log, min_align_labels_log): Likewise.
6606 (min_align_functions_log): Likewise.
6607
6608 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
6609
6610 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
6611 with range_query.
6612 (execute_vrp): Abstract out simplification of conditionals...
6613 (simplify_casted_conds): ...here.
6614
6615 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
6616
6617 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
6618 Add gimple argument.
6619 (array_bounds_checker::check_array_ref): Same.
6620 (array_bounds_checker::check_addr_expr): Same.
6621 (array_bounds_checker::check_array_bounds): Pass statement to
6622 check_array_bounds and check_addr_expr.
6623 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
6624 (check_addr_expr): Same.
6625 (get_value_range): Same.
6626
6627 2021-07-26 Tamar Christina <tamar.christina@arm.com>
6628
6629 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
6630 (sdot_prod, udot_prod): ... This.
6631 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
6632 into...
6633 (<sur>dot_prod<vsi2qi>): ... this.
6634 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
6635 Change operands order.
6636 (<sur>sadv16qi): Use new operands order.
6637 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
6638 vdotq_s32): Use new RTL ordering.
6639
6640 2021-07-26 Tamar Christina <tamar.christina@arm.com>
6641
6642 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
6643 aarch64_types_ternop_suss_qualifiers): New.
6644 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
6645 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
6646 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
6647
6648 2021-07-23 Jakub Jelinek <jakub@redhat.com>
6649
6650 PR rtl-optimization/101562
6651 * expmed.c (store_integral_bit_field): Only use movstrict_optab
6652 if the operand isn't paradoxical.
6653
6654 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
6655
6656 * gimple-array-bounds.h (class array_bounds_checker): Change
6657 ranges type to range_query.
6658
6659 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
6660
6661 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
6662 __builtin_memcpy instead of constructing
6663 __builtin_aarch64_simd_oi one vector at a time.
6664 (vst1_u64_x2): Likewise.
6665 (vst1_f64_x2): Likewise.
6666 (vst1_s8_x2): Likewise.
6667 (vst1_p8_x2): Likewise.
6668 (vst1_s16_x2): Likewise.
6669 (vst1_p16_x2): Likewise.
6670 (vst1_s32_x2): Likewise.
6671 (vst1_u8_x2): Likewise.
6672 (vst1_u16_x2): Likewise.
6673 (vst1_u32_x2): Likewise.
6674 (vst1_f16_x2): Likewise.
6675 (vst1_f32_x2): Likewise.
6676 (vst1_p64_x2): Likewise.
6677 (vst1q_s8_x2): Likewise.
6678 (vst1q_p8_x2): Likewise.
6679 (vst1q_s16_x2): Likewise.
6680 (vst1q_p16_x2): Likewise.
6681 (vst1q_s32_x2): Likewise.
6682 (vst1q_s64_x2): Likewise.
6683 (vst1q_u8_x2): Likewise.
6684 (vst1q_u16_x2): Likewise.
6685 (vst1q_u32_x2): Likewise.
6686 (vst1q_u64_x2): Likewise.
6687 (vst1q_f16_x2): Likewise.
6688 (vst1q_f32_x2): Likewise.
6689 (vst1q_f64_x2): Likewise.
6690 (vst1q_p64_x2): Likewise.
6691
6692 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
6693
6694 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
6695 __builtin_memcpy instead of constructing
6696 __builtin_aarch64_simd_ci one vector at a time.
6697 (vst1_u64_x3): Likewise.
6698 (vst1_f64_x3): Likewise.
6699 (vst1_s8_x3): Likewise.
6700 (vst1_p8_x3): Likewise.
6701 (vst1_s16_x3): Likewise.
6702 (vst1_p16_x3): Likewise.
6703 (vst1_s32_x3): Likewise.
6704 (vst1_u8_x3): Likewise.
6705 (vst1_u16_x3): Likewise.
6706 (vst1_u32_x3): Likewise.
6707 (vst1_f16_x3): Likewise.
6708 (vst1_f32_x3): Likewise.
6709 (vst1_p64_x3): Likewise.
6710 (vst1q_s8_x3): Likewise.
6711 (vst1q_p8_x3): Likewise.
6712 (vst1q_s16_x3): Likewise.
6713 (vst1q_p16_x3): Likewise.
6714 (vst1q_s32_x3): Likewise.
6715 (vst1q_s64_x3): Likewise.
6716 (vst1q_u8_x3): Likewise.
6717 (vst1q_u16_x3): Likewise.
6718 (vst1q_u32_x3): Likewise.
6719 (vst1q_u64_x3): Likewise.
6720 (vst1q_f16_x3): Likewise.
6721 (vst1q_f32_x3): Likewise.
6722 (vst1q_f64_x3): Likewise.
6723 (vst1q_p64_x3): Likewise.
6724
6725 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
6726
6727 PR target/101504
6728 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
6729 hard register when LRA is in progress.
6730
6731 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
6732
6733 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
6734 __builtin_memcpy instead of using a union.
6735 (vst1q_s8_x4): Likewise.
6736 (vst1_s16_x4): Likewise.
6737 (vst1q_s16_x4): Likewise.
6738 (vst1_s32_x4): Likewise.
6739 (vst1q_s32_x4): Likewise.
6740 (vst1_u8_x4): Likewise.
6741 (vst1q_u8_x4): Likewise.
6742 (vst1_u16_x4): Likewise.
6743 (vst1q_u16_x4): Likewise.
6744 (vst1_u32_x4): Likewise.
6745 (vst1q_u32_x4): Likewise.
6746 (vst1_f16_x4): Likewise.
6747 (vst1q_f16_x4): Likewise.
6748 (vst1_f32_x4): Likewise.
6749 (vst1q_f32_x4): Likewise.
6750 (vst1_p8_x4): Likewise.
6751 (vst1q_p8_x4): Likewise.
6752 (vst1_p16_x4): Likewise.
6753 (vst1q_p16_x4): Likewise.
6754 (vst1_s64_x4): Likewise.
6755 (vst1_u64_x4): Likewise.
6756 (vst1_p64_x4): Likewise.
6757 (vst1q_s64_x4): Likewise.
6758 (vst1q_u64_x4): Likewise.
6759 (vst1q_p64_x4): Likewise.
6760 (vst1_f64_x4): Likewise.
6761 (vst1q_f64_x4): Likewise.
6762
6763 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
6764
6765 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
6766 instead of constructing __builtin_aarch64_simd_oi one vector
6767 at a time.
6768 (vst2_u64): Likewise.
6769 (vst2_f64): Likewise.
6770 (vst2_s8): Likewise.
6771 (vst2_p8): Likewise.
6772 (vst2_s16): Likewise.
6773 (vst2_p16): Likewise.
6774 (vst2_s32): Likewise.
6775 (vst2_u8): Likewise.
6776 (vst2_u16): Likewise.
6777 (vst2_u32): Likewise.
6778 (vst2_f16): Likewise.
6779 (vst2_f32): Likewise.
6780 (vst2_p64): Likewise.
6781 (vst2q_s8): Likewise.
6782 (vst2q_p8): Likewise.
6783 (vst2q_s16): Likewise.
6784 (vst2q_p16): Likewise.
6785 (vst2q_s32): Likewise.
6786 (vst2q_s64): Likewise.
6787 (vst2q_u8): Likewise.
6788 (vst2q_u16): Likewise.
6789 (vst2q_u32): Likewise.
6790 (vst2q_u64): Likewise.
6791 (vst2q_f16): Likewise.
6792 (vst2q_f32): Likewise.
6793 (vst2q_f64): Likewise.
6794 (vst2q_p64): Likewise.
6795
6796 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
6797
6798 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
6799 instead of constructing __builtin_aarch64_simd_ci one vector
6800 at a time.
6801 (vst3_u64): Likewise.
6802 (vst3_f64): Likewise.
6803 (vst3_s8): Likewise.
6804 (vst3_p8): Likewise.
6805 (vst3_s16): Likewise.
6806 (vst3_p16): Likewise.
6807 (vst3_s32): Likewise.
6808 (vst3_u8): Likewise.
6809 (vst3_u16): Likewise.
6810 (vst3_u32): Likewise.
6811 (vst3_f16): Likewise.
6812 (vst3_f32): Likewise.
6813 (vst3_p64): Likewise.
6814 (vst3q_s8): Likewise.
6815 (vst3q_p8): Likewise.
6816 (vst3q_s16): Likewise.
6817 (vst3q_p16): Likewise.
6818 (vst3q_s32): Likewise.
6819 (vst3q_s64): Likewise.
6820 (vst3q_u8): Likewise.
6821 (vst3q_u16): Likewise.
6822 (vst3q_u32): Likewise.
6823 (vst3q_u64): Likewise.
6824 (vst3q_f16): Likewise.
6825 (vst3q_f32): Likewise.
6826 (vst3q_f64): Likewise.
6827 (vst3q_p64): Likewise.
6828
6829 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
6830
6831 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
6832 instead of constructing __builtin_aarch64_simd_xi one vector
6833 at a time.
6834 (vst4_u64): Likewise.
6835 (vst4_f64): Likewise.
6836 (vst4_s8): Likewise.
6837 (vst4_p8): Likewise.
6838 (vst4_s16): Likewise.
6839 (vst4_p16): Likewise.
6840 (vst4_s32): Likewise.
6841 (vst4_u8): Likewise.
6842 (vst4_u16): Likewise.
6843 (vst4_u32): Likewise.
6844 (vst4_f16): Likewise.
6845 (vst4_f32): Likewise.
6846 (vst4_p64): Likewise.
6847 (vst4q_s8): Likewise.
6848 (vst4q_p8): Likewise.
6849 (vst4q_s16): Likewise.
6850 (vst4q_p16): Likewise.
6851 (vst4q_s32): Likewise.
6852 (vst4q_s64): Likewise.
6853 (vst4q_u8): Likewise.
6854 (vst4q_u16): Likewise.
6855 (vst4q_u32): Likewise.
6856 (vst4q_u64): Likewise.
6857 (vst4q_f16): Likewise.
6858 (vst4q_f32): Likewise.
6859 (vst4q_f64): Likewise.
6860 (vst4q_p64): Likewise.
6861
6862 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
6863
6864 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
6865 instead of constructing __builtin_aarch64_simd_oi one vector
6866 at a time.
6867 (vtbx4_u8): Likewise.
6868 (vtbx4_p8): Likewise.
6869
6870 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
6871
6872 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
6873 instead of constructing __builtin_aarch64_simd_oi one vector
6874 at a time.
6875 (vtbl3_u8): Likewise.
6876 (vtbl3_p8): Likewise.
6877 (vtbl4_s8): Likewise.
6878 (vtbl4_u8): Likewise.
6879 (vtbl4_p8): Likewise.
6880
6881 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
6882
6883 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
6884 instead of constructing __builtin_aarch64_simd_oi one vector
6885 at a time.
6886 (vqtbx2_u8): Likewise.
6887 (vqtbx2_p8): Likewise.
6888 (vqtbx2q_s8): Likewise.
6889 (vqtbx2q_u8): Likewise.
6890 (vqtbx2q_p8): Likewise.
6891 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
6892 __builtin_aarch64_simd_ci one vector at a time.
6893 (vqtbx3_u8): Likewise.
6894 (vqtbx3_p8): Likewise.
6895 (vqtbx3q_s8): Likewise.
6896 (vqtbx3q_u8): Likewise.
6897 (vqtbx3q_p8): Likewise.
6898 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
6899 __builtin_aarch64_simd_xi one vector at a time.
6900 (vqtbx4_u8): Likewise.
6901 (vqtbx4_p8): Likewise.
6902 (vqtbx4q_s8): Likewise.
6903 (vqtbx4q_u8): Likewise.
6904 (vqtbx4q_p8): Likewise.
6905
6906 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
6907
6908 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
6909 instead of constructing __builtin_aarch64_simd_oi one vector
6910 at a time.
6911 (vqtbl2_u8): Likewise.
6912 (vqtbl2_p8): Likewise.
6913 (vqtbl2q_s8): Likewise.
6914 (vqtbl2q_u8): Likewise.
6915 (vqtbl2q_p8): Likewise.
6916 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
6917 __builtin_aarch64_simd_ci one vector at a time.
6918 (vqtbl3_u8): Likewise.
6919 (vqtbl3_p8): Likewise.
6920 (vqtbl3q_s8): Likewise.
6921 (vqtbl3q_u8): Likewise.
6922 (vqtbl3q_p8): Likewise.
6923 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
6924 __builtin_aarch64_simd_xi one vector at a time.
6925 (vqtbl4_u8): Likewise.
6926 (vqtbl4_p8): Likewise.
6927 (vqtbl4q_s8): Likewise.
6928 (vqtbl4q_u8): Likewise.
6929 (vqtbl4q_p8): Likewise.
6930
6931 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
6932
6933 PR target/100952
6934 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
6935
6936 2021-07-22 Andrew Pinski <apinski@marvell.com>
6937
6938 PR tree-optimization/10153
6939 * tree-tailcall.c (create_tailcall_accumulator):
6940 Don't call fold_convert as the type should be correct already.
6941 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
6942 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
6943
6944 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
6945
6946 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
6947 varying_p check for null/non-null check.
6948
6949 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
6950
6951 PR tree-optimization/101511
6952 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
6953 is in ssa2's equiv set, and don't trap if so.
6954
6955 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
6956
6957 PR tree-optimization/101497
6958 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
6959 for undefined.
6960
6961 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
6962
6963 PR tree-optimization/101496
6964 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
6965 first, then vrp_visit_cond_Stmt.
6966
6967 2021-07-22 liuhongt <hongtao.liu@intel.com>
6968
6969 * config/i386/i386-expand.c
6970 (ix86_broadcast_from_integer_constant): Rename to ..
6971 (ix86_broadcast_from_constant): .. this, and extend it to
6972 handle float mode.
6973 (ix86_expand_vector_move): Extend to float mode.
6974 * config/i386/i386-features.c
6975 (replace_constant_pool_with_broadcast): Remove.
6976 (remove_partial_avx_dependency_gate): Ditto.
6977 (constant_pool_broadcast): Ditto.
6978 (class pass_constant_pool_broadcast): Ditto.
6979 (make_pass_constant_pool_broadcast): Ditto.
6980 (remove_partial_avx_dependency): Adjust gate.
6981 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
6982 * config/i386/i386-protos.h
6983 (make_pass_constant_pool_broadcast): Remove.
6984
6985 2021-07-22 liuhongt <hongtao.liu@intel.com>
6986
6987 * config/i386/constraints.md (Wb): New constraint.
6988 (Ww): Ditto.
6989 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
6990 shift.
6991 (*ashlqi3_1): Ditto.
6992 (*<insn><mode>3_1): Split to ..
6993 (*ashr<mode>3_1): this, ...
6994 (*lshr<mode>3_1): and this, also extend this pattern to avx512
6995 mask registers.
6996 (*<insn><mode>3_1): Split to ..
6997 (*ashr<mode>3_1): this, ...
6998 (*lshrqi3_1): and this, also extend this pattern to avx512
6999 mask registers.
7000 (*lshrhi3_1): And this, also extend this pattern to avx512
7001 mask registers.
7002 * config/i386/sse.md (k<code><mode>): New define_split after
7003 it to convert generic shift pattern to mask shift ones.
7004
7005 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
7006 Joseph Myers <joseph@codesourcery.com>
7007 Cesar Philippidis <cesar@codesourcery.com>
7008
7009 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
7010 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
7011 Handle it.
7012 * tree-pretty-print.c (dump_omp_clause): Likewise.
7013 * omp-general.c (oacc_verify_routine_clauses): Likewise.
7014 * gimplify.c (gimplify_scan_omp_clauses)
7015 (gimplify_adjust_omp_clauses): Likewise.
7016 * tree-nested.c (convert_nonlocal_omp_clauses)
7017 (convert_local_omp_clauses): Likewise.
7018 * omp-low.c (scan_sharing_clauses): Likewise.
7019 * omp-offload.c (execute_oacc_device_lower): Update.
7020
7021 2021-07-21 Martin Sebor <msebor@redhat.com>
7022
7023 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
7024
7025 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
7026
7027 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
7028 Implement.
7029
7030 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
7031
7032 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
7033 callback function.
7034 (write_fntype_init): New stub function.
7035 (write_init_bif_table): Likewise.
7036 (write_init_ovld_table): New function.
7037 (write_init_file): Implement.
7038
7039 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
7040
7041 * config/rs6000/rs6000-gen-builtins.c
7042 (write_autogenerated_header): New function.
7043 (write_decls): Likewise.
7044 (write_extern_fntype): New callback function.
7045 (write_header_file): Implement.
7046
7047 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
7048
7049 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
7050 Implement.
7051
7052 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
7053
7054 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
7055 function.
7056 (complete_base_type): Likewise.
7057 (construct_fntype_id): Likewise.
7058 (parse_bif_entry): Call contruct_fntype_id.
7059 (parse_ovld_entry): Likewise.
7060
7061 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
7062
7063 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
7064 (MAXOVLDSTANZAS): New macro.
7065 (ovld_stanzas): New variable.
7066 (curr_ovld_stanza): Likewise.
7067 (MAXOVLDS): New macro.
7068 (ovlddata): New struct.
7069 (ovlds): New variable.
7070 (curr_ovld): Likewise.
7071 (max_ovld_args): Likewise.
7072 (parse_ovld_entry): New function.
7073 (parse_ovld_stanza): Likewise.
7074 (parse_ovld): Implement.
7075
7076 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
7077
7078 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
7079 Implement.
7080
7081 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
7082
7083 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
7084 (parse_prototype): Implement.
7085
7086 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
7087
7088 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
7089 (curr_bif_stanza): New variable.
7090 (stanza_entry): New struct.
7091 (stanza_map): New initialized variable.
7092 (enable_string): Likewise.
7093 (fnkinds): New enum.
7094 (typelist): New struct.
7095 (attrinfo): Likewise.
7096 (MAXRESTROPNDS): New macro.
7097 (prototype): New struct.
7098 (MAXBIFS): New macro.
7099 (bifdata): New struct.
7100 (bifs): New variable.
7101 (curr_bif): Likewise.
7102 (bif_order): Likewise.
7103 (bif_index): Likewise.
7104 (fatal): New function.
7105 (stanza_name_to_stanza): Likewise.
7106 (parse_bif_attrs): New stub function.
7107 (parse_prototype): Likewise.
7108 (parse_bif_entry): New function.
7109 (parse_bif_stanza): Likewise.
7110 (parse_bif): Implement.
7111 (set_bif_order): New function.
7112 (create_bif_order): Implement.
7113
7114 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
7115
7116 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
7117 (num_bifs): New variable.
7118 (num_ovld_stanzas): Likewise.
7119 (num_ovlds): Likewise.
7120 (parse_codes): New enum.
7121 (bif_rbt): New variable.
7122 (ovld_rbt): Likewise.
7123 (fntype_rbt): Likewise.
7124 (bifo_rbt): Likewise.
7125 (parse_bif): New stub function.
7126 (create_bif_order): Likewise.
7127 (parse_ovld): Likewise.
7128 (write_header_file): Likewise.
7129 (write_init_file): Likewise.
7130 (write_defines_file): Likewise.
7131 (delete_output_files): New function.
7132 (main): Likewise.
7133
7134 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
7135
7136 PR target/101549
7137 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
7138 from CRC32 _builtin functions.
7139
7140 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
7141
7142 * coverage.c (build_gcov_info_var_registration): Mark the object placed
7143 in the linker set as referenced so that it does not get optimized away.
7144
7145 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
7146
7147 Revert:
7148 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
7149
7150 * config.gcc (riscv*-*-*): Detect which python is available.
7151
7152 2021-07-21 Jakub Jelinek <jakub@redhat.com>
7153
7154 PR middle-end/101535
7155 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
7156 contexts in which decl isn't privatized and for ORT_TARGET return
7157 false if decl is mapped.
7158
7159 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
7160
7161 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
7162 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
7163 has been successfully unrolled.
7164
7165 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
7166
7167 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
7168 exit condition if no tail loop is needed, and if the original exit
7169 condition should therefore be kept as-is.
7170 (tree_transform_and_unroll_loop): Handle that case here too.
7171
7172 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
7173
7174 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
7175 by reference.
7176 (free_data_refs): Likewise.
7177 * tree-data-ref.h (free_dependence_relations): Likewise.
7178 (free_data_refs): Likewise.
7179 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
7180 members.
7181 (struct component): Likewise.
7182 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
7183 (pcom_worker::~pcom_worker): Likewise.
7184 (pcom_worker::release_chain): Adjust as auto_vec changes.
7185 (pcom_worker::loop): Rename to ...
7186 (pcom_worker::m_loop): ... this.
7187 (pcom_worker::datarefs): Rename to ...
7188 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
7189 (pcom_worker::dependences): Rename to ...
7190 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
7191 (pcom_worker::chains): Rename to ...
7192 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
7193 (pcom_worker::looparound_phis): Rename to ...
7194 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
7195 vec.
7196 (pcom_worker::cache): Rename to ...
7197 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
7198 (pcom_worker::release_chain): Adjust for auto_vec changes.
7199 (pcom_worker::release_chains): Adjust for auto_vec and renaming
7200 changes.
7201 (release_component): Remove.
7202 (release_components): Adjust for release_component removal.
7203 (component_of): Adjust to use vec.
7204 (merge_comps): Likewise.
7205 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
7206 (pcom_worker::determine_offset): Likewise.
7207 (class comp_ptrs): Remove.
7208 (pcom_worker::split_data_refs_to_components): Adjust for renaming
7209 changes, for comp_ptrs removal with auto_vec.
7210 (pcom_worker::suitable_component_p): Adjust for renaming changes.
7211 (pcom_worker::filter_suitable_components): Adjust for release_component
7212 removal.
7213 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
7214 (pcom_worker::find_looparound_phi): Likewise.
7215 (pcom_worker::add_looparound_copies): Likewise.
7216 (pcom_worker::determine_roots_comp): Likewise.
7217 (pcom_worker::single_nonlooparound_use): Likewise.
7218 (pcom_worker::execute_pred_commoning_chain): Likewise.
7219 (pcom_worker::execute_pred_commoning): Likewise.
7220 (pcom_worker::try_combine_chains): Likewise.
7221 (pcom_worker::prepare_initializers_chain): Likewise.
7222 (pcom_worker::prepare_initializers): Likewise.
7223 (pcom_worker::prepare_finalizers_chain): Likewise.
7224 (pcom_worker::prepare_finalizers): Likewise.
7225 (pcom_worker::tree_predictive_commoning_loop): Likewise.
7226
7227 2021-07-20 Martin Sebor <msebor@redhat.com>
7228
7229 PR middle-end/101397
7230 * builtins.c (gimple_call_return_array): Add argument. Correct
7231 offsets for memchr, mempcpy, stpcpy, and stpncpy.
7232 (compute_objsize_r): Adjust offset computation for argument returning
7233 built-ins.
7234
7235 2021-07-20 Martin Sebor <msebor@redhat.com>
7236
7237 PR middle-end/101300
7238 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
7239
7240 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
7241
7242 * function.c (assign_parm_setup_block): Use adjust_address instead
7243 of change_address to preserve MEM_EXPR and friends.
7244
7245 2021-07-20 Martin Sebor <msebor@redhat.com>
7246
7247 * cfgloop.h (single_likely_exit): Adjust by-value argument to
7248 by-const-reference.
7249 * cfgloopanal.c (single_likely_exit): Same.
7250 * cgraph.h (struct cgraph_node): Same.
7251 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
7252 * genautomata.c (merge_states): Same.
7253 * genextract.c (VEC_char_to_string): Same.
7254 * genmatch.c (dt_node::gen_kids_1): Same.
7255 (walk_captures): Adjust by-value argument to by-reference.
7256 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
7257 to by-const-reference.
7258 * gimple.c (gimple_build_call_vec): Same.
7259 (gimple_build_call_internal_vec): Same.
7260 (gimple_build_switch): Same.
7261 (sort_case_labels): Same.
7262 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
7263 by-reference.
7264 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
7265 by-const-reference.
7266 (gimple_build_call_internal_vec): Same.
7267 (gimple_build_switch): Same.
7268 (sort_case_labels): Same.
7269 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
7270 by-reference.
7271 * haifa-sched.c (calc_priorities): Adjust by-value argument to
7272 by-const-reference.
7273 (sched_init_luids): Same.
7274 (haifa_init_h_i_d): Same.
7275 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
7276 (adjust_callers_for_value_intersection): Adjust by-value argument to
7277 by-reference.
7278 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
7279 by-const-reference.
7280 (find_more_contexts_for_caller_subset): Same.
7281 (find_aggregate_values_for_callers_subset): Same.
7282 (copy_useful_known_contexts): Same.
7283 * ipa-fnsummary.c (remap_edge_summaries): Same.
7284 (remap_freqcounting_predicate): Same.
7285 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
7286 by-reference.
7287 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
7288 to by-const-reference.
7289 * ipa-predicate.h (predicate::remap_after_inlining): Same.
7290 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
7291 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
7292 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
7293 * read-rtl.c (add_overload_instance): Same.
7294 * rtl.h (native_decode_rtx): Same.
7295 (native_decode_vector_rtx): Same.
7296 * sched-int.h (sched_init_luids): Same.
7297 (haifa_init_h_i_d): Same.
7298 * simplify-rtx.c (native_decode_vector_rtx): Same.
7299 (native_decode_rtx): Same.
7300 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
7301 (shrink_wrap_one_built_in_call_with_conds): Same.
7302 (shrink_wrap_conditional_dead_built_in_calls): Same.
7303 * tree-data-ref.c (create_runtime_alias_checks): Same.
7304 (compute_all_dependences): Same.
7305 * tree-data-ref.h (compute_all_dependences): Same.
7306 (create_runtime_alias_checks): Same.
7307 (index_in_loop_nest): Same.
7308 * tree-if-conv.c (mask_exists): Same.
7309 * tree-loop-distribution.c (class loop_distribution): Same.
7310 (loop_distribution::create_rdg_vertices): Same.
7311 (dump_rdg_partitions): Same.
7312 (debug_rdg_partitions): Same.
7313 (partition_contains_all_rw): Same.
7314 (loop_distribution::distribute_loop): Same.
7315 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
7316 (oacc_entry_exit_single_gang): Same.
7317 * tree-ssa-loop-im.c (hoist_memory_references): Same.
7318 (loop_suitable_for_sm): Same.
7319 * tree-ssa-loop-niter.c (bound_index): Same.
7320 * tree-ssa-reassoc.c (update_ops): Same.
7321 (swap_ops_for_binary_stmt): Same.
7322 (rewrite_expr_tree): Same.
7323 (rewrite_expr_tree_parallel): Same.
7324 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
7325 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
7326 * tree-ssa-structalias.c (process_all_all_constraints): Same.
7327 (make_constraints_to): Same.
7328 (handle_lhs_call): Same.
7329 (find_func_aliases_for_builtin_call): Same.
7330 (sort_fieldstack): Same.
7331 (check_for_overlaps): Same.
7332 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
7333 (vect_create_cond_for_unequal_addrs): Same.
7334 (vect_create_cond_for_lower_bounds): Same.
7335 (vect_create_cond_for_alias_checks): Same.
7336 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
7337 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
7338 (vect_make_slp_decision): Same.
7339 (vect_slp_bbs): Same.
7340 (duplicate_and_interleave): Same.
7341 (vect_transform_slp_perm_load): Same.
7342 (vect_schedule_slp): Same.
7343 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
7344 (vect_schedule_slp): Same.
7345 (duplicate_and_interleave): Same.
7346 * tree.c (build_vector_from_ctor): Same.
7347 (build_vector): Same.
7348 (check_vector_cst): Same.
7349 (check_vector_cst_duplicate): Same.
7350 (check_vector_cst_fill): Same.
7351 (check_vector_cst_stepped): Same.
7352 * tree.h (build_vector_from_ctor): Same.
7353
7354 2021-07-20 Jakub Jelinek <jakub@redhat.com>
7355
7356 PR target/101384
7357 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
7358 type from bool to int.
7359 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
7360 EASY_VECTOR_MSB case if either step or copies is not 1.
7361 (vspltis_shifted): Fix comment typo.
7362 (easy_altivec_constant): Change return type from bool to int, instead
7363 of returning true return byte size of the element mode that should be
7364 used to synthetize the constant.
7365 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
7366 that vspltis_shifted is 0, handle the case where easy_altivec_constant
7367 assumes using different vector mode from CONST_VECTOR's mode.
7368 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
7369 easy_altivec_constant to determine mode in which -1 >> -1 should be
7370 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
7371
7372 2021-07-20 Richard Biener <rguenther@suse.de>
7373
7374 PR debug/101473
7375 * dwarf2out.h (dwarf_file_data): Add key member.
7376 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
7377 (dwarf_file_hasher::hash): Hash key.
7378 (lookup_filename): Remap the filename and store it in the
7379 filename member of dwarf_file_data when creating a new
7380 dwarf_file_data.
7381 (file_name_acquire): Do not remap the filename again.
7382 (maybe_emit_file): Likewise.
7383
7384 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
7385
7386 * config/aarch64/aarch64-simd-builtins.def: Use two variant
7387 generators for all TBL/TBX intrinsics and rename to
7388 consistent forms: qtbl[1234] or qtbx[1234].
7389 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
7390 Rename to...
7391 (aarch64_qtbl1<mode>): This.
7392 (aarch64_tbx1<mode>): Rename to...
7393 (aarch64_qtbx1<mode>): This.
7394 (aarch64_tbl2v16qi): Delete.
7395 (aarch64_tbl3<mode>): Rename to...
7396 (aarch64_qtbl2<mode>): This.
7397 (aarch64_tbx4<mode>): Rename to...
7398 (aarch64_qtbx2<mode>): This.
7399 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
7400 renamed qtbl1 and qtbl2 RTL patterns.
7401 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
7402 RTL pattern.
7403 (vqtbl1_s8): Likewise.
7404 (vqtbl1_u8): Likewise.
7405 (vqtbl1q_p8): Likewise.
7406 (vqtbl1q_s8): Likewise.
7407 (vqtbl1q_u8): Likewise.
7408 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
7409 (vqtbx1_u8): Likewise.
7410 (vqtbx1_p8): Likewise.
7411 (vqtbx1q_s8): Likewise.
7412 (vqtbx1q_u8): Likewise.
7413 (vqtbx1q_p8): Likewise.
7414 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
7415 (vtbl1_u8): Likewise.
7416 (vtbl1_p8): Likewise.
7417 (vtbl2_s8): Likewise
7418 (vtbl2_u8): Likewise.
7419 (vtbl2_p8): Likewise.
7420 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
7421 (vtbl3_u8): Likewise.
7422 (vtbl3_p8): Likewise.
7423 (vtbl4_s8): Likewise.
7424 (vtbl4_u8): Likewise.
7425 (vtbl4_p8): Likewise.
7426 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
7427 (vtbx2_u8): Likewise.
7428 (vtbx2_p8): Likewise.
7429 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
7430 (vqtbl2_u8): Likewise.
7431 (vqtbl2_p8): Likewise.
7432 (vqtbl2q_s8): Likewise.
7433 (vqtbl2q_u8): Likewise.
7434 (vqtbl2q_p8): Likewise.
7435 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
7436 (vqtbx2_u8): Likewise.
7437 (vqtbx2_p8): Likewise.
7438 (vqtbx2q_s8): Likewise.
7439 (vqtbx2q_u8): Likewise.
7440 (vqtbx2q_p8): Likewise.
7441 (vtbx4_s8): Likewise.
7442 (vtbx4_u8): Likewise.
7443 (vtbx4_p8): Likewise.
7444
7445 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
7446
7447 PR target/100182
7448 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
7449 Remove.
7450 (define_peephole2 atomic_loaddi_fpu): Ditto.
7451
7452 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
7453
7454 * config.gcc (riscv*-*-*): Detect which python is available.
7455
7456 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
7457
7458 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
7459 (smul<mode>3_highpart): ... this.
7460 (mulhu_<mode>): Rename to...
7461 (umul<mode>3_highpart): ... this.
7462 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
7463 MULHU_V2DI, MULHU_V4SI): Adjust.
7464
7465 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
7466
7467 PR tree-optimization/100696
7468 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
7469 * internal-fn.def (IFN_MULH): New internal function.
7470 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
7471 recog normal multiply highpart as IFN_MULH.
7472 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
7473 function CFN_MULH.
7474
7475 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
7476
7477 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
7478 (BTF_DEBUGGING_INFO): Likewise.
7479 * doc/tm.texi.in: Document the new macros.
7480 * doc/tm.texi: Regenerated.
7481 * toplev.c: Guard initialization of debug hooks.
7482
7483 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
7484
7485 * flags.h (ctf_debuginfo_p): New function declaration.
7486 * opts.c (ctf_debuginfo_p): New function definition.
7487
7488 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
7489
7490 PR target/100208
7491 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
7492 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
7493 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
7494 * config/gcn/gcn-valu.md: Add a warning comment.
7495 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
7496 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
7497 * config/gcn/gcn.md: Add a warning comment.
7498 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
7499 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
7500 SRAM-ECC flag.
7501 (EF_AMDGPU_XNACK): New.
7502 (EF_AMDGPU_SRAM_ECC): New.
7503 (elf_flags): New.
7504 (copy_early_debug_info): Use elf_flags.
7505 (main): Handle -mxnack and -msram-ecc options.
7506 * doc/invoke.texi: Document -mxnack and -msram-ecc.
7507
7508 2021-07-19 Andrew Pinski <apinski@marvell.com>
7509
7510 PR target/101205
7511 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
7512 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
7513
7514 2021-07-19 Richard Biener <rguenther@suse.de>
7515
7516 PR tree-optimization/101505
7517 * tree-vect-patterns.c (vect_determine_precisions): Walk
7518 PHIs also for loop vectorization.
7519
7520 2021-07-19 Richard Biener <rguenther@suse.de>
7521
7522 * gimple.h (gimple_expr_type): Remove.
7523 * doc/gimple.texi: Remove gimple_expr_type documentation.
7524
7525 2021-07-19 Richard Biener <rguenther@suse.de>
7526
7527 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
7528 (ao_ref_init_from_vn_reference): Likewise.
7529 (fully_constant_reference): Likewise.
7530 (vn_reference_lookup_call): Do not set vr->type to random
7531 values.
7532 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
7533 without a value.
7534 * tree-vect-generic.c (expand_vector_piecewise): Pass in
7535 whether we expanded parallel.
7536 (expand_vector_parallel): Adjust.
7537 (expand_vector_addition): Likewise.
7538 (expand_vector_comparison): Likewise.
7539 (expand_vector_operation): Likewise.
7540 (expand_vector_scalar_condition): Likewise.
7541 (expand_vector_conversion): Likewise.
7542
7543 2021-07-19 Richard Biener <rguenther@suse.de>
7544
7545 * tree-vrp.c (register_edge_assert_for_2): Use the
7546 type from the LHS.
7547 (vrp_folder::fold_predicate_in): Likewise.
7548 * vr-values.c (gimple_assign_nonzero_p): Likewise.
7549 (vr_values::extract_range_from_comparison): Likewise.
7550 (vr_values::extract_range_from_ubsan_builtin): Use the
7551 type of the first operand.
7552 (vr_values::extract_range_basic): Push down type
7553 computation, use the appropriate LHS.
7554 (vr_values::extract_range_from_assignment): Use the
7555 type of the LHS.
7556
7557 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
7558
7559 PR target/101492
7560 * common/config/i386/i386-common.c (ix86_handle_option): For
7561 -mgeneral-regs-only, enable the GPR only instructions which are
7562 enabled implicitly by SSE ISAs unless they have been disabled
7563 explicitly.
7564
7565 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
7566
7567 PR target/101495
7568 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
7569 ix86_avx_u128_mode_needed.
7570 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
7571 returns AVX register.
7572
7573 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
7574
7575 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
7576 (handle_const_call): Liekise
7577 (handle_pure_call): Liekise
7578
7579 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
7580
7581 PR tree-optimization/96542
7582 * range-op.cc (range_operator::wi_fold_in_parts): New.
7583 (range_operator::fold_range): Call wi_fold_in_parts.
7584 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
7585 * range-op.h (wi_fold_in_parts): Add prototype.
7586
7587 2021-07-16 David Malcolm <dmalcolm@redhat.com>
7588
7589 * doc/analyzer.texi: Add __analyzer_dump_state.
7590
7591 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
7592
7593 * config/rs6000/rbtree.c: New file.
7594 * config/rs6000/rbtree.h: New file.
7595
7596 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
7597
7598 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
7599 (typeinfo): Add restr field.
7600 (match_bracketed_pair): New function.
7601 (match_const_restriction): Implement.
7602
7603 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
7604
7605 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
7606
7607 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
7608
7609 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
7610 (basetype): Likewise.
7611 (typeinfo): Likewise.
7612 (handle_pointer): New function.
7613 (match_basetype): New stub function.
7614 (match_const_restriction): Likewise.
7615 (match_type): New function.
7616
7617 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
7618
7619 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
7620 function.
7621 (advance_line): Likewise.
7622 (safe_inc_pos): Likewise.
7623 (match_identifier): Likewise.
7624 (match_integer): Likewise.
7625 (match_to_right_bracket): Likewise.
7626
7627 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
7628
7629 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
7630 (ovld_file): Likewise.
7631 (header_file): Likewise.
7632 (init_file): Likewise.
7633 (defines_file): Likewise.
7634 (pgm_path): Likewise.
7635 (bif_path): Likewise.
7636 (ovld_path): Likewise.
7637 (header_path): Likewise.
7638 (init_path): Likewise.
7639 (defines_path): Likewise.
7640 (LINELEN): New macro.
7641 (linebuf): New variable.
7642 (line): Likewise.
7643 (pos): Likewise.
7644 (diag): Likewise.
7645 (bif_diag): New function.
7646 (ovld_diag): Likewise.
7647
7648 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
7649
7650 * config/rs6000/rs6000-builtin-new.def: New.
7651 * config/rs6000/rs6000-overload.def: New.
7652
7653 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
7654
7655 * config/rs6000/rs6000-gen-builtins.c: New.
7656
7657 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
7658
7659 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
7660 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
7661 * gengtype-state.c (state_writer::write_state_file_list): Add a
7662 parameter to the fileslist expression for the number of build
7663 headers to scan.
7664 (read_state_files_list): Detect build headers and strip the
7665 initial "./" or ".\" from their names.
7666 * gengtype.c (build_headers): New global variable.
7667 (num_build_headers): Likewise.
7668 (open_base_files): Emit #include for each build header.
7669 (main): Detect and count build headers.
7670 * gengtype.h (build_headers): New extern variable.
7671 (num_build_headers): Likewise.
7672
7673 2021-07-16 Richard Biener <rguenther@suse.de>
7674
7675 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
7676 the type of the LHS.
7677 (find_bswap_or_nop_1): Likewise.
7678 (find_bswap_or_nop): Likewise.
7679 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
7680 prototype.
7681 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
7682 Remove unused parameters, pass in the scalar type. Fix
7683 internal store function handling.
7684 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
7685 (vect_get_vector_types_for_stmt): Move down check for
7686 existing vector stmt after we've determined a scalar type.
7687 Pass down the used scalar type to vect_get_smallest_scalar_type.
7688 * tree-vect-generic.c (expand_vector_condition): Use
7689 the type of the LHS.
7690 (expand_vector_scalar_condition): Likewise.
7691 (expand_vector_operations_1): Likewise.
7692 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
7693 (vect_recog_dot_prod_pattern): Likewise.
7694 (vect_recog_sad_pattern): Likewise.
7695 (vect_recog_widen_op_pattern): Likewise.
7696 (vect_recog_widen_sum_pattern): Likewise.
7697 (vect_recog_mixed_size_cond_pattern): Likewise.
7698
7699 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
7700
7701 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
7702 (dump_eaf_flags): Dump EAF_NOT_RETURNED
7703 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
7704 and EAF_NOT_RETURNED.
7705 (modref_summary::useful_p): Likewise.
7706 (modref_summary_lto::useful_p): Likewise.
7707 (struct) modref_summary_lto: Use eaf_fleags_t.
7708 (deref_flags): Handle EAF_NOT_RETURNED.
7709 (struct escape_point): Use min_flags.
7710 (modref_lattice::init): Add EAF_NOT_RETURNED.
7711 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
7712 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
7713 handle call flags.
7714 (analyze_parms): Also analyze const functions; update conition on
7715 flags usefulness.
7716 (modref_write): Update streaming.
7717 (read_section): Update streaming.
7718 (remap_arg_flags): Use eaf_flags_t.
7719 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
7720 * ipa-modref.h: (eaf_flags_t): New typedef.
7721 (struct modref_summary): Use eaf_flags_t.
7722 * tree-core.h (EAF_NOT_RETURNED): New constant.
7723
7724 2021-07-16 Richard Biener <rguenther@suse.de>
7725
7726 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
7727 the type of the LHS.
7728 (gimple_assign_nonnegative_warnv_p): Likewise.
7729 (gimple_call_nonnegative_warnv_p): Likewise. Return false
7730 if the call has no LHS.
7731 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
7732 * tree-eh.c (stmt_could_throw_1_p): Likewise.
7733 * tree-inline.c (insert_init_stmt): Likewise.
7734 * tree-ssa-loop-niter.c (get_val_for): Likewise.
7735 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
7736 the def.
7737 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
7738 gassign *. Use the type of the lhs.
7739 (vn_nary_op_lookup_stmt): Adjust.
7740 (vn_nary_op_insert_stmt): Likewise.
7741
7742 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
7743
7744 * config/s390/predicates.md (bras_sym_operand): Accept all
7745 functions in 64-bit mode, use UNSPEC_PLT31.
7746 (larl_operand): Use UNSPEC_PLT31.
7747 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
7748 (legitimize_pic_address): Likewise.
7749 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
7750 use UNSPEC_PLT31.
7751 (s390_delegitimize_address): Use UNSPEC_PLT31.
7752 (s390_output_addr_const_extra): Likewise.
7753 (print_operand): Add @PLT to TLS calls, handle %K.
7754 (s390_function_profiler): Mark __fentry__/_mcount as function,
7755 use %K, use UNSPEC_PLT31.
7756 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
7757 (s390_emit_call): Use UNSPEC_PLT31.
7758 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
7759 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
7760 (*movdi_64): Use %K.
7761 (reload_base_64): Likewise.
7762 (*sibcall_brc): Likewise.
7763 (*sibcall_brcl): Likewise.
7764 (*sibcall_value_brc): Likewise.
7765 (*sibcall_value_brcl): Likewise.
7766 (*bras): Likewise.
7767 (*brasl): Likewise.
7768 (*bras_r): Likewise.
7769 (*brasl_r): Likewise.
7770 (*bras_tls): Likewise.
7771 (*brasl_tls): Likewise.
7772 (main_base_64): Likewise.
7773 (reload_base_64): Likewise.
7774 (@split_stack_call<mode>): Likewise.
7775
7776 2021-07-16 Richard Biener <rguenther@suse.de>
7777
7778 PR tree-optimization/101467
7779 * tree-vect-stmts.c (vect_gen_while): Properly guard
7780 make_temp_ssa_name usage.
7781
7782 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
7783
7784 * config.gcc: Don't use forked print-sysroot-suffix.sh and
7785 t-sysroot-suffix for C-SKY.
7786 * config/csky/print-sysroot-suffix.sh: Delete.
7787 * config/csky/t-csky-linux: Delete.
7788 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
7789 instead of CSKY_MULTILIB_DIRNAMES.
7790
7791 2021-07-16 Richard Biener <rguenther@suse.de>
7792
7793 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
7794 conversion issues with the partial reduction of the reused
7795 vector accumulator.
7796
7797 2021-07-16 Richard Biener <rguenther@suse.de>
7798
7799 * config/i386/i386-options.c (ix86_option_override_internal): Set
7800 param_vect_partial_vector_usage to zero if not set.
7801
7802 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
7803
7804 PR target/101346
7805 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
7806 (VALID_INT_MODE_P): Add SDmode and DDmode.
7807 Add TDmode for TARGET_64BIT.
7808 (VALID_DFP_MODE_P): Remove.
7809 * config/i386/i386.c (ix86_hard_regno_mode_ok):
7810 Do not use VALID_DFP_MODE_P.
7811
7812 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
7813
7814 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
7815 gimple_range_type.
7816 (fold_using_range::fold_stmt): Ditto.
7817 (fold_using_range::range_of_range_op): Ditto.
7818 (fold_using_range::range_of_phi): Ditto.
7819 (fold_using_range::range_of_call): Ditto.
7820 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
7821 (fold_using_range::range_of_builtin_call): Ditto.
7822 (fold_using_range::range_of_cond_expr): Ditto.
7823 * gimple-range-fold.h (gimple_range_type): New.
7824
7825 2021-07-15 Martin Sebor <msebor@redhat.com>
7826
7827 PR middle-end/97027
7828 * tree-ssa-strlen.c (handle_assign): New function.
7829 (maybe_warn_overflow): Add argument.
7830 (nonzero_bytes_for_type): New function.
7831 (count_nonzero_bytes): Handle more tree types. Call
7832 nonzero_bytes_for_tye.
7833 (count_nonzero_bytes): Handle types.
7834 (handle_store): Handle stores from function calls.
7835 (strlen_check_and_optimize_call): Move code to handle_assign. Call
7836 it for assignments from function calls.
7837
7838 2021-07-15 David Malcolm <dmalcolm@redhat.com>
7839
7840 PR analyzer/95006
7841 PR analyzer/94713
7842 PR analyzer/94714
7843 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
7844
7845 2021-07-15 David Malcolm <dmalcolm@redhat.com>
7846
7847 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
7848
7849 2021-07-15 Martin Sebor <msebor@redhat.com>
7850
7851 PR c/101289
7852 PR c/97548
7853 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
7854 (operand_compare::verify_hash_value): Same.
7855 * tree-core.h (OEP_DECL_NAME): New.
7856
7857 2021-07-15 Martin Jambor <mjambor@suse.cz>
7858
7859 * profile-count.h (profile_count::value): Change the return type to
7860 uint64_t.
7861 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
7862 statement.
7863 * tree-cfg.c (dump_function_to_file): Likewise.
7864
7865 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
7866
7867 PR target/101129
7868 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
7869 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
7870 not swappable.
7871
7872 2021-07-15 Richard Biener <rguenther@suse.de>
7873
7874 * tree-vectorizer.h (vect_gen_while): Match up with
7875 vect_gen_while_not.
7876 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
7877 of vect_gen_while_not.
7878 (vect_gen_while_not): Adjust.
7879 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
7880
7881 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
7882
7883 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
7884 (ranger_cache::range_of_def): Call adjust_range.
7885 (ranger_cache::entry_range): Same.
7886 * gimple-range-cache.h (non_null_ref::adjust_range): New.
7887 * gimple-range.cc (gimple_ranger::range_of_expr): Call
7888 adjust_range.
7889 (gimple_ranger::range_on_entry): Same.
7890
7891 2021-07-15 Tamar Christina <tamar.christina@arm.com>
7892
7893 Revert:
7894 2021-07-14 Tamar Christina <tamar.christina@arm.com>
7895
7896 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
7897
7898 2021-07-15 Tamar Christina <tamar.christina@arm.com>
7899
7900 Revert:
7901 2021-07-14 Tamar Christina <tamar.christina@arm.com>
7902
7903 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
7904 (sdot_prod, udot_prod): ...These.
7905 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
7906 (aarch64_<sur>dot<vsi2qi>): Rename to...
7907 (<sur>dot_prod<vsi2qi>): ...This.
7908 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
7909 Update builtins.
7910
7911 2021-07-15 Jakub Jelinek <jakub@redhat.com>
7912
7913 PR middle-end/101437
7914 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
7915 types even if they have non-BLKmode TYPE_MODE.
7916
7917 2021-07-15 Richard Biener <rguenther@suse.de>
7918
7919 PR driver/101383
7920 * gcc.c (process_command): Process -gtoggle like process_options
7921 would after parsing options.
7922
7923 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
7924
7925 * cfgexpand.c (expand_asm_loc): Adjust.
7926 (expand_asm_stmt): Likewise.
7927 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
7928 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
7929 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
7930 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
7931 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
7932 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
7933 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
7934 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
7935 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
7936 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
7937 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
7938 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
7939 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
7940 * doc/tm.texi: Regenerate.
7941 * target.def: Add location argument to md_asm_adjust.
7942
7943 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
7944
7945 * tree-diagnostic.c (diagnostic_report_current_function): Use the
7946 diagnostic's location, not input_location.
7947
7948 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
7949
7950 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
7951 diagnostics.
7952 (expand_asm_stmt): Likewise.
7953
7954 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
7955
7956 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
7957 addressed memory rtx, if any.
7958 (rs6000_split_multireg_move): Fix code formatting.
7959 Handle MMA build built-ins with operands in adjacent memory locations.
7960
7961 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
7962
7963 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
7964 in the file.
7965
7966 2021-07-14 Jason Merrill <jason@redhat.com>
7967
7968 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
7969
7970 2021-07-14 Jason Merrill <jason@redhat.com>
7971
7972 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
7973 C++.
7974
7975 2021-07-14 Tamar Christina <tamar.christina@arm.com>
7976
7977 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
7978 Remove erroneous line.
7979
7980 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
7981
7982 * params.opt (param_evrp_mode): Change default.
7983
7984 2021-07-14 Tamar Christina <tamar.christina@arm.com>
7985
7986 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
7987 (sdot_prod, udot_prod): ...These.
7988 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
7989 (aarch64_<sur>dot<vsi2qi>): Rename to...
7990 (<sur>dot_prod<vsi2qi>): ...This.
7991 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
7992 Update builtins.
7993
7994 2021-07-14 Tamar Christina <tamar.christina@arm.com>
7995
7996 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
7997
7998 2021-07-14 Tamar Christina <tamar.christina@arm.com>
7999
8000 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
8001
8002 2021-07-14 Tamar Christina <tamar.christina@arm.com>
8003
8004 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
8005
8006 2021-07-14 Tamar Christina <tamar.christina@arm.com>
8007
8008 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
8009 (usdot_prod<vsi2qi>): ... This.
8010 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
8011 (usdot_prod): ...This.
8012 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
8013 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
8014 Rename to...
8015 (@<sur>dot_prod<vsi2qi>): ...This.
8016 * config/aarch64/aarch64-sve-builtins-base.cc
8017 (svusdot_impl::expand): Use it.
8018
8019 2021-07-14 Tamar Christina <tamar.christina@arm.com>
8020
8021 * optabs.def (usdot_prod_optab): New.
8022 * doc/md.texi: Document it and clarify other dot prod optabs.
8023 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
8024 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
8025 * optabs.c (expand_widen_pattern_expr): Likewise.
8026 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
8027 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
8028 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
8029 optab subtype.
8030 (vect_widened_op_tree): Optionally ignore
8031 mismatch types.
8032 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
8033
8034 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
8035
8036 PR target/101395
8037 * config/i386/driver-i386.c (host_detect_local_cpu): Check
8038 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
8039 Enable UINTR only for 64-bit codegen.
8040 * config/i386/i386-options.c
8041 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
8042 in 64-bit mode.
8043 * config/i386/i386.h (ARCH_ARG): New.
8044 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
8045 "[arch|tune] 64" for 64-bit codegen.
8046
8047 2021-07-14 Richard Biener <rguenther@suse.de>
8048
8049 PR tree-optimization/101445
8050 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
8051 of the IV in the correct direction for negative stride
8052 accesses.
8053
8054 2021-07-14 Jakub Jelinek <jakub@redhat.com>
8055
8056 PR go/101407
8057 * godump.c (godump_str_hash): New type.
8058 (godump_container::pot_dummy_types): Use string_hash instead of
8059 ptr_hash in the hash_set.
8060
8061 2021-07-14 Richard Biener <rguenther@suse.de>
8062
8063 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
8064 vector types where the old vector type has a multiple of
8065 the new vector type elements.
8066 (vect_create_partial_epilog): New function, split out from...
8067 (vect_create_epilog_for_reduction): ... here.
8068 (vect_transform_cycle_phi): Reduce the re-used accumulator
8069 to the new vector type.
8070
8071 2021-07-14 Alexandre Oliva <oliva@adacore.com>
8072
8073 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
8074 non-'t'-sized arg check.
8075
8076 2021-07-14 Alexandre Oliva <oliva@adacore.com>
8077
8078 * tree-cfg.c (cleanup_dead_labels_eh): Update
8079 post_landing_pad label upon change of landing pad block's
8080 primary label.
8081 (cleanup_dead_labels): Check that a removed label is not that
8082 of a landing pad.
8083
8084 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
8085
8086 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
8087 simplification.
8088 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
8089 Add Neon to general purpose register case for zero-extend
8090 pattern.
8091 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
8092 case to prevent some cases opting to go through memory.
8093 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
8094 * rtl.c (rtvec_series_p): Define predicate to determine
8095 whether a vector contains a linear series of integers.
8096 * rtl.h (rtvec_series_p): Define.
8097 * rtlanal.c (vec_series_lowpart_p): Define predicate to
8098 determine if a vector selection is equivalent to the low part
8099 of the vector.
8100 * rtlanal.h (vec_series_lowpart_p): Define.
8101 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
8102 Add vec_select -> subreg simplification.
8103
8104 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
8105
8106 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
8107 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
8108 _mm_test_mix_ones_zeros): New.
8109
8110 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
8111 Richard Biener <rguenther@suse.de>
8112
8113 * gimple.c (gimple_could_trap_p_1): Make S argument a
8114 "const gimple*". Preserve constness in call to
8115 gimple_asm_volatile_p.
8116 (gimple_could_trap_p): Make S argument a "const gimple*".
8117 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
8118 Update function prototypes.
8119
8120 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
8121
8122 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
8123 (_loop_vec_info::main_loop_edge): New field.
8124 (_loop_vec_info::skip_main_loop_edge): Likewise.
8125 (_loop_vec_info::skip_this_loop_edge): Likewise.
8126 (_loop_vec_info::reusable_accumulators): Likewise.
8127 (_stmt_vec_info::reduc_scalar_results): Likewise.
8128 (_stmt_vec_info::reused_accumulator): Likewise.
8129 (vect_get_main_loop_result): Declare.
8130 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8131 reduc_scalar_inputs.
8132 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
8133 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
8134 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
8135 skip_main_loop_edge and skip_this_loop_edge fields.
8136 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
8137 (vect_emit_reduction_init_stmts): New function.
8138 (get_initial_def_for_reduction): Use it.
8139 (get_initial_defs_for_reduction): Likewise. Change the vinfo
8140 parameter to a loop_vec_info.
8141 (vect_create_epilog_for_reduction): Store the scalar results
8142 in the reduc_info. If an epilogue loop is reusing an accumulator
8143 from the main loop, and if the epilogue loop can also be skipped,
8144 try to place the reduction code in the join block. Record
8145 accumulators that could potentially be reused by epilogue loops.
8146 (vect_transform_cycle_phi): When vectorizing epilogue loops,
8147 try to reuse accumulators from the main loop. Record the initial
8148 value in reduc_info for non-SLP reductions too.
8149
8150 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
8151
8152 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
8153 adjustment handling. Take the neutral value as an argument,
8154 in place of the code argument.
8155 (vect_transform_cycle_phi): Update accordingly. Handle the
8156 initial values of cond reductions separately from code reductions.
8157 Choose the adjustment here rather than in
8158 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
8159
8160 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
8161
8162 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
8163 (neutral_op_for_reduction): ...this, providing a more general
8164 interface.
8165 (vect_create_epilog_for_reduction): Update accordingly.
8166 (vectorizable_reduction): Likewise.
8167 (vect_transform_cycle_phi): Likewise.
8168
8169 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
8170
8171 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
8172 reduc_info instead of the original stmt_vec_info.
8173 (vect_transform_cycle_phi): Update accordingly.
8174
8175 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
8176
8177 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
8178 reduc_info as an additional parameter.
8179 (vect_transform_cycle_phi): Update accordingly.
8180
8181 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
8182
8183 * tree-vectorizer.h: Include tree-ssa-operands.h.
8184 (vect_phi_initial_value): New function.
8185 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
8186 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
8187 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
8188 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
8189
8190 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
8191
8192 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
8193 the phi results to vectype after creating them. Remove later
8194 conversion code that thus becomes redundant.
8195
8196 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
8197
8198 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
8199 the new_phis vector with a reduc_inputs vector. Combine handling
8200 of reduction chains and ncopies > 1.
8201
8202 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
8203
8204 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
8205 scalar_results to group_size elements after reducing down from
8206 N*group_size elements. Construct an array_slice of the live-out
8207 stmts and assert that there is one stmt per scalar result.
8208
8209 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
8210
8211 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
8212 nested_in_vect_loop and use double_reduc everywhere. Remove dead
8213 assignment to "loop".
8214
8215 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
8216
8217 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
8218 vector types first. For scalar types, consider both the preferred
8219 vector mode and the alternative vector modes.
8220 * optabs-query.c (can_vec_mask_load_store_p): Use the same
8221 structure as above, in particular using related_vector_mode
8222 for modes provided by autovectorize_vector_modes.
8223
8224 2021-07-13 Jakub Jelinek <jakub@redhat.com>
8225 Richard Biener <rguenther@suse.de>
8226
8227 PR tree-optimization/101419
8228 * tree-pass.h (PROP_objsz): Define.
8229 (make_pass_early_object_sizes): Declare.
8230 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
8231 there to pass_early_object_sizes, drop parameter.
8232 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
8233 drop parameter, move pass_post_ipa_warn right after that.
8234 * tree-object-size.c (pass_object_sizes::execute): Rename to...
8235 (object_sizes_execute): ... this. Add insert_min_max_p argument.
8236 (pass_data_object_sizes): Move after object_sizes_execute.
8237 (pass_object_sizes): Likewise. In execute method call
8238 object_sizes_execute, drop set_pass_param method and insert_min_max_p
8239 non-static data member and its initializer in the ctor.
8240 (pass_data_early_object_sizes, pass_early_object_sizes,
8241 make_pass_early_object_sizes): New.
8242 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
8243 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
8244
8245 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
8246
8247 PR target/101275
8248 * config/riscv/constraints.md ("S"): Update description and remove
8249 @internal.
8250 * doc/md.texi (Machine Constraints): Document the 'S' constraints
8251 for RISC-V.
8252
8253 2021-07-13 Richard Biener <rguenther@suse.de>
8254
8255 Revert:
8256 2021-07-12 Richard Biener <rguenther@suse.de>
8257
8258 * tree-vect-slp.c (vect_slp_region): Show the number of
8259 SLP graph entries in the optimization message.
8260
8261 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
8262
8263 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
8264 value to to long.
8265 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
8266 return type to long.
8267 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
8268 type to long.
8269
8270 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
8271
8272 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
8273 Query relation between the 2 operands and use it.
8274
8275 2021-07-12 Sergei Trofimovich <siarheit@google.com>
8276
8277 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
8278
8279 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
8280
8281 PR target/101424
8282 * config/i386/predicates.md (vec_setm_sse41_operand):
8283 Rename from vec_setm_operand.
8284 (vec_setm_avx2_operand): New predicate.
8285 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
8286 Use vec_setm_sse41_operand as operand 2 predicate.
8287 (vec_set<V_256_512:mode): New expander.
8288 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
8289 as operand 2 predicate.
8290
8291 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
8292
8293 PR tree-optimization/101335
8294 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
8295
8296 2021-07-12 Andrew Pinski <apinski@marvell.com>
8297
8298 * tree-ssa-phiopt.c (match_simplify_replacement): Move
8299 insert of the sequence before the movement of the
8300 statement. Check if to see if the statement is used
8301 outside of the original phi to see if we should move it.
8302
8303 2021-07-12 Richard Biener <rguenther@suse.de>
8304
8305 * dump-context.h (debug_dump_context::debug_dump_context):
8306 Add FILE * parameter defaulted to stderr.
8307 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
8308 * tree-vect-slp.c (dot_slp_tree): New functions.
8309
8310 2021-07-12 Richard Biener <rguenther@suse.de>
8311
8312 PR tree-optimization/101373
8313 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
8314 references when the BB may not return.
8315 (compute_avail): Pass in the function we're working on and
8316 replace cfun references with it. Externally throwing
8317 const calls also possibly terminate the function.
8318 (pass_pre::execute): Pass down the function we're working on.
8319 * gcse.c (compute_hash_table_work): Externally throwing
8320 const/pure calls also need record_last_mem_set_info.
8321 * postreload-gcse.c (record_opr_changes): Looping or externally
8322 throwing const/pure calls also need record_last_mem_set_info.
8323
8324 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
8325
8326 * recog.c (memory_address_addr_space_p): Change the type to bool.
8327 Return true/false instead of 1/0.
8328 (offsettable_memref_p): Ditto.
8329 (offsettable_nonstrict_memref_p): Ditto.
8330 (offsettable_address_addr_space_p): Ditto.
8331 Change the type of addressp indirect function to bool.
8332 * recog.h (memory_address_addr_space_p): Change the type to bool.
8333 (strict_memory_address_addr_space_p): Ditto.
8334 (offsettable_memref_p): Ditto.
8335 (offsettable_nonstrict_memref_p): Ditto.
8336 (offsettable_address_addr_space_p): Ditto.
8337 * reload.c (maybe_memory_address_addr_space_p): Ditto.
8338 (strict_memory_address_addr_space_p): Change the type to bool.
8339 Return true/false instead of 1/0.
8340 (maybe_memory_address_addr_space_p): Change the type to bool.
8341
8342 2021-07-12 Richard Biener <rguenther@suse.de>
8343
8344 * tree-vect-slp.c (vect_slp_region): Show the number of
8345 SLP graph entries in the optimization message.
8346
8347 2021-07-12 Richard Biener <rguenther@suse.de>
8348
8349 PR tree-optimization/101394
8350 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
8351 copies from abnormals for a full redundancy.
8352
8353 2021-07-12 Richard Biener <rguenther@suse.de>
8354
8355 PR middle-end/101423
8356 * gimple.c (gimple_could_trap_p_1): Internal function calls
8357 do not trap.
8358 * tree-eh.c (tree_could_trap_p): Likewise.
8359
8360 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
8361
8362 PR target/66791
8363 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
8364 __a * __b.
8365 (vmulq_n_u32): Likewise.
8366 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
8367 (vmulq_n_f32): Likewise.
8368 (vmul_n_f16): Likewise.
8369 (vmulq_n_f16): Likewise.
8370
8371 2021-07-12 Martin Liska <mliska@suse.cz>
8372
8373 PR sanitizer/101425
8374 * gcc.c (check_offload_target_name): Call
8375 candidates_list_and_hint only if we have a candidate.
8376
8377 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
8378
8379 PR target/98435
8380 * config/arm/neon.md (vec_init): Move to ...
8381 * config/arm/vec-common.md (vec_init): ... here.
8382 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
8383
8384 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
8385
8386 PR tree-optimization/101403
8387 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
8388 signedness of the shift is not the same as the signedness of
8389 the type extension.
8390
8391 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
8392 Uroš Bizjak <ubizjak@gmail.com>
8393
8394 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
8395 divmod of a constant numerator with new define_insn_and_split.
8396
8397 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
8398
8399 PR target/100152
8400 * config/i386/i386-expand.c (ix86_expand_call): If a call is
8401 to a non-local-binding, or local but to a public symbol, then
8402 assume that it might be indirected via the lazy symbol binder.
8403 Mark R10 and R10 as clobbered in that case.
8404
8405 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
8406
8407 PR target/101377
8408 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
8409 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
8410 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
8411
8412 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
8413
8414 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
8415 log2 range of operands[3] to [1,31].
8416 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
8417
8418 2021-07-09 Sergei Trofimovich <siarheit@google.com>
8419
8420 * doc/md.texi: Don't split @smallexample in multiple @groups.
8421
8422 2021-07-09 Sergei Trofimovich <siarheit@google.com>
8423
8424 * doc/md.texi: Add missing 'see' word.
8425
8426 2021-07-09 Andrew Pinski <apinski@marvell.com>
8427
8428 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
8429 to take sequence and gimple_match_op. Accept the case where
8430 op is a SSA_NAME and one statement in the sequence.
8431 Also allow constants.
8432 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
8433 Update call to phiopt_early_allow. Discard the sequence if not
8434 used.
8435
8436 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
8437
8438 PR target/100760
8439 PR target/100761
8440 PR target/100762
8441 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
8442 instead of ISA_HAS_MSA.
8443 (mips_expand_vec_unpack): Likewise.
8444 (mips_expand_vector_init): Likewise.
8445
8446 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
8447
8448 * config/rs6000/vsx.md (mods_<mode>): Rename to...
8449 (mod<mode>3): ... this.
8450 (modu_<mode>): Rename to...
8451 (umod<mode>3): ... this.
8452 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
8453 MODU_V4SI): Adjust.
8454
8455 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
8456
8457 * config/h8300/shiftrotate.md (variable shifts): Expose condition
8458 code handling for the test before the loop.
8459
8460 2021-07-08 Martin Jambor <mjambor@suse.cz>
8461
8462 PR ipa/101066
8463 * ipa-sra.c (class isra_call_summary): New member
8464 m_before_any_store, initialize it in the constructor.
8465 (isra_call_summary::dump): Dump the new field.
8466 (ipa_sra_call_summaries::duplicate): Copy it.
8467 (process_scan_results): Set it.
8468 (isra_write_edge_summary): Stream it.
8469 (isra_read_edge_summary): Likewise.
8470 (param_splitting_across_edge): Only override
8471 safe_to_import_accesses if m_before_any_store is set.
8472
8473 2021-07-08 Martin Sebor <msebor@redhat.com>
8474
8475 PR bootstrap/101374
8476 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
8477 Use Object Size Type 0 instead of 1.
8478
8479 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
8480
8481 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
8482 if condition.
8483
8484 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
8485
8486 * match.pd: Simplify an extend-operate-truncate sequence involving
8487 a POLY_INT_CST.
8488
8489 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
8490 Richard Biener <rguenther@suse.de>
8491
8492 PR tree-optimization/40210
8493 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
8494 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
8495 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
8496
8497 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
8498
8499 PR target/100637
8500 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
8501 Handle V4QI mode.
8502 * config/i386/mmx.md (V_32): New mode iterator.
8503 (mov<V_32:mode>): Use V_32 mode iterator.
8504 (*mov<V_32:mode>_internal): Ditto.
8505 (*push<V_32:mode>2_rex64): Ditto.
8506 (*push<V_32:mode>2): Ditto.
8507 (movmisalign<V_32:mode>): Ditto.
8508 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
8509 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
8510 (vec_unpacks_lo_v4qi): New expander.
8511 (vec_unpacks_hi_v4qi): Ditto.
8512 (vec_unpacku_lo_v4qi): Ditto.
8513 (vec_unpacku_hi_v4qi): Ditto.
8514 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
8515 (VALID_INT_MODE_P): Ditto.
8516
8517 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
8518
8519 PR target/100809
8520 * config/rs6000/rs6000.md (udivti3): New insn.
8521 (divti3): New insn.
8522 (umodti3): New insn.
8523 (modti3): New insn.
8524
8525 2021-07-07 Martin Sebor <msebor@redhat.com>
8526
8527 PR tree-optimization/100137
8528 PR tree-optimization/99121
8529 PR tree-optimization/97027
8530 * builtins.c (access_ref::access_ref): Also set offmax.
8531 (access_ref::offset_in_range): Define new function.
8532 (access_ref::add_offset): Set offmax.
8533 (access_ref::inform_access): Handle access_none.
8534 (handle_mem_ref): Clear ostype.
8535 (compute_objsize_r): Handle ASSERT_EXPR.
8536 * builtins.h (struct access_ref): Add offmax member.
8537 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
8538 compute_objsize() and simplify.
8539
8540 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
8541
8542 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
8543 and VSX_BUILTIN_STXVP.
8544
8545 2021-07-07 Martin Sebor <msebor@redhat.com>
8546
8547 PR target/101363
8548 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
8549 a stray %K from error_at() missed in r12-2088.
8550
8551 2021-07-07 Richard Biener <rguenther@suse.de>
8552
8553 PR tree-optimization/99728
8554 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
8555 aggregate copies.
8556 (mem_refs_may_alias_p): Add assert we handled aggregate
8557 copies elsewhere.
8558 (sm_seq_valid_bb): Give up when running into aggregate copies.
8559 (ref_indep_loop_p): Handle aggregate copies as never
8560 being invariant themselves but allow other refs to be
8561 disambiguated against them.
8562 (can_sm_ref_p): Do not try to apply store-motion to aggregate
8563 copies.
8564
8565 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
8566
8567 PR debug/101283
8568 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
8569 number of bits.
8570
8571 2021-07-06 Martin Sebor <msebor@redhat.com>
8572
8573 * gimple-pretty-print.c (percent_G_format): Remove.
8574 * tree-diagnostic.c (default_tree_printer): Remove calls.
8575 * tree-pretty-print.c (percent_K_format): Remove.
8576 * tree-pretty-print.h (percent_K_format): Remove.
8577
8578 2021-07-06 Martin Sebor <msebor@redhat.com>
8579
8580 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
8581 Remove %K and use error_at.
8582 (aarch64_expand_fcmla_builtin): Same.
8583 (aarch64_expand_builtin_tme): Same.
8584 (aarch64_expand_builtin_memtag): Same.
8585 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
8586 (arm_expand_builtin): Same.
8587 * config/arm/arm.c (bounds_check): Same.
8588
8589 2021-07-06 Martin Sebor <msebor@redhat.com>
8590
8591 * builtins.c (warn_string_no_nul): Remove %G.
8592 (maybe_warn_for_bound): Same.
8593 (warn_for_access): Same.
8594 (check_access): Same.
8595 (check_strncat_sizes): Same.
8596 (expand_builtin_strncat): Same.
8597 (expand_builtin_strncmp): Same.
8598 (expand_builtin): Same.
8599 (expand_builtin_object_size): Same.
8600 (warn_dealloc_offset): Same.
8601 (maybe_emit_free_warning): Same.
8602 * calls.c (maybe_warn_alloc_args_overflow): Same.
8603 (maybe_warn_nonstring_arg): Same.
8604 (maybe_warn_rdwr_sizes): Same.
8605 * expr.c (expand_expr_real_1): Remove %K.
8606 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
8607 (gimple_fold_builtin_strncat): Same.
8608 * gimple-ssa-sprintf.c (format_directive): Same.
8609 (handle_printf_call): Same.
8610 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
8611 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
8612 (maybe_diag_access_bounds): Same. Call gimple_location.
8613 (check_bounds_or_overlap): Same.
8614 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
8615 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
8616 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
8617 (maybe_diag_stxncpy_trunc): Same.
8618 (handle_builtin_stxncpy_strncat): Same.
8619 (maybe_warn_pointless_strcmp): Same.
8620 * tree-ssa-uninit.c (maybe_warn_operand): Same.
8621
8622 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
8623
8624 PR target/97194
8625 * config/i386/predicates.md (vec_setm_operand): Enable
8626 register_operand for TARGET_SSE4_1.
8627 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
8628 as operand 2 predicate. Call ix86_expand_vector_set_var
8629 for non-constant index operand.
8630 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
8631 Call ix86_expand_vector_set_var for non-constant index operand.
8632
8633 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
8634
8635 * config/h8300/jumpcall.md (*branch): When possible, generate
8636 the comparison in CCZN mode.
8637 * config/h8300/predicates.md (simple_memory_operand): Reject all
8638 auto-increment addressing modes.
8639
8640 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
8641
8642 PR bootstrap/100246
8643 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
8644 this type.
8645
8646 2021-07-06 Richard Biener <rguenther@suse.de>
8647
8648 * doc/md.texi (vec_fmaddsub<mode>4): Document.
8649 (vec_fmsubadd<mode>4): Likewise.
8650 * optabs.def (vec_fmaddsub$a4): Add.
8651 (vec_fmsubadd$a4): Likewise.
8652 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
8653 (IFN_VEC_FMSUBADD): Likewise.
8654 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
8655 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
8656 (addsub_pattern::build): Likewise.
8657 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
8658 and CFN_VEC_FMSUBADD are not transparent for permutes.
8659 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
8660 (vec_fmsubadd<mode>4): Likewise.
8661
8662 2021-07-06 Richard Biener <rguenther@suse.de>
8663
8664 * doc/invoke.texi (fmove-loop-stores): Document.
8665 * common.opt (fmove-loop-stores): New option.
8666 * opts.c (default_options_table): Enable -fmove-loop-stores
8667 at -O1 but not -Og.
8668 * tree-ssa-loop-im.c (pass_lim::execute): Pass
8669 flag_move_loop_stores instead of true to
8670 loop_invariant_motion_in_fun.
8671
8672 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
8673
8674 * doc/install.texi: Document --with-dsymutil.
8675
8676 2021-07-06 Andrew Pinski <apinski@marvell.com>
8677
8678 PR tree-optimization/101256
8679 * dbgcnt.def (phiopt_edge_range): New counter.
8680 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
8681 Check to make sure the new name is defined in the same
8682 bb as the conditional before duplicating range info.
8683 Also add debug counter.
8684
8685 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
8686
8687 PR rtl-optimization/100328
8688 * config/i386/i386-options.c (ix86_option_override_internal):
8689 Set param_ira_consider_dup_in_all_alts to 0.
8690
8691 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
8692
8693 PR rtl-optimization/100328
8694 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
8695 parameter.
8696 * ira.c (ira_get_dup_out_num): Adjust as parameter
8697 param_ira_consider_dup_in_all_alts.
8698 * params.opt (ira-consider-dup-in-all-alts): New.
8699 * ira-conflicts.c (process_regs_for_copy): Add one parameter
8700 single_input_op_has_cstr_p.
8701 (get_freq_for_shuffle_copy): New function.
8702 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
8703 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
8704
8705 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
8706
8707 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
8708 generate condition code aware RTL directly.
8709
8710 2021-07-05 Andrew Pinski <apinski@marvell.com>
8711
8712 PR tree-optimization/101039
8713 * match.pd (A CMP 0 ? A : -A): New patterns.
8714 * tree-ssa-phiopt.c (abs_replacement): Delete function.
8715 (tree_ssa_phiopt_worker): Don't call abs_replacement.
8716 Update comment about abs_replacement.
8717
8718 2021-07-05 Andrew Pinski <apinski@marvell.com>
8719
8720 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
8721 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
8722
8723 2021-07-05 Andrew Pinski <apinski@marvell.com>
8724
8725 * tree-ssa-phiopt.c (match_simplify_replacement):
8726 Add early_p argument. Call gimple_simplify_phiopt
8727 instead of gimple_simplify.
8728 (tree_ssa_phiopt_worker): Update call to
8729 match_simplify_replacement and allow unconditionally.
8730 (phiopt_early_allow): New function.
8731 (gimple_simplify_phiopt): New function.
8732
8733 2021-07-05 Andrew Pinski <apinski@marvell.com>
8734
8735 PR middle-end/101237
8736 * fold-const.c (negate_expr_p): Remove call to element_mode
8737 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
8738 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
8739 (fold_negate_expr_1): Likewise.
8740 (const_unop): Likewise.
8741 (fold_cond_expr_with_comparison): Likewise.
8742 (fold_binary_loc): Likewise.
8743 (fold_ternary_loc): Likewise.
8744 (tree_call_nonnegative_warnv_p): Likewise.
8745 * match.pd (-(A + B) -> (-B) - A): Likewise.
8746
8747 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
8748
8749 * configure.ac: Handle --with-dsymutil in the same way as we
8750 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
8751 Extract the type and version for the dsymutil configured or
8752 found by the default searches.
8753 * config.in: Regenerated.
8754 * configure: Regenerated.
8755 * collect2.c (do_dsymutil): Handle locating dsymutil in the
8756 same way as for the assembler and linker.
8757 * config/darwin.h (DSYMUTIL): Delete.
8758 * gcc.c: Report a configured dsymutil correctly.
8759 * exec-tool.in: Allow for dsymutil.
8760
8761 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
8762
8763 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
8764 Handle V4QI and V2HI modes.
8765 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
8766 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
8767 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
8768 Handle 4-byte dual operands with TARGET_XOP and single operands
8769 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
8770 mmx_pshufbv4qi3 for TARGET_SSSE3.
8771 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
8772 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
8773 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
8774 (expand_vec_perm_even_odd_1): Handle V4QI mode.
8775 (expand_vec_perm_broadcast_1): Handle V4QI mode.
8776 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
8777 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
8778 (mmx_pshufbv4qi3): Ditto.
8779 (*mmx_pblendw32): Ditto.
8780 (*mmx_pblendw64): Rename from *mmx_pblendw.
8781 (mmx_punpckhbw_low): New insn_and_split pattern.
8782 (mmx_punpcklbw_low): Ditto.
8783
8784 2021-07-05 Richard Biener <rguenther@suse.de>
8785
8786 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
8787 set LOOP_C_INFINITE on the vectorized loop.
8788
8789 2021-07-05 Richard Biener <rguenther@suse.de>
8790
8791 PR middle-end/101291
8792 * cfgloopmanip.c (loop_version): Set the loop copy of the
8793 versioned loop to the new loop.
8794
8795 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
8796
8797 PR target/100269
8798 * config.gcc: Ensure that Darwin biarch definitions are
8799 added before i386.h.
8800 * config/i386/darwin.h (TARGET_64BIT): Remove.
8801 (PR80556_WORKAROUND): New.
8802 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
8803 (DARWIN_SUBARCH_SPEC): New.
8804 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
8805 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
8806 (REAL_LIBGCC_SPEC): Remove.
8807 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
8808 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
8809 (REAL_LIBGCC_SPEC): Remove.
8810
8811 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
8812
8813 PR middle-end/101294
8814 * expr.c (store_constructor): Don't use vec_duplicate on vector.
8815
8816 2021-07-02 Martin Sebor <msebor@redhat.com>
8817
8818 PR middle-end/98871
8819 PR middle-end/98512
8820 * diagnostic.c (get_any_inlining_info): New.
8821 (update_effective_level_from_pragmas): Handle inlining context.
8822 (diagnostic_enabled): Same.
8823 (diagnostic_report_diagnostic): Same.
8824 * diagnostic.h (struct diagnostic_info): Add ctor.
8825 (struct diagnostic_context): Add new member.
8826 * tree-diagnostic.c (set_inlining_locations): New.
8827 (tree_diagnostics_defaults): Set new callback pointer.
8828
8829 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
8830
8831 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
8832 New macros.
8833 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
8834 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
8835 lxvp and stxvp built-ins.
8836 (mma_init_builtins): Handle lxvp and stxvp built-ins.
8837 (builtin_function_type): Likewise.
8838 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
8839
8840 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
8841
8842 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
8843 additional argument for the code.
8844 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
8845 argument for the code. Just return if the ZN bits are useful or
8846 not rather than the old style CC_* enums.
8847 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
8848 more generic shiftqi patterns.
8849 (shifthi_noscratch, shiftsi_noscratch): Similarly.
8850 (shiftqi_noscratch_set_flags): New pattern.
8851 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
8852
8853 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
8854
8855 PR tree-optimization/101223
8856 * range-op.cc (build_lt): Add -1 for signed values.
8857 (built_gt): Subtract -1 for signed values.
8858
8859 2021-07-02 David Faust <david.faust@oracle.com>
8860
8861 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
8862 (btf_asm_type): Likewise.
8863
8864 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
8865
8866 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
8867 an array of rtx rather than a pointer to rtx. Add code argument.
8868 (compute_a_shift_length): Similarly.
8869 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
8870 shift itself isn't an operand. Create dummy operand[0] to carry
8871 a mode and pass a suitable rtx code to compute_a_shift_length.
8872 (get_shift_alg): Adjust operand number of clobber in output templates.
8873 (output_a_shift): Make first argument an array of rtx rather than
8874 a pointer to rtx. Add code argument for the type of shift.
8875 Adjust now that the shift itself is no longer an operand.
8876 (compute_a_shift_length): Similarly.
8877 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
8878 iterator rather than nshift_operator.
8879 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
8880 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
8881 and compute_a_shift_length.
8882 (shiftqi_noscratch_clobber_flags): Likewise.
8883 (shifthi_noscratch_clobber_flags): Likewise.
8884 (shiftsi_noscratch_clobber_flags): Likewise.
8885
8886 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
8887
8888 PR debug/101283
8889 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
8890 dsymutil for BTF/CTF.
8891
8892 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
8893
8894 PR debug/101283
8895 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
8896 segment to include BTF.
8897 (BTF_INFO_SECTION_NAME): New.
8898
8899 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
8900
8901 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
8902 (small_data_operand, memreg_operand, small_insn_p): Likewise.
8903 * config/m32r/m32r.c (call_operand): Adjust return type.
8904 (small_data_operand, memreg_operand): Likewise.
8905
8906 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
8907
8908 * config/frv/frv-protos.h (integer_register_operand): Adjust return
8909 type.
8910 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
8911 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
8912 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
8913 (move_source_operand, move_destination_operand): Likewise.
8914 (condexec_source_operand, condexec_dest_operand): Likewise.
8915 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
8916 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
8917 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
8918 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
8919 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
8920 (even_fpr_operand, odd_fpr_operand): Likewise.
8921 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
8922 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
8923 (uint4_operand, uint1_operand, int_2word_operand): Likewise
8924 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
8925 (relational_operator, float_relational_operator): Likewise.
8926 (ccr_eqne_operator, minmax_operator): Likewise.
8927 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
8928 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
8929 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
8930 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
8931 (quad_acc_operand, accg_operand): Likewise.
8932
8933 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
8934
8935 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
8936 return type to a bool.
8937 (nonimmediate_nonstack_operand): Likewise.
8938 (xstormy16_splittable_below100_operand): Likewise.
8939 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
8940 return type.
8941 (xstormy16_splittable_below100_operand): Likewise.
8942
8943 2021-07-02 Richard Biener <rguenther@suse.de>
8944
8945 PR tree-optimization/101293
8946 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
8947 with combined offsets.
8948 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
8949 combined with the rest of the offset.
8950
8951 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
8952
8953 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
8954 PIC encodings for PE-COFF targets.
8955
8956 2021-07-02 Jakub Jelinek <jakub@redhat.com>
8957
8958 PR target/101286
8959 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
8960 Return nullptr for TImode inner mode.
8961
8962 2021-07-02 Richard Biener <rguenther@suse.de>
8963
8964 PR tree-optimization/101280
8965 PR tree-optimization/101173
8966 * gimple-loop-interchange.cc
8967 (tree_loop_interchange::valid_data_dependences): Properly
8968 guard all dependence checks with DDR_REVERSED_P or its
8969 inverse.
8970
8971 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
8972
8973 * config/i386/i386-expand.c (ix86_expand_builtin):
8974 Add branch to clear odata when ZF is set for asedecenc_expand
8975 and wideaesdecenc_expand.
8976
8977 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
8978
8979 * config/i386/gcc-auto-profile: regenerate
8980
8981 2021-07-02 liuhongt <hongtao.liu@intel.com>
8982
8983 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
8984 (trunc<mode><pmov_dst_4_lower>2): this.
8985
8986 2021-07-01 David Malcolm <dmalcolm@redhat.com>
8987
8988 * diagnostic.h (diagnostic_context::m_file_cache): New field.
8989 * input.c (class fcache): Rename to...
8990 (class file_cache_slot): ...this, making most members private and
8991 prefixing fields with "m_".
8992 (file_cache_slot::get_file_path): New accessor.
8993 (file_cache_slot::get_use_count): New accessor.
8994 (file_cache_slot::missing_trailing_newline_p): New accessor.
8995 (file_cache_slot::inc_use_count): New.
8996 (fcache_buffer_size): Move to...
8997 (file_cache_slot::buffer_size): ...here.
8998 (fcache_line_record_size): Move to...
8999 (file_cache_slot::line_record_size): ...here.
9000 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
9001 (fcache_tab_size): Move to file_cache::num_file_slots.
9002 (diagnostic_file_cache_init): Update for move of fcache_tab
9003 to global_dc->m_file_cache.
9004 (diagnostic_file_cache_fini): Likewise.
9005 (lookup_file_in_cache_tab): Convert to...
9006 (file_cache::lookup_file): ...this.
9007 (diagnostics_file_cache_forcibly_evict_file): Update for move of
9008 fcache_tab to global_dc->m_file_cache, moving most of
9009 implementation to...
9010 (file_cache::forcibly_evict_file): ...this new function and...
9011 (file_cache_slot::evict): ...this new function.
9012 (evicted_cache_tab_entry): Convert to...
9013 (file_cache::evicted_cache_tab_entry): ...this.
9014 (add_file_to_cache_tab): Convert to...
9015 (file_cache::add_file): ...this, moving bulk of implementation
9016 to...
9017 (file_cache_slot::create): ..this new function.
9018 (file_cache::file_cache): New.
9019 (file_cache::~file_cache): New.
9020 (lookup_or_add_file_to_cache_tab): Convert to...
9021 (file_cache::lookup_or_add_file): ..this new function.
9022 (fcache::fcache): Rename to...
9023 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
9024 to fields.
9025 (fcache::~fcache): Rename to...
9026 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
9027 to fields.
9028 (needs_read): Convert to...
9029 (file_cache_slot::needs_read_p): ...this.
9030 (needs_grow): Convert to...
9031 (file_cache_slot::needs_grow_p): ...this.
9032 (maybe_grow): Convert to...
9033 (file_cache_slot::maybe_grow): ...this.
9034 (read_data): Convert to...
9035 (file_cache_slot::read_data): ...this.
9036 (maybe_read_data): Convert to...
9037 (file_cache_slot::maybe_read_data): ...this.
9038 (get_next_line): Convert to...
9039 (file_cache_slot::get_next_line): ...this.
9040 (goto_next_line): Convert to...
9041 (file_cache_slot::goto_next_line): ...this.
9042 (read_line_num): Convert to...
9043 (file_cache_slot::read_line_num): ...this.
9044 (location_get_source_line): Update for moving of globals to
9045 global_dc->m_file_cache.
9046 (location_missing_trailing_newline): Likewise.
9047 * input.h (class file_cache_slot): New forward decl.
9048 (class file_cache): New.
9049
9050 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
9051
9052 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
9053 128-bit floating point conditional move support.
9054 (have_compare_and_set_mask): Add IEEE 128-bit floating point
9055 types.
9056 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
9057 (mov<mode>cc_p10, IEEE128 iterator): New insn.
9058 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
9059 (fpmask<mode>, IEEE128 iterator): New insn.
9060 (xxsel<mode>, IEEE128 iterator): New insn.
9061
9062 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
9063
9064 PR debug/101283
9065 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
9066
9067 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
9068
9069 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
9070 Make it global.
9071 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
9072 New prototype.
9073 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
9074 (vec_duplicate<mode>): New expander.
9075
9076 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
9077
9078 PR target/100865
9079 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
9080 New prototype.
9081 (ix86_byte_broadcast): New function.
9082 (ix86_convert_const_wide_int_to_broadcast): Likewise.
9083 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
9084 size is 16 bytes or bigger.
9085 (ix86_broadcast_from_integer_constant): New function.
9086 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
9087 to broadcast if mode size is 16 bytes or bigger.
9088 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
9089 prototype.
9090 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
9091
9092 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
9093
9094 * config/i386/predicates.md (ix86_endbr_immediate_operand):
9095 Return true/false instead of 1/0.
9096 (movq_parallel): Ditto.
9097
9098 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
9099
9100 * recog.c (general_operand): Return true/false instead of 1/0.
9101 (register_operand): Ditto.
9102 (immediate_operand): Ditto.
9103 (const_int_operand): Ditto.
9104 (const_scalar_int_operand): Ditto.
9105 (const_double_operand): Ditto.
9106 (push_operand): Ditto.
9107 (pop_operand): Ditto.
9108 (memory_operand): Ditto.
9109 (indirect_operand): Ditto.
9110
9111 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
9112
9113 * genpreds.c (write_predicate_subfunction):
9114 Change the type of written subfunction to bool.
9115 (write_one_predicate_function):
9116 Change the type of written function to bool.
9117 (write_tm_preds_h): Ditto.
9118 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
9119 * recog.c (general_operand): Change the type to bool.
9120 (address_operand): Ditto.
9121 (register_operand): Ditto.
9122 (pmode_register_operand): Ditto.
9123 (scratch_operand): Ditto.
9124 (immediate_operand): Ditto.
9125 (const_int_operand): Ditto.
9126 (const_scalar_int_operand): Ditto.
9127 (const_double_operand): Ditto.
9128 (nonimmediate_operand): Ditto.
9129 (nonmemory_operand): Ditto.
9130 (push_operand): Ditto.
9131 (pop_operand): Ditto.
9132 (memory_operand): Ditto.
9133 (indirect_operand): Ditto.
9134 (ordered_comparison_operator): Ditto.
9135 (comparison_operator): Ditto.
9136 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
9137 Change the type of indirect predicate function to bool.
9138 * config/rs6000/rs6000.c (easy_vector_constant):
9139 Change the type to bool.
9140 * config/mips/mips-protos.h (m16_based_address_p):
9141 Change the type of operand 3 to bool.
9142
9143 2021-07-01 Richard Biener <rguenther@suse.de>
9144
9145 PR tree-optimization/101280
9146 PR tree-optimization/101173
9147 * gimple-loop-interchange.cc
9148 (tree_loop_interchange::valid_data_dependences): Revert
9149 previous change and instead correctly handle DDR_REVERSED_P
9150 dependence.
9151
9152 2021-07-01 Richard Biener <rguenther@suse.de>
9153
9154 PR tree-optimization/101278
9155 * tree-ssa-dse.c (dse_classify_store): First check for
9156 uses, then ignore stmt for chaining purposes.
9157
9158 2021-07-01 Richard Biener <rguenther@suse.de>
9159
9160 PR tree-optimization/100778
9161 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
9162 vectorized ops ahead of their scalar BB.
9163
9164 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
9165
9166 PR target/101044
9167 * config/i386/i386.md (*nabs<dwi>2_doubleword):
9168 New insn_and_split pattern.
9169 (*nabs<dwi>2_1): Ditto.
9170 * config/i386/i386-features.c
9171 (general_scalar_chain::compute_convert_gain):
9172 Handle (NEG (ABS (...))) RTX. Rewrite src code
9173 scanner as switch statement.
9174 (general_scalar_chain::convert_insn):
9175 Handle (NEG (ABS (...))) RTX.
9176 (general_scalar_to_vector_candidate_p):
9177 Detect (NEG (ABS (...))) RTX. Reorder case statements
9178 for (AND (NOT (...) ...)) fallthrough.
9179
9180 2021-07-01 Richard Biener <rguenther@suse.de>
9181
9182 PR tree-optimization/101178
9183 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
9184 (slpg::perm_in): Add.
9185 (slpg::get_perm_in): Remove.
9186 (slpg::get_perm_materialized): Add.
9187 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
9188 during permute propagation and materialization.
9189
9190 2021-07-01 Jakub Jelinek <jakub@redhat.com>
9191
9192 PR debug/101266
9193 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
9194
9195 2021-07-01 Jakub Jelinek <jakub@redhat.com>
9196
9197 PR middle-end/94366
9198 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
9199 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
9200 use boolean_type_node instead of integer_type_node as NE_EXPR type.
9201 (lower_reduction_clauses): Likewise.
9202
9203 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
9204
9205 * config/gcn/gcn.c: Include dwarf2.h.
9206 (gcn_addr_space_debug): New function.
9207 (TARGET_ADDR_SPACE_DEBUG): New hook.
9208
9209 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
9210
9211 * common/config/gcn/gcn-common.c
9212 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
9213 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
9214 when emitting CFI.
9215 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
9216 (gcn_frame_pointer_rqd): New function.
9217 (TARGET_FRAME_POINTER_REQUIRED): New hook.
9218
9219 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
9220
9221 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
9222 prologue register saves.
9223 (gcn_debug_unwind_info): Use UI_DWARF2.
9224 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
9225 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
9226 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
9227 (DWARF_LINK_REGISTER): New define.
9228 (FIRST_PSEUDO_REGISTER): Increment.
9229 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
9230 (CALL_USED_REGISTERS): Likewise.
9231 (REGISTER_NAMES): Likewise.
9232
9233 2021-06-30 Richard Biener <rguenther@suse.de>
9234
9235 PR tree-optimization/101267
9236 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
9237 API and use SLP compatible interface of vect_is_simple_use.
9238 Reject not vectorized SLP defs for callers that do not support
9239 that.
9240 (vect_check_store_rhs): Handle masked stores and pass down
9241 the appropriate operator index.
9242 (vectorizable_call): Adjust.
9243 (vectorizable_store): Likewise.
9244 (vectorizable_load): Likewise. Handle SLP pecularity of
9245 masked loads.
9246 (vect_is_simple_use): Remove special-casing of masked stores.
9247
9248 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
9249
9250 * common.opt (foffload): Remove help as Driver only.
9251 * gcc.c (display_help): Add -foffload.
9252
9253 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
9254
9255 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
9256 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
9257 a candidate list; better inform no offload target is configured
9258 and fix hint extraction when passed target is not '\0' at [len].
9259 * common.opt (foffload): Add tailing '.'.
9260 (foffload-options): Likewise; fix flag name in the help string.
9261
9262 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
9263
9264 PR target/66791
9265 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
9266 (vcage_f32): Gate comparison on __FAST_MATH__.
9267 (vcageq_f32): Likewise.
9268 (vcale_f32): Likewise.
9269 (vcaleq_f32): Likewise.
9270 (vcagt_f32): Likewise.
9271 (vcagtq_f32): Likewise.
9272 (vcalt_f32): Likewise.
9273 (vcaltq_f32): Likewise.
9274 (vcage_f16): Likewise.
9275 (vcageq_f16): Likewise.
9276 (vcale_f16): Likewise.
9277 (vcaleq_f16): Likewise.
9278 (vcagt_f16): Likewise.
9279 (vcagtq_f16): Likewise.
9280 (vcalt_f16): Likewise.
9281 (vcaltq_f16): Likewise.
9282
9283 2021-06-30 Richard Biener <rguenther@suse.de>
9284
9285 PR tree-optimization/101264
9286 * tree-vect-slp.c (vect_optimize_slp): Propagate the
9287 computed perm_in to all "any" permute successors
9288 we cannot de-duplicate immediately.
9289
9290 2021-06-30 liuhongt <hongtao.liu@intel.com>
9291
9292 PR target/101248
9293 * config/i386/sse.md
9294 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
9295 Refined to ..
9296 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
9297 this.
9298 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
9299 * config/i386/subst.md (maskz_scalar): New define_subst.
9300 (maskz_scalar_name): New subst_attr.
9301 (maskz_scalar_op5): Ditto.
9302 (round_saeonly_maskz_scalar_op5): Ditto.
9303 (round_saeonly_maskz_scalar_operand5): Ditto.
9304
9305 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
9306
9307 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
9308 Increase code CSECT alignment to at least 32 bytes.
9309 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
9310 alignment designation.
9311
9312 2021-06-29 Sergei Trofimovich <siarheit@google.com>
9313
9314 * doc/generic.texi: Fix s/net yet/not yet/ typo.
9315
9316 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
9317
9318 PR tree-optimization/101254
9319 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
9320 wrapping/non-wrapping when setting the result range.
9321
9322 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
9323
9324 * value-query.cc (gimple_range_global): Allow phis.
9325
9326 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
9327
9328 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
9329 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
9330 statement for location context.
9331 (check_for_binary_op_overflow): Ditto.
9332 (simplify_using_ranges::get_vr_for_comparison): Ditto.
9333 (simplify_using_ranges::compare_name_with_value): Ditto.
9334 (simplify_using_ranges::compare_names): Ditto.
9335 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
9336 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
9337 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
9338 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
9339 (simplify_using_ranges::two_valued_val_range_p): Ditto.
9340 (simplify_using_ranges::simplify): Ditto.
9341 * vr-values.h: Adjust prototypes.
9342
9343 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
9344
9345 PR target/95046
9346 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
9347
9348 2021-06-29 Julian Brown <julian@codesourcery.com>
9349
9350 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
9351 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
9352 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
9353 otherwise.
9354 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
9355 (MAX_FIXED_MODE_SIZE): Change to 128.
9356
9357 2021-06-29 Julian Brown <julian@codesourcery.com>
9358
9359 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
9360 (s_mnemonic): Add clrsb.
9361 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
9362 (clrsb<mode>2): Add expander for SImode/DImode.
9363
9364 2021-06-29 Julian Brown <julian@codesourcery.com>
9365
9366 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
9367 muldi3): Add patterns.
9368
9369 2021-06-29 Julian Brown <julian@codesourcery.com>
9370
9371 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
9372 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
9373
9374 2021-06-29 Julian Brown <julian@codesourcery.com>
9375
9376 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
9377
9378 2021-06-29 Joseph Myers <joseph@codesourcery.com>
9379
9380 * btfout.c, ctfout.c: Include "memmodel.h".
9381
9382 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
9383
9384 * gcc.c (check_offload_target_name): Cast len argument to
9385 %q.*s to 'int'; avoid -Wstringop-truncation warning.
9386
9387 2021-06-29 Richard Biener <rguenther@suse.de>
9388
9389 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
9390 to "any" permute nodes and relax "any" permute proapgation
9391 during iterative backward propagation.
9392
9393 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
9394
9395 PR other/67300
9396 * common.opt (-foffload=): Update description.
9397 (-foffload-options=): New.
9398 * doc/invoke.texi (C Language Options): Document
9399 -foffload and -foffload-options.
9400 * gcc.c (check_offload_target_name): New, split off from
9401 handle_foffload_option.
9402 (check_foffload_target_names): New.
9403 (handle_foffload_option): Handle -foffload=default.
9404 (driver_handle_option): Update for -foffload-options.
9405 * lto-opts.c (lto_write_options): Use -foffload-options
9406 instead of -foffload.
9407 * lto-wrapper.c (merge_and_complain, append_offload_options):
9408 Likewise.
9409 * opts.c (common_handle_option): Likewise.
9410
9411 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
9412
9413 * doc/invoke.texi (C Language Options): Sort options
9414 alphabetically in optlist and also the description itself.
9415 Remove leftover -fallow-single-precision from and add missing
9416 -fgnu-tm to the optlist.
9417
9418 2021-06-29 Richard Biener <rguenther@suse.de>
9419
9420 * tree-vect-slp.c (slpg_vertex::visited): Remove.
9421 (vect_slp_perms_eq): Handle -1 permutes.
9422 (vect_optimize_slp): Rewrite permute propagation.
9423
9424 2021-06-29 Jakub Jelinek <jakub@redhat.com>
9425
9426 PR c++/101210
9427 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
9428 perform the optimization in GENERIC when sanitizing and x has a
9429 reference type.
9430
9431 2021-06-29 Richard Biener <rguenther@suse.de>
9432
9433 PR tree-optimization/101242
9434 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
9435 PHIs with not represented initial values as leafs.
9436
9437 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
9438
9439 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
9440 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
9441 "register" keyword.
9442 (pdp11_initial_elimination_offset) Remove unused variable.
9443 (pdp11_cmp_length) Ditto.
9444 (pdp11_insn_cost): Ditto, and fix signedness warning.
9445
9446 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
9447
9448 * btfout.c: Include tm_p.h.
9449 * ctfout.c: Same.
9450
9451 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
9452
9453 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
9454 frame related.
9455 (bpf_expand_epilogue): Likewise.
9456 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
9457 Do not define DBX_DEBUGGING_INFO.
9458
9459 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
9460
9461 * doc/invoke.texi: Document the CTF and BTF debug info options.
9462
9463 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
9464 David Faust <david.faust@oracle.com>
9465 Jose E. Marchesi <jose.marchesi@oracle.com>
9466 Weimin Pan <weimin.pan@oracle.com>
9467
9468 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
9469 GTFILES. Add new object files.
9470 * common.opt: Add CTF and BTF debug info options.
9471 * btfout.c: New file.
9472 * ctfc.c: Likewise.
9473 * ctfc.h: Likewise.
9474 * ctfout.c: Likewise.
9475 * dwarf2ctf.c: Likewise.
9476 * dwarf2ctf.h: Likewise.
9477 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
9478 BTF_DEBUG.
9479 * dwarf2out.c (dwarf2out_source_line): Likewise.
9480 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
9481 be generated.
9482 (debug_format_do_cu): New function.
9483 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
9484 them if requested.
9485 Include dwarf2ctf.c.
9486 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
9487 formats.
9488 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
9489 (CTF_DEBUG): New bitmask.
9490 (BTF_DEBUG): Likewise.
9491 (enum ctf_debug_info_levels): New enum.
9492 * gengtype.c (open_base_files): Handle ctfc.h.
9493 (main): Handle uint32_t type.
9494 * flags.h (btf_debuginfo_p): New definition.
9495 (dwarf_based_debuginfo_p): Likewise.
9496 * opts.c (debug_type_names): Add entries for CTF and BTF.
9497 (btf_debuginfo_p): New function.
9498 (dwarf_based_debuginfo_p): Likewise.
9499 (common_handle_option): Handle -gctfN and -gbtf options.
9500 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
9501 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
9502 frontend is not C.
9503
9504 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
9505
9506 * dwarf2out.c (AT_class): Function is no longer static.
9507 (AT_int): Likewise.
9508 (AT_unsigned): Likewise.
9509 (AT_loc): Likewise.
9510 (get_AT): Likewise.
9511 (get_AT_string): Likewise.
9512 (get_AT_flag): Likewise.
9513 (get_AT_unsigned): Likewise.
9514 (get_AT_ref): Likewise.
9515 (new_die_raw): Likewise.
9516 (lookup_decl_die): Likewise.
9517 (base_type_die): Likewise.
9518 (add_name_attribute): Likewise.
9519 (add_AT_int): Likewise.
9520 (add_AT_unsigned): Likewise.
9521 (add_AT_loc): Likewise.
9522 (dw_get_die_tag): New function.
9523 (dw_get_die_child): Likewise.
9524 (dw_get_die_sib): Likewise.
9525 (struct dwarf_file_data): Move from here to dwarf2out.h
9526 (struct dw_attr_struct): Likewise.
9527 * dwarf2out.h: Analogous changes.
9528
9529 2021-06-28 Martin Jambor <mjambor@suse.cz>
9530
9531 PR ipa/93385
9532 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
9533 members m_dead_stmts and m_dead_ssas.
9534 * ipa-param-manipulation.c
9535 (ipa_param_body_adjustments::mark_dead_statements): New function.
9536 (ipa_param_body_adjustments::common_initialization): Call it on
9537 all removed but not split parameters.
9538 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
9539 new mwmbers.
9540 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
9541 are dead.
9542 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
9543 dead debug statements.
9544 (copy_phis_for_bb): Do not copy dead PHI nodes.
9545
9546 2021-06-28 Martin Jambor <mjambor@suse.cz>
9547
9548 PR ipa/93385
9549 * symtab-clones.h (clone_info): Removed member param_adjustments.
9550 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
9551 deal with pass-through splits now.
9552 (ipa_param_performed_split): Removed.
9553 (ipa_param_adjustments::modify_call): Adjusted parameters.
9554 (class ipa_param_body_adjustments): Adjusted parameters of
9555 register_replacement, modify_gimple_stmt and modify_call_stmt.
9556 (ipa_verify_edge_has_no_modifications): Declare.
9557 (ipa_edge_modifications_finalize): Declare.
9558 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
9559 performed_splits processing, pas only edge to padjs->modify_call,
9560 check that call arguments were not modified if they should not have
9561 been.
9562 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
9563 splits.
9564 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
9565 (ipa_edge_modification_info): Likewise.
9566 (ipa_edge_modification_sum): Likewise.
9567 (ipa_edge_modifications): New edge summary.
9568 (ipa_verify_edge_has_no_modifications): New function.
9569 (transitive_split_p): Removed.
9570 (transitive_split_map): Likewise.
9571 (init_transitive_splits): Likewise.
9572 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
9573 summary instead of performed_splits.
9574 (ipa_param_body_adjustments::register_replacement): Drop dummy
9575 parameter, set base_index of the created ipa_param_body_replacement.
9576 (phi_arg_will_live_p): New function.
9577 (ipa_param_body_adjustments::common_initialization): Do not create
9578 IPA_SRA dummy decls.
9579 (simple_tree_swap_info): Removed.
9580 (remap_split_decl_to_dummy): Likewise.
9581 (record_argument_state_1): New function.
9582 (record_argument_state): Likewise.
9583 (ipa_param_body_adjustments::modify_call_stmt): New parameter
9584 orig_stmt. Do not work with dummy decls, save necessary info about
9585 changes to ipa_edge_modifications.
9586 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
9587 orig_stmt, pass it to modify_call_stmt.
9588 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
9589 modify_gimple_stmt.
9590 (ipa_edge_modifications_finalize): New function.
9591 * tree-inline.c (remap_gimple_stmt): Pass original statement to
9592 modify_gimple_stmt.
9593 (copy_phis_for_bb): Do not copy dead PHI nodes.
9594 (expand_call_inline): Do not remap performed_splits.
9595 (update_clone_info): Likewise.
9596 * toplev.c: Include ipa-param-manipulation.h.
9597 (toplev::finalize): Call ipa_edge_modifications_finalize.
9598
9599 2021-06-28 Andrew Pinski <apinski@marvell.com>
9600
9601 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
9602 info if we're the only things setting the target PHI.
9603 (value_replacement): Don't duplicate range here.
9604 (minmax_replacement): Likewise.
9605
9606 2021-06-28 Richard Biener <rguenther@suse.de>
9607
9608 PR tree-optimization/101229
9609 * gimple-walk.c (gimple_walk_op): Handle PHIs.
9610
9611 2021-06-28 Martin Liska <mliska@suse.cz>
9612
9613 * config/v850/v850.c (construct_dispose_instruction): Allocate
9614 a bigger buffer.
9615 (construct_prepare_instruction): Likewise.
9616
9617 2021-06-28 Martin Liska <mliska@suse.cz>
9618
9619 * config/v850/v850.c (v850_option_override): Build default
9620 target node.
9621 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
9622 ignored for inlining.
9623 (TARGET_CAN_INLINE_P): New.
9624
9625 2021-06-28 Richard Biener <rguenther@suse.de>
9626
9627 PR tree-optimization/101207
9628 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
9629 permute eliding for load permutations properly.
9630
9631 2021-06-28 Richard Biener <rguenther@suse.de>
9632
9633 PR tree-optimization/101173
9634 * gimple-loop-interchange.cc
9635 (tree_loop_interchange::valid_data_dependences): Disallow outer
9636 loop dependence distance of zero.
9637
9638 2021-06-28 liuhongt <hongtao.liu@intel.com>
9639
9640 PR target/100648
9641 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
9642 define_insn_and_split.
9643 (*avx_cmp<mode>3_ltint): Ditto.
9644 (*avx2_pcmp<mode>3_3): Ditto.
9645 (*avx2_pcmp<mode>3_4): Ditto.
9646 (*avx2_pcmp<mode>3_5): Ditto.
9647
9648 2021-06-28 liuhongt <hongtao.liu@intel.com>
9649
9650 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
9651 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
9652 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
9653 IX86_BUILTIN_PBLENDVB128): Replace icode with
9654 CODE_FOR_nothing.
9655 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
9656 builtins.
9657 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
9658 New pre_reload splitter.
9659
9660 2021-06-27 Andrew Pinski <apinski@marvell.com>
9661
9662 PR middle-end/101230
9663 * fold-const.c (fold_ternary_loc): Check
9664 the return value of invert_tree_comparison.
9665
9666 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
9667
9668 * config.gcc: Add SPDX License Identifier.
9669 (powerpc-ibm-aix789): Default to aix73.h.
9670 (powerpc-ibm-aix7.2.*.*): New stanza.
9671 * config/rs6000/aix72.h: Add SPDX License Identifier.
9672 * config/rs6000/aix73.h: New file.
9673
9674 2021-06-26 Jason Merrill <jason@redhat.com>
9675
9676 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
9677
9678 2021-06-26 Andrew Pinski <apinski@marvell.com>
9679
9680 * genmatch.c (lower_cond): Copy for_subst_vec
9681 for the simplify also.
9682 (lower): Swap the order for lower_for and lower_cond.
9683
9684 2021-06-26 Andrew Pinski <apinski@marvell.com>
9685
9686 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
9687 flow senatitive info on the moved ssa set.
9688
9689 2021-06-26 Andrew Pinski <apinski@marvell.com>
9690
9691 * fold-const.c (fold_cond_expr_with_comparison):
9692 Exand arg0 into comp_code, arg00, and arg01.
9693 (fold_ternary_loc): Use invert_tree_comparison
9694 instead of fold_invert_truthvalue for the case
9695 where we have A CMP B ? C : A.
9696
9697 2021-06-25 Martin Sebor <msebor@redhat.com>
9698
9699 PR middle-end/101216
9700 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
9701
9702 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
9703
9704 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
9705
9706 2021-06-25 Richard Biener <rguenther@suse.de>
9707
9708 PR tree-optimization/101202
9709 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
9710 failed nodes.
9711
9712 2021-06-25 Richard Biener <rguenther@suse.de>
9713
9714 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
9715 STMT_VINFO_REDUC_DEF from the original representative.
9716
9717 2021-06-25 Martin Sebor <msebor@redhat.com>
9718
9719 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
9720 gimple_no_warning_p and gimple_set_no_warning with
9721 warning_suppressed_p, and suppress_warning.
9722 (c_strlen): Same.
9723 (maybe_warn_for_bound): Same.
9724 (warn_for_access): Same.
9725 (check_access): Same.
9726 (expand_builtin_strncmp): Same.
9727 (fold_builtin_varargs): Same.
9728 * calls.c (maybe_warn_nonstring_arg): Same.
9729 (maybe_warn_rdwr_sizes): Same.
9730 * cfgexpand.c (expand_call_stmt): Same.
9731 * cgraphunit.c (check_global_declaration): Same.
9732 * fold-const.c (fold_undefer_overflow_warnings): Same.
9733 (fold_truth_not_expr): Same.
9734 (fold_unary_loc): Same.
9735 (fold_checksum_tree): Same.
9736 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
9737 (array_bounds_checker::check_mem_ref): Same.
9738 (array_bounds_checker::check_addr_expr): Same.
9739 (array_bounds_checker::check_array_bounds): Same.
9740 * gimple-expr.c (copy_var_decl): Same.
9741 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
9742 (gimple_fold_builtin_strncat): Same.
9743 (gimple_fold_builtin_stxcpy_chk): Same.
9744 (gimple_fold_builtin_stpcpy): Same.
9745 (gimple_fold_builtin_sprintf): Same.
9746 (fold_stmt_1): Same.
9747 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
9748 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
9749 * gimple-ssa-sprintf.c (handle_printf_call): Same.
9750 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
9751 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
9752 * gimple-ssa-warn-restrict.h: Adjust declarations.
9753 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
9754 gimple_no_warning_p and gimple_set_no_warning with
9755 warning_suppressed_p, and suppress_warning.
9756 (check_call): Same.
9757 (check_bounds_or_overlap): Same.
9758 * gimple.c (gimple_build_call_from_tree): Same.
9759 * gimplify.c (gimplify_return_expr): Same.
9760 (gimplify_cond_expr): Same.
9761 (gimplify_modify_expr_complex_part): Same.
9762 (gimplify_modify_expr): Same.
9763 (gimple_push_cleanup): Same.
9764 (gimplify_expr): Same.
9765 * omp-expand.c (expand_omp_for_generic): Same.
9766 (expand_omp_taskloop_for_outer): Same.
9767 * omp-low.c (lower_rec_input_clauses): Same.
9768 (lower_lastprivate_clauses): Same.
9769 (lower_send_clauses): Same.
9770 (lower_omp_target): Same.
9771 * tree-cfg.c (pass_warn_function_return::execute): Same.
9772 * tree-complex.c (create_one_component_var): Same.
9773 * tree-inline.c (remap_gimple_op_r): Same.
9774 (copy_tree_body_r): Same.
9775 (declare_return_variable): Same.
9776 (expand_call_inline): Same.
9777 * tree-nested.c (lookup_field_for_decl): Same.
9778 * tree-sra.c (create_access_replacement): Same.
9779 (generate_subtree_copies): Same.
9780 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
9781 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
9782 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
9783 * tree-ssa-loop-im.c (execute_sm): Same.
9784 * tree-ssa-phiopt.c (cond_store_replacement): Same.
9785 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
9786 (handle_builtin_strcpy): Same.
9787 (maybe_diag_stxncpy_trunc): Same.
9788 (handle_builtin_stxncpy_strncat): Same.
9789 (handle_builtin_strcat): Same.
9790 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
9791 (set_no_uninit_warning): Same.
9792 (uninit_undefined_value_p): Same.
9793 (warn_uninit): Same.
9794 (maybe_warn_operand): Same.
9795 * tree-vrp.c (compare_values_warnv): Same.
9796 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
9797 (test_for_singularity): Same.
9798 * gimple.h (warning_suppressed_p): New function.
9799 (suppress_warning): Same.
9800 (copy_no_warning): Same.
9801 (gimple_set_block): Call gimple_set_location.
9802 (gimple_set_location): Call copy_warning.
9803
9804 2021-06-25 Martin Sebor <msebor@redhat.com>
9805
9806 * tree.h (warning_suppressed_at, copy_warning,
9807 warning_suppressed_p, suppress_warning): New functions.
9808
9809 2021-06-25 Martin Sebor <msebor@redhat.com>
9810
9811 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
9812 * gengtype.c (open_base_files): Add diagnostic-spec.h.
9813 * diagnostic-spec.c: New file.
9814 * diagnostic-spec.h: New file.
9815 * tree.h (no_warning, all_warnings, suppress_warning_at): New
9816 declarations.
9817 * warning-control.cc: New file.
9818
9819 2021-06-25 liuhongt <hongtao.liu@intel.com>
9820
9821 PR target/101185
9822 * config/i386/i386.c (x86_order_regs_for_local_alloc):
9823 Revert r12-1669.
9824
9825 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
9826
9827 PR tree-optimization/101189
9828 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
9829 LHS range of condition to postfold routine.
9830 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
9831 FALSE edge if the LHS range supports it being taken.
9832 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
9833
9834 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
9835
9836 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
9837 (relation_oracle::find_relation_block): Check correct bitmap.
9838 (relation_oracle::dump): Do not dump NULL blocks.
9839
9840 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
9841
9842 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
9843 range_on_edge instead of manually calculating.
9844
9845 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
9846
9847 * range-op.cc: Fix comment.
9848
9849 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
9850
9851 PR target/89021
9852 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
9853 Handle V8QI and V4HI modes.
9854 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
9855 New insn pattern.
9856 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
9857 (mmxpackmode): New mode attribute.
9858 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
9859 (mmxunpackmode): New mode attribute.
9860 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
9861 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
9862 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
9863 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
9864 * config/i386/i386.md (extsuffix): Move from ...
9865 * config/i386/sse.md: ... here.
9866
9867 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
9868
9869 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
9870 (dwarf2out_finish): ...instead of here.
9871
9872 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
9873
9874 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
9875 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
9876 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
9877 * configure: Regenerate.
9878
9879 2021-06-24 Richard Biener <rguenther@suse.de>
9880
9881 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
9882 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
9883 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
9884
9885 2021-06-24 Richard Biener <rguenther@suse.de>
9886
9887 * config/i386/sse.md (avx_addsubv4df3): Rename to
9888 vec_addsubv4df3.
9889 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
9890 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
9891 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
9892 * config/i386/i386-builtin.def: Adjust.
9893 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
9894 * optabs.def (vec_addsub_optab): New optab.
9895 * tree-vect-slp-patterns.c (class addsub_pattern): New.
9896 (slp_patterns): Add addsub_pattern.
9897 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
9898 across CFN_VEC_ADDSUB.
9899 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
9900 m_ops optional.
9901 * doc/md.texi (vec_addsub<mode>3): Document.
9902
9903 2021-06-24 Jakub Jelinek <jakub@redhat.com>
9904
9905 PR middle-end/101170
9906 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
9907 where regno + subreg_regno_offset wraps around use 0 as starting
9908 regno.
9909
9910 2021-06-24 Jakub Jelinek <jakub@redhat.com>
9911
9912 PR middle-end/101172
9913 * stor-layout.c (finish_bitfield_representative): If nextf has
9914 error_mark_node type, set repr type to error_mark_node too.
9915
9916 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
9917
9918 * config/s390/s390.c (s390_function_profiler): Ignore labelno
9919 parameter.
9920 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
9921
9922 2021-06-24 Richard Biener <rguenther@suse.de>
9923
9924 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
9925 across operations that have different semantics on different
9926 lanes.
9927
9928 2021-06-24 Jakub Jelinek <jakub@redhat.com>
9929
9930 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
9931 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
9932 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
9933 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
9934 OMP_TARGET user outer_ctx instead of ctx for placeholders and
9935 initializer/combiner gimplification.
9936 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
9937 on target constructs.
9938 (lower_rec_input_clauses): Likewise.
9939 (lower_omp_target): Likewise.
9940 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
9941 on target if in_reduction is present.
9942
9943 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
9944
9945 * tree-predcom.c (class pcom_worker): New class.
9946 (release_chain): Renamed to...
9947 (pcom_worker::release_chain): ...this.
9948 (release_chains): Renamed to...
9949 (pcom_worker::release_chains): ...this.
9950 (aff_combination_dr_offset): Renamed to...
9951 (pcom_worker::aff_combination_dr_offset): ...this.
9952 (determine_offset): Renamed to...
9953 (pcom_worker::determine_offset): ...this.
9954 (class comp_ptrs): New class.
9955 (split_data_refs_to_components): Renamed to...
9956 (pcom_worker::split_data_refs_to_components): ...this,
9957 and update with class comp_ptrs.
9958 (suitable_component_p): Renamed to...
9959 (pcom_worker::suitable_component_p): ...this.
9960 (filter_suitable_components): Renamed to...
9961 (pcom_worker::filter_suitable_components): ...this.
9962 (valid_initializer_p): Renamed to...
9963 (pcom_worker::valid_initializer_p): ...this.
9964 (find_looparound_phi): Renamed to...
9965 (pcom_worker::find_looparound_phi): ...this.
9966 (add_looparound_copies): Renamed to...
9967 (pcom_worker::add_looparound_copies): ...this.
9968 (determine_roots_comp): Renamed to...
9969 (pcom_worker::determine_roots_comp): ...this.
9970 (determine_roots): Renamed to...
9971 (pcom_worker::determine_roots): ...this.
9972 (single_nonlooparound_use): Renamed to...
9973 (pcom_worker::single_nonlooparound_use): ...this.
9974 (remove_stmt): Renamed to...
9975 (pcom_worker::remove_stmt): ...this.
9976 (execute_pred_commoning_chain): Renamed to...
9977 (pcom_worker::execute_pred_commoning_chain): ...this.
9978 (execute_pred_commoning): Renamed to...
9979 (pcom_worker::execute_pred_commoning): ...this.
9980 (struct epcc_data): New member worker.
9981 (execute_pred_commoning_cbck): Call execute_pred_commoning
9982 with pcom_worker pointer.
9983 (find_use_stmt): Renamed to...
9984 (pcom_worker::find_use_stmt): ...this.
9985 (find_associative_operation_root): Renamed to...
9986 (pcom_worker::find_associative_operation_root): ...this.
9987 (find_common_use_stmt): Renamed to...
9988 (pcom_worker::find_common_use_stmt): ...this.
9989 (combinable_refs_p): Renamed to...
9990 (pcom_worker::combinable_refs_p): ...this.
9991 (reassociate_to_the_same_stmt): Renamed to...
9992 (pcom_worker::reassociate_to_the_same_stmt): ...this.
9993 (stmt_combining_refs): Renamed to...
9994 (pcom_worker::stmt_combining_refs): ...this.
9995 (combine_chains): Renamed to...
9996 (pcom_worker::combine_chains): ...this.
9997 (try_combine_chains): Renamed to...
9998 (pcom_worker::try_combine_chains): ...this.
9999 (prepare_initializers_chain): Renamed to...
10000 (pcom_worker::prepare_initializers_chain): ...this.
10001 (prepare_initializers): Renamed to...
10002 (pcom_worker::prepare_initializers): ...this.
10003 (prepare_finalizers_chain): Renamed to...
10004 (pcom_worker::prepare_finalizers_chain): ...this.
10005 (prepare_finalizers): Renamed to...
10006 (pcom_worker::prepare_finalizers): ...this.
10007 (tree_predictive_commoning_loop): Renamed to...
10008 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
10009 some calls and remove some cleanup code.
10010 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
10011 (static variable looparound_phis): Remove.
10012 (static variable name_expansions): Remove.
10013
10014 2021-06-24 Richard Biener <rguenther@suse.de>
10015
10016 * tree-vect-slp.c (slpg_vertex): New struct.
10017 (vect_slp_build_vertices): Adjust.
10018 (vect_optimize_slp): Likewise. Maintain an outgoing permute
10019 and a materialized one.
10020
10021 2021-06-24 Richard Biener <rguenther@suse.de>
10022
10023 PR tree-optimization/101105
10024 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10025 Only ignore steps when they are equal or scalar order is preserved.
10026
10027 2021-06-24 liuhongt <hongtao.liu@intel.com>
10028
10029 PR target/98434
10030 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
10031 Adjust comments for ix86_expand_vecop_qihi2.
10032 (ix86_expand_vecmul_qihi): Renamed to ..
10033 (ix86_expand_vecop_qihi2): Adjust function prototype to
10034 support shift operation, add static to definition.
10035 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
10036 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
10037 ix86_expand_vec_shift_qihi_constant.
10038 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
10039 (ix86_expand_vec_shift_qihi_constant): Deleted.
10040 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
10041 iterator.
10042 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
10043 condition TARGET_64BIT.
10044 (mul<mode>3): Ditto.
10045 (<insn><mode>3): Ditto.
10046 (vlshr<mode>3): Extend to support avx512 vlshr.
10047 (v<insn><mode>3): New expander for
10048 vashr/vlshr/vashl.
10049 (v<insn>v8qi3): Ditto.
10050 (vashrv8hi3<mask_name>): Renamed to ..
10051 (vashr<mode>3): And extend to support V16QImode for avx512.
10052 (vashrv16qi3): Deleted.
10053 (vashrv2di3<mask_name>): Extend expander to support avx512
10054 instruction.
10055
10056 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
10057
10058 * doc/lto.texi (Design Overview): Update that slim objects are
10059 the default.
10060
10061 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
10062
10063 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
10064 of OTHER_POWER10_MASKS so it will not be enabled by default.
10065
10066 2021-06-23 Richard Biener <rguenther@suse.de>
10067 Martin Jambor <mjambor@suse.cz>
10068
10069 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
10070 param replacement unconditionally. Adjust comment.
10071
10072 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
10073
10074 * Makefile.in (OBJS): Add gimple-range-fold.o
10075 * gimple-range-fold.cc: New.
10076 * gimple-range-fold.h: New.
10077 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
10078 (gimple_range_calc_op2): Ditto.
10079 * gimple-range-gori.h: Move prototypes to here.
10080 * gimple-range.cc: Adjust include files.
10081 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
10082 (fur_source::get_operand): Ditto.
10083 (fur_source::get_phi_operand): Ditto.
10084 (fur_source::query_relation): Ditto.
10085 (fur_source::register_relation): Ditto.
10086 (class fur_edge): Ditto.
10087 (fur_edge::fur_edge): Ditto.
10088 (fur_edge::get_operand): Ditto.
10089 (fur_edge::get_phi_operand): Ditto.
10090 (fur_stmt::fur_stmt): Ditto.
10091 (fur_stmt::get_operand): Ditto.
10092 (fur_stmt::get_phi_operand): Ditto.
10093 (fur_stmt::query_relation): Ditto.
10094 (class fur_depend): Relocate to gimple-range-fold.h.
10095 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
10096 (fur_depend::register_relation): Ditto.
10097 (fur_depend::register_relation): Ditto.
10098 (class fur_list): Ditto.
10099 (fur_list::fur_list): Ditto.
10100 (fur_list::get_operand): Ditto.
10101 (fur_list::get_phi_operand): Ditto.
10102 (fold_range): Ditto.
10103 (adjust_pointer_diff_expr): Ditto.
10104 (gimple_range_adjustment): Ditto.
10105 (gimple_range_base_of_assignment): Ditto.
10106 (gimple_range_operand1): Ditto.
10107 (gimple_range_operand2): Ditto.
10108 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
10109 (gimple_range_calc_op2): Ditto.
10110 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
10111 (fold_using_range::range_of_range_op): Ditto.
10112 (fold_using_range::range_of_address): Ditto.
10113 (fold_using_range::range_of_phi): Ditto.
10114 (fold_using_range::range_of_call): Ditto.
10115 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
10116 (fold_using_range::range_of_builtin_call): Ditto.
10117 (fold_using_range::range_of_cond_expr): Ditto.
10118 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
10119 (fold_using_range::relation_fold_and_or): Ditto.
10120 (fold_using_range::postfold_gcond_edges): Ditto.
10121 * gimple-range.h: Add gimple-range-fold.h to include files. Change
10122 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
10123 (gimple_range_handler): Relocate to gimple-range-fold.h.
10124 (gimple_range_ssa_p): Ditto.
10125 (range_compatible_p): Ditto.
10126 (class fur_source): Ditto.
10127 (class fur_stmt): Ditto.
10128 (class fold_using_range): Ditto.
10129 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
10130 (gimple_range_calc_op2): Ditto.
10131
10132 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
10133
10134 PR tree-optimization/101148
10135 PR tree-optimization/101014
10136 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
10137 (ranger_cache::~ranger_cache): Adjust.
10138 (ranger_cache::block_range): Check if propagation disallowed.
10139 (ranger_cache::propagate_cache): Disallow propagation if new value
10140 can't be stored properly.
10141 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
10142
10143 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
10144
10145 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
10146 (sbr_vector::set_bb_range): Return true.
10147 (class sbr_sparse_bitmap): Adjust.
10148 (sbr_sparse_bitmap::set_bb_range): Return value.
10149 (block_range_cache::set_bb_range): Return value.
10150 (ranger_cache::propagate_cache): Use return value to print msg.
10151 * gimple-range-cache.h (class block_range_cache): Adjust.
10152
10153 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
10154
10155 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
10156
10157 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
10158
10159 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
10160 so this pattern can be used for test/compare removal. Pass
10161 current insn to compute_logical_op_length and output_logical_op.
10162 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
10163 (h8300_and_costs): Add argument to compute_logical_op_length.
10164 (output_logical_op): Add new argument. Use it to determine if the
10165 condition codes are used and adjust the output accordingly.
10166 (compute_logical_op_length): Add new argument and update length
10167 computations when condition codes are used.
10168 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
10169 prototype.
10170 (output_logical_op): Likewise.
10171
10172 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
10173
10174 PR target/89021
10175 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
10176 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
10177 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
10178 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
10179 * config/i386/sse.md (unspec): ... here.
10180
10181 2021-06-23 Martin Liska <mliska@suse.cz>
10182
10183 PR target/98636
10184 * optc-save-gen.awk: Put back arm_fp16_format to
10185 checked_options.
10186
10187 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
10188
10189 PR target/101175
10190 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
10191 (bsr): Ditto.
10192 (*bsrhi): Remove.
10193 (clz<mode>2): Update RTX pattern for additions.
10194
10195 2021-06-23 Jakub Jelinek <jakub@redhat.com>
10196
10197 PR middle-end/101167
10198 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
10199 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
10200
10201 2021-06-22 Sergei Trofimovich <siarheit@google.com>
10202
10203 * doc/rtl.texi: drop unbalanced parenthesis.
10204
10205 2021-06-22 Richard Biener <rguenther@suse.de>
10206
10207 PR middle-end/101156
10208 * gimplify.c (gimplify_expr): Remove premature incorrect
10209 optimization.
10210
10211 2021-06-22 Jakub Jelinek <jakub@redhat.com>
10212
10213 PR tree-optimization/101159
10214 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
10215 comment typos.
10216
10217 2021-06-22 Jakub Jelinek <jakub@redhat.com>
10218
10219 PR middle-end/101160
10220 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
10221 clear crtl->return_rtx instead of keeping it referencing a pseudo.
10222
10223 2021-06-22 Jakub Jelinek <jakub@redhat.com>
10224 Andrew Pinski <apinski@marvell.com>
10225
10226 PR tree-optimization/101162
10227 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
10228 types.
10229
10230 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
10231
10232 * range-op.cc (range_relational_tests): New.
10233 (range_op_tests): Call range_relational_tests.
10234
10235 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
10236
10237 * range-op.cc (operator_cast::lhs_op1_relation): New.
10238 (operator_identity::lhs_op1_relation): Mew.
10239
10240 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
10241
10242 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
10243
10244 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
10245
10246 * range-op.cc (operator_plus::lhs_op1_relation): New.
10247 (operator_plus::lhs_op2_relation): New.
10248
10249 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
10250
10251 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
10252 relation_oracle if dominators exist.
10253 (ranger_cache::~ranger_cache): Dispose of oracle.
10254 (ranger_cache::dump_bb): Dump oracle.
10255 * gimple-range.cc (fur_source::fur_source): New.
10256 (fur_source::get_operand): Use mmeber query.
10257 (fur_source::get_phi_operand): Use member_query.
10258 (fur_source::query_relation): New.
10259 (fur_source::register_dependency): Delete.
10260 (fur_source::register_relation): New.
10261 (fur_edge::fur_edge): Adjust.
10262 (fur_edge::get_phi_operand): Fix comment.
10263 (fur_edge::query): Delete.
10264 (fur_stmt::fur_stmt): Adjust.
10265 (fur_stmt::query): Delete.
10266 (fur_depend::fur_depend): Adjust.
10267 (fur_depend::register_relation): New.
10268 (fur_depend::register_relation): New.
10269 (fur_list::fur_list): Adjust.
10270 (fur_list::get_operand): Use member query.
10271 (fold_using_range::range_of_range_op): Process and query relations.
10272 (fold_using_range::range_of_address): Adjust dependency call.
10273 (fold_using_range::range_of_phi): Ditto.
10274 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
10275 (fold_using_range::relation_fold_and_or): New.
10276 (fold_using_range::postfold_gcond_edges): New.
10277 * gimple-range.h (class gimple_ranger): Adjust.
10278 (class fur_source): Adjust members.
10279 (class fur_stmt): Ditto.
10280 (class fold_using_range): Ditto.
10281
10282 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
10283
10284 * range-op.cc (range_operator::wi_fold): Apply relation effect.
10285 (range_operator::fold_range): Adjust and apply relation effect.
10286 (*::fold_range): Add relation parameters.
10287 (*::op1_range): Ditto.
10288 (*::op2_range): Ditto.
10289 (range_operator::lhs_op1_relation): New.
10290 (range_operator::lhs_op2_relation): New.
10291 (range_operator::op1_op2_relation): New.
10292 (range_operator::op1_op2_relation_effect): New.
10293 (relop_early_resolve): New.
10294 (operator_equal::op1_op2_relation): New.
10295 (operator_equal::fold_range): Call relop_early_resolve.
10296 (operator_not_equal::op1_op2_relation): New.
10297 (operator_not_equal::fold_range): Call relop_early_resolve.
10298 (operator_lt::op1_op2_relation): New.
10299 (operator_lt::fold_range): Call relop_early_resolve.
10300 (operator_le::op1_op2_relation): New.
10301 (operator_le::fold_range): Call relop_early_resolve.
10302 (operator_gt::op1_op2_relation): New.
10303 (operator_gt::fold_range): Call relop_early_resolve.
10304 (operator_ge::op1_op2_relation): New.
10305 (operator_ge::fold_range): Call relop_early_resolve.
10306 * range-op.h (class range_operator): Adjust parameters and methods.
10307
10308 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
10309
10310 * Makefile.in (OBJS): Add value-relation.o.
10311 * gimple-range.h: Adjust include files.
10312 * tree-data-ref.c: Adjust include file order.
10313 * value-query.cc (range_query::get_value_range): Default to no oracle.
10314 (range_query::query_relation): New.
10315 (range_query::query_relation): New.
10316 * value-query.h (class range_query): Adjust.
10317 * value-relation.cc: New.
10318 * value-relation.h: New.
10319
10320 2021-06-22 Richard Biener <rguenther@suse.de>
10321
10322 PR tree-optimization/101151
10323 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
10324 region check.
10325
10326 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
10327
10328 * config/riscv/riscv.c (thead_c906_tune_info): New.
10329 (riscv_tune_info_table): Use new tune.
10330
10331 2021-06-22 Richard Biener <rguenther@suse.de>
10332
10333 PR tree-optimization/101158
10334 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
10335 checking after checking for matching operation.
10336
10337 2021-06-22 Richard Biener <rguenther@suse.de>
10338
10339 PR tree-optimization/101159
10340 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
10341 missing NULL vectype check.
10342
10343 2021-06-22 Richard Biener <rguenther@suse.de>
10344
10345 PR tree-optimization/101154
10346 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
10347
10348 2021-06-22 Jakub Jelinek <jakub@redhat.com>
10349
10350 PR target/11877
10351 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
10352 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
10353 * config/i386/i386.c (ix86_expand_prologue): Clear it.
10354 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
10355 Remove "" from match_operand. Emit new insns using emit_move_insn and
10356 set ix86_last_zero_store_uid to INSN_UID of the last store.
10357 Add peephole2s for 1/2/4 stores of const0_rtx following previous
10358 successful peep2s.
10359
10360 2021-06-22 Martin Liska <mliska@suse.cz>
10361
10362 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
10363 was changed.
10364
10365 2021-06-22 Martin Liska <mliska@suse.cz>
10366
10367 * gcov-io.h: Remove padding entries.
10368
10369 2021-06-22 liuhongt <hongtao.liu@intel.com>
10370
10371 PR tree-optimization/97770
10372 * tree-vect-patterns.c (vect_recog_popcount_pattern):
10373 New.
10374 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
10375
10376 2021-06-22 liuhongt <hongtao.liu@intel.com>
10377
10378 PR target/100267
10379 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
10380 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
10381 (expand<mode>_mask): this ..
10382 (*expand<mode>_mask): New pre_reload splitter to transform
10383 v{,p}expand* to vmov* when mask is zero, all ones, or has all
10384 ones in it's lower part, otherwise still generate
10385 v{,p}expand*.
10386
10387 2021-06-22 liuhongt <hongtao.liu@intel.com>
10388
10389 PR target/100310
10390 * config/i386/i386-expand.c
10391 (ix86_expand_special_args_builtin): Keep constm1_operand only
10392 if it satisfies insn's operand predicate.
10393
10394 2021-06-21 Jason Merrill <jason@redhat.com>
10395
10396 PR target/88529
10397 * df-scan.c (df_ref_record): Check that regno < endregno.
10398 * function.c (assign_parms, expand_function_end): Do nothing with a
10399 TYPE_EMPTY_P result.
10400
10401 2021-06-21 Richard Biener <rguenther@suse.de>
10402
10403 PR tree-optimization/101120
10404 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
10405 built increment.
10406 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
10407 DR chain DCE capability.
10408 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
10409 * tree-vect-stmts.c (vectorizable_load): Remove unused
10410 loads in the DR chain for SLP.
10411
10412 2021-06-21 Jakub Jelinek <jakub@redhat.com>
10413
10414 PR inline-asm/100785
10415 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
10416 output or input operands were already error_mark_node.
10417 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
10418 remove all inputs, outputs and clobbers from the asm and
10419 set template to "".
10420
10421 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
10422
10423 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
10424 (vceq_s16): Likewise.
10425 (vceq_s32): Likewise.
10426 (vceq_u8): Likewise.
10427 (vceq_u16): Likewise.
10428 (vceq_u32): Likewise.
10429 (vceq_p8): Likewise.
10430 (vceqq_s8): Likewise.
10431 (vceqq_s16): Likewise.
10432 (vceqq_s32): Likewise.
10433 (vceqq_u8): Likewise.
10434 (vceqq_u16): Likewise.
10435 (vceqq_u32): Likewise.
10436 (vceqq_p8): Likewise.
10437 (vceq_f32): Gate __a == __b on __FAST_MATH__.
10438 (vceqq_f32): Likewise.
10439 (vceq_f16): Likewise.
10440 (vceqq_f16): Likewise.
10441
10442 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
10443
10444 PR target/97906
10445 * config/arm/iterators.md (NEON_VACMP): Remove.
10446 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
10447 iterator.
10448 (neon_vca<cmp_op><mode>_insn): Likewise.
10449 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
10450 NEON_VACMP.
10451
10452 2021-06-21 Richard Biener <rguenther@suse.de>
10453
10454 PR tree-optimization/101121
10455 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
10456 when we just lack a stmt with the desired op when doing permutation.
10457 (vect_build_slp_tree): When caching a failed SLP build attempt
10458 assert that at least one lane is marked as not matching.
10459
10460 2021-06-21 liuhongt <hongtao.liu@intel.com>
10461
10462 PR target/101142
10463 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
10464 register alternative.
10465 (*and<mode>_1): Ditto.
10466 (*andqi_1): Ditto.
10467 (*andn<mode>_1): Ditto.
10468 (*<code><mode>_1): Ditto.
10469 (*<code>qi_1): Ditto.
10470 (*one_cmpl<mode>2_1): Ditto.
10471 (*one_cmplsi2_1_zext): Ditto.
10472 (*one_cmplqi2_1): Ditto.
10473 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
10474 the order of mask registers to be before general registers.
10475
10476 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
10477
10478 PR target/11877
10479 * config/i386/i386.md: New define_peephole2s to shrink writing
10480 1, 2 or 4 consecutive zeros to memory when optimizing for size.
10481
10482 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
10483
10484 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
10485 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
10486 more efficient code when the source can be trivially simplified.
10487
10488 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
10489
10490 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
10491 a range if global is not available.
10492 (ranger_cache::entry_range): Fallback to range_of_def.
10493 * gimple-range-cache.h (range_of_def): Adjust prototype.
10494
10495 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
10496
10497 PR tree-optimization/101014
10498 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
10499 value list.
10500 (ranger_cache::~ranger_cache): Ditto.
10501 (ranger_cache::enable_new_values): Delete.
10502 (ranger_cache::push_poor_value): Delete.
10503 (ranger_cache::range_of_def): Remove poor value processing.
10504 (ranger_cache::entry_range): Ditto.
10505 (ranger_cache::fill_block_cache): Ditto.
10506 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
10507 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
10508 * gimple-range.h (class gimple_ranger): Adjust.
10509
10510 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
10511
10512 PR target/100856
10513 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
10514 derived from arm_canon_arch.
10515 (arm_canon_arch_option): Call it.
10516 (arm_canon_arch_multilib_option): New function.
10517 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
10518 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
10519 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
10520 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
10521 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
10522 * config/arm/arm.opt (mlibarch): New option.
10523 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
10524 of march on RHS with mlibarch.
10525
10526 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
10527
10528 * config.in: Regenerate.
10529 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
10530 functions.
10531 * configure: Regenerate.
10532 * configure.ac: Fix for global_load assembler functions.
10533
10534 2021-06-18 Richard Biener <rguenther@suse.de>
10535
10536 PR tree-optimization/101112
10537 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
10538 to lookup a pattern stmt def.
10539
10540 2021-06-18 Jakub Jelinek <jakub@redhat.com>
10541
10542 PR middle-end/101062
10543 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
10544 representatives in QUAL_UNION_TYPE.
10545
10546 2021-06-18 Andrew Pinski <apinski@marvell.com>
10547
10548 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
10549 Add counting of how many times it is done.
10550 (factor_out_conditional_conversion): Likewise.
10551 (match_simplify_replacement): Likewise.
10552 (value_replacement): Likewise.
10553 (spaceship_replacement): Likewise.
10554 (cond_store_replacement): Likewise.
10555 (cond_if_else_store_replacement_1): Likewise.
10556 (hoist_adjacent_loads): Likewise.
10557
10558 2021-06-18 Andrew Pinski <apinski@marvell.com>
10559
10560 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
10561 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
10562 (verify_gimple_assign_binary): Reject point and offset types on
10563 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
10564 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
10565 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
10566
10567 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
10568
10569 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
10570 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
10571 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
10572 New insns.
10573
10574 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
10575
10576 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
10577 earlyclobber to alts 0/1.
10578 (gen_addadd): Add earlyclobber to alts 0/1.
10579 * config/rs6000/fusion.md: Regenerate file.
10580
10581 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
10582
10583 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
10584
10585 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
10586
10587 * gimple-range-cache.cc: Comment cleanups.
10588 * gimple-range-gori.cc: Comment cleanups.
10589 * gimple-range.cc: Comment/spacing cleanups
10590 * value-range.h: Comment cleanups.
10591
10592 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
10593
10594 PR target/100704
10595 * calls.c (expand_call): Replace PUSH_ARGS with
10596 targetm.calls.push_argument (0).
10597 (emit_library_call_value_1): Likewise.
10598 * defaults.h (PUSH_ARGS): Removed.
10599 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
10600 targetm.calls.push_argument (0).
10601 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
10602 (emit_push_insn): Pass the number bytes to push to
10603 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
10604 * hooks.c (hook_bool_uint_true): New.
10605 * hooks.h (hook_bool_uint_true): Likewise.
10606 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
10607 targetm.calls.push_argument (0).
10608 * target.def (push_argument): Add a targetm.calls hook.
10609 * targhooks.c (default_push_argument): New.
10610 * targhooks.h (default_push_argument): Likewise.
10611 * config/bpf/bpf.h (PUSH_ARGS): Removed.
10612 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
10613 * config/cr16/cr16.h (PUSH_ARGS): Removed.
10614 * config/i386/i386.c (ix86_push_argument): New.
10615 (TARGET_PUSH_ARGUMENT): Likewise.
10616 * config/i386/i386.h (PUSH_ARGS): Removed.
10617 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
10618 * config/m32c/m32c.h (PUSH_ARGS): Removed.
10619 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
10620 * config/pru/pru.h (PUSH_ARGS): Likewise.
10621 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
10622 TARGET_PUSH_ARGUMENT hook.
10623 * doc/tm.texi: Regenerated.
10624
10625 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
10626
10627 PR target/97194
10628 * config/i386/i386-expand.c (expand_vector_set_var):
10629 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
10630 ix86_expand_vector_init_duplicate.
10631 (ix86_expand_vector_init_duplicate): Emit insv_1 for
10632 QImode for !TARGET_PARTIAL_REG_STALL.
10633 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
10634 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
10635 as operand 2 predicate. Call ix86_expand_vector_set_var
10636 for non-constant index operand.
10637 (vec_setv2si): Ditto.
10638 (vec_setv4hi): Ditto.
10639 (vec_setv8qi): ditto.
10640
10641 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
10642
10643 PR tree-optimization/100790
10644 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
10645 code.
10646
10647 2021-06-17 Martin Liska <mliska@suse.cz>
10648
10649 * doc/invoke.texi: Use consistently -O1 instead of -O.
10650
10651 2021-06-17 Martin Liska <mliska@suse.cz>
10652
10653 * gcov-io.h: Update documentation entry about string format.
10654
10655 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
10656
10657 PR target/100871
10658 * config/s390/vecintrin.h (vec_doublee): Fix to use
10659 __builtin_s390_vflls.
10660 (vec_floate): Fix to use __builtin_s390_vflrd.
10661
10662 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
10663
10664 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
10665 * dominance.h (get_dominated_to_depth): Likewise.
10666 (get_all_dominated_blocks): Likewise.
10667 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
10668 * gcse.c (hoist_code): Likewise.
10669 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
10670 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
10671 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
10672 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
10673
10674 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
10675
10676 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
10677 * dominance.h (get_dominated_by_region): Likewise.
10678 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
10679 (gimple_duplicate_sese_tail): Likewise.
10680 (move_sese_region_to_fn): Likewise.
10681
10682 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
10683
10684 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
10685 * dominance.h (get_dominated_by): Likewise.
10686 * auto-profile.c (afdo_find_equiv_class): Adjust.
10687 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
10688 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
10689 * tree-cfg.c (test_linear_chain): Likewise.
10690 (test_diamond): Likewise.
10691
10692 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
10693
10694 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
10695 * cfgloopanal.c (get_loop_hot_path): Likewise.
10696 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
10697
10698 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
10699
10700 * cgraph.c (cgraph_node::collect_callers): Return
10701 auto_vec<cgraph_edge *>.
10702 * cgraph.h (cgraph_node::collect_callers): Likewise.
10703 * ipa-cp.c (create_specialized_node): Adjust.
10704 (decide_about_value): Likewise.
10705 (decide_whether_version_node): Likewise.
10706 * ipa-sra.c (process_isra_node_results): Likewise.
10707
10708 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
10709
10710 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
10711 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
10712 constructor.
10713 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
10714 assignment.
10715
10716 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
10717
10718 * gimple-range.cc (debug_seed_ranger): New.
10719 (dump_ranger): New.
10720 (debug_ranger): New.
10721
10722 2021-06-17 Richard Biener <rguenther@suse.de>
10723
10724 PR tree-optimization/54400
10725 * tree-vectorizer.h (enum slp_instance_kind): Add
10726 slp_inst_kind_bb_reduc.
10727 (reduction_fn_for_scalar_code): Declare.
10728 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
10729 Check SLP_INSTANCE_KIND instead of looking at the
10730 representative.
10731 (vect_slp_analyze_instance_alignment): Likewise.
10732 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
10733 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
10734 chain linearization from vect_build_slp_tree_2 and generalize
10735 for the use of BB reduction vectorization.
10736 (vect_build_slp_tree_2): Adjust accordingly.
10737 (vect_optimize_slp): Elide permutes at the root of BB reduction
10738 instances.
10739 (vectorizable_bb_reduc_epilogue): New function.
10740 (vect_slp_prune_covered_roots): Likewise.
10741 (vect_slp_analyze_operations): Use them.
10742 (vect_slp_check_for_constructors): Recognize associatable
10743 chains for BB reduction vectorization.
10744 (vectorize_slp_instance_root_stmt): Generate code for the
10745 BB reduction epilogue.
10746
10747 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
10748
10749 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
10750 may_recompute_p.
10751 (gori_compute::may_recompute_p): New.
10752 (gori_compute::outgoing_edge_range_p): Perform recomputations.
10753 * gimple-range-gori.h (class gori_compute): Add prototype.
10754
10755 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
10756
10757 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
10758 true when a range can be calculated.
10759 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
10760
10761 2021-06-16 Martin Sebor <msebor@redhat.com>
10762
10763 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
10764 Correct documented defaults.
10765
10766 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
10767
10768 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
10769 m_new_value_p directly.
10770
10771 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
10772
10773 PR target/89021
10774 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
10775 Handle 64bit modes for TARGET_SSE4_1.
10776 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
10777 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
10778 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
10779 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
10780 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
10781 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
10782
10783 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
10784
10785 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
10786 Change to an expander that emits the correct instruction
10787 depending on endianness.
10788 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
10789 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
10790
10791 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
10792
10793 * config/aarch64/aarch64-simd-builtins.def: Split generator
10794 for aarch64_<su>qmovn builtins into scalar and vector
10795 variants.
10796 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
10797 Define.
10798 (aarch64_<su>qmovn<mode>_insn_be): Define.
10799 (aarch64_<su>qmovn<mode>): Split into scalar and vector
10800 variants. Change vector variant to an expander that emits the
10801 correct instruction depending on endianness.
10802
10803 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
10804
10805 * config/aarch64/aarch64-simd-builtins.def: Split generator
10806 for aarch64_sqmovun builtins into scalar and vector variants.
10807 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
10808 Split into scalar and vector variants. Change vector variant
10809 to an expander that emits the correct instruction depending
10810 on endianness.
10811 (aarch64_sqmovun<mode>_insn_le): Define.
10812 (aarch64_sqmovun<mode>_insn_be): Define.
10813
10814 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
10815
10816 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
10817 Define - modeling zero-high-half semantics.
10818 (aarch64_xtn<mode>): Change to an expander that emits the
10819 appropriate instruction depending on endianness.
10820 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
10821 semantics.
10822 (aarch64_xtn2<mode>_le): Rename to...
10823 (aarch64_xtn2<mode>_insn_le): This.
10824 (aarch64_xtn2<mode>_be): Rename to...
10825 (aarch64_xtn2<mode>_insn_be): This.
10826 (vec_pack_trunc_<mode>): Emit truncation instruction instead
10827 of aarch64_xtn.
10828 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
10829 attribute iterator.
10830
10831 2021-06-16 Martin Jambor <mjambor@suse.cz>
10832
10833 PR tree-optimization/100453
10834 * tree-sra.c (create_access): Disqualify any const candidates
10835 which are written to.
10836 (sra_modify_expr): Do not store sub-replacements back to a const base.
10837 (handle_unscalarized_data_in_subtree): Likewise.
10838 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
10839 instead of constant_decl_p.
10840
10841 2021-06-16 Jakub Jelinek <jakub@redhat.com>
10842
10843 PR middle-end/101062
10844 * stor-layout.c (finish_bitfield_representative): For fields in unions
10845 assume nextf is always NULL.
10846 (finish_bitfield_layout): Compute bit field representatives also in
10847 unions, but handle it as if each bitfield was the only field in the
10848 aggregate.
10849
10850 2021-06-16 Richard Biener <rguenther@suse.de>
10851
10852 PR tree-optimization/101088
10853 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
10854 supported refs on edges. Do not assert same ref but
10855 different kind stores are unsuported but mark them so.
10856 (hoist_memory_references): Only look for supported refs
10857 on exits.
10858
10859 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
10860
10861 PR rtl-optimization/46235
10862 * config/i386/i386.md: New define_split for bt followed by cmov.
10863 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
10864 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
10865 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
10866 by setnc with zero extension.
10867
10868 2021-06-16 Richard Biener <rguenther@suse.de>
10869
10870 PR tree-optimization/101083
10871 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
10872 vectype as argument.
10873 (vect_build_slp_tree_2): Adjust.
10874
10875 2021-06-15 Martin Sebor <msebor@redhat.com>
10876
10877 PR middle-end/100876
10878 * builtins.c: (gimple_call_return_array): Account for size_t
10879 mangling as either unsigned int or unsigned long
10880
10881 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
10882
10883 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
10884 up before eliminating comparisons.
10885
10886 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
10887
10888 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
10889 nonzero|X is nonzero.
10890 (range_op_bitwise_and_tests): Add tests for above.
10891
10892 2021-06-15 Carl Love <cel@us.ibm.com>
10893
10894 PR target/101022
10895 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
10896 enum definition.
10897 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
10898 definitions.
10899
10900 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
10901
10902 PR fortran/92568
10903 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
10904 (struct gimplify_omp_ctx): Extend defaultmap array by one.
10905 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
10906 (omp_notice_variable): Update type classification for Fortran.
10907 (gimplify_scan_omp_clauses): Update calls for new argument; handle
10908 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
10909 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
10910 * langhooks.c (lhd_omp_scalar_p): Likewise.
10911 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
10912 (LANG_HOOKS_DECLS): Add them.
10913 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
10914 omp_scalar_p pointer type to include the new bool argument.
10915
10916 2021-06-15 David Malcolm <dmalcolm@redhat.com>
10917
10918 * doc/analyzer.texi
10919 (Special Functions for Debugging the Analyzer): Add
10920 __analyzer_dump_capacity.
10921
10922 2021-06-15 Jakub Jelinek <jakub@redhat.com>
10923
10924 PR target/101046
10925 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
10926 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
10927
10928 2021-06-15 Richard Biener <rguenther@suse.de>
10929
10930 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
10931 check to identify loop latches.
10932 * cfgloop.c (verify_loop_structure): Likewise.
10933 * loop-init.c (apply_loop_flags): Allow marked irreducible
10934 regions even with multiple latches.
10935 * predict.c (rebuild_frequencies): Simplify.
10936
10937 2021-06-15 Richard Biener <rguenther@suse.de>
10938
10939 * tree-ssa-threadupdate.c
10940 (jump_thread_path_registry::mark_threaded_blocks): Assert we
10941 have marked irreducible regions.
10942
10943 2021-06-14 Martin Sebor <msebor@redhat.com>
10944
10945 PR c++/100876
10946 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
10947 Handle calls to placement new.
10948 (ndecl_dealloc_argno): Avoid placement delete.
10949
10950 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
10951
10952 PR target/100777
10953 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
10954 create_tmp_reg_or_ssa_name().
10955
10956 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
10957
10958 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
10959 (ranger_cache::enable_new_values): Set to specified value and
10960 return the old value.
10961 (ranger_cache::disable_new_values): Delete.
10962 (ranger_cache::fill_block_cache): Disable non 1st order derived
10963 poor values.
10964 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
10965 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
10966
10967 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
10968
10969 PR target/101058
10970 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
10971 Return true early when testing with V2HImode.
10972 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
10973
10974 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
10975
10976 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
10977 (mve_vec_unpack<US>_hi_<mode>): New pattern.
10978 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
10979 (mve_vmovntq_<supf><mode>): Prefix with '@'.
10980 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
10981 vec-common.md.
10982 (vec_unpack<US>_lo_<mode>): Likewise.
10983 (vec_pack_trunc_<mode>): Rename to
10984 neon_quad_vec_pack_trunc_<mode>.
10985 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
10986 pattern.
10987 (vec_unpack<US>_lo_<mode>): New.
10988 (vec_pack_trunc_<mode>): New.
10989
10990 2021-06-14 Richard Biener <rguenther@suse.de>
10991
10992 PR tree-optimization/100934
10993 * tree-ssa-dom.c (pass_dominator::execute): Properly
10994 mark irreducible regions.
10995
10996 2021-06-14 Martin Liska <mliska@suse.cz>
10997
10998 * doc/invoke.texi: Put r{...} on the same line as @item.
10999
11000 2021-06-14 Martin Liska <mliska@suse.cz>
11001
11002 * doc/invoke.texi: Add missing newline.
11003
11004 2021-06-14 Martin Liska <mliska@suse.cz>
11005
11006 * doc/invoke.texi: Remove '+' charasters.
11007
11008 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
11009
11010 * config.gcc (arc): Add support for with_cpu option.
11011 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
11012
11013 2021-06-14 Richard Biener <rguenther@suse.de>
11014
11015 PR tree-optimization/101031
11016 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
11017 instead of size when accounting for a possibly string
11018 terminating nul.
11019
11020 2021-06-14 Martin Liska <mliska@suse.cz>
11021
11022 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
11023
11024 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
11025
11026 * value-query.cc (gimple_range_global): Call get_range_global
11027 if called after inlining.
11028
11029 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
11030
11031 PR target/101021
11032 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
11033 Emit constant permutation insn directly from here.
11034
11035 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
11036
11037 * attribs.c (find_attribute_namespace): Iterate over vec<> with
11038 range based for.
11039 * auto-profile.c (afdo_find_equiv_class): Likewise.
11040 * gcc.c (do_specs_vec): Likewise.
11041 (do_spec_1): Likewise.
11042 (driver::set_up_specs): Likewise.
11043 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
11044 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
11045 (imm_store_chain_info::try_coalesce_bswap): Likewise.
11046 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
11047 (get_location_for_stmts): Likewise.
11048 * graphite-poly.c (print_iteration_domains): Likewise.
11049 (free_poly_bb): Likewise.
11050 (remove_gbbs_in_scop): Likewise.
11051 (free_scop): Likewise.
11052 (dump_gbb_cases): Likewise.
11053 (dump_gbb_conditions): Likewise.
11054 (print_pdrs): Likewise.
11055 (print_scop): Likewise.
11056 * ifcvt.c (cond_move_process_if_block): Likewise.
11057 * lower-subreg.c (decompose_multiword_subregs): Likewise.
11058 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
11059 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
11060 * sel-sched-dump.c (dump_insn_vector): Likewise.
11061 * store-motion.c (store_ops_ok): Likewise.
11062 (store_killed_in_insn): Likewise.
11063 * timevar.c (timer::named_items::print): Likewise.
11064 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
11065 (cleanup_tree_cfg_noloop): Likewise.
11066 * tree-data-ref.c (dump_data_references): Likewise.
11067 (print_dir_vectors): Likewise.
11068 (print_dist_vectors): Likewise.
11069 (dump_data_dependence_relations): Likewise.
11070 (dump_dist_dir_vectors): Likewise.
11071 (dump_ddrs): Likewise.
11072 (create_runtime_alias_checks): Likewise.
11073 (free_subscripts): Likewise.
11074 (save_dist_v): Likewise.
11075 (save_dir_v): Likewise.
11076 (invariant_access_functions): Likewise.
11077 (same_access_functions): Likewise.
11078 (access_functions_are_affine_or_constant_p): Likewise.
11079 (find_data_references_in_stmt): Likewise.
11080 (graphite_find_data_references_in_stmt): Likewise.
11081 (free_dependence_relations): Likewise.
11082 (free_data_refs): Likewise.
11083 * tree-inline.c (copy_debug_stmts): Likewise.
11084 * tree-into-ssa.c (dump_currdefs): Likewise.
11085 (rewrite_update_phi_arguments): Likewise.
11086 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
11087 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
11088 Likewise.
11089 (vect_slp_analyze_node_dependences): Likewise.
11090 (vect_slp_analyze_instance_dependence): Likewise.
11091 (vect_record_base_alignments): Likewise.
11092 (vect_get_peeling_costs_all_drs): Likewise.
11093 (vect_peeling_supportable): Likewise.
11094 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
11095 (vec_info::free_stmt_vec_infos): Likewise.
11096
11097 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
11098
11099 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
11100 (andqi3_1<cczn>): Removed.
11101 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
11102 (H8/SX bit logicals): Split out from other patterns.
11103 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
11104 mulqihi3_const_clobber_flags.
11105 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
11106
11107 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
11108
11109 PR target/101023
11110 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
11111 to true if red zone is used.
11112 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
11113 ix86_red_zone_used.
11114 * config/i386/i386.h (machine_function): Add red_zone_used.
11115 (ix86_red_zone_size): Removed.
11116 (ix86_red_zone_used): New.
11117 * config/i386/i386.md (peephole2 patterns): Replace
11118 ix86_red_zone_size with ix86_red_zone_used.
11119
11120 2021-06-12 Jason Merrill <jason@redhat.com>
11121
11122 * doc/extend.texi (unused variable attribute): Applies to
11123 structure fields as well.
11124
11125 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
11126
11127 * auto-profile.c (read_profile): fix a typo in an error string
11128
11129 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
11130
11131 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
11132 default argument.
11133 * tree-pretty-print.c (dump_omp_clauses): Update.
11134 (dump_generic_node) <OMP_CLAUSE>: Use it.
11135
11136 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
11137
11138 PR target/101016
11139 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
11140 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
11141 the polymorphic variants matching code.
11142 (__arm_vld1q_z): Likewise.
11143 (__arm_vld2q): Likewise.
11144 (__arm_vld4q): Likewise.
11145 (__arm_vldrbq_gather_offset): Likewise.
11146 (__arm_vldrbq_gather_offset_z): Likewise.
11147
11148 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
11149
11150 PR tree-optimization/96392
11151 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
11152
11153 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
11154
11155 PR tree-optimization/96392
11156 * fold-const.c (fold_real_zero_addition_p): Take both arguments
11157 of the addition or subtraction, not just the zero. Use this
11158 other argument in tests for signaling NaNs and signed zeros.
11159 (tree_expr_maybe_real_minus_zero_p): New predicate.
11160 * fold-const.h (fold_real_zero_addition_p): Update prototype.
11161 (tree_expr_maybe_real_minus_zero_p): New function prototype.
11162 * match.pd: Update calls to fold_real_zero_addition_p.
11163 Replace HONOR_NANS with tree_expr_maybe_nan_p.
11164 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
11165 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
11166 * tree-ssa-reassoc.c (eliminate_using_constants): Update
11167 call to fold_real_zero_addition_p.
11168
11169 2021-06-11 Richard Biener <rguenther@suse.de>
11170
11171 PR tree-optimization/101025
11172 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
11173 all refs that require dependence checking.
11174
11175 2021-06-11 Richard Biener <rguenther@suse.de>
11176
11177 PR tree-optimization/101028
11178 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
11179 reassoc discovery fails fatally, mark appropriate lanes
11180 in matches[] so.
11181
11182 2021-06-11 Richard Biener <rguenther@suse.de>
11183
11184 PR tree-optimization/101026
11185 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
11186 have a representative for the associated chain nodes.
11187
11188 2021-06-11 Jakub Jelinek <jakub@redhat.com>
11189
11190 PR rtl-optimization/101008
11191 * simplify-rtx.c (relational_result): New function.
11192 (simplify_logical_relational_operation,
11193 simplify_relational_operation): Use it.
11194
11195 2021-06-11 Jakub Jelinek <jakub@redhat.com>
11196
11197 PR target/101007
11198 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
11199
11200 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
11201
11202 PR target/101021
11203 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
11204 false if the permutation can be implemented with constant
11205 permutation instruction in wider mode.
11206 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
11207 Handle V8QImode and V4HImode.
11208
11209 2021-06-11 Martin Liska <mliska@suse.cz>
11210
11211 PR gcov-profile/100788
11212 * common.opt: Add new option.
11213 * coverage.c (coverage_begin_function): Emit warning instead on
11214 the internal compiler error.
11215 * doc/invoke.texi: Document the option.
11216 * toplev.c (process_options): Enable it by default.
11217
11218 2021-06-11 Richard Biener <rguenther@suse.de>
11219
11220 PR middle-end/101009
11221 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
11222 to set *init_b to true when we encounter a constant equal
11223 index pair.
11224 (compute_affine_dependence): Also dump the actual DR_REF.
11225
11226 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
11227
11228 PR tree-optimization/100984
11229 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
11230 replacements table.
11231 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
11232
11233 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
11234
11235 * config/rs6000/rs6000.md
11236 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
11237 define_insn_and_split.
11238
11239 2021-06-11 Richard Biener <rguenther@suse.de>
11240
11241 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
11242 to sort operands of the associative chain.
11243
11244 2021-06-11 Richard Biener <rguenther@suse.de>
11245
11246 * system.h (gcc_stablesort_r): Declare.
11247 * sort.cc (gcc_sort_r): Support stable sort.
11248 (gcc_stablesort_r): Define.
11249 * vec.h (vec<>::stablesort): Add.
11250
11251 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
11252
11253 PR target/89021
11254 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
11255 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
11256 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
11257 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
11258 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
11259 (expand_vec_perm_interleave2): Handle 64bit modes.
11260 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
11261 (expand_vec_perm_even_odd_1): Ditto.
11262 (ix86_vectorize_vec_perm_const): Ditto.
11263 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
11264 * config/i386/sse.md: ... here.
11265 * config/i386/mmx.md (*vec_interleave_lowv2sf):
11266 New insn_and_split pattern.
11267 (*vec_interleave_highv2sf): Ditto.
11268 (mmx_pshufbv8qi3): New insn pattern.
11269 (*mmx_pblendw): Ditto.
11270
11271 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
11272
11273 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
11274 (build_acc): Likewise.
11275 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
11276 source operands in little-endian mode.
11277 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
11278 (mma_init_builtins): Likewise.
11279 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
11280 ordering for the MMA assemble and build source operands.
11281 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
11282 Document.
11283 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
11284 documentation.
11285
11286 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
11287
11288 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
11289 REG_P.
11290 * config/h8300/extensions.md: Replace _clobber_flags patterns
11291 with <cczn>.
11292
11293 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
11294
11295 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
11296 (vcond_mask_<mode><tointvec>): this.
11297
11298 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
11299 Thomas Schwinge <thomas@codesourcery.com>
11300
11301 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
11302 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
11303 * gimple.h (enum gf_mask): Split
11304 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
11305 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
11306 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
11307 (is_gimple_omp_oacc): Update.
11308 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
11309 * gimplify.c (gimplify_omp_target_update): Likewise.
11310 * omp-expand.c (expand_omp_target, build_omp_regions_1)
11311 (omp_make_gimple_edges): Likewise.
11312 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
11313 Likewise.
11314
11315 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
11316
11317 * value-query.cc (value_query::value_on_edge): Rename name to
11318 expr.
11319 (range_query::range_on_edge): Same.
11320 (range_query::value_of_expr): Same.
11321 (range_query::value_on_edge): Same.
11322 * value-query.h (class value_query): Same.
11323 (class range_query): Same.
11324
11325 2021-06-10 Richard Biener <rguenther@suse.de>
11326
11327 PR tree-optimization/101003
11328 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
11329 use the pattern stmt defs when linearizing a chain.
11330
11331 2021-06-10 Jakub Jelinek <jakub@redhat.com>
11332
11333 PR debug/100852
11334 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
11335 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
11336
11337 2021-06-10 Clement Chigot <clement.chigot@atos.net>
11338
11339 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
11340 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
11341
11342 2021-06-09 Andrew Pinski <apinski@marvell.com>
11343
11344 PR tree-optimization/100925
11345 * match.pd (a ? CST1 : CST2): Limit transformations
11346 that would produce a negative to integeral types only.
11347 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
11348
11349 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
11350
11351 Revert:
11352 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
11353
11354 * doc/tm.texi: Correctly update.
11355
11356 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
11357
11358 * doc/tm.texi: Correctly update.
11359
11360 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
11361
11362 PR other/100735
11363 * doc/tm.texi.in (Trampolines): Add a missing blank line.
11364
11365 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
11366
11367 PR other/100735
11368 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
11369 and -ftrampolines work only with Ada.
11370 * doc/tm.texi.in (Trampolines): Likewise.
11371 * doc/tm.texi: Regenerated.
11372
11373 2021-06-09 Carl Love <cel@us.ibm.com>
11374
11375 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
11376 Add define for new builtins.
11377 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
11378 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
11379 overloaded builtin definitions.
11380 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
11381 VSIGNEXTSD2Q): Add builtin expansions.
11382 (SIGNEXT): Add P10 overload definition.
11383 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
11384 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
11385 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
11386 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
11387 vsignextend_si_v2di)[VIlong]: Add define_expand.
11388 Make define_insn vsx_sign_extend_si_v2di visible.
11389 * doc/extend.texi: Add documentation for the vec_signexti,
11390 vec_signextll builtins and vec_signextq.
11391
11392 2021-06-09 Carl Love <cel@us.ibm.com>
11393
11394 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
11395 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
11396 __floattikf_sw, __floatuntikf_sw respectively.
11397 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
11398 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
11399 define_insn for mode IEEE 128.
11400
11401 2021-06-09 Carl Love <cel@us.ibm.com>
11402
11403 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
11404 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
11405 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
11406 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
11407 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
11408 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
11409 uses of VSX_TI to VEC_TI.
11410
11411 2021-06-09 Carl Love <cel@us.ibm.com>
11412
11413 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
11414
11415 2021-06-09 Carl Love <cel@us.ibm.com>
11416
11417 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
11418 builtins.
11419 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
11420 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
11421 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
11422 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
11423 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
11424 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
11425 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
11426 define_insn.
11427 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
11428 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
11429 altivec_vrlqnm): New define_expands.
11430 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
11431 VCMPGTUT_P): Add macro expansions.
11432 (BU_P10V_AV_P): Add builtin predicate definition.
11433 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
11434 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
11435 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
11436 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
11437 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
11438 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
11439 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
11440 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
11441 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
11442 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
11443 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
11444 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
11445 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
11446 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
11447 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
11448 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
11449 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
11450 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
11451 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
11452 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
11453 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
11454 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
11455 P10V_BUILTIN_MODU_V1TI):
11456 New overloaded definitions.
11457 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
11458 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
11459 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
11460 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
11461 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
11462 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
11463 New assignments.
11464 (altivec_init_builtins): New E_V1TImode case statement.
11465 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
11466 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
11467 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
11468 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
11469 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
11470 E_V1TImode]: New case statements.
11471 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
11472 value RS6000_BTI_bool_V1TI.
11473 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
11474 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
11475 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
11476 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
11477 vlshrv1ti3, vashrv1ti3): New define_expands.
11478 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
11479 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
11480 UNSPEC_VSX_MODUQ): New unspecs.
11481 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
11482 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
11483 define_insns.
11484 (vcmpnet): New define_expand.
11485 * doc/extend.texi: Add documentation for the new builtins vec_rl,
11486 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
11487 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
11488 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
11489 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
11490 vec_any_ge, vec_any_le.
11491
11492 2021-06-09 Carl Love <cel@us.ibm.com>
11493
11494 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
11495 bug in argument generation.
11496
11497 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
11498
11499 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
11500 (VCLZQ): Remove.
11501 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
11502 remove <supf> iterator.
11503 (mve_vclzq_u<mode>): New.
11504 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
11505 (neon_vclz<mode): Move to ...
11506 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
11507 * config/arm/vec-common.md: ... here. Add support for MVE.
11508
11509 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
11510
11511 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
11512 (@mve_vrhaddq_<supf><mode): Likewise.
11513 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
11514 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
11515 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
11516
11517 2021-06-09 imba-tjd <109224573@qq.com>
11518
11519 * doc/invoke.texi: Fix typo.
11520
11521 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
11522
11523 PR middle-end/53267
11524 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
11525 Support evaluation of fmod/fmodf/fmodl at compile-time.
11526
11527 2021-06-09 Richard Biener <rguenther@suse.de>
11528
11529 PR tree-optimization/100981
11530 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
11531 gimple_get_lhs to also handle calls.
11532 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
11533 reduction info.
11534
11535 2021-06-09 Richard Biener <rguenther@suse.de>
11536
11537 PR tree-optimization/97832
11538 * tree-vectorizer.h (_slp_tree::failed): New.
11539 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
11540 failed member.
11541 (_slp_tree::~_slp_tree): Free failed.
11542 (vect_build_slp_tree): Retain failed nodes and record
11543 matches in them, copying that back out when running
11544 into a cached fail. Dump start and end of discovery.
11545 (dt_sort_cmp): New.
11546 (vect_build_slp_tree_2): Handle associatable chains
11547 together doing more aggressive operand swapping.
11548
11549 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
11550
11551 PR target/100896
11552 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
11553 GNU targets.
11554 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
11555 Linux and GNU targets.
11556
11557 2021-06-09 Richard Biener <rguenther@suse.de>
11558
11559 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
11560 from the stmt.
11561
11562 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
11563
11564 * config/arc/arc.md (loop_end): Change it to
11565 define_insn_and_split.
11566
11567 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
11568
11569 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
11570 (machi): New pattern.
11571 (umaddhisi4): Use VMAC2HU instruction.
11572 (umachi): New pattern.
11573
11574 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
11575
11576 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
11577 * config/arc/arc.c (arc_split_move_p): New function.
11578 (arc_split_move): Clean up.
11579 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
11580 (movdf_insn): Likewise.
11581 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
11582
11583 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
11584
11585 PR target/100936
11586 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
11587 argument to "raw". Do not emit segment overrides when "raw" is true.
11588
11589 2021-06-09 Martin Liska <mliska@suse.cz>
11590
11591 * doc/gcov.texi: Create a proper JSON files.
11592 * doc/invoke.texi: Remove dots in order to make it a valid
11593 JSON object.
11594
11595 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
11596
11597 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
11598 (insn_is_load_p): Use pattern_is_rotate64.
11599 (insn_is_swap_p): Likewise.
11600 (quad_aligned_load_p): Likewise.
11601 (const_load_sequence_p): Likewise.
11602 (replace_swapped_aligned_load): Likewise.
11603 (recombine_lvx_pattern): Likewise.
11604 (recombine_stvx_pattern): Likewise.
11605
11606 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
11607
11608 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
11609 fur_stmt source record.
11610 * gimple-range.cc (fur_source::get_operand): Generic range query.
11611 (fur_source::get_phi_operand): New.
11612 (fur_source::register_dependency): New.
11613 (fur_source::query): New.
11614 (class fur_edge): New. Edge source for operands.
11615 (fur_edge::fur_edge): New.
11616 (fur_edge::get_operand): New.
11617 (fur_edge::get_phi_operand): New.
11618 (fur_edge::query): New.
11619 (fur_stmt::fur_stmt): New.
11620 (fur_stmt::get_operand): New.
11621 (fur_stmt::get_phi_operand): New.
11622 (fur_stmt::query): New.
11623 (class fur_depend): New. Statement source and process dependencies.
11624 (fur_depend::fur_depend): New.
11625 (fur_depend::register_dependency): New.
11626 (class fur_list): New. List source for operands.
11627 (fur_list::fur_list): New.
11628 (fur_list::get_operand): New.
11629 (fur_list::get_phi_operand): New.
11630 (fold_range): New. Instantiate appropriate fur_source class and fold.
11631 (fold_using_range::range_of_range_op): Use new API.
11632 (fold_using_range::range_of_address): Ditto.
11633 (fold_using_range::range_of_phi): Ditto.
11634 (imple_ranger::fold_range_internal): Use fur_depend class.
11635 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
11636 * gimple-range.h (class fur_source): Now a base class.
11637 (class fur_stmt): New.
11638 (fold_range): New prototypes.
11639 (fur_source::fur_source): Delete.
11640
11641 2021-06-08 Andrew Pinski <apinski@marvell.com>
11642
11643 PR tree-optimization/25290
11644 * tree-ssa-phiopt.c (xor_replacement): Delete.
11645 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
11646 (match_simplify_replacement): Allow one cheap preparation
11647 statement that can be moved to before the if.
11648
11649 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
11650
11651 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
11652 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
11653
11654 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
11655
11656 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
11657 Create length attribute on define_insn_and_split. Only split for cases which we
11658 know will use AND.
11659 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
11660 fix length computation.
11661 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
11662
11663 2021-06-08 Richard Biener <rguenther@suse.de>
11664
11665 PR tree-optimization/100923
11666 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
11667 the operand vector to be valueized.
11668 (valueize_refs): Likewise.
11669 (valueize_shared_reference_ops_from_ref): Adjust.
11670 (valueize_shared_reference_ops_from_call): Likewise.
11671 (vn_reference_lookup_3): Likewise.
11672 (vn_reference_lookup_pieces): Likewise. Re-valueize
11673 with honoring availability when we are about to create
11674 the ao_ref and valueized before.
11675 (vn_reference_lookup): Likewise.
11676 (vn_reference_insert_pieces): Adjust.
11677
11678 2021-06-08 Richard Biener <rguenther@suse.de>
11679
11680 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
11681 (_slp_instance::root_stmts): ... a vector.
11682 (SLP_INSTANCE_ROOT_STMT): Rename to ...
11683 (SLP_INSTANCE_ROOT_STMTS): ... this.
11684 (slp_root::root): Change to...
11685 (slp_root::roots): ... a vector.
11686 (slp_root::slp_root): Adjust.
11687 * tree-vect-slp.c (_slp_instance::location): Adjust.
11688 (vect_free_slp_instance): Release the root stmt vector.
11689 (vect_build_slp_instance): Adjust.
11690 (vect_analyze_slp): Likewise.
11691 (_bb_vec_info::~_bb_vec_info): Likewise.
11692 (vect_slp_analyze_operations): Likewise.
11693 (vect_bb_vectorization_profitable_p): Likewise. Adjust
11694 costs for the root stmt.
11695 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
11696 as root stmts.
11697 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
11698 as pure_slp.
11699 (vectorize_slp_instance_root_stmt): Adjust.
11700 (vect_schedule_slp): Likewise.
11701
11702 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
11703
11704 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
11705 (ssa_equiv_stack::ssa_equiv_stack): New.
11706 (ssa_equiv_stack::~ssa_equiv_stack): New.
11707 (ssa_equiv_stack::enter): New.
11708 (ssa_equiv_stack::leave): New.
11709 (ssa_equiv_stack::push_replacement): New.
11710 (ssa_equiv_stack::get_replacement): New.
11711 (is_pointer_ssa): New.
11712 (class pointer_equiv_analyzer): New.
11713 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
11714 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
11715 (pointer_equiv_analyzer::set_global_equiv): New.
11716 (pointer_equiv_analyzer::set_cond_equiv): New.
11717 (pointer_equiv_analyzer::get_equiv): New.
11718 (pointer_equiv_analyzer::enter): New.
11719 (pointer_equiv_analyzer::leave): New.
11720 (pointer_equiv_analyzer::get_equiv_expr): New.
11721 (pta_valueize): New.
11722 (pointer_equiv_analyzer::visit_stmt): New.
11723 (pointer_equiv_analyzer::visit_edge): New.
11724 (hybrid_folder::value_of_expr): Call PTA.
11725 (hybrid_folder::value_on_edge): Same.
11726 (hybrid_folder::pre_fold_bb): New.
11727 (hybrid_folder::post_fold_bb): New.
11728 (hybrid_folder::pre_fold_stmt): New.
11729 (rvrp_folder::pre_fold_bb): New.
11730 (rvrp_folder::post_fold_bb): New.
11731 (rvrp_folder::pre_fold_stmt): New.
11732 (rvrp_folder::value_of_expr): Call PTA.
11733 (rvrp_folder::value_on_edge): Same.
11734
11735 2021-06-08 Jakub Jelinek <jakub@redhat.com>
11736
11737 PR c++/100957
11738 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
11739 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
11740
11741 2021-06-08 Richard Biener <rguenther@suse.de>
11742
11743 PR middle-end/100951
11744 * tree-vect-generic.c (expand_vector_piecewise): Build a
11745 VECTOR_CST if all elements are constant.
11746 (expand_vector_condition): Likewise.
11747 (lower_vec_perm): Likewise.
11748 (expand_vector_conversion): Likewise.
11749
11750 2021-06-08 Martin Liska <mliska@suse.cz>
11751
11752 * doc/invoke.texi: Document new param evrp-sparse-threshold.
11753
11754 2021-06-08 Martin Liska <mliska@suse.cz>
11755
11756 * genautomata.c (create_automata): Fix typo.
11757
11758 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
11759
11760 PR tree-optimization/100794
11761 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
11762 allow_unroll_p and only allow unrolling when it's true.
11763 (tree_predictive_commoning): Add parameter allow_unroll_p and
11764 adjust for it.
11765 (run_tree_predictive_commoning): Likewise.
11766 (pass_predcom::gate): Check flag_tree_loop_vectorize and
11767 global_options_set.x_flag_predictive_commoning.
11768 (pass_predcom::execute): Adjust for allow_unroll_p.
11769
11770 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
11771
11772 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
11773 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
11774 lambda function cleanup, remove scev_reset call, and adjust return
11775 value.
11776 (tree_predictive_commoning): Adjust for different changed values,
11777 only set flag TODO_update_ssa_only_virtuals if changed.
11778 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
11779 from todo_flags_finish.
11780
11781 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
11782
11783 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
11784 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
11785 (sbr_sparse_bitmap::bitmap_set_quad): New.
11786 (sbr_sparse_bitmap::bitmap_get_quad): New.
11787 (sbr_sparse_bitmap::set_bb_range): New.
11788 (sbr_sparse_bitmap::get_bb_range): New.
11789 (sbr_sparse_bitmap::bb_range_p): New.
11790 (block_range_cache::block_range_cache): initialize bitmap obstack.
11791 (block_range_cache::~block_range_cache): Destruct obstack.
11792 (block_range_cache::set_bb_range): Decide when to utilze the
11793 sparse on entry cache.
11794 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
11795 * params.opt (-param=evrp-sparse-threshold): New.
11796
11797 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
11798
11799 * bitmap.c (bitmap_set_aligned_chunk): New.
11800 (bitmap_get_aligned_chunk): New.
11801 (test_aligned_chunk): New.
11802 (bitmap_c_tests): Call test_aligned_chunk.
11803 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
11804
11805 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
11806
11807 PR target/100637
11808 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
11809 Handle V4QI mode.
11810 (ix86_expand_vector_init_one_nonzero): Ditto.
11811 (ix86_expand_vector_init_one_var): Ditto.
11812 (ix86_expand_vector_init_general): Ditto.
11813 * config/i386/mmx.md (vec_initv4qiqi): New expander.
11814
11815 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
11816
11817 * config/h8300/movepush.md: Change most _clobber_flags
11818 patterns to instead use <cczn> subst.
11819 (movsi_cczn): New pattern with usable CC cases split out.
11820 (movsi_h8sx_cczn): Likewise.
11821
11822 2021-06-07 Martin Liska <mliska@suse.cz>
11823
11824 * common/common-target.def: Split long lines and replace them
11825 with '\n\'.
11826 * target.def: Likewise.
11827 * doc/tm.texi: Re-generated.
11828
11829 2021-06-07 Jakub Jelinek <jakub@redhat.com>
11830
11831 PR target/100887
11832 * fold-const.c (fold_read_from_vector): Return NULL if trying to
11833 read from a CONSTRUCTOR with vector type elements.
11834
11835 2021-06-07 Jakub Jelinek <jakub@redhat.com>
11836
11837 PR middle-end/100898
11838 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
11839 should copy any arguments. Don't call gimple_call_num_args
11840 on id->call_stmt or call_stmt more than once.
11841
11842 2021-06-07 liuhongt <hongtao.liu@intel.com>
11843
11844 PR target/100885
11845 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
11846 constraints.
11847 (<insn>v4siv4di2): Delete constraints for define_expand.
11848
11849 2021-06-07 liuhongt <hongtao.liu@intel.com>
11850
11851 PR target/82735
11852 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
11853 assignment of cfun->machine->has_explicit_vzeroupper.
11854 * config/i386/i386-features.c
11855 (ix86_add_reg_usage_to_vzerouppers): Delete.
11856 (ix86_add_reg_usage_to_vzeroupper): Ditto.
11857 (rest_of_handle_insert_vzeroupper): Remove
11858 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
11859 of the function.
11860 (gate): Remove cfun->machine->has_explicit_vzeroupper.
11861 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
11862 Declared.
11863 * config/i386/i386.c (ix86_insn_callee_abi): New function.
11864 (ix86_initialize_callee_abi): Ditto.
11865 (ix86_expand_avx_vzeroupper): Ditto.
11866 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
11867 ABI.
11868 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
11869 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
11870 directly.
11871 * config/i386/i386.h (struct GTY(()) machine_function): Delete
11872 has_explicit_vzeroupper.
11873 * config/i386/i386.md (enum unspec): New member
11874 UNSPEC_CALLEE_ABI.
11875 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
11876 define_constants for insn callee abi index.
11877 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
11878 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
11879 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
11880 (*avx_vzeroupper): Rename to ..
11881 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
11882 call_insn which has a special vzeroupper ABI.
11883 (*avx_vzeroupper_1): Deleted.
11884
11885 2021-06-07 liuhongt <hongtao.liu@intel.com>
11886
11887 PR target/82735
11888 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
11889 it won't use stack pointer reg.
11890 * final.c (leaf_function_p): When call_insn is a fake call, it
11891 won't affect caller as a leaf function.
11892 * reg-stack.c (callee_clobbers_any_stack_reg): New.
11893 (subst_stack_regs): When call_insn doesn't clobber any stack
11894 reg, don't clear the arguments.
11895 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
11896 a insn.
11897 * shrink-wrap.c (requires_stack_frame_p): No need for stack
11898 frame for a fake call.
11899 * rtl.h (FAKE_CALL_P): New macro.
11900
11901 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
11902
11903 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
11904 to...
11905 (sparc_order_regs_for_local_alloc): ...this.
11906 (sparc_leaf_reg_remap): Declare.
11907 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
11908 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
11909 * config/sparc/sparc.c (leaf_reg_remap): Delete.
11910 (order_regs_for_local_alloc): Rename to...
11911 (sparc_order_regs_for_local_alloc): ...this.
11912 (sparc_leaf_reg_remap): New function.
11913 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
11914
11915 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
11916
11917 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
11918 Use assemble_name to output BSS section name.
11919
11920 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
11921
11922 * config/i386/constraints.md (Bs):
11923 Remove boolean operators from match_test RTX.
11924 (Bw): Ditto.
11925 (L): Ditto.
11926 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
11927 (Wz): Ditto.
11928
11929 2021-06-06 Martin Liska <mliska@suse.cz>
11930
11931 * doc/extend.texi: Add missing @headitem.
11932 * doc/invoke.texi: Likewise.
11933 * doc/objc.texi: Likewise.
11934
11935 2021-06-06 Martin Liska <mliska@suse.cz>
11936
11937 * genhooks.c (emit_findices): Remove unused function.
11938 (emit_documentation): Do not call emit_findices
11939 and do not search for @Fcode directives.
11940
11941 2021-06-06 Martin Liska <mliska@suse.cz>
11942
11943 * doc/invoke.texi: Remove extra character.
11944
11945 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
11946
11947 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
11948
11949 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
11950
11951 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
11952 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
11953 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
11954 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
11955
11956 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
11957
11958 * config/or1k/or1k.md (*movdi): Fix empty split condition.
11959
11960 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
11961
11962 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
11963 split condition.
11964
11965 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
11966
11967 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
11968 *zero_extendsidi2): Fix empty split condition.
11969
11970 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
11971
11972 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
11973 patterns.
11974 * config/h8300/bitfield.md: Likewise.
11975 * config/h8300/combiner.md: Likewise.
11976 * config/h8300/divmod.md: Likewise.
11977 * config/h8300/extensions.md: Likewise.
11978 * config/h8300/jumpcall.md: Likewise.
11979 * config/h8300/movepush.md: Likewise.
11980 * config/h8300/multiply.md: Likewise.
11981 * config/h8300/other.md: Likewise.
11982 * config/h8300/shiftrotate.md: Likewise.
11983 * config/h8300/logical.md: Likewise. Fix split pattern to use
11984 code iterator that somehow slipped through.
11985
11986 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
11987
11988 PR middle-end/100905
11989 * tree-nested.c (convert_nonlocal_omp_clauses,
11990 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
11991
11992 2021-06-04 Martin Sebor <msebor@redhat.com>
11993
11994 PR middle-end/100732
11995 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
11996 with either source or destination argument of invalid type.
11997 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
11998 calls with arguments of invalid type.
11999
12000 2021-06-04 Martin Sebor <msebor@redhat.com>
12001
12002 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
12003 order.
12004 (attr_access::vla_bounds): Also handle VLA bounds.
12005
12006 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
12007
12008 * config/i386/predicates.md (GOT_memory_operand):
12009 Implement using match_code RTXes.
12010 (GOT32_symbol_operand): Ditto.
12011
12012 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
12013
12014 PR target/100637
12015 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
12016 Handle V2HI mode.
12017 (ix86_expand_vector_init_general): Ditto.
12018 Use SImode instead of word_mode for logic operations
12019 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
12020 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
12021 implemented by expand_vec_perm_1.
12022 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
12023 should be implemented using standard shuffle patterns.
12024 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
12025 V2HI modes to modes, implementable with shuffle for one operand.
12026 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
12027 (*pshufw_1): New insn pattern.
12028 (*vec_dupv2hi): Ditto.
12029 (vec_initv2hihi): New expander.
12030
12031 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
12032
12033 * config/arm/vfp.md (no_literal_pool_df_immediate,
12034 no_literal_pool_sf_immediate): Fix empty split condition.
12035
12036 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
12037
12038 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
12039 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
12040 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
12041 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
12042 *<sse4_1_avx2>_pblendvb_lt): Likewise.
12043
12044 2021-06-04 Jakub Jelinek <jakub@redhat.com>
12045
12046 PR target/100887
12047 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
12048 concatenation from half-sized modes with TImode elements.
12049
12050 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
12051
12052 * config/arc/arc.c (arc_override_options): Disable millicode
12053 thunks when RF16 is on.
12054
12055 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
12056
12057 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
12058
12059 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
12060
12061 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
12062 Replace PROMOTE_MODE marco with its content.
12063
12064 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
12065
12066 * config/cris/cris.md (*addi_reload): Fix empty split condition.
12067
12068 2021-06-03 Jim Wilson <jimw@sifive.com>
12069
12070 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
12071 turn it on for all riscv targets.
12072
12073 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
12074
12075 PR target/100637
12076 * config/i386/i386-expand.c (ix86_expand_vector_set):
12077 Handle V2HI and V4QI modes.
12078 (ix86_expand_vector_extract): Ditto.
12079 * config/i386/mmx.md (*pinsrw): New insn pattern.
12080 (*pinsrb): Ditto.
12081 (*pextrw): Ditto.
12082 (*pextrw_zext): Ditto.
12083 (*pextrb): Ditto.
12084 (*pextrb_zext): Ditto.
12085 (vec_setv2hi): New expander.
12086 (vec_extractv2hihi): Ditto.
12087 (vec_setv4qi): Ditto.
12088 (vec_extractv4qiqi): Ditto.
12089 (vec_setv8qi): Enable only for TARGET_SSE4_1.
12090 (vec_extractv8qiqi): Ditto.
12091
12092 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
12093
12094 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
12095 order to subf instruction.
12096 * config/rs6000/fusion.md: Regenerate.
12097
12098 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
12099
12100 * calls.c (get_size_range): Use range_of_expr instead of
12101 determine_value_range.
12102 * tree-affine.c (expr_to_aff_combination): Same.
12103 * tree-data-ref.c (split_constant_offset): Same.
12104 * tree-vrp.c (determine_value_range_1): Remove.
12105 (determine_value_range): Remove.
12106 * tree-vrp.h (determine_value_range): Remove.
12107
12108 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
12109
12110 * function-tests.c (test_ranges): Call gimple_range_tests.
12111 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
12112 to get_tree_range.
12113 * gimple-range.cc (fur_source::get_operand): Do not call
12114 get_tree_range or gimple_range_global.
12115 get_tree_range.
12116 (get_tree_range): Move to value-query.cc.
12117 Call get_arith_expr_range.
12118 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
12119 Include gimple-range-tests.cc.
12120 * gimple-range.h (fold_range): Add argument.
12121 (get_tree_range): Remove.
12122 * selftest.h (gimple_range_tests): New.
12123 * value-query.cc (global_range_query::range_of_expr): Add
12124 stmt argument.
12125 (range_query::get_tree_range): Move from gimple-range.cc.
12126 * value-query.h (class range_query): Add get_tree_range and
12127 get_arith_expr_range. Make fur_source a friend.
12128 * vr-values.c (vr_values::range_of_expr): Pass stmt to
12129 get_tree_range.
12130 * gimple-range-tests.cc: New file.
12131
12132 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
12133
12134 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
12135 update_global_range.
12136 * value-query.cc (update_global_range): New.
12137 * value-query.h (update_global_range): New.
12138
12139 2021-06-03 David Malcolm <dmalcolm@redhat.com>
12140
12141 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
12142 printing the same location twice if there are fix-it hints,
12143 multiple locations, or a label.
12144
12145 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
12146
12147 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
12148 thresholds to narrow the upper bound on epilogue iterations.
12149
12150 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
12151
12152 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
12153 (mve_vabsq_s<mode>): Likewise.
12154 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
12155 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
12156 * config/arm/vec-common.md (neg<mode>2): Rename to
12157 <absneg_str><mode>2.
12158
12159 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
12160
12161 * common/config/arc/arc-common.c (arc_option_optimization_table):
12162 Remove malign-call.
12163 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
12164 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
12165 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
12166 * config/arc/arc.md (abssi2_mixed): Remove pattern.
12167 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
12168 (malign-call): Likewise.
12169 (mmixed-code): Likewise.
12170 * doc/invoke.texi (ARC): Update doc.
12171
12172 2021-06-03 Martin Liska <mliska@suse.cz>
12173
12174 * common.opt: Use proper Enum values.
12175 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
12176 (parse_sanitizer_options): Handle only sanitizer_opts.
12177 (common_handle_option): Just assign value.
12178
12179 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
12180
12181 PR ipa/99122
12182 * tree-inline.c (inline_forbidden_p): Remove test on return type.
12183
12184 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
12185
12186 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
12187 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
12188 (type_byte_size): Inline into...
12189 (add_byte_size_attribute): ...this and call add_scalar_info.
12190
12191 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
12192
12193 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
12194 (typed_binop_from_tree): New function.
12195 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
12196 turn a divide by a power of 2 into a shift.
12197 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
12198 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
12199 typed divide by calling typed_binop_from_tree.
12200
12201 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
12202
12203 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
12204 (is_handled_procedure_type): Likewise.
12205 (struct loc_descr_context): Add strict_signedness field.
12206 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
12207 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
12208 (resolve_args_picking): Minor tweak.
12209 (function_to_dwarf_procedure): Initialize strict_signedness field.
12210 (type_byte_size): Likewise.
12211 (field_byte_offset): Likewise.
12212 (gen_descr_array_type_die): Likewise.
12213 (gen_variant_part): Likewise.
12214 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
12215 to true when a context is present before evaluating the arguments.
12216 <COND_EXPR>: Do not generate a useless comparison with zero.
12217 When dereferencing an address, if strict_signedness is true and the
12218 type is small and signed, use DW_OP_deref_type to do the dereference
12219 and then DW_OP_convert to convert back to the generic type.
12220
12221 2021-06-03 Jakub Jelinek <jakub@redhat.com>
12222
12223 PR c++/100859
12224 * tree-inline.c (copy_tree_body_r): Handle iterators on
12225 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
12226
12227 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
12228
12229 * config/arc/arc.md (*bbit_di): Remove.
12230
12231 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
12232
12233 PR rtl-optimization/100264
12234 * ree.c (get_sub_rtx): Ignore SET expressions without register
12235 destinations and remove assertion, as it is not valid anymore
12236 with this new behaviour.
12237 (merge_def_and_ext): Eliminate destination check for register
12238 as such SET expressions can't occur anymore.
12239 (combine_reaching_defs): Likewise.
12240
12241 2021-06-02 Jakub Jelinek <jakub@redhat.com>
12242
12243 PR target/100841
12244 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
12245 -Wtype-limits warnings.
12246 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
12247 in operands to avoid -Wsign-compare warnings.
12248
12249 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
12250
12251 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
12252 gen_frame_store.
12253
12254 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
12255
12256 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
12257
12258 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
12259
12260 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
12261 constraint.
12262 * config/s390/subst.md(cconly_subst): Use a single constraint
12263 in (match_scratch).
12264
12265 2021-06-02 Martin Liska <mliska@suse.cz>
12266
12267 * ipa-icf.h: Use auto_vec for memory_access_types.
12268
12269 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
12270
12271 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
12272 argument from prototype.
12273 (output_logical_op): Add rtx_code argument.
12274 (compute_logical_op_length): Likewise.
12275 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
12276 to compute_a_shift_length.
12277 (output_logical_op); New argument with the rtx code rather than
12278 extracting it from an operand. Handle QImode too.
12279 (compute_logical_op_length): Similary.
12280 (compute_a_shift_length): Drop unused argument.
12281 * config/h8300/h8300.md (logicals): New code iterator.
12282 * config/h8300/logical.md (<code><mode>3 expander): Combine
12283 the "and" expander with the "ior"/"xor" expander.
12284 (bclr<mode>msx): Combine the QI/HI mode patterns.
12285 (<logical><mode>3 insns): Use code iterator rather than match_operator.
12286 Handle QImode as well. Update call to output_logical_op and
12287 compute_logical_op_length to pass in rtx_code
12288 Fix split condition on all define_insn_and_split patterns.
12289 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
12290 the flags and setting ZN via existing define_subst.
12291 * config/h8300/shiftrotate.md: Drop unused argument from
12292 calls to compute_a_shift_length.
12293 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
12294
12295 2021-06-01 Andrew Pinski <apinski@marvell.com>
12296
12297 PR tree-optimization/25290
12298 * tree-ssa-phiopt.c (match_simplify_replacement):
12299 New function.
12300 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
12301 (two_value_replacement): Change the comment about
12302 conditional_replacement.
12303 (conditional_replacement): Delete.
12304
12305 2021-06-01 Andrew Pinski <apinski@marvell.com>
12306
12307 PR tree-optimization/95481
12308 * tree-tailcall.c (find_tail_calls): Handle empty typed
12309 return decls.
12310
12311 2021-06-01 Andrew Pinski <apinski@marvell.com>
12312
12313 * gimplify.c (zero_sized_field_decl): Delete
12314 (zero_sized_type): Delete
12315 (gimplify_init_ctor_eval): Use is_empty_type instead
12316 of zero_sized_field_decl.
12317 (gimplify_modify_expr): Use is_empty_type instead of
12318 zero_sized_type.
12319
12320 2021-06-01 Jason Merrill <jason@redhat.com>
12321
12322 PR c++/91859
12323 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
12324
12325 2021-06-01 Jason Merrill <jason@redhat.com>
12326
12327 PR c++/94492
12328 * diagnostic.h (warning_enabled_at): Declare.
12329 * diagnostic.c (diagnostic_enabled): Factor out from...
12330 (diagnostic_report_diagnostic): ...here.
12331 (warning_enabled_at): New.
12332
12333 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
12334
12335 * gimple-ssa-evrp.c: Enable exporting of global ranges.
12336
12337 2021-06-01 Martin Liska <mliska@suse.cz>
12338
12339 PR other/100826
12340 * doc/invoke.texi: Mention that -fgcse-after-reload
12341 is enabled with -O3.
12342
12343 2021-06-01 liuhongt <hongtao.liu@intel.com>
12344
12345 PR tree-optimization/98365
12346 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
12347 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
12348 (convert_scalar_cond_reduction): Ditto.
12349 (predicate_scalar_phi): Ditto.
12350
12351 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
12352
12353 PR tree-optimization/100781
12354 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
12355 value calculation by default.
12356 (ranger_cache::enable_new_values): New.
12357 (ranger_cache::disable_new_values): New.
12358 (ranger_cache::push_poor_value): Check if new values are allowed.
12359 * gimple-range-cache.h (class ranger_cache): New member/methods.
12360 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
12361 statement, and disable/renable new value calculation.
12362
12363 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
12364
12365 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
12366 (ranger_cache::range_of_def): New.
12367 (ranger_cache::entry_range): New.
12368 (ranger_cache::exit_range): New.
12369 (ranger_cache::range_of_expr): Adjust.
12370 (ranger_cache::range_on_edge): Adjust.
12371 (ranger_cache::propagate_cache): Call exit_range directly.
12372 * gimple-range-cache.h (class ranger_cache): Adjust.
12373
12374 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
12375
12376 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
12377 gori_compute being a member rather than base class.
12378 dervied call to member call.
12379 (ranger_cache::dump): No longer dump gori_map.
12380 (ranger_cache::dump_bb): New.
12381 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
12382 being a member rather than base class.
12383 (ranger_cache::set_global_range): Ditto.
12384 (ranger_cache::ssa_range_in_bb): Ditto.
12385 (ranger_cache::range_of_expr): New.
12386 (ranger_cache::range_on_edge): New.
12387 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
12388 (ranger_cache::propagate_cache): Adjust debugging output.
12389 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
12390 output changes.
12391 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
12392 member, and inherit from range_query instead.
12393 (ranger_cache::dump_bb): New. split from dump.
12394 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
12395 (gori_compute::expr_range_at_stmt): Delete.
12396 (gori_compute::compute_name_range_op): Delete.
12397 (gori_compute::compute_operand_range_switch): Add fur_source.
12398 (gori_compute::compute_operand_range): Add fur_source param, inline
12399 old compute_name_range_op and optimize_logical_operands.
12400 (struct tf_range): Delete.
12401 (gori_compute::logical_combine): Adjust
12402 (gori_compute::optimize_logical_operands): Delete.
12403 (gori_compute::compute_logical_operands_in_chain): Delete.
12404 (gori_compute::compute_logical_operands): Adjust.
12405 (gori_compute::compute_operand1_range): Adjust to fur_source.
12406 (gori_compute::compute_operand2_range): Ditto.
12407 (gori_compute::compute_operand1_and_operand2_range): Ditto.
12408 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
12409 and adjust to fur_source.
12410 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
12411 range_query and fur_source.
12412 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
12413 from the ranger_cache..
12414 (gimple_ranger::fold_range_internal): Adjust to base class change of
12415 ranger_cache.
12416 (gimple_ranger::dump_bb): Adjust dump.
12417 * gimple-range.h (gimple_ranger):export gori computes object.
12418
12419 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
12420
12421 PR tree-optimization/100774
12422 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
12423 Constant values are also not stale.
12424 (ranger_cache::set_global_range): Range invariant values should also
12425 have the correct timestamp.
12426
12427 2021-05-31 Martin Liska <mliska@suse.cz>
12428
12429 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
12430 Unpack FUNCTION_DECL_DECL_TYPE.
12431 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
12432 Stream FUNCTION_DECL_DECL_TYPE instead of
12433 DECL_IS_OPERATOR_NEW_P.
12434 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
12435 macro.
12436 (DECL_IS_OPERATOR_NEW_P): Likewise.
12437 (DECL_IS_OPERATOR_DELETE_P): Likewise.
12438 (DECL_LAMBDA_FUNCTION_P): Likewise.
12439
12440 2021-05-31 Richard Biener <rguenther@suse.de>
12441
12442 PR c++/88601
12443 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
12444 * internal-fn.def (SHUFFLEVECTOR): New.
12445 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
12446 * doc/extend.texi: Document __builtin_shufflevector.
12447
12448 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
12449
12450 PR target/99842
12451 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
12452 indexed form addresses.
12453
12454 2021-05-29 Jeff Law <jlaw@tachyum.com>
12455
12456 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
12457 parameter. Call callers fixed.
12458 (push): Likewise.
12459 (output_plussi): Add FALLTHRU markers.
12460 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
12461
12462 2021-05-29 Jakub Jelinek <jakub@redhat.com>
12463
12464 PR middle-end/99928
12465 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
12466 combined with parallel, make sure to add shared clause to
12467 parallel for explicit linear clause.
12468
12469 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
12470
12471 PR tree-optimization/100787
12472 * gimple-ssa-evrp.c: Disable exporting of global ranges.
12473
12474 2021-05-28 Jason Merrill <jason@redhat.com>
12475
12476 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
12477 operator--, operator*, operator==, and operator!=.
12478 (class tsi_range): New.
12479
12480 2021-05-28 Richard Biener <rguenther@suse.de>
12481
12482 PR tree-optimization/100778
12483 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
12484 trapping ops in different BBs.
12485
12486 2021-05-28 Richard Biener <rguenther@suse.de>
12487
12488 PR ipa/100791
12489 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
12490 copy fntype from original call.
12491
12492 2021-05-28 Martin Liska <mliska@suse.cz>
12493
12494 PR gcov-profile/100751
12495 * doc/gcov.texi: Revert partially a hunk that was wrong.
12496
12497 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
12498
12499 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
12500 Defined.
12501 (HAVE_sync_compare_and_swaphi): Likewise.
12502 (HAVE_sync_compare_and_swapsi): Likewise.
12503
12504 2021-05-28 Jakub Jelinek <jakub@redhat.com>
12505
12506 PR middle-end/99928
12507 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
12508
12509 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
12510
12511 * gimplify.c (gimplify_omp_affinity): New.
12512 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
12513 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
12514 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
12515 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
12516 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
12517
12518 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
12519 Richard Biener <rguenther@suse.de>
12520
12521 * match.pd <popcount & / + pattern matching>:
12522 When generating popcount directly fails, try doing it in two halves.
12523
12524 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
12525
12526 * Makefile.in (generated_files): Add gimple-match.c and
12527 generic-match.c
12528
12529 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
12530
12531 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
12532
12533 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
12534
12535 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
12536
12537 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
12538
12539 PR tree-optimization/99398
12540 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
12541 where the fed operands are CTOR/CST and propagated through
12542 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
12543 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
12544 function.
12545 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
12546 declare.
12547
12548 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
12549
12550 * config/i386/mmx.md (addv2sf3): Do not call
12551 ix86_fixup_binary_operands_no_copy.
12552 (subv2sf3): Ditto.
12553 (mulv2sf3): Ditto.
12554 (<smaxmin:code>v2sf3): Ditto.
12555 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
12556 (<plusminus:insn><VI_32:mode>3): Remove expander.
12557 (<plusminus:insn><VI_32:mode>3): Rename from
12558 "*<plusminus:insn><VI_32:mode>3".
12559 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
12560 (mulv2hi3): Remove expander.
12561 (mulv2hi3): Rename from *mulv2hi3.
12562 (<s>mulv2hi3_highpart): Remove expander.
12563 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
12564 (<smaxmin:code><MMXMODE14:mode>3): Rename from
12565 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
12566 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
12567 (SMAXMIN_MMXMODEI): Remove mode iterator.
12568 (<smaxmin:code>v4hi3): New expander.
12569 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
12570 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
12571 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
12572 (SMAXMIN_VI_32): Remove mode iterator.
12573 (<umaxmin:code><MMXMODE24:mode>3): Rename from
12574 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
12575 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
12576 (UMAXMIN_MMXMODEI): Remove mode iterator.
12577 (<umaxmin:code>v8qi3): New expander.
12578 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
12579 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
12580 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
12581 (UMAXMIN_VI_32): Remove mode iterator.
12582 (<any_shift:insn>v2hi3): Remove expander.
12583 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
12584 (<any_logic:code><MMXMODEI:mode>3): Do not call
12585 ix86_fixup_binary_operands_no_copy.
12586 (<any_logic:code><VI_32:mode>3): Remove expander.
12587 (<any_logic:code><VI_32:mode>3): Rename from
12588 "*<any_logic:code><VI_32:mode>3".
12589 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
12590 * config/i386/sse.md (div<VF2:mode>3): Do not call
12591 ix86_fixup_binary_operands_no_copy.
12592 (div<VF1:mode>3): Ditto.
12593 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
12594 (smulhrsv4hi3): Ditto.
12595 (smulhrsv2hi3): Ditto.
12596
12597 2021-05-27 Martin Sebor <msebor@redhat.com>
12598
12599 * ggc.h (gt_ggc_mx): Add overloads for all integers.
12600 (gt_pch_nx): Same.
12601 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
12602 integers.
12603 (hash_map::operator==): New function.
12604
12605 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
12606
12607 PR target/100637
12608 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
12609 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
12610 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
12611 (*xop_maskcmp<VI_32:mode>3): Ditto.
12612 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
12613 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
12614
12615 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
12616
12617 PR target/100767
12618 * config/arm/arm.c (arm_configure_build_target): Remove parameter
12619 opts_set, directly check opts parameters for being non-null.
12620 (arm_option_restore): Update call to arm_configure_build_target.
12621 (arm_option_override): Likewise.
12622 (arm_can_inline_p): Likewise.
12623 (arm_valid_target_attribute_tree): Likewise.
12624 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
12625 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
12626 prototype.
12627
12628 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
12629
12630 * vr-values.c (simplify_conversion_using_ranges): Use
12631 get_range_query instead of get_global_range_query.
12632
12633 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
12634
12635 * gimple-range.cc (get_range_global): Move to value-query.cc.
12636 (gimple_range_global): Same.
12637 (get_global_range_query): Same.
12638 (global_range_query::range_of_expr): Same.
12639 * gimple-range.h (class global_range_query): Move to
12640 value-query.h.
12641 (gimple_range_global): Same.
12642 * tree-ssanames.c (get_range_info): Move to value-query.cc.
12643 (get_ptr_nonnull): Same.
12644 * tree-ssanames.h (get_range_info): Remove.
12645 (get_ptr_nonnull): Remove.
12646 * value-query.cc (get_ssa_name_range_info): Move from
12647 tree-ssanames.c.
12648 (get_ssa_name_ptr_info_nonnull): Same.
12649 (get_range_global): Move from gimple-range.cc.
12650 (gimple_range_global): Same.
12651 (get_global_range_query): Same.
12652 (global_range_query::range_of_expr): Same.
12653 * value-query.h (class global_range_query): Move from
12654 gimple-range.h.
12655 (gimple_range_global): Same.
12656
12657 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
12658
12659 PR target/100637
12660 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
12661 (uavgv2hi3_ceil): Ditto.
12662
12663 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
12664
12665 PR c/100653
12666 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
12667
12668 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
12669
12670 * tree-ssanames.c (get_range_info): Merge both copies of
12671 get_range_info into one that works with irange.
12672 * tree-ssanames.h (get_range_info): Remove version that works on
12673 wide_ints.
12674
12675 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
12676
12677 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
12678 (expand_builtin_strnlen): Same.
12679 (determine_block_size): Same.
12680 * fold-const.c (expr_not_equal_to): Same.
12681 * gimple-fold.c (size_must_be_zero_p): Same.
12682 * gimple-match-head.c: Include gimple-range.h.
12683 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
12684 * gimple-ssa-warn-restrict.c
12685 (builtin_memref::extend_offset_range): Same.
12686 * graphite-sese-to-poly.c (add_param_constraints): Same.
12687 * internal-fn.c (get_min_precision): Same.
12688 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
12689 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
12690 * match.pd: Same.
12691 * tree-data-ref.c (split_constant_offset): Same.
12692 (dr_step_indicator): Same.
12693 * tree-dfa.c (get_ref_base_and_extent): Same.
12694 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
12695 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
12696 (determine_value_range): Same.
12697 (record_nonwrapping_iv): Same.
12698 (infer_loop_bounds_from_signedness): Same.
12699 (scev_var_range_cant_overflow): Same.
12700 * tree-ssa-phiopt.c (two_value_replacement): Same.
12701 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
12702 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
12703 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
12704 (get_range): Same.
12705 (dump_strlen_info): Same.
12706 (set_strlen_range): Same.
12707 (maybe_diag_stxncpy_trunc): Same.
12708 (get_len_or_size): Same.
12709 (handle_integral_assign): Same.
12710 * tree-ssa-structalias.c (find_what_p_points_to): Same.
12711 * tree-ssa-uninit.c (find_var_cmp_const): Same.
12712 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
12713 * tree-vect-patterns.c (vect_get_range_info): Same.
12714 (vect_recog_divmod_pattern): Same.
12715 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
12716 (register_edge_assert_for_2): Same.
12717 (determine_value_range_1): Same.
12718 * tree.c (get_range_pos_neg): Same.
12719 * vr-values.c (vr_values::get_lattice_entry): Same.
12720 (vr_values::update_value_range): Same.
12721 (simplify_conversion_using_ranges): Same.
12722
12723 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
12724
12725 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
12726 get_range_query instead of query argument.
12727 (pass_walloca::execute): Enable and disable global ranger.
12728
12729 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
12730
12731 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
12732 enable_ranger.
12733 (rvrp_folder::~rvrp_folder): Call disable_ranger.
12734 (hybrid_folder::hybrid_folder): Call enable_ranger.
12735 (hybrid_folder::~hybrid_folder): Call disable_ranger.
12736
12737 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
12738
12739 * function.c (allocate_struct_function): Set cfun->x_range_query.
12740 * function.h (struct function): Declare x_range_query.
12741 (get_range_query): New.
12742 (get_global_range_query): New.
12743 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
12744 Remove call to safe_grow_cleared.
12745 * gimple-range.cc (get_range_global): New.
12746 (gimple_range_global): Move from gimple-range.h.
12747 (get_global_range_query): New.
12748 (global_range_query::range_of_expr): New.
12749 (enable_ranger): New.
12750 (disable_ranger): New.
12751 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
12752 (class global_range_query): New.
12753 (enable_ranger): New.
12754 (disable_ranger): New.
12755 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
12756 dump_all_value_ranges to dump.
12757 * tree-vrp.c (vrp_prop::finalize): Same.
12758 * value-query.cc (range_query::dump): New.
12759 * value-query.h (range_query::dump): New.
12760 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
12761 (vr_values::dump): ...this.
12762 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
12763 dump and make virtual.
12764
12765 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
12766
12767 * config/i386/i386.c (ix86_autovectorize_vector_modes):
12768 Add V4QImode and V16QImode for TARGET_SSE2.
12769 * doc/sourcebuild.texi (Vector-specific attributes):
12770 Add vect64 and vect32 description.
12771
12772 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
12773
12774 * gimple-range-gori.cc (range_def_chain::register_dependency):
12775 Resize m_def_chain when needed.
12776
12777 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
12778
12779 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
12780 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
12781 * config/arm/vec-common.md: .. here. Add support for MVE.
12782
12783 2021-05-26 Jakub Jelinek <jakub@redhat.com>
12784
12785 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
12786 register keywords.
12787 * config/microblaze/microblaze.c (microblaze_legitimize_address,
12788 call_internal1,
12789 microblaze_option_override, print_operand): Likewise.
12790 * config/microblaze/microblaze.md (call_internal_plt,
12791 call_value_intern_plt, call_value_intern): Likewise.
12792 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
12793 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
12794 call_value_multiple_internal1): Likewise.
12795 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
12796
12797 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12798
12799 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
12800 arc_ccfsm_advance, symbolic_reference_mentioned_p,
12801 arc_raw_symbolic_reference_mentioned_p): Remove register
12802 keyword.
12803
12804 2021-05-26 Jakub Jelinek <jakub@redhat.com>
12805
12806 PR libgomp/100573
12807 * omp-low.c: Include omp-offload.h.
12808 (create_omp_child_function): If current_function_decl has
12809 "omp declare target" attribute and is_gimple_omp_offloaded,
12810 remove that attribute from the copy of attribute list and
12811 add "omp target entrypoint" attribute instead.
12812 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
12813 variables for offloading if in omp_maybe_offloaded_ctx.
12814 * omp-offload.c (pass_omp_target_link::execute): Nullify second
12815 argument to GOMP_target_data_ext in offloaded code.
12816
12817 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
12818
12819 * config/csky/csky.c (csky_can_change_mode_class): Delete.
12820 For csky, HF/SF mode use the low bits of VREGS.
12821
12822 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
12823
12824 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
12825 DECL which is a reference for OMP.
12826
12827 2021-05-26 Martin Liska <mliska@suse.cz>
12828
12829 PR gcov-profile/100751
12830 * doc/gcov.texi: Document that __gcov_dump can be called just
12831 once and that __gcov_reset resets run-time counters.
12832
12833 2021-05-26 Martin Liska <mliska@suse.cz>
12834
12835 * doc/install.texi: Port relevant part from install-old.texi
12836 and re-generate list of CPUs and systems.
12837
12838 2021-05-26 Martin Liska <mliska@suse.cz>
12839
12840 * Makefile.in: Remove it.
12841 * doc/include/fdl.texi: Update next/previous chapters.
12842 * doc/install.texi: Likewise.
12843 * doc/install-old.texi: Removed.
12844
12845 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
12846
12847 * config/csky/csky.c (ck810_legitimate_index_p): Support
12848 "base + index" with DF mode.
12849 * config/csky/constraints.md ("Y"): New constraint for memory operands
12850 without index register.
12851 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
12852 when mov between memory and general registers, and lower their priority.
12853 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
12854
12855 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
12856
12857 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
12858
12859 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
12860
12861 * config/csky/csky.md (untyped_call): Emit clobber for return
12862 registers to mark them used.
12863
12864 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
12865
12866 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
12867
12868 2021-05-26 Andrew Pinski <apinski@marvell.com>
12869
12870 * match.pd (x < 0 ? ~y : y): New patterns.
12871
12872 2021-05-26 Andrew Pinski <apinski@marvell.com>
12873
12874 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
12875 A?POW2:0 and A?0:POW2.
12876
12877 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
12878
12879 * gimple-range-gori.cc (class logical_stmt_cache): Delete
12880 (logical_stmt_cache::logical_stmt_cache ): Delete.
12881 (logical_stmt_cache::~logical_stmt_cache): Delete.
12882 (logical_stmt_cache::cache_entry::dump): Delete.
12883 (logical_stmt_cache::get_range): Delete.
12884 (logical_stmt_cache::cached_name ): Delete.
12885 (logical_stmt_cache::same_cached_name): Delete.
12886 (logical_stmt_cache::cacheable_p): Delete.
12887 (logical_stmt_cache::slot_diagnostics ): Delete.
12888 (logical_stmt_cache::dump): Delete.
12889 (gori_compute_cache::gori_compute_cache): Delete.
12890 (gori_compute_cache::~gori_compute_cache): Delete.
12891 (gori_compute_cache::compute_operand_range): Delete.
12892 (gori_compute_cache::cache_stmt): Delete.
12893 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
12894 virtual.
12895 (class gori_compute_cache): Delete.
12896
12897 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
12898
12899 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
12900 intead of m_cache.
12901 (fold_using_range::range_of_address): Adjust.
12902 (fold_using_range::range_of_phi): Adjust.
12903 * gimple-range.h (class fur_source): Adjust.
12904 (fur_source::fur_source): Adjust.
12905
12906 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
12907
12908 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
12909 from expr_range_in_bb and adjust.
12910 (gori_compute::compute_name_range_op): Adjust.
12911 (gori_compute::optimize_logical_operands): Adjust.
12912 (gori_compute::compute_logical_operands_in_chain): Adjust.
12913 (gori_compute::compute_operand1_range): Adjust.
12914 (gori_compute::compute_operand2_range): Adjust.
12915 (ori_compute_cache::cache_stmt): Adjust.
12916 * gimple-range-gori.h (gori_compute): Rename prototype.
12917
12918 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
12919
12920 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
12921 checked only after range_of_stmt, not range_on_entry.
12922 (gimple_ranger::range_on_entry): Check for non-null in any
12923 predecessor block, if it is not already non-null.
12924 (gimple_ranger::range_on_exit): DOnt check for non-null after
12925 range on entry call.
12926 (gimple_ranger::dump_bb): New. Split from dump.
12927 (gimple_ranger::dump): Adjust.
12928 * gimple-range.h (class gimple_ranger): Adjust.
12929
12930 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
12931
12932 * gimple-range-cache.cc (struct range_timestamp): Delete.
12933 (class temporal_cache): Adjust.
12934 (temporal_cache::get_timestamp): Delete.
12935 (temporal_cache::set_dependency): Delete.
12936 (temporal_cache::temporal_value): Adjust.
12937 (temporal_cache::current_p): Take dependencies as params.
12938 (temporal_cache::set_timestamp): Adjust.
12939 (temporal_cache::set_always_current): Adjust.
12940 (ranger_cache::get_non_stale_global_range): Adjust.
12941 (ranger_cache::register_dependency): Delete.
12942 * gimple-range-cache.h (class range_cache): Adjust.
12943
12944 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
12945
12946 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
12947 bitmap obstack.
12948 (range_def_chain::~range_def_chain): Dispose of obstack rather than
12949 each individual bitmap.
12950 (range_def_chain::set_import): New.
12951 (range_def_chain::get_imports): New.
12952 (range_def_chain::chain_import_p): New.
12953 (range_def_chain::register_dependency): Rename from build_def_chain
12954 and set imports.
12955 (range_def_chain::def_chain_in_bitmap_p): New.
12956 (range_def_chain::add_def_chain_to_bitmap): New.
12957 (range_def_chain::has_def_chain): Just check first depenedence.
12958 (range_def_chain::get_def_chain): Process imports, use generic
12959 register_dependency routine.
12960 (range_def_chain::dump): New.
12961 (gori_map::gori_map): Allocate import list.
12962 (gori_map::~gori_map): Release imports.
12963 (gori_map::exports): Check for past allocated block size.
12964 (gori_map::imports): New.
12965 (gori_map::def_chain_in_export_p): Delete.
12966 (gori_map::is_import_p): New.
12967 (gori_map::maybe_add_gori): Handle imports.
12968 (gori_map::dump): Adjust output, add imports.
12969 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
12970 (gori_export_iterator::gori_export_iterator): New.
12971 (gori_export_iterator::next): New.
12972 (gori_export_iterator::get_name): New.
12973 * gimple-range-gori.h (range_def_chain): Add imports and direct
12974 dependecies via struct rdc.
12975 (range_def_chain::depend1): New.
12976 (range_def_chain::depend2): New.
12977 (class gori_map): Adjust.
12978 (FOR_EACH_GORI_IMPORT_NAME): New.
12979 (FOR_EACH_GORI_EXPORT_NAME): New.
12980 (class gori_export_iterator): New.
12981
12982 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
12983
12984 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
12985 export cache filling to here.
12986 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
12987
12988 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
12989
12990 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
12991 (gori_map): Move to gimple-range-gori.h.
12992 (gori_compute::gori_compute): Adjust.
12993 (gori_compute::~gori_compute): Delete.
12994 (gori_compute::compute_operand_range_switch): Adjust.
12995 (gori_compute::compute_operand_range): Adjust.
12996 (gori_compute::compute_logical_operands): Adjust.
12997 (gori_compute::has_edge_range_p ): Adjust.
12998 (gori_compute::set_range_invariant): Delete.
12999 (gori_compute::dump): Adjust.
13000 (gori_compute::outgoing_edge_range_p): Adjust.
13001 * gimple-range-gori.h (class range_def_chain): Relocate here.
13002 (class gori_map): Relocate here.
13003 (class gori_compute): Inherit from gori_map, and adjust.
13004
13005 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
13006
13007 * value-range.cc (range_tests_legacy): Use
13008 build_nonstandard_integer_type instead of int and short.
13009
13010 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
13011
13012 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
13013 when really creating an initialization statement for it.
13014
13015 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
13016
13017 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
13018
13019 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
13020
13021 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
13022
13023 2021-05-25 Martin Liska <mliska@suse.cz>
13024
13025 PR tree-optimization/92860
13026 PR target/99592
13027 * optc-save-gen.awk: Remove exceptions.
13028
13029 2021-05-25 Martin Liska <mliska@suse.cz>
13030
13031 * asan.h (sanitize_coverage_p): New function.
13032 * doc/extend.texi: Document it.
13033 * fold-const.c (fold_range_test): Use sanitize_flags_p
13034 instead of flag_sanitize_coverage.
13035 (fold_truth_andor): Likewise.
13036 * sancov.c: Likewise.
13037 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13038 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
13039 -fsanitize-coverage when inlining.
13040
13041 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
13042
13043 * config/csky/csky-modes.def : Fix copyright.
13044
13045 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
13046
13047 * config/csky/csky-modes.def : Amend copyright.
13048 * config/csky/csky_insn_fpuv2.md : Likewise.
13049 * config/csky/csky_insn_fpuv3.md : Likewise.
13050
13051 2021-05-25 Richard Biener <rguenther@suse.de>
13052
13053 PR middle-end/100727
13054 * calls.c (initialize_argument_information): Explicitely test
13055 for WITH_SIZE_EXPR.
13056 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
13057
13058 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
13059
13060 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
13061 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
13062 the signle definition. The signle definition may not work well
13063 at simplify_subreg_regno().
13064 (HARD_FRAME_POINTER_REGNUM): New.
13065 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
13066 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
13067 csky_initial_elimination_offset, csky_expand_prologue,
13068 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
13069
13070 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
13071
13072 * config/csky/csky.c (csky_option_override):
13073 Init csky_arch_isa_features[] in advance, so TARGET_DSP
13074 and TARGET_DIV can be set well.
13075
13076 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
13077
13078 * config/csky/constraints.md ("l", "h"): Delete.
13079 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
13080 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
13081 * config/csky/csky.c (regno_reg_classm,
13082 csky_secondary_reload, csky_register_move_cost):
13083 Use HILO_REGS instead of LO_REGS and HI_REGS.
13084
13085 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
13086
13087 * config/csky/constraints.md ("W"): New constriant for mem operand
13088 with base reg, index register.
13089 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
13090 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
13091 constraint.
13092 ("Dv"): New constraint for const double value that can be used at
13093 fmovi instruction.
13094 * config/csky/csky-modes.def (HFmode): New mode.
13095 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
13096 to "csky_valid_mem_constraint_operand" and support new constraint
13097 "W".
13098 (csky_get_movedouble_length): New.
13099 (fpuv3_output_move): New.
13100 (fpuv3_const_double): New.
13101 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
13102 (decompose_csky_address): Refine.
13103 (csky_print_operand): New "CONST_DOUBLE" operand.
13104 (csky_output_move): Support fpv3 instructions.
13105 (csky_get_movedouble_length): New.
13106 (fpuv3_output_move): New.
13107 (fpuv3_const_double): New.
13108 (csky_emit_compare): Cover float comparsion.
13109 (csky_emit_compare_float): Refine.
13110 (csky_vaild_fpuv2_mem_operand): Rename to
13111 "csky_valid_mem_constraint_operand" and support new constraint "W".
13112 (ck860_rtx_costs): New.
13113 (csky_rtx_costs): Add the cost calculation of CK860.
13114 (regno_reg_class): New vregs for fpuv3.
13115 (csky_dbx_regno): Likewise.
13116 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
13117 (csky_conditional_register_usage): Suporrot fpuv3.
13118 (csky_dwarf_register_span): Suporrot fpuv3.
13119 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
13120 (ck810_legitimate_index_p): Support fp16.
13121 * config/csky/csky.h (TARGET_TLS): ADD CK860.
13122 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
13123 (TARGET_SINGLE_FPU): Support fpuv3.
13124 (TARGET_SUPPORT_FPV3): New.
13125 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
13126 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
13127 REG_CLASS_CONTENTS): Support fpuv3.
13128 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
13129 (csky_movsf_fpv2): Likewise.
13130 (ck801_movsf): Likewise.
13131 (csky_movsf): Likewise.
13132 (movdf): Likewise.
13133 (csky_movdf_fpv2): Likewise.
13134 (ck801_movdf): Likewise.
13135 (csky_movdf): Likewise.
13136 (movsicc): Refine. Use "comparison_operatior" instead of
13137 "ordered_comparison_operatior".
13138 (addsicc): Likewise.
13139 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
13140 (call_value_internal_vh): New.
13141 * config/csky/csky_cores.def (CK860): New arch and cpu.
13142 (fpv3_hf): New.
13143 (fpv3_hsf): New.
13144 (fpv3_sdf): New.
13145 (fpv3): New.
13146 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
13147 into emit-patterns and match-patterns, remain the emit-patterns here,
13148 and move the match-patterns to csky_insn_fpuv2.md or
13149 csky_insn_fpuv3.md.
13150 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
13151 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
13152 isntructions.
13153 * config/csky/csky_isa.def (fcr): New.
13154 (fpv3_hi): New.
13155 (fpv3_hf): New.
13156 (fpv3_sf): New.
13157 (fpv3_df): New.
13158 (CK860): New definition for ck860.
13159 * config/csky/csky_tables.opt (ck860): New processors ck860,
13160 ck860f. And new arch ck860.
13161 (fpv3_hf): New.
13162 (fpv3_hsf): New.
13163 (fpv3_hdf): New.
13164 (fpv3): New.
13165 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
13166 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
13167 * config/csky/t-csky-elf: Support 860.
13168 * config/csky/t-csky-linux: Likewise.
13169 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
13170
13171 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
13172
13173 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
13174 add generation of logical-add and add-logical fusion pairs.
13175 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
13176 and powerpc mask.
13177 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
13178 logical-add and add-logical fusion by default.
13179 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
13180 -mpower10-fusion-add-logical options.
13181 * config/rs6000/fusion.md: Regenerate file.
13182
13183 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
13184
13185 * value-range.cc (irange::legacy_equal_p): Check type when
13186 comparing VR_VARYING types.
13187 (range_tests_legacy): Test comparing VARYING ranges of different
13188 sizes.
13189
13190 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
13191
13192 * config/aarch64/aarch64.c (neoversen1_tunings):
13193 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
13194
13195 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
13196
13197 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
13198 extern weak symbols. Limit symbol offsets for non-GOT symbols with
13199 PIC/PIE.
13200
13201 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
13202
13203 * config/arm/neon.md (vec_load_lanesxi<mode>)
13204 (vec_store_lanexoi<mode>): Move ...
13205 * config/arm/vec-common.md: here.
13206
13207 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
13208
13209 * config/arm/neon.md (vec_load_lanesoi<mode>)
13210 (vec_store_lanesoi<mode>): Move ...
13211 * config/arm/vec-common.md: here.
13212
13213 2021-05-24 liuhongt <hongtao.liu@intel.com>
13214
13215 PR target/100660
13216 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
13217 stmt with GIMPLE_NOP when lhs doesn't exist.
13218
13219 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
13220
13221 PR target/100722
13222 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
13223 New instruction pattern.
13224 (*push<VI_32:mode>2): Ditto.
13225 (push splitter for SSE registers): New splitter.
13226
13227 2021-05-23 Andrew Pinski <apinski@marvell.com>
13228
13229 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
13230
13231 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
13232
13233 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
13234 * config/rs6000/fusion.md: Regenerate file.
13235
13236 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
13237
13238 * config/rs6000/genfusion.pl (gen_addadd): New function.
13239 * config/rs6000/fusion.md: Regenerate file.
13240 * config/rs6000/rs6000-cpus.def: Add
13241 OPTION_MASK_P10_FUSION_2ADD to masks.
13242 * config/rs6000/rs6000.c (rs6000_option_override_internal):
13243 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
13244 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
13245
13246 2021-05-21 Jakub Jelinek <jakub@redhat.com>
13247
13248 PR middle-end/99928
13249 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
13250 * gimplify.c (enum gimplify_omp_var_data): Fix up
13251 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
13252 (omp_lastprivate_for_combined_outer_constructs): If combined target
13253 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
13254 GOVD_MAP | GOVD_SEEN.
13255 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
13256 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
13257 (gimplify_adjust_omp_clauses): For firstprivate clauses with
13258 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
13259 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
13260 let it be replaced by implicit map clause.
13261
13262 2021-05-21 Jakub Jelinek <jakub@redhat.com>
13263
13264 PR middle-end/99928
13265 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
13266 function.
13267 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
13268 (gimplify_omp_for): Likewise.
13269
13270 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
13271
13272 PR middle-end/90115
13273 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
13274 'external' in blocks.
13275
13276 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
13277
13278 PR middle-end/90115
13279 * flag-types.h (enum openacc_privatization): New.
13280 * params.opt (-param=openacc-privatization): New.
13281 * doc/invoke.texi (openacc-privatization): Document it.
13282 * omp-general.h (get_openacc_privatization_dump_flags): New
13283 function.
13284 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
13285 * omp-offload.c (execute_oacc_device_lower)
13286 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
13287 * target.def (goacc.adjust_private_decl): Add 'location_t'
13288 parameter.
13289 * doc/tm.texi: Regenerate.
13290 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
13291 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
13292 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
13293 Likewise. Preserve it for...
13294 (nvptx_goacc_expand_var_decl): ... use here.
13295
13296 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
13297
13298 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
13299 DejaGnu selector.
13300
13301 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
13302
13303 PR middle-end/90115
13304 * omp-low.c (oacc_privatization_candidate_p): New function.
13305 (oacc_privatization_scan_clause_chain)
13306 (oacc_privatization_scan_decl_chain): Use it. Also
13307 'gcc_checking_assert' that we're not seeing duplicates.
13308
13309 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
13310
13311 PR middle-end/90115
13312 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
13313 work to be done.
13314
13315 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
13316
13317 PR middle-end/90115
13318 * omp-offload.c (execute_oacc_device_lower): Explain.
13319
13320 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
13321
13322 PR middle-end/90115
13323 * omp-offload.c (execute_oacc_device_lower)
13324 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
13325 case, too.
13326 * internal-fn.c (expand_UNIQUE): Don't expect
13327 'IFN_UNIQUE_OACC_PRIVATE'.
13328
13329 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
13330
13331 PR middle-end/90115
13332 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
13333
13334 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
13335
13336 PR middle-end/90115
13337 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
13338 (nvptx_goacc_expand_var_decl): Tighten.
13339
13340 2021-05-21 Julian Brown <julian@codesourcery.com>
13341 Chung-Lin Tang <cltang@codesourcery.com>
13342 Thomas Schwinge <thomas@codesourcery.com>
13343
13344 PR middle-end/90115
13345 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
13346 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
13347 * doc/tm.texi: Regenerate.
13348 * expr.c (expand_expr_real_1): Expand decls using the
13349 expand_var_decl OpenACC hook if defined.
13350 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
13351 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
13352 * omp-low.c (omp_context): Add oacc_privatization_candidates
13353 field.
13354 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
13355 before fork.
13356 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
13357 private marker's gimple call arguments, and pass it to
13358 lower_oacc_reductions.
13359 (oacc_privatization_scan_clause_chain)
13360 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
13361 New functions.
13362 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
13363 * omp-offload.c (convert.h): Include.
13364 (oacc_loop_xform_head_tail): Treat private-variable markers like
13365 fork/join when transforming head/tail sequences.
13366 (struct var_decl_rewrite_info): Add struct.
13367 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
13368 (execute_oacc_device_lower): Support rewriting gang-private
13369 variables using target hook, and fix up addr_expr and var_decl
13370 nodes afterwards.
13371 * target.def (adjust_private_decl, expand_var_decl): New hooks.
13372 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
13373 Rename to...
13374 (gcn_goacc_adjust_private_decl): ...this.
13375 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
13376 Rename to...
13377 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
13378 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
13379 definition using gcn_goacc_adjust_gangprivate_decl...
13380 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
13381 gcn_goacc_adjust_private_decl.
13382 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
13383 (gang_private_shared_size): New global variable.
13384 (gang_private_shared_align): Likewise.
13385 (gang_private_shared_sym): Likewise.
13386 (gang_private_shared_hmap): Likewise.
13387 (nvptx_option_override): Initialize these.
13388 (nvptx_file_end): Output gang_private_shared_sym.
13389 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
13390 New functions.
13391 (nvptx_set_current_function): Clear gang_private_shared_hmap.
13392 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
13393 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
13394
13395 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
13396
13397 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
13398
13399 2021-05-21 Richard Biener <rguenther@suse.de>
13400 H.J. Lu <hjl.tools@gmail.com>
13401
13402 PR middle-end/90773
13403 * expr.c (expand_constructor): Elide expand_constructor if
13404 move by pieces is preferred.
13405
13406 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13407
13408 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
13409 Take a flag and mode value as arguments.
13410 (aarch64_modifies_global_state_p): Likewise.
13411 (aarch64_reads_global_state_p): Likewise.
13412 (aarch64_could_trap_p): Likewise.
13413 (aarch64_get_attributes): Likewise.
13414 (aarch64_init_simd_builtins): Adjust callsite of above.
13415 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
13416 function attributes to apply to builtins.
13417 (aarch64_init_crc32_builtins): Likewise.
13418 (aarch64_init_builtin_rsqrt): Likewise.
13419
13420 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
13421
13422 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
13423 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
13424 (gen_2logical): Use new fusion types.
13425 * config/rs6000/fusion.md: Regenerate.
13426
13427 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
13428
13429 PR target/100637
13430 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
13431 Handle V4QI and V2HI modes.
13432 (ix86_expand_sse_movcc): Ditto.
13433 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
13434 New instruction pattern.
13435 (*eq<VI_32:mode>3): Ditto.
13436 (*gt<VI_32:mode>3): Ditto.
13437 (*xop_pcmov_<VI_32:mode>): Ditto.
13438 (mmx_pblendvb32): Ditto.
13439 (mmx_pblendvb64): Rename from mmx_pblendvb.
13440 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
13441 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
13442 (vcond<VI_32:mode><VI_32:mode>): Ditto.
13443 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
13444 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
13445
13446 2021-05-21 Jakub Jelinek <jakub@redhat.com>
13447
13448 PR tree-optimization/94589
13449 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
13450 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
13451 not the same as cmp3) treat <= the same as < and >= the same as >.
13452 Don't require that cond2_phi_edge is true edge, instead take
13453 false/true edges into account based on cmp1/cmp2 comparison kinds.
13454
13455 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
13456
13457 PR target/100637
13458 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
13459 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
13460 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
13461 using SMAXMIN_MMXMODEI mode iterator.
13462 (*<smaxmin:code>v4qi3): New insn pattern.
13463 (*<smaxmin:code>v2hi3): Ditto.
13464 (SMAXMIN_VI_32): New mode iterator.
13465 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
13466 (UMAXMIN_MMXMODEI): New mode iterator.
13467 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
13468 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
13469 using UMAXMIN_MMXMODEI mode iterator.
13470 (*<umaxmin:code>v4qi3): New insn pattern.
13471 (*<umaxmin:code>v2hi3): Ditto.
13472 (UMAXMIN_VI_32): New mode iterator.
13473 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
13474 (abs<VI_32:mode>2): New insn pattern.
13475 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
13476 * config/i386/sse.md: ... here.
13477
13478 2021-05-20 Clement Chigot <clement.chigot@atos.net>
13479 David Edelsohn <dje.gcc@gmail.com>
13480
13481 * collect2.c (scan_prog_file): Issue non-fatal warning for
13482 non-COFF files.
13483
13484 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
13485
13486 * doc/invoke.texi (-Wno-c++11-extensions)
13487 (-Wno-c++14-extensions, -Wno-c++17-extensions)
13488 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
13489 new options.
13490
13491 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
13492
13493 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
13494 * config/darwin.c (darwin_override_options): Likewise.
13495 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
13496 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
13497 (DWARF2_FRAME_REG_OUT): Likewise.
13498 * config/mips/mips.c (mips_output_filename): Likewise.
13499 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
13500 Likewise.
13501 (rs6000_dbx_register_number): Likewise.
13502 * dbxout.c: Include flags.h.
13503 * dwarf2cfi.c (cfi_label_required_p): Likewise.
13504 (dwarf2out_do_frame): Likewise.
13505 * except.c: Include flags.h.
13506 * final.c (dwarf2_debug_info_emitted_p): Likewise.
13507 (final_scan_insn_1): Likewise.
13508 * flags.h (dwarf_debuginfo_p): New function declaration.
13509 * opts.c (dwarf_debuginfo_p): New function definition.
13510 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
13511 * toplev.c (process_options): Likewise.
13512
13513 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
13514
13515 * common.opt: Change type to support bitmasks.
13516 * flag-types.h (enum debug_info_type): Rename enumerator constants.
13517 (NO_DEBUG): New bitmask.
13518 (DBX_DEBUG): Likewise.
13519 (DWARF2_DEBUG): Likewise.
13520 (XCOFF_DEBUG): Likewise.
13521 (VMS_DEBUG): Likewise.
13522 (VMS_AND_DWARF2_DEBUG): Likewise.
13523 * flags.h (debug_set_to_format): New function declaration.
13524 (debug_set_count): Likewise.
13525 (debug_set_names): Likewise.
13526 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
13527 (debug_set_to_format): New function definition.
13528 (debug_set_count): Likewise.
13529 (debug_set_names): Likewise.
13530 (set_debug_level): Update access to debug_type_names.
13531 * toplev.c: Likewise.
13532
13533 2021-05-20 Martin Sebor <msebor@redhat.com>
13534
13535 PR middle-end/100684
13536 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
13537
13538 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
13539
13540 PR target/100701
13541 * config/i386/i386.md (isa): Remove x64_bmi.
13542 (enabled): Remove x64_bmi.
13543 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
13544 Remove general register alternative.
13545 (*andnot<VI_32:mode>3): Ditto.
13546 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
13547 (*<any_logic:code><VI_32:mode>3): Ditto.
13548
13549 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
13550
13551 * config/arm/arm.c: Include head files tree-vectorizer.h and
13552 cfgloop.h.
13553
13554 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
13555
13556 PR target/100637
13557 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
13558 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
13559 (<s>mulv4hi3_highpart): New expander.
13560 (*<s>mulv2hi3_highpart): New insn pattern.
13561 (<s>mulv2hi3_higpart): New expander.
13562 (*<any_shift:insn>v2hi3): New insn pattern.
13563 (<any_shift:insn>v2hi3): New expander.
13564 * config/i386/sse.md (smulhrsv2hi3): New expander.
13565 (*smulhrsv2hi3): New insn pattern.
13566
13567 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
13568
13569 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
13570 parameter.
13571 * params.opt (vect-inner-loop-cost-factor): New.
13572 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
13573 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
13574 tree-vectorizer.h and its required ones.
13575 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
13576 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
13577 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
13578 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
13579 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
13580 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
13581 Likewise.
13582 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
13583 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
13584 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
13585
13586 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
13587 Torbjörn Svensson <torbjorn.svensson@st.com>
13588
13589 PR c/42579
13590 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
13591
13592 2021-05-20 Jakub Jelinek <jakub@redhat.com>
13593
13594 PR middle-end/99928
13595 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
13596 explicit linear clause when combined with target, make it map(tofrom:)
13597 instead of no clause or firstprivate.
13598
13599 2021-05-20 Jakub Jelinek <jakub@redhat.com>
13600
13601 PR tree-optimization/94589
13602 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
13603 of integral conversions.
13604
13605 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
13606
13607 * gimple-range.cc (fur_source::get_operand): New.
13608 (gimple_range_fold): Delete.
13609 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
13610 (fold_using_range::range_of_range_op): Move from gimple_ranger.
13611 (fold_using_range::range_of_address): Ditto.
13612 (fold_using_range::range_of_phi): Ditto.
13613 (fold_using_range::range_of_call): Ditto.
13614 (fold_using_range::range_of_builtin_ubsan_call): Move from
13615 range_of_builtin_ubsan_call.
13616 (fold_using_range::range_of_builtin_call): Move from
13617 range_of_builtin_call.
13618 (gimple_ranger::range_of_builtin_call): Delete.
13619 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
13620 (gimple_ranger::fold_range_internal): New.
13621 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
13622 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
13623 gimple_ranger. Improve ranges of SSA_NAMES when possible.
13624 * gimple-range.h (gimple_ranger): Remove various range_of routines.
13625 (class fur_source): New.
13626 (class fold_using_range): New.
13627 (fur_source::fur_source): New.
13628 (fold_range): New.
13629 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
13630 instead of range_of_builtin_call.
13631
13632 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
13633
13634 * doc/cpp.texi (Common Predefined Macros): Update documentation
13635 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
13636
13637 2021-05-19 Alex Coplan <alex.coplan@arm.com>
13638
13639 PR target/100333
13640 * config/arm/arm.md (nonsecure_call_internal): Always ensure
13641 callee's address is in a register.
13642
13643 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
13644
13645 * common/config/riscv/riscv-common.c
13646 (riscv_subset_list::parsing_subset_version): Properly parse the letter
13647 'p' in '-march'.
13648 (riscv_subset_list::parse_std_ext,
13649 riscv_subset_list::parse_multiletter_ext): To handle errors generated
13650 in riscv_subset_list::parsing_subset_version.
13651
13652 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
13653
13654 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
13655 type attribute in patterns generating XTN(2).
13656
13657 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
13658
13659 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
13660 Remove as duplicate of...
13661 (aarch64_xtn<mode>): This.
13662 (aarch64_xtn2<mode>_le): Move position in file.
13663 (aarch64_xtn2<mode>_be): Move position in file.
13664 (aarch64_xtn2<mode>): Move position in file.
13665 (vec_pack_trunc_<mode>): Define as an expander.
13666
13667 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
13668
13669 * config/aarch64/aarch64-simd-builtins.def: Split builtin
13670 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
13671 separate scalar and vector generators.
13672 * config/aarch64/aarch64-simd.md
13673 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
13674 split into...
13675 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
13676 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
13677 * config/aarch64/iterators.md: Define SD_HSDI iterator.
13678
13679 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
13680
13681 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
13682 of UNSPEC_SQXTUN2.
13683 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
13684
13685 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
13686
13687 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
13688 Implement as an expand emitting a big/little endian
13689 instruction pattern.
13690 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
13691 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
13692
13693 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
13694
13695 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
13696 Implement as an expand emitting a big/little endian
13697 instruction pattern.
13698 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
13699 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
13700 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
13701 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
13702
13703 2021-05-19 Richard Biener <rguenther@suse.de>
13704
13705 PR middle-end/100672
13706 * fold-const.c (fold_negate_expr_1): Use element_precision.
13707 (negate_expr_p): Likewise.
13708
13709 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
13710
13711 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
13712 (pred_load): New int attribute.
13713 * config/aarch64/aarch64-sve.md
13714 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
13715 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
13716 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
13717 code_for_aarch64_load.
13718
13719 2021-05-19 Richard Biener <rguenther@suse.de>
13720
13721 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
13722 sure TARGET_MEM_REF bases are expanded as memory.
13723 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
13724 Do not mark TARGET_MEM_REF bases addressable.
13725 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
13726 TARGET_MEM_REF bases as never rewritable.
13727 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
13728 walk TARGET_MEM_REF bases as address-takens.
13729 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
13730
13731 2021-05-19 Richard Biener <rguenther@suse.de>
13732
13733 * builtins.c (get_object_alignment_1): Strip outer
13734 WITH_SIZE_EXPR.
13735 * tree-dfa.c (get_ref_base_and_extent): Handle outer
13736 WITH_SIZE_EXPR for size processing and process the
13737 containing ref.
13738 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
13739 outer WITH_SIZE_EXPR.
13740 (ao_ref_base_alias_ptr_type): Likewise.
13741 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
13742 and handle that accordingly, stripping it for the
13743 core alias workers.
13744 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
13745 looking through it instead of returning NULL.
13746
13747 2021-05-19 Jakub Jelinek <jakub@redhat.com>
13748
13749 PR middle-end/100576
13750 * builtins.c (check_read_access): Convert bound to size_type_node if
13751 non-NULL.
13752
13753 2021-05-19 Richard Biener <rguenther@suse.de>
13754
13755 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
13756 (verify_types_in_gimple_reference): ... here. Sanitize.
13757 (verify_gimple_call): Verify references in LHS and arguments.
13758 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
13759
13760 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
13761
13762 * config/i386/i386.h (VALID_INT_MODE_P):
13763 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
13764 * config/i386/i386.md (isa): Add x64_bmi.
13765 (enabled): Handle x64_bmi.
13766 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
13767 Add alternative using 64bit general registers.
13768 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
13769
13770 2021-05-19 Jakub Jelinek <jakub@redhat.com>
13771
13772 PR middle-end/99928
13773 * tree.h (OMP_MASTER_COMBINED): Define.
13774 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
13775 handling for outer combined/composite constructs to a loop.
13776 Handle lastprivate on combined target.
13777 (gimplify_expr): Formatting fix.
13778
13779 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
13780
13781 * passes.def: Add sink_code pass before store_merging.
13782 * tree-ssa-sink.c (pass_sink_code:clone): New.
13783
13784 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
13785
13786 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
13787 rs6000_special_adjust_field_align_p.
13788 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
13789 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
13790 Remove ABI warning.
13791 (rs6000_function_arg): Likewise.
13792 * config/rs6000/rs6000-protos.h
13793 (rs6000_special_adjust_field_align_p): Remove prototype.
13794 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
13795 Remove.
13796 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
13797 rs6000_special_adjust_field_align_p.
13798
13799 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
13800
13801 PR target/100637
13802 * config/i386/i386.h (VALID_SSE2_REG_MODE):
13803 Add V4QI and V2HI modes.
13804 (VALID_INT_MODE_P): Ditto.
13805 * config/i386/mmx.md (VI_32): New mode iterator.
13806 (mmxvecsize): Handle V4QI and V2HI.
13807 (Yv_Yw): Ditto.
13808 (mov<VI_32:mode>): New expander.
13809 (*mov<mode>_internal): New insn pattern.
13810 (movmisalign<VI_32:mode>): New expander.
13811 (neg<VI_32:mode>): New expander.
13812 (<plusminus:insn><VI_32:mode>3): New expander.
13813 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
13814 (mulv2hi3): New expander.
13815 (*mulv2hi3): New insn pattern.
13816 (one_cmpl<VI_32:mode>2): New expander.
13817 (*andnot<VI_32:mode>3): New insn pattern.
13818 (<any_logic:code><VI_32:mode>3): New expander.
13819 (*<any_logic:code><VI_32:mode>3): New insn pattern.
13820
13821 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
13822
13823 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
13824 Fix a mode mismatch with operand 1.
13825
13826 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
13827
13828 PR target/100626
13829 * config/i386/i386-expand.c (split_double_mode): Return
13830 temporary register when simplify_gen_subreg fails with
13831 the high half od the paradoxical subreg.
13832
13833 2021-05-18 Richard Biener <rguenther@suse.de>
13834
13835 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
13836 and honor it when expanding.
13837 (expand_used_vars_for_block): Pass through forced_stack_var.
13838 (expand_used_vars): Likewise.
13839 (discover_nonconstant_array_refs_r): Set bits in
13840 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
13841 (avoid_type_punning_on_regs): Likewise.
13842 (discover_nonconstant_array_refs): Likewise.
13843 (pass_expand::execute): Create and pass down forced_stack_var
13844 bitmap. For parameters and returns temporarily set
13845 TREE_ADDRESSABLE when expand_function_start.
13846
13847 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
13848
13849 * doc/sourcebuild.texi: Document 'dg-note'.
13850
13851 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
13852
13853 PR other/100598
13854 * configure: Regenerate.
13855 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
13856
13857 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
13858
13859 * gimple.h (is_gimple_omp_oacc): Tighten.
13860 * omp-low.c (check_omp_nesting_restrictions): Adjust.
13861
13862 2021-05-18 Richard Biener <rguenther@suse.de>
13863
13864 * tree-ssa-operands.c (mark_address_taken): Simplify.
13865
13866 2021-05-18 Martin Liska <mliska@suse.cz>
13867
13868 * config/gcn/mkoffload.c (STR): Redefine.
13869 * config/i386/intelmic-mkoffload.c (STR): Likewise.
13870 * config/nvptx/mkoffload.c (STR): Likewise.
13871
13872 2021-05-18 Martin Liska <mliska@suse.cz>
13873
13874 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
13875 Use startswith function instead of strncmp.
13876 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
13877 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
13878 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
13879 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
13880 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
13881 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
13882 * config/arm/arm.c (arm_file_start): Likewise.
13883 (arm_valid_target_attribute_rec): Likewise.
13884 (thumb1_md_asm_adjust): Likewise.
13885 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
13886 * config/avr/avr.c (STR_PREFIX_P): Likewise.
13887 (avr_set_current_function): Likewise.
13888 (avr_handle_addr_attribute): Likewise.
13889 (avr_asm_output_aligned_decl_common): Likewise.
13890 (avr_asm_named_section): Likewise.
13891 (avr_section_type_flags): Likewise.
13892 (avr_asm_select_section): Likewise.
13893 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
13894 (c6x_section_type_flags): Likewise.
13895 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
13896 (darwin_objc_declare_unresolved_class_reference): Likewise.
13897 (darwin_objc_declare_class_definition): Likewise.
13898 * config/darwin.c (indirect_data): Likewise.
13899 (darwin_encode_section_info): Likewise.
13900 (darwin_objc2_section): Likewise.
13901 (darwin_objc1_section): Likewise.
13902 (machopic_select_section): Likewise.
13903 (darwin_globalize_label): Likewise.
13904 (darwin_label_is_anonymous_local_objc_name): Likewise.
13905 (darwin_asm_named_section): Likewise.
13906 (darwin_asm_output_dwarf_offset): Likewise.
13907 * config/frv/frv.c (frv_string_begins_with): Likewise.
13908 (frv_in_small_data_p): Likewise.
13909 * config/gcn/mkoffload.c (STR): Likewise.
13910 (main): Likewise.
13911 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
13912 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
13913 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
13914 (ix86_md_asm_adjust): Likewise.
13915 * config/i386/intelmic-mkoffload.c (STR): Likewise.
13916 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
13917 (i386_pe_file_end): Likewise.
13918 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
13919 (ia64_section_type_flags): Likewise.
13920 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
13921 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
13922 (mips16_stub_function_p): Likewise.
13923 (mips_function_rodata_section): Likewise.
13924 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
13925 (msp430_function_section): Likewise.
13926 (msp430_section_type_flags): Likewise.
13927 (msp430_expand_helper): Likewise.
13928 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
13929 (nios2_valid_target_attribute_rec): Likewise.
13930 * config/nvptx/mkoffload.c (process): Likewise.
13931 (STR): Likewise.
13932 * config/pa/som.h: Likewise.
13933 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
13934 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
13935 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
13936 (rs6000_inner_target_options): Likewise.
13937 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
13938 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
13939 * config/vax/vax.c (vax_output_int_move): Likewise.
13940 * config/vms/vms-ld.c (startswith): Likewise.
13941 (process_args): Likewise.
13942 (main): Likewise.
13943 * config/vms/vms.c: Likewise.
13944
13945 2021-05-18 Jakub Jelinek <jakub@redhat.com>
13946
13947 PR rtl-optimization/100590
13948 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
13949 they are NONJUMP_INSN_P.
13950
13951 2021-05-18 Jakub Jelinek <jakub@redhat.com>
13952
13953 PR c++/100580
13954 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
13955 DECL_ASSEMBLER_NAME on the fn_decl.
13956
13957 2021-05-18 Jakub Jelinek <jakub@redhat.com>
13958
13959 PR tree-optimization/94589
13960 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
13961 phi result used in (res & ~1) == 0 comparison as res >= 0 as
13962 res == 2 would be UB with -ffinite-math-only.
13963
13964 2021-05-18 Martin Liska <mliska@suse.cz>
13965
13966 * Makefile.in: genversion.o should depend on DATESTAMP.
13967
13968 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
13969
13970 * config/arc/simdext.md (negv2si2): Remove round bracket.
13971
13972 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
13973
13974 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
13975 _Bool as macro expanding to _Bool.
13976
13977 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
13978
13979 PR c++/100281
13980 * tree.c (build_reference_type_for_mode)
13981 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
13982 is VOIDmode.
13983 (build_reference_type, build_pointer_type): Invoke
13984 build_*_type_for_mode with VOIDmode.
13985
13986 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
13987
13988 PR tree-optimization/100512
13989 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
13990 and non-zero pointer ranges as invariant.
13991 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
13992 processing from here.
13993
13994 2021-05-17 Tom de Vries <tdevries@suse.de>
13995
13996 PR target/100497
13997 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
13998 * config/nvptx/nvptx.c (nvptx_output_barrier)
13999 (nvptx_output_atomic_insn): New function.
14000 (nvptx_print_operand): Add support for 'B'.
14001 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
14002 insns.
14003
14004 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
14005
14006 PR tree-optimization/100349
14007 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
14008 NULL.
14009
14010 2021-05-17 Tamar Christina <tamar.christina@arm.com>
14011
14012 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
14013 (host_detect_local_cpu): Use it.
14014
14015 2021-05-17 Martin Liska <mliska@suse.cz>
14016
14017 * doc/invoke.texi: Add 2 missing dots.
14018
14019 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
14020
14021 PR bootstrap/100552
14022 * configure.ac: Replace pattern substitution with call to sed.
14023 * configure: Regenerate.
14024
14025 2021-05-17 Richard Biener <rguenther@suse.de>
14026
14027 PR middle-end/100582
14028 * tree.c (array_at_struct_end_p): Get to the base of the
14029 reference before looking for the underlying decl.
14030
14031 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
14032
14033 * genoutput.c (validate_insn_alternatives) Make "wrong number of
14034 alternatives" message more specific, and remove assumption on where
14035 the problem is.
14036
14037 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
14038
14039 * config/arm/iterators.md (V16): New iterator.
14040 (VH_cvtto): New iterator.
14041 (v_cmp_result): Added V4HF and V8HF support.
14042 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
14043 (vcond<mode><mode>): Likewise.
14044 (vcond_mask_<mode><v_cmp_result>): Likewise.
14045 (vcond<VH_cvtto><mode>): New expander.
14046
14047 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
14048
14049 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
14050 prototype.
14051 * config/arm/arm.c (arm_expand_vector_compare): Add support for
14052 MVE.
14053 (arm_expand_vcond): Likewise.
14054 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
14055 VCMPEQQ_N_S, VCMPNEQ_N_S.
14056 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
14057 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
14058 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
14059 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
14060 (@mve_vpselq_<supf><mode>): Likewise.
14061 (@mve_vpselq_f<mode>"): Likewise.
14062 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
14063 and move to vec-common.md.
14064 (vec_cmpu<mode><mode>): Likewise.
14065 (vcond<mode><mode>): Likewise.
14066 (vcond<V_cvtto><mode>): Likewise.
14067 (vcondu<mode><v_cmp_result>): Likewise.
14068 (vcond_mask_<mode><v_cmp_result>): Likewise.
14069 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
14070 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
14071 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
14072 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
14073 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
14074 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
14075 from neon.md.
14076 (vec_cmpu<mode><mode>): Likewise.
14077 (vcond<mode><mode>): Likewise.
14078 (vcond<V_cvtto><mode>): Likewise.
14079 (vcondu<mode><v_cmp_result>): Likewise.
14080 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
14081 condition.
14082
14083 2021-05-17 liuhongt <hongtao.liu@intel.com>
14084
14085 PR target/100549
14086 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
14087 gsi_insert_seq_before instead.
14088
14089 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
14090
14091 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
14092 (arm_sat_ok): ...this.
14093
14094 2021-05-17 Martin Liska <mliska@suse.cz>
14095
14096 * lto-wrapper.c (merge_flto_options): Factor out a new function.
14097 (merge_and_complain): Use it.
14098 (run_gcc): Merge also linker command line -flto=foo argument
14099 with IL files.
14100
14101 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
14102
14103 * config/arm/arm.h (CPP_SPEC): Remove error message about
14104 -mlittle-endian/-mbig-endian conflict.
14105
14106 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
14107
14108 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
14109 __ROP_PROTECT__ if -mrop-protect is selected.
14110
14111 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
14112
14113 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
14114 rop_hash_save_offset and rop_hash_size.
14115 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
14116 rop_hash_size and rop_hash_save_offset.
14117 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
14118 (rs6000_emit_prologue): Emit hashst[p] in prologue.
14119 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
14120 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
14121 UNSPEC_HASHCHK.
14122 (hashst): New define_insn.
14123 (hashchk): Likewise.
14124
14125 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
14126
14127 * config/rs6000/rs6000.c (rs6000_option_override_internal):
14128 Disable shrink wrap when inserting ROP-protect instructions.
14129 * config/rs6000/rs6000.opt (mrop-protect): New option.
14130 (mprivileged): Likewise.
14131 * doc/invoke.texi: Document mrop-protect and mprivileged.
14132
14133 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
14134
14135 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
14136 "Remove CC0".
14137
14138 2021-05-15 Martin Jambor <mjambor@suse.cz>
14139
14140 Revert:
14141 2021-05-13 Martin Jambor <mjambor@suse.cz>
14142
14143 PR tree-optimization/100453
14144 * tree-sra.c (sra_modify_assign): All const base accesses do not
14145 need refreshing, not just those from decl_pool.
14146 (sra_modify_assign): Do not refresh into a const base decl.
14147
14148 2021-05-15 Jakub Jelinek <jakub@redhat.com>
14149
14150 PR rtl-optimization/100342
14151 * regcprop.c (copy_value): When copying a source reg in a wider
14152 mode than it has recorded for the value, adjust recorded destination
14153 mode too or punt if !REG_CAN_CHANGE_MODE_P.
14154
14155 2021-05-14 Jason Merrill <jason@redhat.com>
14156
14157 * intl.h: Add comments.
14158
14159 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14160
14161 * config/aarch64/aarch64-simd.md
14162 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
14163 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
14164 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
14165 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
14166 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
14167 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
14168 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
14169 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
14170 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
14171
14172 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14173
14174 PR target/66791
14175 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
14176 boolean logic equivalent.
14177 (vtst_s16): Likewise.
14178 (vtst_s32): Likewise.
14179 (vtst_u8): Likewise.
14180 (vtst_u16): Likewise.
14181 (vtst_u32): Likewise.
14182 (vtst_p8): Likewise.
14183 (vtst_p16): Likewise.
14184 (vtstq_s8): Likewise.
14185 (vtstq_s16): Likewise.
14186 (vtstq_s32): Likewise.
14187 (vtstq_u8): Likewise.
14188 (vtstq_u16): Likewise.
14189 (vtstq_u32): Likewise.
14190 (vtstq_p8): Likewise.
14191 (vtstq_p16): Likewise.
14192 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
14193 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
14194
14195 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14196
14197 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
14198 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
14199 (aarch64_sqdmlsl2<mode>): Delete.
14200 (aarch64_sqdmlal2_lane<mode>): Merge this...
14201 (aarch64_sqdmlsl2_lane<mode>): ... And this...
14202 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
14203 (aarch64_sqdmlal2_laneq<mode>): Merge this...
14204 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
14205 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
14206 (aarch64_sqdmlal2_n<mode>): Merge this...
14207 (aarch64_sqdmlsl2_n<mode>): ... And this...
14208 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
14209
14210 2021-05-13 Martin Sebor <msebor@redhat.com>
14211
14212 PR middle-end/100574
14213 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
14214 all null arguments.
14215
14216 2021-05-13 Martin Sebor <msebor@redhat.com>
14217
14218 PR tree-optimization/93100
14219 PR middle-end/98583
14220 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
14221 don't modify referenced objects.
14222
14223 2021-05-13 Martin Jambor <mjambor@suse.cz>
14224
14225 PR tree-optimization/100453
14226 * tree-sra.c (sra_modify_assign): All const base accesses do not
14227 need refreshing, not just those from decl_pool.
14228 (sra_modify_assign): Do not refresh into a const base decl.
14229
14230 2021-05-13 Martin Liska <mliska@suse.cz>
14231
14232 * tree-ssa-dom.c: Remove m_simplifier.
14233
14234 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
14235
14236 PR target/100563
14237 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
14238 canonicalize DImode inequality comparisons against the
14239 maximum integral value.
14240
14241 2021-05-13 Jakub Jelinek <jakub@redhat.com>
14242
14243 PR tree-optimization/98856
14244 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
14245 Expect V2DI and V4DI arithmetic right shifts to be emulated.
14246 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
14247 caller.
14248 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
14249 expand_vec_perm_2perm_pblendv): New functions.
14250 (ix86_expand_vec_perm_const_1): Use them.
14251 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
14252 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
14253 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
14254 (ashrv4di3): New define_expand.
14255 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
14256 and !TARGET_AVX512VL expansion.
14257
14258 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
14259
14260 PR target/100581
14261 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
14262 sizes < 16 to a register when constructing vpcmov pattern.
14263 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
14264
14265 2021-05-13 Martin Liska <mliska@suse.cz>
14266
14267 * gcov-io.c (gcov_write_block): Remove.
14268 (gcov_write_words): Likewise.
14269 (gcov_read_words): Re-implement using gcov_read_bytes.
14270 (gcov_allocate): Remove.
14271 (GCOV_BLOCK_SIZE): Likewise.
14272 (struct gcov_var): Remove most of the fields.
14273 (gcov_position): Implement with ftell.
14274 (gcov_rewrite): Remove setting of start and offset fields.
14275 (from_file): Re-format.
14276 (gcov_open): Remove setbuf call. It should not be needed.
14277 (gcov_close): Remove internal buffer handling.
14278 (gcov_magic): Use __builtin_bswap32.
14279 (gcov_write_counter): Use directly gcov_write_unsigned.
14280 (gcov_write_string): Use direct fwrite and do not round
14281 to 4 bytes.
14282 (gcov_seek): Use directly fseek.
14283 (gcov_write_tag): Use gcov_write_unsigned directly.
14284 (gcov_write_length): Likewise.
14285 (gcov_write_tag_length): Likewise.
14286 (gcov_read_bytes): Use directly fread.
14287 (gcov_read_unsigned): Use gcov_read_words.
14288 (gcov_read_counter): Likewise.
14289 (gcov_read_string): Use gcov_read_bytes.
14290 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
14291 that size is not in bytes, but words (4B).
14292 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
14293 (GCOV_TAG_ARCS_LENGTH): Likewise.
14294 (GCOV_TAG_ARCS_NUM): Likewise.
14295 (GCOV_TAG_COUNTER_LENGTH): Likewise.
14296 (GCOV_TAG_COUNTER_NUM): Likewise.
14297 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
14298
14299 2021-05-13 liuhongt <hongtao.liu@intel.com>
14300
14301 PR target/94680
14302 * config/i386/sse.md (ssedoublevecmode): Add attribute for
14303 V64QI/V32HI/V16SI/V4DI.
14304 (ssehalfvecmode): Add attribute for V2DI/V2DF.
14305 (*vec_concatv4si_0): Extend to VI124_128.
14306 (*vec_concat<mode>_0): New pre-reload splitter.
14307 * config/i386/predicates.md (movq_parallel): New predicate.
14308
14309 2021-05-13 Alexandre Oliva <oliva@adacore.com>
14310
14311 * targhooks.c (default_zero_call_used_regs): Retry using
14312 successfully-zeroed registers as sources.
14313
14314 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
14315
14316 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
14317
14318 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
14319
14320 PR c/100521
14321 * gimple-range.cc (range_of_builtin_call): Skip out on
14322 processing __builtin_clz when varying.
14323
14324 2021-05-12 Tom de Vries <tdevries@suse.de>
14325
14326 PR target/96005
14327 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
14328 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
14329 to ptx_version_option.
14330 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
14331 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
14332 (define_insn "nvptx_vote_ballot"): Use sync variant for
14333 TARGET_PTX_6_3.
14334 * config/nvptx/nvptx.opt (ptx_version): Add enum.
14335 (mptx): Add option.
14336 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
14337
14338 2021-05-12 Richard Biener <rguenther@suse.de>
14339
14340 PR tree-optimization/100566
14341 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
14342 allow_back for all edge queries.
14343
14344 2021-05-12 liuhongt <hongtao.liu@intel.com>
14345
14346 PR target/99908
14347 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
14348 splitters for pblendvb of NOT mask register.
14349
14350 2021-05-12 Richard Biener <rguenther@suse.de>
14351
14352 PR tree-optimization/100519
14353 * tree-ssa-reassoc.c (can_associate_p): Split into...
14354 (can_associate_op_p): ... this
14355 (can_associate_type_p): ... and this.
14356 (is_reassociable_op): Call can_associate_op_p.
14357 (break_up_subtract_bb): Call the appropriate predicates.
14358 (reassociate_bb): Likewise.
14359
14360 2021-05-12 Martin Liska <mliska@suse.cz>
14361
14362 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
14363 (run_gcc): Use -flto argument detection for merged
14364 fdecoded_options.
14365
14366 2021-05-12 Martin Liska <mliska@suse.cz>
14367
14368 * lto-wrapper.c (print_lto_docs_link): New function.
14369 (run_gcc): Print warning about missing job server detection
14370 after we know NR of partitions. Do the same for -flto{,=1}.
14371 * opts.c (get_option_html_page): Support -flto option.
14372
14373 2021-05-12 Martin Liska <mliska@suse.cz>
14374
14375 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
14376 return type.
14377 (append_option): Remove.
14378 (find_option): Rework to use the vector type.
14379 (remove_option): Remove.
14380 (merge_and_complain): Use vectors for cl_decoded_option data
14381 type arguments.
14382 (append_compiler_options): Likewise.
14383 (append_diag_options): Likewise.
14384 (append_linker_options): Likewise.
14385 (append_offload_options): Likewise.
14386 (compile_offload_image): Likewise.
14387 (compile_images_for_offload_targets): Likewise.
14388 (find_and_merge_options): Likewise.
14389 (run_gcc): Likewise.
14390
14391 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
14392
14393 PR debug/100515
14394 * dwarf2out.c (dwarf2out_finish): Set
14395 have_multiple_function_sections with multi-range text_section.
14396
14397 2021-05-12 Martin Liska <mliska@suse.cz>
14398
14399 PR bootstrap/100560
14400 * Makefile.in: Remove version.h from linker command line.
14401
14402 2021-05-12 Richard Biener <rguenther@suse.de>
14403
14404 PR middle-end/100547
14405 * rtl.h (rtvec_alloc): Make argument size_t.
14406 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
14407
14408 2021-05-12 Jakub Jelinek <jakub@redhat.com>
14409
14410 PR middle-end/100508
14411 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
14412 type, don't reuse DECL_RTL if it has different mode, instead force
14413 creation of a new DEBUG_EXPR.
14414
14415 2021-05-12 Jakub Jelinek <jakub@redhat.com>
14416 Marc Glisse <marc.glisse@inria.fr>
14417
14418 PR tree-optimization/94589
14419 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
14420 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
14421
14422 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
14423
14424 PR target/98218
14425 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
14426 * config/i386/mmx.md (MMXMODE124): New mode iterator.
14427 (V2FI): Ditto.
14428 (mmxintvecmode): New mode attribute.
14429 (mmxintvecmodelower): Ditto.
14430 (*mmx_maskcmpv2sf3_comm): New insn pattern.
14431 (*mmx_maskcmpv2sf3): Ditto.
14432 (vec_cmpv2sfv2si): New expander.
14433 (vcond<V2FI:mode>v2si): Ditto.
14434 (mmx_vlendvps): New insn pattern.
14435 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
14436 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
14437 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
14438
14439 2021-05-11 Martin Sebor <msebor@redhat.com>
14440
14441 PR middle-end/21433
14442 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
14443
14444 2021-05-11 Richard Biener <rguenther@suse.de>
14445
14446 * gimple-fold.c (gimple_fold_call): Do not call
14447 maybe_fold_reference on call arguments or the static chain.
14448 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
14449 inputs.
14450
14451 2021-05-11 Martin Liska <mliska@suse.cz>
14452
14453 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
14454 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
14455 (DEF_HSAIL_SAT_BUILTIN): Likewise.
14456 (DEF_HSAIL_INTR_BUILTIN): Likewise.
14457 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
14458 * doc/frontends.texi: Remove BRIG.
14459 * doc/install.texi: Likewise.
14460 * doc/invoke.texi: Likewise.
14461 * doc/standards.texi: Likewise.
14462 * brig-builtins.def: Removed.
14463 * brig/ChangeLog: Removed.
14464 * brig/Make-lang.in: Removed.
14465 * brig/brig-builtins.h: Removed.
14466 * brig/brig-c.h: Removed.
14467 * brig/brig-lang.c: Removed.
14468 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
14469 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
14470 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
14471 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
14472 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
14473 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
14474 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
14475 * brig/brigfrontend/brig-comment-handler.cc: Removed.
14476 * brig/brigfrontend/brig-control-handler.cc: Removed.
14477 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
14478 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
14479 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
14480 * brig/brigfrontend/brig-function-handler.cc: Removed.
14481 * brig/brigfrontend/brig-function.cc: Removed.
14482 * brig/brigfrontend/brig-function.h: Removed.
14483 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
14484 * brig/brigfrontend/brig-label-handler.cc: Removed.
14485 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
14486 * brig/brigfrontend/brig-machine.c: Removed.
14487 * brig/brigfrontend/brig-machine.h: Removed.
14488 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
14489 * brig/brigfrontend/brig-module-handler.cc: Removed.
14490 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
14491 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
14492 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
14493 * brig/brigfrontend/brig-to-generic.cc: Removed.
14494 * brig/brigfrontend/brig-to-generic.h: Removed.
14495 * brig/brigfrontend/brig-util.cc: Removed.
14496 * brig/brigfrontend/brig-util.h: Removed.
14497 * brig/brigfrontend/brig-variable-handler.cc: Removed.
14498 * brig/brigfrontend/hsa-brig-format.h: Removed.
14499 * brig/brigfrontend/phsa.h: Removed.
14500 * brig/brigspec.c: Removed.
14501 * brig/config-lang.in: Removed.
14502 * brig/gccbrig.texi: Removed.
14503 * brig/lang-specs.h: Removed.
14504 * brig/lang.opt: Removed.
14505
14506 2021-05-11 Richard Biener <rguenther@suse.de>
14507
14508 PR ipa/100513
14509 * ipa-param-manipulation.c
14510 (ipa_param_body_adjustments::modify_call_stmt): Avoid
14511 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
14512 via gimple_call_lhs_ptr.
14513
14514 2021-05-11 Alex Coplan <alex.coplan@arm.com>
14515
14516 PR target/99725
14517 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
14518 Avoid emitting CFA adjusts on the sp if we have the fp.
14519
14520 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
14521
14522 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
14523 (VMULD): New iterator.
14524 (VCOND): Handle V4HF and V8HF.
14525 (VCONQ): Fix entry for V2SF.
14526 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
14527 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
14528 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
14529 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
14530 Use a 128-bit vector mode for the indexed operand. Use stype for
14531 the scheduling type.
14532
14533 2021-05-11 Richard Biener <rguenther@suse.de>
14534
14535 * gimple-fold.c (maybe_fold_reference): Only return
14536 is_gimple_min_invariant values.
14537
14538 2021-05-11 Richard Biener <rguenther@suse.de>
14539
14540 PR middle-end/100509
14541 * gimple-fold.c (fold_gimple_assign): Only call
14542 get_symbol_constant_value on register type symbols.
14543
14544 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
14545 Joe Ramsay <joe.ramsay@arm.com>
14546
14547 PR target/100419
14548 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
14549 (__arm_vcmpneq): Remove duplicate definition.
14550 (__arm_vstrwq_scatter_offset_p): Likewise.
14551 (__arm_vmaxq_x): Likewise.
14552 (__arm_vmlsdavaq): Likewise.
14553 (__arm_vmlsdavaxq): Likewise.
14554 (__arm_vmlsdavq_p): Likewise.
14555 (__arm_vmlsdavxq_p): Likewise.
14556 (__arm_vrmlaldavhaq): Likewise.
14557 (__arm_vstrbq_p): Likewise.
14558 (__arm_vstrbq_scatter_offset): Likewise.
14559 (__arm_vstrbq_scatter_offset_p): Likewise.
14560 (__arm_vstrdq_scatter_offset): Likewise.
14561 (__arm_vstrdq_scatter_offset_p): Likewise.
14562 (__arm_vstrdq_scatter_shifted_offset): Likewise.
14563 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
14564
14565 2021-05-11 Jakub Jelinek <jakub@redhat.com>
14566
14567 PR middle-end/100471
14568 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
14569 is 0, bypass the reduction loop including
14570 GOMP_taskgroup_reduction_unregister call.
14571
14572 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
14573
14574 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
14575 costing_for_scalar.
14576 (rs6000_density_test): Early return if costing_for_scalar is true.
14577 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
14578
14579 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
14580
14581 * doc/tm.texi: Regenerated.
14582 * target.def (init_cost): Add new parameter costing_for_scalar.
14583 * targhooks.c (default_init_cost): Adjust for new parameter.
14584 * targhooks.h (default_init_cost): Likewise.
14585 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
14586 (vect_compute_single_scalar_iteration_cost): Likewise.
14587 (vect_analyze_loop_2): Likewise.
14588 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
14589 (vect_bb_vectorization_profitable_p): Likewise.
14590 * tree-vectorizer.h (init_cost): Likewise.
14591 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
14592 * config/i386/i386.c (ix86_init_cost): Likewise.
14593 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
14594
14595 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
14596
14597 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
14598 vect_nonmem and moved into...
14599 (struct rs6000_cost_data): ...here.
14600 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
14601 (rs6000_add_stmt_cost): Likewise.
14602 (rs6000_finish_cost): Likewise.
14603
14604 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
14605
14606 * range-op.cc (get_bool_state): Adjust head comment.
14607 (operator_not_equal::op1_range): Fix comment.
14608 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
14609
14610 2021-05-10 Martin Sebor <msebor@redhat.com>
14611
14612 PR middle-end/100425
14613 PR middle-end/100510
14614 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
14615 (pass_walloca::xlimit_certain_p): ...to this.
14616 (pass_walloca::gate): Execute for any kind of handled warning.
14617 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
14618 warnings when xlimit_certain_p is set.
14619
14620 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
14621
14622 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
14623 Return ALTIVEC_REGS if that is best_class.
14624 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
14625
14626 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
14627
14628 * config/arm/arm.h (CPP_SPEC): Remove error message about
14629 -mfloat-abi.
14630
14631 2021-05-10 Martin Jambor <mjambor@suse.cz>
14632
14633 * ipa-prop.h (IPA_NODE_REF): Removed.
14634 (IPA_NODE_REF_GET_CREATE): Likewise.
14635 (IPA_EDGE_REF): Likewise.
14636 (IPA_EDGE_REF_GET_CREATE): Likewise.
14637 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
14638 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
14639 use of ipa_node_params_sum.
14640 (ipcp_versionable_function_p): Likewise.
14641 (push_node_to_stack): Likewise.
14642 (pop_node_from_stack): Likewise.
14643 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
14644 direct use of ipa_node_params_sum.
14645 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
14646 ipa_node_params_sum.
14647 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
14648 ipa_edge_args_sum.
14649 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
14650 use of ipa_node_params_sum.
14651 (self_recursively_generated_p): Likewise.
14652 (propagate_scalar_across_jump_function): Likewise.
14653 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
14654 direct use of ipa_edge_args_sum, moved the lookup after the early
14655 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
14656 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
14657 direct uses of ipa_node_params_sum.
14658 (propagate_vr_across_jump_function): Likewise.
14659 (propagate_aggregate_lattice): Likewise.
14660 (propagate_aggs_across_jump_function): Likewise.
14661 (propagate_constants_across_call): Likewise, also replaced
14662 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
14663 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
14664 of ipa_node_params_sum.
14665 (estimate_local_effects): Likewise.
14666 (add_all_node_vals_to_toposort): Likewise.
14667 (propagate_constants_topo): Likewise.
14668 (ipcp_propagate_stage): Likewise.
14669 (ipcp_discover_new_direct_edges): Likewise.
14670 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
14671 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
14672 (get_info_about_necessary_edges): Likewise.
14673 (want_remove_some_param_p): Likewise.
14674 (create_specialized_node): Likewise.
14675 (self_recursive_pass_through_p): Likewise.
14676 (self_recursive_agg_pass_through_p): Likewise.
14677 (find_more_scalar_values_for_callers_subset): Likewise and also
14678 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
14679 case replacing two of those with a single query.
14680 (find_more_contexts_for_caller_subset): Likewise for the
14681 ipa_polymorphic_call_context overload.
14682 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
14683 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
14684 ipa_node_params_sum.
14685 (find_aggregate_values_for_callers_subset): Likewise, also reusing
14686 results of ipa_edge_args_sum->get.
14687 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
14688 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
14689 direct use of ipa_edge_args_sum.
14690 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
14691 summary query after the early exit and reused the result later.
14692 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
14693 ipa_node_params_sum.
14694 (decide_whether_version_node): Likewise. Removed re-querying for
14695 summaries after cloning.
14696 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
14697 ipa_node_params_sum.
14698 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
14699 some queries.
14700 (identify_dead_nodes): Likewise.
14701 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
14702 ipa_node_params_sum.
14703 (ipcp_store_vr_results): Likewise.
14704 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
14705 (ipa_fn_summary_t::duplicate): Likewise.
14706 (analyze_function_body): Likewise.
14707 (estimate_calls_size_and_time): Likewise.
14708 (ipa_cached_call_context::duplicate_from): Likewise.
14709 (ipa_call_context::equal_to): Likewise.
14710 (remap_edge_params): Likewise.
14711 (ipa_merge_fn_summary_after_inlining): Likewise.
14712 (inline_read_section): Likewise.
14713 * ipa-icf.c (sem_function::param_used_p): Likewise.
14714 * ipa-modref.c (compute_parm_map): Likewise.
14715 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
14716 ipa_edge_args_sum.
14717 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
14718 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
14719 ipa_edge_args_sum.
14720 * ipa-profile.c (check_argument_count): Likewise.
14721 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
14722 with a direct use of ipa_node_params_sum.
14723 (ipa_initialize_node_params): Likewise.
14724 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
14725 direct use of ipa_edge_args_sum and reused the query result.
14726 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
14727 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
14728 direct use of ipa_edge_args_sum.
14729 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
14730 ipa_node_params_sum and reused the result of the query.
14731 (ipa_analyze_node): Likewise.
14732 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
14733 of ipa_node_params_sum.
14734 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
14735 direct uses of ipa_edge_args_sum.
14736 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
14737 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
14738 direct use of ipa_edge_args_sum. Removed superficial re-querying the
14739 top edge summary.
14740 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
14741 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
14742 ipa_edge_args_sum.
14743 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
14744 direct use of ipa_edge_args_sum.
14745 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
14746 use of ipa_node_params_sum.
14747 (ipa_print_node_params): Likewise.
14748 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
14749 direct uses of ipa_edge_args_sum.
14750 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
14751 ipa_edge_args_sum.
14752 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
14753 ipa_node_params_sum.
14754 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
14755 scopes where it is used.
14756
14757 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
14758
14759 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
14760 <case E_V2SImode>: Force op_true to register.
14761
14762 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
14763
14764 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
14765 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
14766 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
14767 patterns.
14768 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
14769 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
14770 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
14771 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
14772 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
14773 (mve_vcmpneq_n_f<mode>): Remove.
14774 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
14775 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
14776 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
14777
14778 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
14779
14780 * config/arm/iterators.md (MVE_COMPARISONS): New.
14781 (mve_cmp_op): New.
14782 (mve_cmp_type): New.
14783 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
14784 mve_vcmp patterns.
14785 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
14786 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
14787 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
14788 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
14789 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
14790 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
14791 (mve_vcmpneq_n_<mode>): Remove.
14792
14793 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
14794
14795 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
14796 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
14797 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
14798 names.
14799
14800 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
14801
14802 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
14803 (vcmpneq_n_u): Likewise.
14804 (vcmpeqq_u,): Likewise.
14805 (vcmpeqq_n_u): Likewise.
14806 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
14807 VCMPEQQ_N_U and VCMPNEQ_N_U.
14808 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
14809 (mve_vcmpeqq_n): Likewise.
14810 (mve_vcmpeqq): Likewise.
14811 (mve_vcmpneq_n): Likewise.
14812
14813 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
14814
14815 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
14816 the 's' version of the builtin.
14817
14818 2021-05-10 Richard Biener <rguenther@suse.de>
14819
14820 PR tree-optimization/100492
14821 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
14822 Find nothing when the loop contains an irreducible region.
14823
14824 2021-05-10 Richard Biener <rguenther@suse.de>
14825
14826 PR middle-end/100464
14827 PR c++/100468
14828 * gimple-fold.c (canonicalize_constructor_val): Do not set
14829 TREE_ADDRESSABLE.
14830
14831 2021-05-10 Richard Biener <rguenther@suse.de>
14832
14833 PR tree-optimization/100434
14834 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
14835 call LHS.
14836 (dse_optimize_stmt): Handle call LHS by dropping the
14837 LHS or the whole call if it doesn't have other
14838 side-effects.
14839 (pass_dse::execute): Adjust.
14840
14841 2021-05-10 Martin Liska <mliska@suse.cz>
14842
14843 * Makefile.in: Add missing genversion rule.
14844
14845 2021-05-10 Alex Coplan <alex.coplan@arm.com>
14846
14847 PR target/99960
14848 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
14849 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
14850
14851 2021-05-10 Martin Liska <mliska@suse.cz>
14852
14853 * builtins.c (is_builtin_name): Use startswith
14854 function instead of strncmp.
14855 * collect2.c (main): Likewise.
14856 (has_lto_section): Likewise.
14857 (scan_libraries): Likewise.
14858 * coverage.c (coverage_checksum_string): Likewise.
14859 (coverage_init): Likewise.
14860 * dwarf2out.c (is_cxx): Likewise.
14861 (gen_compile_unit_die): Likewise.
14862 * gcc-ar.c (main): Likewise.
14863 * gcc.c (init_spec): Likewise.
14864 (read_specs): Likewise.
14865 (execute): Likewise.
14866 (check_live_switch): Likewise.
14867 * genattrtab.c (write_attr_case): Likewise.
14868 (IS_ATTR_GROUP): Likewise.
14869 * gencfn-macros.c (main): Likewise.
14870 * gengtype.c (type_for_name): Likewise.
14871 (gen_rtx_next): Likewise.
14872 (get_file_langdir): Likewise.
14873 (write_local): Likewise.
14874 * genmatch.c (get_operator): Likewise.
14875 (get_operand_type): Likewise.
14876 (expr::gen_transform): Likewise.
14877 * genoutput.c (validate_optab_operands): Likewise.
14878 * incpath.c (add_sysroot_to_chain): Likewise.
14879 * langhooks.c (lang_GNU_C): Likewise.
14880 (lang_GNU_CXX): Likewise.
14881 (lang_GNU_Fortran): Likewise.
14882 (lang_GNU_OBJC): Likewise.
14883 * lto-wrapper.c (run_gcc): Likewise.
14884 * omp-general.c (omp_max_simt_vf): Likewise.
14885 * omp-low.c (omp_runtime_api_call): Likewise.
14886 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
14887 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
14888 * real.c (real_from_string): Likewise.
14889 * selftest.c (assert_str_startswith): Likewise.
14890 * timevar.c (timer::validate_phases): Likewise.
14891 * tree.c (get_file_function_name): Likewise.
14892 * ubsan.c (ubsan_use_new_style_p): Likewise.
14893 * varasm.c (default_function_rodata_section): Likewise.
14894 (incorporeal_function_p): Likewise.
14895 (default_section_type_flags): Likewise.
14896 * system.h (startswith): Define startswith.
14897
14898 2021-05-10 Martin Liska <mliska@suse.cz>
14899
14900 * bitmap.h (class auto_bitmap): Remove
14901 __cplusplus >= 201103.
14902 * config/aarch64/aarch64.c: Likewise.
14903 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
14904 Likewise.
14905 * sbitmap.h: Likewise.
14906
14907 2021-05-10 Martin Liska <mliska@suse.cz>
14908
14909 * Makefile.in: Rename gcov-iov to genversion and depend
14910 on version.h (instead of gcov-iov.h).
14911 * gcov-io.h: Include version.h instread of gcov-iov.h.
14912 * gengtype-state.c (read_state_version): Likewise.
14913 * gcov-iov.c: Moved to...
14914 * genversion.c: ...here.
14915 * lto-streamer.h (LTO_major_version): Define it with
14916 GCC_major_version.
14917 * version.c: Removed.
14918 * version.h: Removed.
14919
14920 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
14921
14922 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
14923 * config/arc/simdext.md (VCT): Add predicates for iterator
14924 elements.
14925 (EMUVEC): Define.
14926 (voptab): Likewise.
14927 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
14928 (<voptab>v2si3): New patterns.
14929 (neg): Likewise.
14930 (reduc_plus_scal_v4hi): Likewise.
14931 (reduc_plus_scal_v2si): Likewise.
14932 (vec_duplicatev2si): Likewise.
14933 (vec_duplicatev4hi): Likewise.
14934
14935 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
14936
14937 * config/arc/simdext.md: Format and cleanup file.
14938
14939 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
14940
14941 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
14942 only when munaligned-access option is on.
14943 (movmisalign<mode>): Likewise.
14944
14945 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
14946
14947 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
14948 from string.
14949 * config/arc/arc.c (arc_reorg): Remove underscore from string.
14950
14951 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
14952
14953 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
14954 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
14955 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
14956 (norm_f): Likewise.
14957 (ffs): Likewise.
14958 (ffs_f): Likewise.
14959 (clzsi2): Use fls instruction when available.
14960 (arc_clzsi2): Likewise.
14961
14962 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
14963
14964 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
14965
14966 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
14967
14968 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
14969
14970 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
14971
14972 PR middle-end/100467
14973 * toplev.c (compile_file): Call insn_locations_init before
14974 targetm.asm_out.code_end.
14975
14976 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
14977
14978 Revert:
14979 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
14980
14981 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
14982
14983 2021-05-07 Jakub Jelinek <jakub@redhat.com>
14984 Andrew Stubbs <amd@codesourcery.com>
14985
14986 PR target/100418
14987 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
14988 emit_move_insn operands.
14989
14990 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
14991
14992 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
14993 location for the outgoing edges of an empty block.
14994 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
14995 type by means of the get_array_descr_info langhook, if it is set and
14996 returns true. Remove obsolete code dealing with unnamed subtypes.
14997
14998 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
14999
15000 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
15001 (sbr_vector): Renamed from ssa_block_cache.
15002 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
15003 (ssa_block_ranges::~ssa_block_ranges): Remove.
15004 (sbr_vector::set_bb_range): Use varying and undefined cached values.
15005 (ssa_block_ranges::set_bb_varying): Remove.
15006 (sbr_vector::get_bb_range): Adjust assert.
15007 (sbr_vector::bb_range_p): Adjust assert.
15008 (~block_range_cache): No freeing loop required.
15009 (block_range_cache::get_block_ranges): Remove.
15010 (block_range_cache::set_bb_range): Inline get_block_ranges.
15011 (block_range_cache::set_bb_varying): Remove.
15012 * gimple-range-cache.h (set_bb_varying): Remove prototype.
15013 * value-range.h (irange_allocator::get_memory): New.
15014
15015 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
15016
15017 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
15018 dominator tree is available and requested.
15019 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
15020 (ranger_cache::fill_block_cache): Don't search dom tree here either.
15021 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
15022
15023 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
15024
15025 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
15026 only PHI nodes better.
15027
15028 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
15029
15030 * gimple-range-edge.h (gimple_outgoing_range): Rename from
15031 outgoing_range.
15032 (gcond_edge_range): Export prototype.
15033 * gimple-range-edge.cc (gcond_edge_range): New.
15034 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
15035 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
15036
15037 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
15038
15039 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
15040 default range into a temp and allocate only what is needed.
15041
15042 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
15043
15044 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
15045
15046 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
15047
15048 * gimple-range.h (gimple_range_global): Pick up parameter initial
15049 values, and use-before defined locals are UNDEFINED.
15050
15051 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
15052
15053 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
15054 and vector fields.
15055 * tree.h (reverse_storage_order_for_component_p): Return false if
15056 the type is a pointer.
15057
15058 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
15059
15060 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
15061
15062 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
15063
15064 PR target/98218
15065 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
15066 Handle V8QI, V4HI and V2SI modes.
15067 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
15068 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
15069 * config/i386/i386.md (unspec): ... here.
15070
15071 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
15072 Tom de Vries <tdevries@suse.de>
15073
15074 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
15075 a truth_value_p reduction variable is nonintegral.
15076
15077 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
15078
15079 PR target/100445
15080 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
15081 Return false for mode sizes < 16.
15082
15083 2021-05-07 Jakub Jelinek <jakub@redhat.com>
15084
15085 PR target/100445
15086 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
15087
15088 2021-05-06 Martin Jambor <mjambor@suse.cz>
15089
15090 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
15091 when there is no function summary.
15092 (ipa_sra_summarize_function): produce edge summaries even when
15093 bailing out early.
15094
15095 2021-05-06 Tom Tromey <tom@tromey.com>
15096
15097 * godump.c (string_hash_eq): Remove.
15098 (go_finish): Use htab_eq_string.
15099
15100 2021-05-06 Tom Tromey <tom@tromey.com>
15101
15102 * gengtype-state.c (read_state): Use htab_eq_string.
15103 (string_eq): Remove.
15104
15105 2021-05-06 Tom Tromey <tom@tromey.com>
15106
15107 * gensupport.c (htab_eq_string): Remove.
15108
15109 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
15110
15111 PR ipa/97937
15112 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
15113 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
15114 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
15115 set_ignored_loc callbacks.
15116 * debug.c (do_nothing_debug_hooks): Likewise.
15117 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15118 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
15119 (in_text_section_p, last_text_label, last_cold_label,
15120 switch_text_ranges, switch_cold_ranges): New data items.
15121 (dwarf2out_note_section_used): Remove.
15122 (dwarf2out_begin_prologue): Set fde->ignored_debug and
15123 in_text_section_p.
15124 (mark_ignored_debug_section): New helper function.
15125 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
15126 mark_ignored_debug_section.
15127 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
15128 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
15129 (size_of_aranges): Adjust formula for multi-part text ranges size.
15130 (output_aranges): Output multi-part text ranges.
15131 (dwarf2out_set_ignored_loc): New callback function.
15132 (dwarf2out_finish): Output multi-part text ranges.
15133 (dwarf2out_c_finalize): Clear new data items.
15134 * final.c (final_start_function_1): Call set_ignored_loc callback.
15135 (final_scan_insn_1): Likewise.
15136 * ggc-page.c (gt_ggc_mx): New helper function.
15137 * stringpool.c (gt_pch_nx): Likewise.
15138
15139 2021-05-06 Richard Biener <rguenther@suse.de>
15140
15141 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
15142 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
15143 (TV_TREE_INTO_SSA): New.
15144 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
15145 (rewrite_blocks): Likewise.
15146 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
15147
15148 2021-05-06 Jakub Jelinek <jakub@redhat.com>
15149
15150 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
15151 abs_replacement, xor_replacement,
15152 cond_removal_in_popcount_clz_ctz_pattern,
15153 replace_phi_edge_with_variable): Change type of phi argument from
15154 gimple * to gphi *.
15155
15156 2021-05-06 Richard Biener <rguenther@suse.de>
15157
15158 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
15159 Output an opt-info message.
15160 (do_split_loop_on_cond): Likewise.
15161 (tree_ssa_split_loops): Update SSA form here.
15162
15163 2021-05-06 Richard Biener <rguenther@suse.de>
15164
15165 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
15166 return variable removal.
15167
15168 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
15169
15170 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
15171 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
15172 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
15173 operand.
15174 * config/s390/s390.c (s390_const_operand_ok): Remove unused
15175 values.
15176
15177 2021-05-06 Jakub Jelinek <jakub@redhat.com>
15178
15179 PR tree-optimization/94589
15180 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
15181 spaceship_replacement.
15182 (cond_only_block_p, spaceship_replacement): New functions.
15183
15184 2021-05-06 Richard Biener <rguenther@suse.de>
15185
15186 PR ipa/100373
15187 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
15188 dealing with a debug use and only query existing addresses
15189 if so.
15190 (lower_emutls_1): Avoid splitting out addresses for debug
15191 stmts, reset the debug stmt when we fail to find existing
15192 lowered addresses.
15193 (lower_emutls_phi_arg): Set wi.stmt.
15194
15195 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
15196
15197 PR target/100266
15198 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
15199 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
15200 (stack_protect_test): Use cbranch helper.
15201
15202 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
15203
15204 PR target/100402
15205 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
15206 always return the establisher frame for __builtin_frame_address (0).
15207
15208 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
15209
15210 PR target/91400
15211 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
15212 (ix86_cpu_model_var): Likewise.
15213 (ix86_cpu_features2_type_node): Likewise.
15214 (ix86_cpu_features2_var): Likewise.
15215 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
15216 their types.
15217
15218 2021-05-05 Martin Sebor <msebor@redhat.com>
15219
15220 * passes.def (pass_warn_printf): Run after SSA.
15221
15222 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15223
15224 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
15225 * config/arm/predicates.md (minus_one_operand): New predicate.
15226
15227 2021-05-05 Jeff Law <jlaw@tachyum.com>
15228
15229 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
15230
15231 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
15232
15233 PR rtl-optimization/100263
15234 * postreload.c (move2add_valid_value_p): Ensure register can
15235 change mode.
15236
15237 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
15238
15239 PR rtl-optimization/100411
15240 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
15241 and beginning of function markers.
15242
15243 2021-05-05 Jeff Law <jlaw@tachyum.com>
15244
15245 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
15246 * config/cr16/cr16.c (notice_update_cc): Remove.
15247 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
15248
15249 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
15250
15251 PR target/98218
15252 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15253 Handle V8QI, V4HI and V2SI modes.
15254 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
15255 (ix86_build_signbit_mask): Ditto.
15256 * config/i386/mmx.md (MMXMODE14): New mode iterator.
15257 (<smaxmin:code><MMXMODE14:mode>3): New expander.
15258 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
15259 (<umaxmin:code><MMXMODE24:mode>3): New expander.
15260 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
15261 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
15262 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
15263 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
15264 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
15265 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
15266
15267 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
15268
15269 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
15270 not expand the VALUE_EXPR of variables put in the non-local frame.
15271 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
15272 to be ignored for debug info, ensure its variable offsets are not.
15273
15274 2021-05-05 Richard Biener <rguenther@suse.de>
15275
15276 PR tree-optimization/79333
15277 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
15278 Fold stmt following SSA edges.
15279
15280 2021-05-05 Richard Biener <rguenther@suse.de>
15281
15282 PR middle-end/100394
15283 * calls.c (expand_call): Preserve possibly throwing calls.
15284 * cfgexpand.c (expand_call_stmt): When a call can throw signal
15285 RTL expansion there are side-effects.
15286 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
15287 mark all possibly throwing stmts necessary unless we can elide
15288 dead EH.
15289 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
15290 -fdelete-dead-exceptions.
15291 * tree.h (DECL_PURE_P): Add note about exceptions.
15292
15293 2021-05-05 Alexandre Oliva <oliva@adacore.com>
15294
15295 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
15296 unconditional.
15297
15298 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
15299
15300 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
15301 get_fnname_from_decl for name of thunk.
15302 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
15303 and ASM_OUTPUT_LABEL.
15304 (rs6000_xcoff_declare_function_name): Use assemble_name and
15305 ASM_OUTPUT_LABEL.
15306 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
15307 (rs6000_xcoff_encode_section_info): Don't add mapping class
15308 for aliases. Always add [DS] mapping class to primary
15309 FUNCTION_DECL.
15310 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
15311
15312 2021-05-04 Martin Sebor <msebor@redhat.com>
15313
15314 PR middle-end/100307
15315 * builtins.c (compute_objsize_r): Clear base0 for pointers.
15316
15317 2021-05-04 Jeff Law <jlaw@tachyum.com>
15318
15319 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
15320
15321 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
15322
15323 * caller-save.c: Remove CC0.
15324 * cfgcleanup.c: Remove CC0.
15325 * cfgrtl.c: Remove CC0.
15326 * combine.c: Remove CC0.
15327 * compare-elim.c: Remove CC0.
15328 * conditions.h: Remove CC0.
15329 * config/h8300/h8300.h: Remove CC0.
15330 * config/h8300/h8300-protos.h: Remove CC0.
15331 * config/h8300/peepholes.md: Remove CC0.
15332 * config/i386/x86-tune-sched.c: Remove CC0.
15333 * config/m68k/m68k.c: Remove CC0.
15334 * config/rl78/rl78.c: Remove CC0.
15335 * config/sparc/sparc.c: Remove CC0.
15336 * config/xtensa/xtensa.c: Remove CC0.
15337 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
15338 RTL where that is used as a placeholder only.
15339 * cprop.c: Remove CC0.
15340 * cse.c: Remove CC0.
15341 * cselib.c: Remove CC0.
15342 * df-problems.c: Remove CC0.
15343 * df-scan.c: Remove CC0.
15344 * doc/md.texi: Remove CC0. Adjust an example.
15345 * doc/rtl.texi: Remove CC0. Adjust an example.
15346 * doc/tm.texi: Regenerate.
15347 * doc/tm.texi.in: Remove CC0.
15348 * emit-rtl.c: Remove CC0.
15349 * final.c: Remove CC0.
15350 * fwprop.c: Remove CC0.
15351 * gcse-common.c: Remove CC0.
15352 * gcse.c: Remove CC0.
15353 * genattrtab.c: Remove CC0.
15354 * genconfig.c: Remove CC0.
15355 * genemit.c: Remove CC0.
15356 * genextract.c: Remove CC0.
15357 * gengenrtl.c: Remove CC0.
15358 * genrecog.c: Remove CC0.
15359 * haifa-sched.c: Remove CC0.
15360 * ifcvt.c: Remove CC0.
15361 * ira-costs.c: Remove CC0.
15362 * ira.c: Remove CC0.
15363 * jump.c: Remove CC0.
15364 * loop-invariant.c: Remove CC0.
15365 * lra-constraints.c: Remove CC0.
15366 * lra-eliminations.c: Remove CC0.
15367 * optabs.c: Remove CC0.
15368 * postreload-gcse.c: Remove CC0.
15369 * postreload.c: Remove CC0.
15370 * print-rtl.c: Remove CC0.
15371 * read-rtl-function.c: Remove CC0.
15372 * reg-notes.def: Remove CC0.
15373 * reg-stack.c: Remove CC0.
15374 * reginfo.c: Remove CC0.
15375 * regrename.c: Remove CC0.
15376 * reload.c: Remove CC0.
15377 * reload1.c: Remove CC0.
15378 * reorg.c: Remove CC0.
15379 * resource.c: Remove CC0.
15380 * rtl.c: Remove CC0.
15381 * rtl.def: Remove CC0.
15382 * rtl.h: Remove CC0.
15383 * rtlanal.c: Remove CC0.
15384 * sched-deps.c: Remove CC0.
15385 * sched-rgn.c: Remove CC0.
15386 * shrink-wrap.c: Remove CC0.
15387 * simplify-rtx.c: Remove CC0.
15388 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
15389 CC_STATUS_MDEP, and CC_STATUS.
15390 * target.def: Remove CC0.
15391 * valtrack.c: Remove CC0.
15392 * var-tracking.c: Remove CC0.
15393
15394 2021-05-04 Richard Biener <rguenther@suse.de>
15395
15396 PR tree-optimization/100414
15397 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
15398 info here.
15399 (tree_ssa_phiopt_worker): But unconditionally here.
15400
15401 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
15402
15403 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
15404 && and || with floating-point and complex arguments.
15405
15406 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
15407
15408 * tree-inline.c (insert_debug_decl_map): Delete.
15409 (copy_debug_stmt): Minor tweak.
15410 (setup_one_parameter): Do not use a variable if the value is either
15411 a read-only DECL or a non-addressable local variable in the caller.
15412 In this case, insert the debug-only variable in the map manually.
15413 (expand_call_inline): Do not generate a CLOBBER for these values.
15414 * tree-inline.h (debug_map): Minor tweak.
15415
15416 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
15417
15418 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
15419 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
15420
15421 2021-05-04 Richard Biener <rguenther@suse.de>
15422
15423 PR tree-optimization/100329
15424 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
15425 asm goto defs.
15426 (insert_stmt_after): Assert we're not running into asm goto.
15427
15428 2021-05-04 Richard Biener <rguenther@suse.de>
15429
15430 PR tree-optimization/100398
15431 * tree-ssa-dse.c (pass_dse::execute): Preserve control
15432 altering stmts.
15433
15434 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15435
15436 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
15437
15438 2021-05-04 Alexandre Oliva <oliva@adacore.com>
15439
15440 * builtins.c (try_store_by_multiple_pieces): New.
15441 (expand_builtin_memset_args): Use it. If target_char_cast
15442 fails, proceed as for non-constant val. Pass len's ctz to...
15443 * expr.c (clear_storage_hints): ... this. Try store by
15444 multiple pieces after setmem.
15445 (clear_storage): Adjust.
15446 * expr.h (clear_storage_hints): Likewise.
15447 (try_store_by_multiple_pieces): Declare.
15448 * passes.def: Replace the last copy_prop with ccp.
15449
15450 2021-05-03 Tom de Vries <tdevries@suse.de>
15451
15452 PR target/100321
15453 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
15454 reduction.
15455
15456 2021-05-03 Richard Biener <rguenther@suse.de>
15457
15458 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
15459
15460 2021-05-03 Richard Biener <rguenther@suse.de>
15461
15462 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
15463 (dse_dom_walker): Remove.
15464 (dse_dom_walker::dse_optimize_stmt): Rename...
15465 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
15466 (dse_dom_walker::before_dom_children): Inline ...
15467 (pass_dse::execute): ... here. Perform a reverse program
15468 order walk.
15469
15470 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
15471
15472 PR bootstrap/99703
15473 * configure: Regenerated.
15474
15475 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
15476
15477 PR target/100217
15478 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
15479 (s390_md_asm_adjust): Handle hard registers.
15480
15481 2021-05-03 Jakub Jelinek <jakub@redhat.com>
15482
15483 PR tree-optimization/100382
15484 * tree-ssa-dse.c: Include tree-eh.h.
15485 (dse_dom_walker::before_dom_children): Don't remove stmts if
15486 stmt_unremovable_because_of_non_call_eh_p is true.
15487
15488 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
15489
15490 * varasm.c (compute_reloc_for_var): Split out from...
15491 (get_variable_section): Use it.
15492 * output.h (compute_reloc_for_var): Declare.
15493 * config/rs6000/rs6000-protos.h
15494 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
15495 unsigned int.
15496 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
15497 Don't append storage mapping class to symbol.
15498 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
15499 Don't convert TLS BSS to common.
15500 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
15501 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
15502 bss_initializer.
15503 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
15504 mapping class.
15505 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
15506 If align is 0 from TLS class, use the same rules as varasm.c
15507 If not common, switch to BSS section manually.
15508 If common, emit appropriate comm or lcomm directive.
15509 (rs6000_xcoff_encode_section_info): Add logic to append all
15510 storage mapping classes.
15511 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
15512 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
15513 rs6000_xcoff_asm_output_aligned_decl_common.
15514 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
15515 rs6000_xcoff_asm_output_aligned_decl_common.
15516 (ASM_OUTPUT_TLS_COMMON): Use
15517 rs6000_xcoff_asm_output_aligned_decl_common.
15518
15519 2021-05-02 Jakub Jelinek <jakub@redhat.com>
15520
15521 PR target/100375
15522 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
15523 as first argument of pseudo_node_t constructors.
15524
15525 2021-05-02 Jakub Jelinek <jakub@redhat.com>
15526
15527 PR target/100336
15528 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
15529
15530 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
15531
15532 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
15533 (gt_pch_nx (int_range<1> *&)): New.
15534 (gt_ggc_mx (int_range<1> *&)): New.
15535 * value-range.h (class irange): Add GTY support for
15536 the base class.
15537
15538 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
15539
15540 * doc/options.texi (Negative): Change either or to both and.
15541
15542 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
15543
15544 * config/aarch64/aarch64-simd-builtins.def: Add
15545 float_ml[as][q]_laneq builtin generator macros.
15546 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
15547 (aarch64_float_mla_laneq<mode>): Define.
15548 (aarch64_float_mls_laneq<mode>): Define.
15549 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
15550 instead of GCC vector extensions.
15551 (vmlaq_laneq_f32): Likewise.
15552 (vmls_laneq_f32): Likewise.
15553 (vmlsq_laneq_f32): Likewise.
15554
15555 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
15556
15557 * config/aarch64/aarch64-simd-builtins.def: Add
15558 float_ml[as]_lane builtin generator macros.
15559 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
15560 Rename to...
15561 (mul_lane<mode>3): This, and re-order arguments.
15562 (aarch64_float_mla_lane<mode>): Define.
15563 (aarch64_float_mls_lane<mode>): Define.
15564 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
15565 instead of GCC vector extensions.
15566 (vmlaq_lane_f32): Likewise.
15567 (vmls_lane_f32): Likewise.
15568 (vmlsq_lane_f32): Likewise.
15569
15570 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
15571
15572 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
15573 builtin generator macros.
15574 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
15575 Define.
15576 (aarch64_float_mls<mode>): Define.
15577 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
15578 instead of relying on GCC vector extensions.
15579 (vmla_f64): Likewise.
15580 (vmlaq_f32): Likewise.
15581 (vmlaq_f64): Likewise.
15582 (vmls_f32): Likewise.
15583 (vmls_f64): Likewise.
15584 (vmlsq_f32): Likewise.
15585 (vmlsq_f64): Likewise.
15586 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
15587
15588 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
15589
15590 * config/aarch64/aarch64-simd-builtins.def: Add
15591 float_ml[as]_n_builtin generator macros.
15592 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
15593 Rename to...
15594 (mul_n<mode>3): This, and re-order arguments.
15595 (aarch64_float_mla_n<mode>): Define.
15596 (aarch64_float_mls_n<mode>): Define.
15597 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
15598 instead of inline asm.
15599 (vmlaq_n_f32): Likewise.
15600 (vmls_n_f32): Likewise.
15601 (vmlsq_n_f32): Likewise.
15602
15603 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
15604
15605 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
15606 builtin generator macros.
15607 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
15608 (aarch64_pmull_hiv16qi_insn): Define.
15609 (aarch64_pmull_hiv16qi): Define.
15610 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
15611 instead of inline asm.
15612 (vmull_p8): Likewise.
15613
15614 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
15615
15616 * config/avr/avr.md: Adjust peepholes to match and
15617 generate parallels with clobber of REG_CC.
15618 (mov<mode>_insn): Rename to mov<mode>_insn_split.
15619 (*mov<mode>_insn): Rename to mov<mode>_insn.
15620
15621 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
15622
15623 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
15624 for VAR_DECLs if -fdata-sections enabled.
15625
15626 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
15627
15628 PR bootstrap/100327
15629 * config/rs6000/rs6000.c
15630 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
15631 (rs6000_libgcc_floating_mode_supported_p): New target hook.
15632
15633 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
15634
15635 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
15636 from here...
15637 (class back_threader_registry): ...to here...
15638 (class back_threader_profitability): ...and here...
15639 (thread_jumps::thread_through_all_blocks): Remove argument.
15640 (back_threader_registry::back_threader_registry): New.
15641 (back_threader_registry::~back_threader_registry): New.
15642 (back_threader_registry::thread_through_all_blocks): New.
15643 (thread_jumps::profitable_jump_thread_path): Move from here...
15644 (back_threader_profitability::profitable_path_p): ...to here.
15645 (thread_jumps::find_taken_edge): New.
15646 (thread_jumps::convert_and_register_current_path): Move...
15647 (back_threader_registry::register_path): ...to here.
15648 (thread_jumps::register_jump_thread_path_if_profitable): Move...
15649 (thread_jumps::maybe_register_path): ...to here.
15650 (thread_jumps::handle_phi): Call find_taken_edge and
15651 maybe_register_path.
15652 (thread_jumps::handle_assignment): Same.
15653 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
15654 tree argument to handle_phi and handle_assignment.
15655 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
15656 set of m_speed_p and m_max_threaded_paths.
15657 (pass_thread_jumps::execute): Remove second argument from
15658 find_jump_threads_backwards.
15659 (pass_early_thread_jumps::execute): Same.
15660
15661 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
15662
15663 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
15664 (class dom_opt_dom_walker): Initialize some class variables.
15665 (pass_dominator::execute): Pass evrp_range_analyzer and
15666 dom_jump_threader_simplifier to dom_opt_dom_walker.
15667 Adjust for some functions moving into classes.
15668 (simplify_stmt_for_jump_threading): Adjust and move to...
15669 (jump_threader_simplifier::simplify): ...here.
15670 (dom_opt_dom_walker::before_dom_children): Adjust for
15671 m_evrp_range_analyzer.
15672 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
15673 (test_for_singularity): Place in dom_opt_dom_walker class.
15674 (dom_opt_dom_walker::optimize_stmt): The argument
15675 evrp_range_analyzer is now a class field.
15676 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
15677 (thread_jumps::thread_through_all_blocks): New.
15678 (thread_jumps::convert_and_register_current_path): Use m_registry.
15679 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
15680 being in the threader class.
15681 (pass_early_thread_jumps::execute): Same.
15682 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
15683 (jump_threader::jump_threader): ...here.
15684 (threadedge_finalize_values): Move...
15685 (jump_threader::~jump_threader): ...here.
15686 (jump_threader::remove_jump_threads_including): New.
15687 (jump_threader::thread_through_all_blocks): New.
15688 (record_temporary_equivalences_from_phis): Move...
15689 (jump_threader::record_temporary_equivalences_from_phis): ...here.
15690 (record_temporary_equivalences_from_stmts_at_dest): Move...
15691 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
15692 Here...
15693 (simplify_control_stmt_condition_1): Move to jump_threader class.
15694 (simplify_control_stmt_condition): Move...
15695 (jump_threader::simplify_control_stmt_condition): ...here.
15696 (thread_around_empty_blocks): Move...
15697 (jump_threader::thread_around_empty_blocks): ...here.
15698 (thread_through_normal_block): Move...
15699 (jump_threader::thread_through_normal_block): ...here.
15700 (thread_across_edge): Move...
15701 (jump_threader::thread_across_edge): ...here.
15702 (thread_outgoing_edges): Move...
15703 (jump_threader::thread_outgoing_edges): ...here.
15704 * tree-ssa-threadedge.h: Move externally facing functings...
15705 (class jump_threader): ...here...
15706 (class jump_threader_simplifier): ...and here.
15707 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
15708 (jump_thread_path_allocator::jump_thread_path_allocator): New.
15709 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
15710 (jump_thread_path_allocator::allocate_thread_edge): New.
15711 (jump_thread_path_allocator::allocate_thread_path): New.
15712 (jump_thread_path_registry::jump_thread_path_registry): New.
15713 (jump_thread_path_registry::~jump_thread_path_registry): New.
15714 (jump_thread_path_registry::allocate_thread_edge): New.
15715 (jump_thread_path_registry::allocate_thread_path): New.
15716 (dump_jump_thread_path): Make extern.
15717 (debug (const vec<jump_thread_edge *> &path)): New.
15718 (struct removed_edges): Move to tree-ssa-threadupdate.h.
15719 (struct thread_stats_d): Remove.
15720 (remove_ctrl_stmt_and_useless_edges): Make static.
15721 (lookup_redirection_data): Move...
15722 (jump_thread_path_registry::lookup_redirection_data): ...here.
15723 (ssa_redirect_edges): Make static.
15724 (thread_block_1): Move...
15725 (jump_thread_path_registry::thread_block_1): ...here.
15726 (thread_block): Move...
15727 (jump_thread_path_registry::thread_block): ...here.
15728 (thread_through_loop_header): Move...
15729 (jump_thread_path_registry::thread_through_loop_header): ...here.
15730 (mark_threaded_blocks): Move...
15731 (jump_thread_path_registry::mark_threaded_blocks): ...here.
15732 (debug_path): Move...
15733 (jump_thread_path_registry::debug_path): ...here.
15734 (debug_all_paths): Move...
15735 (jump_thread_path_registry::dump): ..here.
15736 (rewire_first_differing_edge): Move...
15737 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
15738 (adjust_paths_after_duplication): Move...
15739 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
15740 (duplicate_thread_path): Move...
15741 (jump_thread_path_registry::duplicate_thread_path): ..here.
15742 (remove_jump_threads_including): Move...
15743 (jump_thread_path_registry::remove_jump_threads_including): ...here.
15744 (thread_through_all_blocks): Move to...
15745 (jump_thread_path_registry::thread_through_all_blocks): ...here.
15746 (delete_jump_thread_path): Remove.
15747 (register_jump_thread): Move...
15748 (jump_thread_path_registry::register_jump_thread): ...here.
15749 * tree-ssa-threadupdate.h: Move externally facing functions...
15750 (class jump_thread_path_allocator): ...here...
15751 (class jump_thread_path_registry): ...and here.
15752 (thread_through_all_blocks): Remove.
15753 (struct removed_edges): New.
15754 (register_jump_thread): Remove.
15755 (remove_jump_threads_including): Remove.
15756 (delete_jump_thread_path): Remove.
15757 (remove_ctrl_stmt_and_useless_edges): Remove.
15758 (free_dom_edge_info): New prototype.
15759 * tree-vrp.c: Remove x_vr_values hack.
15760 (class vrp_jump_threader_simplifier): New.
15761 (vrp_jump_threader_simplifier::simplify): New.
15762 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
15763 Remove m_dummy_cond.
15764 Instantiate m_simplifier and m_threader.
15765 (vrp_jump_threader::thread_through_all_blocks): New.
15766 (vrp_jump_threader::simplify_stmt): Remove.
15767 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
15768 Remove x_vr_values hack.
15769 (execute_vrp): Adjust for thread_through_all_blocks being in a
15770 class.
15771
15772 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
15773
15774 * genflags.c (gen_insn): Print failed expansion string.
15775
15776 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
15777
15778 * expr.c (alignment_for_piecewise_move): Call mode_for_size
15779 without limit to MAX_FIXED_MODE_SIZE.
15780
15781 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
15782
15783 PR middle-end/90773
15784 * builtins.c (builtin_memset_gen_str): Don't use return from
15785 simplify_gen_subreg.
15786
15787 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
15788
15789 PR target/98060
15790 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
15791 (*addsi3_carry_zext_0r): Ditto.
15792 (*sub<mode>3_carry_0): Ditto.
15793 (*subsi3_carry_zext_0r): Ditto.
15794 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
15795 New predicate.
15796 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
15797 Also consider ix86_carry_flag_unset_operator to calculate
15798 the cost of adc/sbb insn.
15799
15800 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
15801
15802 PR rtl-optimization/100225
15803 PR rtl-optimization/84878
15804 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
15805 where we have an instruction which touches (writes) any hard
15806 register from df->regular_block_artificial_uses set.
15807 Allow not-single-set instruction only right before basic block
15808 tail.
15809
15810 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
15811
15812 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
15813
15814 2021-04-30 LevyHsu <admin@levyhsu.com>
15815
15816 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
15817 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
15818 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
15819 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
15820
15821 2021-04-29 Alexandre Oliva <oliva@adacore.com>
15822
15823 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
15824
15825 2021-04-29 Alexandre Oliva <oliva@adacore.com>
15826
15827 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
15828 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
15829 * config/i386/i386.c: Adjust.
15830 * config/i386/i386.md: Adjust.
15831 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
15832 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15833 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15834 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15835 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15836 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15837 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15838 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15839 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15840 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15841 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
15842
15843 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
15844
15845 * config/i386/i386-expand.c (ix86_expand_int_compare):
15846 Swap operands of GTU and LEU comparison to emit carry flag comparison.
15847 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
15848 predicate to allow more combine opportunities with memory operands.
15849 (*sub<mode>3_carry_0): Ditto.
15850
15851 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
15852
15853 PR rtl-optimization/100303
15854 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
15855 boolean that indicates whether the use will only be used in
15856 debug instructions. Treat it in the same way that existing
15857 cross-EBB debug references would be handled if so.
15858 (function_info::make_uses_available): Likewise.
15859 * rtl-ssa/functions.h (function_info::make_uses_available): Update
15860 prototype accordingly.
15861 (function_info::make_uses_available): Likewise.
15862 * fwprop.c (try_fwprop_subst): Update call accordingly.
15863
15864 2021-04-29 Jeff Law <jlaw@tachyum.com>
15865
15866 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
15867 of RTX_CODE guard.
15868
15869 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
15870 Richard Biener <rguenther@suse.de>
15871
15872 PR target/100312
15873 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
15874 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
15875 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
15876 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
15877 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
15878 to PURE_ARGS category.
15879 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
15880 Handle PURE_ARGS category.
15881 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
15882
15883 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
15884
15885 * configure.ac: Check for the presence of sys/locking.h header and
15886 for whether _LK_LOCK is supported by _locking.
15887 * configure: Regenerate.
15888 * config.in: Likewise.
15889 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
15890 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
15891 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
15892
15893 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
15894
15895 * config/i386/predicates.md (fcmov_comparison_operator):
15896 Do not check for trivial FP comparison operator.
15897 <case GEU, case LTU>: Allow CCGZmode.
15898 <case GTU, case LEU>: Do not allow CCCmode.
15899 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
15900 (ix86_carry_flag_operator): Match only LTU and UNLT code.
15901 Do not check for trivial FP comparison operator. Allow CCGZmode.
15902
15903 2021-04-29 Tom de Vries <tdevries@suse.de>
15904
15905 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
15906 fd->loop.step by either step or orig_step.
15907
15908 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
15909
15910 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
15911 (load_got_register): Do the PIC dance here.
15912 (sparc_legitimize_tls_address): Simplify.
15913 (sparc_emit_probe_stack_range): Likewise.
15914 (sparc32_initialize_trampoline): Likewise.
15915 (sparc64_initialize_trampoline): Likewise.
15916 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
15917 (probe_stack_range<P:mode>): Likewise.
15918 (flush<P:mode>): Likewise.
15919 (tgd_hi22<P:mode>): Likewise.
15920 (tgd_lo10<P:mode>): Likewise.
15921 (tgd_add<P:mode>): Likewise.
15922 (tgd_call<P:mode>): Likewise.
15923 (tldm_hi22<P:mode>): Likewise.
15924 (tldm_lo10<P:mode>): Likewise.
15925 (tldm_add<P:mode>): Likewise.
15926 (tldm_call<P:mode>): Likewise.
15927 (tldo_hix22<P:mode>): Likewise.
15928 (tldo_lox10<P:mode>): Likewise.
15929 (tldo_add<P:mode>): Likewise.
15930 (tie_hi22<P:mode>): Likewise.
15931 (tie_lo10<P:mode>): Likewise.
15932 (tie_add<P:mode>): Likewise.
15933 (tle_hix22<P:mode>): Likewise.
15934 (tle_lox10<P:mode>): Likewise.
15935 (stack_protect_setsi): Rename to...
15936 (stack_protect_set32): ...this.
15937 (stack_protect_setdi): Rename to...
15938 (stack_protect_set64): ...this.
15939 (stack_protect_set): Adjust calls to above.
15940 (stack_protect_testsi): Rename to...
15941 (stack_protect_test32): ...this.
15942 (stack_protect_testdi): Rename to...
15943 (stack_protect_test64): ...this.
15944 (stack_protect_test): Adjust calls to above.
15945
15946 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
15947
15948 PR middle-end/90773
15949 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
15950 (builtin_strncpy_read_str): Likewise.
15951 (builtin_memset_read_str): Add an argument for the previous RTL
15952 information and generate the new RTL from the previous RTL info.
15953 (builtin_memset_gen_str): Likewise.
15954 * builtins.h (builtin_strncpy_read_str): Update the prototype.
15955 (builtin_memset_read_str): Likewise.
15956 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
15957 returns true, round up size and alignment to the widest integer
15958 mode for maximum size.
15959 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
15960 and pass it to m_constfn.
15961 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
15962 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
15963 initialize m_push. Initialize m_overlap_op_by_pieces with
15964 targetm.overlap_op_by_pieces_p ().
15965 (op_by_pieces_d::run): Pass the previous RTL information to
15966 pieces_addr::adjust and generate overlapping operations if
15967 m_overlap_op_by_pieces is true.
15968 (PUSHG_P): New.
15969 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
15970 change.
15971 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
15972 change.
15973 (can_store_by_pieces): Use by_pieces_constfn on constfun.
15974 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
15975 for op_by_pieces_d change.
15976 (clear_by_pieces_1): Add a dummy argument.
15977 (clear_by_pieces): Updated for op_by_pieces_d change.
15978 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
15979 (string_cst_read_str): Add a dummy argument.
15980 * expr.h (by_pieces_constfn): Add a dummy argument.
15981 (by_pieces_prev): New.
15982 * target.def (overlap_op_by_pieces_p): New target hook.
15983 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
15984 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
15985 * doc/tm.texi: Regenerated.
15986
15987 2021-04-29 Richard Biener <rguenther@suse.de>
15988
15989 PR tree-optimization/100253
15990 * tree-vect-stmts.c (vectorizable_load): Do not assume
15991 element alignment when DR_MISALIGNMENT is -1.
15992 (vectorizable_store): Likewise.
15993
15994 2021-04-29 Jakub Jelinek <jakub@redhat.com>
15995
15996 PR target/100302
15997 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
15998 absu_hwi instead of abs_hwi.
15999
16000 2021-04-29 Richard Biener <rguenther@suse.de>
16001
16002 PR middle-end/38474
16003 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
16004 forwarding when indirect forwarding through ESCAPED
16005 alread happens.
16006
16007 2021-04-29 Tom de Vries <tdevries@suse.de>
16008
16009 PR target/100232
16010 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
16011 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
16012 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
16013 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
16014
16015 2021-04-29 Richard Biener <rguenther@suse.de>
16016
16017 PR tree-optimization/99912
16018 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
16019 (dse_dom_walker::todo): Likewise.
16020 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
16021 caller.
16022 (dse_dom_walker::before_dom_children): Remove trivially
16023 dead SSA defs and schedule CFG cleanup if we removed all
16024 PHIs in a block.
16025 (pass_dse::execute): Get TODO as computed by the DOM walker
16026 and return it. Wipe dominator info earlier.
16027
16028 2021-04-29 Richard Biener <rguenther@suse.de>
16029
16030 PR ipa/100308
16031 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
16032 Track blocks to cleanup EH in new m_need_eh_cleanup.
16033 (ipcp_modif_dom_walker::cleanup_eh): New.
16034 (ipcp_transform_function): Release dominator info before
16035 doing EH cleanup.
16036
16037 2021-04-29 Martin Sebor <msebor@redhat.com>
16038
16039 PR middle-end/100250
16040 * attribs.c (attr_access::array_as_string): Avoid dereferencing
16041 a pointer when it's null.
16042
16043 2021-04-29 Martin Sebor <msebor@redhat.com>
16044
16045 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
16046 * ipa-free-lang-data.cc: New file.
16047 * tree.c: Move pass free_lang_data to file above.
16048 (build_array_type_1): Declare extern.
16049 * tree.h (build_array_type_1): Declare.
16050
16051 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
16052
16053 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
16054 make consistent with updated RTL pattern.
16055 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
16056 Implement using ss_truncate and us_truncate rather than
16057 unspecs.
16058 * config/aarch64/iterators.md: Remove redundant unspecs and
16059 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
16060
16061 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
16062
16063 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
16064 attributes consistent with those defined in arm_neon.h.
16065
16066 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
16067
16068 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
16069 attributes consistent with those defined in arm_neon.h.
16070
16071 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
16072
16073 * config/aarch64/aarch64-simd-builtins.def: Add
16074 float_trunc_rodd builtin generator macros.
16075 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
16076 Define.
16077 (aarch64_float_trunc_rodd_lo_v2sf): Define.
16078 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
16079 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
16080 (aarch64_float_trunc_rodd_hi_v4sf): Define.
16081 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
16082 instead of inline asm.
16083 (vcvtx_high_f32_f64): Likewise.
16084 (vcvtxd_f32_f64): Likewise.
16085 * config/aarch64/iterators.md: Add FCVTXN unspec.
16086
16087 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
16088
16089 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
16090 generator macros.
16091 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
16092 Define.
16093 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
16094 instead of inline asm.
16095 (vqtbx1_u8): Likewise.
16096 (vqtbx1_p8): Likewise.
16097 (vqtbx1q_s8): Likewise.
16098 (vqtbx1q_u8): Likewise.
16099 (vqtbx1q_p8): Likewise.
16100 (vtbx2_s8): Likewise.
16101 (vtbx2_u8): Likewise.
16102 (vtbx2_p8): Likewise.
16103
16104 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
16105
16106 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
16107 generator macros.
16108 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
16109 instead of inline asm.
16110 (vqtbl1_s8): Likewise.
16111 (vqtbl1_u8): Likewise.
16112 (vqtbl1q_p8): Likewise.
16113 (vqtbl1q_s8): Likewise.
16114 (vqtbl1q_u8): Likewise.
16115 (vtbl1_s8): Likewise.
16116 (vtbl1_u8): Likewise.
16117 (vtbl1_p8): Likewise.
16118 (vtbl2_s8): Likewise.
16119 (vtbl2_u8): Likewise.
16120 (vtbl2_p8): Likewise.
16121
16122 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
16123
16124 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
16125 ssri_n buitin generator macro.
16126 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
16127 instead of inline asm.
16128 (vsri_n_p16): Likewise.
16129 (vsri_n_p64): Likewise.
16130 (vsriq_n_p8): Likewise.
16131 (vsriq_n_p16): Likewise.
16132 (vsriq_n_p64): Likewise.
16133
16134 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
16135
16136 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
16137 iterator for polynomial ssli_n builtin generator macro.
16138 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
16139 instead of inline asm.
16140 (vsli_n_p16): Likewise.
16141 (vsliq_n_p8): Likewise.
16142 (vsliq_n_p16): Likewise.
16143 * config/aarch64/iterators.md: Define VALLP mode iterator.
16144
16145 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
16146
16147 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
16148 iterator to generate [su]adalp RTL builtins.
16149 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
16150 [su]adalp RTL pattern.
16151 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
16152 instead of inline asm.
16153 (vpadal_u32): Likewise.
16154
16155 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
16156
16157 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
16158 builtin generator macros.
16159 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
16160 Define.
16161 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
16162 instead of inline asm.
16163 (vpaddl_s16): Likewise.
16164 (vpaddl_s32): Likewise.
16165 (vpaddl_u8): Likewise.
16166 (vpaddl_u16): Likewise.
16167 (vpaddl_u32): Likewise.
16168 (vpaddlq_s8): Likewise.
16169 (vpaddlq_s16): Likewise.
16170 (vpaddlq_s32): Likewise.
16171 (vpaddlq_u8): Likewise.
16172 (vpaddlq_u16): Likewise.
16173 (vpaddlq_u32): Liwewise.
16174 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
16175 appropriate attributes.
16176
16177 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
16178
16179 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
16180 for aarch64_addp<mode> builtin macro generator.
16181 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
16182 aarch64_addp<mode> RTL pattern.
16183 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
16184 instead of inline asm.
16185 (vpaddq_s16): Likewise.
16186 (vpaddq_s32): Likewise.
16187 (vpaddq_s64): Likewise.
16188 (vpaddq_u8): Likewise.
16189 (vpaddq_u16): Likewise.
16190 (vpaddq_u32): Likewise.
16191 (vpaddq_u64): Likewise.
16192
16193 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
16194
16195 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
16196 builtin generator macros.
16197 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
16198 Define.
16199 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
16200 instead of inline asm.
16201 (vqdmulh_n_s32): Likewise.
16202 (vqdmulhq_n_s16): Likewise.
16203 (vqdmulhq_n_s32): Likewise.
16204 (vqrdmulh_n_s16): Likewise.
16205 (vqrdmulh_n_s32): Likewise.
16206 (vqrdmulhq_n_s16): Likewise.
16207 (vqrdmulhq_n_s32): Likewise.
16208
16209 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
16210
16211 * doc/install.texi (--enable-offload-defaulted): Document.
16212
16213 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
16214
16215 * config/avr/avr-dimode.md: Turn existing patterns into
16216 define_insn_and_split style patterns where the splitter
16217 adds a clobber of the condition code register. Drop "cc"
16218 attribute. Add new patterns to match output of
16219 the splitters.
16220 * config/avr/avr-fixed.md: Likewise.
16221 * config/avr/avr.c (cc_reg_rtx): New.
16222 (avr_parallel_insn_from_insns): Adjust insn count
16223 for removal of set of cc0.
16224 (avr_is_casesi_sequence): Likewise.
16225 (avr_casei_sequence_check_operands): Likewise.
16226 (avr_optimize_casesi): Likewise. Also insert
16227 new insns after jump_insn.
16228 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
16229 for removal of set of cc0.
16230 (avr_init_expanders): Initialize cc_reg_rtx.
16231 (avr_regno_reg_class): Handle REG_CC.
16232 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
16233 (avr_notice_update_cc): Remove function.
16234 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
16235 (compare_condition): Adjust for PARALLEL with
16236 REG_CC clobber.
16237 (out_shift_with_cnt): Likewise.
16238 (ashlhi3_out): Likewise.
16239 (ashrhi3_out): Likewise.
16240 (lshrhi3_out): Likewise.
16241 (avr_class_max_nregs): Return single reg for REG_CC.
16242 (avr_compare_pattern): Check for REG_CC instead
16243 of cc0_rtx.
16244 (avr_reorg_remove_redundant_compare): Likewise.
16245 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
16246 (avr_hard_regno_nregs): Return single reg for REG_CC.
16247 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
16248 (avr_md_asm_adjust): Clobber REG_CC.
16249 (TARGET_HARD_REGNO_NREGS): Define.
16250 (TARGET_CLASS_MAX_NREGS): Define.
16251 (TARGET_MD_ASM_ADJUST): Define.
16252 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
16253 for REG_CC.
16254 (enum reg_class): Add CC_REG class.
16255 (NOTICE_UPDATE_CC): Remove.
16256 (CC_OVERFLOW_UNUSABLE): Remove.
16257 (CC_NO_CARRY): Remove.
16258 * config/avr/avr.md: Turn existing patterns into
16259 define_insn_and_split style patterns where the splitter
16260 adds a clobber of the condition code register. Drop "cc"
16261 attribute. Add new patterns to match output of
16262 the splitters.
16263 (sez): Remove unused pattern.
16264
16265 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
16266
16267 PR target/100311
16268 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
16269 used in HImode.
16270
16271 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
16272
16273 PR target/100305
16274 * config/aarch64/constraints.md (Utq): Require the address to
16275 be valid for both the element mode and for V2DImode.
16276
16277 2021-04-28 Jakub Jelinek <jakub@redhat.com>
16278 Tobias Burnus <tobias@codesourcery.com>
16279
16280 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
16281 * gcc.c (process_command): New variable.
16282 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
16283 set it if -foffload is defaulted.
16284 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
16285 (compile_offload_image): If OFFLOAD_DEFAULTED and
16286 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
16287 if corresponding mkoffload can't be found.
16288 (compile_images_for_offload_targets): Likewise. Free and clear
16289 offload_names if no valid offload is found.
16290 * config.in: Regenerate.
16291 * configure: Regenerate.
16292
16293 2021-04-28 Richard Biener <rguenther@suse.de>
16294
16295 PR tree-optimization/100292
16296 * tree-vect-generic.c (expand_vector_condition): Do not fold
16297 the comparisons.
16298
16299 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
16300
16301 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
16302 * config/rs6000/aix64.opt (m64): New.
16303 (m32): New.
16304
16305 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
16306
16307 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
16308 (index_term_p): Handle ASHIFT too.
16309
16310 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
16311
16312 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
16313 (sync_lock_test_and_set<mode>): Adjust accordingly.
16314 (sync_lock_release<mode>): Likewise.
16315
16316 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
16317
16318 * config/vax/vax-protos.h (adjacent_operands_p): Remove
16319 prototype.
16320 * config/vax/vax.c (adjacent_operands_p): Remove.
16321
16322 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
16323
16324 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
16325 through to the non-conditional execution case if getting the
16326 condition for conditional execution has failed.
16327
16328 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
16329
16330 PR middle-end/100284
16331 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
16332 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
16333 than asserting on it.
16334
16335 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
16336
16337 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
16338 with TARGET_AIX_OS.
16339
16340 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
16341
16342 PR target/94177
16343 * calls.c (precompute_register_parameters): Additionally test
16344 targetm.precompute_tls_p to pre-compute argument.
16345 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
16346 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
16347 * target.def (precompute_tls_p): New.
16348 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
16349 * doc/tm.texi: Regenerated.
16350
16351 2021-04-27 Jakub Jelinek <jakub@redhat.com>
16352
16353 PR target/100200
16354 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
16355 back to HOST_WIDE_INT.
16356
16357 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16358
16359 PR target/100106
16360 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
16361 memory alignment for the outer mode.
16362
16363 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
16364
16365 PR middle-end/90773
16366 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
16367 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
16368
16369 2021-04-27 Alex Coplan <alex.coplan@arm.com>
16370
16371 PR target/99977
16372 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
16373 with negative immediates: ensure we expand cbranchsi4_scratch
16374 correctly and ensure we satisfy its constraints.
16375 * config/arm/sync.md
16376 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
16377 attempt to tie two output operands together with constraints;
16378 collapse two alternatives.
16379 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
16380 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
16381
16382 2021-04-27 Jakub Jelinek <jakub@redhat.com>
16383
16384 PR target/100200
16385 * config/aarch64/predicates.md (aarch64_sub_immediate,
16386 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
16387 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
16388 * config/aarch64/aarch64.c (aarch64_print_operand,
16389 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
16390
16391 2021-04-27 Jakub Jelinek <jakub@redhat.com>
16392
16393 PR tree-optimization/100239
16394 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
16395 permutations with all indices from the first zero element as vec_shl.
16396
16397 2021-04-27 Jakub Jelinek <jakub@redhat.com>
16398
16399 PR rtl-optimization/100254
16400 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
16401 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
16402
16403 2021-04-27 Richard Biener <rguenther@suse.de>
16404
16405 PR tree-optimization/99912
16406 * passes.def: Add comment about new TODO_remove_unused_locals.
16407 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
16408 at start.
16409
16410 2021-04-27 Richard Biener <rguenther@suse.de>
16411
16412 PR tree-optimization/99912
16413 * passes.def (pass_all_optimizations): Add pass_dse before
16414 the first pass_dce, move the first pass_dse before the
16415 pass_dce following pass_pre.
16416
16417 2021-04-27 Jakub Jelinek <jakub@redhat.com>
16418
16419 PR tree-optimization/95527
16420 * generic-match-head.c: Include tm.h.
16421 * gimple-match-head.c: Include tm.h.
16422 * match.pd (CLZ == INTEGER_CST): Don't use
16423 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
16424 if clz == CFN_CLZ. Add missing val declaration.
16425 (CTZ cmp CST): New simplifications.
16426
16427 2021-04-27 Jakub Jelinek <jakub@redhat.com>
16428
16429 PR tree-optimization/96696
16430 * expr.c (expand_expr_divmod): New function.
16431 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
16432 divisions. Formatting fixes.
16433 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
16434 cheaper.
16435
16436 2021-04-27 Martin Jambor <mjambor@suse.cz>
16437
16438 PR ipa/99951
16439 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
16440 If removing a call statement LHS SSA name, release it.
16441
16442 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
16443
16444 PR target/100236
16445 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
16446 is valid before including it in the mask.
16447
16448 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
16449
16450 PR target/100270
16451 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
16452 SVE attributes.
16453
16454 2021-04-27 Richard Biener <rguenther@suse.de>
16455
16456 PR tree-optimization/100051
16457 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
16458 disambiguator based on access size vs. decl size.
16459
16460 2021-04-27 Richard Biener <rguenther@suse.de>
16461
16462 PR tree-optimization/100278
16463 * tree-ssa-pre.c (compute_avail): Give up when we cannot
16464 adjust TBAA beacuse of mismatching bases.
16465
16466 2021-04-27 Jakub Jelinek <jakub@redhat.com>
16467
16468 PR target/99405
16469 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
16470 For any_rotate define_insn_split and following splitters, use
16471 SWI iterator instead of SWI48.
16472
16473 2021-04-27 Richard Biener <rguenther@suse.de>
16474
16475 PR tree-optimization/99776
16476 * match.pd (bit_field_ref (ctor)): Relax element extract
16477 type compatibility checks.
16478
16479 2021-04-27 Cui,Lili <lili.cui@intel.com>
16480
16481 * common/config/i386/i386-common.c (processor_names):
16482 Sync processor_names with processor_type.
16483 * config/i386/i386-options.c (processor_cost_table):
16484 Sync processor_cost_table with processor_type.
16485
16486 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
16487
16488 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
16489 (irange::set): Call irange_set_1bit_anti_range for handling all
16490 1-bit ranges. Fall through on ~[MIN,MAX].
16491
16492 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
16493
16494 * value-range.cc (irange::legacy_num_pairs): Remove.
16495 (irange::invert): Change gcc_assert to gcc_checking_assert.
16496 * value-range.h (irange::num_pairs): Adjust for a cached
16497 num_pairs(). Also, rename all gcc_assert's to
16498 gcc_checking_assert's.
16499
16500 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
16501
16502 * value-range.cc (irange::operator=): Set m_kind.
16503 (irange::copy_to_legacy): Handle varying and undefined sources
16504 as a legacy copy since they can be easily copied.
16505 (irange::irange_set): Set m_kind.
16506 (irange::irange_set_anti_range): Same.
16507 (irange::set): Rename normalize_min_max to normalize_kind.
16508 (irange::verify_range): Adjust for multi-ranges having the
16509 m_kind field set.
16510 (irange::irange_union): Set m_kind.
16511 (irange::irange_intersect): Same.
16512 (irange::invert): Same.
16513 * value-range.h (irange::kind): Always return m_kind.
16514 (irange::varying_p): Rename to...
16515 (irange::varying_comptaible_p): ...this.
16516 (irange::undefined_p): Only look at m_kind.
16517 (irange::irange): Always set VR_UNDEFINED if applicable.
16518 (irange::set_undefined): Always set VR_UNDEFINED.
16519 (irange::set_varying): Always set m_kind to VR_VARYING.
16520 (irange::normalize_min_max): Rename to...
16521 (irange::normalize_kind): ...this.
16522
16523 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
16524
16525 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
16526 Adjust for constant_p including varying_p.
16527 * tree-vrp.c (vrp_prop::finalize): Same.
16528 (determine_value_range): Same.
16529 * vr-values.c (vr_values::range_of_expr): Same.
16530 * value-range.cc (irange::symbolic_p): Do not check varying_p.
16531 (irange::constant_p): Same.
16532
16533 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
16534
16535 * value-range.cc (irange::legacy_lower_bound): Replace
16536 !undefined_p check with num_ranges > 0.
16537 (irange::legacy_upper_bound): Same.
16538 * value-range.h (irange::type): Same.
16539 (irange::lower_bound): Same.
16540 (irange::upper_bound): Same.
16541
16542 2021-04-26 Richard Biener <rguenther@suse.de>
16543
16544 PR tree-optimization/99956
16545 * gimple-loop-interchange.cc (compute_access_stride):
16546 Try instantiating the access in a shallower loop nest
16547 if instantiating failed.
16548 (compute_access_strides): Pass adjustable loop_nest
16549 to compute_access_stride.
16550
16551 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
16552
16553 * doc/sourcebuild.texi (arm_cmse_hw): Document.
16554
16555 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16556
16557 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
16558
16559 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
16560 Nathan Sidwell <nathan@codesourcery.com>
16561 Tom de Vries <vries@codesourcery.com>
16562 Julian Brown <julian@codesourcery.com>
16563 Kwok Cheung Yeung <kcy@codesourcery.com>
16564
16565 * omp-offload.c (oacc_validate_dims): Implement
16566 '-Wopenacc-parallelism'.
16567 * doc/invoke.texi (-Wopenacc-parallelism): Document.
16568
16569 2021-04-26 Richard Biener <rguenther@suse.de>
16570
16571 * tree-cfg.h (gimplify_build1): Remove.
16572 (gimplify_build2): Likewise.
16573 (gimplify_build3): Likewise.
16574 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
16575 (gimplify_build2): Likewise.
16576 (gimplify_build3): Likewise.
16577 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
16578 Modernize.
16579 (gimplify_build2): Likewise.
16580 (gimplify_build3): Likewise.
16581 (tree_vec_extract): Use resimplify with following SSA edges.
16582 (expand_vector_parallel): Avoid passing NULL size/bitpos
16583 to tree_vec_extract.
16584 * expr.c (store_constructor): Deal with zero-element CTORs.
16585 * match.pd (bit_field_ref <vector CTOR>): Make sure to
16586 produce vector constants when possible.
16587
16588 2021-04-26 Richard Biener <rguenther@suse.de>
16589
16590 * tree-complex.c: Include gimple-fold.h.
16591 (expand_complex_addition): Use gimple_build.
16592 (expand_complex_multiplication_components): Likewise.
16593 (expand_complex_multiplication): Likewise.
16594 (expand_complex_div_straight): Likewise.
16595 (expand_complex_div_wide): Likewise.
16596 (expand_complex_division): Likewise.
16597 (expand_complex_conjugate): Likewise.
16598 (expand_complex_comparison): Likewise.
16599
16600 2021-04-26 Richard Biener <rguenther@suse.de>
16601
16602 * tree-ssa-phiopt.c (two_value_replacement): Remove use
16603 of legacy gimplify_buildN API.
16604
16605 2021-04-26 Richard Biener <rguenther@suse.de>
16606
16607 PR tree-optimization/99473
16608 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
16609 stores.
16610
16611 2021-04-26 Richard Biener <rguenther@suse.de>
16612
16613 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
16614 Use replace_call_with_value.
16615
16616 2021-04-26 Richard Biener <rguenther@suse.de>
16617
16618 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
16619 (update_gimple_call): Likewise.
16620 (update_call_from_tree): Likewise.
16621 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
16622 (valid_gimple_call_p): Likewise.
16623 (move_ssa_defining_stmt_for_defs): Likewise.
16624 (finish_update_gimple_call): Likewise.
16625 (update_gimple_call): Likewise.
16626 (update_call_from_tree): Likewise.
16627 (propagate_tree_value_into_stmt): Use replace_call_with_value.
16628 * gimple-fold.h (update_gimple_call): Declare.
16629 * gimple-fold.c (valid_gimple_rhs_p): Move here from
16630 tree-ssa-propagate.c.
16631 (update_gimple_call): Likewise.
16632 (valid_gimple_call_p): Likewise.
16633 (finish_update_gimple_call): Likewise, and simplify.
16634 (gimplify_and_update_call_from_tree): Implement
16635 update_call_from_tree functionality, avoid excessive
16636 push/pop_gimplify_context.
16637 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
16638 (gimple_fold_call): Likewise.
16639 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
16640 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
16641 (pass_fold_builtins::execute): Likewise.
16642 (optimize_stack_restore): Use replace_call_with_value.
16643 * tree-cfg.c (fold_loop_internal_call): Likewise.
16644 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
16645 only gimplify_and_update_call_from_tree.
16646 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
16647 (handle_builtin_strchr): Likewise.
16648 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
16649
16650 2021-04-26 Jakub Jelinek <jakub@redhat.com>
16651
16652 PR debug/100255
16653 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
16654 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
16655 register keywords.
16656
16657 2021-04-25 liuhongt <hongtao.liu@intel.com>
16658
16659 PR target/98911
16660 * config/i386/i386-builtin.def (BDESC): Change the icode of
16661 the following builtins to CODE_FOR_nothing.
16662 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
16663 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
16664 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
16665 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
16666 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
16667 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
16668 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
16669 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
16670 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
16671 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
16672 (sse2_eq<mode>3): Ditto.
16673 (sse4_1_eqv2di3): Ditto.
16674 (sse2_gt<mode>3): Rename to ..
16675 (*sse2_gt<mode>3): .. this.
16676
16677 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
16678
16679 Revert:
16680 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
16681
16682 PR target/100152
16683 * config/darwin.c (darwin_binds_local_p): Assume that any
16684 public symbol might be interposed for PIC code. Update function
16685 header comment to reflect current Darwin capability.
16686
16687 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
16688
16689 PR target/100152
16690 * config/darwin.c (darwin_binds_local_p): Assume that any
16691 public symbol might be interposed for PIC code. Update function
16692 header comment to reflect current Darwin capability.
16693
16694 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
16695
16696 * doc/sourcebuild.texi: Document no-opts and any-opts target
16697 selectors.
16698
16699 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
16700
16701 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
16702
16703 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
16704
16705 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
16706
16707 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
16708
16709 PR target/100041
16710 * config/i386/i386-options.c (ix86_option_override_internal):
16711 Error out when -m96bit-long-double is used with 64bit targets.
16712 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
16713
16714 2021-04-23 Martin Liska <mliska@suse.cz>
16715
16716 * lto-wrapper.c: Remove FIXME about usage of
16717 hardware_concurrency. The function is not on par with
16718 what we have now.
16719
16720 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
16721
16722 PR target/100182
16723 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
16724 Copy operand 3 to operand 4. Use sse_reg_operand
16725 as operand 3 predicate.
16726 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
16727 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
16728 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
16729 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
16730 Copy operand 1 to operand 0.
16731 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
16732 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
16733 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
16734
16735 2021-04-23 Alex Coplan <alex.coplan@arm.com>
16736
16737 PR rtl-optimization/100230
16738 * early-remat.c (early_remat::sort_candidates): Use delete[]
16739 instead of delete for array allocated with new[].
16740
16741 2021-04-23 Richard Biener <rguenther@suse.de>
16742
16743 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
16744 (capture_info::capture_info): Likewise.
16745 (capture_info::walk_match): Likewise.
16746 (expr::gen_transform): Likewise.
16747 (dt_simplify::gen_1): Likewise.
16748 * gimple-match-head.c (maybe_resimplify_conditional_op):
16749 Remove VEC_COND_EXPR special-casing.
16750 (gimple_simplify): Likewise.
16751 * gimple.c (gimple_could_trap_p_1): Adjust.
16752 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
16753 to participate in PRE.
16754
16755 2021-04-23 Richard Biener <rguenther@suse.de>
16756
16757 * cfganal.c (connect_infinite_loops_to_exit): First call
16758 add_noreturn_fake_exit_edges.
16759 * ipa-sra.c (process_scan_results): Do not call the now redundant
16760 add_noreturn_fake_exit_edges.
16761 * predict.c (tree_estimate_probability): Likewise.
16762 (rebuild_frequencies): Likewise.
16763 * store-motion.c (one_store_motion_pass): Likewise.
16764
16765 2021-04-23 Richard Biener <rguenther@suse.de>
16766
16767 PR tree-optimization/100222
16768 * predict.c (pass_profile::execute): Remove redundant call to
16769 mark_irreducible_loops.
16770 (report_predictor_hitrates): Likewise.
16771
16772 2021-04-23 Richard Biener <rguenther@suse.de>
16773
16774 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
16775 valid_gimple_rhs_p by instead gimplifying to one.
16776
16777 2021-04-23 Richard Biener <rguenther@suse.de>
16778
16779 PR tree-optimization/99971
16780 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
16781 Always use TBAA for loads.
16782
16783 2021-04-23 liuhongt <hongtao.liu@intel.com>
16784
16785 PR target/100093
16786 * config/i386/i386-options.c (ix86_option_override_internal):
16787 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
16788 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
16789 by target attribute.
16790
16791 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
16792
16793 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
16794 DWARF2_DEBUG.
16795 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
16796
16797 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
16798
16799 * config.gcc (powerpc-ibm-aix6.*): Remove.
16800 * config/rs6000/aix61.h: Delete.
16801
16802 2021-04-22 Martin Liska <mliska@suse.cz>
16803
16804 PR testsuite/100159
16805 PR testsuite/100192
16806 * builtins.c (expand_builtin): Fix typos and missing comments.
16807 * dwarf2out.c (gen_subprogram_die): Likewise.
16808 (gen_struct_or_union_type_die): Likewise.
16809
16810 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
16811
16812 PR target/100119
16813 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
16814 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
16815
16816 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
16817
16818 * config/i386/darwin.h (TARGET_64BIT): Remove definition
16819 based on TARGET_ISA_64BIT.
16820 (TARGET_64BIT_P): Remove definition based on
16821 TARGET_ISA_64BIT_P().
16822
16823 2021-04-21 Martin Liska <mliska@suse.cz>
16824
16825 Revert:
16826 2021-04-21 Martin Liska <mliska@suse.cz>
16827
16828 * lto-wrapper.c (cpuset_popcount): Remove.
16829 (init_num_threads): Remove and use hardware_concurrency.
16830
16831 2021-04-21 Martin Liska <mliska@suse.cz>
16832
16833 PR jit/98615
16834 * main.c (main): Call toplev::finalize in CHECKING_P mode.
16835 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
16836 when incremental LTO linking happens.
16837
16838 2021-04-21 Martin Liska <mliska@suse.cz>
16839
16840 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
16841 makeserver cannot be detected, then use -flto=N fallback.
16842
16843 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
16844
16845 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
16846 default to yes for aarch64-linux-gnu.
16847 * configure: Regenerate.
16848
16849 2021-04-21 Martin Liska <mliska@suse.cz>
16850
16851 * lto-wrapper.c (cpuset_popcount): Remove.
16852 (init_num_threads): Remove and use hardware_concurrency.
16853
16854 2021-04-21 Martin Liska <mliska@suse.cz>
16855
16856 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
16857 which remains to be '(... || 0)' and clang complains about it.
16858 * dwarf2out.c (AT_vms_delta): Declare conditionally.
16859 (add_AT_vms_delta): Likewise.
16860 * tree.c (fld_simplified_type): Use rather more common pattern
16861 for disabling of something (#if 0).
16862 (get_tree_code_name): Likewise.
16863 (verify_type_variant): Likewise.
16864
16865 2021-04-21 Martin Liska <mliska@suse.cz>
16866
16867 * config/i386/i386-expand.c (decide_alignment): Use newly named
16868 macro TARGET_CPU_P.
16869 * config/i386/i386.c (ix86_decompose_address): Likewise.
16870 (ix86_address_cost): Likewise.
16871 (ix86_lea_outperforms): Likewise.
16872 (ix86_avoid_lea_for_addr): Likewise.
16873 (ix86_add_stmt_cost): Likewise.
16874 * config/i386/i386.h (TARGET_*): Remove.
16875 (TARGET_CPU_P): New macro.
16876 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
16877 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
16878 (swap_top_of_ready_list): Likewise.
16879 (ix86_atom_sched_reorder): Likewise.
16880 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
16881 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
16882
16883 2021-04-21 Martin Liska <mliska@suse.cz>
16884
16885 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
16886 Define.
16887 (SET_TARGET_NO_SAHF): Likewise.
16888 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
16889 (SET_TARGET_PREFETCH_SSE): Likewise.
16890 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
16891 (SET_TARGET_NO_TUNE): Likewise.
16892 (TARGET_EXPLICIT_NO_80387_P): Likewise.
16893 (SET_TARGET_NO_80387): Likewise.
16894 (DEF_PTA): New.
16895 * config/i386/i386.h (TARGET_*): Remove.
16896 * opth-gen.awk: Generate new used macros.
16897
16898 2021-04-21 Martin Liska <mliska@suse.cz>
16899
16900 * config/i386/i386.h (PTA_*): Remove.
16901 (enum pta_flag): New.
16902 (DEF_PTA): Generate PTA_* values from i386-isa.def.
16903 * config/i386/i386-isa.def: New file.
16904
16905 2021-04-21 Alex Coplan <alex.coplan@arm.com>
16906
16907 PR target/99988
16908 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
16909 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
16910 jump table targets.
16911
16912 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
16913
16914 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
16915 x86_64-*-* targets.
16916 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
16917 New.
16918 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
16919 (ix86_handle_option): Handle -mmwait.
16920 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
16921 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
16922 __builtin_ia32_monitor and __builtin_ia32_mwait.
16923 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
16924 (ix86_valid_target_attribute_inner_p): Likewise.
16925 (ix86_option_override_internal): Enable mwait/monitor
16926 instructions for -msse3.
16927 * config/i386/i386.h (TARGET_MWAIT): New.
16928 (TARGET_MWAIT_P): Likewise.
16929 * config/i386/i386.opt: Add -mmwait.
16930 * config/i386/mwaitintrin.h: New file.
16931 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
16932 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
16933 TARGET_MWAIT.
16934 (@sse3_monitor_<mode>): Likewise.
16935 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
16936 * doc/extend.texi: Document mwait target attribute.
16937 * doc/invoke.texi: Document -mmwait.
16938
16939 2021-04-21 Martin Liska <mliska@suse.cz>
16940
16941 * config/i386/i386-options.c (DEF_ENUM): Remove it.
16942 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
16943 * config/i386/stringop.def (DEF_ENUM): Likewise.
16944
16945 2021-04-21 Martin Liska <mliska@suse.cz>
16946
16947 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
16948 of print_generic_expr.
16949
16950 2021-04-21 Jakub Jelinek <jakub@redhat.com>
16951
16952 PR rtl-optimization/100148
16953 * cprop.c (constprop_register): Use next_nondebug_insn instead of
16954 NEXT_INSN.
16955
16956 2021-04-21 Martin Liska <mliska@suse.cz>
16957
16958 PR ipa/98815
16959 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
16960 free_dominance_info calls.
16961
16962 2021-04-21 Richard Biener <rguenther@suse.de>
16963
16964 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
16965 parameter (and assume it to be false).
16966 (fold_gimple_assign): Adjust, remove all callers of
16967 maybe_fold_reference calling it with is_lhs true.
16968 (gimple_fold_call): Likewise.
16969 (fold_stmt_1): Likewise.
16970
16971 2021-04-21 Richard Biener <rguenther@suse.de>
16972
16973 * fold-const.c (pedantic_non_lvalue_loc): Remove.
16974 (fold_binary_loc): Adjust.
16975 (fold_ternary_loc): Likewise.
16976
16977 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
16978
16979 PR middle-end/100130
16980 * varasm.c (get_block_for_decl): Make sure that any use of the
16981 retain attribute matches the section's retain flag.
16982 (switch_to_section): Check for retain mismatches even when
16983 changing sections, but do not warn if the given decl is the
16984 section's named.decl.
16985 (output_object_block): Pass the first decl in the block (if any)
16986 to switch_to_section.
16987
16988 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
16989
16990 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16991 __CRC32__ for -mcrc32.
16992 * config/i386/i386-options.c (ix86_option_override_internal):
16993 Enable crc32 instruction for -msse4.2.
16994 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
16995 check.
16996 (sse4_2_crc32di): Likewise.
16997 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
16998 intrinsics.
16999
17000 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
17001
17002 PR target/100108
17003 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
17004 OPTION_MASK_ISEL.
17005
17006 2021-04-20 Martin Liska <mliska@suse.cz>
17007
17008 * doc/invoke.texi: Fix typo.
17009 * params.opt: Likewise.
17010
17011 2021-04-20 Martin Liska <mliska@suse.cz>
17012
17013 * doc/invoke.texi: Document new param.
17014
17015 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
17016
17017 PR tree-optimization/100081
17018 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
17019 rather than gori_compute_cache.
17020 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
17021 (range_def_chain::m_logical_depth): New member.
17022 (range_def_chain::range_def_chain): Initialize m_logical_depth.
17023 (range_def_chain::get_def_chain): Don't build defchains through more
17024 than LOGICAL_LIMIT logical expressions.
17025 * params.opt (param_ranger_logical_depth): New.
17026
17027 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
17028
17029 PR target/100067
17030 * config/arm/arm.c (arm_configure_build_target): Do not strip
17031 extended FPU/SIMD feature bits from the target ISA when -mfpu
17032 is specified (partial revert of r11-8168).
17033
17034 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
17035
17036 * params.opt (-param=openacc-kernels=): Add.
17037 * omp-oacc-kernels-decompose.cc
17038 (pass_omp_oacc_kernels_decompose::gate): Use it.
17039 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
17040 (--param): ... here, 'openacc-kernels'.
17041
17042 2021-04-19 Martin Liska <mliska@suse.cz>
17043
17044 PR c/100143
17045 * gengtype.c (finish_root_table): Align function arguments
17046 in between declaration and definition.
17047
17048 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
17049
17050 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
17051 frames larger than the SEH maximum frame size.
17052
17053 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
17054
17055 PR rtl-optimization/99927
17056 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
17057 is dead, just drop it.
17058
17059 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
17060
17061 PR d/99914
17062 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
17063 * doc/tm.texi: Regenerate.
17064 * doc/tm.texi.in (D language and ABI): Add @hook for
17065 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
17066
17067 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
17068
17069 * config/darwin-d.c (darwin_d_handle_target_object_format): New
17070 function.
17071 (darwin_d_register_target_info): New function.
17072 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
17073 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
17074 function.
17075 (dragonfly_d_register_target_info): New function.
17076 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
17077 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
17078 function.
17079 (freebsd_d_register_target_info): New function.
17080 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
17081 * config/glibc-d.c (glibc_d_handle_target_object_format): New
17082 function.
17083 (glibc_d_register_target_info): New function.
17084 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
17085 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
17086 function.
17087 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
17088 as handler for objectFormat key.
17089 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
17090 function.
17091 (winnt_d_register_target_info): New function.
17092 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
17093 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
17094 function.
17095 (netbsd_d_register_target_info): New function.
17096 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
17097 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
17098 function.
17099 (openbsd_d_register_target_info): New function.
17100 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
17101 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
17102 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
17103 handler for objectFormat key.
17104 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
17105 function.
17106 (rs6000_d_register_target_info): Add
17107 rs6000_d_handle_target_object_format as handler for objectFormat key.
17108 * config/sol2-d.c (solaris_d_handle_target_object_format): New
17109 function.
17110 (solaris_d_register_target_info): New function.
17111 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
17112
17113 2021-04-16 Jakub Jelinek <jakub@redhat.com>
17114
17115 PR target/91710
17116 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
17117 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
17118 alignment.
17119 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
17120 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
17121 the old and new alignment after applying MIN/MAX to it is different.
17122
17123 2021-04-16 Tamar Christina <tamar.christina@arm.com>
17124
17125 PR target/100048
17126 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
17127 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
17128 TRN optab.
17129 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
17130
17131 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
17132
17133 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
17134 this section and its subsections.
17135
17136 2021-04-16 Jakub Jelinek <jakub@redhat.com>
17137
17138 PR target/100075
17139 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
17140 define_insn patterns.
17141
17142 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
17143
17144 PR rtl-optimization/98689
17145 * reg-notes.def (UNTYPED_CALL): New note.
17146 * combine.c (distribute_notes): Handle it.
17147 * emit-rtl.c (try_split): Likewise.
17148 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
17149 that calls with the note implicitly set all return value registers.
17150 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
17151 to untyped_calls.
17152
17153 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
17154
17155 PR rtl-optimization/99596
17156 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
17157 register accesses for const calls. Assume that pure functions
17158 can only read from global registers. Ignore cases in which
17159 the stack pointer has been marked global.
17160
17161 2021-04-16 Jakub Jelinek <jakub@redhat.com>
17162
17163 PR target/99767
17164 * tree-vect-loop.c (vect_transform_loop): Don't remove just
17165 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
17166 them by their last argument.
17167
17168 2021-04-15 Martin Liska <mliska@suse.cz>
17169
17170 * doc/invoke.texi: Other params don't use it, remove it.
17171
17172 2021-04-15 Richard Biener <rguenther@suse.de>
17173
17174 * gimple-builder.h: Add deprecation note.
17175
17176 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
17177
17178 PR c++/98852
17179 * attribs.h (restrict_type_identity_attributes_to): Declare.
17180 * attribs.c (restrict_type_identity_attributes_to): New function.
17181
17182 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
17183
17184 PR c/98852
17185 * attribs.h (affects_type_identity_attributes): Declare.
17186 * attribs.c (remove_attributes_matching): New function.
17187 (affects_type_identity_attributes): Likewise.
17188
17189 2021-04-15 Jakub Jelinek <jakub@redhat.com>
17190
17191 PR target/100056
17192 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
17193 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
17194 ZERO_EXTEND, SIGN_EXTEND or AND.
17195
17196 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
17197
17198 PR rtl-optimization/99929
17199 * rtl.h (same_vector_encodings_p): New function.
17200 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
17201 * cselib.c (rtx_equal_for_cselib_1): Likewise.
17202 * jump.c (rtx_renumbered_equal_p): Likewise.
17203 * lra-constraints.c (operands_match_p): Likewise.
17204 * reload.c (operands_match_p): Likewise.
17205 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
17206
17207 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
17208
17209 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
17210 more information about variable-length CONST_VECTORs.
17211
17212 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
17213
17214 PR rtl-optimization/100066
17215 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
17216 ordered modes when choosing splitting mode for hard reg.
17217
17218 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
17219
17220 PR target/99246
17221 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
17222 New function.
17223 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
17224
17225 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
17226
17227 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
17228 for mask operand types.
17229 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
17230 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
17231 operand.
17232 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
17233 immediate operand.
17234 * config/s390/s390.c (s390_const_operand_ok): Check the new
17235 operand types and generate a list of valid values.
17236
17237 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
17238
17239 * doc/tm.texi: Regenerate.
17240 * doc/tm.texi.in (D language and ABI): Add @hook for
17241 TARGET_D_REGISTER_OS_TARGET_INFO.
17242
17243 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
17244
17245 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
17246 function.
17247 (aarch64_d_register_target_info): New function.
17248 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
17249 Declare.
17250 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
17251 Define.
17252 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
17253 (arm_d_register_target_info): New function.
17254 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
17255 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
17256 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
17257 (ix86_d_register_target_info): New function.
17258 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
17259 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
17260 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
17261 (mips_d_register_target_info): New function.
17262 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
17263 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
17264 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
17265 (pa_d_register_target_info): New function.
17266 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
17267 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
17268 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
17269 function.
17270 (riscv_d_register_target_info): New function.
17271 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
17272 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
17273 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
17274 function.
17275 (rs6000_d_register_target_info): New function.
17276 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
17277 Declare.
17278 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
17279 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
17280 (s390_d_register_target_info): New function.
17281 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
17282 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
17283 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
17284 function.
17285 (sparc_d_register_target_info): New function.
17286 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
17287 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
17288 * doc/tm.texi: Regenerate.
17289 * doc/tm.texi.in (D language and ABI): Add @hook for
17290 TARGET_D_REGISTER_CPU_TARGET_INFO.
17291
17292 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
17293
17294 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
17295 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
17296 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
17297 * doc/tm.texi: Regenerate.
17298 * doc/tm.texi.in (D language and ABI): Add @hook for
17299 TARGET_D_HAS_STDCALL_CONVENTION.
17300
17301 2021-04-14 Richard Biener <rguenther@suse.de>
17302
17303 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
17304 VEC_COND_EXPRs have a gimple_val condition.
17305 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
17306 can no longer have a GENERIC condition.
17307
17308 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
17309
17310 PR target/100067
17311 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
17312 from the isa_delta when -mfpu has been used.
17313 (arm_options_perform_arch_sanity_checks): It's the architecture that
17314 lacks an FPU not the processor.
17315
17316 2021-04-13 Richard Biener <rguenther@suse.de>
17317
17318 PR tree-optimization/100053
17319 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
17320 not use optimistic dominance queries for backedges to validate
17321 predicated values.
17322 (dominated_by_p_w_unex): Add parameter to ignore executable
17323 state on backedges.
17324 (rpo_elim::eliminate_avail): Adjust.
17325
17326 2021-04-13 Jakub Jelinek <jakub@redhat.com>
17327
17328 PR target/100028
17329 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
17330 *aarch64_bfxilsi_extrdi): New define_insn patterns.
17331
17332 2021-04-13 Jakub Jelinek <jakub@redhat.com>
17333
17334 PR target/99648
17335 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
17336 outermode, return NULL if the result doesn't encode back to the
17337 original byte sequence.
17338 (simplify_gen_subreg): Don't create SUBREGs from constants to
17339 MODE_COMPOSITE_P outermode.
17340
17341 2021-04-12 Jakub Jelinek <jakub@redhat.com>
17342
17343 PR rtl-optimization/99905
17344 * combine.c (expand_compound_operation): If pos + len > modewidth,
17345 perform the right shift by pos in inner_mode and then convert to mode,
17346 instead of trying to simplify a shift of rtx with inner_mode by pos
17347 as if it was a shift in mode.
17348
17349 2021-04-12 Jakub Jelinek <jakub@redhat.com>
17350
17351 PR debug/99830
17352 * combine.c (simplify_and_const_int_1): Don't optimize varop
17353 away if it has side-effects.
17354
17355 2021-04-12 Martin Liska <mliska@suse.cz>
17356
17357 * doc/extend.texi: Escape @smallexample content.
17358
17359 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
17360
17361 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
17362 alternative in order to load a DFP zero.
17363
17364 2021-04-12 Martin Liska <mliska@suse.cz>
17365
17366 * doc/extend.texi: Be more precise in documentation
17367 of symver attribute.
17368
17369 2021-04-12 Martin Liska <mliska@suse.cz>
17370
17371 PR sanitizer/99877
17372 * gimplify.c (gimplify_expr): Right now, we unpoison all
17373 variables before a goto <dest>. We should not do it if we are
17374 in a omp context.
17375
17376 2021-04-12 Cui,Lili <lili.cui@intel.com>
17377
17378 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
17379 rocketlake.
17380 * common/config/i386/i386-common.c (processor_names): Add
17381 rocketlake.
17382 (processor_alias_table): Add rocketlake.
17383 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
17384 INTEL_COREI7_ROCKETLAKE.
17385 * config.gcc: Add -march=rocketlake.
17386 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17387 rocketlake.
17388 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
17389 (processor_cost_table): Add rocketlake cost.
17390 * config/i386/i386.h (ix86_size_cost) : Define
17391 TARGET_ROCKETLAKE.
17392 (processor_type) : Add PROCESSOR_ROCKETLAKE.
17393 (PTA_ROCKETLAKE): Ditto.
17394 * doc/extend.texi: Add rocketlake.
17395 * doc/invoke.texi: Add rocketlake.
17396
17397 2021-04-12 Cui,Lili <lili.cui@intel.com>
17398
17399 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
17400 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
17401 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
17402 * doc/invoke.texi: Change alderlake ISA list.
17403
17404 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
17405
17406 PR middle-end/98088
17407 * omp-expand.c (expand_oacc_collapse_init): Update condition in
17408 a gcc_assert.
17409
17410 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
17411
17412 PR target/99744
17413 * config/i386/serializeintrin.h (_serialize): Defined as macro.
17414
17415 2021-04-10 Jakub Jelinek <jakub@redhat.com>
17416
17417 PR lto/99849
17418 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
17419 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
17420
17421 2021-04-10 Jakub Jelinek <jakub@redhat.com>
17422
17423 PR middle-end/99989
17424 * gimple-ssa-warn-alloca.c
17425 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
17426 0 with integer precision unconditionally.
17427
17428 2021-04-10 Jakub Jelinek <jakub@redhat.com>
17429
17430 PR rtl-optimization/98601
17431 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
17432 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
17433 unaligned_mems handle VOIDmode like BLKmode.
17434
17435 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
17436
17437 PR lto/99857
17438 * tree.c (free_lang_data_in_decl): Do not release body of
17439 declare_variant_alt.
17440
17441 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
17442
17443 * config/aarch64/aarch64.c (aarch64_option_restore): If the
17444 architecture was specified explicitly and the tuning wasn't,
17445 tune for the architecture rather than the configured default CPU.
17446
17447 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
17448
17449 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
17450 as the temporary register.
17451
17452 2021-04-09 Martin Liska <mliska@suse.cz>
17453
17454 * doc/extend.texi: Move non-target attributes on the top level.
17455
17456 2021-04-09 Martin Liska <mliska@suse.cz>
17457
17458 * doc/invoke.texi: Document minimum and maximum value of the
17459 argument for both supported compression algorithms.
17460
17461 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
17462
17463 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
17464 TLS BSS before TLS data.
17465 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
17466
17467 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
17468
17469 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
17470
17471 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
17472
17473 * match.pd: Extend vec_cond folds to handle shifts.
17474
17475 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
17476
17477 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
17478 peephole.
17479
17480 2021-04-08 Alex Coplan <alex.coplan@arm.com>
17481
17482 PR target/99647
17483 * config/arm/iterators.md (MVE_vecs): New.
17484 (V_elem): Also handle V2DF.
17485 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
17486 (*mve_vdup<mode>): ... this. Remove second alternative since
17487 vec_duplicate of const_int is not canonical RTL, and we don't
17488 want to match symbol_refs.
17489 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
17490
17491 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
17492
17493 * fold-const.c (fold_single_bit_test): Fix typo.
17494 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
17495 instead.
17496
17497 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
17498
17499 PR tree-optimization/97513
17500 * tree-vect-slp.c (vect_add_slp_permutation): New function,
17501 split out from...
17502 (vectorizable_slp_permutation): ...here. Detect cases in which
17503 all VEC_PERM_EXPRs are guaranteed to have the same stepped
17504 permute vector and only generate one permute vector for that case.
17505 Extend that case to handle variable-length vectors.
17506
17507 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
17508
17509 PR tree-optimization/99873
17510 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
17511 (vect_build_slp_instance): Don't split store groups that could
17512 use IFN_STORE_LANES.
17513
17514 2021-04-07 Jakub Jelinek <jakub@redhat.com>
17515
17516 PR target/99872
17517 * varasm.c (output_constant_pool_contents): Don't strip name encoding
17518 from XSTR (desc->sym, 0) or from label before passing those to
17519 ASM_OUTPUT_DEF.
17520
17521 2021-04-07 Richard Biener <rguenther@suse.de>
17522
17523 PR tree-optimization/99954
17524 * tree-loop-distribution.c: Include tree-affine.h.
17525 (generate_memcpy_builtin): Try using tree-affine to prove
17526 non-overlap.
17527 (loop_distribution::classify_builtin_ldst): Always classify
17528 as PKIND_MEMMOVE.
17529
17530 2021-04-07 Richard Biener <rguenther@suse.de>
17531
17532 PR tree-optimization/99947
17533 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
17534 steps vector to avoid pushing elements from the reallocated
17535 vector.
17536
17537 2021-04-07 Richard Biener <rguenther@suse.de>
17538
17539 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
17540 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
17541 printing...
17542 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
17543 function.
17544 (debug_vn_reference_ops): New.
17545
17546 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
17547
17548 PR tree-optimization/98736
17549 * tree-loop-distribution.c
17550 * (loop_distribution::bb_top_order_init):
17551 Compute RPO with programing order preserved by calling function
17552 rev_post_order_and_mark_dfs_back_seme.
17553
17554 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
17555
17556 PR target/99781
17557 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
17558 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
17559 functions.
17560 (process_bb_lives): Don't update biggest mode of hard reg for
17561 implicit in multi-register group. Use the new functions for
17562 updating dead_set and unused_set by register notes.
17563
17564 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
17565
17566 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
17567 instead of *.
17568
17569 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
17570
17571 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
17572 (skylake_memset): Likewise.
17573 (skylake_cost): Change CLEAR_RATIO to 17.
17574 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
17575 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
17576 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
17577
17578 2021-04-06 Richard Biener <rguenther@suse.de>
17579
17580 PR tree-optimization/99880
17581 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
17582 set vectorized defs of relevant PHIs.
17583
17584 2021-04-06 Richard Biener <rguenther@suse.de>
17585
17586 PR tree-optimization/99924
17587 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
17588 nodes w/o scalar stmts as visited.
17589
17590 2021-04-06 Alex Coplan <alex.coplan@arm.com>
17591
17592 PR target/99748
17593 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
17594 PCS for [su]fix_optab.
17595
17596 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
17597
17598 * config/darwin.c (machopic_legitimize_pic_address): Check
17599 that the current pic register is one of the hard reg set
17600 before setting liveness.
17601
17602 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
17603
17604 * config/darwin.c (machopic_legitimize_pic_address): Fix
17605 whitespace, remove unused code.
17606
17607 2021-04-03 Jakub Jelinek <jakub@redhat.com>
17608
17609 PR tree-optimization/99882
17610 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
17611 pointer type.
17612
17613 2021-04-03 Jakub Jelinek <jakub@redhat.com>
17614
17615 PR rtl-optimization/99863
17616 * dse.c (replace_read): Drop regs_live argument. Instead of
17617 regs_live, use store_insn->fixed_regs_live if non-NULL,
17618 otherwise punt if insns sequence clobbers or sets any hard
17619 registers.
17620
17621 2021-04-03 Jakub Jelinek <jakub@redhat.com>
17622
17623 PR testsuite/98125
17624 * targhooks.h (default_print_patchable_function_entry_1): Declare.
17625 * targhooks.c (default_print_patchable_function_entry_1): New function,
17626 copied from default_print_patchable_function_entry with an added flags
17627 argument.
17628 (default_print_patchable_function_entry): Rewritten into a small
17629 wrapper around default_print_patchable_function_entry_1.
17630 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
17631 Redefine.
17632 (rs6000_print_patchable_function_entry): New function.
17633
17634 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
17635
17636 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
17637
17638 2021-04-01 Jason Merrill <jason@redhat.com>
17639
17640 PR c++/98481
17641 * common.opt: Document v15 and v16.
17642
17643 2021-04-01 Richard Biener <rguenther@suse.de>
17644
17645 PR tree-optimization/99863
17646 * gimplify.c (gimplify_init_constructor): Recompute vector
17647 constructor flags.
17648
17649 2021-04-01 Jakub Jelinek <jakub@redhat.com>
17650
17651 * doc/extend.texi (symver attribute): Fix up syntax errors
17652 in the examples.
17653
17654 2021-04-01 Jakub Jelinek <jakub@redhat.com>
17655
17656 PR tree-optimization/96573
17657 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
17658 also pointer types.
17659
17660 2021-04-01 Richard Biener <rguenther@suse.de>
17661
17662 PR tree-optimization/99856
17663 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
17664 precision to vector element precision.
17665
17666 2021-04-01 Martin Jambor <mjambor@suse.cz>
17667
17668 PR tree-optimization/97009
17669 * tree-sra.c (access_or_its_child_written): New function.
17670 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
17671 test.
17672
17673 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
17674
17675 PR ipa/98265
17676 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
17677
17678 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
17679
17680 PR target/99133
17681 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
17682 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
17683 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
17684 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
17685 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
17686 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
17687 Likewise.
17688 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
17689 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
17690 (define_attr "prefixed"): Update initializer.
17691
17692 2021-03-31 Jakub Jelinek <jakub@redhat.com>
17693
17694 PR debug/99490
17695 * dwarf2out.c (debug_ranges_dwo_section): New variable.
17696 (DW_RANGES_IDX_SKELETON): Define.
17697 (struct dw_ranges): Add begin_entry and end_entry members.
17698 (DEBUG_DWO_RNGLISTS_SECTION): Define.
17699 (add_ranges_num): Adjust r initializer for addition of *_entry
17700 members.
17701 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
17702 set idx to DW_RANGES_IDX_SKELETON.
17703 (use_distinct_base_address_for_range): New function.
17704 (index_rnglists): Don't set r->idx if it is equal to
17705 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
17706 r->end_entry for -gsplit-dwarf if those will be needed by
17707 output_rnglists.
17708 (output_rnglists): Add DWO argument. If true, switch to
17709 debug_ranges_dwo_section rather than debug_ranges_section.
17710 Adjust l1/l2 label indexes. Only output the offset table when
17711 dwo is true and don't include in there the skeleton range
17712 entry if present. For -gsplit-dwarf, skip ranges that belong
17713 to the other rnglists section. Change return type from void
17714 to bool and return true if there are any range entries for
17715 the other section. For dwarf_split_debug_info use
17716 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
17717 entries instead of DW_RLE_start_end, DW_RLE_start_length and
17718 DW_RLE_base_address. Use use_distinct_base_address_for_range.
17719 (init_sections_and_labels): Initialize debug_ranges_dwo_section
17720 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
17721 and range_base_label indexes.
17722 (dwarf2out_finish): Call index_rnglists earlier before finalizing
17723 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
17724 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
17725 with different dwo arguments.
17726 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
17727
17728 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
17729
17730 PR tree-optimization/98268
17731 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
17732 recompute_tree_invariant_for_addr_expr after successfully
17733 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
17734
17735 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
17736
17737 PR tree-optimization/99726
17738 * tree-data-ref.c (create_intersect_range_checks_index): Bail
17739 out if there is more than one access function SCEV for the loop
17740 being versioned.
17741
17742 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
17743
17744 PR rtl-optimization/97141
17745 PR rtl-optimization/98726
17746 * emit-rtl.c (valid_for_const_vector_p): Return true for
17747 CONST_POLY_INT_P.
17748 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
17749 poly_wide_int instead of a wide_int.
17750 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
17751 of a wide_int.
17752 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
17753 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
17754 false for CONST_VECTORs that cannot be forced to memory.
17755 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
17756 is too complex to force to memory, build it up from individual
17757 elements instead.
17758
17759 2021-03-31 Jan Hubicka <jh@suse.cz>
17760
17761 PR lto/99447
17762 * cgraph.c (cgraph_node::release_body): Fix overactive check.
17763
17764 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
17765
17766 PR target/99786
17767 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
17768 for V4HI and V2SI.
17769
17770 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
17771
17772 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
17773 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
17774 to SImode.
17775 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
17776 "rep movsb/stosb" only for known sizes.
17777 * config/i386/i386-options.c (processor_cost_table): Use Ice
17778 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
17779 Rapids and Alder Lake.
17780 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
17781 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
17782 (icelake_memset): Likewise.
17783 (icelake_cost): Likewise.
17784 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
17785 New.
17786
17787 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
17788
17789 PR target/98119
17790 * config/aarch64/aarch64.c
17791 (aarch64_vectorize_preferred_vector_alignment): Query the size
17792 of the provided SVE vector; do not assume that all SVE vectors
17793 have the same size.
17794
17795 2021-03-31 Jan Hubicka <jh@suse.cz>
17796
17797 PR lto/99447
17798 * cgraph.c (cgraph_node::release_body): Remove all callers and
17799 references.
17800 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
17801 * cgraphunit.c (cgraph_node::expand): And here.
17802
17803 2021-03-31 Martin Liska <mliska@suse.cz>
17804
17805 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
17806 and one negated condition.
17807
17808 2021-03-31 Jakub Jelinek <jakub@redhat.com>
17809 Richard Sandiford <richard.sandiford@arm.com>
17810
17811 PR target/99813
17812 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
17813 constraints on operands[2] and similarly 0 and rk constraints
17814 on operands[1] corresponding to that.
17815
17816 2021-03-31 Jakub Jelinek <jakub@redhat.com>
17817
17818 PR bootstrap/98860
17819 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
17820 linker doesn't support DWARF sections new in DWARF5.
17821 * config/i386/i386-options.c (ix86_option_override_internal): Default
17822 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
17823 targets.
17824 * config.in: Regenerated.
17825 * configure: Regenerated.
17826
17827 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17828
17829 PR target/99820
17830 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
17831 available issue_info before using it.
17832
17833 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17834
17835 PR target/99822
17836 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
17837 in operand 1.
17838
17839 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
17840
17841 PR target/99718
17842 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
17843 (altivec_lvsl_reg_<mode>): ... this.
17844 (altivec_lvsr_reg): Change to ...
17845 (altivec_lvsr_reg_<mode>): ... this.
17846 * config/rs6000/predicates.md (vec_set_index_operand): New.
17847 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17848 Enable 32bit variable vec_insert for all TARGET_VSX.
17849 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
17850 Enable 32bit variable vec_insert for p9 and above.
17851 (rs6000_expand_vector_set_var_p8): Rename to ...
17852 (rs6000_expand_vector_set_var_p7): ... this.
17853 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
17854 position.
17855 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
17856 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
17857 gen_altivec_lvsr_reg_di.
17858
17859 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
17860
17861 PR target/99744
17862 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
17863 (__rdtscp): Likewise.
17864
17865 2021-03-30 Tamar Christina <tamar.christina@arm.com>
17866
17867 PR tree-optimization/99825
17868 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
17869 Reject non-mult 2 lanes.
17870
17871 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
17872
17873 PR target/99773
17874 * config/arm/arm.c (arm_file_start): Fix emission of
17875 Tag_ABI_VFP_args attribute.
17876
17877 2021-03-30 Richard Biener <rguenther@suse.de>
17878
17879 PR tree-optimization/99824
17880 * stor-layout.c (set_min_and_max_values_for_integral_type):
17881 Assert the precision is within the bounds of
17882 WIDE_INT_MAX_PRECISION.
17883 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
17884 the outermost component ref only to lower the access size
17885 and initialize that from the access type.
17886
17887 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
17888
17889 PR target/98136
17890 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
17891 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
17892
17893 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
17894
17895 * config/aarch64/aarch64.md
17896 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
17897 attribute to disambiguate between SIMD and FP variants of the
17898 instruction.
17899
17900 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
17901
17902 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
17903 (analyze_ssa_name_flags): Fix typo in comment.
17904
17905 2021-03-29 Alex Coplan <alex.coplan@arm.com>
17906
17907 PR target/99216
17908 * config/aarch64/aarch64-sve-builtins.cc
17909 (function_builder::add_function): Add placeholder_p argument, use
17910 placeholder decls if this is set.
17911 (function_builder::add_unique_function): Instead of conditionally adding
17912 direct overloads, unconditionally add either a direct overload or a
17913 placeholder.
17914 (function_builder::add_overloaded_function): Set placeholder_p if we're
17915 using C++ overloads. Use the obstack for string storage instead
17916 of relying on the tree nodes.
17917 (function_builder::add_overloaded_functions): Don't return early for
17918 m_direct_overloads: we need to add placeholders.
17919 * config/aarch64/aarch64-sve-builtins.h
17920 (function_builder::add_function): Add placeholder_p argument.
17921
17922 2021-03-29 Richard Biener <rguenther@suse.de>
17923
17924 PR tree-optimization/99807
17925 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
17926 assert below VEC_PERM handling.
17927
17928 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17929
17930 PR target/99037
17931 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
17932 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
17933 matching const_int 0.
17934 (move_lo_quad_internal_be_<mode>): Likewise.
17935 (move_lo_quad_<mode>): Update for the above.
17936 * config/aarch64/iterators.md (VQ_2E): Delete.
17937
17938 2021-03-29 Jakub Jelinek <jakub@redhat.com>
17939
17940 PR tree-optimization/99777
17941 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
17942 types other than scalar integral types.
17943
17944 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
17945
17946 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
17947 XCOFF TLS reloc decorations.
17948
17949 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
17950
17951 * doc/analyzer.texi (Analyzer Internals): Update link to
17952 "A Memory Model for Static Analysis of C Programs".
17953
17954 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
17955
17956 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
17957 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
17958 Declare.
17959 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
17960 (rs6000_special_round_type_align): Recursively check innermost first
17961 field.
17962
17963 2021-03-26 Jakub Jelinek <jakub@redhat.com>
17964
17965 PR debug/99334
17966 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
17967 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
17968 assignment with drap_reg active, queue reg save for hfp with offset 0
17969 and flush queued reg saves. When handling a push with rule18,
17970 defer queueing reg save for hfp and just assert the offset is 0.
17971 (scan_trace): Assert that fde->rule18 is false.
17972
17973 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
17974
17975 PR target/99766
17976 * ira-costs.c (record_reg_classes): Put case with
17977 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
17978 * ira.c (ira_setup_alts): Ditto.
17979 * lra-constraints.c (process_alt_operands): Ditto.
17980 * recog.c (asm_operand_ok): Ditto.
17981 * reload.c (find_reloads): Ditto.
17982
17983 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
17984
17985 * config/aarch64/aarch64-protos.h
17986 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
17987 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
17988 * config/aarch64/aarch64.c (generic_addrcost_table): Update
17989 accordingly, using the same costs as for post_modify.
17990 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
17991 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
17992 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
17993 (a64fx_addrcost_table): Likewise.
17994 (neoversev1_addrcost_table): New.
17995 (neoversev1_tunings): Use neoversev1_addrcost_table.
17996 (aarch64_address_cost): Use the new post_modify costs for CImode
17997 and XImode.
17998
17999 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
18000
18001 * config/aarch64/aarch64.opt
18002 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
18003 * doc/invoke.texi: Document it.
18004 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
18005 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
18006 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
18007 (aarch64_vec_issue_info): New structures.
18008 (cpu_vector_cost): Write comments above the variables rather
18009 than to the side.
18010 (cpu_vector_cost::issue_info): New member variable.
18011 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
18012 and tree-ssa-loop-niter.h.
18013 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
18014 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
18015 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
18016 (thunderx3t110_vector_cost): Initialize issue_info to null.
18017 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
18018 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
18019 (neoversev1_vector_cost): Use them.
18020 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
18021 (aarch64_vector_costs::saw_sve_only_op): New member variable.
18022 (aarch64_vector_costs::num_vector_iterations): Likewise.
18023 (aarch64_vector_costs::scalar_ops): Likewise.
18024 (aarch64_vector_costs::advsimd_ops): Likewise.
18025 (aarch64_vector_costs::sve_ops): Likewise.
18026 (aarch64_vector_costs::seen_loads): Likewise.
18027 (aarch64_simd_vec_costs_for_flags): New function.
18028 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
18029 Count the number of predicate operations required by SVE WHILE
18030 instructions.
18031 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
18032 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
18033 (aarch64_count_ops): Likewise.
18034 (aarch64_add_stmt_cost): Record whether see an SVE operation
18035 that cannot currently be implementing using Advanced SIMD.
18036 Record issue information about the scalar, Advanced SIMD
18037 and (where relevant) SVE versions of a loop.
18038 (aarch64_vec_op_count::dump): New function.
18039 (aarch64_sve_op_count::dump): Likewise.
18040 (aarch64_estimate_min_cycles_per_iter): Likewise.
18041 (aarch64_adjust_body_cost): If issue information is available,
18042 try to compare the issue rates of the various loop implementations
18043 and increase or decrease the vector body cost accordingly.
18044
18045 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
18046
18047 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
18048 Assume a zero cost for induction phis.
18049
18050 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
18051
18052 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
18053 function.
18054 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
18055 vector comparisons.
18056
18057 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
18058
18059 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
18060 New function.
18061 (aarch64_add_stmt_cost): Call it.
18062
18063 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
18064
18065 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
18066 New tuning parameter.
18067 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
18068 (aarch64_estimated_sve_vq): New function.
18069 (aarch64_vector_costs::analyzed_vinfo): New member variable.
18070 (aarch64_vector_costs::is_loop): Likewise.
18071 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
18072 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
18073 (aarch64_record_potential_advsimd_unrolling): New function.
18074 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
18075 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
18076 aarch64_analyze_bb_vinfo on the first use of a costs structure.
18077 Detect whether we're vectorizing a loop for SVE that might be
18078 completely unrolled if it used Advanced SIMD instead.
18079 (aarch64_adjust_body_cost_for_latency): New function.
18080 (aarch64_finish_cost): Call it.
18081
18082 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
18083
18084 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
18085 (aarch64_init_cost): New function.
18086 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
18087 the default unsigned[3].
18088 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
18089 (TARGET_VECTORIZE_INIT_COST): Override.
18090 (TARGET_VECTORIZE_FINISH_COST): Likewise.
18091 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
18092
18093 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
18094
18095 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
18096 (neoversev1_sve_vector_cost): New cost structures.
18097 (neoversev1_vector_cost): Likewise.
18098 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
18099
18100 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
18101
18102 * config/aarch64/aarch64-protos.h
18103 (sve_vec_cost::scatter_store_elt_cost): New member variable.
18104 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
18105 accordingly, taking the cost from the cost of a scalar_store.
18106 (a64fx_sve_vector_cost): Likewise.
18107 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
18108
18109 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
18110
18111 * config/aarch64/aarch64-protos.h
18112 (simd_vec_cost::store_elt_extra_cost): New member variable.
18113 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
18114 accordingly, using the vec_to_scalar cost for the new field.
18115 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
18116 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
18117 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
18118 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
18119 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
18120 (thunderx3t110_advsimd_vector_cost): Likewise.
18121 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
18122
18123 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
18124
18125 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
18126 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
18127 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
18128 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
18129 accordingly, using zero for the new costs.
18130 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
18131 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
18132 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
18133 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
18134 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
18135 (thunderx3t110_advsimd_vector_cost): Likewise.
18136 (aarch64_ld234_st234_vectors): New function.
18137 (aarch64_adjust_stmt_cost): Likewise.
18138 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
18139 the new vector costs.
18140
18141 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
18142
18143 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
18144 derived class of simd_vec_cost. Add information about CLAST[AB]
18145 and FADDA instructions.
18146 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
18147 accordingly, using the vec_to_scalar costs for the new fields.
18148 (a64fx_sve_vector_cost): Likewise.
18149 (aarch64_reduc_type): New function.
18150 (aarch64_sve_in_loop_reduction_latency): Likewise.
18151 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
18152 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
18153 that occur in the loop body.
18154 (aarch64_add_stmt_cost): Update call accordingly.
18155
18156 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
18157
18158 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
18159 New tuning flag.
18160 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
18161 above the fields rather than to the right.
18162 (simd_vec_cost::reduc_i8_cost): New member variable.
18163 (simd_vec_cost::reduc_i16_cost): Likewise.
18164 (simd_vec_cost::reduc_i32_cost): Likewise.
18165 (simd_vec_cost::reduc_i64_cost): Likewise.
18166 (simd_vec_cost::reduc_f16_cost): Likewise.
18167 (simd_vec_cost::reduc_f32_cost): Likewise.
18168 (simd_vec_cost::reduc_f64_cost): Likewise.
18169 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
18170 accordingly, using the vec_to_scalar_cost for the new fields.
18171 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
18172 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
18173 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
18174 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
18175 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
18176 (thunderx3t110_advsimd_vector_cost): Likewise.
18177 (aarch64_use_new_vector_costs_p): New function.
18178 (aarch64_simd_vec_costs): New function, split out from...
18179 (aarch64_builtin_vectorization_cost): ...here.
18180 (aarch64_is_reduction): New function.
18181 (aarch64_detect_vector_stmt_subtype): Likewise.
18182 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
18183 using the new vector costs.
18184
18185 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
18186
18187 PR ipa/99466
18188 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
18189 TLS declarations as public.
18190
18191 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
18192
18193 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
18194 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
18195 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
18196 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
18197 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
18198 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
18199 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
18200 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
18201 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
18202
18203 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
18204
18205 PR d/91595
18206 * config.gcc (*-*-cygwin*): Add winnt-d.o
18207 (*-*-mingw*): Likewise.
18208 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
18209 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
18210 * config/i386/t-cygming: Add winnt-d.o.
18211 * config/i386/winnt-d.c: New file.
18212
18213 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
18214
18215 * config/freebsd-d.c: Include memmodel.h.
18216
18217 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
18218
18219 PR d/99691
18220 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
18221 * config/t-openbsd: Add openbsd-d.o.
18222 * config/openbsd-d.c: New file.
18223
18224 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
18225
18226 PR tree-optimization/96974
18227 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
18228 with graceful exit.
18229
18230 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
18231
18232 Revert:
18233 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
18234
18235 PR target/98209
18236 PR target/99744
18237 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
18238 always_inline in system headers.
18239
18240 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
18241
18242 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
18243
18244 2021-03-25 Jakub Jelinek <jakub@redhat.com>
18245
18246 PR c++/99565
18247 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
18248 * fold-const.c (operand_compare::operand_equal_p): Don't compare
18249 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
18250
18251 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
18252
18253 PR target/98209
18254 PR target/99744
18255 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
18256 always_inline in system headers.
18257
18258 2021-03-25 Richard Biener <rguenther@suse.de>
18259
18260 PR tree-optimization/99746
18261 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
18262 the scalar stmt as patterned. Instead set up required things
18263 manually.
18264
18265 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
18266
18267 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
18268 from 256 to 512.
18269
18270 2021-03-24 Martin Liska <mliska@suse.cz>
18271
18272 PR target/99753
18273 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
18274 error.
18275 * config/i386/i386-options.c (ix86_option_override_internal):
18276 Add run-time assert.
18277
18278 2021-03-24 Martin Jambor <mjambor@suse.cz>
18279
18280 PR ipa/99122
18281 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
18282 parameters with unknown type.
18283 (ipacp_value_safe_for_type): New function.
18284 (propagate_vals_across_arith_jfunc): Verify that the constant type
18285 can be used for a type of the formal parameter.
18286 (propagate_vals_across_ancestor): Likewise.
18287 (propagate_scalar_across_jump_function): Likewise. Pass the type
18288 also to propagate_vals_across_ancestor.
18289
18290 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
18291
18292 PR target/99727
18293 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
18294 constraint.
18295 (movmisalign<mode>_mve_load): Likewise.
18296
18297 2021-03-24 Jakub Jelinek <jakub@redhat.com>
18298
18299 PR target/99724
18300 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
18301 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
18302
18303 2021-03-24 Alexandre Oliva <oliva@adacore.com>
18304
18305 * doc/sourcebuild.texi (sysconf): New effective target.
18306
18307 2021-03-24 Alexandre Oliva <oliva@adacore.com>
18308
18309 * config/i386/predicates.md (reg_or_const_vec_operand): New.
18310 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
18311 the now *-prefixed insn_and_split, turn the splitter const vec
18312 into an input for the insn, making it an ignored immediate for
18313 non-split cases, and loaded into the scratch register
18314 otherwise.
18315
18316 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
18317
18318 PR target/99581
18319 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
18320 Use define_relaxed_memory_constraint for them.
18321
18322 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
18323
18324 PR target/99733
18325 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
18326 colon to the diagnostic message.
18327
18328 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
18329
18330 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
18331 set_info's uses.
18332 (try_fwprop_subst_note): Use set_info instead of insn_info.
18333 (try_fwprop_subst_pattern): Likewise.
18334 (try_fwprop_subst_notes): Likewise.
18335 (try_fwprop_subst): Likewise.
18336 (forward_propagate_subreg): Likewise.
18337 (forward_propagate_and_simplify): Likewise.
18338 (forward_propagate_into): Likewise.
18339 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
18340 method.
18341 (set_info::single_nondebug_insn_use): Likewise.
18342 (set_info::single_phi_use): Likewise.
18343 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
18344 method.
18345 (set_info::single_nondebug_insn_use): Likewise.
18346 (set_info::single_phi_use): Likewise.
18347
18348 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
18349
18350 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
18351
18352 2021-03-23 Jakub Jelinek <jakub@redhat.com>
18353
18354 PR target/99540
18355 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
18356 expand_mult to perform an unsigned rather than a signed
18357 multiplication.
18358
18359 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
18360
18361 PR target/99704
18362 * config/i386/cpuid.h (__cpuid): Add __volatile__.
18363 (__cpuid_count): Likewise.
18364
18365 2021-03-23 Richard Biener <rguenther@suse.de>
18366
18367 PR tree-optimization/99721
18368 * tree-vect-slp.c (vect_slp_analyze_node_operations):
18369 Make sure we can schedule the node.
18370
18371 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
18372
18373 * config/riscv/riscv.c (riscv_subword): Take endianness into
18374 account when calculating the byte offset.
18375
18376 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
18377
18378 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
18379 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
18380 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
18381 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
18382 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
18383 new predicate "subreg_lowpart_operator"
18384
18385 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
18386
18387 * config/riscv/riscv.c (riscv_swap_instruction): New function
18388 to byteswap an SImode rtx containing an instruction.
18389 (riscv_trampoline_init): Byteswap the generated instructions
18390 when needed.
18391
18392 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
18393
18394 * common/config/riscv/riscv-common.c
18395 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
18396 * config.gcc (riscv32be-*, riscv64be-*): Set
18397 TARGET_BIG_ENDIAN_DEFAULT to 1.
18398 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
18399 depending on default endianness.
18400 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
18401 * config/riscv/linux.h (LINK_SPEC): Likewise.
18402 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
18403 default endianness.
18404 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
18405
18406 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
18407
18408 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
18409 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
18410 * config/riscv/linux.h (LINK_SPEC): Likewise.
18411 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
18412 -mlittle-endian.
18413 (BYTES_BIG_ENDIAN): Handle big endian.
18414 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18415 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
18416 options.
18417 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
18418
18419 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
18420
18421 * regcprop.c (find_oldest_value_reg): Ask target whether
18422 different mode is fine for replacement register.
18423
18424 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
18425
18426 PR tree-optimization/99296
18427 * value-range.cc (irange::irange_set_1bit_anti_range): New.
18428 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
18429 * value-range.h (irange::irange_set_1bit_anti_range): New.
18430
18431 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
18432
18433 PR target/99581
18434 * config/aarch64/constraints.md (UtQ): Use
18435 define_relaxed_memory_constraint for it.
18436 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
18437 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
18438 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
18439 (have_relaxed_memory_constraints): New static var.
18440 (relaxed_memory_start, relaxed_memory_end): Ditto.
18441 (add_constraint): Add arg is_relaxed_memory. Check name for
18442 relaxed memory. Set up is_relaxed_memory in constraint_data and
18443 have_relaxed_memory_constraints. Adjust calls.
18444 (choose_enum_order): Process relaxed memory.
18445 (write_tm_preds_h): Ditto.
18446 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
18447 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
18448 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
18449 * ira-lives.c (single_reg_class): Use
18450 insn_extra_relaxed_memory_constraint.
18451 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
18452 * lra-constraints.c (valid_address_p): Use
18453 insn_extra_relaxed_memory_constraint instead of other memory
18454 constraints.
18455 (process_alt_operands): Process CT_RELAXED_MEMORY.
18456 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
18457 * recog.c (asm_operand_ok, preprocess_constraints): Process
18458 CT_RELAXED_MEMORY.
18459 * reload.c (find_reloads): Ditto.
18460 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
18461 * stmt.c (parse_input_constraint): Use
18462 insn_extra_relaxed_memory_constraint.
18463
18464 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
18465
18466 PR target/97926
18467 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
18468 there are no NaNs.
18469
18470 2021-03-22 Alex Coplan <alex.coplan@arm.com>
18471
18472 PR target/97252
18473 * config/arm/arm-protos.h (neon_make_constant): Add generate
18474 argument to guard emitting insns, default to true.
18475 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
18476 CONST_VECTORs which neon_make_constant can't handle.
18477 (neon_vdup_constant): Add generate argument, avoid emitting
18478 insns if it's not set.
18479 (neon_make_constant): Plumb new generate argument through.
18480 * config/arm/constraints.md (Ui): New. Use it...
18481 * config/arm/mve.md (*mve_mov<mode>): ... here.
18482 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
18483 synthesize constants.
18484
18485 2021-03-22 Richard Biener <rguenther@suse.de>
18486
18487 * debug.h: Add deprecation warning.
18488
18489 2021-03-22 Richard Biener <rguenther@suse.de>
18490
18491 PR tree-optimization/99694
18492 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
18493 PHI result.
18494
18495 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
18496
18497 PR target/99702
18498 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
18499 after type checking.
18500
18501 2021-03-22 Jakub Jelinek <jakub@redhat.com>
18502
18503 PR debug/99562
18504 PR debug/66728
18505 * dwarf2out.c (get_full_len): Use get_precision rather than
18506 min_precision.
18507 (add_const_value_attribute): Make sure add_AT_wide argument has
18508 precision prec rather than some very wide one.
18509
18510 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
18511
18512 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
18513 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
18514 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
18515 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
18516 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
18517 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
18518 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
18519 *fix_trunc<mode>si2_internal): Fix empty split condition.
18520 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
18521 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
18522 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
18523 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
18524
18525 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
18526
18527 PR target/98914
18528 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
18529 Convert idx to DImode.
18530 (rs6000_expand_vector_set_var_p8): Likewise.
18531
18532 2021-03-21 Jakub Jelinek <jakub@redhat.com>
18533
18534 PR debug/99388
18535 * dwarf2out.c (insert_float): Change return type from void to
18536 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
18537 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
18538 Adjust callers.
18539
18540 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
18541
18542 PR target/99679
18543 * config/i386/i386.c (construct_container): Check cfun != NULL
18544 before accessing silent_p.
18545
18546 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
18547
18548 * asan.c: Fix typos in comments.
18549
18550 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
18551
18552 PR rtl-optimization/99680
18553 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
18554 (process_address_1): Check empty constraint before using
18555 CONSTRAINT_LEN.
18556
18557 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
18558
18559 * config/rs6000/rs6000.c (power10_cost): New.
18560 (rs6000_option_override_internal): Set Power10 costs.
18561 (rs6000_issue_rate): Set Power10 issue rate.
18562 * config/rs6000/power10.md: Rewrite for Power10.
18563
18564 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
18565
18566 PR target/99663
18567 * lra-constraints.c (process_address_1): Don't use unknown
18568 constraint for address constraint.
18569
18570 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
18571
18572 PR target/99661
18573 * config.gcc (powerpc-*-darwin8): Delete the reference to
18574 the now removed darwin8.h.
18575
18576 2021-03-19 Olivier Hainque <hainque@adacore.com>
18577
18578 PR target/99660
18579 * config/vxworksae.h (VX_CPU_PREFIX): Define.
18580
18581 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
18582
18583 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
18584
18585 2021-03-19 Tamar Christina <tamar.christina@arm.com>
18586
18587 PR tree-optimization/99656
18588 * tree-vect-slp-patterns.c (linear_loads_p,
18589 complex_add_pattern::matches, is_eq_or_top,
18590 vect_validate_multiplication, complex_mul_pattern::matches,
18591 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
18592 * tree-vectorizer.h: (complex_load_perm_t): Removed.
18593 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
18594 complex_load_perm_t.
18595
18596 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
18597
18598 PR target/99652
18599 * config/i386/i386-options.c (ix86_init_machine_status): Set
18600 silent_p to true.
18601 * config/i386/i386.c (init_cumulative_args): Set silent_p to
18602 false.
18603 (construct_container): Return early for return and argument
18604 errors if silent_p is true.
18605 * config/i386/i386.h (machine_function): Add silent_p.
18606
18607 2021-03-19 Jakub Jelinek <jakub@redhat.com>
18608
18609 PR target/99593
18610 * config/arm/constraints.md (Ds): New constraint.
18611 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
18612 constraint instead of w,Dm.
18613
18614 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
18615
18616 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
18617 in error message.
18618
18619 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
18620
18621 PR middle-end/99641
18622 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
18623 array type, do the computation of the current position in sizetype.
18624
18625 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
18626
18627 PR target/99422
18628 * lra-constraints.c (process_address_1): Use lookup_constraint
18629 only for a single constraint.
18630
18631 2021-03-18 Martin Sebor <msebor@redhat.com>
18632
18633 PR middle-end/99502
18634 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
18635 (inbounds_memaccess_p): ...to this. Check the ending offset of
18636 the accessed member.
18637
18638 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
18639
18640 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
18641 %> quote markers to error messages.
18642 (gcn_goacc_validate_dims): Likewise.
18643 (gcn_conditional_register_usage): Remove exclaimation mark from error
18644 message.
18645 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
18646
18647 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
18648
18649 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
18650 integer divides1.
18651
18652 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
18653 Kito Cheng <kito.cheng@sifive.com>
18654
18655 * config/riscv/riscv.c (riscv_block_move_straight): Change type
18656 to unsigned HOST_WIDE_INT for parameter and local variable with
18657 HOST_WIDE_INT type.
18658 (riscv_adjust_block_mem): Ditto.
18659 (riscv_block_move_loop): Ditto.
18660 (riscv_expand_block_move): Ditto.
18661
18662 2021-03-18 Nick Clifton <nickc@redhat.com>
18663
18664 * config/v850/v850.c (construct_restore_jr): Increase static
18665 buffer size.
18666 (construct_save_jarl): Likewise.
18667 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
18668
18669 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18670
18671 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
18672 (aarch64_override_options_internal): Use it.
18673 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
18674 tune_flags.
18675
18676 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
18677
18678 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
18679 error message format issues.
18680 (nios2_option_override): Likewise.
18681 (nios2_expand_fpu_builtin): Likewise.
18682 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
18683 truncation warning.
18684 (nios2_expand_custom_builtin): More error message format fixes.
18685 (nios2_expand_rdwrctl_builtin): Likewise.
18686 (nios2_expand_rdprs_builtin): Likewise.
18687 (nios2_expand_eni_builtin): Likewise.
18688 (nios2_expand_builtin): Likewise.
18689 (nios2_register_custom_code): Likewise.
18690 (nios2_valid_target_attribute_rec): Likewise.
18691 (nios2_add_insn_asm): Fix uninitialized variable warning.
18692
18693 2021-03-17 Jan Hubicka <jh@suse.cz>
18694
18695 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
18696 of gather to match reality.
18697 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
18698
18699 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18700
18701 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
18702 to compare against CC_REG rather than NE.
18703
18704 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
18705
18706 PR target/99504
18707 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
18708 inline assembly statements.
18709 (ix86_print_operand): Update 'P' handling for -fno-plt.
18710
18711 2021-03-17 Tamar Christina <tamar.christina@arm.com>
18712
18713 PR target/99542
18714 * config/aarch64/aarch64.c
18715 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
18716
18717 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
18718
18719 PR target/98092
18720 * config/rs6000/predicates.md (branch_comparison_operator): Allow
18721 ordered and unordered for CCFPmode, if flag_finite_math_only.
18722
18723 2021-03-16 Jakub Jelinek <jakub@redhat.com>
18724
18725 PR target/99600
18726 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
18727 rather than ASHIFT.
18728 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
18729
18730 2021-03-16 Martin Liska <mliska@suse.cz>
18731
18732 PR target/99592
18733 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
18734 cl_optimization_compare function.
18735
18736 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
18737
18738 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
18739 as "v".
18740
18741 2021-03-16 Jakub Jelinek <jakub@redhat.com>
18742
18743 PR target/99563
18744 * config/i386/i386.h (struct machine_function): Add
18745 has_explicit_vzeroupper bitfield.
18746 * config/i386/i386-expand.c (ix86_expand_builtin): Set
18747 cfun->machine->has_explicit_vzeroupper when expanding
18748 IX86_BUILTIN_VZEROUPPER.
18749 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
18750 Do the mode switching only when TARGET_VZEROUPPER, expensive
18751 optimizations turned on and not optimizing for size.
18752 (pass_insert_vzeroupper::gate): Enable even when
18753 cfun->machine->has_explicit_vzeroupper is set.
18754
18755 2021-03-16 Jakub Jelinek <jakub@redhat.com>
18756
18757 PR target/99542
18758 * config/aarch64/aarch64.c
18759 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
18760 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
18761 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
18762
18763 2021-03-15 Richard Biener <rguenther@suse.de>
18764
18765 PR tree-optimization/98834
18766 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
18767 subsetting by truncating the access size.
18768
18769 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
18770
18771 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
18772 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
18773 of znver2_cost.
18774
18775 2021-03-15 Martin Liska <mliska@suse.cz>
18776
18777 * spellcheck.c: Add missing comma in initialization.
18778
18779 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
18780
18781 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
18782 alternative 2 and alternative 1 with alternative 3 using
18783 YW register constraint.
18784 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
18785 using YW register constraint.
18786 (*vec_extractv16qi_zext): Ditto.
18787 (*vec_extractv4si): Merge alternatives 4 and 5
18788 using Yw register constraint.
18789 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
18790
18791 2021-03-13 Martin Sebor <msebor@redhat.com>
18792
18793 PR tree-optimization/99489
18794 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
18795 is not a call statement.
18796
18797 2021-03-13 Jakub Jelinek <jakub@redhat.com>
18798
18799 PR tree-optimization/99544
18800 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
18801 if for vector types multiplication can't be done in type's mode.
18802
18803 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
18804
18805 PR target/99422
18806 * config/sparc/constraints.md (w): Rename to...
18807 (W): ... this and ditch previous implementation.
18808 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
18809 (*movdf_insn_sp64): Likewise.
18810 (*mov<VM64:mode>_insn_sp64): Likewise.
18811 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
18812 w with W.
18813 (atomic_compare_and_swap_leon3_1): Likewise.
18814 (*atomic_compare_and_swapdi_v8plus): Likewise.
18815 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
18816 architecture and add missing address validity check during LRA.
18817
18818 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
18819
18820 PR fortran/98858
18821 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
18822 occuring for assumed-size arrays in use_device_{ptr,addr}.
18823
18824 2021-03-12 Jakub Jelinek <jakub@redhat.com>
18825
18826 PR target/99321
18827 * config/i386/constraints.md (YW): New internal constraint.
18828 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
18829 (*<sse2_avx2>_<insn><mode>3<mask_name>,
18830 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
18831 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
18832 constraints.
18833 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
18834 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
18835 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
18836 into one, use Yw instead of former x,v.
18837 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
18838 the last alternative.
18839 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
18840 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
18841 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
18842 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
18843 into one, use <v_Yw> instead of former x,v.
18844 (avx2_interleave_highv32qi<mask_name>,
18845 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
18846 constraints. Add && <mask_avx512bw_condition> to condition.
18847 (avx2_interleave_lowv32qi<mask_name>,
18848 vec_interleave_lowv16qi<mask_name>,
18849 avx2_interleave_highv16hi<mask_name>,
18850 vec_interleave_highv8hi<mask_name>,
18851 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
18852 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
18853 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
18854 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
18855 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
18856 Yw instead of v in constraints.
18857 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
18858 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
18859 instead of Yv in constraints.
18860 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
18861 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
18862 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
18863 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
18864 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
18865 constraints.
18866 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
18867 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
18868 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
18869 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
18870 two, one with just x, another isa avx512vl with v.
18871
18872 2021-03-12 Martin Liska <mliska@suse.cz>
18873
18874 * doc/invoke.texi: Add missing param documentation.
18875
18876 2021-03-11 David Malcolm <dmalcolm@redhat.com>
18877
18878 PR analyzer/96374
18879 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
18880 analyzer/trimmed-graph.o.
18881 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
18882 feasibility checking to reflect new implementation.
18883 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
18884 option.
18885 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
18886
18887 2021-03-11 David Malcolm <dmalcolm@redhat.com>
18888
18889 * digraph.cc (selftest::test_shortest_paths): Update
18890 shortest_paths init for new param. Add test of
18891 SPS_TO_GIVEN_TARGET.
18892 * shortest-paths.h (enum shortest_path_sense): New.
18893 (shortest_paths::shortest_paths): Add "sense" param.
18894 Update for renamings. Generalize to use "sense" param.
18895 (shortest_paths::get_shortest_path): Rename param.
18896 (shortest_paths::m_sense): New field.
18897 (shortest_paths::m_prev): Rename...
18898 (shortest_paths::m_best_edge): ...to this.
18899 (shortest_paths::get_shortest_path): Update for renamings.
18900 Conditionalize flipping of path on sense of traversal.
18901
18902 2021-03-11 David Malcolm <dmalcolm@redhat.com>
18903
18904 * digraph.cc (selftest::test_shortest_paths): Add test coverage
18905 for paths from B and C.
18906 * shortest-paths.h (shortest_paths::shortest_paths): Handle
18907 unreachable nodes, rather than asserting.
18908
18909 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
18910
18911 PR target/99094
18912 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
18913 xcoff_tbss_section_name.
18914 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
18915 * xcoffout.c (xcoff_tbss_section_name): Delete.
18916 * xcoffout.h (xcoff_tbss_section_name): Delete.
18917
18918 2021-03-11 Richard Biener <rguenther@suse.de>
18919
18920 PR tree-optimization/99523
18921 * tree-cfg.c (dump_function_to_file): Dump SSA names
18922 w/o identifier to the decls section as well, not only those
18923 without a VAR_DECL.
18924
18925 2021-03-11 Jakub Jelinek <jakub@redhat.com>
18926
18927 PR ipa/99517
18928 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
18929 function calls with lhs fail if the lhs don't have compatible types.
18930
18931 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
18932
18933 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
18934 Change FRAME_POINTER_REGNUM to correspond to a new faked
18935 register faked_fp, part of GENNONACR_REGS like faked_ap.
18936 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
18937 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
18938 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
18939 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
18940 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
18941 register.
18942 (CRIS_REAL_FP_REGNUM): New constant.
18943 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
18944 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
18945 (cris_initial_elimination_offset): Handle elimination changes
18946 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
18947 and add one from FRAME_POINTER_REGNUM to
18948 HARD_FRAME_POINTER_REGNUM.
18949 (cris_expand_prologue, cris_expand_epilogue): Emit code for
18950 hard_frame_pointer_rtx instead of frame_pointer_rtx.
18951
18952 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
18953
18954 PR target/99492
18955 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
18956 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
18957
18958 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
18959
18960 PR target/99422
18961 * lra-constraints.c (process_address_1): Don't check unknown
18962 constraint, use X for empty constraint.
18963
18964 2021-03-10 Alex Coplan <alex.coplan@arm.com>
18965
18966 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
18967 Fix typo in comment describing "is_ha" argument.
18968
18969 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
18970
18971 * doc/sourcebuild.texi: Document LRA target selector.
18972
18973 2021-03-10 David Malcolm <dmalcolm@redhat.com>
18974
18975 * doc/ux.texi: Add subsection contrasting interactive versus
18976 batch usage of GCC.
18977
18978 2021-03-10 Joel Hutton <joel.hutton@arm.com>
18979
18980 PR target/99102
18981 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
18982 check condition.
18983 (vectorizable_load): Fix gather load mask check condition.
18984
18985 2021-03-10 Richard Biener <rguenther@suse.de>
18986
18987 PR tree-optimization/99510
18988 * tree.c (check_aligned_type): Check that the candidate
18989 has TYPE_USER_ALIGN set instead of matching with the
18990 original type.
18991
18992 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
18993
18994 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
18995 float and vector integer modes only if the mode is not larger.
18996
18997 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
18998
18999 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
19000
19001 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
19002
19003 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
19004 constraints > 9.
19005 * ira-lives.c (single_reg_class): Ditto.
19006
19007 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
19008
19009 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
19010 the architecture-specific rtems.h.
19011 (aarch64-*-rtems*): Likewise.
19012 (arm*-*-rtems*): Likewise.
19013 (epiphany-*-rtems*): Likewise.
19014 (riscv*-*-rtems*): Likewise.
19015
19016 2021-03-09 Jakub Jelinek <jakub@redhat.com>
19017
19018 PR tree-optimization/99305
19019 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
19020 before integer_all_onesp instead of vice versa.
19021
19022 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
19023
19024 * common/config/arm/arm-common.c (arm_config_default): Change type
19025 of 'i' to unsigned.
19026
19027 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
19028
19029 PR target/99454
19030 * lra-constraints.c (process_address_1): Process constraint 'g'
19031 separately and digital constraints containing more one digit.
19032
19033 2021-03-09 Nick Clifton <nickc@redhat.com>
19034
19035 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
19036 (DWARF"_DEBUGGING_INFO): Define.
19037
19038 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
19039
19040 PR c++/90448
19041 * calls.c (initialize_argument_information): When the argument
19042 is passed by reference, do not make a copy in a thunk only if
19043 the argument is already in memory. Remove redundant test for
19044 the case of callee copy.
19045
19046 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
19047
19048 PR target/99454
19049 * lra-constraints.c (process_address_1): Process 0..9 constraints
19050 in process_address_1.
19051
19052 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
19053
19054 * config/s390/s390.c (struct s390_processor processor_table):
19055 Binutils name string must not be empty.
19056
19057 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
19058
19059 * config/arc/arc.c (arc_attr_type): Remove function.
19060
19061 2021-03-09 Martin Liska <mliska@suse.cz>
19062
19063 PR target/99464
19064 * config/i386/i386-options.c (ix86_option_override_internal):
19065 Set isa_flags for OPTS argument and not for the global
19066 global_options.
19067
19068 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
19069
19070 * config/rs6000/predicates.md (ds_form_mem_operand): Check
19071 in correct code.
19072
19073 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
19074
19075 PR target/99070
19076 * config/rs6000/predicates.md (ds_form_mem_operand) New
19077 predicate.
19078 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
19079 ds_form_mem_operand in ld/lwa patterns.
19080 * config/rs6000/fusion.md: Regenerate file.
19081
19082 2021-03-08 Martin Sebor <msebor@redhat.com>
19083
19084 PR middle-end/98266
19085 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
19086 (array_bounds_checker::check_array_bounds): Call it.
19087
19088 2021-03-08 Martin Sebor <msebor@redhat.com>
19089
19090 PR middle-end/97631
19091 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
19092 (handle_builtin_stxncpy_strncat): Rename locals. Determine
19093 destination size from allocation calls. Issue a more appropriate
19094 kind of warning.
19095 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
19096 (handle_builtin_memset): Same.
19097
19098 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
19099
19100 PR target/98959
19101 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
19102 to ensure we do not have an Altivec style address.
19103 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
19104 an Altivec style address.
19105 (*vsx_le_perm_store_<mode>): Likewise.
19106 (splitters after *vsx_le_perm_store_<mode>): Likewise.
19107 (vsx_load_<mode>): Disable special expander if passed an Altivec
19108 style address.
19109 (vsx_store_<mode>): Likewise.
19110
19111 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19112
19113 PR target/99437
19114 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
19115 (aarch64_simd_shift_imm_vec_hi): Likewise.
19116 (aarch64_simd_shift_imm_vec_si): Likewise.
19117 (aarch64_simd_shift_imm_vec_di): Likewise.
19118 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
19119 predicate from above.
19120 (aarch64_shrn<mode>_insn_be): Likewise.
19121 (aarch64_rshrn<mode>_insn_le): Likewise.
19122 (aarch64_rshrn<mode>_insn_be): Likewise.
19123 (aarch64_shrn2<mode>_insn_le): Likewise.
19124 (aarch64_shrn2<mode>_insn_be): Likewise.
19125 (aarch64_rshrn2<mode>_insn_le): Likewise.
19126 (aarch64_rshrn2<mode>_insn_be): Likewise.
19127
19128 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
19129
19130 PR target/99422
19131 * lra-constraints.c (skip_contraint_modifiers): New function.
19132 (process_address_1): Use it before lookup_constraint call.
19133
19134 2021-03-08 Martin Liska <mliska@suse.cz>
19135
19136 PR target/99463
19137 * config/i386/i386-options.c (ix86_option_override_internal):
19138 Enable UINTR and HRESET for -march that supports it.
19139
19140 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
19141
19142 * config/s390/s390.c (f_constraint_p): New function.
19143 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
19144 (TARGET_MD_ASM_ADJUST): Likewise.
19145
19146 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
19147
19148 PR fortran/97927
19149 * tree-nested.c (convert_local_reference_stmt): Avoid calling
19150 lookup_field_for_decl for Fortran module (= namespace context).
19151
19152 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
19153
19154 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
19155 comparison with arithmetic right shift.
19156 (s390_expand_vcond): No need for a force_reg anymore.
19157 s390_vec_compare will do it.
19158 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
19159 immediate operands.
19160
19161 2021-03-07 Jakub Jelinek <jakub@redhat.com>
19162
19163 PR target/99321
19164 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
19165 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
19166 and comment.
19167 * config/i386/sse.md (v_Yw): New define_mode_attr.
19168 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
19169 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
19170 in constraints.
19171 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
19172 xYw in constraints.
19173
19174 2021-03-06 Julian Brown <julian@codesourcery.com>
19175
19176 * tree-pretty-print.c (dump_generic_node): Emit non-generic
19177 address space info for aggregates.
19178
19179 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
19180
19181 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
19182
19183 2021-03-05 Jakub Jelinek <jakub@redhat.com>
19184
19185 PR middle-end/99322
19186 * tree-cfg.c (bb_to_omp_idx): New variable.
19187 (execute_build_cfg): Release the bb_to_omp_idx vector after
19188 cleanup_tree_cfg returns.
19189 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
19190 for bb_to_omp_idx being a vec<int> instead of pointer to array
19191 of ints.
19192 (make_edges): Remove bb_to_omp_idx local variable, don't pass
19193 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
19194 vec<int> instead of pointer to array of ints and don't free/release
19195 it at the end.
19196 (remove_bb): When removing a bb and placing forced label somewhere
19197 else, ensure it is put into the same OpenMP region during cfg
19198 pass if possible or to entry successor as fallback. Unregister
19199 bb from bb_to_omp_idx.
19200
19201 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
19202
19203 PR target/99378
19204 * lra-constraints.c (process_address_1): Skip decomposing address
19205 for asm insn operand with unknown constraint.
19206
19207 2021-03-05 Martin Jambor <mjambor@suse.cz>
19208
19209 PR ipa/98078
19210 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
19211 corresponding speculative edges if we are about to resolve
19212 sepculation. Make edge direct (and so resolve speculations) before
19213 removing it from call_site_hash.
19214 (cgraph_edge::make_direct): Relax the initial assert to allow calling
19215 the function on speculative direct edges.
19216
19217 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
19218
19219 PR rtl-optimization/99376
19220 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
19221 of low-order zero bits is too large, set the result to 0 directly.
19222
19223 2021-03-04 Jakub Jelinek <jakub@redhat.com>
19224
19225 PR middle-end/93235
19226 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
19227 SUBREG and a SUBREG to op_mode can't be created.
19228
19229 2021-03-04 Alex Coplan <alex.coplan@arm.com>
19230
19231 PR target/99381
19232 * config/aarch64/aarch64-sve-builtins.cc
19233 (function_resolver::require_vector_type): Handle error_mark_node.
19234
19235 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
19236
19237 * cfgexpand.c (expand_asm_loc): Pass new parameter.
19238 (expand_asm_stmt): Likewise.
19239 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
19240 parameter.
19241 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
19242 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
19243 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
19244 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
19245 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
19246 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
19247 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
19248 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
19249 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
19250 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
19251 * doc/tm.texi (md_asm_adjust): Likewise.
19252 * target.def (md_asm_adjust): Likewise.
19253
19254 2021-03-04 Richard Biener <rguenther@suse.de>
19255
19256 PR middle-end/97855
19257 * tree-pretty-print.c: Poison pp_printf.
19258 (dump_decl_name): Avoid use of pp_printf.
19259 (dump_block_node): Likewise.
19260 (dump_generic_node): Likewise.
19261
19262 2021-03-04 Martin Sebor <msebor@redhat.com>
19263
19264 PR middle-end/96963
19265 PR middle-end/94655
19266 * builtins.c (handle_array_ref): New helper.
19267 (handle_mem_ref): New helper.
19268 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
19269 into new helper functions. Correct a workaround for vectorized
19270 assignments.
19271
19272 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
19273
19274 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
19275 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
19276 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
19277 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
19278 attribute for Power10.
19279 * config/rs6000/mma.md (*movoo): Likewise.
19280 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
19281 (define_mode_attr bits): Add DD/TD modes.
19282 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
19283 store_conditionalpti): Update size attribute for Power10.
19284
19285 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19286
19287 PR bootstrap/92002
19288 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
19289 -Wuninitialized, -Wmaybe-uninitialized.
19290 (wide-int.o-warn): Likewise.
19291
19292 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
19293
19294 * common/config/arm/arm-common.c: Include configargs.h.
19295 (arm_config_default): New function.
19296 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
19297 processors that do not support Thumb. Take into account the
19298 --with-mode configuration setting for selecting the default.
19299 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
19300 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
19301
19302 2021-03-03 Martin Liska <mliska@suse.cz>
19303
19304 PR gcov-profile/97461
19305 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
19306
19307 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
19308
19309 PR target/99234
19310 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
19311 point back the hard frame pointer to its default location when the
19312 frame is larger than SEH_MAX_FRAME_SIZE.
19313
19314 2021-03-03 Jakub Jelinek <jakub@redhat.com>
19315
19316 PR target/99321
19317 * config/i386/predicates.md (logic_operator): New define_predicate.
19318 * config/i386/i386.md (mov + mem using comm arith peephole2):
19319 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
19320 and the inner mode is [QH]Imode.
19321
19322 2021-03-03 Jakub Jelinek <jakub@redhat.com>
19323
19324 PR debug/99090
19325 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
19326 (new_loc_list): Clear end_entry.
19327 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
19328 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
19329 typo.
19330 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
19331 initialize also end_entry.
19332
19333 2021-03-03 Jakub Jelinek <jakub@redhat.com>
19334
19335 PR target/99085
19336 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
19337 partitions, if in non-layout mode after reorder_blocks also move
19338 affected blocks to ensure a single partition transition.
19339
19340 2021-03-03 Jason Merrill <jason@redhat.com>
19341
19342 PR c++/96078
19343 * cgraphunit.c (process_function_and_variable_attributes): Don't
19344 warn about flatten on an alias if the target also has it.
19345 * cgraph.h (symtab_node::get_alias_target_tree): New.
19346
19347 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
19348
19349 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
19350 period to symbol name.
19351 (tls_get_addr_internal<mode>): Same.
19352
19353 2021-03-02 David Malcolm <dmalcolm@redhat.com>
19354
19355 PR c/99323
19356 * diagnostic-show-locus.c
19357 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
19358 column 0.
19359
19360 2021-03-02 Martin Sebor <msebor@redhat.com>
19361
19362 PR middle-end/99276
19363 * builtins.c (warn_for_access): Remove stray warning text.
19364
19365 2021-03-02 Martin Sebor <msebor@redhat.com>
19366
19367 PR middle-end/99295
19368 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
19369 property.
19370
19371 2021-03-02 Jakub Jelinek <jakub@redhat.com>
19372
19373 PR debug/99319
19374 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
19375 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
19376 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
19377 DW_MACRO_define_strx and DW_MACRO_undef_strx.
19378 (save_macinfo_strings): Use DW_MACRO_*_str* even with
19379 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
19380 DW_MACRO_undef_strx.
19381
19382 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
19383
19384 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
19385 builtin signature.
19386 (BT_FN_V8HI_V8HI_UINT): Likewise.
19387 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
19388 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
19389 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
19390 New builtin definitions.
19391 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
19392 vector extension version.
19393 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
19394 available with current -march level.
19395 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
19396 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
19397 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
19398 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
19399 (vec_extend_to_fp32_lo): Likewise.
19400 (vec_round_from_fp32): Likewise.
19401 (vec_convert_to_fp16): Likewise.
19402 (vec_convert_from_fp16): Likewise.
19403 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
19404 (vclfnls_v8hi): Likewise.
19405 (vcrnfs_v8hi): Likewise.
19406 (vcfn_v8hi): Likewise.
19407 (vcnf_v8hi): Likewise.
19408
19409 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
19410
19411 * common/config/s390/s390-common.c (processor_flags_table): New entry.
19412 * config.gcc: Enable arch14 for --with-arch and --with-tune.
19413 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
19414 arch14 for unknown CPU models.
19415 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
19416 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
19417 (s390_get_sched_attrmask): Likewise.
19418 (s390_get_unit_mask): Likewise.
19419 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
19420 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
19421 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
19422 (TARGET_NNPA_P): New macro definitions.
19423 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
19424 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
19425
19426 2021-03-02 Jakub Jelinek <jakub@redhat.com>
19427
19428 PR middle-end/95757
19429 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
19430 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
19431 != 1 comparisons if name is lhs of a comparison.
19432
19433 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
19434
19435 PR target/44107
19436 PR target/48097
19437 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
19438 * config/darwin.c (darwin_should_restore_cfa_state): New.
19439 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
19440 * doc/tm.texi: Regenerated.
19441 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
19442 * dwarf2cfi.c (connect_traces): If the target requests, restore
19443 the CFA expression after a DW_CFA_restore.
19444 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
19445
19446 2021-03-01 Martin Liska <mliska@suse.cz>
19447
19448 PR target/99313
19449 * optc-save-gen.awk: Add 4 more exceptions.
19450
19451 2021-03-01 Nathan Sidwell <nathan@acm.org>
19452
19453 PR c++/99294
19454 * tree.h (TYPE_ALIGN_RAW): New accessor.
19455 (TYPE_ALIGN): Use it.
19456
19457 2021-03-01 Jan Hubicka <jh@suse.cz>
19458
19459 PR ipa/98338
19460 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
19461
19462 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
19463
19464 PR target/99234
19465 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
19466 point the hard frame pointer to the SSE register save area instead
19467 of the general register save area. Perform only minimal adjustment
19468 for small frames if it is initially not correctly aligned.
19469 (ix86_expand_prologue): Remove early saves for a SEH target.
19470 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
19471
19472 2021-02-28 Jakub Jelinek <jakub@redhat.com>
19473
19474 PR c/99304
19475 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
19476 typo - referneced -> referenced.
19477 * tree.c (component_ref_size): Fix comment typo -
19478 refernce -> reference.
19479 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
19480 traling -> trailing.
19481 (aliasing_component_refs_p): Fix comment typos -
19482 refernce -> reference and refernece -> reference and
19483 traling -> trailing.
19484 (nonoverlapping_refs_since_match_p): Fix comment typo -
19485 referneces -> references.
19486 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
19487 referneces -> references.
19488
19489 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
19490
19491 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
19492 diagnostic message to avoid use of a contraction and format
19493 warning.
19494
19495 2021-02-27 Jakub Jelinek <jakub@redhat.com>
19496
19497 PR other/99288
19498 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
19499 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
19500 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
19501 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
19502 typos.
19503
19504 2021-02-26 Richard Biener <rguenther@suse.de>
19505
19506 PR middle-end/99281
19507 * expr.c (store_field): For calls with return-slot optimization
19508 and addressable return type expand the store directly.
19509
19510 2021-02-26 Richard Biener <rguenther@suse.de>
19511
19512 PR c/99275
19513 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
19514
19515 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
19516
19517 PR target/99279
19518 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
19519 with an "if" test.
19520
19521 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
19522
19523 * config.gcc: Add rs6000-pcrel-opt.o.
19524 * config/rs6000/rs6000-pcrel-opt.c: New file.
19525 * config/rs6000/pcrel-opt.md: New file.
19526 * config/rs6000/predicates.md: Add d_form_memory predicate.
19527 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
19528 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
19529 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
19530 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
19531 and make_pass_pcrel_opt().
19532 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
19533 (rs6000_option_override_internal): Add pcrel-opt.
19534 (rs6000_delegitimize_address): Support pcrel-opt.
19535 (rs6000_opt_masks): Add pcrel-opt.
19536 (pcrel_opt_valid_mem_p): New function.
19537 (reg_to_non_prefixed): Make global.
19538 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
19539 (output_pcrel_opt_reloc): New function.
19540 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
19541 (pcrel_extern_addr): Set loads_extern_addr.
19542 Add include for pcrel-opt.md.
19543 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
19544 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
19545 pcrel-opt.md.
19546
19547 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
19548
19549 PR target/98996
19550 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
19551 If TARGET_64BIT and dest is SUBREG, we check the width, if it
19552 equal to SImode, we use SImode operation, just like what we are
19553 doing for REG one.
19554
19555 2021-02-26 Marek Polacek <polacek@redhat.com>
19556
19557 * builtins.c (warn_for_access): Fix typos.
19558
19559 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
19560
19561 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
19562 mark in front of the immediate quantity.
19563 (<optab>_rolsi3_uxtw): Likewise.
19564
19565 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
19566
19567 PR target/99271
19568 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
19569 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
19570 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
19571 address and disable when the FPCXT is not available.
19572 (nonsecure_call_value_reg_thumb2): Likewise.
19573
19574 2021-02-25 Nathan Sidwell <nathan@acm.org>
19575
19576 PR c++/99166
19577 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
19578
19579 2021-02-25 Tamar Christina <tamar.christina@arm.com>
19580
19581 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
19582
19583 2021-02-25 Richard Biener <rguenther@suse.de>
19584
19585 PR tree-optimization/99253
19586 * tree-vect-loop.c (check_reduction_path): First compute
19587 code, then verify out-of-loop uses.
19588
19589 2021-02-25 Jakub Jelinek <jakub@redhat.com>
19590
19591 PR target/95798
19592 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
19593
19594 2021-02-25 Jakub Jelinek <jakub@redhat.com>
19595
19596 PR tree-optimization/80635
19597 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
19598 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
19599 has mode precision.
19600
19601 2021-02-25 Richard Biener <rguenther@suse.de>
19602
19603 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
19604 load_map population.
19605 (vect_match_slp_patterns_2): Revert part of last change.
19606 (vect_analyze_slp): Do not interleave optimize_load_redistribution
19607 with pattern detection but do it afterwards. Dump the
19608 whole SLP graph after pattern recognition and load
19609 redistribution optimization finished.
19610
19611 2021-02-24 Jakub Jelinek <jakub@redhat.com>
19612
19613 PR fortran/99226
19614 * omp-low.c (struct omp_context): Add teams_nested_p and
19615 nonteams_nested_p members.
19616 (scan_omp_target): Diagnose teams nested inside of target with other
19617 directives strictly nested inside of the same target.
19618 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
19619 ctx->nonteams_nested_p as needed.
19620
19621 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
19622
19623 PR inline-asm/99123
19624 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
19625
19626 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
19627
19628 * config/cris/cris.c (cris_expand_prologue): Set
19629 current_function_static_stack_size, if flag_stack_usage_info.
19630
19631 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
19632
19633 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
19634 (rs6000_final_prescan_insn): Adjust.
19635 (rs6000_asm_output_opcode): Likewise.
19636
19637 2021-02-24 Martin Sebor <msebor@redhat.com>
19638
19639 PR middle-end/97172
19640 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
19641 from function arguments.
19642
19643 2021-02-24 Tamar Christina <tamar.christina@arm.com>
19644
19645 PR tree-optimization/99220
19646 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
19647 node from cache when it's about to be deleted.
19648
19649 2021-02-24 Jakub Jelinek <jakub@redhat.com>
19650
19651 PR tree-optimization/99225
19652 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
19653 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
19654 build_int_cst (..., 1). Formatting fixes.
19655
19656 2021-02-24 Tamar Christina <tamar.christina@arm.com>
19657
19658 PR tree-optimization/99149
19659 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
19660 buffer.
19661 (vect_slp_reset_pattern): Remove.
19662 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
19663 (complex_mul_pattern::build, complex_fma_pattern::build,
19664 complex_fms_pattern::build): Fix ref counts.
19665 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
19666 when node is being deleted.
19667 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
19668 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
19669 stores.
19670 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
19671
19672 2021-02-24 Matthias Klose <doko@ubuntu.com>
19673
19674 Revert:
19675 2020-12-07 Matthias Klose <doko@ubuntu.com>
19676
19677 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
19678 and ENABLE_RTL_FLAG_CHECKING.
19679
19680 2021-02-24 Richard Biener <rguenther@suse.de>
19681
19682 PR c/99224
19683 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
19684
19685 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
19686
19687 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
19688 (vsx_assemble_pair): ...to this.
19689 (*mma_assemble_pair): Rename from this...
19690 (*vsx_assemble_pair): ...to this.
19691 (mma_disassemble_pair): Rename from this...
19692 (vsx_disassemble_pair): ...to this.
19693 (*mma_disassemble_pair): Rename from this...
19694 (*vsx_disassemble_pair): ...to this.
19695 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
19696 BU_COMPAT): New macros.
19697 (mma_assemble_pair): Rename from this...
19698 (vsx_assemble_pair): ...to this.
19699 (mma_disassemble_pair): Rename from this...
19700 (vsx_disassemble_pair): ...to this.
19701 (mma_assemble_pair): New compatibility built-in.
19702 (mma_disassemble_pair): Likewise.
19703 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
19704 (RS6000_BUILTIN_COMPAT): Define.
19705 (bdesc_compat): New.
19706 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
19707 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
19708 and VSX_BUILTIN_ASSEMBLE_PAIR.
19709 (rs6000_init_builtins): Register compatibility built-ins.
19710 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
19711 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
19712 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
19713 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
19714 (__builtin_vsx_assemble_pair): ...to this.
19715 (__builtin_mma_disassemble_pair): Rename from this...
19716 (__builtin_vsx_disassemble_pair): ...to this.
19717
19718 2021-02-23 Martin Liska <mliska@suse.cz>
19719
19720 PR sanitizer/99168
19721 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
19722 with different alignment. That leads to an invalid red zone
19723 size allocated in runtime.
19724
19725 2021-02-23 Jakub Jelinek <jakub@redhat.com>
19726
19727 PR tree-optimization/99204
19728 * fold-const.c (fold_read_from_constant_string): Check that
19729 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
19730
19731 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
19732 Kewen Lin <linkw@gcc.gnu.org>
19733
19734 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
19735 (rotl<mode>3_insert_3): ...this.
19736 (plus_ior_xor): New code_iterator.
19737 (define_split for GPR rl*imi): New splitter.
19738 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
19739 for integer merging.
19740
19741 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19742
19743 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
19744 Define.
19745 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
19746 into a register when the above is enabled.
19747 * config/aarch64/aarch64.c (neoversev1_tunings):
19748 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
19749 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
19750
19751 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
19752
19753 * config/cris/cris.c (cris_print_operand) <'T'>: Change
19754 valid operand from is now an addi mult-value to shift-value.
19755 * config/cris/cris.md (*addi): Change expression of scaled
19756 operand from mult to ashift.
19757 * config/cris/cris.md (*addi_reload): New insn_and_split.
19758
19759 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
19760
19761 PR target/85074
19762 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
19763 hook_bool_const_tree_hwi_hwi_const_tree_true.
19764 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
19765
19766 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
19767
19768 PR rtl-optimization/98791
19769 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
19770 for unordered modes.
19771
19772 2021-02-22 Martin Liska <mliska@suse.cz>
19773
19774 * tree-inline.c (inline_forbidden_p): Set
19775 inline_forbidden_reason.
19776
19777 2021-02-22 Richard Biener <rguenther@suse.de>
19778
19779 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
19780 costed subgraph.
19781
19782 2021-02-22 Richard Biener <rguenther@suse.de>
19783
19784 PR tree-optimization/99165
19785 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
19786 Accumulate changed to ret.
19787
19788 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
19789
19790 Revert:
19791 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
19792
19793 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
19794
19795 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
19796
19797 PR target/99134
19798 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
19799 pattern.
19800 (trunctf<DFP_ALL:mode>2): Likewise.
19801 (trunctdtf2_vr): Likewise.
19802 (trunctdtf2): Likewise.
19803 (extend<DFP_ALL:mode>tf2_vr): Likewise.
19804 (extend<DFP_ALL:mode>tf2): Likewise.
19805 (extendtftd2_vr): Likewise.
19806 (extendtftd2): Likewise.
19807
19808 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
19809
19810 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
19811 add memory alternative.
19812 (tf_to_fprx2): New pattern.
19813
19814 2021-02-19 Martin Sebor <msebor@redhat.com>
19815
19816 PR c/97172
19817 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
19818 (attr_access::free_lang_data): Remove a spurious test.
19819
19820 2021-02-19 Nathan Sidwell <nathan@acm.org>
19821
19822 * doc/invoke.texi (flang-info-module-read): Document.
19823
19824 2021-02-19 Martin Liska <mliska@suse.cz>
19825
19826 PR translation/99167
19827 * params.opt: Fix typo.
19828
19829 2021-02-19 Richard Biener <rguenther@suse.de>
19830
19831 PR middle-end/99122
19832 * tree-inline.c (inline_forbidden_p): Do not inline functions
19833 with VLA arguments or return value.
19834
19835 2021-02-19 Jakub Jelinek <jakub@redhat.com>
19836
19837 PR target/98998
19838 * config/arm/arm.md (*stack_protect_combined_set_insn,
19839 *stack_protect_combined_test_insn): If force_const_mem result
19840 is not valid general operand, force its address into the destination
19841 register first.
19842
19843 2021-02-19 Jakub Jelinek <jakub@redhat.com>
19844
19845 PR ipa/99034
19846 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
19847 pad or non-local label, put FORCED_LABELs from bb b after that label
19848 rather than before it.
19849
19850 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
19851
19852 PR target/98657
19853 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
19854 expand_vector_broadcast' to emit the vec_duplicate operand.
19855
19856 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
19857
19858 PR rtl-optimization/96264
19859 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
19860 hard regs.
19861
19862 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
19863
19864 PR target/99113
19865 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
19866 looking up the retain attribute.
19867 (resolve_unique_section): Likewise.
19868 (get_variable_section): Likewise.
19869 (switch_to_section): Likewise. Warn when a symbol without the
19870 retain attribute and a symbol with the retain attribute are
19871 placed in the section with the same name, instead of the used
19872 attribute.
19873 * doc/extend.texi: Document the "retain" attribute.
19874
19875 2021-02-18 Nathan Sidwell <nathan@acm.org>
19876
19877 PR c++/99023
19878 * doc/invoke.texi (flang-info-include-translate): Document header
19879 lookup behaviour.
19880
19881 2021-02-18 Richard Biener <rguenther@suse.de>
19882
19883 PR middle-end/99122
19884 * ipa-fnsummary.c (analyze_function_body): Set
19885 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
19886 * tree-inline.c (insert_init_debug_bind): Pass NULL for
19887 error_mark_node values.
19888 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
19889 values.
19890 (setup_one_parameter): Delay force_value_to_type until when
19891 it's needed.
19892
19893 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
19894
19895 PR tree-optimization/99142
19896 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
19897
19898 2021-02-18 Jakub Jelinek <jakub@redhat.com>
19899
19900 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
19901 wide_int_bitmask::wide_int_bitmask (uint64_t),
19902 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
19903 wide_int_bitmask::operator ~ () const,
19904 wide_int_bitmask::operator | (wide_int_bitmask) const,
19905 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
19906 instead of inline.
19907 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
19908 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
19909 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
19910 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
19911 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
19912 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
19913 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
19914 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
19915 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
19916 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
19917 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
19918 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
19919 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
19920 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
19921 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
19922 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
19923 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
19924 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
19925 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
19926 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
19927 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
19928 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
19929 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
19930 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
19931
19932 2021-02-18 Jakub Jelinek <jakub@redhat.com>
19933
19934 PR middle-end/99109
19935 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
19936 (build_printable_array_type): ... this. Add nelts argument. For
19937 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
19938 nelts, call build_array_type_nelts.
19939 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
19940 instead of build_zero_elt_array_type and build_array_type_nelts.
19941
19942 2021-02-18 Jakub Jelinek <jakub@redhat.com>
19943
19944 PR target/99104
19945 * config/i386/i386.c (distance_non_agu_define): Don't call
19946 extract_insn_cached here.
19947 (ix86_lea_outperforms): Save and restore recog_data around call
19948 to distance_non_agu_define and distance_agu_use.
19949 (ix86_ok_to_clobber_flags): Remove.
19950 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
19951 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
19952 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
19953 into define_insn. Move the splitting to define_peephole2 and
19954 check there using peep2_regno_dead_p if FLAGS_REG is dead.
19955
19956 2021-02-17 Julian Brown <julian@codesourcery.com>
19957
19958 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
19959 for non-decls.
19960
19961 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
19962
19963 PR target/98491
19964 * config/mips/mips.c (mips_symbol_insns): Do not use
19965 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
19966
19967 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
19968
19969 PR inline-asm/98096
19970 * stmt.c (resolve_operand_name_1): Take inout operands into account
19971 for access to labels by names.
19972 * doc/extend.texi: Describe counting operands for accessing labels.
19973
19974 2021-02-16 Richard Biener <rguenther@suse.de>
19975
19976 PR tree-optimization/38474
19977 * tree-ssa-structalias.c (variable_info::address_taken): New.
19978 (new_var_info): Initialize address_taken.
19979 (process_constraint): Set address_taken.
19980 (solve_constraints): Use the new address_taken flag rather
19981 than is_reg_var for sorting variables.
19982 (dump_constraint): Dump the variable number if the name
19983 is just NULL.
19984
19985 2021-02-16 Jakub Jelinek <jakub@redhat.com>
19986
19987 PR target/99100
19988 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
19989 multiply by 4096 and for inbranch by 8192.
19990 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
19991 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
19992
19993 2021-02-15 Maya Rashish <coypu@sdf.org>
19994
19995 * config/aarch64/aarch64.c (aarch64_init_builtins):
19996 Call SUBTARGET_INIT_BUILTINS.
19997
19998 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
19999
20000 PR rtl-optimization/98872
20001 * init-regs.c (initialize_uninitialized_regs): Skip initialization
20002 if CONST0_RTX is NULL.
20003
20004 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
20005
20006 PR rtl-optimization/98863
20007 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
20008 (function_info::build_info): Turn into a declaration, moving the
20009 definition to internals.h.
20010 (function_info::bb_walker): Declare.
20011 (function_info::create_reg_use): Likewise.
20012 (function_info::calculate_potential_phi_regs): Take a build_info
20013 parameter.
20014 (function_info::place_phis, function_info::create_ebbs): Declare.
20015 (function_info::calculate_ebb_live_in_for_debug): Likewise.
20016 (function_info::populate_backedge_phis): Delete.
20017 (function_info::start_block, function_info::end_block): Declare.
20018 (function_info::populate_phi_inputs): Delete.
20019 (function_info::m_potential_phi_regs): Move information to build_info.
20020 * rtl-ssa/internals.h: New file.
20021 (function_info::bb_phi_info): New class.
20022 (function_info::build_info): Moved from functions.h.
20023 Add a constructor and destructor.
20024 (function_info::build_info::ebb_use): Delete.
20025 (function_info::build_info::ebb_def): Likewise.
20026 (function_info::build_info::bb_live_out): Likewise.
20027 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
20028 (function_info::build_info::potential_phi_regs): Likewise.
20029 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
20030 (function_info::build_info::ebb_def_regs): Likewise.
20031 (function_info::build_info::bb_phis): Likewise.
20032 (function_info::build_info::bb_mem_live_out): Likewise.
20033 (function_info::build_info::bb_to_rpo): Likewise.
20034 (function_info::build_info::def_stack): Likewise.
20035 (function_info::build_info::old_def_stack_limit): Likewise.
20036 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
20037 Remove the regno argument. Push the previous definition onto the
20038 definition stack where necessary.
20039 * rtl-ssa/accesses.cc: Include internals.h.
20040 * rtl-ssa/changes.cc: Likewise.
20041 * rtl-ssa/blocks.cc: Likewise.
20042 (function_info::build_info::build_info): Define.
20043 (function_info::build_info::~build_info): Likewise.
20044 (function_info::bb_walker): New class.
20045 (function_info::bb_walker::bb_walker): Define.
20046 (function_info::add_live_out_use): Convert a logarithmic-complexity
20047 test into a linear one. Allow the same definition to be passed
20048 multiple times.
20049 (function_info::calculate_potential_phi_regs): Moved from
20050 functions.cc. Take a build_info parameter and store the
20051 information there instead.
20052 (function_info::place_phis): New function.
20053 (function_info::add_entry_block_defs): Update call to record_reg_def.
20054 (function_info::calculate_ebb_live_in_for_debug): New function.
20055 (function_info::add_phi_nodes): Use bb_phis to decide which
20056 registers need phi nodes and initialize ebb_def_regs accordingly.
20057 Do not add degenerate phis here.
20058 (function_info::add_artificial_accesses): Use create_reg_use.
20059 Assert that all definitions are listed in the DF LR sets.
20060 Update call to record_reg_def.
20061 (function_info::record_block_live_out): Record live-out register
20062 values in the phis of successor blocks. Use the live-out set
20063 when processing the last block in an EBB, instead of always
20064 using the live-in sets of successor blocks. AND the live sets
20065 with the set of registers that have been defined in the EBB,
20066 rather than with all potential phi registers. Cope correctly
20067 with branches back to the start of the current EBB.
20068 (function_info::start_block): New function.
20069 (function_info::end_block): Likewise.
20070 (function_info::populate_phi_inputs): Likewise.
20071 (function_info::create_ebbs): Likewise.
20072 (function_info::process_all_blocks): Rewrite into a multi-phase
20073 process.
20074 * rtl-ssa/functions.cc: Include internals.h.
20075 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
20076 (function_info::init_function_data): Remove caller.
20077 * rtl-ssa/insns.cc: Include internals.h
20078 (function_info::create_reg_use): New function. Lazily any
20079 degenerate phis needed by the linear RPO view.
20080 (function_info::record_use): Use create_reg_use. When processing
20081 debug uses, use potential_phi_regs and test it before checking
20082 whether the register is live on entry to the current EBB. Lazily
20083 calculate ebb_live_in_for_debug.
20084 (function_info::record_call_clobbers): Update call to record_reg_def.
20085 (function_info::record_def): Likewise.
20086
20087 2021-02-15 Martin Liska <mliska@suse.cz>
20088
20089 * toplev.c (init_asm_output): Free output of
20090 gen_command_line_string function.
20091 (process_options): Likewise.
20092
20093 2021-02-15 Martin Liska <mliska@suse.cz>
20094
20095 * params.opt: Add 2 missing Param keywords.
20096
20097 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
20098
20099 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
20100
20101 2021-02-15 Jakub Jelinek <jakub@redhat.com>
20102
20103 PR tree-optimization/99079
20104 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
20105 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
20106 require both type and TREE_TYPE (@1) to be integral types and either
20107 type having smaller or equal precision, or TREE_TYPE (@1) being
20108 unsigned type, or type being signed type. If TREE_TYPE (@1)
20109 doesn't have wrapping overflow, perform the subtraction of one in
20110 unsigned type.
20111
20112 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
20113 Richard Biener <rguether@suse.de>
20114
20115 PR ipa/97346
20116 * ipa-reference.c (ipa_init): Only conditinally initialize
20117 reference_vars_to_consider.
20118 (propagate): Conditionally deninitialize reference_vars_to_consider.
20119 (ipa_reference_write_optimization_summary): Sanity check that
20120 reference_vars_to_consider is not allocated.
20121
20122 2021-02-13 Levy Hsu <admin@levyhsu.com>
20123
20124 PR target/97417
20125 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
20126 extend parameter to get_si_mem_base_reg declaration.
20127 (get_si_mem_base_reg): Add extend parameter. Set it.
20128 (analyze): Pass extend arg to get_si_mem_base_reg.
20129 (transform): Likewise. Use it when rewriting mems.
20130 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
20131 loads and emit sign/zero extending load followed by subreg move.
20132
20133 2021-02-13 Jim Wilson <jimw@sifive.com>
20134
20135 PR target/97417
20136 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
20137 exit when !reload_completed. Only perform check for compressed reg
20138 if reload_completed.
20139 (riscv_rtx_costs): In MEM case, when optimizing for size and
20140 shorten memrefs, if not compressible, then increase cost.
20141
20142 2021-02-13 Jakub Jelinek <jakub@redhat.com>
20143
20144 PR rtl-optimization/98439
20145 * recog.c (pass_split_before_regstack::gate): Enable even when
20146 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
20147 on.
20148
20149 2021-02-13 Jakub Jelinek <jakub@redhat.com>
20150
20151 PR target/96166
20152 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
20153 swap of V2SImode elements in memory into DImode memory rotate by 32.
20154
20155 2021-02-12 Martin Sebor <msebor@redhat.com>
20156
20157 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
20158
20159 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
20160
20161 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
20162 m_temp_obstack rather than m_obstack to allocate the temporary use.
20163
20164 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
20165
20166 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
20167 as read-modify operations.
20168
20169 2021-02-12 Richard Biener <rguenther@suse.de>
20170
20171 PR middle-end/38474
20172 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
20173 fbi->aa_walk_budget is bigger than zero. Update
20174 fbi->aa_walk_budget.
20175 (param_change_prob): Likewise.
20176 * ipa-prop.c (detect_type_change_from_memory_writes):
20177 Properly account walk_aliased_vdefs.
20178 (parm_preserved_before_stmt_p): Canonicalize updates.
20179 (parm_ref_data_preserved_p): Likewise.
20180 (parm_ref_data_pass_through_p): Likewise.
20181 (determine_known_aggregate_parts): Account own alias queries.
20182
20183 2021-02-12 Martin Liska <mliska@suse.cz>
20184
20185 * opts-common.c (decode_cmdline_option): Release werror_arg.
20186 * opts.c (gen_producer_string): Release output of
20187 gen_command_line_string.
20188
20189 2021-02-12 Richard Biener <rguenther@suse.de>
20190
20191 PR tree-optimization/38474
20192 * params.opt (-param=max-store-chains-to-track=): New param.
20193 (-param=max-stores-to-track=): Likewise.
20194 * doc/invoke.texi (max-store-chains-to-track): Document.
20195 (max-stores-to-track): Likewise.
20196 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
20197 New.
20198 (pass_store_merging::m_n_stores): Likewise.
20199 (pass_store_merging::terminate_and_process_chain): Update
20200 m_n_stores and m_n_chains.
20201 (pass_store_merging::process_store): Likewise. Terminate
20202 oldest chains if the number of stores or chains get too large.
20203 (imm_store_chain_info::terminate_and_process_chain): Dump
20204 chain length.
20205
20206 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
20207
20208 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
20209 the cold section, emit a nop before the directive if the previous
20210 active instruction can throw.
20211
20212 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
20213
20214 PR target/99041
20215 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
20216 memory addresses that are legal for quad word accesses.
20217
20218 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
20219
20220 PR target/98931
20221 * config/arm/thumb2.md (*doloop_end_internal): Generate
20222 alternative sequence to handle long range branches.
20223
20224 2021-02-11 Joel Hutton <joel.hutton@arm.com>
20225
20226 PR tree-optimization/98772
20227 * optabs-tree.c (supportable_half_widening_operation): New function
20228 to check for supportable V8QI->V8HI widening patterns.
20229 * optabs-tree.h (supportable_half_widening_operation): New function.
20230 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
20231 to create promotion stmts for V8QI->V8HI widening patterns.
20232 (vectorizable_conversion): Add case for V8QI->V8HI.
20233
20234 2021-02-11 Richard Biener <rguenther@suse.de>
20235
20236 * sparseset.h (SPARSESET_ELT_BITS): Remove.
20237 (SPARSESET_ELT_TYPE): Use unsigned int.
20238 * fwprop.c: Do not include sparseset.h.
20239
20240 2021-02-10 Jakub Jelinek <jakub@redhat.com>
20241
20242 PR c++/99035
20243 * varasm.c (declare_weak): For -fsyntax-only, allow even
20244 TREE_ASM_WRITTEN function decls.
20245
20246 2021-02-10 Jakub Jelinek <jakub@redhat.com>
20247
20248 PR target/99025
20249 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
20250 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
20251 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
20252 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
20253 calling simplify_gen_subreg on it.
20254
20255 2021-02-10 Martin Liska <mliska@suse.cz>
20256
20257 * config/nvptx/nvptx.c (nvptx_option_override): Use
20258 flag_patchable_function_entry instead of the removed
20259 function_entry_patch_area_size.
20260
20261 2021-02-10 Martin Liska <mliska@suse.cz>
20262
20263 PR tree-optimization/99002
20264 PR tree-optimization/99026
20265 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
20266 leak when adjacent cases are merged.
20267 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
20268 release_clusters.
20269 (make_pass_lower_switch): Remove trailing whitespace.
20270 * tree-switch-conversion.h (release_clusters): New.
20271
20272 2021-02-10 Richard Biener <rguenther@suse.de>
20273
20274 PR rtl-optimization/99054
20275 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
20276 (fixup_partitions): Adjust.
20277 (rtl_verify_edges): Likewise.
20278
20279 2021-02-10 Jakub Jelinek <jakub@redhat.com>
20280
20281 PR middle-end/99007
20282 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
20283 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
20284 calls.
20285
20286 2021-02-10 Richard Biener <rguenther@suse.de>
20287
20288 PR ipa/99029
20289 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
20290 for callees.
20291
20292 2021-02-10 Richard Biener <rguenther@suse.de>
20293
20294 PR tree-optimization/99024
20295 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
20296 clear loop->aux if it is associated with the destroyed loop_vinfo.
20297
20298 2021-02-10 Martin Liska <mliska@suse.cz>
20299
20300 PR tree-optimization/99002
20301 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
20302 in the function.
20303
20304 2021-02-10 Martin Liska <mliska@suse.cz>
20305
20306 PR ipa/99003
20307 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
20308 a reference exists.
20309
20310 2021-02-10 Jakub Jelinek <jakub@redhat.com>
20311
20312 PR debug/98755
20313 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
20314 at class scope for DWARF5+.
20315
20316 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
20317
20318 PR rtl-optimization/96015
20319 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
20320 (relax_delay_slots): When deleting a jump to the next active
20321 instruction over a barrier, first delete the barrier if the
20322 jump is the only way to reach the target label.
20323
20324 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
20325
20326 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
20327 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
20328 vector multiplies and vect.alu for SSRA.
20329 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
20330 vect.mul cost field.
20331 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
20332 * config/arm/arm.c: Likewise.
20333
20334 2021-02-09 Richard Biener <rguenther@suse.de>
20335
20336 PR tree-optimization/98863
20337 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
20338 * tree-ssa-sccvn.c (last_pushed_avail): New global.
20339 (rpo_elim::eliminate_push_avail): Chain pushed avails.
20340 (unwind_state::avail_top): Add.
20341 (do_unwind): Rewrite unwinding of avail entries.
20342 (do_rpo_vn): Initialize last_pushed_avail and
20343 avail_top of the undo state.
20344
20345 2021-02-09 Jakub Jelinek <jakub@redhat.com>
20346
20347 PR middle-end/99004
20348 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
20349 const char * to char * and free those pointers after use.
20350
20351 2021-02-09 Richard Biener <rguenther@suse.de>
20352
20353 PR tree-optimization/99017
20354 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
20355 zero vector cost entries.
20356
20357 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
20358
20359 PR middle-end/98974
20360 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
20361 parameter in vectorizable_condition.
20362
20363 2021-02-08 Richard Biener <rguenther@suse.de>
20364
20365 PR lto/96591
20366 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
20367
20368 2021-02-08 Martin Liska <mliska@suse.cz>
20369
20370 PR lto/98971
20371 * cfgexpand.c (pass_expand::execute): Parse per-function option
20372 flag_patchable_function_entry and use it.
20373 * common.opt: Remove function_entry_patch_area_size and
20374 function_entry_patch_area_start global variables.
20375 * opts.c (parse_and_check_patch_area): New function.
20376 (common_handle_option): Use it.
20377 * opts.h (parse_and_check_patch_area): New function.
20378 * toplev.c (process_options): Parse and use
20379 function_entry_patch_area_size.
20380
20381 2021-02-08 Martin Sebor <msebor@redhat.com>
20382
20383 * doc/extend.texi (attribute malloc): Correct typos.
20384
20385 2021-02-05 Nathan Sidwell <nathan@acm.org>
20386
20387 PR driver/98943
20388 * gcc.c (driver::maybe_run_linker): Check for input file
20389 accessibility if not linking.
20390
20391 2021-02-05 Richard Biener <rguenther@suse.de>
20392
20393 PR tree-optimization/98855
20394 * tree-vectorizer.h (add_stmt_cost): New overload.
20395 * tree-vect-slp.c (li_cost_vec_cmp): New.
20396 (vect_bb_slp_scalar_cost): Cost individual loop regions
20397 separately. Account for the scalar instance root stmt.
20398
20399 2021-02-05 Tom de Vries <tdevries@suse.de>
20400
20401 PR debug/98656
20402 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
20403 argument.
20404 (bit_test_cluster::emit): Reuse location_t for newly created
20405 gswitch statement.
20406 (switch_decision_tree::try_switch_expansion): Preserve
20407 location_t.
20408 * tree-switch-conversion.h: Change function signatures.
20409
20410 2021-02-05 Jakub Jelinek <jakub@redhat.com>
20411
20412 PR target/98957
20413 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
20414 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
20415 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
20416 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
20417
20418 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20419
20420 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
20421 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
20422 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
20423 (vget_high_f16): Reimplement using new builtin.
20424 (vget_high_f32): Likewise.
20425 (vget_high_f64): Likewise.
20426 (vget_high_p8): Likewise.
20427 (vget_high_p16): Likewise.
20428 (vget_high_p64): Likewise.
20429 (vget_high_s8): Likewise.
20430 (vget_high_s16): Likewise.
20431 (vget_high_s32): Likewise.
20432 (vget_high_s64): Likewise.
20433 (vget_high_u8): Likewise.
20434 (vget_high_u16): Likewise.
20435 (vget_high_u32): Likewise.
20436 (vget_high_u64): Likewise.
20437
20438 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20439
20440 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
20441 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
20442 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
20443 (vget_low_f16): Reimplement using new builtin.
20444 (vget_low_f32): Likewise.
20445 (vget_low_f64): Likewise.
20446 (vget_low_p8): Likewise.
20447 (vget_low_p16): Likewise.
20448 (vget_low_p64): Likewise.
20449 (vget_low_s8): Likewise.
20450 (vget_low_s16): Likewise.
20451 (vget_low_s32): Likewise.
20452 (vget_low_s64): Likewise.
20453 (vget_low_u8): Likewise.
20454 (vget_low_u16): Likewise.
20455 (vget_low_u32): Likewise.
20456 (vget_low_u64): Likewise.
20457
20458 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
20459
20460 * gcc.c (print_multilib_info): Check all required argument is provided
20461 by default arg.
20462
20463 2021-02-05 liuhongt <hongtao.liu@intel.com>
20464
20465 PR target/98537
20466 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
20467 generate integer mask comparison for 128/256-bits vector when
20468 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
20469 delete redundant !maskcmp condition.
20470 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
20471 here.
20472 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
20473 condition directly to if (maskcmp), add extra check for
20474 cmpmode, it should be MODE_INT.
20475 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
20476 parameters op_true/op_false.
20477 (ix86_use_mask_cmp_p): New.
20478
20479 2021-02-05 liuhongt <hongtao.liu@intel.com>
20480
20481 PR target/98172
20482 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
20483 Remove m_GENERIC from ~list.
20484 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
20485
20486 2021-02-04 David Malcolm <dmalcolm@redhat.com>
20487
20488 PR c/97932
20489 * diagnostic-show-locus.c (compatible_locations_p): Require
20490 locations in the same macro map to be either both from the
20491 macro definition, or both from the macro arguments.
20492
20493 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
20494
20495 * config/aarch64/aarch64-simd-builtins.def: Add
20496 [su]mull_hi_lane[q] builtin generator macros.
20497 * config/aarch64/aarch64-simd.md
20498 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
20499 (aarch64_<su>mull_hi_lane<mode>): Define.
20500 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
20501 (aarch64_<su>mull_hi_laneq<mode>): Define.
20502 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
20503 builtin instead of inline asm.
20504 (vmull_high_lane_s32): Likewise.
20505 (vmull_high_lane_u16): Likewise.
20506 (vmull_high_lane_u32): Likewise.
20507 (vmull_high_laneq_s16): Likewise.
20508 (vmull_high_laneq_s32): Likewise.
20509 (vmull_high_laneq_u16): Likewise.
20510 (vmull_high_laneq_u32): Liekwise.
20511
20512 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
20513
20514 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
20515 builtin generator macros.
20516 * config/aarch64/aarch64-simd.md
20517 (aarch64_<su>mull_hi_n<mode>_insn): Define.
20518 (aarch64_<su>mull_hi_n<mode>): Define.
20519 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
20520 instead of inline asm.
20521 (vmull_high_n_s32): Likewise.
20522 (vmull_high_n_u16): Likewise.
20523 (vmull_high_n_u32): Likewise.
20524
20525 2021-02-04 Richard Biener <rguenther@suse.de>
20526
20527 PR tree-optimization/98855
20528 * tree-vect-loop.c (vectorizable_phi): Do not cost
20529 single-argument PHIs.
20530 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
20531 * tree-vect-stmts.c (vectorizable_bswap): Also perform
20532 costing for SLP operation.
20533
20534 2021-02-04 Martin Liska <mliska@suse.cz>
20535
20536 * doc/extend.texi: Mention -mprefer-vector-width in target
20537 attributes.
20538
20539 2021-02-03 Martin Sebor <msebor@redhat.com>
20540
20541 PR tree-optimization/98937
20542 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
20543 Flush pointer_query cache.
20544
20545 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
20546
20547 * config/rs6000/genfusion.pl (gen_2logical): Add missing
20548 fixes based on patch review.
20549 * config/rs6000/fusion.md: Regenerate file.
20550
20551 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
20552
20553 * config/rs6000/t-rs6000: Comment out auto generation of
20554 fusion.md for now.
20555
20556 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
20557
20558 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
20559 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
20560 (output_file_start): Add gfx908.
20561 * config/gcn/gcn.opt (gpu_type): Add gfx908.
20562 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
20563 (MULTILIB_DIRNAMES): Add gfx908.
20564 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
20565 (main): Recognize gfx908.
20566 * config/gcn/t-omp-device: Add gfx908.
20567
20568 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
20569
20570 * config/aarch64/aarch64-simd-builtins.def: Add
20571 [su]mlsl_hi_lane[q] builtin macro generators.
20572 * config/aarch64/aarch64-simd.md
20573 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
20574 (aarch64_<su>mlsl_hi_lane<mode>): Define.
20575 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
20576 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
20577 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
20578 builtin instead of inline asm.
20579 (vmlsl_high_lane_s32): Likewise.
20580 (vmlsl_high_lane_u16): Likewise.
20581 (vmlsl_high_lane_u32): Likewise.
20582 (vmlsl_high_laneq_s16): Likewise.
20583 (vmlsl_high_laneq_s32): Likewise.
20584 (vmlsl_high_laneq_u16): Likewise.
20585 (vmlsl_high_laneq_u32): Likewise.
20586 (vmlal_high_laneq_u32): Likewise.
20587
20588 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
20589
20590 * config/aarch64/aarch64-simd-builtins.def: Add
20591 [su]mlal_hi_lane[q] builtin generator macros.
20592 * config/aarch64/aarch64-simd.md
20593 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
20594 (aarch64_<su>mlal_hi_lane<mode>): Define.
20595 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
20596 (aarch64_<su>mlal_hi_laneq<mode>): Define.
20597 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
20598 builtin instead of inline asm.
20599 (vmlal_high_lane_s32): Likewise.
20600 (vmlal_high_lane_u16): Likewise.
20601 (vmlal_high_lane_u32): Likewise.
20602 (vmlal_high_laneq_s16): Likewise.
20603 (vmlal_high_laneq_s32): Likewise.
20604 (vmlal_high_laneq_u16): Likewise.
20605 (vmlal_high_laneq_u32): Likewise.
20606
20607 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
20608
20609 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
20610 builtin generator macros.
20611 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
20612 Define.
20613 (aarch64_<su>mlsl_hi_n<mode>): Define.
20614 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
20615 instead of inline asm.
20616 (vmlsl_high_n_s32): Likewise.
20617 (vmlsl_high_n_u16): Likewise.
20618 (vmlsl_high_n_u32): Likewise.
20619
20620 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
20621
20622 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
20623 builtin generator macros.
20624 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
20625 Define.
20626 (aarch64_<su>mlal_hi_n<mode>): Define.
20627 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
20628 instead of inline asm.
20629 (vmlal_high_n_s32): Likewise.
20630 (vmlal_high_n_u16): Likewise.
20631 (vmlal_high_n_u32): Likewise.
20632
20633 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
20634
20635 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
20636 generator macros.
20637 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
20638 Rename to...
20639 (aarch64_<su>mlal_hi<mode>_insn): This.
20640 (aarch64_<su>mlal_hi<mode>): Define.
20641 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
20642 instead of inline asm.
20643 (vmlal_high_s16): Likewise.
20644 (vmlal_high_s32): Likewise.
20645 (vmlal_high_u8): Likewise.
20646 (vmlal_high_u16): Likewise.
20647 (vmlal_high_u32): Likewise.
20648
20649 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
20650
20651 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
20652 after calling alter_subreg() on a (mem).
20653
20654 2021-02-03 Martin Liska <mliska@suse.cz>
20655
20656 PR lto/98912
20657 * lto-streamer-out.c (produce_lto_section): Fill up missing
20658 padding.
20659 * lto-streamer.h (struct lto_section): Add _padding field.
20660
20661 2021-02-03 Richard Biener <rguenther@suse.de>
20662
20663 * lto-streamer.c (lto_get_section_name): Free temporary
20664 buffer.
20665 * tree-loop-distribution.c
20666 (loop_distribution::merge_dep_scc_partitions): Free edge data.
20667
20668 2021-02-03 Jakub Jelinek <jakub@redhat.com>
20669
20670 PR middle-end/97487
20671 * ifcvt.c (noce_can_force_operand): New function.
20672 (noce_emit_move_insn): Use it.
20673 (noce_try_sign_mask): Likewise. Formatting fix.
20674
20675 2021-02-03 Jakub Jelinek <jakub@redhat.com>
20676
20677 PR middle-end/97971
20678 * lra-constraints.c (process_alt_operands): For inline asm, don't call
20679 fatal_insn, but instead return false.
20680
20681 2021-02-03 Jakub Jelinek <jakub@redhat.com>
20682
20683 PR tree-optimization/98287
20684 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
20685 for V1DImode.
20686
20687 2021-02-03 Tamar Christina <tamar.christina@arm.com>
20688
20689 PR tree-optimization/98928
20690 * tree-vect-loop.c (vect_analyze_loop_2): Change
20691 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
20692 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
20693 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
20694 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
20695
20696 2021-02-02 Richard Biener <rguenther@suse.de>
20697
20698 * gimple-loop-interchange.cc (prepare_data_references):
20699 Release vectors.
20700 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
20701 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
20702 * tree-vect-stmts.c (vectorizable_condition): Do not
20703 allocate vectors.
20704 (vectorizable_comparison): Likewise.
20705
20706 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20707
20708 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
20709 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
20710 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
20711 (vrsqrteq_u32): Likewise.
20712
20713 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20714
20715 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
20716 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
20717 (aarch64_sqxtun2<mode>_be): Likewise.
20718 (aarch64_sqxtun2<mode>): Likewise.
20719 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
20720 (vqmovun_high_s32): Likewise.
20721 (vqmovun_high_s64): Likewise.
20722 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
20723
20724 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20725
20726 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
20727 AUTO_FP flags.
20728 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
20729
20730 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20731
20732 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
20733 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
20734 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
20735 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
20736 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
20737 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
20738 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
20739 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
20740
20741 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20742
20743 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
20744 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
20745 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
20746
20747 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20748
20749 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
20750 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
20751
20752 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20753
20754 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
20755 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
20756 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
20757 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
20758 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
20759 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
20760 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
20761 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
20762 NONE builtin flags.
20763
20764 2021-02-02 Jakub Jelinek <jakub@redhat.com>
20765
20766 PR tree-optimization/98848
20767 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
20768 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
20769
20770 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
20771
20772 PR target/98743
20773 * expr.c: Check mode before calling store_expr.
20774
20775 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
20776
20777 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
20778 (VORNQ): Remove.
20779 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
20780 instruction using expression ior.
20781 (mve_vornq_u<mode>): New expander.
20782 (mve_vornq_f<mode>): Use ior code instead of unspec.
20783 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
20784
20785 2021-02-02 Alexandre Oliva <oliva@adacore.com>
20786
20787 * tree-nested.c (convert_nonlocal_reference_op): Move
20788 current_function_decl restore after re-gimplification.
20789 (convert_local_reference_op): Likewise.
20790
20791 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20792
20793 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
20794 Define builtins.
20795 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
20796 Define.
20797 (aarch64_rshrn<mode>_insn_be): Likewise.
20798 (aarch64_rshrn<mode>): Likewise.
20799 (aarch64_rshrn2<mode>_insn_le): Likewise.
20800 (aarch64_rshrn2<mode>_insn_be): Likewise.
20801 (aarch64_rshrn2<mode>): Likewise.
20802 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
20803 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
20804 using builtin.
20805 (vrshrn_high_n_s32): Likewise.
20806 (vrshrn_high_n_s64): Likewise.
20807 (vrshrn_high_n_u16): Likewise.
20808 (vrshrn_high_n_u32): Likewise.
20809 (vrshrn_high_n_u64): Likewise.
20810 (vrshrn_n_s16): Likewise.
20811 (vrshrn_n_s32): Likewise.
20812 (vrshrn_n_s64): Likewise.
20813 (vrshrn_n_u16): Likewise.
20814 (vrshrn_n_u32): Likewise.
20815 (vrshrn_n_u64): Likewise.
20816
20817 2021-02-01 Sergei Trofimovich <siarheit@google.com>
20818
20819 PR tree-optimization/98499
20820 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
20821 conservatively and assume all possible side-effects.
20822
20823 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20824
20825 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
20826 vec_unpacku_hi_): Define builtins.
20827 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
20828 builtin.
20829 (vmovl_high_s16): Likewise.
20830 (vmovl_high_s32): Likewise.
20831 (vmovl_high_u8): Likewise.
20832 (vmovl_high_u16): Likewise.
20833 (vmovl_high_u32): Likewise.
20834
20835 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20836
20837 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
20838 Define builtins.
20839 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
20840 pattern.
20841 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
20842 UNSPEC_UABDL.
20843 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
20844 builtin.
20845 (vabdl_s16): Likewise.
20846 (vabdl_s32): Likewise.
20847 (vabdl_u8): Likewise.
20848 (vabdl_u16): Likewise.
20849 (vabdl_u32): Likewise.
20850 * config/aarch64/iterators.md (ABDL): New int iterator.
20851 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
20852
20853 2021-02-01 Martin Sebor <msebor@redhat.com>
20854
20855 * tree.h (BLOCK_VARS): Add comment.
20856 (BLOCK_SUBBLOCKS): Same.
20857 (BLOCK_SUPERCONTEXT): Same.
20858 (BLOCK_ABSTRACT_ORIGIN): Same.
20859 (inlined_function_outer_scope_p): Same.
20860
20861 2021-02-01 Martin Sebor <msebor@redhat.com>
20862
20863 PR middle-end/97172
20864 * attribs.c (attr_access::free_lang_data): Define new function.
20865 * attribs.h (attr_access::free_lang_data): Declare new function.
20866
20867 2021-02-01 Richard Biener <rguenther@suse.de>
20868
20869 * vec.h (auto_vec::auto_vec): Add memory stat parameters
20870 and pass them on.
20871 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
20872
20873 2021-02-01 Tamar Christina <tamar.christina@arm.com>
20874
20875 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
20876 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
20877
20878 2021-02-01 Richard Biener <rguenther@suse.de>
20879
20880 PR rtl-optimization/98863
20881 * config/i386/i386-features.c (convert_scalars_to_vector):
20882 Set DF_RD_PRUNE_DEAD_DEFS.
20883
20884 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
20885
20886 * system.h (SIZE_MAX): Define if not already defined.
20887
20888 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
20889
20890 * config/rs6000/genfusion.pl (gen_2logical): New function to
20891 generate patterns for logical-logical fusion.
20892 * config/rs6000/fusion.md: Regenerated patterns.
20893 * config/rs6000/rs6000-cpus.def: Add
20894 OPTION_MASK_P10_FUSION_2LOGICAL.
20895 * config/rs6000/rs6000.c (rs6000_option_override_internal):
20896 Enable logical-logical fusion for p10.
20897 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
20898
20899 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
20900
20901 * config/rs6000/rs6000.opt: Add periods to new AIX options.
20902
20903 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
20904
20905 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
20906 (mabi=vec-default): New.
20907 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
20908 __EXTABI__ for AIX Vector extended ABI.
20909 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
20910 extabi info.
20911 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
20912 are non-volatile.
20913 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
20914
20915 2021-01-30 Jakub Jelinek <jakub@redhat.com>
20916
20917 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
20918 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
20919
20920 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
20921
20922 PR target/97701
20923 * lra-constraints.c (in_class_p): Don't narrow class only for REG
20924 or MEM.
20925
20926 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
20927
20928 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
20929 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
20930 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
20931
20932 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
20933
20934 PR tree-optimization/98866
20935 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
20936 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
20937 (gori_map::m_maybe_invariant): Rename from all_outgoing.
20938 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
20939 (gori_map::is_export_p): Ditto.
20940 (gori_map::calculate_gori): Ditto.
20941 (gori_compute::set_range_invariant): New.
20942 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
20943 invariant for pointers evaluating to [1, +INF].
20944
20945 2021-01-29 Richard Biener <rguenther@suse.de>
20946
20947 PR rtl-optimization/98863
20948 * config/i386/i386-features.c (remove_partial_avx_dependency):
20949 Do not perform DF analysis.
20950 (pass_data_remove_partial_avx_dependency): Remove
20951 TODO_df_finish.
20952
20953 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
20954
20955 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
20956 builtin generator macros.
20957 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
20958 Define.
20959 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
20960 instead of inline asm.
20961 (vmull_n_s32): Likewise.
20962 (vmull_n_u16): Likewise.
20963 (vmull_n_u32): Likewise.
20964
20965 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20966
20967 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
20968 Define builtins.
20969 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
20970 Rename to...
20971 (aarch64_<sur>abdl2<mode>): ... This.
20972 (<sur>sadv16qi): Adjust use of above.
20973 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
20974 builtin.
20975 (vabdl_high_s16): Likewise.
20976 (vabdl_high_s32): Likewise.
20977 (vabdl_high_u8): Likewise.
20978 (vabdl_high_u16): Likewise.
20979 (vabdl_high_u32): Likewise.
20980
20981 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20982
20983 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
20984 builtin.
20985 (uabal2): Likewise.
20986 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
20987 pattern.
20988 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
20989 UNSPEC_UABAL2.
20990 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
20991 builtin.
20992 (vabal_high_s16): Likewise.
20993 (vabal_high_s32): Likewise.
20994 (vabal_high_u8): Likewise.
20995 (vabal_high_u16): Likewise.
20996 (vabal_high_u32): Likewise.
20997 * config/aarch64/iterators.md (ABAL2): New mode iterator.
20998 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
20999
21000 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21001
21002 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
21003 builtin.
21004 (uabal): Likewise.
21005 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
21006 Rename to...
21007 (aarch64_<sur>abal<mode>): ... This
21008 (<sur>sadv16qi): Adust use of the above.
21009 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
21010 builtin.
21011 (vabal_s16): Likewise.
21012 (vabal_s32): Likewise.
21013 (vabal_u8): Likewise.
21014 (vabal_u16): Likewise.
21015 (vabal_u32): Likewise.
21016
21017 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21018
21019 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
21020 Define builtins.
21021 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
21022 Define.
21023 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
21024 builtin.
21025 (vaddlv_s16): Likewise.
21026 (vaddlv_u8): Likewise.
21027 (vaddlv_u16): Likewise.
21028 (vaddlvq_s8): Likewise.
21029 (vaddlvq_s16): Likewise.
21030 (vaddlvq_s32): Likewise.
21031 (vaddlvq_u8): Likewise.
21032 (vaddlvq_u16): Likewise.
21033 (vaddlvq_u32): Likewise.
21034 (vaddlv_s32): Likewise.
21035 (vaddlv_u32): Likewise.
21036 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
21037 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
21038 (Vwstype): New mode attribute.
21039 (Vwsuf): Likewise.
21040 (VWIDE_S): Likewise.
21041 (USADDLV): New int iterator.
21042 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
21043
21044 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
21045
21046 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
21047 builtin generator macros.
21048 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
21049 Define.
21050 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
21051 instead of inline asm.
21052 (vmlsl_lane_s32): Likewise.
21053 (vmlsl_lane_u16): Likewise.
21054 (vmlsl_lane_u32): Likewise.
21055 (vmlsl_laneq_s16): Likewise.
21056 (vmlsl_laneq_s32): Likewise.
21057 (vmlsl_laneq_u16): Likewise.
21058 (vmlsl_laneq_u32): Likewise.
21059
21060 2021-01-29 Richard Biener <rguenther@suse.de>
21061
21062 * doc/invoke.texi (--param max-gcse-memory): Document unit
21063 of size.
21064 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
21065 * params.opt (--param max-gcse-memory): Adjust default and
21066 document unit of size.
21067
21068 2021-01-29 Richard Biener <rguenther@suse.de>
21069
21070 PR rtl-optimization/98863
21071 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
21072 HOST_WIDE_INT for the memory estimate.
21073
21074 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
21075 Richard Biener <rguenther@suse.de>
21076
21077 PR tree-optimization/97627
21078 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
21079 Do not analyze fake edges.
21080
21081 2021-01-29 Richard Biener <rguenther@suse.de>
21082
21083 PR rtl-optimization/98144
21084 * df.h (df_mir_bb_info): Add con_visited member.
21085 * df-problems.c (df_mir_alloc): Initialize con_visited,
21086 do not fully populate IN and OUT.
21087 (df_mir_reset): Likewise.
21088 (df_mir_confluence_0): Set con_visited.
21089 (df_mir_confluence_n): Properly handle implicitely
21090 fully populated IN and OUT as designated by con_visited
21091 and update con_visited accordingly.
21092
21093 2021-01-29 Jakub Jelinek <jakub@redhat.com>
21094
21095 PR target/98849
21096 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
21097 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
21098 && !TARGET_REALLY_IWMMXT to conditions.
21099
21100 2021-01-29 Jakub Jelinek <jakub@redhat.com>
21101
21102 PR debug/98331
21103 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
21104 a BARRIER.
21105
21106 2021-01-28 Marek Polacek <polacek@redhat.com>
21107
21108 PR c++/94775
21109 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
21110 the main variant, maybe reset it in its variants too.
21111 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
21112 (check_aligned_type): Check if TYPE_USER_ALIGN match.
21113
21114 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
21115
21116 PR target/98730
21117 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
21118 of constant zero for comparisons.
21119
21120 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
21121
21122 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
21123 support for mapping built-in function names for long double
21124 built-in functions if long double is IEEE 128-bit.
21125
21126 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
21127
21128 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
21129 builtin generator macros.
21130 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
21131 Define.
21132 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
21133 instead of inline asm.
21134 (vmlsl_n_s32): Likewise.
21135 (vmlsl_n_u16): Likewise.
21136 (vmlsl_n_u32): Likewise.
21137
21138 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
21139
21140 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
21141 builtin generator macros.
21142 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
21143 Define.
21144 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
21145 instead of inline asm.
21146 (vmlal_n_s32): Likewise.
21147 (vmlal_n_u16): Likewise.
21148 (vmlal_n_u32): Likewise.
21149
21150 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21151
21152 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
21153 builtin.
21154 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
21155 Define.
21156 (aarch64_shrn2<mode>_insn_be): Likewise.
21157 (aarch64_shrn2<mode>): Likewise.
21158 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
21159 using builtins.
21160 (vshrn_high_n_s32): Likewise.
21161 (vshrn_high_n_s64): Likewise.
21162 (vshrn_high_n_u16): Likewise.
21163 (vshrn_high_n_u32): Likewise.
21164 (vshrn_high_n_u64): Likewise.
21165
21166 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21167
21168 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
21169 builtin.
21170 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
21171 Define.
21172 (aarch64_shrn<mode>_insn_be): Likewise.
21173 (aarch64_shrn<mode>): Likewise.
21174 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
21175 builtins.
21176 (vshrn_n_s32): Likewise.
21177 (vshrn_n_s64): Likewise.
21178 (vshrn_n_u16): Likewise.
21179 (vshrn_n_u32): Likewise.
21180 (vshrn_n_u64): Likewise.
21181 * config/aarch64/iterators.md (vn_mode): New mode attribute.
21182
21183 2021-01-28 Richard Biener <rguenther@suse.de>
21184
21185 PR rtl-optimization/80960
21186 * dse.c (check_mem_read_rtx): Call get_addr on the
21187 offsetted address.
21188
21189 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
21190 David Edelsohn <dje.gcc@gmail.com>
21191
21192 PR target/98799
21193 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21194 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
21195 when -m32.
21196 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
21197 Delete.
21198 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
21199 wrapper call rs6000_expand_vector_set_var for cleanup. Call
21200 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
21201 directly.
21202 (rs6000_expand_vector_set_var): Delete.
21203 (rs6000_expand_vector_set_var_p9): Make static.
21204 (rs6000_expand_vector_set_var_p8): Make static.
21205
21206 2021-01-28 Xing GUO <higuoxing@gmail.com>
21207
21208 * common/config/riscv/riscv-common.c
21209 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
21210 when `p` extension exists.
21211
21212 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
21213
21214 PR rtl-optimization/97684
21215 * ira.c (ira): Call ira_set_pseudo_classes before
21216 update_equiv_regs when it is necessary.
21217
21218 2021-01-27 Jakub Jelinek <jakub@redhat.com>
21219
21220 PR target/98853
21221 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
21222 %w0, %w1 and %2 instead of %0, %1 and %2.
21223
21224 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
21225
21226 * config/rs6000/genfusion.pl: New script to generate
21227 define_insn_and_split patterns so combine can arrange fused
21228 instructions next to each other.
21229 * config/rs6000/fusion.md: New file, generated fused instruction
21230 patterns for combine.
21231 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
21232 (non_update_memory_operand): New predicate.
21233 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
21234 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
21235 POWERPC_MASKS.
21236 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
21237 prototype.
21238 * config/rs6000/rs6000.c (rs6000_option_override_internal):
21239 Automatically set OPTION_MASK_P10_FUSION and
21240 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
21241 (rs600_opt_masks): Allow -mpower10-fusion
21242 in function attributes.
21243 (address_is_non_pfx_d_or_x): New function.
21244 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
21245 * config/rs6000/rs6000.md: Include fusion.md.
21246 * config/rs6000/rs6000.opt: Add -mpower10-fusion
21247 and -mpower10-fusion-ld-cmpi.
21248 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
21249
21250 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
21251
21252 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
21253 builtin generator macros.
21254 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
21255 Rename to...
21256 (aarch64_<su>mlal<mode>): This.
21257 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
21258 instead of inline asm.
21259 (vmlal_s16): Likewise.
21260 (vmlal_s32): Likewise.
21261 (vmlal_u8): Likewise.
21262 (vmlal_u16): Likewise.
21263 (vmlal_u32): Likewise.
21264
21265 2021-01-27 Richard Biener <rguenther@suse.de>
21266
21267 PR tree-optimization/98854
21268 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
21269 PHIs from scalars when the number of CTORs matches the
21270 number of children.
21271
21272 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
21273
21274 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
21275 generator macro.
21276 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
21277 Rename to...
21278 (aarch64_mls_n<mode>): This.
21279 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
21280 instead of asm.
21281 (vmls_n_s32): Likewise.
21282 (vmls_n_u16): Likewise.
21283 (vmls_n_u32): Likewise.
21284 (vmlsq_n_s16): Likewise.
21285 (vmlsq_n_s32): Likewise.
21286 (vmlsq_n_u16): Likewise.
21287 (vmlsq_n_u32): Likewise.
21288
21289 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
21290
21291 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
21292 generator macro.
21293 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
21294 than asm.
21295 (vmls_s16): Likewise.
21296 (vmls_s32): Likewise.
21297 (vmls_u8): Likewise.
21298 (vmls_u16): Likewise.
21299 (vmls_u32): Likewise.
21300 (vmlsq_s8): Likewise.
21301 (vmlsq_s16): Likewise.
21302 (vmlsq_s32): Likewise.
21303 (vmlsq_u8): Likewise.
21304 (vmlsq_u16): Likewise.
21305 (vmlsq_u32): Likewise.
21306
21307 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
21308
21309 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
21310 generator macro.
21311 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
21312 Rename to...
21313 (aarch64_mla_n<mode>): This.
21314 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
21315 instead of asm.
21316 (vmla_n_s32): Likewise.
21317 (vmla_n_u16): Likewise.
21318 (vmla_n_u32): Likewise.
21319 (vmlaq_n_s16): Likewise.
21320 (vmlaq_n_s32): Likewise.
21321 (vmlaq_n_u16): Likewise.
21322 (vmlaq_n_u32): Likewise.
21323
21324 2021-01-27 liuhongt <hongtao.liu@intel.com>
21325
21326 PR target/98833
21327 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
21328 (*sse2_eq<mode>3): Ditto.
21329
21330 2021-01-27 Jakub Jelinek <jakub@redhat.com>
21331
21332 * tree-pass.h (PROP_trees): Rename to ...
21333 (PROP_gimple): ... this.
21334 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
21335 * passes.c (execute_function_dump, execute_function_todo,
21336 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
21337 * varpool.c (ctor_for_folding): Likewise.
21338
21339 2021-01-27 Jakub Jelinek <jakub@redhat.com>
21340
21341 PR tree-optimization/97260
21342 * varpool.c: Include tree-pass.h.
21343 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
21344 non-TREE_SIDE_EFFECTS automatic variables.
21345
21346 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
21347
21348 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
21349 or -std=gnu++23.
21350 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
21351 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
21352 (gen_compile_unit_die): Recognise C++23.
21353
21354 2021-01-26 Jakub Jelinek <jakub@redhat.com>
21355
21356 PR bootstrap/98839
21357 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
21358 in comparison.
21359
21360 2021-01-26 Jakub Jelinek <jakub@redhat.com>
21361
21362 PR target/98681
21363 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
21364 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
21365 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
21366
21367 2021-01-26 Richard Biener <rguenther@suse.de>
21368
21369 * gimple-pretty-print.c (dump_binary_rhs): Handle
21370 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
21371
21372 2021-01-26 Richard Biener <rguenther@suse.de>
21373
21374 PR middle-end/98726
21375 * tree.h (vector_cst_int_elt): Remove.
21376 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
21377 make static.
21378
21379 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
21380
21381 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
21382 for V64DFmode min/max reductions.
21383
21384 2021-01-26 Jakub Jelinek <jakub@redhat.com>
21385
21386 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
21387 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
21388 two halves, one with x and the other with const0_rtx, ordered
21389 depending on endianity.
21390
21391 2021-01-26 Alexandre Oliva <oliva@adacore.com>
21392
21393 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
21394 temporaries not seen in binding block, and not about to be
21395 added as gimple variables.
21396
21397 2021-01-25 Martin Sebor <msebor@redhat.com>
21398
21399 PR c++/98646
21400 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
21401
21402 2021-01-25 Martin Liska <mliska@suse.cz>
21403
21404 * value-prof.c (get_nth_most_common_value): Use %s instead
21405 of %qs string.
21406
21407 2021-01-25 Jakub Jelinek <jakub@redhat.com>
21408
21409 PR debug/98811
21410 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
21411 readelf -wi is able to read the emitted .debug_info back.
21412 * configure: Regenerated.
21413
21414 2021-01-25 Martin Liska <mliska@suse.cz>
21415
21416 PR gcov-profile/98739
21417 * common.opt: Add missing sign symbol.
21418 * value-prof.c (get_nth_most_common_value): Restore handling
21419 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
21420 PROFILE_REPRODUCIBILITY_MULTITHREADED.
21421
21422 2021-01-25 Richard Biener <rguenther@suse.de>
21423
21424 PR middle-end/98807
21425 * tree.c (vector_element_bits): Always use precision of
21426 the element type for boolean vectors.
21427
21428 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
21429
21430 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
21431 (ENDFILE_SPEC): Evaluate qnolinkcmds.
21432
21433 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
21434
21435 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
21436 nostartfiles handling since this is already done by
21437 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
21438 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
21439 is already done by LINK_COMMAND_SPEC.
21440 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
21441 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
21442 evaluation.
21443
21444 2021-01-25 Jakub Jelinek <jakub@redhat.com>
21445
21446 PR testsuite/98771
21447 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
21448 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
21449 value rather than host size_t.
21450 (fold_const_call): Change type of s2 from size_t to
21451 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
21452 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
21453 instead of s2 as last argument.
21454
21455 2021-01-25 Tamar Christina <tamar.christina@arm.com>
21456
21457 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
21458 VCMLA_OP, VCMUL_OP): New.
21459 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
21460 * config/arm/neon.md (cmul<conj_op><mode>3): New.
21461 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
21462 UNSPEC_VCMUL_CONJ): New.
21463 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
21464 cml<fcmac1><conj_op><mode>4): New.
21465
21466 2021-01-23 Jakub Jelinek <jakub@redhat.com>
21467
21468 PR testsuite/97301
21469 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
21470
21471 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
21472
21473 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
21474 generator macro.
21475 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
21476 than asm.
21477 (vmla_s16): Likewise.
21478 (vmla_s32): Likewise.
21479 (vmla_u8): Likewise.
21480 (vmla_u16): Likewise.
21481 (vmla_u32): Likewise.
21482 (vmlaq_s8): Likewise.
21483 (vmlaq_s16): Likewise.
21484 (vmlaq_s32): Likewise.
21485 (vmlaq_u8): Likewise.
21486 (vmlaq_u16): Likewise.
21487 (vmlaq_u32): Likewise.
21488
21489 2021-01-22 David Malcolm <dmalcolm@redhat.com>
21490
21491 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
21492 directive.
21493
21494 2021-01-22 Jakub Jelinek <jakub@redhat.com>
21495
21496 PR debug/98796
21497 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
21498 filenames to emit, still emit the required 0 index directory and
21499 filename entries that match DW_AT_comp_dir and DW_AT_name of the
21500 compilation unit.
21501
21502 2021-01-22 Marek Polacek <polacek@redhat.com>
21503
21504 PR c++/98545
21505 * doc/invoke.texi: Update C++ ABI Version 15 description.
21506
21507 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21508
21509 PR tree-optimization/98766
21510 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
21511 comparing against type size with param_avoid_fma_max_bits.
21512
21513 2021-01-22 Richard Biener <rguenther@suse.de>
21514
21515 PR middle-end/98793
21516 * tree.c (vector_element_bits): Key single-bit bool vector on
21517 integer mode rather than not vector mode.
21518
21519 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
21520
21521 PR target/98093
21522 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21523 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
21524 platforms.
21525 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
21526 to call different path for P8 and P9.
21527 (rs6000_expand_vector_set_var_p9): New function.
21528 (rs6000_expand_vector_set_var_p8): New function.
21529
21530 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
21531
21532 PR target/79251
21533 PR target/98065
21534 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21535 Ajdust variable index vec_insert from address dereference to
21536 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
21537 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
21538 New declaration.
21539 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
21540
21541 2021-01-22 Martin Liska <mliska@suse.cz>
21542
21543 PR gcov-profile/98739
21544 * profile.c (compute_value_histograms): Drop time profile for
21545 -fprofile-reproducible=multithreaded.
21546
21547 2021-01-22 Nathan Sidwell <nathan@acm.org>
21548
21549 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
21550 existence here.
21551
21552 2021-01-22 Richard Biener <rguenther@suse.de>
21553
21554 PR middle-end/98773
21555 * tree-data-ref.c (initalize_matrix_A): Revert previous
21556 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
21557
21558 2021-01-22 Jakub Jelinek <jakub@redhat.com>
21559
21560 PR tree-optimization/90248
21561 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
21562 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
21563 simplifications.
21564 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
21565 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
21566
21567 2021-01-22 Jakub Jelinek <jakub@redhat.com>
21568
21569 PR tree-optimization/98255
21570 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
21571 extend index - low_bound from sizetype's precision rather than index
21572 precision.
21573 (get_addr_base_and_unit_offset_1): Likewise.
21574 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
21575 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
21576
21577 2021-01-22 Richard Biener <rguenther@suse.de>
21578
21579 PR tree-optimization/98786
21580 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
21581 adding new uses of abnormals. Verify we deal with a conditional
21582 conversion.
21583
21584 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21585
21586 PR target/98636
21587 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
21588
21589 2021-01-22 liuhongt <hongtao.liu@intel.com>
21590
21591 PR target/96891
21592 PR target/98348
21593 * config/i386/sse.md (VI_128_256): New mode iterator.
21594 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
21595 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
21596 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
21597 define_insn_and_split to lower avx512 vector comparison to avx
21598 version when dest is vector.
21599 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
21600 define_insn_and_split for negating the comparison result.
21601 * config/i386/predicates.md (float_vector_all_ones_operand):
21602 New predicate.
21603 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
21604 general NOT operator without UNSPEC_MASKOP.
21605
21606 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
21607
21608 PR rtl-optimization/98777
21609 * lra-int.h (lra_pmode_pseudo): New extern.
21610 * lra.c (lra_pmode_pseudo): New global.
21611 (lra): Set it up.
21612 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
21613
21614 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
21615
21616 * fwprop.c (fwprop_propagation::classify_result): Allow
21617 (subreg (mem)) simplifications.
21618
21619 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21620
21621 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
21622 Split into...
21623 (aarch64_sqdmlal<mode>): ... This...
21624 (aarch64_sqdmlsl<mode>): ... And this.
21625 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
21626 (aarch64_sqdmlal_lane<mode>): ... This...
21627 (aarch64_sqdmlsl_lane<mode>): ... And this.
21628 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
21629 (aarch64_sqdmlsl_laneq<mode>): ... This...
21630 (aarch64_sqdmlal_laneq<mode>): ... And this.
21631 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
21632 (aarch64_sqdmlsl_n<mode>): ... This...
21633 (aarch64_sqdmlal_n<mode>): ... And this.
21634 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
21635 (aarch64_sqdmlal2<mode>_internal): ... This...
21636 (aarch64_sqdmlsl2<mode>_internal): ... And this.
21637
21638 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
21639
21640 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
21641
21642 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
21643
21644 PR target/96372
21645 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
21646
21647 2021-01-21 liuhongt <hongtao.liu@intel.com>
21648
21649 PR rtl-optimization/98694
21650 * regcprop.c (copy_value): If SRC had been assigned a mode
21651 narrower than the copy, we can't link DEST into the chain even
21652 they have same hard_regno_nregs(i.e. HImode/SImode in i386
21653 backend).
21654
21655 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21656
21657 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
21658 Convert to define_insn_and_split. Split into simple move when moving
21659 bottom element.
21660
21661 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
21662
21663 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
21664 Adjust comment. Simplify code.
21665
21666 2021-01-20 Jakub Jelinek <jakub@redhat.com>
21667
21668 PR debug/98765
21669 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
21670 with DW_FORM_line_strp form.
21671 (prune_unused_types_update_strings): Don't add into debug_str_hash
21672 indirect strings with DW_FORM_line_strp form.
21673 (adjust_name_comp_dir): New function.
21674 (dwarf2out_finish): Call it on CU DIEs after resetting
21675 debug_line_str_hash.
21676
21677 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
21678
21679 PR rtl-optimization/98722
21680 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
21681 has no 3-op add insn to transform insns containing two pluses.
21682
21683 2021-01-20 Richard Biener <rguenther@suse.de>
21684
21685 * hwint.h (add_hwi): New function.
21686 (mul_hwi): Likewise.
21687 * tree-data-ref.c (initialize_matrix_A): Properly translate
21688 tree constants and avoid HOST_WIDE_INT_MIN.
21689 (lambda_matrix_row_add): Avoid undefined integer overflow
21690 and return true on such overflow.
21691 (lambda_matrix_right_hermite): Handle overflow from
21692 lambda_matrix_row_add gracefully. Simplify previous fix.
21693 (analyze_subscript_affine_affine): Likewise.
21694
21695 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
21696
21697 PR tree-optimization/96674
21698 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
21699 x >= y && y != XXX_MIN --> x > y - 1
21700
21701 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
21702
21703 PR tree-optimization/98535
21704 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
21705 If the high and low permutes are the same, remove the high permutes
21706 from the working set and only continue with the low ones.
21707
21708 2021-01-20 Jakub Jelinek <jakub@redhat.com>
21709
21710 PR tree-optimization/98721
21711 * builtins.c (access_ref::inform_access): Don't assume
21712 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
21713 object whenever allocfn is NULL, rather than only when DECL_P
21714 is true. Use %qE instead of %qD for that. Formatting fixes.
21715
21716 2021-01-20 Richard Biener <rguenther@suse.de>
21717
21718 PR tree-optimization/98758
21719 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
21720 (lambda_matrix_right_hermite): Avoid undefinedness with
21721 signed integer abs and multiplication.
21722 (analyze_subscript_affine_affine): Use lambda_int.
21723
21724 2021-01-20 David Malcolm <dmalcolm@redhat.com>
21725
21726 PR debug/98751
21727 * dwarf2out.c (output_line_info): Rename static variable
21728 "generation", moving it out of the function to...
21729 (output_line_info_generation): New.
21730 (init_sections_and_labels): Likewise, renaming the variable to...
21731 (init_sections_and_labels_generation): New.
21732 (dwarf2out_c_finalize): Reset the new variables.
21733
21734 2021-01-19 Martin Sebor <msebor@redhat.com>
21735
21736 PR middle-end/98664
21737 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
21738 all functions, even if they're not declared artificial or inline.
21739 * tree.c (tree_inlined_location): Use macro expansion location
21740 only if scope traversal fails to expose one.
21741
21742 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
21743
21744 PR rtl-optimization/92294
21745 * alias.c (compare_base_symbol_refs): Take an extra parameter
21746 and add the distance between two symbols to it. Enshrine in
21747 comments that -1 means "either 0 or 1, but we can't tell
21748 which at compile time".
21749 (memrefs_conflict_p): Update call accordingly.
21750 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
21751 into account.
21752
21753 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21754
21755 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
21756 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
21757 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
21758 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
21759 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
21760 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
21761 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
21762 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
21763 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
21764 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
21765 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
21766 sqmovun): Use NONE flags.
21767
21768 2021-01-19 Richard Biener <rguenther@suse.de>
21769
21770 PR ipa/98330
21771 * ipa-modref.c (analyze_stmt): Only record a summary for a
21772 direct call.
21773
21774 2021-01-19 Richard Biener <rguenther@suse.de>
21775
21776 PR middle-end/98638
21777 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
21778
21779 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
21780
21781 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
21782 built-in define __FIX_LEON3FT_TN0018.
21783
21784 2021-01-19 Richard Biener <rguenther@suse.de>
21785
21786 PR ipa/97673
21787 * tree-inline.c (tree_function_versioning): Set input_location
21788 to UNKNOWN_LOCATION throughout the function.
21789
21790 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
21791
21792 PR fortran/98476
21793 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
21794
21795 2021-01-19 Martin Jambor <mjambor@suse.cz>
21796
21797 PR ipa/98690
21798 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
21799 whether non-call exceptions allow removal of a statement.
21800 (isra_analyze_call): Pass the appropriate function to
21801 ssa_name_only_returned_p.
21802
21803 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
21804
21805 * config/riscv/arch-canonicalize (longext_sort): New function for
21806 sorting 'multi-letter'.
21807 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
21808 'alts'. The 'arch' may not be the first of 'alts'.
21809 (_expand_combination): Add underline for the 'ext' without '*'.
21810 This is because, a single-letter extension can always be treated well
21811 with a '_' prefix, but it cannot be separated out if it is appended
21812 to a multi-letter.
21813
21814 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
21815
21816 PR target/97847
21817 * ira.c (ira): Skip abnormal critical edge splitting.
21818
21819 2021-01-18 Jakub Jelinek <jakub@redhat.com>
21820
21821 PR tree-optimization/98727
21822 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
21823 second .MUL_OVERFLOW operand for signed multiplication with overflow
21824 checking if the second operand of multiplication is not constant.
21825
21826 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
21827
21828 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
21829 defaults to version 4.
21830
21831 2021-01-18 David Malcolm <dmalcolm@redhat.com>
21832
21833 * attribs.h (fndecl_dealloc_argno): New decl.
21834 * builtins.c (call_dealloc_argno): Split out second half of
21835 function into...
21836 (fndecl_dealloc_argno): New.
21837 * doc/extend.texi (Common Function Attributes): Document the
21838 interaction between the analyzer and the malloc attribute.
21839 * doc/invoke.texi (Static Analyzer Options): Likewise.
21840
21841 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
21842
21843 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
21844 dwarf_version to 4.
21845 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
21846
21847 2021-01-17 Martin Jambor <mjambor@suse.cz>
21848
21849 PR ipa/98222
21850 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
21851 the clone tree.
21852
21853 2021-01-17 Mark Wielaard <mark@klomp.org>
21854
21855 * common.opt (gdwarf-): Init(5).
21856 * doc/invoke.texi (-gdwarf): Document default to 5.
21857
21858 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
21859
21860 * builtin-types.def
21861 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
21862 to...
21863 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
21864 ...this. Add extra argument.
21865 * gimplify.c (omp_default_clause): Ensure that event handle is
21866 firstprivate in a task region.
21867 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
21868 (gimplify_adjust_omp_clauses): Likewise.
21869 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
21870 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
21871 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
21872 if detach clause specified. Add detach argument when generating
21873 call to GOMP_task.
21874 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
21875 clause.
21876 (finish_taskreg_scan): Move field for variable containing the event
21877 handle to the front of the struct.
21878 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
21879 ordering.
21880 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
21881 OMP_CLAUSE_DETACH clause.
21882 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
21883 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
21884 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
21885 Fix ordering.
21886 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
21887 ordering.
21888 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
21889
21890 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
21891
21892 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
21893 multilib directory names. Use MULTILIB_REQUIRED instead of
21894 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
21895 -mcustom-fpu-cfg=fph2 multilib.
21896
21897 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
21898
21899 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
21900 (nios2_init_fpu_configs): Provide register values for new
21901 -mcustom-fpu-cfg=fph2 option variant.
21902 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
21903 variant.
21904
21905 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
21906
21907 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
21908 custom instruction warnings.
21909
21910 2021-01-16 Jakub Jelinek <jakub@redhat.com>
21911
21912 PR tree-optimization/96669
21913 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
21914
21915 2021-01-16 Jakub Jelinek <jakub@redhat.com>
21916
21917 PR tree-optimization/96271
21918 * passes.def: Pass false argument to first two pass_cd_dce
21919 instances and true to last instance. Add comment that
21920 last instance rewrites no longer addressed locals.
21921 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
21922 initialize it.
21923 (pass_cd_dce::set_pass_param): New method.
21924 (pass_cd_dce::execute): Return TODO_update_address_taken from
21925 last cd_dce instance.
21926
21927 2021-01-15 Carl Love <cel@us.ibm.com>
21928
21929 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
21930 New defines.
21931 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
21932 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
21933 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
21934 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
21935 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
21936 Add builtin define.
21937 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
21938 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
21939 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
21940 New overloaded definitions.
21941 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
21942 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
21943 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
21944 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
21945 P10V_BUILTIN_MULHU_V4SI]: Add case
21946 statement for builtins.
21947 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
21948 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
21949 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
21950 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
21951 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
21952 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
21953 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
21954 Add define_insn, mode is VIlong.
21955 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
21956 Add builtin descriptions.
21957
21958 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
21959
21960 * final.c (final_start_function_1): Reset force_source_line.
21961
21962 2021-01-15 Jakub Jelinek <jakub@redhat.com>
21963
21964 PR tree-optimization/96669
21965 * match.pd (((1 << A) & 1) != 0 -> A == 0,
21966 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
21967 possibly different power of two constants and to right shift too.
21968
21969 2021-01-15 Jakub Jelinek <jakub@redhat.com>
21970
21971 PR tree-optimization/96681
21972 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
21973 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
21974 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
21975 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
21976
21977 2021-01-15 Alexandre Oliva <oliva@adacore.com>
21978
21979 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
21980
21981 2021-01-15 Tamar Christina <tamar.christina@arm.com>
21982
21983 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
21984 cmul<conj_op><mode>3): New.
21985 * config/aarch64/iterators.md (UNSPEC_FCMUL,
21986 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
21987 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
21988 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
21989 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
21990 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
21991 (rot_op): Renamed to conj_op.
21992 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
21993 cmul<conj_op><mode>3): New.
21994 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
21995 cmul<conj_op><mode>3): New.
21996
21997 2021-01-15 David Malcolm <dmalcolm@redhat.com>
21998
21999 PR bootstrap/98696
22000 * diagnostic.c
22001 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
22002 Escape the tempfile name when constructing the expected output.
22003
22004 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22005
22006 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
22007 Rename to...
22008 (aarch64_<su>mlsl_hi<mode>): ... This.
22009 (aarch64_<su>mlsl_hi<mode>): Define.
22010 (*aarch64_<su>mlsl<mode): Rename to...
22011 (aarch64_<su>mlsl<mode): ... This.
22012 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
22013 smlsl_hi, umlsl_hi): Define builtins.
22014 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
22015 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
22016 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
22017 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
22018
22019 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
22020
22021 * config/i386/i386-c.c (ix86_target_macros):
22022 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
22023
22024 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
22025
22026 PR target/88836
22027 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
22028 * Makefile.in (RTL_SSA_H): New variable.
22029 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
22030 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
22031 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
22032 pass_combine.
22033 * config/aarch64/aarch64-cc-fusion.cc: New file.
22034
22035 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
22036
22037 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
22038 calling cancel_changes for changes that no longer exist.
22039
22040 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
22041
22042 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
22043 (function_info::reg_defs): ...this.
22044 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
22045 (function_info::reg_defs): ...this.
22046
22047 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
22048
22049 PR target/71233
22050 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
22051
22052 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
22053
22054 Revert:
22055 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
22056
22057 PR target/71233
22058 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
22059
22060 2021-01-15 Richard Biener <rguenther@suse.de>
22061
22062 PR tree-optimization/96376
22063 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
22064 for VMAT_INVARIANT.
22065
22066 2021-01-15 Martin Liska <mliska@suse.cz>
22067
22068 * doc/install.texi: Document that some tests need pytest module.
22069 * doc/sourcebuild.texi: Likewise.
22070
22071 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
22072
22073 PR target/71233
22074 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
22075
22076 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
22077
22078 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
22079 (mve_vshrq_n_u<mode>_imm): Likewise.
22080 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
22081 * config/arm/vec-common.md: ... here.
22082
22083 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
22084
22085 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
22086 vec-commond.md.
22087 * config/arm/neon.md (vashl<mode>3): Delete.
22088 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
22089 (vasl<mode>3): New expander.
22090
22091 2021-01-15 Richard Biener <rguenther@suse.de>
22092
22093 PR tree-optimization/98685
22094 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
22095 of vector extern defs.
22096
22097 2021-01-14 David Malcolm <dmalcolm@redhat.com>
22098
22099 PR jit/98586
22100 * diagnostic.c (diagnostic_kind_text): Break out this array
22101 from...
22102 (diagnostic_build_prefix): ...here.
22103 (fancy_abort): Detect when diagnostic_initialize has not yet been
22104 called and fall back to a minimal implementation of printing the
22105 ICE, rather than segfaulting in internal_error.
22106
22107 2021-01-14 David Malcolm <dmalcolm@redhat.com>
22108
22109 * diagnostic.c (diagnostic_initialize): Eliminate
22110 parseable_fixits_p in favor of initializing extra_output_kind from
22111 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
22112 (convert_column_unit): New function, split out from...
22113 (diagnostic_converted_column): ...this.
22114 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
22115 Use them to call convert_column_unit on the column values.
22116 (diagnostic_report_diagnostic): Eliminate conditional on
22117 parseable_fixits_p in favor of a switch statement on
22118 extra_output_kind, passing the appropriate values to the new
22119 params of print_parseable_fixits.
22120 (selftest::test_print_parseable_fixits_none): Update for new
22121 params of print_parseable_fixits.
22122 (selftest::test_print_parseable_fixits_insert): Likewise.
22123 (selftest::test_print_parseable_fixits_remove): Likewise.
22124 (selftest::test_print_parseable_fixits_replace): Likewise.
22125 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
22126 New.
22127 (selftest::diagnostic_c_tests): Call it.
22128 * diagnostic.h (enum diagnostics_extra_output_kind): New.
22129 (diagnostic_context::parseable_fixits_p): Delete field in favor
22130 of...
22131 (diagnostic_context::extra_output_kind): ...this new field.
22132 * doc/invoke.texi (Environment Variables): Add
22133 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
22134 * opts.c (common_handle_option): Update handling of
22135 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
22136 fields.
22137
22138 2021-01-14 Tamar Christina <tamar.christina@arm.com>
22139
22140 * tree-vect-slp-patterns.c (class complex_operations_pattern,
22141 complex_operations_pattern::matches,
22142 complex_operations_pattern::recognize,
22143 complex_operations_pattern::build): New.
22144 (slp_patterns): Use it.
22145
22146 2021-01-14 Tamar Christina <tamar.christina@arm.com>
22147
22148 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
22149 * optabs.def (cmls_optab, cmls_conj_optab): New.
22150 * doc/md.texi: Document them.
22151 * tree-vect-slp-patterns.c (class complex_fms_pattern,
22152 complex_fms_pattern::matches, complex_fms_pattern::recognize,
22153 complex_fms_pattern::build): New.
22154
22155 2021-01-14 Tamar Christina <tamar.christina@arm.com>
22156
22157 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
22158 * optabs.def (cmla_optab, cmla_conj_optab): New.
22159 * doc/md.texi: Document them.
22160 * tree-vect-slp-patterns.c (vect_match_call_p,
22161 class complex_fma_pattern, vect_slp_reset_pattern,
22162 complex_fma_pattern::matches, complex_fma_pattern::recognize,
22163 complex_fma_pattern::build): New.
22164
22165 2021-01-14 Tamar Christina <tamar.christina@arm.com>
22166
22167 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
22168 * optabs.def (cmul_optab, cmul_conj_optab): New.
22169 * doc/md.texi: Document them.
22170 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
22171 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
22172 vect_build_combine_node, class complex_mul_pattern,
22173 complex_mul_pattern::matches, complex_mul_pattern::recognize,
22174 complex_mul_pattern::build): New.
22175
22176 2021-01-14 Tamar Christina <tamar.christina@arm.com>
22177
22178 * tree-vect-slp.c (optimize_load_redistribution_1): New.
22179 (optimize_load_redistribution, vect_is_slp_load_node): New.
22180 (vect_match_slp_patterns): Use it.
22181
22182 2021-01-14 Tamar Christina <tamar.christina@arm.com>
22183
22184 * tree-vect-slp-patterns.c (complex_add_pattern::build):
22185 Elide nodes.
22186
22187 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
22188
22189 * config/gcn/mkoffload.c (main): Create an offload image only in
22190 64-bit configurations.
22191
22192 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
22193
22194 PR target/98667
22195 * config/i386/i386-options.c (ix86_option_override_internal):
22196 Issue an error for -fcf-protection with CF_BRANCH when compiling
22197 for 32-bit non-TARGET_CMOV targets.
22198
22199 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
22200
22201 PR target/98671
22202 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
22203 Remove declaration and initialization of shadow variable "ret".
22204 (ix86_option_override_internal): Remove delcaration of
22205 shadow variable "i". Redeclare shadowed variable to unsigned.
22206 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
22207 * config/i386/i386-builtins.c (get_builtin_code_for_version):
22208 Update for redeclaration.
22209 * config/i386/i386.h (pta_size): Ditto.
22210
22211 2021-01-14 Richard Biener <rguenther@suse.de>
22212
22213 PR tree-optimization/98674
22214 * tree-data-ref.c (base_supports_access_fn_components_p): New.
22215 (initialize_data_dependence_relation): For two bases without
22216 possible access fns resort to type size equality when determining
22217 shape compatibility.
22218
22219 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22220
22221 PR target/66791
22222 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
22223 <=, >= operators in vcle and vcge intrinsics respectively.
22224 * config/arm/arm_neon_builtins.def: Remove entry for
22225 vcge and vcgeu.
22226
22227 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
22228
22229 PR target/98671
22230 * config/i386/i386-options.c (ix86_function_specific_save):
22231 Remove redundant assignment to opts->x_ix86_branch_cost.
22232 * config/i386/i386.c (ix86_prefetch_sse):
22233 Rename from x86_prefetch_sse. Update all uses.
22234 * config/i386/i386.h: Update for rename.
22235 * config/i386/i386-options.h: Ditto.
22236
22237 2021-01-14 Jakub Jelinek <jakub@redhat.com>
22238
22239 PR target/98670
22240 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
22241 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
22242 Use Bm instead of m for non-avx. Add isa attribute.
22243
22244 2021-01-14 Jakub Jelinek <jakub@redhat.com>
22245
22246 PR tree-optimization/96688
22247 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
22248 ~X can be simplified.
22249
22250 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
22251
22252 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
22253 IFN_LOAD_LANES results.
22254
22255 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22256
22257 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
22258 Define.
22259 (aarch64_xtn<mode>): Likewise.
22260 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
22261 Define
22262 builtins.
22263 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
22264 builtin.
22265 (vmovl_s16): Likewise.
22266 (vmovl_s32): Likewise.
22267 (vmovl_u8): Likewise.
22268 (vmovl_u16): Likewise.
22269 (vmovl_u32): Likewise.
22270 (vmovn_s16): Likewise.
22271 (vmovn_s32): Likewise.
22272 (vmovn_s64): Likewise.
22273 (vmovn_u16): Likewise.
22274 (vmovn_u32): Likewise.
22275 (vmovn_u64): Likewise.
22276
22277 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22278
22279 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
22280 Define.
22281 (aarch64_<su>qxtn2<mode>_be): Likewise.
22282 (aarch64_<su>qxtn2<mode>): Likewise.
22283 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
22284 Define builtins.
22285 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
22286 (su): Handle ss_truncate and us_truncate.
22287 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
22288 builtin.
22289 (vqmovn_high_s32): Likewise.
22290 (vqmovn_high_s64): Likewise.
22291 (vqmovn_high_u16): Likewise.
22292 (vqmovn_high_u32): Likewise.
22293 (vqmovn_high_u64): Likewise.
22294
22295 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22296
22297 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
22298 Define.
22299 (aarch64_xtn2<mode>_be): Likewise.
22300 (aarch64_xtn2<mode>): Likewise.
22301 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
22302 builtins.
22303 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
22304 builtins.
22305 (vmovn_high_s32): Likewise.
22306 (vmovn_high_s64): Likewise.
22307 (vmovn_high_u16): Likewise.
22308 (vmovn_high_u32): Likewise.
22309 (vmovn_high_u64): Likewise.
22310
22311 2021-01-13 Stafford Horne <shorne@gmail.com>
22312
22313 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
22314
22315 2021-01-13 Stafford Horne <shorne@gmail.com>
22316
22317 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
22318
22319 2021-01-13 Stafford Horne <shorne@gmail.com>
22320
22321 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
22322 define for __or1k_hard_float__.
22323
22324 2021-01-13 Stafford Horne <shorne@gmail.com>
22325
22326 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
22327 (PROFILE_HOOK): Define to call _mcount.
22328 (FUNCTION_PROFILER): Change from abort to no-op.
22329
22330 2021-01-13 Jakub Jelinek <jakub@redhat.com>
22331
22332 PR tree-optimization/96691
22333 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
22334 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
22335 (~D ^ C) or (D ^ C) can be simplified.
22336
22337 2021-01-13 Richard Biener <rguenther@suse.de>
22338
22339 PR tree-optimization/92645
22340 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
22341 until after vector lowering.
22342
22343 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
22344
22345 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
22346 to SVE_I.
22347 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
22348 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
22349
22350 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
22351
22352 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
22353 to SVE_I.
22354 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
22355 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
22356
22357 2021-01-13 Richard Biener <rguenther@suse.de>
22358
22359 PR tree-optimization/92645
22360 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
22361 BIT_FIELD_REF argument.
22362 (vect_build_slp_tree_2): Record the desired vector type
22363 on the external vector def.
22364 (vectorizable_slp_permutation): Handle required punning
22365 of existing vector defs.
22366
22367 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
22368
22369 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
22370
22371 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
22372
22373 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
22374
22375 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
22376
22377 * config.gcc [$target == *-*-gnu*]: Enable
22378 'default_gnu_indirect_function'.
22379
22380 2021-01-13 Jakub Jelinek <jakub@redhat.com>
22381
22382 PR target/95905
22383 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
22384 registers before calling targetm.vectorize.vec_perm_const, only after
22385 that.
22386 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
22387 two argument permutation when one operand is zero vector and only
22388 after that force operands into registers.
22389 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
22390 define_insn_and_split pattern.
22391 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
22392 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
22393 (*avx2_zero_extendv8hiv8si2_1): Likewise.
22394 (*avx512f_zero_extendv8siv8di2_1): Likewise.
22395 (*avx2_zero_extendv4siv4di2_1): Likewise.
22396 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
22397 into registers.
22398 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
22399 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
22400 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
22401 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
22402 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
22403 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
22404
22405 2021-01-13 Martin Liska <mliska@suse.cz>
22406
22407 PR tree-optimization/98455
22408 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
22409 Record also virtual PHIs.
22410 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
22411 conditionally.
22412
22413 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
22414
22415 * doc/invoke.texi (C++ Modules): Fix typos.
22416
22417 2021-01-13 Richard Biener <rguenther@suse.de>
22418
22419 PR tree-optimization/98640
22420 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
22421 handle plus or minus from a truncated operand to be
22422 sign-extended.
22423
22424 2021-01-13 Jakub Jelinek <jakub@redhat.com>
22425
22426 PR target/96938
22427 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
22428 define_insn_and_split patterns.
22429 (splitter after *btr<mode>_2): New splitter.
22430
22431 2021-01-13 Martin Liska <mliska@suse.cz>
22432
22433 PR ipa/98652
22434 * cgraphunit.c (analyze_functions): Remove dead code.
22435
22436 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
22437
22438 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
22439 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
22440 (a64fx_regmove_cost, a64fx_vector_cost): New.
22441 (a64fx_tunings): Use the new added cost tables.
22442
22443 2021-01-13 Jakub Jelinek <jakub@redhat.com>
22444
22445 PR target/95905
22446 * config/i386/predicates.md (pmovzx_parallel): New predicate.
22447 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
22448 define_insn_and_split pattern.
22449 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
22450 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
22451
22452 2021-01-13 Julian Brown <julian@codesourcery.com>
22453
22454 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
22455 to fix v0 register.
22456
22457 2021-01-13 Julian Brown <julian@codesourcery.com>
22458
22459 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
22460 on entry to a BB.
22461
22462 2021-01-13 Julian Brown <julian@codesourcery.com>
22463
22464 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
22465 for reciprocal-approximation instructions.
22466 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
22467 refinement and division result.
22468 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
22469
22470 2021-01-13 Julian Brown <julian@codesourcery.com>
22471
22472 * config/gcn/gcn-valu.md (subdf): Rename to...
22473 (subdf3): This.
22474
22475 2021-01-12 Martin Liska <mliska@suse.cz>
22476
22477 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
22478
22479 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
22480
22481 * function-abi.h: Fix typo.
22482
22483 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
22484
22485 PR target/97875
22486 PR target/97875
22487 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
22488 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
22489 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
22490 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
22491 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
22492 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
22493 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
22494 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
22495 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
22496 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
22497 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
22498 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
22499 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
22500 (ARM_HAVE_V2DI_LDST): Likewise.
22501 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
22502 (*movmisalign<mode>_mve_load): New pattern.
22503 * config/arm/neon.md (movmisalign<mode>): Move to ...
22504 * config/arm/vec-common.md: ... here.
22505
22506 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
22507
22508 PR target/97969
22509 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
22510 of pattern 'plus (plus (hard reg, const), pseudo)'.
22511
22512 2021-01-12 Richard Biener <rguenther@suse.de>
22513
22514 PR tree-optimization/98550
22515 * tree-vect-slp.c (vect_record_max_nunits): Check whether
22516 the group size is a multiple of the vector element count.
22517 (vect_build_slp_tree_1): When we need to fail because
22518 the vector type choosen causes unrolling do so lazily
22519 without affecting matches only at the end to guide group splitting.
22520
22521 2021-01-12 Martin Liska <mliska@suse.cz>
22522
22523 PR c++/97284
22524 * optc-save-gen.awk: Compare also n_target_save vars with
22525 strcmp.
22526
22527 2021-01-12 Martin Liska <mliska@suse.cz>
22528
22529 * gcov.c (source_info::debug): New.
22530 (print_usage): Add --debug (-D) option.
22531 (process_args): Likewise.
22532 (generate_results): Call src->debug after
22533 accumulate_line_counts.
22534 (read_graph_file): Properly assign id for EXIT_BLOCK.
22535 * profile.c (branch_prob): Dump function body before it is
22536 instrumented.
22537
22538 2021-01-12 Jakub Jelinek <jakub@redhat.com>
22539
22540 PR tree-optimization/98629
22541 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
22542 unless returning non-zero.
22543
22544 2021-01-12 Jakub Jelinek <jakub@redhat.com>
22545
22546 PR tree-optimization/95731
22547 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
22548 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
22549 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
22550 only after optimize_range_tests_var_bound.
22551
22552 2021-01-12 Jakub Jelinek <jakub@redhat.com>
22553
22554 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
22555 * configure: Regenerated.
22556
22557 2021-01-12 liuhongt <hongtao.liu@intel.com>
22558
22559 PR target/98612
22560 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
22561 Deleted.
22562 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
22563 dead code.
22564
22565 2021-01-12 Alexandre Oliva <oliva@adacore.com>
22566
22567 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
22568 declare.
22569 (auto_end_imm_use_stmt_traverse): New struct.
22570 (FOR_EACH_IMM_USE_STMT): Use it.
22571 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
22572 along with uses...
22573 * gimple-ssa-strength-reduction.c: ... here, ...
22574 * graphite-scop-detection.c: ... here, ...
22575 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
22576 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
22577 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
22578 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
22579 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
22580 * tree-vect-slp.c: ... and here, ...
22581 * doc/tree-ssa.texi: ... and the example here.
22582
22583 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
22584
22585 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
22586 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
22587 (*sdiv_pow2<mode>3): New pattern.
22588 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
22589 Wrap the ASRD in an UNSPEC_PRED_X.
22590 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
22591 predicate with a constant PTRUE, if it isn't already.
22592 (*cond_<sve_int_op><mode>_z): Replace with...
22593 (*cond_<sve_int_op><mode>_any): ...this new pattern.
22594
22595 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
22596
22597 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
22598 SVE_FULL_I to SVE_I.
22599 (*cond_bic<mode>_any): Likewise.
22600
22601 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
22602
22603 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
22604 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
22605 to SVE_I.
22606
22607 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
22608
22609 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
22610 SVE_FULL_I to SVE_I.
22611 (*aarch64_cond_<su>abd<mode>_2): Likewise.
22612 (*aarch64_cond_<su>abd<mode>_any): Likewise.
22613 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
22614 for the max and min but not for the minus.
22615 (*aarch64_cond_<su>abd<mode>_3): New pattern.
22616
22617 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
22618
22619 * config/aarch64/iterators.md (SVE_24I): New iterator.
22620 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
22621 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
22622
22623 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
22624
22625 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
22626 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
22627 to SVE_I.
22628 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
22629 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
22630 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
22631 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
22632
22633 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
22634
22635 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
22636 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
22637 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
22638 to SVE_I.
22639
22640 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
22641
22642 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
22643 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
22644 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
22645
22646 2021-01-11 Martin Liska <mliska@suse.cz>
22647
22648 PR jit/98615
22649 * symtab-clones.h (clone_info::release): Release
22650 symtab::m_clones with ggc_delete as it's a GGC memory.
22651
22652 2021-01-11 Matthias Klose <doko@ubuntu.com>
22653
22654 * Makefile.in (LINK_PROGRESS): Show the link target.
22655
22656 2021-01-11 Richard Biener <rguenther@suse.de>
22657
22658 PR tree-optimization/91403
22659 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
22660 single-element interleaving group size at 4096 elements.
22661
22662 2021-01-11 Richard Biener <rguenther@suse.de>
22663
22664 PR tree-optimization/98526
22665 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
22666 of the actual reduction op for the regular case.
22667 (vectorizable_reduction): Cost the stmts
22668 vect_transform_reduction produces here.
22669
22670 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
22671
22672 * tree-ssa-forwprop.c (simplify_vector_constructor): For
22673 big-endian, use UNPACK[_FLOAT]_HI.
22674
22675 2021-01-11 Tamar Christina <tamar.christina@arm.com>
22676
22677 * tree-vect-slp-patterns.c (class complex_pattern,
22678 class complex_add_pattern): Add parameters to matches.
22679 (complex_add_pattern::build): Free memory.
22680 (complex_add_pattern::matches): Move validation end of match.
22681 (complex_add_pattern::recognize): Likewise.
22682
22683 2021-01-11 Tamar Christina <tamar.christina@arm.com>
22684
22685 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
22686
22687 2021-01-11 Tamar Christina <tamar.christina@arm.com>
22688
22689 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
22690
22691 2021-01-11 Jakub Jelinek <jakub@redhat.com>
22692
22693 PR tree-optimization/95867
22694 * tree-ssa-math-opts.h: New header.
22695 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
22696 (powi_as_mults): No longer static. Use build_one_cst instead of
22697 build_real. Formatting fix.
22698 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
22699 (attempt_builtin_powi): Handle multiplication reassociation without
22700 powi_fndecl using powi_as_mults.
22701 (reassociate_bb): For integral types don't require
22702 -funsafe-math-optimizations to call attempt_builtin_powi.
22703
22704 2021-01-11 Jakub Jelinek <jakub@redhat.com>
22705
22706 PR tree-optimization/95852
22707 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
22708 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
22709 allow in the bb any of the stmts in that vector, div_stmt and
22710 up to 3 cast stmts.
22711 (arith_cast_equal_p): New function.
22712 (arith_overflow_check_p): Add cast_stmt argument, handle signed
22713 multiply overflow checks.
22714 (match_arith_overflow): Adjust caller. Handle signed multiply
22715 overflow checks.
22716
22717 2021-01-11 Jakub Jelinek <jakub@redhat.com>
22718
22719 PR tree-optimization/95852
22720 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
22721 (uaddsub_overflow_check_p): Renamed to ...
22722 (arith_overflow_check_p): ... this. Handle also multiplication
22723 with overflow check.
22724 (match_uaddsub_overflow): Renamed to ...
22725 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
22726 also multiplication with overflow check. Adjust function comment.
22727 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
22728 match_arith_overflow also for MULT_EXPR.
22729
22730 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22731
22732 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
22733 __builtin_convertvector.
22734 (vmovl_s16): Likewise.
22735 (vmovl_s32): Likewise.
22736 (vmovl_u8): Likewise.
22737 (vmovl_u16): Likewise.
22738 (vmovl_u32): Likewise.
22739 (vmovn_s16): Likewise.
22740 (vmovn_s32): Likewise.
22741 (vmovn_s64): Likewise.
22742 (vmovn_u16): Likewise.
22743 (vmovn_u32): Likewise.
22744 (vmovn_u64): Likewise.
22745
22746 2021-01-11 Martin Liska <mliska@suse.cz>
22747
22748 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
22749 (if_chain::is_beneficial): Delete clusters
22750 (find_conditions): Make second argument of conditions_in_bbs a
22751 pointer so that we control over it's lifetime.
22752 (pass_if_to_switch::execute): Delete them.
22753
22754 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
22755
22756 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
22757 it isn't set.
22758
22759 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
22760
22761 * config/vax/vax.md (cc): Remove mode attribute.
22762 (subst_<cc>, subst_f<cc>): Rename to...
22763 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
22764 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
22765 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
22766 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
22767
22768 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
22769
22770 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
22771 `const_double_zero'.
22772
22773 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
22774
22775 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
22776 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
22777 operands.
22778
22779 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
22780
22781 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
22782 rtx.
22783 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
22784 with `const_double_zero'.
22785 * doc/rtl.texi (Constant Expression Types): Document it.
22786
22787 2021-01-09 Jakub Jelinek <jakub@redhat.com>
22788
22789 PR c++/98556
22790 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
22791 POINTER_DIFF_EXPR to be any integral type.
22792
22793 2021-01-09 Jakub Jelinek <jakub@redhat.com>
22794
22795 PR rtl-optimization/98603
22796 * function.c (instantiate_virtual_regs_in_insn): For asm goto
22797 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
22798 if any, set ASM_OPERANDS mode to VOIDmode and change
22799 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
22800
22801 2021-01-09 Alexandre Oliva <oliva@gnu.org>
22802
22803 PR debug/97714
22804 * final.c (notice_source_line): Narrow down the condition to
22805 skip a line-0 marker.
22806
22807 2021-01-08 Sergei Trofimovich <siarheit@google.com>
22808
22809 * ipa-modref.c (merge_call_side_effects): Fix
22810 linebreak split by reordering two print calls.
22811
22812 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
22813
22814 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
22815 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
22816 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
22817 consistency, fix constraint.
22818
22819 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
22820
22821 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
22822 callables instead of mask values.
22823 (struct target_flag_set_p): New predicate.
22824 (s390_cpu_cpp_builtins_internal): Define or undefine
22825 __LONG_DOUBLE_VX__ macro.
22826
22827 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
22828
22829 PR target/98482
22830 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
22831 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
22832 targets.
22833
22834 2021-01-08 Richard Biener <rguenther@suse.de>
22835
22836 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
22837
22838 2021-01-08 Richard Biener <rguenther@suse.de>
22839
22840 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
22841 (vect_build_slp_tree): On cache hit release the matched
22842 scalar stmts vector.
22843 * tree-vect-stmts.c (vectorizable_store): Properly free
22844 vec_oprnds before possibly gathering them again.
22845
22846 2021-01-08 Richard Biener <rguenther@suse.de>
22847
22848 PR tree-optimization/98544
22849 * tree-vect-slp.c (vect_optimize_slp): Always materialize
22850 permutes at a permute node.
22851
22852 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
22853
22854 PR target/98482
22855 * config/i386/i386.c (x86_function_profiler): Use R10 to call
22856 mcount in large model. Sorry for large model with PIC.
22857
22858 2021-01-08 Jakub Jelinek <jakub@redhat.com>
22859
22860 PR target/98585
22861 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
22862 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
22863 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
22864 TargetSave and initialize for variables with enum types.
22865 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
22866 mstack-protector-guard-symbol=): Add Save.
22867 * config/i386/i386-options.c (ix86_function_specific_save,
22868 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
22869 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
22870 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
22871 x_ix86_veclibabi_type.
22872
22873 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
22874
22875 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
22876 SVE_FULL_I to SVE_I.
22877 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
22878
22879 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
22880
22881 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
22882 SVE_FULL_I to SVE_I.
22883 (*cond_uxt<mode>_any): Likewise.
22884
22885 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22886
22887 * config/aarch64/iterators.md (Vwhalf): New iterator.
22888 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
22889 Rename to...
22890 (aarch64_<sur>adalp<mode>): ... This. Make more
22891 builtin-friendly.
22892 (<sur>sadv16qi): Adjust callsite of the above.
22893 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
22894 builtins.
22895 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
22896 builtins.
22897 (vpadal_s16): Likewise.
22898 (vpadal_u8): Likewise.
22899 (vpadal_u16): Likewise.
22900 (vpadalq_s8): Likewise.
22901 (vpadalq_s16): Likewise.
22902 (vpadalq_s32): Likewise.
22903 (vpadalq_u8): Likewise.
22904 (vpadalq_u16): Likewise.
22905 (vpadalq_u32): Likewise.
22906
22907 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22908
22909 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
22910 Rename to...
22911 (aarch64_<su>abd<mode>): ... This.
22912 (<sur>sadv16qi): Adjust callsite of the above.
22913 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
22914 builtins.
22915 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
22916 builtin.
22917 (vabd_s16): Likewise.
22918 (vabd_s32): Likewise.
22919 (vabd_u8): Likewise.
22920 (vabd_u16): Likewise.
22921 (vabd_u32): Likewise.
22922 (vabdq_s8): Likewise.
22923 (vabdq_s16): Likewise.
22924 (vabdq_s32): Likewise.
22925 (vabdq_u8): Likewise.
22926 (vabdq_u16): Likewise.
22927 (vabdq_u32): Likewise.
22928
22929 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22930
22931 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
22932 builtins.
22933 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
22934 (vaba_s16): Likewise.
22935 (vaba_s32): Likewise.
22936 (vaba_u8): Likewise.
22937 (vaba_u16): Likewise.
22938 (vaba_u32): Likewise.
22939 (vabaq_s8): Likewise.
22940 (vabaq_s16): Likewise.
22941 (vabaq_s32): Likewise.
22942 (vabaq_u8): Likewise.
22943 (vabaq_u16): Likewise.
22944 (vabaq_u32): Likewise.
22945
22946 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22947
22948 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
22949 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
22950 Change RTL pattern to match.
22951
22952 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
22953
22954 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
22955 * config/riscv/riscv-c.c (riscv-subset.h): New.
22956 (INCLUDE_STRING): Define.
22957 (riscv_cpu_cpp_builtins): Add new style architecture extension
22958 test macros.
22959 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
22960 (riscv_subset_list::end): New.
22961 (riscv_current_subset_list): New.
22962
22963 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
22964
22965 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
22966 Move to riscv-subset.h.
22967 (struct riscv_subset_t): Ditto.
22968 (class riscv_subset_list): Ditto.
22969 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
22970 from riscv-common.c.
22971 (struct riscv_subset_t): Ditto.
22972 (class riscv_subset_list): Ditto.
22973 * config/riscv/t-riscv ($(common_out_file)): Add file
22974 dependency.
22975
22976 2021-01-07 Jakub Jelinek <jakub@redhat.com>
22977
22978 PR target/98567
22979 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
22980 New define_insn patterns.
22981
22982 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
22983
22984 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
22985 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
22986 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
22987
22988 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
22989
22990 PR tree-optimization/98560
22991 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
22992 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
22993 argument 1.
22994 (vec_cond_direct): Likewise argument 2.
22995 (vec_condu_direct, vec_condeq_direct): Delete.
22996 (expand_vect_cond_optab_fn): Rename to...
22997 (expand_vec_cond_optab_fn): ...this, replacing old macro.
22998 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
22999 (expand_vect_cond_mask_optab_fn): Rename to...
23000 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
23001 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
23002 convert optab.
23003 (direct_vec_cond_optab_supported_p): Likewise.
23004 (direct_vec_condu_optab_supported_p): Delete.
23005 (direct_vec_condeq_optab_supported_p): Delete.
23006 * gimple-isel.cc: Include internal-fn.h.
23007 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
23008 before using it.
23009
23010 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
23011
23012 PR tree-optimization/98560
23013 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
23014 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
23015
23016 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
23017
23018 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
23019 rotate_insn and optab code attributes.
23020 Update all uses to merged code attribute.
23021 * config/i386/sse.md: Update all uses to merged code attribute.
23022 * config/i386/mmx.md: Update all uses to merged code attribute.
23023
23024 2021-01-07 Jakub Jelinek <jakub@redhat.com>
23025
23026 PR tree-optimization/98568
23027 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
23028 (bswap_replace): Use it.
23029
23030 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
23031
23032 PR rtl-optimization/97978
23033 * lra-int.h (lra_hard_reg_split_p): New external.
23034 * lra.c (lra_hard_reg_split_p): New global.
23035 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
23036 * lra-assigns.c (lra_assign): Don't check allocation correctness
23037 after hard reg splitting.
23038
23039 2021-01-06 Martin Sebor <msebor@redhat.com>
23040
23041 PR c++/98305
23042 * builtins.c (new_delete_mismatch_p): New overload.
23043 (new_delete_mismatch_p (tree, tree)): Call it.
23044
23045 2021-01-06 Alexandre Oliva <oliva@adacore.com>
23046
23047 * Makefile.in (T_GLIMITS_H): New.
23048 (stmp-int-hdrs): Depend on it, use it.
23049 * config/t-vxworks (T_GLIMITS_H): Override it.
23050 (vxw-glimits.h): New.
23051
23052 2021-01-06 Richard Biener <rguenther@suse.de>
23053
23054 PR tree-optimization/98513
23055 * value-range.cc (intersect_ranges): Compare the upper bounds
23056 for the expected relation.
23057
23058 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
23059
23060 Revert:
23061 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
23062
23063 * doc/standards.texi (HSAIL): Remove section.
23064
23065 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
23066
23067 * configure: Re-generate.
23068
23069 2021-01-05 Jakub Jelinek <jakub@redhat.com>
23070
23071 * doc/invoke.texi (-std=c++20): Adjust for the publication of
23072 ISO 14882:2020 standard.
23073 * doc/standards.texi: Likewise.
23074
23075 2021-01-05 Jakub Jelinek <jakub@redhat.com>
23076
23077 PR tree-optimization/94802
23078 * expr.h (maybe_optimize_sub_cmp_0): Declare.
23079 * expr.c: Include tree-pretty-print.h and flags.h.
23080 (maybe_optimize_sub_cmp_0): New function.
23081 (do_store_flag): Use it.
23082 * cfgexpand.c (expand_gimple_cond): Likewise.
23083
23084 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
23085
23086 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
23087 * rtlanal.c (simple_regno_set): Tweak description to clarify the
23088 RMW condition.
23089
23090 2021-01-05 Richard Biener <rguenther@suse.de>
23091
23092 PR tree-optimization/98516
23093 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
23094 lanes when materializing on a VEC_PERM node.
23095 (vectorizable_slp_permutation): Dump the permute properly.
23096
23097 2021-01-05 Richard Biener <rguenther@suse.de>
23098
23099 * tree-vect-slp.c (vect_slp_region): Move debug counter
23100 to cover individual subgraphs.
23101
23102 2021-01-05 Richard Biener <rguenther@suse.de>
23103
23104 PR tree-optimization/98428
23105 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
23106 vector lane extracts for loop vectorization.
23107
23108 2021-01-05 Jakub Jelinek <jakub@redhat.com>
23109
23110 PR tree-optimization/98514
23111 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
23112 int64_t *.
23113 (operand_rank): Change type from hash_map<tree, long> to
23114 hash_map<tree, int64_t>.
23115 (phi_rank): Change return type from long to int64_t.
23116 (loop_carried_phi): Change block_rank variable type from long to
23117 int64_t.
23118 (propagate_rank): Change return type, rank parameter type and
23119 op_rank variable type from long to int64_t.
23120 (find_operand_rank): Change return type from long to int64_t
23121 and change slot variable type from long * to int64_t *.
23122 (insert_operand_rank): Change rank parameter type from long to
23123 int64_t.
23124 (get_rank): Change return type and rank variable type from long to
23125 int64_t. Use PRId64 instead of ld to print the rank.
23126 (init_reassoc): Change rank variable type from long to int64_t
23127 and adjust correspondingly bb_rank and operand_rank initialization.
23128
23129 2021-01-05 Jakub Jelinek <jakub@redhat.com>
23130
23131 PR tree-optimization/96928
23132 * tree-ssa-phiopt.c (xor_replacement): New function.
23133 (tree_ssa_phiopt_worker): Call it.
23134
23135 2021-01-05 Jakub Jelinek <jakub@redhat.com>
23136
23137 PR tree-optimization/96930
23138 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
23139 from narrower value which has the same type as 1 << B, perform
23140 the right shift on the narrower value followed by extension.
23141
23142 2021-01-05 Jakub Jelinek <jakub@redhat.com>
23143
23144 PR tree-optimization/96239
23145 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
23146 function.
23147 (get_status_for_store_merging): Don't return BB_INVALID for blocks
23148 with potential bswap optimizable CONSTRUCTORs.
23149 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
23150 if possible.
23151
23152 2021-01-05 Richard Biener <rguenther@suse.de>
23153
23154 PR tree-optimization/98381
23155 * tree.c (vector_element_bits): Properly compute bool vector
23156 element size.
23157 * tree-vect-loop.c (vectorizable_live_operation): Properly
23158 compute the last lane bit offset.
23159
23160 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
23161
23162 PR target/98522
23163 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
23164 Clear the top 64 bytes of the input XMM register.
23165 (sse_cvttps2pi): Ditto.
23166
23167 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
23168
23169 PR target/98521
23170 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
23171
23172 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
23173
23174 PR target/98495
23175 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
23176 short first.
23177
23178 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
23179
23180 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
23181 (umaddsidi4_split): Likewise.
23182
23183 2021-01-05 liuhongt <hongtao.liu@intel.com>
23184
23185 PR target/98461
23186 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
23187 define_insn_and_split for zero_extend of subreg HI of pmovskb
23188 result.
23189 (*sse2_pmovskb_zexthisi): Add new combine splitters for
23190 zero_extend of not of subreg HI of pmovskb result.
23191
23192 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
23193
23194 PR target/97269
23195 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
23196 nested in CONSTs.
23197 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
23198 convert_memory_address to convert symbolic immediates to ptr_mode
23199 before forcing them to memory.
23200
23201 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
23202
23203 PR rtl-optimization/97144
23204 * recog.c (constrain_operands): Initialize matching_operand
23205 for each alternative, rather than only doing it once.
23206
23207 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
23208
23209 PR rtl-optimization/98403
23210 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
23211 why we don't remove call clobbers.
23212 (function_info::apply_changes_to_insn): Don't attempt to add
23213 call clobbers here.
23214
23215 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
23216
23217 PR tree-optimization/98371
23218 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
23219 (vect_analyze_loop): If an epilogue loop appears to be cheaper
23220 than the main loop, re-analyze it as a main loop before adopting
23221 it as a main loop.
23222
23223 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23224
23225 PR c++/98316
23226 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
23227 * aclocal.m4, configure: Regenerate.
23228 * Makefile.in (NETLIBS): Define.
23229 (BACKEND): Remove $(CODYLIB).
23230
23231 2021-01-05 Jakub Jelinek <jakub@redhat.com>
23232
23233 PR rtl-optimization/98334
23234 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
23235 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
23236
23237 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
23238
23239 * tree-inline.c (expand_call_inline): Restore input_location.
23240 Return result from recursive call.
23241
23242 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
23243
23244 PR tree-optimization/95401
23245 * config/aarch64/aarch64-sve-builtins.cc
23246 (gimple_folder::load_store_cookie): Use bits rather than bytes
23247 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
23248 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
23249 * tree-vect-stmts.c (vectorizable_store): Likewise.
23250 (vectorizable_load): Likewise.
23251
23252 2021-01-04 Richard Biener <rguenther@suse.de>
23253
23254 PR tree-optimization/98308
23255 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
23256 SLP vectype.
23257
23258 2021-01-04 Jakub Jelinek <jakub@redhat.com>
23259
23260 PR tree-optimization/95771
23261 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
23262 with precision smaller than int's precision and types with precision
23263 twice as large as long long. Formatting fixes.
23264
23265 2021-01-04 Richard Biener <rguenther@suse.de>
23266
23267 PR tree-optimization/98464
23268 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
23269 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
23270 (process_bb): Adjust.
23271
23272 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
23273
23274 PR other/98437
23275 * doc/invoke.texi (-fsanitize=address): Fix wording describing
23276 clash with -fsanitize=hwaddress.
23277
23278 2021-01-04 Richard Biener <rguenther@suse.de>
23279
23280 PR tree-optimization/98282
23281 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
23282 invariants as VN_NARY.
23283
23284 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
23285
23286 PR target/89057
23287 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
23288 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
23289 to handle zero operands.
23290
23291 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
23292
23293 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
23294 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
23295 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
23296 [-32, 31].
23297
23298 2021-01-04 Richard Biener <rguenther@suse.de>
23299
23300 PR tree-optimization/98393
23301 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
23302 when hitting the limit.
23303
23304 2021-01-04 Richard Biener <rguenther@suse.de>
23305
23306 PR tree-optimization/98291
23307 * tree-vect-loop.c (vectorizable_reduction): Bypass
23308 associativity check for SLP reductions with VF 1.
23309
23310 2021-01-04 Jakub Jelinek <jakub@redhat.com>
23311
23312 PR tree-optimization/96782
23313 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
23314
23315 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23316
23317 * collect-utils.c (collect_execute): Check dumppfx.
23318 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
23319 to collect_execute.
23320 (do_link): Add new parameter atsuffix.
23321 (main): Handle -dumpdir option. Skip one argument for
23322 -o, -isystem and -B options.
23323 * gcc.c (make_at_file): New helper function.
23324 (close_at_file): Use it.
23325
23326 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
23327
23328 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
23329 Amend handling for LD64_VERSION fallback defaults.
23330
23331 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
23332
23333 * config.gcc: Compute default version information
23334 from the configured target. Likewise defaults for
23335 ld64.
23336 * config/darwin10.h: Removed.
23337 * config/darwin12.h: Removed.
23338 * config/darwin9.h: Removed.
23339 * config/rs6000/darwin8.h: Removed.
23340
23341 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
23342
23343 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
23344
23345 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
23346
23347 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
23348 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
23349
23350 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
23351
23352 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
23353 here...
23354 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
23355
23356 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
23357
23358 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
23359 for the Darwin10 unwinder stub from here ...
23360 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
23361
23362 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
23363
23364 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
23365 (ASM_DEBUG_SPEC):Only define if the assembler supports
23366 stabs.
23367 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
23368 (DARWIN_PREFER_DWARF): Define.
23369 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
23370 (DARWIN_PREFER_DWARF): Likewise
23371 (DSYMUTIL_SPEC): Likewise.
23372 (COLLECT_RUN_DSYMUTIL): Likewise.
23373 (ASM_DEBUG_SPEC): Likewise.
23374 (ASM_DEBUG_OPTION_SPEC): Likewise.
23375
23376 2021-01-02 Jan Hubicka <jh@suse.cz>
23377
23378 * cfg.c (free_block): ggc_free bb.
23379
23380 2021-01-01 Jakub Jelinek <jakub@redhat.com>
23381
23382 * gcc.c (process_command): Update copyright notice dates.
23383 * gcov-dump.c (print_version): Ditto.
23384 * gcov.c (print_version): Ditto.
23385 * gcov-tool.c (print_version): Ditto.
23386 * gengtype.c (create_file): Ditto.
23387 * doc/cpp.texi: Bump @copying's copyright year.
23388 * doc/cppinternals.texi: Ditto.
23389 * doc/gcc.texi: Ditto.
23390 * doc/gccint.texi: Ditto.
23391 * doc/gcov.texi: Ditto.
23392 * doc/install.texi: Ditto.
23393 * doc/invoke.texi: Ditto.
23394
23395 2021-01-01 Jakub Jelinek <jakub@redhat.com>
23396
23397 * ChangeLog-2020: Rotate ChangeLog. New file.
23398
23399 \f
23400 Copyright (C) 2021 Free Software Foundation, Inc.
23401
23402 Copying and distribution of this file, with or without modification,
23403 are permitted in any medium without royalty provided the copyright
23404 notice and this notice are preserved.