]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
2
3 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
4
5 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
6
7 * config/rs6000/constraints.md: Remove "e" from the list of available
8 constraint characters.
9
10 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
11
12 PR gcov-profile/71672
13 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
14
15 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
16
17 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
18
19 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
20
21 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
22 try XMM31 to avoid vzeroupper.
23
24 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
25
26 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
27 -mcpu=neoverse-512tvb.
28 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
29 * config/aarch64/aarch64-tune.md: Regenerate.
30 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
31 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
32 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
33 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
34 (aarch64_adjust_body_cost): Likewise.
35
36 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
37
38 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
39 record issue information for operations that occur in the
40 innermost loop.
41
42 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
43
44 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
45 parameter. Detect cases in which an Advanced SIMD MLA would almost
46 certainly require a MOV.
47 (aarch64_count_ops): Update accordingly.
48
49 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
50
51 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
52 function, split out from...
53 (aarch64_detect_vector_stmt_subtype): ...here.
54 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
55
56 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
57
58 * config/aarch64/aarch64-protos.h (sve_vec_cost):
59 Add gather_load_x32_cost and gather_load_x64_cost.
60 * config/aarch64/aarch64.c (generic_sve_vector_cost)
61 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
62 accordingly, using the values given by the scalar_load * number
63 of elements calculation that we used previously.
64 (aarch64_detect_vector_stmt_subtype): Use the new fields.
65
66 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
67
68 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
69 function, split out from...
70 (aarch64_adjust_body_cost): ...here.
71
72 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
73
74 * config/aarch64/fractional-cost.h: New file.
75 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
76 and cost_fraction.h.
77 (vec_cost_fraction): New typedef.
78 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
79 (aarch64_detect_vector_stmt_subtype): Likewise.
80 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
81 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
82 for cycle counts.
83 (aarch64_adjust_body_cost): Likewise.
84 (aarch64_test_cost_fraction): New function.
85 (aarch64_run_selftests): Call it.
86
87 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
88
89 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
90 into a bitmask.
91 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
92 accordingly.
93 (aarch64_estimated_poly_value): Likewise. Use the least significant
94 set bit for the minimum and likely values. Use the most significant
95 set bit for the maximum value.
96
97 2021-08-03 liuhongt <hongtao.liu@intel.com>
98
99 * config/i386/sse.md (cond_<insn><mode>): New expander.
100 (cond_mul<mode>): Ditto.
101
102 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
103
104 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
105
106 2021-08-03 liuhongt <hongtao.liu@intel.com>
107
108 * config/i386/sse.md (cond_<insn><mode>):New expander.
109 (cond_mul<mode>): Ditto.
110 (cond_div<mode>): Ditto.
111
112 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
113
114 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
115 check stack_realign_needed for stack realignment.
116 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
117 than the largest integer supported by vector register.
118 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
119 (MOVE_MAX): Set to bytes of the largest integer supported by
120 vector register.
121 (STORE_MAX_PIECES): New.
122
123 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
124
125 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
126 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
127 data from one memory location to another.
128
129 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
130
131 PR middle-end/90773
132 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
133
134 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
135
136 PR tree-optimization/101724
137 * params.opt: Remove --param=threader-iterative.
138 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
139 iterative mode.
140
141 2021-08-02 Tom de Vries <tdevries@suse.de>
142
143 PR middle-end/101665
144 * doc/extend.texi (nonnull attribute): Improve documentation.
145
146 2021-08-02 Andrew Pinski <apinski@marvell.com>
147
148 PR rtl-optimization/101683
149 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
150
151 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
152
153 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
154 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
155 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
156 (tree_ssa_phiop_worker): Update call to function above.
157
158 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
159
160 PR target/78103
161 * config/i386/i386.md (bsr_rex64_1_zext): New.
162 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
163 with gen_bsr_rex64_1_zext.
164
165 2021-07-31 Jakub Jelinek <jakub@redhat.com>
166
167 PR target/78103
168 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
169 define_insn patterns.
170 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
171 Add combine splitters for constant - clz.
172 (clz<mode>2): Use a temporary pseudo for bsr result.
173
174 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
175
176 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
177 _mm_floor_sd, _mm_floor_ss): New.
178
179 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
180
181 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
182 _mm_ceil_sd, _mm_ceil_ss): New.
183
184 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
185
186 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
187 _mm_blend_ps, _mm_blendv_ps): New.
188
189 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
190 Uroš Bizjak <ubizjak@gmail.com>
191
192 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
193 to generate a conditional move using the carry flag after sub $1.
194 (peephole2): Eliminate a register-to-register move by inverting
195 the condition of a conditional move.
196
197 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
198
199 * config/mmix/mmix.md ("call", "call_value", "*call_real")
200 ("*call_value_real"): Don't generate rtx mentioning the generic
201 operands 1 and 2 to "call", and similarly for "call_value".
202 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
203 (mmix_print_operand): Use '!' instead of 'p'.
204
205 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
206
207 * doc/md.texi (call): Correct information about operand 2.
208 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
209
210 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
211
212 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
213
214 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
215
216 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
217
218 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
219
220 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
221 const_basic_block..
222 (*::get_bb_range): Ditto.
223 (*::bb_range_p): Ditto.
224 * gimple-range-cache.h: Change prototypes.
225
226 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
227
228 PR middle-end/90773
229 * builtins.c (builtin_memcpy_read_str): Change the mode argument
230 from scalar_int_mode to fixed_size_mode.
231 (builtin_strncpy_read_str): Likewise.
232 (gen_memset_value_from_prev): New function.
233 (builtin_memset_read_str): Change the mode argument from
234 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
235 and support CONST_VECTOR.
236 (builtin_memset_gen_str): Likewise.
237 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
238 constfun.
239 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
240 with fixed_size_mode.
241 (builtin_memset_read_str): Likewise.
242 * expr.c (widest_int_mode_for_size): Renamed to ...
243 (widest_fixed_size_mode_for_size): Add a bool argument to
244 indicate if QI vector mode can be used.
245 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
246 instead of widest_int_mode_for_size.
247 (pieces_addr::adjust): Change the mode argument from
248 scalar_int_mode to fixed_size_mode.
249 (op_by_pieces_d): Make m_len read-only. Add a bool member,
250 m_qi_vector_mode, to indicate that QI vector mode can be used.
251 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
252 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
253 instead of widest_int_mode_for_size.
254 (op_by_pieces_d::get_usable_mode): Change the mode argument from
255 scalar_int_mode to fixed_size_mode. Call
256 widest_fixed_size_mode_for_size instead of
257 widest_int_mode_for_size.
258 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
259 function to return the smallest integer or QI vector mode.
260 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
261 instead of widest_int_mode_for_size. Call
262 smallest_fixed_size_mode_for_size instead of
263 smallest_int_mode_for_size.
264 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
265 indicate that QI vector mode can be used and pass it to
266 op_by_pieces_d::op_by_pieces_d.
267 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
268 instead of widest_int_mode_for_size. Pass memsetp to
269 widest_fixed_size_mode_for_size to support QI vector mode.
270 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
271 (store_by_pieces): Pass memsetp to
272 store_by_pieces_d::store_by_pieces_d.
273 (clear_by_pieces_1): Removed.
274 (clear_by_pieces): Replace clear_by_pieces_1 with
275 builtin_memset_read_str and pass true to store_by_pieces_d to
276 support vector mode broadcast.
277 (string_cst_read_str): Change the mode argument from
278 scalar_int_mode to fixed_size_mode.
279 * expr.h (by_pieces_constfn): Change scalar_int_mode to
280 fixed_size_mode.
281 (by_pieces_prev): Likewise.
282 * rtl.h (lowpart_subreg_regno): New.
283 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
284 simplify_subreg_regno.
285 * target.def (gen_memset_scratch_rtx): New hook.
286 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
287 * doc/tm.texi: Regenerated.
288
289 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
290
291 PR target/94780
292 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
293 TARGET_EXPR instead of MODIFY_EXPR.
294
295 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
296
297 PR target/101132
298 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
299 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
300 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
301 expander.
302 (vec_cmpu<IMSA:mode><mode_i>): New expander.
303
304 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
305
306 PR target/101685
307 * config/i386/i386-options.c (ix86_option_override_internal):
308 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
309
310 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
311
312 PR target/66791
313 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
314 explicitly dereferencing __a.
315 (vld1_s64): Likewise.
316 (vld1_u64): Likewise.
317 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
318 and change to VAR13.
319
320 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
321
322 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
323 use of m_range_analyzer.
324 (loop_versioning::lv_dom_walker::before_dom_children): Same.
325 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
326 (loop_versioning::prune_loop_conditions): Replace vr_values use
327 with range_query interface.
328 (pass_loop_versioning::execute): Use ranger.
329
330 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
331
332 PR ipa/101396
333 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
334 enum values, and emit a warning if they mismatch.
335
336 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
337
338 * cfgloop.h (as_const): New function.
339 (class loop_iterator): Rename to ...
340 (class loops_list): ... this.
341 (loop_iterator::next): Rename to ...
342 (loops_list::Iter::fill_curr_loop): ... this and adjust.
343 (loop_iterator::loop_iterator): Rename to ...
344 (loops_list::loops_list): ... this and adjust.
345 (loops_list::Iter): New class.
346 (loops_list::iterator): New type.
347 (loops_list::const_iterator): New type.
348 (loops_list::begin): New function.
349 (loops_list::end): Likewise.
350 (loops_list::begin const): Likewise.
351 (loops_list::end const): Likewise.
352 (FOR_EACH_LOOP): Remove.
353 (FOR_EACH_LOOP_FN): Remove.
354 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
355 for loop with loops_list instance.
356 (sort_sibling_loops): Likewise.
357 (disambiguate_loops_with_multiple_latches): Likewise.
358 (verify_loop_structure): Likewise.
359 * cfgloopmanip.c (create_preheaders): Likewise.
360 (force_single_succ_latches): Likewise.
361 * config/aarch64/falkor-tag-collision-avoidance.c
362 (execute_tag_collision_avoidance): Likewise.
363 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
364 * config/s390/s390.c (s390_adjust_loops): Likewise.
365 * doc/loop.texi: Likewise.
366 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
367 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
368 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
369 (loop_versioning::make_versioning_decisions): Likewise.
370 * gimple-ssa-split-paths.c (split_paths): Likewise.
371 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
372 * graphite.c (canonicalize_loop_form): Likewise.
373 (graphite_transform_loops): Likewise.
374 * ipa-fnsummary.c (analyze_function_body): Likewise.
375 * ipa-pure-const.c (analyze_function): Likewise.
376 * loop-doloop.c (doloop_optimize_loops): Likewise.
377 * loop-init.c (loop_optimizer_finalize): Likewise.
378 (fix_loop_structure): Likewise.
379 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
380 (move_loop_invariants): Likewise.
381 * loop-unroll.c (decide_unrolling): Likewise.
382 (unroll_loops): Likewise.
383 * modulo-sched.c (sms_schedule): Likewise.
384 * predict.c (predict_loops): Likewise.
385 (pass_profile::execute): Likewise.
386 * profile.c (branch_prob): Likewise.
387 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
388 (sel_find_rgns): Likewise.
389 * tree-cfg.c (replace_loop_annotate): Likewise.
390 (replace_uses_by): Likewise.
391 (move_sese_region_to_fn): Likewise.
392 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
393 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
394 * tree-parloops.c (parallelize_loops): Likewise.
395 * tree-predcom.c (tree_predictive_commoning): Likewise.
396 * tree-scalar-evolution.c (scev_initialize): Likewise.
397 (scev_reset): Likewise.
398 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
399 * tree-ssa-live.c (remove_unused_locals): Likewise.
400 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
401 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
402 (tree_ssa_lim_initialize): Likewise.
403 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
404 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
405 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
406 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
407 (free_numbers_of_iterations_estimates): Likewise.
408 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
409 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
410 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
411 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
412 (pass_scev_cprop::execute): Likewise.
413 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
414 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
415 * tree-ssa-threadupdate.c
416 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
417 * tree-vectorizer.c (vectorize_loops): Likewise.
418 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
419
420 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
421
422 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
423 generating a VOIDmode register for e.g the
424 function_arg_info::end_marker.
425
426 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
427
428 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
429 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
430 (cc mode_attr): Similarly.
431 (ccz subst_attr): Similarly.
432 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
433 * config/h8300/testcompare.md: Remove various cc0 based patterns
434 that had been commented out. Add pattern to set CCZ from a bit
435 test.
436
437 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
438 Julian Brown <julian@codesourcery.com>
439 Kwok Cheung Yeung <kcy@codesourcery.com>
440
441 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
442 'update_stmt' after modification.
443 (pass_oacc_loop_designation): New function, extracted out of...
444 (pass_oacc_device_lower): ... this.
445 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
446 (make_pass_oacc_loop_designation): New
447 * passes.def: Add it.
448 * tree-parloops.c (create_parallel_loop): Adjust.
449 * tree-pass.h (make_pass_oacc_loop_designation): New.
450
451 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
452
453 * flag-types.h (enum threader_mode): New.
454 * params.opt: Add entry for --param=threader-mode.
455 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
456 (class back_threader): New.
457 (back_threader::back_threader): New.
458 (back_threader::~back_threader): New.
459 (back_threader::maybe_register_path): New.
460 (back_threader::find_taken_edge): New.
461 (back_threader::find_taken_edge_switch): New.
462 (back_threader::find_taken_edge_cond): New.
463 (back_threader::resolve_def): New.
464 (back_threader::resolve_phi): New.
465 (back_threader::find_paths_to_names): New.
466 (back_threader::find_paths): New.
467 (dump_path): New.
468 (debug): New.
469 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
470 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
471 (pass_thread_jumps::execute): Abstract out code...
472 (try_thread_blocks): ...here.
473 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
474 Abstract out threading candidate code to...
475 (single_succ_to_potentially_threadable_block): ...here.
476 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
477 New.
478 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
479 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
480 Return bool from register_jump_thread.
481
482 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
483
484 * target.def: in0 and in1 do not need to be registers.
485 * doc/tm.texi: Regenerate.
486
487 2021-07-29 liuhongt <hongtao.liu@intel.com>
488
489 PR target/39821
490 * config/i386/i386.c (ix86_widen_mult_cost): New function.
491 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
492 WIDEN_MULT_EXPR.
493
494 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
495
496 PR target/61837
497 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
498 (rs6000_preferred_doloop_mode): New hook.
499 * doc/tm.texi: Regenerate.
500 * doc/tm.texi.in: Add hook preferred_doloop_mode.
501 * target.def (preferred_doloop_mode): New hook.
502 * targhooks.c (default_preferred_doloop_mode): New hook.
503 * targhooks.h (default_preferred_doloop_mode): New hook.
504 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
505 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
506 and compute_doloop_base_on_mode.
507
508 2021-07-28 Martin Sebor <msebor@redhat.com>
509
510 PR middle-end/101494
511 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
512 and size computation.
513
514 2021-07-28 Martin Sebor <msebor@redhat.com>
515
516 PR middle-end/101601
517 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
518 a pointless test.
519 Handle pointers to functions.
520
521 2021-07-28 Martin Sebor <msebor@redhat.com>
522
523 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
524 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
525 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
526 (access_ref::access_ref): Same.
527 (access_ref::phi): Same.
528 (access_ref::get_ref): Same.
529 (access_ref::size_remaining): Same.
530 (access_ref::offset_in_range): Same.
531 (access_ref::add_offset): Same.
532 (access_ref::inform_access): Same.
533 (ssa_name_limit_t::visit_phi): Same.
534 (ssa_name_limit_t::leave_phi): Same.
535 (ssa_name_limit_t::next): Same.
536 (ssa_name_limit_t::next_phi): Same.
537 (ssa_name_limit_t::~ssa_name_limit_t): Same.
538 (pointer_query::pointer_query): Same.
539 (pointer_query::get_ref): Same.
540 (pointer_query::put_ref): Same.
541 (pointer_query::flush_cache): Same.
542 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
543 (check_nul_terminated_array): Same.
544 (unterminated_array): Same.
545 (maybe_warn_for_bound): Same.
546 (check_read_access): Same.
547 (warn_for_access): Same.
548 (get_size_range): Same.
549 (check_access): Same.
550 (gimple_call_alloc_size): Move to tree.c.
551 (gimple_parm_array_size): Move to pointer-query.cc.
552 (get_offset_range): Same.
553 (gimple_call_return_array): Same.
554 (handle_min_max_size): Same.
555 (handle_array_ref): Same.
556 (handle_mem_ref): Same.
557 (compute_objsize): Same.
558 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
559 (call_dealloc_argno): Same.
560 (fndecl_dealloc_argno): Same.
561 (new_delete_mismatch_p): Same.
562 (matching_alloc_calls_p): Same.
563 (warn_dealloc_offset): Same.
564 (maybe_emit_free_warning): Same.
565 * builtins.h (check_nul_terminated_array): Move to
566 gimple-ssa-warn-access.h.
567 (check_nul_terminated_array): Same.
568 (warn_string_no_nul): Same.
569 (unterminated_array): Same.
570 (class ssa_name_limit_t): Same.
571 (class pointer_query): Same.
572 (struct access_ref): Same.
573 (class range_query): Same.
574 (struct access_data): Same.
575 (gimple_call_alloc_size): Same.
576 (gimple_parm_array_size): Same.
577 (compute_objsize): Same.
578 (class access_data): Same.
579 (maybe_emit_free_warning): Same.
580 * calls.c (initialize_argument_information): Remove call to
581 maybe_emit_free_warning.
582 * gimple-array-bounds.cc: Include new header..
583 * gimple-fold.c: Same.
584 * gimple-ssa-sprintf.c: Same.
585 * gimple-ssa-warn-restrict.c: Same.
586 * passes.def: Add pass_warn_access.
587 * tree-pass.h (make_pass_warn_access): Declare.
588 * tree-ssa-strlen.c: Include new headers.
589 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
590 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
591 * gimple-ssa-warn-access.cc: New file.
592 * gimple-ssa-warn-access.h: New file.
593 * pointer-query.cc: New file.
594 * pointer-query.h: New file.
595
596 2021-07-28 Jakub Jelinek <jakub@redhat.com>
597
598 PR middle-end/101624
599 * ubsan.c (maybe_instrument_pointer_overflow,
600 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
601 PARM_DECLs or RESULT_DECLs.
602 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
603
604 2021-07-28 Jakub Jelinek <jakub@redhat.com>
605
606 PR middle-end/101642
607 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
608 to type of bswap16 for comparison.
609 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
610
611 2021-07-28 Richard Biener <rguenther@suse.de>
612
613 PR tree-optimization/101615
614 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
615 at CTOR SLP graph entries.
616
617 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
618
619 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
620 Add "r,w" alternative.
621
622 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
623
624 PR target/101456
625 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
626 AVX_U128_DIRTY when all bits are zero.
627
628 2021-07-28 Richard Biener <rguenther@suse.de>
629
630 PR tree-optimization/101615
631 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
632 external nodes cannot be permuted so make them perm_out 0.
633
634 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
635
636 PR target/100208
637 * config.in: Regenerate.
638 * config/gcn/gcn-hsa.h (A_FIJI): New define.
639 (A_900): New define.
640 (A_906): New define.
641 (A_908): New define.
642 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
643 * config/gcn/gcn.c (output_file_start): Adjust attributes according
644 to the assembler capabilities.
645 * config/gcn/mkoffload.c (main): Likewise.
646 * configure: Regenerate.
647 * configure.ac: Add tests for LLVM assembler attribute features.
648
649 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
650
651 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
652 cond_false and cond_true on branches.
653
654 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
655
656 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
657 gcc_stablesort.
658
659 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
660
661 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
662
663 2021-07-28 Jakub Jelinek <jakub@redhat.com>
664
665 PR target/101611
666 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
667 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
668 and has special !TARGET_AVX512VL expansion.
669 (vashrv2di3<mask_name>): Rename to ...
670 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
671 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
672
673 2021-07-28 Martin Uecker <muecker@gwdg.de>
674
675 * calls.c (maybe_warn_rdwr_sizes): Correct argument
676 numbers in warning that were switched.
677
678 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
679
680 PR tree-optimization/101596
681 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
682 by using new_type's precision instead.
683
684 2021-07-28 liuhongt <hongtao.liu@intel.com>
685
686 PR target/99881
687 * config/i386/i386.h (processor_costs): Add new member
688 integer_to_sse.
689 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
690 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
691 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
692 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
693 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
694 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
695 generic_cost, core_cost): Initialize integer_to_sse same value
696 as sse_op.
697 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
698 * config/i386/i386.c (ix86_builtin_vectorization_cost):
699 Use integer_to_sse instead of sse_op to calculate the cost of
700 vec_construct.
701
702 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
703
704 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
705 function.
706 (write_init_file): Call write_ovld_static_init.
707
708 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
709
710 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
711 function.
712 (write_init_file): Call write_bif_static_init.
713
714 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
715
716 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
717 (TYPE_MAP_SIZE): New macro.
718 (type_map): New initialized variable.
719 (typemap_cmp): New function.
720 (write_type_node): Likewise.
721 (write_fntype_init): Implement.
722
723 2021-07-27 Martin Sebor <msebor@redhat.com>
724
725 PR tree-optimization/101584
726 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
727 (check_defs): Call it.
728
729 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
730
731 * tree-ssa-dom.c (dom_jump_threader_simplifier):
732 Put avail_exprs_stack in the class, instead of passing it to
733 jump_threader_simplifier.
734 (dom_jump_threader_simplifier::simplify): Add state argument.
735 (dom_opt_dom_walker): Add state.
736 (pass_dominator::execute): Pass state to threader.
737 (dom_opt_dom_walker::before_dom_children): Use state.
738 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
739 arguments by state.
740 (jump_threader::record_temporary_equivalences_from_phis):
741 Register equivalences through the state variable.
742 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
743 Record ranges in a statement through the state variable.
744 (jump_threader::simplify_control_stmt_condition): Pass state to
745 simplify.
746 (jump_threader::simplify_control_stmt_condition_1): Same.
747 (jump_threader::thread_around_empty_blocks): Remove obsolete
748 comment.
749 (jump_threader::thread_through_normal_block): Record equivalences
750 on edge through the state variable.
751 (jump_threader::thread_across_edge): Abstract state pushing.
752 (jt_state::jt_state): New.
753 (jt_state::push): New.
754 (jt_state::pop): New.
755 (jt_state::register_equiv): New.
756 (jt_state::record_ranges_from_stmt): New.
757 (jt_state::register_equivs_on_edge): New.
758 (jump_threader_simplifier::jump_threader_simplifier): Move from
759 header.
760 (jump_threader_simplifier::simplify): Add state argument.
761 * tree-ssa-threadedge.h (class jt_state): New.
762 (class jump_threader): Add state to constructor.
763 (class jump_threader_simplifier): Add state to simplify. Remove
764 avail_exprs_stack from class.
765 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
766 argument.
767 (vrp_jump_threader::vrp_jump_threader): Add state.
768 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
769
770 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
771
772 * Makefile.in (OBJS): Add gimple-range-path.o.
773 * gimple-range-path.cc: New file.
774 * gimple-range-path.h: New file.
775
776 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
777
778 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
779 inside vec_duplicate for all patterns.
780 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
781 Push sign/zero-extension inside vec_duplicate.
782
783 2021-07-27 Richard Biener <rguenther@suse.de>
784
785 PR tree-optimization/101573
786 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
787 looking at uninitialized PHI arg defs in some constrained cases.
788 (warn_uninitialized_vars): Call it.
789 (execute_early_warn_uninitialized): Calculate dominators.
790
791 2021-07-27 Richard Biener <rguenther@suse.de>
792
793 PR tree-optimization/39821
794 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
795 vector_stmt for widening arithmetic.
796 (vectorizable_conversion): Adjust.
797
798 2021-07-27 Martin Jambor <mjambor@suse.cz>
799
800 * cgraph.h (ipa_replace_map): New field force_load_ref.
801 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
802 aded new flag load_dereferenced, adjusted comments.
803 (ipa_get_param_dereferenced): New function.
804 (ipa_set_param_dereferenced): Likewise.
805 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
806 * ipa-cp.c: Include gimple.h.
807 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
808 (get_replacement_map): New parameter force_load_ref, set the
809 appropriate flag in ipa_replace_map if set.
810 (struct symbol_and_index_together): New type.
811 (adjust_refs_in_act_callers): New function.
812 (adjust_references_in_caller): Likewise.
813 (create_specialized_node): When appropriate, call
814 adjust_references_in_caller and force only load references.
815 * ipa-prop.c (load_from_dereferenced_name): New function.
816 (ipa_analyze_controlled_uses): Also detect loads from a
817 dereference, harden testing of call statements.
818 (ipa_write_node_info): Stream the dereferenced flag.
819 (ipa_read_node_info): Likewise.
820 (ipa_set_jf_constant): Also create refdesc when jump function
821 references a variable.
822 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
823 also on references of variables and return a symtab_node. Adjust
824 all callers.
825 (propagate_controlled_uses): Also remove references to VAR_DECLs.
826
827 2021-07-27 Jakub Jelinek <jakub@redhat.com>
828
829 PR middle-end/101586
830 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
831 positions above or equal to sz except for diagnostics of flexible
832 array members.
833
834 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
835
836 PR tree-optimization/78888
837 * gimple-range-fold.cc (get_letter_range): New.
838 (fold_using_range::range_of_builtin_call): Call get_letter_range.
839
840 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
841
842 PR tree-optimization/78888
843 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
844 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
845
846 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
847 Marc Glisse <marc.glisse@inria.fr>
848
849 * match.pd (rotate): Simplify equality/inequality of rotations.
850 (bswap): Simplify equality/inequality tests of byte swapping.
851
852 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
853
854 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
855 New.
856
857 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
858
859 * range-op.cc (operator_lshift::fold_range): Pass rel to
860 base class fold_range.
861 (operator_rshift::fold_range): Same.
862
863 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
864
865 PR driver/101447
866 * toplev.h (min_align_loops_log): Remove declaration.
867 (min_align_jumps_log, min_align_labels_log): Likewise.
868 (min_align_functions_log): Likewise.
869
870 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
871
872 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
873 with range_query.
874 (execute_vrp): Abstract out simplification of conditionals...
875 (simplify_casted_conds): ...here.
876
877 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
878
879 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
880 Add gimple argument.
881 (array_bounds_checker::check_array_ref): Same.
882 (array_bounds_checker::check_addr_expr): Same.
883 (array_bounds_checker::check_array_bounds): Pass statement to
884 check_array_bounds and check_addr_expr.
885 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
886 (check_addr_expr): Same.
887 (get_value_range): Same.
888
889 2021-07-26 Tamar Christina <tamar.christina@arm.com>
890
891 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
892 (sdot_prod, udot_prod): ... This.
893 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
894 into...
895 (<sur>dot_prod<vsi2qi>): ... this.
896 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
897 Change operands order.
898 (<sur>sadv16qi): Use new operands order.
899 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
900 vdotq_s32): Use new RTL ordering.
901
902 2021-07-26 Tamar Christina <tamar.christina@arm.com>
903
904 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
905 aarch64_types_ternop_suss_qualifiers): New.
906 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
907 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
908 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
909
910 2021-07-23 Jakub Jelinek <jakub@redhat.com>
911
912 PR rtl-optimization/101562
913 * expmed.c (store_integral_bit_field): Only use movstrict_optab
914 if the operand isn't paradoxical.
915
916 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
917
918 * gimple-array-bounds.h (class array_bounds_checker): Change
919 ranges type to range_query.
920
921 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
922
923 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
924 __builtin_memcpy instead of constructing
925 __builtin_aarch64_simd_oi one vector at a time.
926 (vst1_u64_x2): Likewise.
927 (vst1_f64_x2): Likewise.
928 (vst1_s8_x2): Likewise.
929 (vst1_p8_x2): Likewise.
930 (vst1_s16_x2): Likewise.
931 (vst1_p16_x2): Likewise.
932 (vst1_s32_x2): Likewise.
933 (vst1_u8_x2): Likewise.
934 (vst1_u16_x2): Likewise.
935 (vst1_u32_x2): Likewise.
936 (vst1_f16_x2): Likewise.
937 (vst1_f32_x2): Likewise.
938 (vst1_p64_x2): Likewise.
939 (vst1q_s8_x2): Likewise.
940 (vst1q_p8_x2): Likewise.
941 (vst1q_s16_x2): Likewise.
942 (vst1q_p16_x2): Likewise.
943 (vst1q_s32_x2): Likewise.
944 (vst1q_s64_x2): Likewise.
945 (vst1q_u8_x2): Likewise.
946 (vst1q_u16_x2): Likewise.
947 (vst1q_u32_x2): Likewise.
948 (vst1q_u64_x2): Likewise.
949 (vst1q_f16_x2): Likewise.
950 (vst1q_f32_x2): Likewise.
951 (vst1q_f64_x2): Likewise.
952 (vst1q_p64_x2): Likewise.
953
954 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
955
956 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
957 __builtin_memcpy instead of constructing
958 __builtin_aarch64_simd_ci one vector at a time.
959 (vst1_u64_x3): Likewise.
960 (vst1_f64_x3): Likewise.
961 (vst1_s8_x3): Likewise.
962 (vst1_p8_x3): Likewise.
963 (vst1_s16_x3): Likewise.
964 (vst1_p16_x3): Likewise.
965 (vst1_s32_x3): Likewise.
966 (vst1_u8_x3): Likewise.
967 (vst1_u16_x3): Likewise.
968 (vst1_u32_x3): Likewise.
969 (vst1_f16_x3): Likewise.
970 (vst1_f32_x3): Likewise.
971 (vst1_p64_x3): Likewise.
972 (vst1q_s8_x3): Likewise.
973 (vst1q_p8_x3): Likewise.
974 (vst1q_s16_x3): Likewise.
975 (vst1q_p16_x3): Likewise.
976 (vst1q_s32_x3): Likewise.
977 (vst1q_s64_x3): Likewise.
978 (vst1q_u8_x3): Likewise.
979 (vst1q_u16_x3): Likewise.
980 (vst1q_u32_x3): Likewise.
981 (vst1q_u64_x3): Likewise.
982 (vst1q_f16_x3): Likewise.
983 (vst1q_f32_x3): Likewise.
984 (vst1q_f64_x3): Likewise.
985 (vst1q_p64_x3): Likewise.
986
987 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
988
989 PR target/101504
990 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
991 hard register when LRA is in progress.
992
993 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
994
995 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
996 __builtin_memcpy instead of using a union.
997 (vst1q_s8_x4): Likewise.
998 (vst1_s16_x4): Likewise.
999 (vst1q_s16_x4): Likewise.
1000 (vst1_s32_x4): Likewise.
1001 (vst1q_s32_x4): Likewise.
1002 (vst1_u8_x4): Likewise.
1003 (vst1q_u8_x4): Likewise.
1004 (vst1_u16_x4): Likewise.
1005 (vst1q_u16_x4): Likewise.
1006 (vst1_u32_x4): Likewise.
1007 (vst1q_u32_x4): Likewise.
1008 (vst1_f16_x4): Likewise.
1009 (vst1q_f16_x4): Likewise.
1010 (vst1_f32_x4): Likewise.
1011 (vst1q_f32_x4): Likewise.
1012 (vst1_p8_x4): Likewise.
1013 (vst1q_p8_x4): Likewise.
1014 (vst1_p16_x4): Likewise.
1015 (vst1q_p16_x4): Likewise.
1016 (vst1_s64_x4): Likewise.
1017 (vst1_u64_x4): Likewise.
1018 (vst1_p64_x4): Likewise.
1019 (vst1q_s64_x4): Likewise.
1020 (vst1q_u64_x4): Likewise.
1021 (vst1q_p64_x4): Likewise.
1022 (vst1_f64_x4): Likewise.
1023 (vst1q_f64_x4): Likewise.
1024
1025 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
1026
1027 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
1028 instead of constructing __builtin_aarch64_simd_oi one vector
1029 at a time.
1030 (vst2_u64): Likewise.
1031 (vst2_f64): Likewise.
1032 (vst2_s8): Likewise.
1033 (vst2_p8): Likewise.
1034 (vst2_s16): Likewise.
1035 (vst2_p16): Likewise.
1036 (vst2_s32): Likewise.
1037 (vst2_u8): Likewise.
1038 (vst2_u16): Likewise.
1039 (vst2_u32): Likewise.
1040 (vst2_f16): Likewise.
1041 (vst2_f32): Likewise.
1042 (vst2_p64): Likewise.
1043 (vst2q_s8): Likewise.
1044 (vst2q_p8): Likewise.
1045 (vst2q_s16): Likewise.
1046 (vst2q_p16): Likewise.
1047 (vst2q_s32): Likewise.
1048 (vst2q_s64): Likewise.
1049 (vst2q_u8): Likewise.
1050 (vst2q_u16): Likewise.
1051 (vst2q_u32): Likewise.
1052 (vst2q_u64): Likewise.
1053 (vst2q_f16): Likewise.
1054 (vst2q_f32): Likewise.
1055 (vst2q_f64): Likewise.
1056 (vst2q_p64): Likewise.
1057
1058 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1059
1060 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
1061 instead of constructing __builtin_aarch64_simd_ci one vector
1062 at a time.
1063 (vst3_u64): Likewise.
1064 (vst3_f64): Likewise.
1065 (vst3_s8): Likewise.
1066 (vst3_p8): Likewise.
1067 (vst3_s16): Likewise.
1068 (vst3_p16): Likewise.
1069 (vst3_s32): Likewise.
1070 (vst3_u8): Likewise.
1071 (vst3_u16): Likewise.
1072 (vst3_u32): Likewise.
1073 (vst3_f16): Likewise.
1074 (vst3_f32): Likewise.
1075 (vst3_p64): Likewise.
1076 (vst3q_s8): Likewise.
1077 (vst3q_p8): Likewise.
1078 (vst3q_s16): Likewise.
1079 (vst3q_p16): Likewise.
1080 (vst3q_s32): Likewise.
1081 (vst3q_s64): Likewise.
1082 (vst3q_u8): Likewise.
1083 (vst3q_u16): Likewise.
1084 (vst3q_u32): Likewise.
1085 (vst3q_u64): Likewise.
1086 (vst3q_f16): Likewise.
1087 (vst3q_f32): Likewise.
1088 (vst3q_f64): Likewise.
1089 (vst3q_p64): Likewise.
1090
1091 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1092
1093 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
1094 instead of constructing __builtin_aarch64_simd_xi one vector
1095 at a time.
1096 (vst4_u64): Likewise.
1097 (vst4_f64): Likewise.
1098 (vst4_s8): Likewise.
1099 (vst4_p8): Likewise.
1100 (vst4_s16): Likewise.
1101 (vst4_p16): Likewise.
1102 (vst4_s32): Likewise.
1103 (vst4_u8): Likewise.
1104 (vst4_u16): Likewise.
1105 (vst4_u32): Likewise.
1106 (vst4_f16): Likewise.
1107 (vst4_f32): Likewise.
1108 (vst4_p64): Likewise.
1109 (vst4q_s8): Likewise.
1110 (vst4q_p8): Likewise.
1111 (vst4q_s16): Likewise.
1112 (vst4q_p16): Likewise.
1113 (vst4q_s32): Likewise.
1114 (vst4q_s64): Likewise.
1115 (vst4q_u8): Likewise.
1116 (vst4q_u16): Likewise.
1117 (vst4q_u32): Likewise.
1118 (vst4q_u64): Likewise.
1119 (vst4q_f16): Likewise.
1120 (vst4q_f32): Likewise.
1121 (vst4q_f64): Likewise.
1122 (vst4q_p64): Likewise.
1123
1124 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1125
1126 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
1127 instead of constructing __builtin_aarch64_simd_oi one vector
1128 at a time.
1129 (vtbx4_u8): Likewise.
1130 (vtbx4_p8): Likewise.
1131
1132 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1133
1134 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
1135 instead of constructing __builtin_aarch64_simd_oi one vector
1136 at a time.
1137 (vtbl3_u8): Likewise.
1138 (vtbl3_p8): Likewise.
1139 (vtbl4_s8): Likewise.
1140 (vtbl4_u8): Likewise.
1141 (vtbl4_p8): Likewise.
1142
1143 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1144
1145 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
1146 instead of constructing __builtin_aarch64_simd_oi one vector
1147 at a time.
1148 (vqtbx2_u8): Likewise.
1149 (vqtbx2_p8): Likewise.
1150 (vqtbx2q_s8): Likewise.
1151 (vqtbx2q_u8): Likewise.
1152 (vqtbx2q_p8): Likewise.
1153 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
1154 __builtin_aarch64_simd_ci one vector at a time.
1155 (vqtbx3_u8): Likewise.
1156 (vqtbx3_p8): Likewise.
1157 (vqtbx3q_s8): Likewise.
1158 (vqtbx3q_u8): Likewise.
1159 (vqtbx3q_p8): Likewise.
1160 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
1161 __builtin_aarch64_simd_xi one vector at a time.
1162 (vqtbx4_u8): Likewise.
1163 (vqtbx4_p8): Likewise.
1164 (vqtbx4q_s8): Likewise.
1165 (vqtbx4q_u8): Likewise.
1166 (vqtbx4q_p8): Likewise.
1167
1168 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
1169
1170 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
1171 instead of constructing __builtin_aarch64_simd_oi one vector
1172 at a time.
1173 (vqtbl2_u8): Likewise.
1174 (vqtbl2_p8): Likewise.
1175 (vqtbl2q_s8): Likewise.
1176 (vqtbl2q_u8): Likewise.
1177 (vqtbl2q_p8): Likewise.
1178 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
1179 __builtin_aarch64_simd_ci one vector at a time.
1180 (vqtbl3_u8): Likewise.
1181 (vqtbl3_p8): Likewise.
1182 (vqtbl3q_s8): Likewise.
1183 (vqtbl3q_u8): Likewise.
1184 (vqtbl3q_p8): Likewise.
1185 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
1186 __builtin_aarch64_simd_xi one vector at a time.
1187 (vqtbl4_u8): Likewise.
1188 (vqtbl4_p8): Likewise.
1189 (vqtbl4q_s8): Likewise.
1190 (vqtbl4q_u8): Likewise.
1191 (vqtbl4q_p8): Likewise.
1192
1193 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
1194
1195 PR target/100952
1196 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
1197
1198 2021-07-22 Andrew Pinski <apinski@marvell.com>
1199
1200 PR tree-optimization/10153
1201 * tree-tailcall.c (create_tailcall_accumulator):
1202 Don't call fold_convert as the type should be correct already.
1203 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
1204 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
1205
1206 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
1207
1208 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
1209 varying_p check for null/non-null check.
1210
1211 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
1212
1213 PR tree-optimization/101511
1214 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
1215 is in ssa2's equiv set, and don't trap if so.
1216
1217 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
1218
1219 PR tree-optimization/101497
1220 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
1221 for undefined.
1222
1223 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
1224
1225 PR tree-optimization/101496
1226 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
1227 first, then vrp_visit_cond_Stmt.
1228
1229 2021-07-22 liuhongt <hongtao.liu@intel.com>
1230
1231 * config/i386/i386-expand.c
1232 (ix86_broadcast_from_integer_constant): Rename to ..
1233 (ix86_broadcast_from_constant): .. this, and extend it to
1234 handle float mode.
1235 (ix86_expand_vector_move): Extend to float mode.
1236 * config/i386/i386-features.c
1237 (replace_constant_pool_with_broadcast): Remove.
1238 (remove_partial_avx_dependency_gate): Ditto.
1239 (constant_pool_broadcast): Ditto.
1240 (class pass_constant_pool_broadcast): Ditto.
1241 (make_pass_constant_pool_broadcast): Ditto.
1242 (remove_partial_avx_dependency): Adjust gate.
1243 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
1244 * config/i386/i386-protos.h
1245 (make_pass_constant_pool_broadcast): Remove.
1246
1247 2021-07-22 liuhongt <hongtao.liu@intel.com>
1248
1249 * config/i386/constraints.md (Wb): New constraint.
1250 (Ww): Ditto.
1251 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
1252 shift.
1253 (*ashlqi3_1): Ditto.
1254 (*<insn><mode>3_1): Split to ..
1255 (*ashr<mode>3_1): this, ...
1256 (*lshr<mode>3_1): and this, also extend this pattern to avx512
1257 mask registers.
1258 (*<insn><mode>3_1): Split to ..
1259 (*ashr<mode>3_1): this, ...
1260 (*lshrqi3_1): and this, also extend this pattern to avx512
1261 mask registers.
1262 (*lshrhi3_1): And this, also extend this pattern to avx512
1263 mask registers.
1264 * config/i386/sse.md (k<code><mode>): New define_split after
1265 it to convert generic shift pattern to mask shift ones.
1266
1267 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
1268 Joseph Myers <joseph@codesourcery.com>
1269 Cesar Philippidis <cesar@codesourcery.com>
1270
1271 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
1272 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
1273 Handle it.
1274 * tree-pretty-print.c (dump_omp_clause): Likewise.
1275 * omp-general.c (oacc_verify_routine_clauses): Likewise.
1276 * gimplify.c (gimplify_scan_omp_clauses)
1277 (gimplify_adjust_omp_clauses): Likewise.
1278 * tree-nested.c (convert_nonlocal_omp_clauses)
1279 (convert_local_omp_clauses): Likewise.
1280 * omp-low.c (scan_sharing_clauses): Likewise.
1281 * omp-offload.c (execute_oacc_device_lower): Update.
1282
1283 2021-07-21 Martin Sebor <msebor@redhat.com>
1284
1285 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
1286
1287 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1288
1289 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
1290 Implement.
1291
1292 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1293
1294 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
1295 callback function.
1296 (write_fntype_init): New stub function.
1297 (write_init_bif_table): Likewise.
1298 (write_init_ovld_table): New function.
1299 (write_init_file): Implement.
1300
1301 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1302
1303 * config/rs6000/rs6000-gen-builtins.c
1304 (write_autogenerated_header): New function.
1305 (write_decls): Likewise.
1306 (write_extern_fntype): New callback function.
1307 (write_header_file): Implement.
1308
1309 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1310
1311 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
1312 Implement.
1313
1314 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1315
1316 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
1317 function.
1318 (complete_base_type): Likewise.
1319 (construct_fntype_id): Likewise.
1320 (parse_bif_entry): Call contruct_fntype_id.
1321 (parse_ovld_entry): Likewise.
1322
1323 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1324
1325 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
1326 (MAXOVLDSTANZAS): New macro.
1327 (ovld_stanzas): New variable.
1328 (curr_ovld_stanza): Likewise.
1329 (MAXOVLDS): New macro.
1330 (ovlddata): New struct.
1331 (ovlds): New variable.
1332 (curr_ovld): Likewise.
1333 (max_ovld_args): Likewise.
1334 (parse_ovld_entry): New function.
1335 (parse_ovld_stanza): Likewise.
1336 (parse_ovld): Implement.
1337
1338 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1339
1340 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
1341 Implement.
1342
1343 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1344
1345 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
1346 (parse_prototype): Implement.
1347
1348 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1349
1350 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
1351 (curr_bif_stanza): New variable.
1352 (stanza_entry): New struct.
1353 (stanza_map): New initialized variable.
1354 (enable_string): Likewise.
1355 (fnkinds): New enum.
1356 (typelist): New struct.
1357 (attrinfo): Likewise.
1358 (MAXRESTROPNDS): New macro.
1359 (prototype): New struct.
1360 (MAXBIFS): New macro.
1361 (bifdata): New struct.
1362 (bifs): New variable.
1363 (curr_bif): Likewise.
1364 (bif_order): Likewise.
1365 (bif_index): Likewise.
1366 (fatal): New function.
1367 (stanza_name_to_stanza): Likewise.
1368 (parse_bif_attrs): New stub function.
1369 (parse_prototype): Likewise.
1370 (parse_bif_entry): New function.
1371 (parse_bif_stanza): Likewise.
1372 (parse_bif): Implement.
1373 (set_bif_order): New function.
1374 (create_bif_order): Implement.
1375
1376 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
1377
1378 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
1379 (num_bifs): New variable.
1380 (num_ovld_stanzas): Likewise.
1381 (num_ovlds): Likewise.
1382 (parse_codes): New enum.
1383 (bif_rbt): New variable.
1384 (ovld_rbt): Likewise.
1385 (fntype_rbt): Likewise.
1386 (bifo_rbt): Likewise.
1387 (parse_bif): New stub function.
1388 (create_bif_order): Likewise.
1389 (parse_ovld): Likewise.
1390 (write_header_file): Likewise.
1391 (write_init_file): Likewise.
1392 (write_defines_file): Likewise.
1393 (delete_output_files): New function.
1394 (main): Likewise.
1395
1396 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
1397
1398 PR target/101549
1399 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
1400 from CRC32 _builtin functions.
1401
1402 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
1403
1404 * coverage.c (build_gcov_info_var_registration): Mark the object placed
1405 in the linker set as referenced so that it does not get optimized away.
1406
1407 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
1408
1409 Revert:
1410 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
1411
1412 * config.gcc (riscv*-*-*): Detect which python is available.
1413
1414 2021-07-21 Jakub Jelinek <jakub@redhat.com>
1415
1416 PR middle-end/101535
1417 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
1418 contexts in which decl isn't privatized and for ORT_TARGET return
1419 false if decl is mapped.
1420
1421 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
1422
1423 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
1424 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
1425 has been successfully unrolled.
1426
1427 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
1428
1429 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
1430 exit condition if no tail loop is needed, and if the original exit
1431 condition should therefore be kept as-is.
1432 (tree_transform_and_unroll_loop): Handle that case here too.
1433
1434 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
1435
1436 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
1437 by reference.
1438 (free_data_refs): Likewise.
1439 * tree-data-ref.h (free_dependence_relations): Likewise.
1440 (free_data_refs): Likewise.
1441 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
1442 members.
1443 (struct component): Likewise.
1444 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
1445 (pcom_worker::~pcom_worker): Likewise.
1446 (pcom_worker::release_chain): Adjust as auto_vec changes.
1447 (pcom_worker::loop): Rename to ...
1448 (pcom_worker::m_loop): ... this.
1449 (pcom_worker::datarefs): Rename to ...
1450 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
1451 (pcom_worker::dependences): Rename to ...
1452 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
1453 (pcom_worker::chains): Rename to ...
1454 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
1455 (pcom_worker::looparound_phis): Rename to ...
1456 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
1457 vec.
1458 (pcom_worker::cache): Rename to ...
1459 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
1460 (pcom_worker::release_chain): Adjust for auto_vec changes.
1461 (pcom_worker::release_chains): Adjust for auto_vec and renaming
1462 changes.
1463 (release_component): Remove.
1464 (release_components): Adjust for release_component removal.
1465 (component_of): Adjust to use vec.
1466 (merge_comps): Likewise.
1467 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
1468 (pcom_worker::determine_offset): Likewise.
1469 (class comp_ptrs): Remove.
1470 (pcom_worker::split_data_refs_to_components): Adjust for renaming
1471 changes, for comp_ptrs removal with auto_vec.
1472 (pcom_worker::suitable_component_p): Adjust for renaming changes.
1473 (pcom_worker::filter_suitable_components): Adjust for release_component
1474 removal.
1475 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
1476 (pcom_worker::find_looparound_phi): Likewise.
1477 (pcom_worker::add_looparound_copies): Likewise.
1478 (pcom_worker::determine_roots_comp): Likewise.
1479 (pcom_worker::single_nonlooparound_use): Likewise.
1480 (pcom_worker::execute_pred_commoning_chain): Likewise.
1481 (pcom_worker::execute_pred_commoning): Likewise.
1482 (pcom_worker::try_combine_chains): Likewise.
1483 (pcom_worker::prepare_initializers_chain): Likewise.
1484 (pcom_worker::prepare_initializers): Likewise.
1485 (pcom_worker::prepare_finalizers_chain): Likewise.
1486 (pcom_worker::prepare_finalizers): Likewise.
1487 (pcom_worker::tree_predictive_commoning_loop): Likewise.
1488
1489 2021-07-20 Martin Sebor <msebor@redhat.com>
1490
1491 PR middle-end/101397
1492 * builtins.c (gimple_call_return_array): Add argument. Correct
1493 offsets for memchr, mempcpy, stpcpy, and stpncpy.
1494 (compute_objsize_r): Adjust offset computation for argument returning
1495 built-ins.
1496
1497 2021-07-20 Martin Sebor <msebor@redhat.com>
1498
1499 PR middle-end/101300
1500 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
1501
1502 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
1503
1504 * function.c (assign_parm_setup_block): Use adjust_address instead
1505 of change_address to preserve MEM_EXPR and friends.
1506
1507 2021-07-20 Martin Sebor <msebor@redhat.com>
1508
1509 * cfgloop.h (single_likely_exit): Adjust by-value argument to
1510 by-const-reference.
1511 * cfgloopanal.c (single_likely_exit): Same.
1512 * cgraph.h (struct cgraph_node): Same.
1513 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
1514 * genautomata.c (merge_states): Same.
1515 * genextract.c (VEC_char_to_string): Same.
1516 * genmatch.c (dt_node::gen_kids_1): Same.
1517 (walk_captures): Adjust by-value argument to by-reference.
1518 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
1519 to by-const-reference.
1520 * gimple.c (gimple_build_call_vec): Same.
1521 (gimple_build_call_internal_vec): Same.
1522 (gimple_build_switch): Same.
1523 (sort_case_labels): Same.
1524 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
1525 by-reference.
1526 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
1527 by-const-reference.
1528 (gimple_build_call_internal_vec): Same.
1529 (gimple_build_switch): Same.
1530 (sort_case_labels): Same.
1531 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
1532 by-reference.
1533 * haifa-sched.c (calc_priorities): Adjust by-value argument to
1534 by-const-reference.
1535 (sched_init_luids): Same.
1536 (haifa_init_h_i_d): Same.
1537 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
1538 (adjust_callers_for_value_intersection): Adjust by-value argument to
1539 by-reference.
1540 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
1541 by-const-reference.
1542 (find_more_contexts_for_caller_subset): Same.
1543 (find_aggregate_values_for_callers_subset): Same.
1544 (copy_useful_known_contexts): Same.
1545 * ipa-fnsummary.c (remap_edge_summaries): Same.
1546 (remap_freqcounting_predicate): Same.
1547 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
1548 by-reference.
1549 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
1550 to by-const-reference.
1551 * ipa-predicate.h (predicate::remap_after_inlining): Same.
1552 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
1553 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
1554 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
1555 * read-rtl.c (add_overload_instance): Same.
1556 * rtl.h (native_decode_rtx): Same.
1557 (native_decode_vector_rtx): Same.
1558 * sched-int.h (sched_init_luids): Same.
1559 (haifa_init_h_i_d): Same.
1560 * simplify-rtx.c (native_decode_vector_rtx): Same.
1561 (native_decode_rtx): Same.
1562 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
1563 (shrink_wrap_one_built_in_call_with_conds): Same.
1564 (shrink_wrap_conditional_dead_built_in_calls): Same.
1565 * tree-data-ref.c (create_runtime_alias_checks): Same.
1566 (compute_all_dependences): Same.
1567 * tree-data-ref.h (compute_all_dependences): Same.
1568 (create_runtime_alias_checks): Same.
1569 (index_in_loop_nest): Same.
1570 * tree-if-conv.c (mask_exists): Same.
1571 * tree-loop-distribution.c (class loop_distribution): Same.
1572 (loop_distribution::create_rdg_vertices): Same.
1573 (dump_rdg_partitions): Same.
1574 (debug_rdg_partitions): Same.
1575 (partition_contains_all_rw): Same.
1576 (loop_distribution::distribute_loop): Same.
1577 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
1578 (oacc_entry_exit_single_gang): Same.
1579 * tree-ssa-loop-im.c (hoist_memory_references): Same.
1580 (loop_suitable_for_sm): Same.
1581 * tree-ssa-loop-niter.c (bound_index): Same.
1582 * tree-ssa-reassoc.c (update_ops): Same.
1583 (swap_ops_for_binary_stmt): Same.
1584 (rewrite_expr_tree): Same.
1585 (rewrite_expr_tree_parallel): Same.
1586 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
1587 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
1588 * tree-ssa-structalias.c (process_all_all_constraints): Same.
1589 (make_constraints_to): Same.
1590 (handle_lhs_call): Same.
1591 (find_func_aliases_for_builtin_call): Same.
1592 (sort_fieldstack): Same.
1593 (check_for_overlaps): Same.
1594 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
1595 (vect_create_cond_for_unequal_addrs): Same.
1596 (vect_create_cond_for_lower_bounds): Same.
1597 (vect_create_cond_for_alias_checks): Same.
1598 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
1599 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
1600 (vect_make_slp_decision): Same.
1601 (vect_slp_bbs): Same.
1602 (duplicate_and_interleave): Same.
1603 (vect_transform_slp_perm_load): Same.
1604 (vect_schedule_slp): Same.
1605 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
1606 (vect_schedule_slp): Same.
1607 (duplicate_and_interleave): Same.
1608 * tree.c (build_vector_from_ctor): Same.
1609 (build_vector): Same.
1610 (check_vector_cst): Same.
1611 (check_vector_cst_duplicate): Same.
1612 (check_vector_cst_fill): Same.
1613 (check_vector_cst_stepped): Same.
1614 * tree.h (build_vector_from_ctor): Same.
1615
1616 2021-07-20 Jakub Jelinek <jakub@redhat.com>
1617
1618 PR target/101384
1619 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
1620 type from bool to int.
1621 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
1622 EASY_VECTOR_MSB case if either step or copies is not 1.
1623 (vspltis_shifted): Fix comment typo.
1624 (easy_altivec_constant): Change return type from bool to int, instead
1625 of returning true return byte size of the element mode that should be
1626 used to synthetize the constant.
1627 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
1628 that vspltis_shifted is 0, handle the case where easy_altivec_constant
1629 assumes using different vector mode from CONST_VECTOR's mode.
1630 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
1631 easy_altivec_constant to determine mode in which -1 >> -1 should be
1632 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
1633
1634 2021-07-20 Richard Biener <rguenther@suse.de>
1635
1636 PR debug/101473
1637 * dwarf2out.h (dwarf_file_data): Add key member.
1638 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
1639 (dwarf_file_hasher::hash): Hash key.
1640 (lookup_filename): Remap the filename and store it in the
1641 filename member of dwarf_file_data when creating a new
1642 dwarf_file_data.
1643 (file_name_acquire): Do not remap the filename again.
1644 (maybe_emit_file): Likewise.
1645
1646 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
1647
1648 * config/aarch64/aarch64-simd-builtins.def: Use two variant
1649 generators for all TBL/TBX intrinsics and rename to
1650 consistent forms: qtbl[1234] or qtbx[1234].
1651 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
1652 Rename to...
1653 (aarch64_qtbl1<mode>): This.
1654 (aarch64_tbx1<mode>): Rename to...
1655 (aarch64_qtbx1<mode>): This.
1656 (aarch64_tbl2v16qi): Delete.
1657 (aarch64_tbl3<mode>): Rename to...
1658 (aarch64_qtbl2<mode>): This.
1659 (aarch64_tbx4<mode>): Rename to...
1660 (aarch64_qtbx2<mode>): This.
1661 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
1662 renamed qtbl1 and qtbl2 RTL patterns.
1663 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
1664 RTL pattern.
1665 (vqtbl1_s8): Likewise.
1666 (vqtbl1_u8): Likewise.
1667 (vqtbl1q_p8): Likewise.
1668 (vqtbl1q_s8): Likewise.
1669 (vqtbl1q_u8): Likewise.
1670 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
1671 (vqtbx1_u8): Likewise.
1672 (vqtbx1_p8): Likewise.
1673 (vqtbx1q_s8): Likewise.
1674 (vqtbx1q_u8): Likewise.
1675 (vqtbx1q_p8): Likewise.
1676 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
1677 (vtbl1_u8): Likewise.
1678 (vtbl1_p8): Likewise.
1679 (vtbl2_s8): Likewise
1680 (vtbl2_u8): Likewise.
1681 (vtbl2_p8): Likewise.
1682 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
1683 (vtbl3_u8): Likewise.
1684 (vtbl3_p8): Likewise.
1685 (vtbl4_s8): Likewise.
1686 (vtbl4_u8): Likewise.
1687 (vtbl4_p8): Likewise.
1688 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
1689 (vtbx2_u8): Likewise.
1690 (vtbx2_p8): Likewise.
1691 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
1692 (vqtbl2_u8): Likewise.
1693 (vqtbl2_p8): Likewise.
1694 (vqtbl2q_s8): Likewise.
1695 (vqtbl2q_u8): Likewise.
1696 (vqtbl2q_p8): Likewise.
1697 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
1698 (vqtbx2_u8): Likewise.
1699 (vqtbx2_p8): Likewise.
1700 (vqtbx2q_s8): Likewise.
1701 (vqtbx2q_u8): Likewise.
1702 (vqtbx2q_p8): Likewise.
1703 (vtbx4_s8): Likewise.
1704 (vtbx4_u8): Likewise.
1705 (vtbx4_p8): Likewise.
1706
1707 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
1708
1709 PR target/100182
1710 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
1711 Remove.
1712 (define_peephole2 atomic_loaddi_fpu): Ditto.
1713
1714 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
1715
1716 * config.gcc (riscv*-*-*): Detect which python is available.
1717
1718 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
1719
1720 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
1721 (smul<mode>3_highpart): ... this.
1722 (mulhu_<mode>): Rename to...
1723 (umul<mode>3_highpart): ... this.
1724 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
1725 MULHU_V2DI, MULHU_V4SI): Adjust.
1726
1727 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
1728
1729 PR tree-optimization/100696
1730 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
1731 * internal-fn.def (IFN_MULH): New internal function.
1732 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
1733 recog normal multiply highpart as IFN_MULH.
1734 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
1735 function CFN_MULH.
1736
1737 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
1738
1739 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
1740 (BTF_DEBUGGING_INFO): Likewise.
1741 * doc/tm.texi.in: Document the new macros.
1742 * doc/tm.texi: Regenerated.
1743 * toplev.c: Guard initialization of debug hooks.
1744
1745 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
1746
1747 * flags.h (ctf_debuginfo_p): New function declaration.
1748 * opts.c (ctf_debuginfo_p): New function definition.
1749
1750 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
1751
1752 PR target/100208
1753 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
1754 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
1755 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
1756 * config/gcn/gcn-valu.md: Add a warning comment.
1757 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
1758 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
1759 * config/gcn/gcn.md: Add a warning comment.
1760 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
1761 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
1762 SRAM-ECC flag.
1763 (EF_AMDGPU_XNACK): New.
1764 (EF_AMDGPU_SRAM_ECC): New.
1765 (elf_flags): New.
1766 (copy_early_debug_info): Use elf_flags.
1767 (main): Handle -mxnack and -msram-ecc options.
1768 * doc/invoke.texi: Document -mxnack and -msram-ecc.
1769
1770 2021-07-19 Andrew Pinski <apinski@marvell.com>
1771
1772 PR target/101205
1773 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
1774 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
1775
1776 2021-07-19 Richard Biener <rguenther@suse.de>
1777
1778 PR tree-optimization/101505
1779 * tree-vect-patterns.c (vect_determine_precisions): Walk
1780 PHIs also for loop vectorization.
1781
1782 2021-07-19 Richard Biener <rguenther@suse.de>
1783
1784 * gimple.h (gimple_expr_type): Remove.
1785 * doc/gimple.texi: Remove gimple_expr_type documentation.
1786
1787 2021-07-19 Richard Biener <rguenther@suse.de>
1788
1789 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
1790 (ao_ref_init_from_vn_reference): Likewise.
1791 (fully_constant_reference): Likewise.
1792 (vn_reference_lookup_call): Do not set vr->type to random
1793 values.
1794 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
1795 without a value.
1796 * tree-vect-generic.c (expand_vector_piecewise): Pass in
1797 whether we expanded parallel.
1798 (expand_vector_parallel): Adjust.
1799 (expand_vector_addition): Likewise.
1800 (expand_vector_comparison): Likewise.
1801 (expand_vector_operation): Likewise.
1802 (expand_vector_scalar_condition): Likewise.
1803 (expand_vector_conversion): Likewise.
1804
1805 2021-07-19 Richard Biener <rguenther@suse.de>
1806
1807 * tree-vrp.c (register_edge_assert_for_2): Use the
1808 type from the LHS.
1809 (vrp_folder::fold_predicate_in): Likewise.
1810 * vr-values.c (gimple_assign_nonzero_p): Likewise.
1811 (vr_values::extract_range_from_comparison): Likewise.
1812 (vr_values::extract_range_from_ubsan_builtin): Use the
1813 type of the first operand.
1814 (vr_values::extract_range_basic): Push down type
1815 computation, use the appropriate LHS.
1816 (vr_values::extract_range_from_assignment): Use the
1817 type of the LHS.
1818
1819 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
1820
1821 PR target/101492
1822 * common/config/i386/i386-common.c (ix86_handle_option): For
1823 -mgeneral-regs-only, enable the GPR only instructions which are
1824 enabled implicitly by SSE ISAs unless they have been disabled
1825 explicitly.
1826
1827 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
1828
1829 PR target/101495
1830 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
1831 ix86_avx_u128_mode_needed.
1832 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
1833 returns AVX register.
1834
1835 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
1836
1837 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
1838 (handle_const_call): Liekise
1839 (handle_pure_call): Liekise
1840
1841 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
1842
1843 PR tree-optimization/96542
1844 * range-op.cc (range_operator::wi_fold_in_parts): New.
1845 (range_operator::fold_range): Call wi_fold_in_parts.
1846 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
1847 * range-op.h (wi_fold_in_parts): Add prototype.
1848
1849 2021-07-16 David Malcolm <dmalcolm@redhat.com>
1850
1851 * doc/analyzer.texi: Add __analyzer_dump_state.
1852
1853 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1854
1855 * config/rs6000/rbtree.c: New file.
1856 * config/rs6000/rbtree.h: New file.
1857
1858 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1859
1860 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
1861 (typeinfo): Add restr field.
1862 (match_bracketed_pair): New function.
1863 (match_const_restriction): Implement.
1864
1865 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1866
1867 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
1868
1869 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1870
1871 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
1872 (basetype): Likewise.
1873 (typeinfo): Likewise.
1874 (handle_pointer): New function.
1875 (match_basetype): New stub function.
1876 (match_const_restriction): Likewise.
1877 (match_type): New function.
1878
1879 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1880
1881 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
1882 function.
1883 (advance_line): Likewise.
1884 (safe_inc_pos): Likewise.
1885 (match_identifier): Likewise.
1886 (match_integer): Likewise.
1887 (match_to_right_bracket): Likewise.
1888
1889 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1890
1891 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
1892 (ovld_file): Likewise.
1893 (header_file): Likewise.
1894 (init_file): Likewise.
1895 (defines_file): Likewise.
1896 (pgm_path): Likewise.
1897 (bif_path): Likewise.
1898 (ovld_path): Likewise.
1899 (header_path): Likewise.
1900 (init_path): Likewise.
1901 (defines_path): Likewise.
1902 (LINELEN): New macro.
1903 (linebuf): New variable.
1904 (line): Likewise.
1905 (pos): Likewise.
1906 (diag): Likewise.
1907 (bif_diag): New function.
1908 (ovld_diag): Likewise.
1909
1910 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1911
1912 * config/rs6000/rs6000-builtin-new.def: New.
1913 * config/rs6000/rs6000-overload.def: New.
1914
1915 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1916
1917 * config/rs6000/rs6000-gen-builtins.c: New.
1918
1919 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
1920
1921 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
1922 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
1923 * gengtype-state.c (state_writer::write_state_file_list): Add a
1924 parameter to the fileslist expression for the number of build
1925 headers to scan.
1926 (read_state_files_list): Detect build headers and strip the
1927 initial "./" or ".\" from their names.
1928 * gengtype.c (build_headers): New global variable.
1929 (num_build_headers): Likewise.
1930 (open_base_files): Emit #include for each build header.
1931 (main): Detect and count build headers.
1932 * gengtype.h (build_headers): New extern variable.
1933 (num_build_headers): Likewise.
1934
1935 2021-07-16 Richard Biener <rguenther@suse.de>
1936
1937 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
1938 the type of the LHS.
1939 (find_bswap_or_nop_1): Likewise.
1940 (find_bswap_or_nop): Likewise.
1941 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
1942 prototype.
1943 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
1944 Remove unused parameters, pass in the scalar type. Fix
1945 internal store function handling.
1946 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
1947 (vect_get_vector_types_for_stmt): Move down check for
1948 existing vector stmt after we've determined a scalar type.
1949 Pass down the used scalar type to vect_get_smallest_scalar_type.
1950 * tree-vect-generic.c (expand_vector_condition): Use
1951 the type of the LHS.
1952 (expand_vector_scalar_condition): Likewise.
1953 (expand_vector_operations_1): Likewise.
1954 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
1955 (vect_recog_dot_prod_pattern): Likewise.
1956 (vect_recog_sad_pattern): Likewise.
1957 (vect_recog_widen_op_pattern): Likewise.
1958 (vect_recog_widen_sum_pattern): Likewise.
1959 (vect_recog_mixed_size_cond_pattern): Likewise.
1960
1961 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
1962
1963 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
1964 (dump_eaf_flags): Dump EAF_NOT_RETURNED
1965 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
1966 and EAF_NOT_RETURNED.
1967 (modref_summary::useful_p): Likewise.
1968 (modref_summary_lto::useful_p): Likewise.
1969 (struct) modref_summary_lto: Use eaf_fleags_t.
1970 (deref_flags): Handle EAF_NOT_RETURNED.
1971 (struct escape_point): Use min_flags.
1972 (modref_lattice::init): Add EAF_NOT_RETURNED.
1973 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
1974 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
1975 handle call flags.
1976 (analyze_parms): Also analyze const functions; update conition on
1977 flags usefulness.
1978 (modref_write): Update streaming.
1979 (read_section): Update streaming.
1980 (remap_arg_flags): Use eaf_flags_t.
1981 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
1982 * ipa-modref.h: (eaf_flags_t): New typedef.
1983 (struct modref_summary): Use eaf_flags_t.
1984 * tree-core.h (EAF_NOT_RETURNED): New constant.
1985
1986 2021-07-16 Richard Biener <rguenther@suse.de>
1987
1988 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
1989 the type of the LHS.
1990 (gimple_assign_nonnegative_warnv_p): Likewise.
1991 (gimple_call_nonnegative_warnv_p): Likewise. Return false
1992 if the call has no LHS.
1993 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
1994 * tree-eh.c (stmt_could_throw_1_p): Likewise.
1995 * tree-inline.c (insert_init_stmt): Likewise.
1996 * tree-ssa-loop-niter.c (get_val_for): Likewise.
1997 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
1998 the def.
1999 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
2000 gassign *. Use the type of the lhs.
2001 (vn_nary_op_lookup_stmt): Adjust.
2002 (vn_nary_op_insert_stmt): Likewise.
2003
2004 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
2005
2006 * config/s390/predicates.md (bras_sym_operand): Accept all
2007 functions in 64-bit mode, use UNSPEC_PLT31.
2008 (larl_operand): Use UNSPEC_PLT31.
2009 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
2010 (legitimize_pic_address): Likewise.
2011 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
2012 use UNSPEC_PLT31.
2013 (s390_delegitimize_address): Use UNSPEC_PLT31.
2014 (s390_output_addr_const_extra): Likewise.
2015 (print_operand): Add @PLT to TLS calls, handle %K.
2016 (s390_function_profiler): Mark __fentry__/_mcount as function,
2017 use %K, use UNSPEC_PLT31.
2018 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
2019 (s390_emit_call): Use UNSPEC_PLT31.
2020 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
2021 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
2022 (*movdi_64): Use %K.
2023 (reload_base_64): Likewise.
2024 (*sibcall_brc): Likewise.
2025 (*sibcall_brcl): Likewise.
2026 (*sibcall_value_brc): Likewise.
2027 (*sibcall_value_brcl): Likewise.
2028 (*bras): Likewise.
2029 (*brasl): Likewise.
2030 (*bras_r): Likewise.
2031 (*brasl_r): Likewise.
2032 (*bras_tls): Likewise.
2033 (*brasl_tls): Likewise.
2034 (main_base_64): Likewise.
2035 (reload_base_64): Likewise.
2036 (@split_stack_call<mode>): Likewise.
2037
2038 2021-07-16 Richard Biener <rguenther@suse.de>
2039
2040 PR tree-optimization/101467
2041 * tree-vect-stmts.c (vect_gen_while): Properly guard
2042 make_temp_ssa_name usage.
2043
2044 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
2045
2046 * config.gcc: Don't use forked print-sysroot-suffix.sh and
2047 t-sysroot-suffix for C-SKY.
2048 * config/csky/print-sysroot-suffix.sh: Delete.
2049 * config/csky/t-csky-linux: Delete.
2050 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
2051 instead of CSKY_MULTILIB_DIRNAMES.
2052
2053 2021-07-16 Richard Biener <rguenther@suse.de>
2054
2055 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
2056 conversion issues with the partial reduction of the reused
2057 vector accumulator.
2058
2059 2021-07-16 Richard Biener <rguenther@suse.de>
2060
2061 * config/i386/i386-options.c (ix86_option_override_internal): Set
2062 param_vect_partial_vector_usage to zero if not set.
2063
2064 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
2065
2066 PR target/101346
2067 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
2068 (VALID_INT_MODE_P): Add SDmode and DDmode.
2069 Add TDmode for TARGET_64BIT.
2070 (VALID_DFP_MODE_P): Remove.
2071 * config/i386/i386.c (ix86_hard_regno_mode_ok):
2072 Do not use VALID_DFP_MODE_P.
2073
2074 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
2075
2076 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
2077 gimple_range_type.
2078 (fold_using_range::fold_stmt): Ditto.
2079 (fold_using_range::range_of_range_op): Ditto.
2080 (fold_using_range::range_of_phi): Ditto.
2081 (fold_using_range::range_of_call): Ditto.
2082 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
2083 (fold_using_range::range_of_builtin_call): Ditto.
2084 (fold_using_range::range_of_cond_expr): Ditto.
2085 * gimple-range-fold.h (gimple_range_type): New.
2086
2087 2021-07-15 Martin Sebor <msebor@redhat.com>
2088
2089 PR middle-end/97027
2090 * tree-ssa-strlen.c (handle_assign): New function.
2091 (maybe_warn_overflow): Add argument.
2092 (nonzero_bytes_for_type): New function.
2093 (count_nonzero_bytes): Handle more tree types. Call
2094 nonzero_bytes_for_tye.
2095 (count_nonzero_bytes): Handle types.
2096 (handle_store): Handle stores from function calls.
2097 (strlen_check_and_optimize_call): Move code to handle_assign. Call
2098 it for assignments from function calls.
2099
2100 2021-07-15 David Malcolm <dmalcolm@redhat.com>
2101
2102 PR analyzer/95006
2103 PR analyzer/94713
2104 PR analyzer/94714
2105 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
2106
2107 2021-07-15 David Malcolm <dmalcolm@redhat.com>
2108
2109 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
2110
2111 2021-07-15 Martin Sebor <msebor@redhat.com>
2112
2113 PR c/101289
2114 PR c/97548
2115 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
2116 (operand_compare::verify_hash_value): Same.
2117 * tree-core.h (OEP_DECL_NAME): New.
2118
2119 2021-07-15 Martin Jambor <mjambor@suse.cz>
2120
2121 * profile-count.h (profile_count::value): Change the return type to
2122 uint64_t.
2123 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
2124 statement.
2125 * tree-cfg.c (dump_function_to_file): Likewise.
2126
2127 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
2128
2129 PR target/101129
2130 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
2131 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
2132 not swappable.
2133
2134 2021-07-15 Richard Biener <rguenther@suse.de>
2135
2136 * tree-vectorizer.h (vect_gen_while): Match up with
2137 vect_gen_while_not.
2138 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
2139 of vect_gen_while_not.
2140 (vect_gen_while_not): Adjust.
2141 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
2142
2143 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
2144
2145 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
2146 (ranger_cache::range_of_def): Call adjust_range.
2147 (ranger_cache::entry_range): Same.
2148 * gimple-range-cache.h (non_null_ref::adjust_range): New.
2149 * gimple-range.cc (gimple_ranger::range_of_expr): Call
2150 adjust_range.
2151 (gimple_ranger::range_on_entry): Same.
2152
2153 2021-07-15 Tamar Christina <tamar.christina@arm.com>
2154
2155 Revert:
2156 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2157
2158 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
2159
2160 2021-07-15 Tamar Christina <tamar.christina@arm.com>
2161
2162 Revert:
2163 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2164
2165 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
2166 (sdot_prod, udot_prod): ...These.
2167 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
2168 (aarch64_<sur>dot<vsi2qi>): Rename to...
2169 (<sur>dot_prod<vsi2qi>): ...This.
2170 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
2171 Update builtins.
2172
2173 2021-07-15 Jakub Jelinek <jakub@redhat.com>
2174
2175 PR middle-end/101437
2176 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
2177 types even if they have non-BLKmode TYPE_MODE.
2178
2179 2021-07-15 Richard Biener <rguenther@suse.de>
2180
2181 PR driver/101383
2182 * gcc.c (process_command): Process -gtoggle like process_options
2183 would after parsing options.
2184
2185 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
2186
2187 * cfgexpand.c (expand_asm_loc): Adjust.
2188 (expand_asm_stmt): Likewise.
2189 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
2190 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
2191 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
2192 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
2193 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
2194 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
2195 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
2196 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
2197 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
2198 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
2199 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
2200 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
2201 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
2202 * doc/tm.texi: Regenerate.
2203 * target.def: Add location argument to md_asm_adjust.
2204
2205 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
2206
2207 * tree-diagnostic.c (diagnostic_report_current_function): Use the
2208 diagnostic's location, not input_location.
2209
2210 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
2211
2212 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
2213 diagnostics.
2214 (expand_asm_stmt): Likewise.
2215
2216 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
2217
2218 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
2219 addressed memory rtx, if any.
2220 (rs6000_split_multireg_move): Fix code formatting.
2221 Handle MMA build built-ins with operands in adjacent memory locations.
2222
2223 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
2224
2225 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
2226 in the file.
2227
2228 2021-07-14 Jason Merrill <jason@redhat.com>
2229
2230 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
2231
2232 2021-07-14 Jason Merrill <jason@redhat.com>
2233
2234 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
2235 C++.
2236
2237 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2238
2239 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
2240 Remove erroneous line.
2241
2242 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
2243
2244 * params.opt (param_evrp_mode): Change default.
2245
2246 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2247
2248 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
2249 (sdot_prod, udot_prod): ...These.
2250 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
2251 (aarch64_<sur>dot<vsi2qi>): Rename to...
2252 (<sur>dot_prod<vsi2qi>): ...This.
2253 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
2254 Update builtins.
2255
2256 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2257
2258 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
2259
2260 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2261
2262 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
2263
2264 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2265
2266 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
2267
2268 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2269
2270 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
2271 (usdot_prod<vsi2qi>): ... This.
2272 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
2273 (usdot_prod): ...This.
2274 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
2275 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
2276 Rename to...
2277 (@<sur>dot_prod<vsi2qi>): ...This.
2278 * config/aarch64/aarch64-sve-builtins-base.cc
2279 (svusdot_impl::expand): Use it.
2280
2281 2021-07-14 Tamar Christina <tamar.christina@arm.com>
2282
2283 * optabs.def (usdot_prod_optab): New.
2284 * doc/md.texi: Document it and clarify other dot prod optabs.
2285 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
2286 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
2287 * optabs.c (expand_widen_pattern_expr): Likewise.
2288 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
2289 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
2290 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
2291 optab subtype.
2292 (vect_widened_op_tree): Optionally ignore
2293 mismatch types.
2294 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
2295
2296 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
2297
2298 PR target/101395
2299 * config/i386/driver-i386.c (host_detect_local_cpu): Check
2300 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
2301 Enable UINTR only for 64-bit codegen.
2302 * config/i386/i386-options.c
2303 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
2304 in 64-bit mode.
2305 * config/i386/i386.h (ARCH_ARG): New.
2306 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
2307 "[arch|tune] 64" for 64-bit codegen.
2308
2309 2021-07-14 Richard Biener <rguenther@suse.de>
2310
2311 PR tree-optimization/101445
2312 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
2313 of the IV in the correct direction for negative stride
2314 accesses.
2315
2316 2021-07-14 Jakub Jelinek <jakub@redhat.com>
2317
2318 PR go/101407
2319 * godump.c (godump_str_hash): New type.
2320 (godump_container::pot_dummy_types): Use string_hash instead of
2321 ptr_hash in the hash_set.
2322
2323 2021-07-14 Richard Biener <rguenther@suse.de>
2324
2325 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
2326 vector types where the old vector type has a multiple of
2327 the new vector type elements.
2328 (vect_create_partial_epilog): New function, split out from...
2329 (vect_create_epilog_for_reduction): ... here.
2330 (vect_transform_cycle_phi): Reduce the re-used accumulator
2331 to the new vector type.
2332
2333 2021-07-14 Alexandre Oliva <oliva@adacore.com>
2334
2335 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
2336 non-'t'-sized arg check.
2337
2338 2021-07-14 Alexandre Oliva <oliva@adacore.com>
2339
2340 * tree-cfg.c (cleanup_dead_labels_eh): Update
2341 post_landing_pad label upon change of landing pad block's
2342 primary label.
2343 (cleanup_dead_labels): Check that a removed label is not that
2344 of a landing pad.
2345
2346 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
2347
2348 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
2349 simplification.
2350 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
2351 Add Neon to general purpose register case for zero-extend
2352 pattern.
2353 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
2354 case to prevent some cases opting to go through memory.
2355 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
2356 * rtl.c (rtvec_series_p): Define predicate to determine
2357 whether a vector contains a linear series of integers.
2358 * rtl.h (rtvec_series_p): Define.
2359 * rtlanal.c (vec_series_lowpart_p): Define predicate to
2360 determine if a vector selection is equivalent to the low part
2361 of the vector.
2362 * rtlanal.h (vec_series_lowpart_p): Define.
2363 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
2364 Add vec_select -> subreg simplification.
2365
2366 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
2367
2368 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
2369 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
2370 _mm_test_mix_ones_zeros): New.
2371
2372 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
2373 Richard Biener <rguenther@suse.de>
2374
2375 * gimple.c (gimple_could_trap_p_1): Make S argument a
2376 "const gimple*". Preserve constness in call to
2377 gimple_asm_volatile_p.
2378 (gimple_could_trap_p): Make S argument a "const gimple*".
2379 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
2380 Update function prototypes.
2381
2382 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
2383
2384 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
2385 (_loop_vec_info::main_loop_edge): New field.
2386 (_loop_vec_info::skip_main_loop_edge): Likewise.
2387 (_loop_vec_info::skip_this_loop_edge): Likewise.
2388 (_loop_vec_info::reusable_accumulators): Likewise.
2389 (_stmt_vec_info::reduc_scalar_results): Likewise.
2390 (_stmt_vec_info::reused_accumulator): Likewise.
2391 (vect_get_main_loop_result): Declare.
2392 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2393 reduc_scalar_inputs.
2394 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
2395 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
2396 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
2397 skip_main_loop_edge and skip_this_loop_edge fields.
2398 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
2399 (vect_emit_reduction_init_stmts): New function.
2400 (get_initial_def_for_reduction): Use it.
2401 (get_initial_defs_for_reduction): Likewise. Change the vinfo
2402 parameter to a loop_vec_info.
2403 (vect_create_epilog_for_reduction): Store the scalar results
2404 in the reduc_info. If an epilogue loop is reusing an accumulator
2405 from the main loop, and if the epilogue loop can also be skipped,
2406 try to place the reduction code in the join block. Record
2407 accumulators that could potentially be reused by epilogue loops.
2408 (vect_transform_cycle_phi): When vectorizing epilogue loops,
2409 try to reuse accumulators from the main loop. Record the initial
2410 value in reduc_info for non-SLP reductions too.
2411
2412 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
2413
2414 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
2415 adjustment handling. Take the neutral value as an argument,
2416 in place of the code argument.
2417 (vect_transform_cycle_phi): Update accordingly. Handle the
2418 initial values of cond reductions separately from code reductions.
2419 Choose the adjustment here rather than in
2420 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
2421
2422 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
2423
2424 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
2425 (neutral_op_for_reduction): ...this, providing a more general
2426 interface.
2427 (vect_create_epilog_for_reduction): Update accordingly.
2428 (vectorizable_reduction): Likewise.
2429 (vect_transform_cycle_phi): Likewise.
2430
2431 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
2432
2433 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
2434 reduc_info instead of the original stmt_vec_info.
2435 (vect_transform_cycle_phi): Update accordingly.
2436
2437 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
2438
2439 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
2440 reduc_info as an additional parameter.
2441 (vect_transform_cycle_phi): Update accordingly.
2442
2443 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
2444
2445 * tree-vectorizer.h: Include tree-ssa-operands.h.
2446 (vect_phi_initial_value): New function.
2447 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
2448 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
2449 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
2450 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
2451
2452 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
2453
2454 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
2455 the phi results to vectype after creating them. Remove later
2456 conversion code that thus becomes redundant.
2457
2458 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
2459
2460 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
2461 the new_phis vector with a reduc_inputs vector. Combine handling
2462 of reduction chains and ncopies > 1.
2463
2464 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
2465
2466 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
2467 scalar_results to group_size elements after reducing down from
2468 N*group_size elements. Construct an array_slice of the live-out
2469 stmts and assert that there is one stmt per scalar result.
2470
2471 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
2472
2473 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
2474 nested_in_vect_loop and use double_reduc everywhere. Remove dead
2475 assignment to "loop".
2476
2477 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
2478
2479 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
2480 vector types first. For scalar types, consider both the preferred
2481 vector mode and the alternative vector modes.
2482 * optabs-query.c (can_vec_mask_load_store_p): Use the same
2483 structure as above, in particular using related_vector_mode
2484 for modes provided by autovectorize_vector_modes.
2485
2486 2021-07-13 Jakub Jelinek <jakub@redhat.com>
2487 Richard Biener <rguenther@suse.de>
2488
2489 PR tree-optimization/101419
2490 * tree-pass.h (PROP_objsz): Define.
2491 (make_pass_early_object_sizes): Declare.
2492 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
2493 there to pass_early_object_sizes, drop parameter.
2494 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
2495 drop parameter, move pass_post_ipa_warn right after that.
2496 * tree-object-size.c (pass_object_sizes::execute): Rename to...
2497 (object_sizes_execute): ... this. Add insert_min_max_p argument.
2498 (pass_data_object_sizes): Move after object_sizes_execute.
2499 (pass_object_sizes): Likewise. In execute method call
2500 object_sizes_execute, drop set_pass_param method and insert_min_max_p
2501 non-static data member and its initializer in the ctor.
2502 (pass_data_early_object_sizes, pass_early_object_sizes,
2503 make_pass_early_object_sizes): New.
2504 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
2505 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
2506
2507 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
2508
2509 PR target/101275
2510 * config/riscv/constraints.md ("S"): Update description and remove
2511 @internal.
2512 * doc/md.texi (Machine Constraints): Document the 'S' constraints
2513 for RISC-V.
2514
2515 2021-07-13 Richard Biener <rguenther@suse.de>
2516
2517 Revert:
2518 2021-07-12 Richard Biener <rguenther@suse.de>
2519
2520 * tree-vect-slp.c (vect_slp_region): Show the number of
2521 SLP graph entries in the optimization message.
2522
2523 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
2524
2525 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
2526 value to to long.
2527 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
2528 return type to long.
2529 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
2530 type to long.
2531
2532 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
2533
2534 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
2535 Query relation between the 2 operands and use it.
2536
2537 2021-07-12 Sergei Trofimovich <siarheit@google.com>
2538
2539 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
2540
2541 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
2542
2543 PR target/101424
2544 * config/i386/predicates.md (vec_setm_sse41_operand):
2545 Rename from vec_setm_operand.
2546 (vec_setm_avx2_operand): New predicate.
2547 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
2548 Use vec_setm_sse41_operand as operand 2 predicate.
2549 (vec_set<V_256_512:mode): New expander.
2550 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
2551 as operand 2 predicate.
2552
2553 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
2554
2555 PR tree-optimization/101335
2556 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
2557
2558 2021-07-12 Andrew Pinski <apinski@marvell.com>
2559
2560 * tree-ssa-phiopt.c (match_simplify_replacement): Move
2561 insert of the sequence before the movement of the
2562 statement. Check if to see if the statement is used
2563 outside of the original phi to see if we should move it.
2564
2565 2021-07-12 Richard Biener <rguenther@suse.de>
2566
2567 * dump-context.h (debug_dump_context::debug_dump_context):
2568 Add FILE * parameter defaulted to stderr.
2569 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
2570 * tree-vect-slp.c (dot_slp_tree): New functions.
2571
2572 2021-07-12 Richard Biener <rguenther@suse.de>
2573
2574 PR tree-optimization/101373
2575 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
2576 references when the BB may not return.
2577 (compute_avail): Pass in the function we're working on and
2578 replace cfun references with it. Externally throwing
2579 const calls also possibly terminate the function.
2580 (pass_pre::execute): Pass down the function we're working on.
2581 * gcse.c (compute_hash_table_work): Externally throwing
2582 const/pure calls also need record_last_mem_set_info.
2583 * postreload-gcse.c (record_opr_changes): Looping or externally
2584 throwing const/pure calls also need record_last_mem_set_info.
2585
2586 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
2587
2588 * recog.c (memory_address_addr_space_p): Change the type to bool.
2589 Return true/false instead of 1/0.
2590 (offsettable_memref_p): Ditto.
2591 (offsettable_nonstrict_memref_p): Ditto.
2592 (offsettable_address_addr_space_p): Ditto.
2593 Change the type of addressp indirect function to bool.
2594 * recog.h (memory_address_addr_space_p): Change the type to bool.
2595 (strict_memory_address_addr_space_p): Ditto.
2596 (offsettable_memref_p): Ditto.
2597 (offsettable_nonstrict_memref_p): Ditto.
2598 (offsettable_address_addr_space_p): Ditto.
2599 * reload.c (maybe_memory_address_addr_space_p): Ditto.
2600 (strict_memory_address_addr_space_p): Change the type to bool.
2601 Return true/false instead of 1/0.
2602 (maybe_memory_address_addr_space_p): Change the type to bool.
2603
2604 2021-07-12 Richard Biener <rguenther@suse.de>
2605
2606 * tree-vect-slp.c (vect_slp_region): Show the number of
2607 SLP graph entries in the optimization message.
2608
2609 2021-07-12 Richard Biener <rguenther@suse.de>
2610
2611 PR tree-optimization/101394
2612 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
2613 copies from abnormals for a full redundancy.
2614
2615 2021-07-12 Richard Biener <rguenther@suse.de>
2616
2617 PR middle-end/101423
2618 * gimple.c (gimple_could_trap_p_1): Internal function calls
2619 do not trap.
2620 * tree-eh.c (tree_could_trap_p): Likewise.
2621
2622 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
2623
2624 PR target/66791
2625 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
2626 __a * __b.
2627 (vmulq_n_u32): Likewise.
2628 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
2629 (vmulq_n_f32): Likewise.
2630 (vmul_n_f16): Likewise.
2631 (vmulq_n_f16): Likewise.
2632
2633 2021-07-12 Martin Liska <mliska@suse.cz>
2634
2635 PR sanitizer/101425
2636 * gcc.c (check_offload_target_name): Call
2637 candidates_list_and_hint only if we have a candidate.
2638
2639 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
2640
2641 PR target/98435
2642 * config/arm/neon.md (vec_init): Move to ...
2643 * config/arm/vec-common.md (vec_init): ... here.
2644 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
2645
2646 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
2647
2648 PR tree-optimization/101403
2649 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
2650 signedness of the shift is not the same as the signedness of
2651 the type extension.
2652
2653 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
2654 Uroš Bizjak <ubizjak@gmail.com>
2655
2656 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
2657 divmod of a constant numerator with new define_insn_and_split.
2658
2659 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
2660
2661 PR target/100152
2662 * config/i386/i386-expand.c (ix86_expand_call): If a call is
2663 to a non-local-binding, or local but to a public symbol, then
2664 assume that it might be indirected via the lazy symbol binder.
2665 Mark R10 and R10 as clobbered in that case.
2666
2667 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
2668
2669 PR target/101377
2670 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
2671 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
2672 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
2673
2674 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
2675
2676 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
2677 log2 range of operands[3] to [1,31].
2678 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
2679
2680 2021-07-09 Sergei Trofimovich <siarheit@google.com>
2681
2682 * doc/md.texi: Don't split @smallexample in multiple @groups.
2683
2684 2021-07-09 Sergei Trofimovich <siarheit@google.com>
2685
2686 * doc/md.texi: Add missing 'see' word.
2687
2688 2021-07-09 Andrew Pinski <apinski@marvell.com>
2689
2690 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
2691 to take sequence and gimple_match_op. Accept the case where
2692 op is a SSA_NAME and one statement in the sequence.
2693 Also allow constants.
2694 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
2695 Update call to phiopt_early_allow. Discard the sequence if not
2696 used.
2697
2698 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
2699
2700 PR target/100760
2701 PR target/100761
2702 PR target/100762
2703 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
2704 instead of ISA_HAS_MSA.
2705 (mips_expand_vec_unpack): Likewise.
2706 (mips_expand_vector_init): Likewise.
2707
2708 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
2709
2710 * config/rs6000/vsx.md (mods_<mode>): Rename to...
2711 (mod<mode>3): ... this.
2712 (modu_<mode>): Rename to...
2713 (umod<mode>3): ... this.
2714 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
2715 MODU_V4SI): Adjust.
2716
2717 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
2718
2719 * config/h8300/shiftrotate.md (variable shifts): Expose condition
2720 code handling for the test before the loop.
2721
2722 2021-07-08 Martin Jambor <mjambor@suse.cz>
2723
2724 PR ipa/101066
2725 * ipa-sra.c (class isra_call_summary): New member
2726 m_before_any_store, initialize it in the constructor.
2727 (isra_call_summary::dump): Dump the new field.
2728 (ipa_sra_call_summaries::duplicate): Copy it.
2729 (process_scan_results): Set it.
2730 (isra_write_edge_summary): Stream it.
2731 (isra_read_edge_summary): Likewise.
2732 (param_splitting_across_edge): Only override
2733 safe_to_import_accesses if m_before_any_store is set.
2734
2735 2021-07-08 Martin Sebor <msebor@redhat.com>
2736
2737 PR bootstrap/101374
2738 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
2739 Use Object Size Type 0 instead of 1.
2740
2741 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
2742
2743 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
2744 if condition.
2745
2746 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
2747
2748 * match.pd: Simplify an extend-operate-truncate sequence involving
2749 a POLY_INT_CST.
2750
2751 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
2752 Richard Biener <rguenther@suse.de>
2753
2754 PR tree-optimization/40210
2755 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
2756 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
2757 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
2758
2759 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
2760
2761 PR target/100637
2762 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
2763 Handle V4QI mode.
2764 * config/i386/mmx.md (V_32): New mode iterator.
2765 (mov<V_32:mode>): Use V_32 mode iterator.
2766 (*mov<V_32:mode>_internal): Ditto.
2767 (*push<V_32:mode>2_rex64): Ditto.
2768 (*push<V_32:mode>2): Ditto.
2769 (movmisalign<V_32:mode>): Ditto.
2770 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
2771 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
2772 (vec_unpacks_lo_v4qi): New expander.
2773 (vec_unpacks_hi_v4qi): Ditto.
2774 (vec_unpacku_lo_v4qi): Ditto.
2775 (vec_unpacku_hi_v4qi): Ditto.
2776 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
2777 (VALID_INT_MODE_P): Ditto.
2778
2779 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
2780
2781 PR target/100809
2782 * config/rs6000/rs6000.md (udivti3): New insn.
2783 (divti3): New insn.
2784 (umodti3): New insn.
2785 (modti3): New insn.
2786
2787 2021-07-07 Martin Sebor <msebor@redhat.com>
2788
2789 PR tree-optimization/100137
2790 PR tree-optimization/99121
2791 PR tree-optimization/97027
2792 * builtins.c (access_ref::access_ref): Also set offmax.
2793 (access_ref::offset_in_range): Define new function.
2794 (access_ref::add_offset): Set offmax.
2795 (access_ref::inform_access): Handle access_none.
2796 (handle_mem_ref): Clear ostype.
2797 (compute_objsize_r): Handle ASSERT_EXPR.
2798 * builtins.h (struct access_ref): Add offmax member.
2799 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
2800 compute_objsize() and simplify.
2801
2802 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
2803
2804 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
2805 and VSX_BUILTIN_STXVP.
2806
2807 2021-07-07 Martin Sebor <msebor@redhat.com>
2808
2809 PR target/101363
2810 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
2811 a stray %K from error_at() missed in r12-2088.
2812
2813 2021-07-07 Richard Biener <rguenther@suse.de>
2814
2815 PR tree-optimization/99728
2816 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
2817 aggregate copies.
2818 (mem_refs_may_alias_p): Add assert we handled aggregate
2819 copies elsewhere.
2820 (sm_seq_valid_bb): Give up when running into aggregate copies.
2821 (ref_indep_loop_p): Handle aggregate copies as never
2822 being invariant themselves but allow other refs to be
2823 disambiguated against them.
2824 (can_sm_ref_p): Do not try to apply store-motion to aggregate
2825 copies.
2826
2827 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
2828
2829 PR debug/101283
2830 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
2831 number of bits.
2832
2833 2021-07-06 Martin Sebor <msebor@redhat.com>
2834
2835 * gimple-pretty-print.c (percent_G_format): Remove.
2836 * tree-diagnostic.c (default_tree_printer): Remove calls.
2837 * tree-pretty-print.c (percent_K_format): Remove.
2838 * tree-pretty-print.h (percent_K_format): Remove.
2839
2840 2021-07-06 Martin Sebor <msebor@redhat.com>
2841
2842 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
2843 Remove %K and use error_at.
2844 (aarch64_expand_fcmla_builtin): Same.
2845 (aarch64_expand_builtin_tme): Same.
2846 (aarch64_expand_builtin_memtag): Same.
2847 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
2848 (arm_expand_builtin): Same.
2849 * config/arm/arm.c (bounds_check): Same.
2850
2851 2021-07-06 Martin Sebor <msebor@redhat.com>
2852
2853 * builtins.c (warn_string_no_nul): Remove %G.
2854 (maybe_warn_for_bound): Same.
2855 (warn_for_access): Same.
2856 (check_access): Same.
2857 (check_strncat_sizes): Same.
2858 (expand_builtin_strncat): Same.
2859 (expand_builtin_strncmp): Same.
2860 (expand_builtin): Same.
2861 (expand_builtin_object_size): Same.
2862 (warn_dealloc_offset): Same.
2863 (maybe_emit_free_warning): Same.
2864 * calls.c (maybe_warn_alloc_args_overflow): Same.
2865 (maybe_warn_nonstring_arg): Same.
2866 (maybe_warn_rdwr_sizes): Same.
2867 * expr.c (expand_expr_real_1): Remove %K.
2868 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
2869 (gimple_fold_builtin_strncat): Same.
2870 * gimple-ssa-sprintf.c (format_directive): Same.
2871 (handle_printf_call): Same.
2872 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
2873 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
2874 (maybe_diag_access_bounds): Same. Call gimple_location.
2875 (check_bounds_or_overlap): Same.
2876 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
2877 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
2878 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
2879 (maybe_diag_stxncpy_trunc): Same.
2880 (handle_builtin_stxncpy_strncat): Same.
2881 (maybe_warn_pointless_strcmp): Same.
2882 * tree-ssa-uninit.c (maybe_warn_operand): Same.
2883
2884 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
2885
2886 PR target/97194
2887 * config/i386/predicates.md (vec_setm_operand): Enable
2888 register_operand for TARGET_SSE4_1.
2889 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
2890 as operand 2 predicate. Call ix86_expand_vector_set_var
2891 for non-constant index operand.
2892 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
2893 Call ix86_expand_vector_set_var for non-constant index operand.
2894
2895 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
2896
2897 * config/h8300/jumpcall.md (*branch): When possible, generate
2898 the comparison in CCZN mode.
2899 * config/h8300/predicates.md (simple_memory_operand): Reject all
2900 auto-increment addressing modes.
2901
2902 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
2903
2904 PR bootstrap/100246
2905 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
2906 this type.
2907
2908 2021-07-06 Richard Biener <rguenther@suse.de>
2909
2910 * doc/md.texi (vec_fmaddsub<mode>4): Document.
2911 (vec_fmsubadd<mode>4): Likewise.
2912 * optabs.def (vec_fmaddsub$a4): Add.
2913 (vec_fmsubadd$a4): Likewise.
2914 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
2915 (IFN_VEC_FMSUBADD): Likewise.
2916 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
2917 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
2918 (addsub_pattern::build): Likewise.
2919 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
2920 and CFN_VEC_FMSUBADD are not transparent for permutes.
2921 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
2922 (vec_fmsubadd<mode>4): Likewise.
2923
2924 2021-07-06 Richard Biener <rguenther@suse.de>
2925
2926 * doc/invoke.texi (fmove-loop-stores): Document.
2927 * common.opt (fmove-loop-stores): New option.
2928 * opts.c (default_options_table): Enable -fmove-loop-stores
2929 at -O1 but not -Og.
2930 * tree-ssa-loop-im.c (pass_lim::execute): Pass
2931 flag_move_loop_stores instead of true to
2932 loop_invariant_motion_in_fun.
2933
2934 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
2935
2936 * doc/install.texi: Document --with-dsymutil.
2937
2938 2021-07-06 Andrew Pinski <apinski@marvell.com>
2939
2940 PR tree-optimization/101256
2941 * dbgcnt.def (phiopt_edge_range): New counter.
2942 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
2943 Check to make sure the new name is defined in the same
2944 bb as the conditional before duplicating range info.
2945 Also add debug counter.
2946
2947 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
2948
2949 PR rtl-optimization/100328
2950 * config/i386/i386-options.c (ix86_option_override_internal):
2951 Set param_ira_consider_dup_in_all_alts to 0.
2952
2953 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
2954
2955 PR rtl-optimization/100328
2956 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
2957 parameter.
2958 * ira.c (ira_get_dup_out_num): Adjust as parameter
2959 param_ira_consider_dup_in_all_alts.
2960 * params.opt (ira-consider-dup-in-all-alts): New.
2961 * ira-conflicts.c (process_regs_for_copy): Add one parameter
2962 single_input_op_has_cstr_p.
2963 (get_freq_for_shuffle_copy): New function.
2964 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
2965 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
2966
2967 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
2968
2969 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
2970 generate condition code aware RTL directly.
2971
2972 2021-07-05 Andrew Pinski <apinski@marvell.com>
2973
2974 PR tree-optimization/101039
2975 * match.pd (A CMP 0 ? A : -A): New patterns.
2976 * tree-ssa-phiopt.c (abs_replacement): Delete function.
2977 (tree_ssa_phiopt_worker): Don't call abs_replacement.
2978 Update comment about abs_replacement.
2979
2980 2021-07-05 Andrew Pinski <apinski@marvell.com>
2981
2982 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
2983 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
2984
2985 2021-07-05 Andrew Pinski <apinski@marvell.com>
2986
2987 * tree-ssa-phiopt.c (match_simplify_replacement):
2988 Add early_p argument. Call gimple_simplify_phiopt
2989 instead of gimple_simplify.
2990 (tree_ssa_phiopt_worker): Update call to
2991 match_simplify_replacement and allow unconditionally.
2992 (phiopt_early_allow): New function.
2993 (gimple_simplify_phiopt): New function.
2994
2995 2021-07-05 Andrew Pinski <apinski@marvell.com>
2996
2997 PR middle-end/101237
2998 * fold-const.c (negate_expr_p): Remove call to element_mode
2999 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
3000 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
3001 (fold_negate_expr_1): Likewise.
3002 (const_unop): Likewise.
3003 (fold_cond_expr_with_comparison): Likewise.
3004 (fold_binary_loc): Likewise.
3005 (fold_ternary_loc): Likewise.
3006 (tree_call_nonnegative_warnv_p): Likewise.
3007 * match.pd (-(A + B) -> (-B) - A): Likewise.
3008
3009 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
3010
3011 * configure.ac: Handle --with-dsymutil in the same way as we
3012 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
3013 Extract the type and version for the dsymutil configured or
3014 found by the default searches.
3015 * config.in: Regenerated.
3016 * configure: Regenerated.
3017 * collect2.c (do_dsymutil): Handle locating dsymutil in the
3018 same way as for the assembler and linker.
3019 * config/darwin.h (DSYMUTIL): Delete.
3020 * gcc.c: Report a configured dsymutil correctly.
3021 * exec-tool.in: Allow for dsymutil.
3022
3023 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
3024
3025 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
3026 Handle V4QI and V2HI modes.
3027 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
3028 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
3029 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
3030 Handle 4-byte dual operands with TARGET_XOP and single operands
3031 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
3032 mmx_pshufbv4qi3 for TARGET_SSSE3.
3033 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
3034 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
3035 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
3036 (expand_vec_perm_even_odd_1): Handle V4QI mode.
3037 (expand_vec_perm_broadcast_1): Handle V4QI mode.
3038 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
3039 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
3040 (mmx_pshufbv4qi3): Ditto.
3041 (*mmx_pblendw32): Ditto.
3042 (*mmx_pblendw64): Rename from *mmx_pblendw.
3043 (mmx_punpckhbw_low): New insn_and_split pattern.
3044 (mmx_punpcklbw_low): Ditto.
3045
3046 2021-07-05 Richard Biener <rguenther@suse.de>
3047
3048 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
3049 set LOOP_C_INFINITE on the vectorized loop.
3050
3051 2021-07-05 Richard Biener <rguenther@suse.de>
3052
3053 PR middle-end/101291
3054 * cfgloopmanip.c (loop_version): Set the loop copy of the
3055 versioned loop to the new loop.
3056
3057 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
3058
3059 PR target/100269
3060 * config.gcc: Ensure that Darwin biarch definitions are
3061 added before i386.h.
3062 * config/i386/darwin.h (TARGET_64BIT): Remove.
3063 (PR80556_WORKAROUND): New.
3064 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
3065 (DARWIN_SUBARCH_SPEC): New.
3066 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
3067 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
3068 (REAL_LIBGCC_SPEC): Remove.
3069 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
3070 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
3071 (REAL_LIBGCC_SPEC): Remove.
3072
3073 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
3074
3075 PR middle-end/101294
3076 * expr.c (store_constructor): Don't use vec_duplicate on vector.
3077
3078 2021-07-02 Martin Sebor <msebor@redhat.com>
3079
3080 PR middle-end/98871
3081 PR middle-end/98512
3082 * diagnostic.c (get_any_inlining_info): New.
3083 (update_effective_level_from_pragmas): Handle inlining context.
3084 (diagnostic_enabled): Same.
3085 (diagnostic_report_diagnostic): Same.
3086 * diagnostic.h (struct diagnostic_info): Add ctor.
3087 (struct diagnostic_context): Add new member.
3088 * tree-diagnostic.c (set_inlining_locations): New.
3089 (tree_diagnostics_defaults): Set new callback pointer.
3090
3091 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
3092
3093 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
3094 New macros.
3095 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
3096 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
3097 lxvp and stxvp built-ins.
3098 (mma_init_builtins): Handle lxvp and stxvp built-ins.
3099 (builtin_function_type): Likewise.
3100 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
3101
3102 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
3103
3104 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
3105 additional argument for the code.
3106 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
3107 argument for the code. Just return if the ZN bits are useful or
3108 not rather than the old style CC_* enums.
3109 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
3110 more generic shiftqi patterns.
3111 (shifthi_noscratch, shiftsi_noscratch): Similarly.
3112 (shiftqi_noscratch_set_flags): New pattern.
3113 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
3114
3115 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
3116
3117 PR tree-optimization/101223
3118 * range-op.cc (build_lt): Add -1 for signed values.
3119 (built_gt): Subtract -1 for signed values.
3120
3121 2021-07-02 David Faust <david.faust@oracle.com>
3122
3123 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
3124 (btf_asm_type): Likewise.
3125
3126 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
3127
3128 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
3129 an array of rtx rather than a pointer to rtx. Add code argument.
3130 (compute_a_shift_length): Similarly.
3131 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
3132 shift itself isn't an operand. Create dummy operand[0] to carry
3133 a mode and pass a suitable rtx code to compute_a_shift_length.
3134 (get_shift_alg): Adjust operand number of clobber in output templates.
3135 (output_a_shift): Make first argument an array of rtx rather than
3136 a pointer to rtx. Add code argument for the type of shift.
3137 Adjust now that the shift itself is no longer an operand.
3138 (compute_a_shift_length): Similarly.
3139 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
3140 iterator rather than nshift_operator.
3141 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
3142 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
3143 and compute_a_shift_length.
3144 (shiftqi_noscratch_clobber_flags): Likewise.
3145 (shifthi_noscratch_clobber_flags): Likewise.
3146 (shiftsi_noscratch_clobber_flags): Likewise.
3147
3148 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
3149
3150 PR debug/101283
3151 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
3152 dsymutil for BTF/CTF.
3153
3154 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
3155
3156 PR debug/101283
3157 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
3158 segment to include BTF.
3159 (BTF_INFO_SECTION_NAME): New.
3160
3161 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
3162
3163 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
3164 (small_data_operand, memreg_operand, small_insn_p): Likewise.
3165 * config/m32r/m32r.c (call_operand): Adjust return type.
3166 (small_data_operand, memreg_operand): Likewise.
3167
3168 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
3169
3170 * config/frv/frv-protos.h (integer_register_operand): Adjust return
3171 type.
3172 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
3173 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
3174 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
3175 (move_source_operand, move_destination_operand): Likewise.
3176 (condexec_source_operand, condexec_dest_operand): Likewise.
3177 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
3178 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
3179 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
3180 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
3181 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
3182 (even_fpr_operand, odd_fpr_operand): Likewise.
3183 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
3184 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
3185 (uint4_operand, uint1_operand, int_2word_operand): Likewise
3186 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
3187 (relational_operator, float_relational_operator): Likewise.
3188 (ccr_eqne_operator, minmax_operator): Likewise.
3189 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
3190 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
3191 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
3192 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
3193 (quad_acc_operand, accg_operand): Likewise.
3194
3195 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
3196
3197 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
3198 return type to a bool.
3199 (nonimmediate_nonstack_operand): Likewise.
3200 (xstormy16_splittable_below100_operand): Likewise.
3201 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
3202 return type.
3203 (xstormy16_splittable_below100_operand): Likewise.
3204
3205 2021-07-02 Richard Biener <rguenther@suse.de>
3206
3207 PR tree-optimization/101293
3208 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
3209 with combined offsets.
3210 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
3211 combined with the rest of the offset.
3212
3213 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
3214
3215 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
3216 PIC encodings for PE-COFF targets.
3217
3218 2021-07-02 Jakub Jelinek <jakub@redhat.com>
3219
3220 PR target/101286
3221 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
3222 Return nullptr for TImode inner mode.
3223
3224 2021-07-02 Richard Biener <rguenther@suse.de>
3225
3226 PR tree-optimization/101280
3227 PR tree-optimization/101173
3228 * gimple-loop-interchange.cc
3229 (tree_loop_interchange::valid_data_dependences): Properly
3230 guard all dependence checks with DDR_REVERSED_P or its
3231 inverse.
3232
3233 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
3234
3235 * config/i386/i386-expand.c (ix86_expand_builtin):
3236 Add branch to clear odata when ZF is set for asedecenc_expand
3237 and wideaesdecenc_expand.
3238
3239 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
3240
3241 * config/i386/gcc-auto-profile: regenerate
3242
3243 2021-07-02 liuhongt <hongtao.liu@intel.com>
3244
3245 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
3246 (trunc<mode><pmov_dst_4_lower>2): this.
3247
3248 2021-07-01 David Malcolm <dmalcolm@redhat.com>
3249
3250 * diagnostic.h (diagnostic_context::m_file_cache): New field.
3251 * input.c (class fcache): Rename to...
3252 (class file_cache_slot): ...this, making most members private and
3253 prefixing fields with "m_".
3254 (file_cache_slot::get_file_path): New accessor.
3255 (file_cache_slot::get_use_count): New accessor.
3256 (file_cache_slot::missing_trailing_newline_p): New accessor.
3257 (file_cache_slot::inc_use_count): New.
3258 (fcache_buffer_size): Move to...
3259 (file_cache_slot::buffer_size): ...here.
3260 (fcache_line_record_size): Move to...
3261 (file_cache_slot::line_record_size): ...here.
3262 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
3263 (fcache_tab_size): Move to file_cache::num_file_slots.
3264 (diagnostic_file_cache_init): Update for move of fcache_tab
3265 to global_dc->m_file_cache.
3266 (diagnostic_file_cache_fini): Likewise.
3267 (lookup_file_in_cache_tab): Convert to...
3268 (file_cache::lookup_file): ...this.
3269 (diagnostics_file_cache_forcibly_evict_file): Update for move of
3270 fcache_tab to global_dc->m_file_cache, moving most of
3271 implementation to...
3272 (file_cache::forcibly_evict_file): ...this new function and...
3273 (file_cache_slot::evict): ...this new function.
3274 (evicted_cache_tab_entry): Convert to...
3275 (file_cache::evicted_cache_tab_entry): ...this.
3276 (add_file_to_cache_tab): Convert to...
3277 (file_cache::add_file): ...this, moving bulk of implementation
3278 to...
3279 (file_cache_slot::create): ..this new function.
3280 (file_cache::file_cache): New.
3281 (file_cache::~file_cache): New.
3282 (lookup_or_add_file_to_cache_tab): Convert to...
3283 (file_cache::lookup_or_add_file): ..this new function.
3284 (fcache::fcache): Rename to...
3285 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
3286 to fields.
3287 (fcache::~fcache): Rename to...
3288 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
3289 to fields.
3290 (needs_read): Convert to...
3291 (file_cache_slot::needs_read_p): ...this.
3292 (needs_grow): Convert to...
3293 (file_cache_slot::needs_grow_p): ...this.
3294 (maybe_grow): Convert to...
3295 (file_cache_slot::maybe_grow): ...this.
3296 (read_data): Convert to...
3297 (file_cache_slot::read_data): ...this.
3298 (maybe_read_data): Convert to...
3299 (file_cache_slot::maybe_read_data): ...this.
3300 (get_next_line): Convert to...
3301 (file_cache_slot::get_next_line): ...this.
3302 (goto_next_line): Convert to...
3303 (file_cache_slot::goto_next_line): ...this.
3304 (read_line_num): Convert to...
3305 (file_cache_slot::read_line_num): ...this.
3306 (location_get_source_line): Update for moving of globals to
3307 global_dc->m_file_cache.
3308 (location_missing_trailing_newline): Likewise.
3309 * input.h (class file_cache_slot): New forward decl.
3310 (class file_cache): New.
3311
3312 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
3313
3314 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
3315 128-bit floating point conditional move support.
3316 (have_compare_and_set_mask): Add IEEE 128-bit floating point
3317 types.
3318 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
3319 (mov<mode>cc_p10, IEEE128 iterator): New insn.
3320 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
3321 (fpmask<mode>, IEEE128 iterator): New insn.
3322 (xxsel<mode>, IEEE128 iterator): New insn.
3323
3324 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
3325
3326 PR debug/101283
3327 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
3328
3329 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
3330
3331 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
3332 Make it global.
3333 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
3334 New prototype.
3335 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
3336 (vec_duplicate<mode>): New expander.
3337
3338 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
3339
3340 PR target/100865
3341 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
3342 New prototype.
3343 (ix86_byte_broadcast): New function.
3344 (ix86_convert_const_wide_int_to_broadcast): Likewise.
3345 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
3346 size is 16 bytes or bigger.
3347 (ix86_broadcast_from_integer_constant): New function.
3348 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
3349 to broadcast if mode size is 16 bytes or bigger.
3350 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
3351 prototype.
3352 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
3353
3354 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
3355
3356 * config/i386/predicates.md (ix86_endbr_immediate_operand):
3357 Return true/false instead of 1/0.
3358 (movq_parallel): Ditto.
3359
3360 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
3361
3362 * recog.c (general_operand): Return true/false instead of 1/0.
3363 (register_operand): Ditto.
3364 (immediate_operand): Ditto.
3365 (const_int_operand): Ditto.
3366 (const_scalar_int_operand): Ditto.
3367 (const_double_operand): Ditto.
3368 (push_operand): Ditto.
3369 (pop_operand): Ditto.
3370 (memory_operand): Ditto.
3371 (indirect_operand): Ditto.
3372
3373 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
3374
3375 * genpreds.c (write_predicate_subfunction):
3376 Change the type of written subfunction to bool.
3377 (write_one_predicate_function):
3378 Change the type of written function to bool.
3379 (write_tm_preds_h): Ditto.
3380 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
3381 * recog.c (general_operand): Change the type to bool.
3382 (address_operand): Ditto.
3383 (register_operand): Ditto.
3384 (pmode_register_operand): Ditto.
3385 (scratch_operand): Ditto.
3386 (immediate_operand): Ditto.
3387 (const_int_operand): Ditto.
3388 (const_scalar_int_operand): Ditto.
3389 (const_double_operand): Ditto.
3390 (nonimmediate_operand): Ditto.
3391 (nonmemory_operand): Ditto.
3392 (push_operand): Ditto.
3393 (pop_operand): Ditto.
3394 (memory_operand): Ditto.
3395 (indirect_operand): Ditto.
3396 (ordered_comparison_operator): Ditto.
3397 (comparison_operator): Ditto.
3398 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
3399 Change the type of indirect predicate function to bool.
3400 * config/rs6000/rs6000.c (easy_vector_constant):
3401 Change the type to bool.
3402 * config/mips/mips-protos.h (m16_based_address_p):
3403 Change the type of operand 3 to bool.
3404
3405 2021-07-01 Richard Biener <rguenther@suse.de>
3406
3407 PR tree-optimization/101280
3408 PR tree-optimization/101173
3409 * gimple-loop-interchange.cc
3410 (tree_loop_interchange::valid_data_dependences): Revert
3411 previous change and instead correctly handle DDR_REVERSED_P
3412 dependence.
3413
3414 2021-07-01 Richard Biener <rguenther@suse.de>
3415
3416 PR tree-optimization/101278
3417 * tree-ssa-dse.c (dse_classify_store): First check for
3418 uses, then ignore stmt for chaining purposes.
3419
3420 2021-07-01 Richard Biener <rguenther@suse.de>
3421
3422 PR tree-optimization/100778
3423 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
3424 vectorized ops ahead of their scalar BB.
3425
3426 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
3427
3428 PR target/101044
3429 * config/i386/i386.md (*nabs<dwi>2_doubleword):
3430 New insn_and_split pattern.
3431 (*nabs<dwi>2_1): Ditto.
3432 * config/i386/i386-features.c
3433 (general_scalar_chain::compute_convert_gain):
3434 Handle (NEG (ABS (...))) RTX. Rewrite src code
3435 scanner as switch statement.
3436 (general_scalar_chain::convert_insn):
3437 Handle (NEG (ABS (...))) RTX.
3438 (general_scalar_to_vector_candidate_p):
3439 Detect (NEG (ABS (...))) RTX. Reorder case statements
3440 for (AND (NOT (...) ...)) fallthrough.
3441
3442 2021-07-01 Richard Biener <rguenther@suse.de>
3443
3444 PR tree-optimization/101178
3445 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
3446 (slpg::perm_in): Add.
3447 (slpg::get_perm_in): Remove.
3448 (slpg::get_perm_materialized): Add.
3449 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
3450 during permute propagation and materialization.
3451
3452 2021-07-01 Jakub Jelinek <jakub@redhat.com>
3453
3454 PR debug/101266
3455 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
3456
3457 2021-07-01 Jakub Jelinek <jakub@redhat.com>
3458
3459 PR middle-end/94366
3460 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
3461 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
3462 use boolean_type_node instead of integer_type_node as NE_EXPR type.
3463 (lower_reduction_clauses): Likewise.
3464
3465 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
3466
3467 * config/gcn/gcn.c: Include dwarf2.h.
3468 (gcn_addr_space_debug): New function.
3469 (TARGET_ADDR_SPACE_DEBUG): New hook.
3470
3471 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
3472
3473 * common/config/gcn/gcn-common.c
3474 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
3475 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
3476 when emitting CFI.
3477 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
3478 (gcn_frame_pointer_rqd): New function.
3479 (TARGET_FRAME_POINTER_REQUIRED): New hook.
3480
3481 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
3482
3483 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
3484 prologue register saves.
3485 (gcn_debug_unwind_info): Use UI_DWARF2.
3486 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
3487 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
3488 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
3489 (DWARF_LINK_REGISTER): New define.
3490 (FIRST_PSEUDO_REGISTER): Increment.
3491 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
3492 (CALL_USED_REGISTERS): Likewise.
3493 (REGISTER_NAMES): Likewise.
3494
3495 2021-06-30 Richard Biener <rguenther@suse.de>
3496
3497 PR tree-optimization/101267
3498 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
3499 API and use SLP compatible interface of vect_is_simple_use.
3500 Reject not vectorized SLP defs for callers that do not support
3501 that.
3502 (vect_check_store_rhs): Handle masked stores and pass down
3503 the appropriate operator index.
3504 (vectorizable_call): Adjust.
3505 (vectorizable_store): Likewise.
3506 (vectorizable_load): Likewise. Handle SLP pecularity of
3507 masked loads.
3508 (vect_is_simple_use): Remove special-casing of masked stores.
3509
3510 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
3511
3512 * common.opt (foffload): Remove help as Driver only.
3513 * gcc.c (display_help): Add -foffload.
3514
3515 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
3516
3517 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
3518 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
3519 a candidate list; better inform no offload target is configured
3520 and fix hint extraction when passed target is not '\0' at [len].
3521 * common.opt (foffload): Add tailing '.'.
3522 (foffload-options): Likewise; fix flag name in the help string.
3523
3524 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
3525
3526 PR target/66791
3527 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
3528 (vcage_f32): Gate comparison on __FAST_MATH__.
3529 (vcageq_f32): Likewise.
3530 (vcale_f32): Likewise.
3531 (vcaleq_f32): Likewise.
3532 (vcagt_f32): Likewise.
3533 (vcagtq_f32): Likewise.
3534 (vcalt_f32): Likewise.
3535 (vcaltq_f32): Likewise.
3536 (vcage_f16): Likewise.
3537 (vcageq_f16): Likewise.
3538 (vcale_f16): Likewise.
3539 (vcaleq_f16): Likewise.
3540 (vcagt_f16): Likewise.
3541 (vcagtq_f16): Likewise.
3542 (vcalt_f16): Likewise.
3543 (vcaltq_f16): Likewise.
3544
3545 2021-06-30 Richard Biener <rguenther@suse.de>
3546
3547 PR tree-optimization/101264
3548 * tree-vect-slp.c (vect_optimize_slp): Propagate the
3549 computed perm_in to all "any" permute successors
3550 we cannot de-duplicate immediately.
3551
3552 2021-06-30 liuhongt <hongtao.liu@intel.com>
3553
3554 PR target/101248
3555 * config/i386/sse.md
3556 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
3557 Refined to ..
3558 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
3559 this.
3560 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
3561 * config/i386/subst.md (maskz_scalar): New define_subst.
3562 (maskz_scalar_name): New subst_attr.
3563 (maskz_scalar_op5): Ditto.
3564 (round_saeonly_maskz_scalar_op5): Ditto.
3565 (round_saeonly_maskz_scalar_operand5): Ditto.
3566
3567 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
3568
3569 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
3570 Increase code CSECT alignment to at least 32 bytes.
3571 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
3572 alignment designation.
3573
3574 2021-06-29 Sergei Trofimovich <siarheit@google.com>
3575
3576 * doc/generic.texi: Fix s/net yet/not yet/ typo.
3577
3578 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
3579
3580 PR tree-optimization/101254
3581 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
3582 wrapping/non-wrapping when setting the result range.
3583
3584 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
3585
3586 * value-query.cc (gimple_range_global): Allow phis.
3587
3588 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
3589
3590 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
3591 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
3592 statement for location context.
3593 (check_for_binary_op_overflow): Ditto.
3594 (simplify_using_ranges::get_vr_for_comparison): Ditto.
3595 (simplify_using_ranges::compare_name_with_value): Ditto.
3596 (simplify_using_ranges::compare_names): Ditto.
3597 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
3598 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
3599 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
3600 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
3601 (simplify_using_ranges::two_valued_val_range_p): Ditto.
3602 (simplify_using_ranges::simplify): Ditto.
3603 * vr-values.h: Adjust prototypes.
3604
3605 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
3606
3607 PR target/95046
3608 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
3609
3610 2021-06-29 Julian Brown <julian@codesourcery.com>
3611
3612 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
3613 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
3614 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
3615 otherwise.
3616 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
3617 (MAX_FIXED_MODE_SIZE): Change to 128.
3618
3619 2021-06-29 Julian Brown <julian@codesourcery.com>
3620
3621 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
3622 (s_mnemonic): Add clrsb.
3623 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
3624 (clrsb<mode>2): Add expander for SImode/DImode.
3625
3626 2021-06-29 Julian Brown <julian@codesourcery.com>
3627
3628 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
3629 muldi3): Add patterns.
3630
3631 2021-06-29 Julian Brown <julian@codesourcery.com>
3632
3633 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
3634 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
3635
3636 2021-06-29 Julian Brown <julian@codesourcery.com>
3637
3638 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
3639
3640 2021-06-29 Joseph Myers <joseph@codesourcery.com>
3641
3642 * btfout.c, ctfout.c: Include "memmodel.h".
3643
3644 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
3645
3646 * gcc.c (check_offload_target_name): Cast len argument to
3647 %q.*s to 'int'; avoid -Wstringop-truncation warning.
3648
3649 2021-06-29 Richard Biener <rguenther@suse.de>
3650
3651 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
3652 to "any" permute nodes and relax "any" permute proapgation
3653 during iterative backward propagation.
3654
3655 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
3656
3657 PR other/67300
3658 * common.opt (-foffload=): Update description.
3659 (-foffload-options=): New.
3660 * doc/invoke.texi (C Language Options): Document
3661 -foffload and -foffload-options.
3662 * gcc.c (check_offload_target_name): New, split off from
3663 handle_foffload_option.
3664 (check_foffload_target_names): New.
3665 (handle_foffload_option): Handle -foffload=default.
3666 (driver_handle_option): Update for -foffload-options.
3667 * lto-opts.c (lto_write_options): Use -foffload-options
3668 instead of -foffload.
3669 * lto-wrapper.c (merge_and_complain, append_offload_options):
3670 Likewise.
3671 * opts.c (common_handle_option): Likewise.
3672
3673 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
3674
3675 * doc/invoke.texi (C Language Options): Sort options
3676 alphabetically in optlist and also the description itself.
3677 Remove leftover -fallow-single-precision from and add missing
3678 -fgnu-tm to the optlist.
3679
3680 2021-06-29 Richard Biener <rguenther@suse.de>
3681
3682 * tree-vect-slp.c (slpg_vertex::visited): Remove.
3683 (vect_slp_perms_eq): Handle -1 permutes.
3684 (vect_optimize_slp): Rewrite permute propagation.
3685
3686 2021-06-29 Jakub Jelinek <jakub@redhat.com>
3687
3688 PR c++/101210
3689 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
3690 perform the optimization in GENERIC when sanitizing and x has a
3691 reference type.
3692
3693 2021-06-29 Richard Biener <rguenther@suse.de>
3694
3695 PR tree-optimization/101242
3696 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
3697 PHIs with not represented initial values as leafs.
3698
3699 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
3700
3701 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
3702 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
3703 "register" keyword.
3704 (pdp11_initial_elimination_offset) Remove unused variable.
3705 (pdp11_cmp_length) Ditto.
3706 (pdp11_insn_cost): Ditto, and fix signedness warning.
3707
3708 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
3709
3710 * btfout.c: Include tm_p.h.
3711 * ctfout.c: Same.
3712
3713 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
3714
3715 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
3716 frame related.
3717 (bpf_expand_epilogue): Likewise.
3718 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
3719 Do not define DBX_DEBUGGING_INFO.
3720
3721 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
3722
3723 * doc/invoke.texi: Document the CTF and BTF debug info options.
3724
3725 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
3726 David Faust <david.faust@oracle.com>
3727 Jose E. Marchesi <jose.marchesi@oracle.com>
3728 Weimin Pan <weimin.pan@oracle.com>
3729
3730 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
3731 GTFILES. Add new object files.
3732 * common.opt: Add CTF and BTF debug info options.
3733 * btfout.c: New file.
3734 * ctfc.c: Likewise.
3735 * ctfc.h: Likewise.
3736 * ctfout.c: Likewise.
3737 * dwarf2ctf.c: Likewise.
3738 * dwarf2ctf.h: Likewise.
3739 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
3740 BTF_DEBUG.
3741 * dwarf2out.c (dwarf2out_source_line): Likewise.
3742 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
3743 be generated.
3744 (debug_format_do_cu): New function.
3745 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
3746 them if requested.
3747 Include dwarf2ctf.c.
3748 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
3749 formats.
3750 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
3751 (CTF_DEBUG): New bitmask.
3752 (BTF_DEBUG): Likewise.
3753 (enum ctf_debug_info_levels): New enum.
3754 * gengtype.c (open_base_files): Handle ctfc.h.
3755 (main): Handle uint32_t type.
3756 * flags.h (btf_debuginfo_p): New definition.
3757 (dwarf_based_debuginfo_p): Likewise.
3758 * opts.c (debug_type_names): Add entries for CTF and BTF.
3759 (btf_debuginfo_p): New function.
3760 (dwarf_based_debuginfo_p): Likewise.
3761 (common_handle_option): Handle -gctfN and -gbtf options.
3762 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
3763 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
3764 frontend is not C.
3765
3766 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
3767
3768 * dwarf2out.c (AT_class): Function is no longer static.
3769 (AT_int): Likewise.
3770 (AT_unsigned): Likewise.
3771 (AT_loc): Likewise.
3772 (get_AT): Likewise.
3773 (get_AT_string): Likewise.
3774 (get_AT_flag): Likewise.
3775 (get_AT_unsigned): Likewise.
3776 (get_AT_ref): Likewise.
3777 (new_die_raw): Likewise.
3778 (lookup_decl_die): Likewise.
3779 (base_type_die): Likewise.
3780 (add_name_attribute): Likewise.
3781 (add_AT_int): Likewise.
3782 (add_AT_unsigned): Likewise.
3783 (add_AT_loc): Likewise.
3784 (dw_get_die_tag): New function.
3785 (dw_get_die_child): Likewise.
3786 (dw_get_die_sib): Likewise.
3787 (struct dwarf_file_data): Move from here to dwarf2out.h
3788 (struct dw_attr_struct): Likewise.
3789 * dwarf2out.h: Analogous changes.
3790
3791 2021-06-28 Martin Jambor <mjambor@suse.cz>
3792
3793 PR ipa/93385
3794 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
3795 members m_dead_stmts and m_dead_ssas.
3796 * ipa-param-manipulation.c
3797 (ipa_param_body_adjustments::mark_dead_statements): New function.
3798 (ipa_param_body_adjustments::common_initialization): Call it on
3799 all removed but not split parameters.
3800 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
3801 new mwmbers.
3802 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
3803 are dead.
3804 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
3805 dead debug statements.
3806 (copy_phis_for_bb): Do not copy dead PHI nodes.
3807
3808 2021-06-28 Martin Jambor <mjambor@suse.cz>
3809
3810 PR ipa/93385
3811 * symtab-clones.h (clone_info): Removed member param_adjustments.
3812 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
3813 deal with pass-through splits now.
3814 (ipa_param_performed_split): Removed.
3815 (ipa_param_adjustments::modify_call): Adjusted parameters.
3816 (class ipa_param_body_adjustments): Adjusted parameters of
3817 register_replacement, modify_gimple_stmt and modify_call_stmt.
3818 (ipa_verify_edge_has_no_modifications): Declare.
3819 (ipa_edge_modifications_finalize): Declare.
3820 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
3821 performed_splits processing, pas only edge to padjs->modify_call,
3822 check that call arguments were not modified if they should not have
3823 been.
3824 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
3825 splits.
3826 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
3827 (ipa_edge_modification_info): Likewise.
3828 (ipa_edge_modification_sum): Likewise.
3829 (ipa_edge_modifications): New edge summary.
3830 (ipa_verify_edge_has_no_modifications): New function.
3831 (transitive_split_p): Removed.
3832 (transitive_split_map): Likewise.
3833 (init_transitive_splits): Likewise.
3834 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
3835 summary instead of performed_splits.
3836 (ipa_param_body_adjustments::register_replacement): Drop dummy
3837 parameter, set base_index of the created ipa_param_body_replacement.
3838 (phi_arg_will_live_p): New function.
3839 (ipa_param_body_adjustments::common_initialization): Do not create
3840 IPA_SRA dummy decls.
3841 (simple_tree_swap_info): Removed.
3842 (remap_split_decl_to_dummy): Likewise.
3843 (record_argument_state_1): New function.
3844 (record_argument_state): Likewise.
3845 (ipa_param_body_adjustments::modify_call_stmt): New parameter
3846 orig_stmt. Do not work with dummy decls, save necessary info about
3847 changes to ipa_edge_modifications.
3848 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
3849 orig_stmt, pass it to modify_call_stmt.
3850 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
3851 modify_gimple_stmt.
3852 (ipa_edge_modifications_finalize): New function.
3853 * tree-inline.c (remap_gimple_stmt): Pass original statement to
3854 modify_gimple_stmt.
3855 (copy_phis_for_bb): Do not copy dead PHI nodes.
3856 (expand_call_inline): Do not remap performed_splits.
3857 (update_clone_info): Likewise.
3858 * toplev.c: Include ipa-param-manipulation.h.
3859 (toplev::finalize): Call ipa_edge_modifications_finalize.
3860
3861 2021-06-28 Andrew Pinski <apinski@marvell.com>
3862
3863 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
3864 info if we're the only things setting the target PHI.
3865 (value_replacement): Don't duplicate range here.
3866 (minmax_replacement): Likewise.
3867
3868 2021-06-28 Richard Biener <rguenther@suse.de>
3869
3870 PR tree-optimization/101229
3871 * gimple-walk.c (gimple_walk_op): Handle PHIs.
3872
3873 2021-06-28 Martin Liska <mliska@suse.cz>
3874
3875 * config/v850/v850.c (construct_dispose_instruction): Allocate
3876 a bigger buffer.
3877 (construct_prepare_instruction): Likewise.
3878
3879 2021-06-28 Martin Liska <mliska@suse.cz>
3880
3881 * config/v850/v850.c (v850_option_override): Build default
3882 target node.
3883 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
3884 ignored for inlining.
3885 (TARGET_CAN_INLINE_P): New.
3886
3887 2021-06-28 Richard Biener <rguenther@suse.de>
3888
3889 PR tree-optimization/101207
3890 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
3891 permute eliding for load permutations properly.
3892
3893 2021-06-28 Richard Biener <rguenther@suse.de>
3894
3895 PR tree-optimization/101173
3896 * gimple-loop-interchange.cc
3897 (tree_loop_interchange::valid_data_dependences): Disallow outer
3898 loop dependence distance of zero.
3899
3900 2021-06-28 liuhongt <hongtao.liu@intel.com>
3901
3902 PR target/100648
3903 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
3904 define_insn_and_split.
3905 (*avx_cmp<mode>3_ltint): Ditto.
3906 (*avx2_pcmp<mode>3_3): Ditto.
3907 (*avx2_pcmp<mode>3_4): Ditto.
3908 (*avx2_pcmp<mode>3_5): Ditto.
3909
3910 2021-06-28 liuhongt <hongtao.liu@intel.com>
3911
3912 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
3913 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
3914 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
3915 IX86_BUILTIN_PBLENDVB128): Replace icode with
3916 CODE_FOR_nothing.
3917 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
3918 builtins.
3919 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
3920 New pre_reload splitter.
3921
3922 2021-06-27 Andrew Pinski <apinski@marvell.com>
3923
3924 PR middle-end/101230
3925 * fold-const.c (fold_ternary_loc): Check
3926 the return value of invert_tree_comparison.
3927
3928 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
3929
3930 * config.gcc: Add SPDX License Identifier.
3931 (powerpc-ibm-aix789): Default to aix73.h.
3932 (powerpc-ibm-aix7.2.*.*): New stanza.
3933 * config/rs6000/aix72.h: Add SPDX License Identifier.
3934 * config/rs6000/aix73.h: New file.
3935
3936 2021-06-26 Jason Merrill <jason@redhat.com>
3937
3938 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
3939
3940 2021-06-26 Andrew Pinski <apinski@marvell.com>
3941
3942 * genmatch.c (lower_cond): Copy for_subst_vec
3943 for the simplify also.
3944 (lower): Swap the order for lower_for and lower_cond.
3945
3946 2021-06-26 Andrew Pinski <apinski@marvell.com>
3947
3948 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
3949 flow senatitive info on the moved ssa set.
3950
3951 2021-06-26 Andrew Pinski <apinski@marvell.com>
3952
3953 * fold-const.c (fold_cond_expr_with_comparison):
3954 Exand arg0 into comp_code, arg00, and arg01.
3955 (fold_ternary_loc): Use invert_tree_comparison
3956 instead of fold_invert_truthvalue for the case
3957 where we have A CMP B ? C : A.
3958
3959 2021-06-25 Martin Sebor <msebor@redhat.com>
3960
3961 PR middle-end/101216
3962 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
3963
3964 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
3965
3966 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
3967
3968 2021-06-25 Richard Biener <rguenther@suse.de>
3969
3970 PR tree-optimization/101202
3971 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
3972 failed nodes.
3973
3974 2021-06-25 Richard Biener <rguenther@suse.de>
3975
3976 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
3977 STMT_VINFO_REDUC_DEF from the original representative.
3978
3979 2021-06-25 Martin Sebor <msebor@redhat.com>
3980
3981 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
3982 gimple_no_warning_p and gimple_set_no_warning with
3983 warning_suppressed_p, and suppress_warning.
3984 (c_strlen): Same.
3985 (maybe_warn_for_bound): Same.
3986 (warn_for_access): Same.
3987 (check_access): Same.
3988 (expand_builtin_strncmp): Same.
3989 (fold_builtin_varargs): Same.
3990 * calls.c (maybe_warn_nonstring_arg): Same.
3991 (maybe_warn_rdwr_sizes): Same.
3992 * cfgexpand.c (expand_call_stmt): Same.
3993 * cgraphunit.c (check_global_declaration): Same.
3994 * fold-const.c (fold_undefer_overflow_warnings): Same.
3995 (fold_truth_not_expr): Same.
3996 (fold_unary_loc): Same.
3997 (fold_checksum_tree): Same.
3998 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
3999 (array_bounds_checker::check_mem_ref): Same.
4000 (array_bounds_checker::check_addr_expr): Same.
4001 (array_bounds_checker::check_array_bounds): Same.
4002 * gimple-expr.c (copy_var_decl): Same.
4003 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
4004 (gimple_fold_builtin_strncat): Same.
4005 (gimple_fold_builtin_stxcpy_chk): Same.
4006 (gimple_fold_builtin_stpcpy): Same.
4007 (gimple_fold_builtin_sprintf): Same.
4008 (fold_stmt_1): Same.
4009 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
4010 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
4011 * gimple-ssa-sprintf.c (handle_printf_call): Same.
4012 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
4013 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
4014 * gimple-ssa-warn-restrict.h: Adjust declarations.
4015 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
4016 gimple_no_warning_p and gimple_set_no_warning with
4017 warning_suppressed_p, and suppress_warning.
4018 (check_call): Same.
4019 (check_bounds_or_overlap): Same.
4020 * gimple.c (gimple_build_call_from_tree): Same.
4021 * gimplify.c (gimplify_return_expr): Same.
4022 (gimplify_cond_expr): Same.
4023 (gimplify_modify_expr_complex_part): Same.
4024 (gimplify_modify_expr): Same.
4025 (gimple_push_cleanup): Same.
4026 (gimplify_expr): Same.
4027 * omp-expand.c (expand_omp_for_generic): Same.
4028 (expand_omp_taskloop_for_outer): Same.
4029 * omp-low.c (lower_rec_input_clauses): Same.
4030 (lower_lastprivate_clauses): Same.
4031 (lower_send_clauses): Same.
4032 (lower_omp_target): Same.
4033 * tree-cfg.c (pass_warn_function_return::execute): Same.
4034 * tree-complex.c (create_one_component_var): Same.
4035 * tree-inline.c (remap_gimple_op_r): Same.
4036 (copy_tree_body_r): Same.
4037 (declare_return_variable): Same.
4038 (expand_call_inline): Same.
4039 * tree-nested.c (lookup_field_for_decl): Same.
4040 * tree-sra.c (create_access_replacement): Same.
4041 (generate_subtree_copies): Same.
4042 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
4043 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
4044 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
4045 * tree-ssa-loop-im.c (execute_sm): Same.
4046 * tree-ssa-phiopt.c (cond_store_replacement): Same.
4047 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
4048 (handle_builtin_strcpy): Same.
4049 (maybe_diag_stxncpy_trunc): Same.
4050 (handle_builtin_stxncpy_strncat): Same.
4051 (handle_builtin_strcat): Same.
4052 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
4053 (set_no_uninit_warning): Same.
4054 (uninit_undefined_value_p): Same.
4055 (warn_uninit): Same.
4056 (maybe_warn_operand): Same.
4057 * tree-vrp.c (compare_values_warnv): Same.
4058 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
4059 (test_for_singularity): Same.
4060 * gimple.h (warning_suppressed_p): New function.
4061 (suppress_warning): Same.
4062 (copy_no_warning): Same.
4063 (gimple_set_block): Call gimple_set_location.
4064 (gimple_set_location): Call copy_warning.
4065
4066 2021-06-25 Martin Sebor <msebor@redhat.com>
4067
4068 * tree.h (warning_suppressed_at, copy_warning,
4069 warning_suppressed_p, suppress_warning): New functions.
4070
4071 2021-06-25 Martin Sebor <msebor@redhat.com>
4072
4073 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
4074 * gengtype.c (open_base_files): Add diagnostic-spec.h.
4075 * diagnostic-spec.c: New file.
4076 * diagnostic-spec.h: New file.
4077 * tree.h (no_warning, all_warnings, suppress_warning_at): New
4078 declarations.
4079 * warning-control.cc: New file.
4080
4081 2021-06-25 liuhongt <hongtao.liu@intel.com>
4082
4083 PR target/101185
4084 * config/i386/i386.c (x86_order_regs_for_local_alloc):
4085 Revert r12-1669.
4086
4087 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
4088
4089 PR tree-optimization/101189
4090 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
4091 LHS range of condition to postfold routine.
4092 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
4093 FALSE edge if the LHS range supports it being taken.
4094 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
4095
4096 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
4097
4098 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
4099 (relation_oracle::find_relation_block): Check correct bitmap.
4100 (relation_oracle::dump): Do not dump NULL blocks.
4101
4102 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
4103
4104 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
4105 range_on_edge instead of manually calculating.
4106
4107 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
4108
4109 * range-op.cc: Fix comment.
4110
4111 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
4112
4113 PR target/89021
4114 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
4115 Handle V8QI and V4HI modes.
4116 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
4117 New insn pattern.
4118 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
4119 (mmxpackmode): New mode attribute.
4120 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
4121 (mmxunpackmode): New mode attribute.
4122 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
4123 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
4124 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
4125 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
4126 * config/i386/i386.md (extsuffix): Move from ...
4127 * config/i386/sse.md: ... here.
4128
4129 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
4130
4131 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
4132 (dwarf2out_finish): ...instead of here.
4133
4134 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
4135
4136 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
4137 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
4138 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
4139 * configure: Regenerate.
4140
4141 2021-06-24 Richard Biener <rguenther@suse.de>
4142
4143 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
4144 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
4145 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
4146
4147 2021-06-24 Richard Biener <rguenther@suse.de>
4148
4149 * config/i386/sse.md (avx_addsubv4df3): Rename to
4150 vec_addsubv4df3.
4151 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
4152 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
4153 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
4154 * config/i386/i386-builtin.def: Adjust.
4155 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
4156 * optabs.def (vec_addsub_optab): New optab.
4157 * tree-vect-slp-patterns.c (class addsub_pattern): New.
4158 (slp_patterns): Add addsub_pattern.
4159 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
4160 across CFN_VEC_ADDSUB.
4161 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
4162 m_ops optional.
4163 * doc/md.texi (vec_addsub<mode>3): Document.
4164
4165 2021-06-24 Jakub Jelinek <jakub@redhat.com>
4166
4167 PR middle-end/101170
4168 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
4169 where regno + subreg_regno_offset wraps around use 0 as starting
4170 regno.
4171
4172 2021-06-24 Jakub Jelinek <jakub@redhat.com>
4173
4174 PR middle-end/101172
4175 * stor-layout.c (finish_bitfield_representative): If nextf has
4176 error_mark_node type, set repr type to error_mark_node too.
4177
4178 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
4179
4180 * config/s390/s390.c (s390_function_profiler): Ignore labelno
4181 parameter.
4182 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
4183
4184 2021-06-24 Richard Biener <rguenther@suse.de>
4185
4186 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
4187 across operations that have different semantics on different
4188 lanes.
4189
4190 2021-06-24 Jakub Jelinek <jakub@redhat.com>
4191
4192 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
4193 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
4194 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
4195 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
4196 OMP_TARGET user outer_ctx instead of ctx for placeholders and
4197 initializer/combiner gimplification.
4198 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
4199 on target constructs.
4200 (lower_rec_input_clauses): Likewise.
4201 (lower_omp_target): Likewise.
4202 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
4203 on target if in_reduction is present.
4204
4205 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
4206
4207 * tree-predcom.c (class pcom_worker): New class.
4208 (release_chain): Renamed to...
4209 (pcom_worker::release_chain): ...this.
4210 (release_chains): Renamed to...
4211 (pcom_worker::release_chains): ...this.
4212 (aff_combination_dr_offset): Renamed to...
4213 (pcom_worker::aff_combination_dr_offset): ...this.
4214 (determine_offset): Renamed to...
4215 (pcom_worker::determine_offset): ...this.
4216 (class comp_ptrs): New class.
4217 (split_data_refs_to_components): Renamed to...
4218 (pcom_worker::split_data_refs_to_components): ...this,
4219 and update with class comp_ptrs.
4220 (suitable_component_p): Renamed to...
4221 (pcom_worker::suitable_component_p): ...this.
4222 (filter_suitable_components): Renamed to...
4223 (pcom_worker::filter_suitable_components): ...this.
4224 (valid_initializer_p): Renamed to...
4225 (pcom_worker::valid_initializer_p): ...this.
4226 (find_looparound_phi): Renamed to...
4227 (pcom_worker::find_looparound_phi): ...this.
4228 (add_looparound_copies): Renamed to...
4229 (pcom_worker::add_looparound_copies): ...this.
4230 (determine_roots_comp): Renamed to...
4231 (pcom_worker::determine_roots_comp): ...this.
4232 (determine_roots): Renamed to...
4233 (pcom_worker::determine_roots): ...this.
4234 (single_nonlooparound_use): Renamed to...
4235 (pcom_worker::single_nonlooparound_use): ...this.
4236 (remove_stmt): Renamed to...
4237 (pcom_worker::remove_stmt): ...this.
4238 (execute_pred_commoning_chain): Renamed to...
4239 (pcom_worker::execute_pred_commoning_chain): ...this.
4240 (execute_pred_commoning): Renamed to...
4241 (pcom_worker::execute_pred_commoning): ...this.
4242 (struct epcc_data): New member worker.
4243 (execute_pred_commoning_cbck): Call execute_pred_commoning
4244 with pcom_worker pointer.
4245 (find_use_stmt): Renamed to...
4246 (pcom_worker::find_use_stmt): ...this.
4247 (find_associative_operation_root): Renamed to...
4248 (pcom_worker::find_associative_operation_root): ...this.
4249 (find_common_use_stmt): Renamed to...
4250 (pcom_worker::find_common_use_stmt): ...this.
4251 (combinable_refs_p): Renamed to...
4252 (pcom_worker::combinable_refs_p): ...this.
4253 (reassociate_to_the_same_stmt): Renamed to...
4254 (pcom_worker::reassociate_to_the_same_stmt): ...this.
4255 (stmt_combining_refs): Renamed to...
4256 (pcom_worker::stmt_combining_refs): ...this.
4257 (combine_chains): Renamed to...
4258 (pcom_worker::combine_chains): ...this.
4259 (try_combine_chains): Renamed to...
4260 (pcom_worker::try_combine_chains): ...this.
4261 (prepare_initializers_chain): Renamed to...
4262 (pcom_worker::prepare_initializers_chain): ...this.
4263 (prepare_initializers): Renamed to...
4264 (pcom_worker::prepare_initializers): ...this.
4265 (prepare_finalizers_chain): Renamed to...
4266 (pcom_worker::prepare_finalizers_chain): ...this.
4267 (prepare_finalizers): Renamed to...
4268 (pcom_worker::prepare_finalizers): ...this.
4269 (tree_predictive_commoning_loop): Renamed to...
4270 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
4271 some calls and remove some cleanup code.
4272 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
4273 (static variable looparound_phis): Remove.
4274 (static variable name_expansions): Remove.
4275
4276 2021-06-24 Richard Biener <rguenther@suse.de>
4277
4278 * tree-vect-slp.c (slpg_vertex): New struct.
4279 (vect_slp_build_vertices): Adjust.
4280 (vect_optimize_slp): Likewise. Maintain an outgoing permute
4281 and a materialized one.
4282
4283 2021-06-24 Richard Biener <rguenther@suse.de>
4284
4285 PR tree-optimization/101105
4286 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4287 Only ignore steps when they are equal or scalar order is preserved.
4288
4289 2021-06-24 liuhongt <hongtao.liu@intel.com>
4290
4291 PR target/98434
4292 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
4293 Adjust comments for ix86_expand_vecop_qihi2.
4294 (ix86_expand_vecmul_qihi): Renamed to ..
4295 (ix86_expand_vecop_qihi2): Adjust function prototype to
4296 support shift operation, add static to definition.
4297 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
4298 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
4299 ix86_expand_vec_shift_qihi_constant.
4300 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
4301 (ix86_expand_vec_shift_qihi_constant): Deleted.
4302 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
4303 iterator.
4304 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
4305 condition TARGET_64BIT.
4306 (mul<mode>3): Ditto.
4307 (<insn><mode>3): Ditto.
4308 (vlshr<mode>3): Extend to support avx512 vlshr.
4309 (v<insn><mode>3): New expander for
4310 vashr/vlshr/vashl.
4311 (v<insn>v8qi3): Ditto.
4312 (vashrv8hi3<mask_name>): Renamed to ..
4313 (vashr<mode>3): And extend to support V16QImode for avx512.
4314 (vashrv16qi3): Deleted.
4315 (vashrv2di3<mask_name>): Extend expander to support avx512
4316 instruction.
4317
4318 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
4319
4320 * doc/lto.texi (Design Overview): Update that slim objects are
4321 the default.
4322
4323 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
4324
4325 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
4326 of OTHER_POWER10_MASKS so it will not be enabled by default.
4327
4328 2021-06-23 Richard Biener <rguenther@suse.de>
4329 Martin Jambor <mjambor@suse.cz>
4330
4331 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
4332 param replacement unconditionally. Adjust comment.
4333
4334 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
4335
4336 * Makefile.in (OBJS): Add gimple-range-fold.o
4337 * gimple-range-fold.cc: New.
4338 * gimple-range-fold.h: New.
4339 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
4340 (gimple_range_calc_op2): Ditto.
4341 * gimple-range-gori.h: Move prototypes to here.
4342 * gimple-range.cc: Adjust include files.
4343 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
4344 (fur_source::get_operand): Ditto.
4345 (fur_source::get_phi_operand): Ditto.
4346 (fur_source::query_relation): Ditto.
4347 (fur_source::register_relation): Ditto.
4348 (class fur_edge): Ditto.
4349 (fur_edge::fur_edge): Ditto.
4350 (fur_edge::get_operand): Ditto.
4351 (fur_edge::get_phi_operand): Ditto.
4352 (fur_stmt::fur_stmt): Ditto.
4353 (fur_stmt::get_operand): Ditto.
4354 (fur_stmt::get_phi_operand): Ditto.
4355 (fur_stmt::query_relation): Ditto.
4356 (class fur_depend): Relocate to gimple-range-fold.h.
4357 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
4358 (fur_depend::register_relation): Ditto.
4359 (fur_depend::register_relation): Ditto.
4360 (class fur_list): Ditto.
4361 (fur_list::fur_list): Ditto.
4362 (fur_list::get_operand): Ditto.
4363 (fur_list::get_phi_operand): Ditto.
4364 (fold_range): Ditto.
4365 (adjust_pointer_diff_expr): Ditto.
4366 (gimple_range_adjustment): Ditto.
4367 (gimple_range_base_of_assignment): Ditto.
4368 (gimple_range_operand1): Ditto.
4369 (gimple_range_operand2): Ditto.
4370 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
4371 (gimple_range_calc_op2): Ditto.
4372 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
4373 (fold_using_range::range_of_range_op): Ditto.
4374 (fold_using_range::range_of_address): Ditto.
4375 (fold_using_range::range_of_phi): Ditto.
4376 (fold_using_range::range_of_call): Ditto.
4377 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
4378 (fold_using_range::range_of_builtin_call): Ditto.
4379 (fold_using_range::range_of_cond_expr): Ditto.
4380 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
4381 (fold_using_range::relation_fold_and_or): Ditto.
4382 (fold_using_range::postfold_gcond_edges): Ditto.
4383 * gimple-range.h: Add gimple-range-fold.h to include files. Change
4384 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
4385 (gimple_range_handler): Relocate to gimple-range-fold.h.
4386 (gimple_range_ssa_p): Ditto.
4387 (range_compatible_p): Ditto.
4388 (class fur_source): Ditto.
4389 (class fur_stmt): Ditto.
4390 (class fold_using_range): Ditto.
4391 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
4392 (gimple_range_calc_op2): Ditto.
4393
4394 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
4395
4396 PR tree-optimization/101148
4397 PR tree-optimization/101014
4398 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
4399 (ranger_cache::~ranger_cache): Adjust.
4400 (ranger_cache::block_range): Check if propagation disallowed.
4401 (ranger_cache::propagate_cache): Disallow propagation if new value
4402 can't be stored properly.
4403 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
4404
4405 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
4406
4407 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
4408 (sbr_vector::set_bb_range): Return true.
4409 (class sbr_sparse_bitmap): Adjust.
4410 (sbr_sparse_bitmap::set_bb_range): Return value.
4411 (block_range_cache::set_bb_range): Return value.
4412 (ranger_cache::propagate_cache): Use return value to print msg.
4413 * gimple-range-cache.h (class block_range_cache): Adjust.
4414
4415 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
4416
4417 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
4418
4419 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
4420
4421 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
4422 so this pattern can be used for test/compare removal. Pass
4423 current insn to compute_logical_op_length and output_logical_op.
4424 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
4425 (h8300_and_costs): Add argument to compute_logical_op_length.
4426 (output_logical_op): Add new argument. Use it to determine if the
4427 condition codes are used and adjust the output accordingly.
4428 (compute_logical_op_length): Add new argument and update length
4429 computations when condition codes are used.
4430 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
4431 prototype.
4432 (output_logical_op): Likewise.
4433
4434 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
4435
4436 PR target/89021
4437 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
4438 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
4439 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
4440 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
4441 * config/i386/sse.md (unspec): ... here.
4442
4443 2021-06-23 Martin Liska <mliska@suse.cz>
4444
4445 PR target/98636
4446 * optc-save-gen.awk: Put back arm_fp16_format to
4447 checked_options.
4448
4449 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
4450
4451 PR target/101175
4452 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
4453 (bsr): Ditto.
4454 (*bsrhi): Remove.
4455 (clz<mode>2): Update RTX pattern for additions.
4456
4457 2021-06-23 Jakub Jelinek <jakub@redhat.com>
4458
4459 PR middle-end/101167
4460 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
4461 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
4462
4463 2021-06-22 Sergei Trofimovich <siarheit@google.com>
4464
4465 * doc/rtl.texi: drop unbalanced parenthesis.
4466
4467 2021-06-22 Richard Biener <rguenther@suse.de>
4468
4469 PR middle-end/101156
4470 * gimplify.c (gimplify_expr): Remove premature incorrect
4471 optimization.
4472
4473 2021-06-22 Jakub Jelinek <jakub@redhat.com>
4474
4475 PR tree-optimization/101159
4476 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
4477 comment typos.
4478
4479 2021-06-22 Jakub Jelinek <jakub@redhat.com>
4480
4481 PR middle-end/101160
4482 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
4483 clear crtl->return_rtx instead of keeping it referencing a pseudo.
4484
4485 2021-06-22 Jakub Jelinek <jakub@redhat.com>
4486 Andrew Pinski <apinski@marvell.com>
4487
4488 PR tree-optimization/101162
4489 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
4490 types.
4491
4492 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
4493
4494 * range-op.cc (range_relational_tests): New.
4495 (range_op_tests): Call range_relational_tests.
4496
4497 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
4498
4499 * range-op.cc (operator_cast::lhs_op1_relation): New.
4500 (operator_identity::lhs_op1_relation): Mew.
4501
4502 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
4503
4504 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
4505
4506 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
4507
4508 * range-op.cc (operator_plus::lhs_op1_relation): New.
4509 (operator_plus::lhs_op2_relation): New.
4510
4511 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
4512
4513 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
4514 relation_oracle if dominators exist.
4515 (ranger_cache::~ranger_cache): Dispose of oracle.
4516 (ranger_cache::dump_bb): Dump oracle.
4517 * gimple-range.cc (fur_source::fur_source): New.
4518 (fur_source::get_operand): Use mmeber query.
4519 (fur_source::get_phi_operand): Use member_query.
4520 (fur_source::query_relation): New.
4521 (fur_source::register_dependency): Delete.
4522 (fur_source::register_relation): New.
4523 (fur_edge::fur_edge): Adjust.
4524 (fur_edge::get_phi_operand): Fix comment.
4525 (fur_edge::query): Delete.
4526 (fur_stmt::fur_stmt): Adjust.
4527 (fur_stmt::query): Delete.
4528 (fur_depend::fur_depend): Adjust.
4529 (fur_depend::register_relation): New.
4530 (fur_depend::register_relation): New.
4531 (fur_list::fur_list): Adjust.
4532 (fur_list::get_operand): Use member query.
4533 (fold_using_range::range_of_range_op): Process and query relations.
4534 (fold_using_range::range_of_address): Adjust dependency call.
4535 (fold_using_range::range_of_phi): Ditto.
4536 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
4537 (fold_using_range::relation_fold_and_or): New.
4538 (fold_using_range::postfold_gcond_edges): New.
4539 * gimple-range.h (class gimple_ranger): Adjust.
4540 (class fur_source): Adjust members.
4541 (class fur_stmt): Ditto.
4542 (class fold_using_range): Ditto.
4543
4544 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
4545
4546 * range-op.cc (range_operator::wi_fold): Apply relation effect.
4547 (range_operator::fold_range): Adjust and apply relation effect.
4548 (*::fold_range): Add relation parameters.
4549 (*::op1_range): Ditto.
4550 (*::op2_range): Ditto.
4551 (range_operator::lhs_op1_relation): New.
4552 (range_operator::lhs_op2_relation): New.
4553 (range_operator::op1_op2_relation): New.
4554 (range_operator::op1_op2_relation_effect): New.
4555 (relop_early_resolve): New.
4556 (operator_equal::op1_op2_relation): New.
4557 (operator_equal::fold_range): Call relop_early_resolve.
4558 (operator_not_equal::op1_op2_relation): New.
4559 (operator_not_equal::fold_range): Call relop_early_resolve.
4560 (operator_lt::op1_op2_relation): New.
4561 (operator_lt::fold_range): Call relop_early_resolve.
4562 (operator_le::op1_op2_relation): New.
4563 (operator_le::fold_range): Call relop_early_resolve.
4564 (operator_gt::op1_op2_relation): New.
4565 (operator_gt::fold_range): Call relop_early_resolve.
4566 (operator_ge::op1_op2_relation): New.
4567 (operator_ge::fold_range): Call relop_early_resolve.
4568 * range-op.h (class range_operator): Adjust parameters and methods.
4569
4570 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
4571
4572 * Makefile.in (OBJS): Add value-relation.o.
4573 * gimple-range.h: Adjust include files.
4574 * tree-data-ref.c: Adjust include file order.
4575 * value-query.cc (range_query::get_value_range): Default to no oracle.
4576 (range_query::query_relation): New.
4577 (range_query::query_relation): New.
4578 * value-query.h (class range_query): Adjust.
4579 * value-relation.cc: New.
4580 * value-relation.h: New.
4581
4582 2021-06-22 Richard Biener <rguenther@suse.de>
4583
4584 PR tree-optimization/101151
4585 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
4586 region check.
4587
4588 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
4589
4590 * config/riscv/riscv.c (thead_c906_tune_info): New.
4591 (riscv_tune_info_table): Use new tune.
4592
4593 2021-06-22 Richard Biener <rguenther@suse.de>
4594
4595 PR tree-optimization/101158
4596 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
4597 checking after checking for matching operation.
4598
4599 2021-06-22 Richard Biener <rguenther@suse.de>
4600
4601 PR tree-optimization/101159
4602 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
4603 missing NULL vectype check.
4604
4605 2021-06-22 Richard Biener <rguenther@suse.de>
4606
4607 PR tree-optimization/101154
4608 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
4609
4610 2021-06-22 Jakub Jelinek <jakub@redhat.com>
4611
4612 PR target/11877
4613 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
4614 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
4615 * config/i386/i386.c (ix86_expand_prologue): Clear it.
4616 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
4617 Remove "" from match_operand. Emit new insns using emit_move_insn and
4618 set ix86_last_zero_store_uid to INSN_UID of the last store.
4619 Add peephole2s for 1/2/4 stores of const0_rtx following previous
4620 successful peep2s.
4621
4622 2021-06-22 Martin Liska <mliska@suse.cz>
4623
4624 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
4625 was changed.
4626
4627 2021-06-22 Martin Liska <mliska@suse.cz>
4628
4629 * gcov-io.h: Remove padding entries.
4630
4631 2021-06-22 liuhongt <hongtao.liu@intel.com>
4632
4633 PR tree-optimization/97770
4634 * tree-vect-patterns.c (vect_recog_popcount_pattern):
4635 New.
4636 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
4637
4638 2021-06-22 liuhongt <hongtao.liu@intel.com>
4639
4640 PR target/100267
4641 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
4642 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
4643 (expand<mode>_mask): this ..
4644 (*expand<mode>_mask): New pre_reload splitter to transform
4645 v{,p}expand* to vmov* when mask is zero, all ones, or has all
4646 ones in it's lower part, otherwise still generate
4647 v{,p}expand*.
4648
4649 2021-06-22 liuhongt <hongtao.liu@intel.com>
4650
4651 PR target/100310
4652 * config/i386/i386-expand.c
4653 (ix86_expand_special_args_builtin): Keep constm1_operand only
4654 if it satisfies insn's operand predicate.
4655
4656 2021-06-21 Jason Merrill <jason@redhat.com>
4657
4658 PR target/88529
4659 * df-scan.c (df_ref_record): Check that regno < endregno.
4660 * function.c (assign_parms, expand_function_end): Do nothing with a
4661 TYPE_EMPTY_P result.
4662
4663 2021-06-21 Richard Biener <rguenther@suse.de>
4664
4665 PR tree-optimization/101120
4666 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
4667 built increment.
4668 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
4669 DR chain DCE capability.
4670 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
4671 * tree-vect-stmts.c (vectorizable_load): Remove unused
4672 loads in the DR chain for SLP.
4673
4674 2021-06-21 Jakub Jelinek <jakub@redhat.com>
4675
4676 PR inline-asm/100785
4677 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
4678 output or input operands were already error_mark_node.
4679 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
4680 remove all inputs, outputs and clobbers from the asm and
4681 set template to "".
4682
4683 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
4684
4685 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
4686 (vceq_s16): Likewise.
4687 (vceq_s32): Likewise.
4688 (vceq_u8): Likewise.
4689 (vceq_u16): Likewise.
4690 (vceq_u32): Likewise.
4691 (vceq_p8): Likewise.
4692 (vceqq_s8): Likewise.
4693 (vceqq_s16): Likewise.
4694 (vceqq_s32): Likewise.
4695 (vceqq_u8): Likewise.
4696 (vceqq_u16): Likewise.
4697 (vceqq_u32): Likewise.
4698 (vceqq_p8): Likewise.
4699 (vceq_f32): Gate __a == __b on __FAST_MATH__.
4700 (vceqq_f32): Likewise.
4701 (vceq_f16): Likewise.
4702 (vceqq_f16): Likewise.
4703
4704 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
4705
4706 PR target/97906
4707 * config/arm/iterators.md (NEON_VACMP): Remove.
4708 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
4709 iterator.
4710 (neon_vca<cmp_op><mode>_insn): Likewise.
4711 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
4712 NEON_VACMP.
4713
4714 2021-06-21 Richard Biener <rguenther@suse.de>
4715
4716 PR tree-optimization/101121
4717 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
4718 when we just lack a stmt with the desired op when doing permutation.
4719 (vect_build_slp_tree): When caching a failed SLP build attempt
4720 assert that at least one lane is marked as not matching.
4721
4722 2021-06-21 liuhongt <hongtao.liu@intel.com>
4723
4724 PR target/101142
4725 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
4726 register alternative.
4727 (*and<mode>_1): Ditto.
4728 (*andqi_1): Ditto.
4729 (*andn<mode>_1): Ditto.
4730 (*<code><mode>_1): Ditto.
4731 (*<code>qi_1): Ditto.
4732 (*one_cmpl<mode>2_1): Ditto.
4733 (*one_cmplsi2_1_zext): Ditto.
4734 (*one_cmplqi2_1): Ditto.
4735 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
4736 the order of mask registers to be before general registers.
4737
4738 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
4739
4740 PR target/11877
4741 * config/i386/i386.md: New define_peephole2s to shrink writing
4742 1, 2 or 4 consecutive zeros to memory when optimizing for size.
4743
4744 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
4745
4746 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
4747 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
4748 more efficient code when the source can be trivially simplified.
4749
4750 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
4751
4752 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
4753 a range if global is not available.
4754 (ranger_cache::entry_range): Fallback to range_of_def.
4755 * gimple-range-cache.h (range_of_def): Adjust prototype.
4756
4757 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
4758
4759 PR tree-optimization/101014
4760 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
4761 value list.
4762 (ranger_cache::~ranger_cache): Ditto.
4763 (ranger_cache::enable_new_values): Delete.
4764 (ranger_cache::push_poor_value): Delete.
4765 (ranger_cache::range_of_def): Remove poor value processing.
4766 (ranger_cache::entry_range): Ditto.
4767 (ranger_cache::fill_block_cache): Ditto.
4768 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
4769 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
4770 * gimple-range.h (class gimple_ranger): Adjust.
4771
4772 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4773
4774 PR target/100856
4775 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
4776 derived from arm_canon_arch.
4777 (arm_canon_arch_option): Call it.
4778 (arm_canon_arch_multilib_option): New function.
4779 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
4780 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
4781 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
4782 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
4783 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
4784 * config/arm/arm.opt (mlibarch): New option.
4785 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
4786 of march on RHS with mlibarch.
4787
4788 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
4789
4790 * config.in: Regenerate.
4791 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
4792 functions.
4793 * configure: Regenerate.
4794 * configure.ac: Fix for global_load assembler functions.
4795
4796 2021-06-18 Richard Biener <rguenther@suse.de>
4797
4798 PR tree-optimization/101112
4799 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
4800 to lookup a pattern stmt def.
4801
4802 2021-06-18 Jakub Jelinek <jakub@redhat.com>
4803
4804 PR middle-end/101062
4805 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
4806 representatives in QUAL_UNION_TYPE.
4807
4808 2021-06-18 Andrew Pinski <apinski@marvell.com>
4809
4810 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
4811 Add counting of how many times it is done.
4812 (factor_out_conditional_conversion): Likewise.
4813 (match_simplify_replacement): Likewise.
4814 (value_replacement): Likewise.
4815 (spaceship_replacement): Likewise.
4816 (cond_store_replacement): Likewise.
4817 (cond_if_else_store_replacement_1): Likewise.
4818 (hoist_adjacent_loads): Likewise.
4819
4820 2021-06-18 Andrew Pinski <apinski@marvell.com>
4821
4822 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
4823 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
4824 (verify_gimple_assign_binary): Reject point and offset types on
4825 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
4826 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
4827 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
4828
4829 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
4830
4831 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
4832 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
4833 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
4834 New insns.
4835
4836 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
4837
4838 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
4839 earlyclobber to alts 0/1.
4840 (gen_addadd): Add earlyclobber to alts 0/1.
4841 * config/rs6000/fusion.md: Regenerate file.
4842
4843 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
4844
4845 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
4846
4847 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
4848
4849 * gimple-range-cache.cc: Comment cleanups.
4850 * gimple-range-gori.cc: Comment cleanups.
4851 * gimple-range.cc: Comment/spacing cleanups
4852 * value-range.h: Comment cleanups.
4853
4854 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
4855
4856 PR target/100704
4857 * calls.c (expand_call): Replace PUSH_ARGS with
4858 targetm.calls.push_argument (0).
4859 (emit_library_call_value_1): Likewise.
4860 * defaults.h (PUSH_ARGS): Removed.
4861 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
4862 targetm.calls.push_argument (0).
4863 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4864 (emit_push_insn): Pass the number bytes to push to
4865 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
4866 * hooks.c (hook_bool_uint_true): New.
4867 * hooks.h (hook_bool_uint_true): Likewise.
4868 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
4869 targetm.calls.push_argument (0).
4870 * target.def (push_argument): Add a targetm.calls hook.
4871 * targhooks.c (default_push_argument): New.
4872 * targhooks.h (default_push_argument): Likewise.
4873 * config/bpf/bpf.h (PUSH_ARGS): Removed.
4874 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
4875 * config/cr16/cr16.h (PUSH_ARGS): Removed.
4876 * config/i386/i386.c (ix86_push_argument): New.
4877 (TARGET_PUSH_ARGUMENT): Likewise.
4878 * config/i386/i386.h (PUSH_ARGS): Removed.
4879 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
4880 * config/m32c/m32c.h (PUSH_ARGS): Removed.
4881 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
4882 * config/pru/pru.h (PUSH_ARGS): Likewise.
4883 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
4884 TARGET_PUSH_ARGUMENT hook.
4885 * doc/tm.texi: Regenerated.
4886
4887 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
4888
4889 PR target/97194
4890 * config/i386/i386-expand.c (expand_vector_set_var):
4891 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
4892 ix86_expand_vector_init_duplicate.
4893 (ix86_expand_vector_init_duplicate): Emit insv_1 for
4894 QImode for !TARGET_PARTIAL_REG_STALL.
4895 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
4896 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
4897 as operand 2 predicate. Call ix86_expand_vector_set_var
4898 for non-constant index operand.
4899 (vec_setv2si): Ditto.
4900 (vec_setv4hi): Ditto.
4901 (vec_setv8qi): ditto.
4902
4903 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
4904
4905 PR tree-optimization/100790
4906 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
4907 code.
4908
4909 2021-06-17 Martin Liska <mliska@suse.cz>
4910
4911 * doc/invoke.texi: Use consistently -O1 instead of -O.
4912
4913 2021-06-17 Martin Liska <mliska@suse.cz>
4914
4915 * gcov-io.h: Update documentation entry about string format.
4916
4917 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
4918
4919 PR target/100871
4920 * config/s390/vecintrin.h (vec_doublee): Fix to use
4921 __builtin_s390_vflls.
4922 (vec_floate): Fix to use __builtin_s390_vflrd.
4923
4924 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
4925
4926 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
4927 * dominance.h (get_dominated_to_depth): Likewise.
4928 (get_all_dominated_blocks): Likewise.
4929 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
4930 * gcse.c (hoist_code): Likewise.
4931 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
4932 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
4933 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
4934 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
4935
4936 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
4937
4938 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
4939 * dominance.h (get_dominated_by_region): Likewise.
4940 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
4941 (gimple_duplicate_sese_tail): Likewise.
4942 (move_sese_region_to_fn): Likewise.
4943
4944 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
4945
4946 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
4947 * dominance.h (get_dominated_by): Likewise.
4948 * auto-profile.c (afdo_find_equiv_class): Adjust.
4949 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
4950 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
4951 * tree-cfg.c (test_linear_chain): Likewise.
4952 (test_diamond): Likewise.
4953
4954 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
4955
4956 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
4957 * cfgloopanal.c (get_loop_hot_path): Likewise.
4958 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
4959
4960 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
4961
4962 * cgraph.c (cgraph_node::collect_callers): Return
4963 auto_vec<cgraph_edge *>.
4964 * cgraph.h (cgraph_node::collect_callers): Likewise.
4965 * ipa-cp.c (create_specialized_node): Adjust.
4966 (decide_about_value): Likewise.
4967 (decide_whether_version_node): Likewise.
4968 * ipa-sra.c (process_isra_node_results): Likewise.
4969
4970 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
4971
4972 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
4973 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
4974 constructor.
4975 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
4976 assignment.
4977
4978 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
4979
4980 * gimple-range.cc (debug_seed_ranger): New.
4981 (dump_ranger): New.
4982 (debug_ranger): New.
4983
4984 2021-06-17 Richard Biener <rguenther@suse.de>
4985
4986 PR tree-optimization/54400
4987 * tree-vectorizer.h (enum slp_instance_kind): Add
4988 slp_inst_kind_bb_reduc.
4989 (reduction_fn_for_scalar_code): Declare.
4990 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
4991 Check SLP_INSTANCE_KIND instead of looking at the
4992 representative.
4993 (vect_slp_analyze_instance_alignment): Likewise.
4994 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
4995 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
4996 chain linearization from vect_build_slp_tree_2 and generalize
4997 for the use of BB reduction vectorization.
4998 (vect_build_slp_tree_2): Adjust accordingly.
4999 (vect_optimize_slp): Elide permutes at the root of BB reduction
5000 instances.
5001 (vectorizable_bb_reduc_epilogue): New function.
5002 (vect_slp_prune_covered_roots): Likewise.
5003 (vect_slp_analyze_operations): Use them.
5004 (vect_slp_check_for_constructors): Recognize associatable
5005 chains for BB reduction vectorization.
5006 (vectorize_slp_instance_root_stmt): Generate code for the
5007 BB reduction epilogue.
5008
5009 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
5010
5011 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
5012 may_recompute_p.
5013 (gori_compute::may_recompute_p): New.
5014 (gori_compute::outgoing_edge_range_p): Perform recomputations.
5015 * gimple-range-gori.h (class gori_compute): Add prototype.
5016
5017 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
5018
5019 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
5020 true when a range can be calculated.
5021 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
5022
5023 2021-06-16 Martin Sebor <msebor@redhat.com>
5024
5025 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
5026 Correct documented defaults.
5027
5028 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
5029
5030 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
5031 m_new_value_p directly.
5032
5033 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
5034
5035 PR target/89021
5036 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
5037 Handle 64bit modes for TARGET_SSE4_1.
5038 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
5039 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
5040 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
5041 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
5042 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
5043 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
5044
5045 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
5046
5047 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
5048 Change to an expander that emits the correct instruction
5049 depending on endianness.
5050 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
5051 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
5052
5053 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
5054
5055 * config/aarch64/aarch64-simd-builtins.def: Split generator
5056 for aarch64_<su>qmovn builtins into scalar and vector
5057 variants.
5058 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
5059 Define.
5060 (aarch64_<su>qmovn<mode>_insn_be): Define.
5061 (aarch64_<su>qmovn<mode>): Split into scalar and vector
5062 variants. Change vector variant to an expander that emits the
5063 correct instruction depending on endianness.
5064
5065 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
5066
5067 * config/aarch64/aarch64-simd-builtins.def: Split generator
5068 for aarch64_sqmovun builtins into scalar and vector variants.
5069 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
5070 Split into scalar and vector variants. Change vector variant
5071 to an expander that emits the correct instruction depending
5072 on endianness.
5073 (aarch64_sqmovun<mode>_insn_le): Define.
5074 (aarch64_sqmovun<mode>_insn_be): Define.
5075
5076 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
5077
5078 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
5079 Define - modeling zero-high-half semantics.
5080 (aarch64_xtn<mode>): Change to an expander that emits the
5081 appropriate instruction depending on endianness.
5082 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
5083 semantics.
5084 (aarch64_xtn2<mode>_le): Rename to...
5085 (aarch64_xtn2<mode>_insn_le): This.
5086 (aarch64_xtn2<mode>_be): Rename to...
5087 (aarch64_xtn2<mode>_insn_be): This.
5088 (vec_pack_trunc_<mode>): Emit truncation instruction instead
5089 of aarch64_xtn.
5090 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
5091 attribute iterator.
5092
5093 2021-06-16 Martin Jambor <mjambor@suse.cz>
5094
5095 PR tree-optimization/100453
5096 * tree-sra.c (create_access): Disqualify any const candidates
5097 which are written to.
5098 (sra_modify_expr): Do not store sub-replacements back to a const base.
5099 (handle_unscalarized_data_in_subtree): Likewise.
5100 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
5101 instead of constant_decl_p.
5102
5103 2021-06-16 Jakub Jelinek <jakub@redhat.com>
5104
5105 PR middle-end/101062
5106 * stor-layout.c (finish_bitfield_representative): For fields in unions
5107 assume nextf is always NULL.
5108 (finish_bitfield_layout): Compute bit field representatives also in
5109 unions, but handle it as if each bitfield was the only field in the
5110 aggregate.
5111
5112 2021-06-16 Richard Biener <rguenther@suse.de>
5113
5114 PR tree-optimization/101088
5115 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
5116 supported refs on edges. Do not assert same ref but
5117 different kind stores are unsuported but mark them so.
5118 (hoist_memory_references): Only look for supported refs
5119 on exits.
5120
5121 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
5122
5123 PR rtl-optimization/46235
5124 * config/i386/i386.md: New define_split for bt followed by cmov.
5125 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
5126 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
5127 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
5128 by setnc with zero extension.
5129
5130 2021-06-16 Richard Biener <rguenther@suse.de>
5131
5132 PR tree-optimization/101083
5133 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
5134 vectype as argument.
5135 (vect_build_slp_tree_2): Adjust.
5136
5137 2021-06-15 Martin Sebor <msebor@redhat.com>
5138
5139 PR middle-end/100876
5140 * builtins.c: (gimple_call_return_array): Account for size_t
5141 mangling as either unsigned int or unsigned long
5142
5143 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
5144
5145 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
5146 up before eliminating comparisons.
5147
5148 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
5149
5150 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
5151 nonzero|X is nonzero.
5152 (range_op_bitwise_and_tests): Add tests for above.
5153
5154 2021-06-15 Carl Love <cel@us.ibm.com>
5155
5156 PR target/101022
5157 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
5158 enum definition.
5159 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
5160 definitions.
5161
5162 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5163
5164 PR fortran/92568
5165 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
5166 (struct gimplify_omp_ctx): Extend defaultmap array by one.
5167 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
5168 (omp_notice_variable): Update type classification for Fortran.
5169 (gimplify_scan_omp_clauses): Update calls for new argument; handle
5170 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
5171 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
5172 * langhooks.c (lhd_omp_scalar_p): Likewise.
5173 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
5174 (LANG_HOOKS_DECLS): Add them.
5175 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
5176 omp_scalar_p pointer type to include the new bool argument.
5177
5178 2021-06-15 David Malcolm <dmalcolm@redhat.com>
5179
5180 * doc/analyzer.texi
5181 (Special Functions for Debugging the Analyzer): Add
5182 __analyzer_dump_capacity.
5183
5184 2021-06-15 Jakub Jelinek <jakub@redhat.com>
5185
5186 PR target/101046
5187 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
5188 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
5189
5190 2021-06-15 Richard Biener <rguenther@suse.de>
5191
5192 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
5193 check to identify loop latches.
5194 * cfgloop.c (verify_loop_structure): Likewise.
5195 * loop-init.c (apply_loop_flags): Allow marked irreducible
5196 regions even with multiple latches.
5197 * predict.c (rebuild_frequencies): Simplify.
5198
5199 2021-06-15 Richard Biener <rguenther@suse.de>
5200
5201 * tree-ssa-threadupdate.c
5202 (jump_thread_path_registry::mark_threaded_blocks): Assert we
5203 have marked irreducible regions.
5204
5205 2021-06-14 Martin Sebor <msebor@redhat.com>
5206
5207 PR c++/100876
5208 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
5209 Handle calls to placement new.
5210 (ndecl_dealloc_argno): Avoid placement delete.
5211
5212 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
5213
5214 PR target/100777
5215 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
5216 create_tmp_reg_or_ssa_name().
5217
5218 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
5219
5220 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
5221 (ranger_cache::enable_new_values): Set to specified value and
5222 return the old value.
5223 (ranger_cache::disable_new_values): Delete.
5224 (ranger_cache::fill_block_cache): Disable non 1st order derived
5225 poor values.
5226 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
5227 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
5228
5229 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
5230
5231 PR target/101058
5232 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
5233 Return true early when testing with V2HImode.
5234 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
5235
5236 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
5237
5238 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
5239 (mve_vec_unpack<US>_hi_<mode>): New pattern.
5240 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
5241 (mve_vmovntq_<supf><mode>): Prefix with '@'.
5242 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
5243 vec-common.md.
5244 (vec_unpack<US>_lo_<mode>): Likewise.
5245 (vec_pack_trunc_<mode>): Rename to
5246 neon_quad_vec_pack_trunc_<mode>.
5247 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
5248 pattern.
5249 (vec_unpack<US>_lo_<mode>): New.
5250 (vec_pack_trunc_<mode>): New.
5251
5252 2021-06-14 Richard Biener <rguenther@suse.de>
5253
5254 PR tree-optimization/100934
5255 * tree-ssa-dom.c (pass_dominator::execute): Properly
5256 mark irreducible regions.
5257
5258 2021-06-14 Martin Liska <mliska@suse.cz>
5259
5260 * doc/invoke.texi: Put r{...} on the same line as @item.
5261
5262 2021-06-14 Martin Liska <mliska@suse.cz>
5263
5264 * doc/invoke.texi: Add missing newline.
5265
5266 2021-06-14 Martin Liska <mliska@suse.cz>
5267
5268 * doc/invoke.texi: Remove '+' charasters.
5269
5270 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
5271
5272 * config.gcc (arc): Add support for with_cpu option.
5273 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
5274
5275 2021-06-14 Richard Biener <rguenther@suse.de>
5276
5277 PR tree-optimization/101031
5278 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
5279 instead of size when accounting for a possibly string
5280 terminating nul.
5281
5282 2021-06-14 Martin Liska <mliska@suse.cz>
5283
5284 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
5285
5286 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
5287
5288 * value-query.cc (gimple_range_global): Call get_range_global
5289 if called after inlining.
5290
5291 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
5292
5293 PR target/101021
5294 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
5295 Emit constant permutation insn directly from here.
5296
5297 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
5298
5299 * attribs.c (find_attribute_namespace): Iterate over vec<> with
5300 range based for.
5301 * auto-profile.c (afdo_find_equiv_class): Likewise.
5302 * gcc.c (do_specs_vec): Likewise.
5303 (do_spec_1): Likewise.
5304 (driver::set_up_specs): Likewise.
5305 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
5306 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
5307 (imm_store_chain_info::try_coalesce_bswap): Likewise.
5308 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
5309 (get_location_for_stmts): Likewise.
5310 * graphite-poly.c (print_iteration_domains): Likewise.
5311 (free_poly_bb): Likewise.
5312 (remove_gbbs_in_scop): Likewise.
5313 (free_scop): Likewise.
5314 (dump_gbb_cases): Likewise.
5315 (dump_gbb_conditions): Likewise.
5316 (print_pdrs): Likewise.
5317 (print_scop): Likewise.
5318 * ifcvt.c (cond_move_process_if_block): Likewise.
5319 * lower-subreg.c (decompose_multiword_subregs): Likewise.
5320 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
5321 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
5322 * sel-sched-dump.c (dump_insn_vector): Likewise.
5323 * store-motion.c (store_ops_ok): Likewise.
5324 (store_killed_in_insn): Likewise.
5325 * timevar.c (timer::named_items::print): Likewise.
5326 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
5327 (cleanup_tree_cfg_noloop): Likewise.
5328 * tree-data-ref.c (dump_data_references): Likewise.
5329 (print_dir_vectors): Likewise.
5330 (print_dist_vectors): Likewise.
5331 (dump_data_dependence_relations): Likewise.
5332 (dump_dist_dir_vectors): Likewise.
5333 (dump_ddrs): Likewise.
5334 (create_runtime_alias_checks): Likewise.
5335 (free_subscripts): Likewise.
5336 (save_dist_v): Likewise.
5337 (save_dir_v): Likewise.
5338 (invariant_access_functions): Likewise.
5339 (same_access_functions): Likewise.
5340 (access_functions_are_affine_or_constant_p): Likewise.
5341 (find_data_references_in_stmt): Likewise.
5342 (graphite_find_data_references_in_stmt): Likewise.
5343 (free_dependence_relations): Likewise.
5344 (free_data_refs): Likewise.
5345 * tree-inline.c (copy_debug_stmts): Likewise.
5346 * tree-into-ssa.c (dump_currdefs): Likewise.
5347 (rewrite_update_phi_arguments): Likewise.
5348 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
5349 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
5350 Likewise.
5351 (vect_slp_analyze_node_dependences): Likewise.
5352 (vect_slp_analyze_instance_dependence): Likewise.
5353 (vect_record_base_alignments): Likewise.
5354 (vect_get_peeling_costs_all_drs): Likewise.
5355 (vect_peeling_supportable): Likewise.
5356 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
5357 (vec_info::free_stmt_vec_infos): Likewise.
5358
5359 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
5360
5361 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
5362 (andqi3_1<cczn>): Removed.
5363 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
5364 (H8/SX bit logicals): Split out from other patterns.
5365 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
5366 mulqihi3_const_clobber_flags.
5367 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
5368
5369 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
5370
5371 PR target/101023
5372 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
5373 to true if red zone is used.
5374 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
5375 ix86_red_zone_used.
5376 * config/i386/i386.h (machine_function): Add red_zone_used.
5377 (ix86_red_zone_size): Removed.
5378 (ix86_red_zone_used): New.
5379 * config/i386/i386.md (peephole2 patterns): Replace
5380 ix86_red_zone_size with ix86_red_zone_used.
5381
5382 2021-06-12 Jason Merrill <jason@redhat.com>
5383
5384 * doc/extend.texi (unused variable attribute): Applies to
5385 structure fields as well.
5386
5387 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
5388
5389 * auto-profile.c (read_profile): fix a typo in an error string
5390
5391 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
5392
5393 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
5394 default argument.
5395 * tree-pretty-print.c (dump_omp_clauses): Update.
5396 (dump_generic_node) <OMP_CLAUSE>: Use it.
5397
5398 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5399
5400 PR target/101016
5401 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
5402 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
5403 the polymorphic variants matching code.
5404 (__arm_vld1q_z): Likewise.
5405 (__arm_vld2q): Likewise.
5406 (__arm_vld4q): Likewise.
5407 (__arm_vldrbq_gather_offset): Likewise.
5408 (__arm_vldrbq_gather_offset_z): Likewise.
5409
5410 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
5411
5412 PR tree-optimization/96392
5413 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
5414
5415 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
5416
5417 PR tree-optimization/96392
5418 * fold-const.c (fold_real_zero_addition_p): Take both arguments
5419 of the addition or subtraction, not just the zero. Use this
5420 other argument in tests for signaling NaNs and signed zeros.
5421 (tree_expr_maybe_real_minus_zero_p): New predicate.
5422 * fold-const.h (fold_real_zero_addition_p): Update prototype.
5423 (tree_expr_maybe_real_minus_zero_p): New function prototype.
5424 * match.pd: Update calls to fold_real_zero_addition_p.
5425 Replace HONOR_NANS with tree_expr_maybe_nan_p.
5426 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
5427 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
5428 * tree-ssa-reassoc.c (eliminate_using_constants): Update
5429 call to fold_real_zero_addition_p.
5430
5431 2021-06-11 Richard Biener <rguenther@suse.de>
5432
5433 PR tree-optimization/101025
5434 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
5435 all refs that require dependence checking.
5436
5437 2021-06-11 Richard Biener <rguenther@suse.de>
5438
5439 PR tree-optimization/101028
5440 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
5441 reassoc discovery fails fatally, mark appropriate lanes
5442 in matches[] so.
5443
5444 2021-06-11 Richard Biener <rguenther@suse.de>
5445
5446 PR tree-optimization/101026
5447 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
5448 have a representative for the associated chain nodes.
5449
5450 2021-06-11 Jakub Jelinek <jakub@redhat.com>
5451
5452 PR rtl-optimization/101008
5453 * simplify-rtx.c (relational_result): New function.
5454 (simplify_logical_relational_operation,
5455 simplify_relational_operation): Use it.
5456
5457 2021-06-11 Jakub Jelinek <jakub@redhat.com>
5458
5459 PR target/101007
5460 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
5461
5462 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
5463
5464 PR target/101021
5465 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
5466 false if the permutation can be implemented with constant
5467 permutation instruction in wider mode.
5468 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
5469 Handle V8QImode and V4HImode.
5470
5471 2021-06-11 Martin Liska <mliska@suse.cz>
5472
5473 PR gcov-profile/100788
5474 * common.opt: Add new option.
5475 * coverage.c (coverage_begin_function): Emit warning instead on
5476 the internal compiler error.
5477 * doc/invoke.texi: Document the option.
5478 * toplev.c (process_options): Enable it by default.
5479
5480 2021-06-11 Richard Biener <rguenther@suse.de>
5481
5482 PR middle-end/101009
5483 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
5484 to set *init_b to true when we encounter a constant equal
5485 index pair.
5486 (compute_affine_dependence): Also dump the actual DR_REF.
5487
5488 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
5489
5490 PR tree-optimization/100984
5491 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
5492 replacements table.
5493 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
5494
5495 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
5496
5497 * config/rs6000/rs6000.md
5498 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
5499 define_insn_and_split.
5500
5501 2021-06-11 Richard Biener <rguenther@suse.de>
5502
5503 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
5504 to sort operands of the associative chain.
5505
5506 2021-06-11 Richard Biener <rguenther@suse.de>
5507
5508 * system.h (gcc_stablesort_r): Declare.
5509 * sort.cc (gcc_sort_r): Support stable sort.
5510 (gcc_stablesort_r): Define.
5511 * vec.h (vec<>::stablesort): Add.
5512
5513 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
5514
5515 PR target/89021
5516 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
5517 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
5518 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
5519 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
5520 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
5521 (expand_vec_perm_interleave2): Handle 64bit modes.
5522 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
5523 (expand_vec_perm_even_odd_1): Ditto.
5524 (ix86_vectorize_vec_perm_const): Ditto.
5525 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
5526 * config/i386/sse.md: ... here.
5527 * config/i386/mmx.md (*vec_interleave_lowv2sf):
5528 New insn_and_split pattern.
5529 (*vec_interleave_highv2sf): Ditto.
5530 (mmx_pshufbv8qi3): New insn pattern.
5531 (*mmx_pblendw): Ditto.
5532
5533 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
5534
5535 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
5536 (build_acc): Likewise.
5537 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
5538 source operands in little-endian mode.
5539 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
5540 (mma_init_builtins): Likewise.
5541 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
5542 ordering for the MMA assemble and build source operands.
5543 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
5544 Document.
5545 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
5546 documentation.
5547
5548 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
5549
5550 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
5551 REG_P.
5552 * config/h8300/extensions.md: Replace _clobber_flags patterns
5553 with <cczn>.
5554
5555 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
5556
5557 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
5558 (vcond_mask_<mode><tointvec>): this.
5559
5560 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5561 Thomas Schwinge <thomas@codesourcery.com>
5562
5563 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
5564 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
5565 * gimple.h (enum gf_mask): Split
5566 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
5567 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
5568 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
5569 (is_gimple_omp_oacc): Update.
5570 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
5571 * gimplify.c (gimplify_omp_target_update): Likewise.
5572 * omp-expand.c (expand_omp_target, build_omp_regions_1)
5573 (omp_make_gimple_edges): Likewise.
5574 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
5575 Likewise.
5576
5577 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
5578
5579 * value-query.cc (value_query::value_on_edge): Rename name to
5580 expr.
5581 (range_query::range_on_edge): Same.
5582 (range_query::value_of_expr): Same.
5583 (range_query::value_on_edge): Same.
5584 * value-query.h (class value_query): Same.
5585 (class range_query): Same.
5586
5587 2021-06-10 Richard Biener <rguenther@suse.de>
5588
5589 PR tree-optimization/101003
5590 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
5591 use the pattern stmt defs when linearizing a chain.
5592
5593 2021-06-10 Jakub Jelinek <jakub@redhat.com>
5594
5595 PR debug/100852
5596 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
5597 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
5598
5599 2021-06-10 Clement Chigot <clement.chigot@atos.net>
5600
5601 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
5602 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
5603
5604 2021-06-09 Andrew Pinski <apinski@marvell.com>
5605
5606 PR tree-optimization/100925
5607 * match.pd (a ? CST1 : CST2): Limit transformations
5608 that would produce a negative to integeral types only.
5609 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
5610
5611 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
5612
5613 Revert:
5614 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
5615
5616 * doc/tm.texi: Correctly update.
5617
5618 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
5619
5620 * doc/tm.texi: Correctly update.
5621
5622 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5623
5624 PR other/100735
5625 * doc/tm.texi.in (Trampolines): Add a missing blank line.
5626
5627 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
5628
5629 PR other/100735
5630 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
5631 and -ftrampolines work only with Ada.
5632 * doc/tm.texi.in (Trampolines): Likewise.
5633 * doc/tm.texi: Regenerated.
5634
5635 2021-06-09 Carl Love <cel@us.ibm.com>
5636
5637 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
5638 Add define for new builtins.
5639 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
5640 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
5641 overloaded builtin definitions.
5642 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
5643 VSIGNEXTSD2Q): Add builtin expansions.
5644 (SIGNEXT): Add P10 overload definition.
5645 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
5646 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
5647 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
5648 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
5649 vsignextend_si_v2di)[VIlong]: Add define_expand.
5650 Make define_insn vsx_sign_extend_si_v2di visible.
5651 * doc/extend.texi: Add documentation for the vec_signexti,
5652 vec_signextll builtins and vec_signextq.
5653
5654 2021-06-09 Carl Love <cel@us.ibm.com>
5655
5656 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
5657 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
5658 __floattikf_sw, __floatuntikf_sw respectively.
5659 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
5660 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
5661 define_insn for mode IEEE 128.
5662
5663 2021-06-09 Carl Love <cel@us.ibm.com>
5664
5665 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
5666 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
5667 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
5668 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
5669 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
5670 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
5671 uses of VSX_TI to VEC_TI.
5672
5673 2021-06-09 Carl Love <cel@us.ibm.com>
5674
5675 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
5676
5677 2021-06-09 Carl Love <cel@us.ibm.com>
5678
5679 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
5680 builtins.
5681 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
5682 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
5683 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
5684 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
5685 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
5686 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
5687 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
5688 define_insn.
5689 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
5690 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
5691 altivec_vrlqnm): New define_expands.
5692 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
5693 VCMPGTUT_P): Add macro expansions.
5694 (BU_P10V_AV_P): Add builtin predicate definition.
5695 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
5696 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
5697 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
5698 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
5699 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
5700 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
5701 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
5702 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
5703 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
5704 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
5705 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
5706 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
5707 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
5708 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
5709 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
5710 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
5711 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
5712 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
5713 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
5714 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
5715 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
5716 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
5717 P10V_BUILTIN_MODU_V1TI):
5718 New overloaded definitions.
5719 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
5720 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
5721 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
5722 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
5723 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
5724 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
5725 New assignments.
5726 (altivec_init_builtins): New E_V1TImode case statement.
5727 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
5728 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
5729 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
5730 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
5731 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
5732 E_V1TImode]: New case statements.
5733 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
5734 value RS6000_BTI_bool_V1TI.
5735 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
5736 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
5737 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
5738 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
5739 vlshrv1ti3, vashrv1ti3): New define_expands.
5740 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
5741 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
5742 UNSPEC_VSX_MODUQ): New unspecs.
5743 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
5744 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
5745 define_insns.
5746 (vcmpnet): New define_expand.
5747 * doc/extend.texi: Add documentation for the new builtins vec_rl,
5748 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
5749 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
5750 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
5751 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
5752 vec_any_ge, vec_any_le.
5753
5754 2021-06-09 Carl Love <cel@us.ibm.com>
5755
5756 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
5757 bug in argument generation.
5758
5759 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
5760
5761 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
5762 (VCLZQ): Remove.
5763 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
5764 remove <supf> iterator.
5765 (mve_vclzq_u<mode>): New.
5766 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
5767 (neon_vclz<mode): Move to ...
5768 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
5769 * config/arm/vec-common.md: ... here. Add support for MVE.
5770
5771 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
5772
5773 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
5774 (@mve_vrhaddq_<supf><mode): Likewise.
5775 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
5776 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
5777 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
5778
5779 2021-06-09 imba-tjd <109224573@qq.com>
5780
5781 * doc/invoke.texi: Fix typo.
5782
5783 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
5784
5785 PR middle-end/53267
5786 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
5787 Support evaluation of fmod/fmodf/fmodl at compile-time.
5788
5789 2021-06-09 Richard Biener <rguenther@suse.de>
5790
5791 PR tree-optimization/100981
5792 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5793 gimple_get_lhs to also handle calls.
5794 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
5795 reduction info.
5796
5797 2021-06-09 Richard Biener <rguenther@suse.de>
5798
5799 PR tree-optimization/97832
5800 * tree-vectorizer.h (_slp_tree::failed): New.
5801 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
5802 failed member.
5803 (_slp_tree::~_slp_tree): Free failed.
5804 (vect_build_slp_tree): Retain failed nodes and record
5805 matches in them, copying that back out when running
5806 into a cached fail. Dump start and end of discovery.
5807 (dt_sort_cmp): New.
5808 (vect_build_slp_tree_2): Handle associatable chains
5809 together doing more aggressive operand swapping.
5810
5811 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5812
5813 PR target/100896
5814 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
5815 GNU targets.
5816 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
5817 Linux and GNU targets.
5818
5819 2021-06-09 Richard Biener <rguenther@suse.de>
5820
5821 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
5822 from the stmt.
5823
5824 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
5825
5826 * config/arc/arc.md (loop_end): Change it to
5827 define_insn_and_split.
5828
5829 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
5830
5831 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
5832 (machi): New pattern.
5833 (umaddhisi4): Use VMAC2HU instruction.
5834 (umachi): New pattern.
5835
5836 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
5837
5838 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
5839 * config/arc/arc.c (arc_split_move_p): New function.
5840 (arc_split_move): Clean up.
5841 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
5842 (movdf_insn): Likewise.
5843 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
5844
5845 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
5846
5847 PR target/100936
5848 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
5849 argument to "raw". Do not emit segment overrides when "raw" is true.
5850
5851 2021-06-09 Martin Liska <mliska@suse.cz>
5852
5853 * doc/gcov.texi: Create a proper JSON files.
5854 * doc/invoke.texi: Remove dots in order to make it a valid
5855 JSON object.
5856
5857 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
5858
5859 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
5860 (insn_is_load_p): Use pattern_is_rotate64.
5861 (insn_is_swap_p): Likewise.
5862 (quad_aligned_load_p): Likewise.
5863 (const_load_sequence_p): Likewise.
5864 (replace_swapped_aligned_load): Likewise.
5865 (recombine_lvx_pattern): Likewise.
5866 (recombine_stvx_pattern): Likewise.
5867
5868 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
5869
5870 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
5871 fur_stmt source record.
5872 * gimple-range.cc (fur_source::get_operand): Generic range query.
5873 (fur_source::get_phi_operand): New.
5874 (fur_source::register_dependency): New.
5875 (fur_source::query): New.
5876 (class fur_edge): New. Edge source for operands.
5877 (fur_edge::fur_edge): New.
5878 (fur_edge::get_operand): New.
5879 (fur_edge::get_phi_operand): New.
5880 (fur_edge::query): New.
5881 (fur_stmt::fur_stmt): New.
5882 (fur_stmt::get_operand): New.
5883 (fur_stmt::get_phi_operand): New.
5884 (fur_stmt::query): New.
5885 (class fur_depend): New. Statement source and process dependencies.
5886 (fur_depend::fur_depend): New.
5887 (fur_depend::register_dependency): New.
5888 (class fur_list): New. List source for operands.
5889 (fur_list::fur_list): New.
5890 (fur_list::get_operand): New.
5891 (fur_list::get_phi_operand): New.
5892 (fold_range): New. Instantiate appropriate fur_source class and fold.
5893 (fold_using_range::range_of_range_op): Use new API.
5894 (fold_using_range::range_of_address): Ditto.
5895 (fold_using_range::range_of_phi): Ditto.
5896 (imple_ranger::fold_range_internal): Use fur_depend class.
5897 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
5898 * gimple-range.h (class fur_source): Now a base class.
5899 (class fur_stmt): New.
5900 (fold_range): New prototypes.
5901 (fur_source::fur_source): Delete.
5902
5903 2021-06-08 Andrew Pinski <apinski@marvell.com>
5904
5905 PR tree-optimization/25290
5906 * tree-ssa-phiopt.c (xor_replacement): Delete.
5907 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
5908 (match_simplify_replacement): Allow one cheap preparation
5909 statement that can be moved to before the if.
5910
5911 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
5912
5913 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
5914 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
5915
5916 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
5917
5918 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
5919 Create length attribute on define_insn_and_split. Only split for cases which we
5920 know will use AND.
5921 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
5922 fix length computation.
5923 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
5924
5925 2021-06-08 Richard Biener <rguenther@suse.de>
5926
5927 PR tree-optimization/100923
5928 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
5929 the operand vector to be valueized.
5930 (valueize_refs): Likewise.
5931 (valueize_shared_reference_ops_from_ref): Adjust.
5932 (valueize_shared_reference_ops_from_call): Likewise.
5933 (vn_reference_lookup_3): Likewise.
5934 (vn_reference_lookup_pieces): Likewise. Re-valueize
5935 with honoring availability when we are about to create
5936 the ao_ref and valueized before.
5937 (vn_reference_lookup): Likewise.
5938 (vn_reference_insert_pieces): Adjust.
5939
5940 2021-06-08 Richard Biener <rguenther@suse.de>
5941
5942 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
5943 (_slp_instance::root_stmts): ... a vector.
5944 (SLP_INSTANCE_ROOT_STMT): Rename to ...
5945 (SLP_INSTANCE_ROOT_STMTS): ... this.
5946 (slp_root::root): Change to...
5947 (slp_root::roots): ... a vector.
5948 (slp_root::slp_root): Adjust.
5949 * tree-vect-slp.c (_slp_instance::location): Adjust.
5950 (vect_free_slp_instance): Release the root stmt vector.
5951 (vect_build_slp_instance): Adjust.
5952 (vect_analyze_slp): Likewise.
5953 (_bb_vec_info::~_bb_vec_info): Likewise.
5954 (vect_slp_analyze_operations): Likewise.
5955 (vect_bb_vectorization_profitable_p): Likewise. Adjust
5956 costs for the root stmt.
5957 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
5958 as root stmts.
5959 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
5960 as pure_slp.
5961 (vectorize_slp_instance_root_stmt): Adjust.
5962 (vect_schedule_slp): Likewise.
5963
5964 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
5965
5966 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
5967 (ssa_equiv_stack::ssa_equiv_stack): New.
5968 (ssa_equiv_stack::~ssa_equiv_stack): New.
5969 (ssa_equiv_stack::enter): New.
5970 (ssa_equiv_stack::leave): New.
5971 (ssa_equiv_stack::push_replacement): New.
5972 (ssa_equiv_stack::get_replacement): New.
5973 (is_pointer_ssa): New.
5974 (class pointer_equiv_analyzer): New.
5975 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
5976 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
5977 (pointer_equiv_analyzer::set_global_equiv): New.
5978 (pointer_equiv_analyzer::set_cond_equiv): New.
5979 (pointer_equiv_analyzer::get_equiv): New.
5980 (pointer_equiv_analyzer::enter): New.
5981 (pointer_equiv_analyzer::leave): New.
5982 (pointer_equiv_analyzer::get_equiv_expr): New.
5983 (pta_valueize): New.
5984 (pointer_equiv_analyzer::visit_stmt): New.
5985 (pointer_equiv_analyzer::visit_edge): New.
5986 (hybrid_folder::value_of_expr): Call PTA.
5987 (hybrid_folder::value_on_edge): Same.
5988 (hybrid_folder::pre_fold_bb): New.
5989 (hybrid_folder::post_fold_bb): New.
5990 (hybrid_folder::pre_fold_stmt): New.
5991 (rvrp_folder::pre_fold_bb): New.
5992 (rvrp_folder::post_fold_bb): New.
5993 (rvrp_folder::pre_fold_stmt): New.
5994 (rvrp_folder::value_of_expr): Call PTA.
5995 (rvrp_folder::value_on_edge): Same.
5996
5997 2021-06-08 Jakub Jelinek <jakub@redhat.com>
5998
5999 PR c++/100957
6000 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
6001 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
6002
6003 2021-06-08 Richard Biener <rguenther@suse.de>
6004
6005 PR middle-end/100951
6006 * tree-vect-generic.c (expand_vector_piecewise): Build a
6007 VECTOR_CST if all elements are constant.
6008 (expand_vector_condition): Likewise.
6009 (lower_vec_perm): Likewise.
6010 (expand_vector_conversion): Likewise.
6011
6012 2021-06-08 Martin Liska <mliska@suse.cz>
6013
6014 * doc/invoke.texi: Document new param evrp-sparse-threshold.
6015
6016 2021-06-08 Martin Liska <mliska@suse.cz>
6017
6018 * genautomata.c (create_automata): Fix typo.
6019
6020 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
6021
6022 PR tree-optimization/100794
6023 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
6024 allow_unroll_p and only allow unrolling when it's true.
6025 (tree_predictive_commoning): Add parameter allow_unroll_p and
6026 adjust for it.
6027 (run_tree_predictive_commoning): Likewise.
6028 (pass_predcom::gate): Check flag_tree_loop_vectorize and
6029 global_options_set.x_flag_predictive_commoning.
6030 (pass_predcom::execute): Adjust for allow_unroll_p.
6031
6032 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
6033
6034 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
6035 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
6036 lambda function cleanup, remove scev_reset call, and adjust return
6037 value.
6038 (tree_predictive_commoning): Adjust for different changed values,
6039 only set flag TODO_update_ssa_only_virtuals if changed.
6040 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
6041 from todo_flags_finish.
6042
6043 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
6044
6045 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
6046 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
6047 (sbr_sparse_bitmap::bitmap_set_quad): New.
6048 (sbr_sparse_bitmap::bitmap_get_quad): New.
6049 (sbr_sparse_bitmap::set_bb_range): New.
6050 (sbr_sparse_bitmap::get_bb_range): New.
6051 (sbr_sparse_bitmap::bb_range_p): New.
6052 (block_range_cache::block_range_cache): initialize bitmap obstack.
6053 (block_range_cache::~block_range_cache): Destruct obstack.
6054 (block_range_cache::set_bb_range): Decide when to utilze the
6055 sparse on entry cache.
6056 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
6057 * params.opt (-param=evrp-sparse-threshold): New.
6058
6059 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
6060
6061 * bitmap.c (bitmap_set_aligned_chunk): New.
6062 (bitmap_get_aligned_chunk): New.
6063 (test_aligned_chunk): New.
6064 (bitmap_c_tests): Call test_aligned_chunk.
6065 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
6066
6067 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
6068
6069 PR target/100637
6070 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
6071 Handle V4QI mode.
6072 (ix86_expand_vector_init_one_nonzero): Ditto.
6073 (ix86_expand_vector_init_one_var): Ditto.
6074 (ix86_expand_vector_init_general): Ditto.
6075 * config/i386/mmx.md (vec_initv4qiqi): New expander.
6076
6077 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
6078
6079 * config/h8300/movepush.md: Change most _clobber_flags
6080 patterns to instead use <cczn> subst.
6081 (movsi_cczn): New pattern with usable CC cases split out.
6082 (movsi_h8sx_cczn): Likewise.
6083
6084 2021-06-07 Martin Liska <mliska@suse.cz>
6085
6086 * common/common-target.def: Split long lines and replace them
6087 with '\n\'.
6088 * target.def: Likewise.
6089 * doc/tm.texi: Re-generated.
6090
6091 2021-06-07 Jakub Jelinek <jakub@redhat.com>
6092
6093 PR target/100887
6094 * fold-const.c (fold_read_from_vector): Return NULL if trying to
6095 read from a CONSTRUCTOR with vector type elements.
6096
6097 2021-06-07 Jakub Jelinek <jakub@redhat.com>
6098
6099 PR middle-end/100898
6100 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
6101 should copy any arguments. Don't call gimple_call_num_args
6102 on id->call_stmt or call_stmt more than once.
6103
6104 2021-06-07 liuhongt <hongtao.liu@intel.com>
6105
6106 PR target/100885
6107 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
6108 constraints.
6109 (<insn>v4siv4di2): Delete constraints for define_expand.
6110
6111 2021-06-07 liuhongt <hongtao.liu@intel.com>
6112
6113 PR target/82735
6114 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
6115 assignment of cfun->machine->has_explicit_vzeroupper.
6116 * config/i386/i386-features.c
6117 (ix86_add_reg_usage_to_vzerouppers): Delete.
6118 (ix86_add_reg_usage_to_vzeroupper): Ditto.
6119 (rest_of_handle_insert_vzeroupper): Remove
6120 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
6121 of the function.
6122 (gate): Remove cfun->machine->has_explicit_vzeroupper.
6123 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
6124 Declared.
6125 * config/i386/i386.c (ix86_insn_callee_abi): New function.
6126 (ix86_initialize_callee_abi): Ditto.
6127 (ix86_expand_avx_vzeroupper): Ditto.
6128 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
6129 ABI.
6130 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
6131 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
6132 directly.
6133 * config/i386/i386.h (struct GTY(()) machine_function): Delete
6134 has_explicit_vzeroupper.
6135 * config/i386/i386.md (enum unspec): New member
6136 UNSPEC_CALLEE_ABI.
6137 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
6138 define_constants for insn callee abi index.
6139 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
6140 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
6141 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
6142 (*avx_vzeroupper): Rename to ..
6143 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
6144 call_insn which has a special vzeroupper ABI.
6145 (*avx_vzeroupper_1): Deleted.
6146
6147 2021-06-07 liuhongt <hongtao.liu@intel.com>
6148
6149 PR target/82735
6150 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
6151 it won't use stack pointer reg.
6152 * final.c (leaf_function_p): When call_insn is a fake call, it
6153 won't affect caller as a leaf function.
6154 * reg-stack.c (callee_clobbers_any_stack_reg): New.
6155 (subst_stack_regs): When call_insn doesn't clobber any stack
6156 reg, don't clear the arguments.
6157 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
6158 a insn.
6159 * shrink-wrap.c (requires_stack_frame_p): No need for stack
6160 frame for a fake call.
6161 * rtl.h (FAKE_CALL_P): New macro.
6162
6163 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
6164
6165 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
6166 to...
6167 (sparc_order_regs_for_local_alloc): ...this.
6168 (sparc_leaf_reg_remap): Declare.
6169 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
6170 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
6171 * config/sparc/sparc.c (leaf_reg_remap): Delete.
6172 (order_regs_for_local_alloc): Rename to...
6173 (sparc_order_regs_for_local_alloc): ...this.
6174 (sparc_leaf_reg_remap): New function.
6175 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
6176
6177 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
6178
6179 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
6180 Use assemble_name to output BSS section name.
6181
6182 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
6183
6184 * config/i386/constraints.md (Bs):
6185 Remove boolean operators from match_test RTX.
6186 (Bw): Ditto.
6187 (L): Ditto.
6188 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
6189 (Wz): Ditto.
6190
6191 2021-06-06 Martin Liska <mliska@suse.cz>
6192
6193 * doc/extend.texi: Add missing @headitem.
6194 * doc/invoke.texi: Likewise.
6195 * doc/objc.texi: Likewise.
6196
6197 2021-06-06 Martin Liska <mliska@suse.cz>
6198
6199 * genhooks.c (emit_findices): Remove unused function.
6200 (emit_documentation): Do not call emit_findices
6201 and do not search for @Fcode directives.
6202
6203 2021-06-06 Martin Liska <mliska@suse.cz>
6204
6205 * doc/invoke.texi: Remove extra character.
6206
6207 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
6208
6209 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
6210
6211 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
6212
6213 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
6214 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
6215 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
6216 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
6217
6218 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
6219
6220 * config/or1k/or1k.md (*movdi): Fix empty split condition.
6221
6222 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
6223
6224 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
6225 split condition.
6226
6227 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
6228
6229 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
6230 *zero_extendsidi2): Fix empty split condition.
6231
6232 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
6233
6234 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
6235 patterns.
6236 * config/h8300/bitfield.md: Likewise.
6237 * config/h8300/combiner.md: Likewise.
6238 * config/h8300/divmod.md: Likewise.
6239 * config/h8300/extensions.md: Likewise.
6240 * config/h8300/jumpcall.md: Likewise.
6241 * config/h8300/movepush.md: Likewise.
6242 * config/h8300/multiply.md: Likewise.
6243 * config/h8300/other.md: Likewise.
6244 * config/h8300/shiftrotate.md: Likewise.
6245 * config/h8300/logical.md: Likewise. Fix split pattern to use
6246 code iterator that somehow slipped through.
6247
6248 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
6249
6250 PR middle-end/100905
6251 * tree-nested.c (convert_nonlocal_omp_clauses,
6252 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
6253
6254 2021-06-04 Martin Sebor <msebor@redhat.com>
6255
6256 PR middle-end/100732
6257 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
6258 with either source or destination argument of invalid type.
6259 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
6260 calls with arguments of invalid type.
6261
6262 2021-06-04 Martin Sebor <msebor@redhat.com>
6263
6264 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
6265 order.
6266 (attr_access::vla_bounds): Also handle VLA bounds.
6267
6268 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
6269
6270 * config/i386/predicates.md (GOT_memory_operand):
6271 Implement using match_code RTXes.
6272 (GOT32_symbol_operand): Ditto.
6273
6274 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
6275
6276 PR target/100637
6277 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
6278 Handle V2HI mode.
6279 (ix86_expand_vector_init_general): Ditto.
6280 Use SImode instead of word_mode for logic operations
6281 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
6282 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
6283 implemented by expand_vec_perm_1.
6284 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
6285 should be implemented using standard shuffle patterns.
6286 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
6287 V2HI modes to modes, implementable with shuffle for one operand.
6288 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
6289 (*pshufw_1): New insn pattern.
6290 (*vec_dupv2hi): Ditto.
6291 (vec_initv2hihi): New expander.
6292
6293 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
6294
6295 * config/arm/vfp.md (no_literal_pool_df_immediate,
6296 no_literal_pool_sf_immediate): Fix empty split condition.
6297
6298 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
6299
6300 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
6301 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
6302 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
6303 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
6304 *<sse4_1_avx2>_pblendvb_lt): Likewise.
6305
6306 2021-06-04 Jakub Jelinek <jakub@redhat.com>
6307
6308 PR target/100887
6309 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
6310 concatenation from half-sized modes with TImode elements.
6311
6312 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
6313
6314 * config/arc/arc.c (arc_override_options): Disable millicode
6315 thunks when RF16 is on.
6316
6317 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
6318
6319 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
6320
6321 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
6322
6323 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
6324 Replace PROMOTE_MODE marco with its content.
6325
6326 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
6327
6328 * config/cris/cris.md (*addi_reload): Fix empty split condition.
6329
6330 2021-06-03 Jim Wilson <jimw@sifive.com>
6331
6332 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
6333 turn it on for all riscv targets.
6334
6335 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
6336
6337 PR target/100637
6338 * config/i386/i386-expand.c (ix86_expand_vector_set):
6339 Handle V2HI and V4QI modes.
6340 (ix86_expand_vector_extract): Ditto.
6341 * config/i386/mmx.md (*pinsrw): New insn pattern.
6342 (*pinsrb): Ditto.
6343 (*pextrw): Ditto.
6344 (*pextrw_zext): Ditto.
6345 (*pextrb): Ditto.
6346 (*pextrb_zext): Ditto.
6347 (vec_setv2hi): New expander.
6348 (vec_extractv2hihi): Ditto.
6349 (vec_setv4qi): Ditto.
6350 (vec_extractv4qiqi): Ditto.
6351 (vec_setv8qi): Enable only for TARGET_SSE4_1.
6352 (vec_extractv8qiqi): Ditto.
6353
6354 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
6355
6356 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
6357 order to subf instruction.
6358 * config/rs6000/fusion.md: Regenerate.
6359
6360 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
6361
6362 * calls.c (get_size_range): Use range_of_expr instead of
6363 determine_value_range.
6364 * tree-affine.c (expr_to_aff_combination): Same.
6365 * tree-data-ref.c (split_constant_offset): Same.
6366 * tree-vrp.c (determine_value_range_1): Remove.
6367 (determine_value_range): Remove.
6368 * tree-vrp.h (determine_value_range): Remove.
6369
6370 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
6371
6372 * function-tests.c (test_ranges): Call gimple_range_tests.
6373 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
6374 to get_tree_range.
6375 * gimple-range.cc (fur_source::get_operand): Do not call
6376 get_tree_range or gimple_range_global.
6377 get_tree_range.
6378 (get_tree_range): Move to value-query.cc.
6379 Call get_arith_expr_range.
6380 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
6381 Include gimple-range-tests.cc.
6382 * gimple-range.h (fold_range): Add argument.
6383 (get_tree_range): Remove.
6384 * selftest.h (gimple_range_tests): New.
6385 * value-query.cc (global_range_query::range_of_expr): Add
6386 stmt argument.
6387 (range_query::get_tree_range): Move from gimple-range.cc.
6388 * value-query.h (class range_query): Add get_tree_range and
6389 get_arith_expr_range. Make fur_source a friend.
6390 * vr-values.c (vr_values::range_of_expr): Pass stmt to
6391 get_tree_range.
6392 * gimple-range-tests.cc: New file.
6393
6394 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
6395
6396 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
6397 update_global_range.
6398 * value-query.cc (update_global_range): New.
6399 * value-query.h (update_global_range): New.
6400
6401 2021-06-03 David Malcolm <dmalcolm@redhat.com>
6402
6403 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
6404 printing the same location twice if there are fix-it hints,
6405 multiple locations, or a label.
6406
6407 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
6408
6409 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
6410 thresholds to narrow the upper bound on epilogue iterations.
6411
6412 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
6413
6414 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
6415 (mve_vabsq_s<mode>): Likewise.
6416 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
6417 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
6418 * config/arm/vec-common.md (neg<mode>2): Rename to
6419 <absneg_str><mode>2.
6420
6421 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
6422
6423 * common/config/arc/arc-common.c (arc_option_optimization_table):
6424 Remove malign-call.
6425 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
6426 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
6427 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
6428 * config/arc/arc.md (abssi2_mixed): Remove pattern.
6429 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
6430 (malign-call): Likewise.
6431 (mmixed-code): Likewise.
6432 * doc/invoke.texi (ARC): Update doc.
6433
6434 2021-06-03 Martin Liska <mliska@suse.cz>
6435
6436 * common.opt: Use proper Enum values.
6437 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
6438 (parse_sanitizer_options): Handle only sanitizer_opts.
6439 (common_handle_option): Just assign value.
6440
6441 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
6442
6443 PR ipa/99122
6444 * tree-inline.c (inline_forbidden_p): Remove test on return type.
6445
6446 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
6447
6448 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
6449 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
6450 (type_byte_size): Inline into...
6451 (add_byte_size_attribute): ...this and call add_scalar_info.
6452
6453 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
6454
6455 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
6456 (typed_binop_from_tree): New function.
6457 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
6458 turn a divide by a power of 2 into a shift.
6459 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
6460 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
6461 typed divide by calling typed_binop_from_tree.
6462
6463 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
6464
6465 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
6466 (is_handled_procedure_type): Likewise.
6467 (struct loc_descr_context): Add strict_signedness field.
6468 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
6469 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
6470 (resolve_args_picking): Minor tweak.
6471 (function_to_dwarf_procedure): Initialize strict_signedness field.
6472 (type_byte_size): Likewise.
6473 (field_byte_offset): Likewise.
6474 (gen_descr_array_type_die): Likewise.
6475 (gen_variant_part): Likewise.
6476 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
6477 to true when a context is present before evaluating the arguments.
6478 <COND_EXPR>: Do not generate a useless comparison with zero.
6479 When dereferencing an address, if strict_signedness is true and the
6480 type is small and signed, use DW_OP_deref_type to do the dereference
6481 and then DW_OP_convert to convert back to the generic type.
6482
6483 2021-06-03 Jakub Jelinek <jakub@redhat.com>
6484
6485 PR c++/100859
6486 * tree-inline.c (copy_tree_body_r): Handle iterators on
6487 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
6488
6489 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
6490
6491 * config/arc/arc.md (*bbit_di): Remove.
6492
6493 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
6494
6495 PR rtl-optimization/100264
6496 * ree.c (get_sub_rtx): Ignore SET expressions without register
6497 destinations and remove assertion, as it is not valid anymore
6498 with this new behaviour.
6499 (merge_def_and_ext): Eliminate destination check for register
6500 as such SET expressions can't occur anymore.
6501 (combine_reaching_defs): Likewise.
6502
6503 2021-06-02 Jakub Jelinek <jakub@redhat.com>
6504
6505 PR target/100841
6506 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
6507 -Wtype-limits warnings.
6508 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
6509 in operands to avoid -Wsign-compare warnings.
6510
6511 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
6512
6513 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
6514 gen_frame_store.
6515
6516 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
6517
6518 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
6519
6520 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
6521
6522 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
6523 constraint.
6524 * config/s390/subst.md(cconly_subst): Use a single constraint
6525 in (match_scratch).
6526
6527 2021-06-02 Martin Liska <mliska@suse.cz>
6528
6529 * ipa-icf.h: Use auto_vec for memory_access_types.
6530
6531 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
6532
6533 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
6534 argument from prototype.
6535 (output_logical_op): Add rtx_code argument.
6536 (compute_logical_op_length): Likewise.
6537 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
6538 to compute_a_shift_length.
6539 (output_logical_op); New argument with the rtx code rather than
6540 extracting it from an operand. Handle QImode too.
6541 (compute_logical_op_length): Similary.
6542 (compute_a_shift_length): Drop unused argument.
6543 * config/h8300/h8300.md (logicals): New code iterator.
6544 * config/h8300/logical.md (<code><mode>3 expander): Combine
6545 the "and" expander with the "ior"/"xor" expander.
6546 (bclr<mode>msx): Combine the QI/HI mode patterns.
6547 (<logical><mode>3 insns): Use code iterator rather than match_operator.
6548 Handle QImode as well. Update call to output_logical_op and
6549 compute_logical_op_length to pass in rtx_code
6550 Fix split condition on all define_insn_and_split patterns.
6551 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
6552 the flags and setting ZN via existing define_subst.
6553 * config/h8300/shiftrotate.md: Drop unused argument from
6554 calls to compute_a_shift_length.
6555 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
6556
6557 2021-06-01 Andrew Pinski <apinski@marvell.com>
6558
6559 PR tree-optimization/25290
6560 * tree-ssa-phiopt.c (match_simplify_replacement):
6561 New function.
6562 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
6563 (two_value_replacement): Change the comment about
6564 conditional_replacement.
6565 (conditional_replacement): Delete.
6566
6567 2021-06-01 Andrew Pinski <apinski@marvell.com>
6568
6569 PR tree-optimization/95481
6570 * tree-tailcall.c (find_tail_calls): Handle empty typed
6571 return decls.
6572
6573 2021-06-01 Andrew Pinski <apinski@marvell.com>
6574
6575 * gimplify.c (zero_sized_field_decl): Delete
6576 (zero_sized_type): Delete
6577 (gimplify_init_ctor_eval): Use is_empty_type instead
6578 of zero_sized_field_decl.
6579 (gimplify_modify_expr): Use is_empty_type instead of
6580 zero_sized_type.
6581
6582 2021-06-01 Jason Merrill <jason@redhat.com>
6583
6584 PR c++/91859
6585 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
6586
6587 2021-06-01 Jason Merrill <jason@redhat.com>
6588
6589 PR c++/94492
6590 * diagnostic.h (warning_enabled_at): Declare.
6591 * diagnostic.c (diagnostic_enabled): Factor out from...
6592 (diagnostic_report_diagnostic): ...here.
6593 (warning_enabled_at): New.
6594
6595 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
6596
6597 * gimple-ssa-evrp.c: Enable exporting of global ranges.
6598
6599 2021-06-01 Martin Liska <mliska@suse.cz>
6600
6601 PR other/100826
6602 * doc/invoke.texi: Mention that -fgcse-after-reload
6603 is enabled with -O3.
6604
6605 2021-06-01 liuhongt <hongtao.liu@intel.com>
6606
6607 PR tree-optimization/98365
6608 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
6609 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
6610 (convert_scalar_cond_reduction): Ditto.
6611 (predicate_scalar_phi): Ditto.
6612
6613 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
6614
6615 PR tree-optimization/100781
6616 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
6617 value calculation by default.
6618 (ranger_cache::enable_new_values): New.
6619 (ranger_cache::disable_new_values): New.
6620 (ranger_cache::push_poor_value): Check if new values are allowed.
6621 * gimple-range-cache.h (class ranger_cache): New member/methods.
6622 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
6623 statement, and disable/renable new value calculation.
6624
6625 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
6626
6627 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
6628 (ranger_cache::range_of_def): New.
6629 (ranger_cache::entry_range): New.
6630 (ranger_cache::exit_range): New.
6631 (ranger_cache::range_of_expr): Adjust.
6632 (ranger_cache::range_on_edge): Adjust.
6633 (ranger_cache::propagate_cache): Call exit_range directly.
6634 * gimple-range-cache.h (class ranger_cache): Adjust.
6635
6636 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
6637
6638 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
6639 gori_compute being a member rather than base class.
6640 dervied call to member call.
6641 (ranger_cache::dump): No longer dump gori_map.
6642 (ranger_cache::dump_bb): New.
6643 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
6644 being a member rather than base class.
6645 (ranger_cache::set_global_range): Ditto.
6646 (ranger_cache::ssa_range_in_bb): Ditto.
6647 (ranger_cache::range_of_expr): New.
6648 (ranger_cache::range_on_edge): New.
6649 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
6650 (ranger_cache::propagate_cache): Adjust debugging output.
6651 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
6652 output changes.
6653 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
6654 member, and inherit from range_query instead.
6655 (ranger_cache::dump_bb): New. split from dump.
6656 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
6657 (gori_compute::expr_range_at_stmt): Delete.
6658 (gori_compute::compute_name_range_op): Delete.
6659 (gori_compute::compute_operand_range_switch): Add fur_source.
6660 (gori_compute::compute_operand_range): Add fur_source param, inline
6661 old compute_name_range_op and optimize_logical_operands.
6662 (struct tf_range): Delete.
6663 (gori_compute::logical_combine): Adjust
6664 (gori_compute::optimize_logical_operands): Delete.
6665 (gori_compute::compute_logical_operands_in_chain): Delete.
6666 (gori_compute::compute_logical_operands): Adjust.
6667 (gori_compute::compute_operand1_range): Adjust to fur_source.
6668 (gori_compute::compute_operand2_range): Ditto.
6669 (gori_compute::compute_operand1_and_operand2_range): Ditto.
6670 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
6671 and adjust to fur_source.
6672 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
6673 range_query and fur_source.
6674 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
6675 from the ranger_cache..
6676 (gimple_ranger::fold_range_internal): Adjust to base class change of
6677 ranger_cache.
6678 (gimple_ranger::dump_bb): Adjust dump.
6679 * gimple-range.h (gimple_ranger):export gori computes object.
6680
6681 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
6682
6683 PR tree-optimization/100774
6684 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
6685 Constant values are also not stale.
6686 (ranger_cache::set_global_range): Range invariant values should also
6687 have the correct timestamp.
6688
6689 2021-05-31 Martin Liska <mliska@suse.cz>
6690
6691 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
6692 Unpack FUNCTION_DECL_DECL_TYPE.
6693 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
6694 Stream FUNCTION_DECL_DECL_TYPE instead of
6695 DECL_IS_OPERATOR_NEW_P.
6696 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
6697 macro.
6698 (DECL_IS_OPERATOR_NEW_P): Likewise.
6699 (DECL_IS_OPERATOR_DELETE_P): Likewise.
6700 (DECL_LAMBDA_FUNCTION_P): Likewise.
6701
6702 2021-05-31 Richard Biener <rguenther@suse.de>
6703
6704 PR c++/88601
6705 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
6706 * internal-fn.def (SHUFFLEVECTOR): New.
6707 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
6708 * doc/extend.texi: Document __builtin_shufflevector.
6709
6710 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
6711
6712 PR target/99842
6713 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
6714 indexed form addresses.
6715
6716 2021-05-29 Jeff Law <jlaw@tachyum.com>
6717
6718 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
6719 parameter. Call callers fixed.
6720 (push): Likewise.
6721 (output_plussi): Add FALLTHRU markers.
6722 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
6723
6724 2021-05-29 Jakub Jelinek <jakub@redhat.com>
6725
6726 PR middle-end/99928
6727 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
6728 combined with parallel, make sure to add shared clause to
6729 parallel for explicit linear clause.
6730
6731 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
6732
6733 PR tree-optimization/100787
6734 * gimple-ssa-evrp.c: Disable exporting of global ranges.
6735
6736 2021-05-28 Jason Merrill <jason@redhat.com>
6737
6738 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
6739 operator--, operator*, operator==, and operator!=.
6740 (class tsi_range): New.
6741
6742 2021-05-28 Richard Biener <rguenther@suse.de>
6743
6744 PR tree-optimization/100778
6745 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
6746 trapping ops in different BBs.
6747
6748 2021-05-28 Richard Biener <rguenther@suse.de>
6749
6750 PR ipa/100791
6751 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
6752 copy fntype from original call.
6753
6754 2021-05-28 Martin Liska <mliska@suse.cz>
6755
6756 PR gcov-profile/100751
6757 * doc/gcov.texi: Revert partially a hunk that was wrong.
6758
6759 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
6760
6761 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
6762 Defined.
6763 (HAVE_sync_compare_and_swaphi): Likewise.
6764 (HAVE_sync_compare_and_swapsi): Likewise.
6765
6766 2021-05-28 Jakub Jelinek <jakub@redhat.com>
6767
6768 PR middle-end/99928
6769 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
6770
6771 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
6772
6773 * gimplify.c (gimplify_omp_affinity): New.
6774 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
6775 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
6776 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
6777 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
6778 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
6779
6780 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
6781 Richard Biener <rguenther@suse.de>
6782
6783 * match.pd <popcount & / + pattern matching>:
6784 When generating popcount directly fails, try doing it in two halves.
6785
6786 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6787
6788 * Makefile.in (generated_files): Add gimple-match.c and
6789 generic-match.c
6790
6791 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
6792
6793 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
6794
6795 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
6796
6797 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
6798
6799 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
6800
6801 PR tree-optimization/99398
6802 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
6803 where the fed operands are CTOR/CST and propagated through
6804 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
6805 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
6806 function.
6807 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
6808 declare.
6809
6810 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
6811
6812 * config/i386/mmx.md (addv2sf3): Do not call
6813 ix86_fixup_binary_operands_no_copy.
6814 (subv2sf3): Ditto.
6815 (mulv2sf3): Ditto.
6816 (<smaxmin:code>v2sf3): Ditto.
6817 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
6818 (<plusminus:insn><VI_32:mode>3): Remove expander.
6819 (<plusminus:insn><VI_32:mode>3): Rename from
6820 "*<plusminus:insn><VI_32:mode>3".
6821 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
6822 (mulv2hi3): Remove expander.
6823 (mulv2hi3): Rename from *mulv2hi3.
6824 (<s>mulv2hi3_highpart): Remove expander.
6825 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
6826 (<smaxmin:code><MMXMODE14:mode>3): Rename from
6827 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
6828 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
6829 (SMAXMIN_MMXMODEI): Remove mode iterator.
6830 (<smaxmin:code>v4hi3): New expander.
6831 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
6832 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
6833 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
6834 (SMAXMIN_VI_32): Remove mode iterator.
6835 (<umaxmin:code><MMXMODE24:mode>3): Rename from
6836 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
6837 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
6838 (UMAXMIN_MMXMODEI): Remove mode iterator.
6839 (<umaxmin:code>v8qi3): New expander.
6840 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
6841 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
6842 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
6843 (UMAXMIN_VI_32): Remove mode iterator.
6844 (<any_shift:insn>v2hi3): Remove expander.
6845 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
6846 (<any_logic:code><MMXMODEI:mode>3): Do not call
6847 ix86_fixup_binary_operands_no_copy.
6848 (<any_logic:code><VI_32:mode>3): Remove expander.
6849 (<any_logic:code><VI_32:mode>3): Rename from
6850 "*<any_logic:code><VI_32:mode>3".
6851 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
6852 * config/i386/sse.md (div<VF2:mode>3): Do not call
6853 ix86_fixup_binary_operands_no_copy.
6854 (div<VF1:mode>3): Ditto.
6855 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
6856 (smulhrsv4hi3): Ditto.
6857 (smulhrsv2hi3): Ditto.
6858
6859 2021-05-27 Martin Sebor <msebor@redhat.com>
6860
6861 * ggc.h (gt_ggc_mx): Add overloads for all integers.
6862 (gt_pch_nx): Same.
6863 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
6864 integers.
6865 (hash_map::operator==): New function.
6866
6867 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
6868
6869 PR target/100637
6870 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
6871 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
6872 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
6873 (*xop_maskcmp<VI_32:mode>3): Ditto.
6874 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
6875 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
6876
6877 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
6878
6879 PR target/100767
6880 * config/arm/arm.c (arm_configure_build_target): Remove parameter
6881 opts_set, directly check opts parameters for being non-null.
6882 (arm_option_restore): Update call to arm_configure_build_target.
6883 (arm_option_override): Likewise.
6884 (arm_can_inline_p): Likewise.
6885 (arm_valid_target_attribute_tree): Likewise.
6886 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
6887 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
6888 prototype.
6889
6890 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
6891
6892 * vr-values.c (simplify_conversion_using_ranges): Use
6893 get_range_query instead of get_global_range_query.
6894
6895 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
6896
6897 * gimple-range.cc (get_range_global): Move to value-query.cc.
6898 (gimple_range_global): Same.
6899 (get_global_range_query): Same.
6900 (global_range_query::range_of_expr): Same.
6901 * gimple-range.h (class global_range_query): Move to
6902 value-query.h.
6903 (gimple_range_global): Same.
6904 * tree-ssanames.c (get_range_info): Move to value-query.cc.
6905 (get_ptr_nonnull): Same.
6906 * tree-ssanames.h (get_range_info): Remove.
6907 (get_ptr_nonnull): Remove.
6908 * value-query.cc (get_ssa_name_range_info): Move from
6909 tree-ssanames.c.
6910 (get_ssa_name_ptr_info_nonnull): Same.
6911 (get_range_global): Move from gimple-range.cc.
6912 (gimple_range_global): Same.
6913 (get_global_range_query): Same.
6914 (global_range_query::range_of_expr): Same.
6915 * value-query.h (class global_range_query): Move from
6916 gimple-range.h.
6917 (gimple_range_global): Same.
6918
6919 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
6920
6921 PR target/100637
6922 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
6923 (uavgv2hi3_ceil): Ditto.
6924
6925 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
6926
6927 PR c/100653
6928 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
6929
6930 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
6931
6932 * tree-ssanames.c (get_range_info): Merge both copies of
6933 get_range_info into one that works with irange.
6934 * tree-ssanames.h (get_range_info): Remove version that works on
6935 wide_ints.
6936
6937 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
6938
6939 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
6940 (expand_builtin_strnlen): Same.
6941 (determine_block_size): Same.
6942 * fold-const.c (expr_not_equal_to): Same.
6943 * gimple-fold.c (size_must_be_zero_p): Same.
6944 * gimple-match-head.c: Include gimple-range.h.
6945 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
6946 * gimple-ssa-warn-restrict.c
6947 (builtin_memref::extend_offset_range): Same.
6948 * graphite-sese-to-poly.c (add_param_constraints): Same.
6949 * internal-fn.c (get_min_precision): Same.
6950 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
6951 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
6952 * match.pd: Same.
6953 * tree-data-ref.c (split_constant_offset): Same.
6954 (dr_step_indicator): Same.
6955 * tree-dfa.c (get_ref_base_and_extent): Same.
6956 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
6957 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
6958 (determine_value_range): Same.
6959 (record_nonwrapping_iv): Same.
6960 (infer_loop_bounds_from_signedness): Same.
6961 (scev_var_range_cant_overflow): Same.
6962 * tree-ssa-phiopt.c (two_value_replacement): Same.
6963 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
6964 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
6965 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
6966 (get_range): Same.
6967 (dump_strlen_info): Same.
6968 (set_strlen_range): Same.
6969 (maybe_diag_stxncpy_trunc): Same.
6970 (get_len_or_size): Same.
6971 (handle_integral_assign): Same.
6972 * tree-ssa-structalias.c (find_what_p_points_to): Same.
6973 * tree-ssa-uninit.c (find_var_cmp_const): Same.
6974 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
6975 * tree-vect-patterns.c (vect_get_range_info): Same.
6976 (vect_recog_divmod_pattern): Same.
6977 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
6978 (register_edge_assert_for_2): Same.
6979 (determine_value_range_1): Same.
6980 * tree.c (get_range_pos_neg): Same.
6981 * vr-values.c (vr_values::get_lattice_entry): Same.
6982 (vr_values::update_value_range): Same.
6983 (simplify_conversion_using_ranges): Same.
6984
6985 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
6986
6987 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
6988 get_range_query instead of query argument.
6989 (pass_walloca::execute): Enable and disable global ranger.
6990
6991 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
6992
6993 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
6994 enable_ranger.
6995 (rvrp_folder::~rvrp_folder): Call disable_ranger.
6996 (hybrid_folder::hybrid_folder): Call enable_ranger.
6997 (hybrid_folder::~hybrid_folder): Call disable_ranger.
6998
6999 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
7000
7001 * function.c (allocate_struct_function): Set cfun->x_range_query.
7002 * function.h (struct function): Declare x_range_query.
7003 (get_range_query): New.
7004 (get_global_range_query): New.
7005 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
7006 Remove call to safe_grow_cleared.
7007 * gimple-range.cc (get_range_global): New.
7008 (gimple_range_global): Move from gimple-range.h.
7009 (get_global_range_query): New.
7010 (global_range_query::range_of_expr): New.
7011 (enable_ranger): New.
7012 (disable_ranger): New.
7013 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
7014 (class global_range_query): New.
7015 (enable_ranger): New.
7016 (disable_ranger): New.
7017 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
7018 dump_all_value_ranges to dump.
7019 * tree-vrp.c (vrp_prop::finalize): Same.
7020 * value-query.cc (range_query::dump): New.
7021 * value-query.h (range_query::dump): New.
7022 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
7023 (vr_values::dump): ...this.
7024 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
7025 dump and make virtual.
7026
7027 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
7028
7029 * config/i386/i386.c (ix86_autovectorize_vector_modes):
7030 Add V4QImode and V16QImode for TARGET_SSE2.
7031 * doc/sourcebuild.texi (Vector-specific attributes):
7032 Add vect64 and vect32 description.
7033
7034 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
7035
7036 * gimple-range-gori.cc (range_def_chain::register_dependency):
7037 Resize m_def_chain when needed.
7038
7039 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
7040
7041 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
7042 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
7043 * config/arm/vec-common.md: .. here. Add support for MVE.
7044
7045 2021-05-26 Jakub Jelinek <jakub@redhat.com>
7046
7047 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
7048 register keywords.
7049 * config/microblaze/microblaze.c (microblaze_legitimize_address,
7050 call_internal1,
7051 microblaze_option_override, print_operand): Likewise.
7052 * config/microblaze/microblaze.md (call_internal_plt,
7053 call_value_intern_plt, call_value_intern): Likewise.
7054 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
7055 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
7056 call_value_multiple_internal1): Likewise.
7057 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
7058
7059 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7060
7061 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
7062 arc_ccfsm_advance, symbolic_reference_mentioned_p,
7063 arc_raw_symbolic_reference_mentioned_p): Remove register
7064 keyword.
7065
7066 2021-05-26 Jakub Jelinek <jakub@redhat.com>
7067
7068 PR libgomp/100573
7069 * omp-low.c: Include omp-offload.h.
7070 (create_omp_child_function): If current_function_decl has
7071 "omp declare target" attribute and is_gimple_omp_offloaded,
7072 remove that attribute from the copy of attribute list and
7073 add "omp target entrypoint" attribute instead.
7074 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
7075 variables for offloading if in omp_maybe_offloaded_ctx.
7076 * omp-offload.c (pass_omp_target_link::execute): Nullify second
7077 argument to GOMP_target_data_ext in offloaded code.
7078
7079 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
7080
7081 * config/csky/csky.c (csky_can_change_mode_class): Delete.
7082 For csky, HF/SF mode use the low bits of VREGS.
7083
7084 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
7085
7086 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
7087 DECL which is a reference for OMP.
7088
7089 2021-05-26 Martin Liska <mliska@suse.cz>
7090
7091 PR gcov-profile/100751
7092 * doc/gcov.texi: Document that __gcov_dump can be called just
7093 once and that __gcov_reset resets run-time counters.
7094
7095 2021-05-26 Martin Liska <mliska@suse.cz>
7096
7097 * doc/install.texi: Port relevant part from install-old.texi
7098 and re-generate list of CPUs and systems.
7099
7100 2021-05-26 Martin Liska <mliska@suse.cz>
7101
7102 * Makefile.in: Remove it.
7103 * doc/include/fdl.texi: Update next/previous chapters.
7104 * doc/install.texi: Likewise.
7105 * doc/install-old.texi: Removed.
7106
7107 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
7108
7109 * config/csky/csky.c (ck810_legitimate_index_p): Support
7110 "base + index" with DF mode.
7111 * config/csky/constraints.md ("Y"): New constraint for memory operands
7112 without index register.
7113 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
7114 when mov between memory and general registers, and lower their priority.
7115 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
7116
7117 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
7118
7119 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
7120
7121 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
7122
7123 * config/csky/csky.md (untyped_call): Emit clobber for return
7124 registers to mark them used.
7125
7126 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
7127
7128 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
7129
7130 2021-05-26 Andrew Pinski <apinski@marvell.com>
7131
7132 * match.pd (x < 0 ? ~y : y): New patterns.
7133
7134 2021-05-26 Andrew Pinski <apinski@marvell.com>
7135
7136 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
7137 A?POW2:0 and A?0:POW2.
7138
7139 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7140
7141 * gimple-range-gori.cc (class logical_stmt_cache): Delete
7142 (logical_stmt_cache::logical_stmt_cache ): Delete.
7143 (logical_stmt_cache::~logical_stmt_cache): Delete.
7144 (logical_stmt_cache::cache_entry::dump): Delete.
7145 (logical_stmt_cache::get_range): Delete.
7146 (logical_stmt_cache::cached_name ): Delete.
7147 (logical_stmt_cache::same_cached_name): Delete.
7148 (logical_stmt_cache::cacheable_p): Delete.
7149 (logical_stmt_cache::slot_diagnostics ): Delete.
7150 (logical_stmt_cache::dump): Delete.
7151 (gori_compute_cache::gori_compute_cache): Delete.
7152 (gori_compute_cache::~gori_compute_cache): Delete.
7153 (gori_compute_cache::compute_operand_range): Delete.
7154 (gori_compute_cache::cache_stmt): Delete.
7155 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
7156 virtual.
7157 (class gori_compute_cache): Delete.
7158
7159 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7160
7161 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
7162 intead of m_cache.
7163 (fold_using_range::range_of_address): Adjust.
7164 (fold_using_range::range_of_phi): Adjust.
7165 * gimple-range.h (class fur_source): Adjust.
7166 (fur_source::fur_source): Adjust.
7167
7168 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7169
7170 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
7171 from expr_range_in_bb and adjust.
7172 (gori_compute::compute_name_range_op): Adjust.
7173 (gori_compute::optimize_logical_operands): Adjust.
7174 (gori_compute::compute_logical_operands_in_chain): Adjust.
7175 (gori_compute::compute_operand1_range): Adjust.
7176 (gori_compute::compute_operand2_range): Adjust.
7177 (ori_compute_cache::cache_stmt): Adjust.
7178 * gimple-range-gori.h (gori_compute): Rename prototype.
7179
7180 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7181
7182 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
7183 checked only after range_of_stmt, not range_on_entry.
7184 (gimple_ranger::range_on_entry): Check for non-null in any
7185 predecessor block, if it is not already non-null.
7186 (gimple_ranger::range_on_exit): DOnt check for non-null after
7187 range on entry call.
7188 (gimple_ranger::dump_bb): New. Split from dump.
7189 (gimple_ranger::dump): Adjust.
7190 * gimple-range.h (class gimple_ranger): Adjust.
7191
7192 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7193
7194 * gimple-range-cache.cc (struct range_timestamp): Delete.
7195 (class temporal_cache): Adjust.
7196 (temporal_cache::get_timestamp): Delete.
7197 (temporal_cache::set_dependency): Delete.
7198 (temporal_cache::temporal_value): Adjust.
7199 (temporal_cache::current_p): Take dependencies as params.
7200 (temporal_cache::set_timestamp): Adjust.
7201 (temporal_cache::set_always_current): Adjust.
7202 (ranger_cache::get_non_stale_global_range): Adjust.
7203 (ranger_cache::register_dependency): Delete.
7204 * gimple-range-cache.h (class range_cache): Adjust.
7205
7206 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7207
7208 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
7209 bitmap obstack.
7210 (range_def_chain::~range_def_chain): Dispose of obstack rather than
7211 each individual bitmap.
7212 (range_def_chain::set_import): New.
7213 (range_def_chain::get_imports): New.
7214 (range_def_chain::chain_import_p): New.
7215 (range_def_chain::register_dependency): Rename from build_def_chain
7216 and set imports.
7217 (range_def_chain::def_chain_in_bitmap_p): New.
7218 (range_def_chain::add_def_chain_to_bitmap): New.
7219 (range_def_chain::has_def_chain): Just check first depenedence.
7220 (range_def_chain::get_def_chain): Process imports, use generic
7221 register_dependency routine.
7222 (range_def_chain::dump): New.
7223 (gori_map::gori_map): Allocate import list.
7224 (gori_map::~gori_map): Release imports.
7225 (gori_map::exports): Check for past allocated block size.
7226 (gori_map::imports): New.
7227 (gori_map::def_chain_in_export_p): Delete.
7228 (gori_map::is_import_p): New.
7229 (gori_map::maybe_add_gori): Handle imports.
7230 (gori_map::dump): Adjust output, add imports.
7231 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
7232 (gori_export_iterator::gori_export_iterator): New.
7233 (gori_export_iterator::next): New.
7234 (gori_export_iterator::get_name): New.
7235 * gimple-range-gori.h (range_def_chain): Add imports and direct
7236 dependecies via struct rdc.
7237 (range_def_chain::depend1): New.
7238 (range_def_chain::depend2): New.
7239 (class gori_map): Adjust.
7240 (FOR_EACH_GORI_IMPORT_NAME): New.
7241 (FOR_EACH_GORI_EXPORT_NAME): New.
7242 (class gori_export_iterator): New.
7243
7244 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7245
7246 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
7247 export cache filling to here.
7248 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
7249
7250 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
7251
7252 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
7253 (gori_map): Move to gimple-range-gori.h.
7254 (gori_compute::gori_compute): Adjust.
7255 (gori_compute::~gori_compute): Delete.
7256 (gori_compute::compute_operand_range_switch): Adjust.
7257 (gori_compute::compute_operand_range): Adjust.
7258 (gori_compute::compute_logical_operands): Adjust.
7259 (gori_compute::has_edge_range_p ): Adjust.
7260 (gori_compute::set_range_invariant): Delete.
7261 (gori_compute::dump): Adjust.
7262 (gori_compute::outgoing_edge_range_p): Adjust.
7263 * gimple-range-gori.h (class range_def_chain): Relocate here.
7264 (class gori_map): Relocate here.
7265 (class gori_compute): Inherit from gori_map, and adjust.
7266
7267 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
7268
7269 * value-range.cc (range_tests_legacy): Use
7270 build_nonstandard_integer_type instead of int and short.
7271
7272 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
7273
7274 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
7275 when really creating an initialization statement for it.
7276
7277 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
7278
7279 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
7280
7281 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
7282
7283 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
7284
7285 2021-05-25 Martin Liska <mliska@suse.cz>
7286
7287 PR tree-optimization/92860
7288 PR target/99592
7289 * optc-save-gen.awk: Remove exceptions.
7290
7291 2021-05-25 Martin Liska <mliska@suse.cz>
7292
7293 * asan.h (sanitize_coverage_p): New function.
7294 * doc/extend.texi: Document it.
7295 * fold-const.c (fold_range_test): Use sanitize_flags_p
7296 instead of flag_sanitize_coverage.
7297 (fold_truth_andor): Likewise.
7298 * sancov.c: Likewise.
7299 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
7300 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
7301 -fsanitize-coverage when inlining.
7302
7303 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
7304
7305 * config/csky/csky-modes.def : Fix copyright.
7306
7307 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
7308
7309 * config/csky/csky-modes.def : Amend copyright.
7310 * config/csky/csky_insn_fpuv2.md : Likewise.
7311 * config/csky/csky_insn_fpuv3.md : Likewise.
7312
7313 2021-05-25 Richard Biener <rguenther@suse.de>
7314
7315 PR middle-end/100727
7316 * calls.c (initialize_argument_information): Explicitely test
7317 for WITH_SIZE_EXPR.
7318 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
7319
7320 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
7321
7322 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
7323 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
7324 the signle definition. The signle definition may not work well
7325 at simplify_subreg_regno().
7326 (HARD_FRAME_POINTER_REGNUM): New.
7327 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
7328 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
7329 csky_initial_elimination_offset, csky_expand_prologue,
7330 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
7331
7332 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
7333
7334 * config/csky/csky.c (csky_option_override):
7335 Init csky_arch_isa_features[] in advance, so TARGET_DSP
7336 and TARGET_DIV can be set well.
7337
7338 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
7339
7340 * config/csky/constraints.md ("l", "h"): Delete.
7341 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
7342 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
7343 * config/csky/csky.c (regno_reg_classm,
7344 csky_secondary_reload, csky_register_move_cost):
7345 Use HILO_REGS instead of LO_REGS and HI_REGS.
7346
7347 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
7348
7349 * config/csky/constraints.md ("W"): New constriant for mem operand
7350 with base reg, index register.
7351 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
7352 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
7353 constraint.
7354 ("Dv"): New constraint for const double value that can be used at
7355 fmovi instruction.
7356 * config/csky/csky-modes.def (HFmode): New mode.
7357 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
7358 to "csky_valid_mem_constraint_operand" and support new constraint
7359 "W".
7360 (csky_get_movedouble_length): New.
7361 (fpuv3_output_move): New.
7362 (fpuv3_const_double): New.
7363 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
7364 (decompose_csky_address): Refine.
7365 (csky_print_operand): New "CONST_DOUBLE" operand.
7366 (csky_output_move): Support fpv3 instructions.
7367 (csky_get_movedouble_length): New.
7368 (fpuv3_output_move): New.
7369 (fpuv3_const_double): New.
7370 (csky_emit_compare): Cover float comparsion.
7371 (csky_emit_compare_float): Refine.
7372 (csky_vaild_fpuv2_mem_operand): Rename to
7373 "csky_valid_mem_constraint_operand" and support new constraint "W".
7374 (ck860_rtx_costs): New.
7375 (csky_rtx_costs): Add the cost calculation of CK860.
7376 (regno_reg_class): New vregs for fpuv3.
7377 (csky_dbx_regno): Likewise.
7378 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
7379 (csky_conditional_register_usage): Suporrot fpuv3.
7380 (csky_dwarf_register_span): Suporrot fpuv3.
7381 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
7382 (ck810_legitimate_index_p): Support fp16.
7383 * config/csky/csky.h (TARGET_TLS): ADD CK860.
7384 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
7385 (TARGET_SINGLE_FPU): Support fpuv3.
7386 (TARGET_SUPPORT_FPV3): New.
7387 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
7388 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
7389 REG_CLASS_CONTENTS): Support fpuv3.
7390 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
7391 (csky_movsf_fpv2): Likewise.
7392 (ck801_movsf): Likewise.
7393 (csky_movsf): Likewise.
7394 (movdf): Likewise.
7395 (csky_movdf_fpv2): Likewise.
7396 (ck801_movdf): Likewise.
7397 (csky_movdf): Likewise.
7398 (movsicc): Refine. Use "comparison_operatior" instead of
7399 "ordered_comparison_operatior".
7400 (addsicc): Likewise.
7401 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
7402 (call_value_internal_vh): New.
7403 * config/csky/csky_cores.def (CK860): New arch and cpu.
7404 (fpv3_hf): New.
7405 (fpv3_hsf): New.
7406 (fpv3_sdf): New.
7407 (fpv3): New.
7408 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
7409 into emit-patterns and match-patterns, remain the emit-patterns here,
7410 and move the match-patterns to csky_insn_fpuv2.md or
7411 csky_insn_fpuv3.md.
7412 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
7413 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
7414 isntructions.
7415 * config/csky/csky_isa.def (fcr): New.
7416 (fpv3_hi): New.
7417 (fpv3_hf): New.
7418 (fpv3_sf): New.
7419 (fpv3_df): New.
7420 (CK860): New definition for ck860.
7421 * config/csky/csky_tables.opt (ck860): New processors ck860,
7422 ck860f. And new arch ck860.
7423 (fpv3_hf): New.
7424 (fpv3_hsf): New.
7425 (fpv3_hdf): New.
7426 (fpv3): New.
7427 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
7428 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
7429 * config/csky/t-csky-elf: Support 860.
7430 * config/csky/t-csky-linux: Likewise.
7431 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
7432
7433 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
7434
7435 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
7436 add generation of logical-add and add-logical fusion pairs.
7437 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
7438 and powerpc mask.
7439 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
7440 logical-add and add-logical fusion by default.
7441 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
7442 -mpower10-fusion-add-logical options.
7443 * config/rs6000/fusion.md: Regenerate file.
7444
7445 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
7446
7447 * value-range.cc (irange::legacy_equal_p): Check type when
7448 comparing VR_VARYING types.
7449 (range_tests_legacy): Test comparing VARYING ranges of different
7450 sizes.
7451
7452 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
7453
7454 * config/aarch64/aarch64.c (neoversen1_tunings):
7455 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
7456
7457 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
7458
7459 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
7460 extern weak symbols. Limit symbol offsets for non-GOT symbols with
7461 PIC/PIE.
7462
7463 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
7464
7465 * config/arm/neon.md (vec_load_lanesxi<mode>)
7466 (vec_store_lanexoi<mode>): Move ...
7467 * config/arm/vec-common.md: here.
7468
7469 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
7470
7471 * config/arm/neon.md (vec_load_lanesoi<mode>)
7472 (vec_store_lanesoi<mode>): Move ...
7473 * config/arm/vec-common.md: here.
7474
7475 2021-05-24 liuhongt <hongtao.liu@intel.com>
7476
7477 PR target/100660
7478 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
7479 stmt with GIMPLE_NOP when lhs doesn't exist.
7480
7481 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
7482
7483 PR target/100722
7484 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
7485 New instruction pattern.
7486 (*push<VI_32:mode>2): Ditto.
7487 (push splitter for SSE registers): New splitter.
7488
7489 2021-05-23 Andrew Pinski <apinski@marvell.com>
7490
7491 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
7492
7493 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
7494
7495 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
7496 * config/rs6000/fusion.md: Regenerate file.
7497
7498 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
7499
7500 * config/rs6000/genfusion.pl (gen_addadd): New function.
7501 * config/rs6000/fusion.md: Regenerate file.
7502 * config/rs6000/rs6000-cpus.def: Add
7503 OPTION_MASK_P10_FUSION_2ADD to masks.
7504 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7505 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
7506 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
7507
7508 2021-05-21 Jakub Jelinek <jakub@redhat.com>
7509
7510 PR middle-end/99928
7511 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
7512 * gimplify.c (enum gimplify_omp_var_data): Fix up
7513 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
7514 (omp_lastprivate_for_combined_outer_constructs): If combined target
7515 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
7516 GOVD_MAP | GOVD_SEEN.
7517 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
7518 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
7519 (gimplify_adjust_omp_clauses): For firstprivate clauses with
7520 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
7521 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
7522 let it be replaced by implicit map clause.
7523
7524 2021-05-21 Jakub Jelinek <jakub@redhat.com>
7525
7526 PR middle-end/99928
7527 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
7528 function.
7529 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
7530 (gimplify_omp_for): Likewise.
7531
7532 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
7533
7534 PR middle-end/90115
7535 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
7536 'external' in blocks.
7537
7538 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
7539
7540 PR middle-end/90115
7541 * flag-types.h (enum openacc_privatization): New.
7542 * params.opt (-param=openacc-privatization): New.
7543 * doc/invoke.texi (openacc-privatization): Document it.
7544 * omp-general.h (get_openacc_privatization_dump_flags): New
7545 function.
7546 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
7547 * omp-offload.c (execute_oacc_device_lower)
7548 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
7549 * target.def (goacc.adjust_private_decl): Add 'location_t'
7550 parameter.
7551 * doc/tm.texi: Regenerate.
7552 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
7553 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
7554 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
7555 Likewise. Preserve it for...
7556 (nvptx_goacc_expand_var_decl): ... use here.
7557
7558 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
7559
7560 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
7561 DejaGnu selector.
7562
7563 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
7564
7565 PR middle-end/90115
7566 * omp-low.c (oacc_privatization_candidate_p): New function.
7567 (oacc_privatization_scan_clause_chain)
7568 (oacc_privatization_scan_decl_chain): Use it. Also
7569 'gcc_checking_assert' that we're not seeing duplicates.
7570
7571 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
7572
7573 PR middle-end/90115
7574 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
7575 work to be done.
7576
7577 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
7578
7579 PR middle-end/90115
7580 * omp-offload.c (execute_oacc_device_lower): Explain.
7581
7582 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
7583
7584 PR middle-end/90115
7585 * omp-offload.c (execute_oacc_device_lower)
7586 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
7587 case, too.
7588 * internal-fn.c (expand_UNIQUE): Don't expect
7589 'IFN_UNIQUE_OACC_PRIVATE'.
7590
7591 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
7592
7593 PR middle-end/90115
7594 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
7595
7596 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
7597
7598 PR middle-end/90115
7599 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
7600 (nvptx_goacc_expand_var_decl): Tighten.
7601
7602 2021-05-21 Julian Brown <julian@codesourcery.com>
7603 Chung-Lin Tang <cltang@codesourcery.com>
7604 Thomas Schwinge <thomas@codesourcery.com>
7605
7606 PR middle-end/90115
7607 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
7608 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
7609 * doc/tm.texi: Regenerate.
7610 * expr.c (expand_expr_real_1): Expand decls using the
7611 expand_var_decl OpenACC hook if defined.
7612 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
7613 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
7614 * omp-low.c (omp_context): Add oacc_privatization_candidates
7615 field.
7616 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
7617 before fork.
7618 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
7619 private marker's gimple call arguments, and pass it to
7620 lower_oacc_reductions.
7621 (oacc_privatization_scan_clause_chain)
7622 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
7623 New functions.
7624 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
7625 * omp-offload.c (convert.h): Include.
7626 (oacc_loop_xform_head_tail): Treat private-variable markers like
7627 fork/join when transforming head/tail sequences.
7628 (struct var_decl_rewrite_info): Add struct.
7629 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
7630 (execute_oacc_device_lower): Support rewriting gang-private
7631 variables using target hook, and fix up addr_expr and var_decl
7632 nodes afterwards.
7633 * target.def (adjust_private_decl, expand_var_decl): New hooks.
7634 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
7635 Rename to...
7636 (gcn_goacc_adjust_private_decl): ...this.
7637 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
7638 Rename to...
7639 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
7640 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
7641 definition using gcn_goacc_adjust_gangprivate_decl...
7642 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
7643 gcn_goacc_adjust_private_decl.
7644 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
7645 (gang_private_shared_size): New global variable.
7646 (gang_private_shared_align): Likewise.
7647 (gang_private_shared_sym): Likewise.
7648 (gang_private_shared_hmap): Likewise.
7649 (nvptx_option_override): Initialize these.
7650 (nvptx_file_end): Output gang_private_shared_sym.
7651 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
7652 New functions.
7653 (nvptx_set_current_function): Clear gang_private_shared_hmap.
7654 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
7655 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
7656
7657 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
7658
7659 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
7660
7661 2021-05-21 Richard Biener <rguenther@suse.de>
7662 H.J. Lu <hjl.tools@gmail.com>
7663
7664 PR middle-end/90773
7665 * expr.c (expand_constructor): Elide expand_constructor if
7666 move by pieces is preferred.
7667
7668 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7669
7670 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
7671 Take a flag and mode value as arguments.
7672 (aarch64_modifies_global_state_p): Likewise.
7673 (aarch64_reads_global_state_p): Likewise.
7674 (aarch64_could_trap_p): Likewise.
7675 (aarch64_get_attributes): Likewise.
7676 (aarch64_init_simd_builtins): Adjust callsite of above.
7677 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
7678 function attributes to apply to builtins.
7679 (aarch64_init_crc32_builtins): Likewise.
7680 (aarch64_init_builtin_rsqrt): Likewise.
7681
7682 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
7683
7684 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
7685 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
7686 (gen_2logical): Use new fusion types.
7687 * config/rs6000/fusion.md: Regenerate.
7688
7689 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
7690
7691 PR target/100637
7692 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
7693 Handle V4QI and V2HI modes.
7694 (ix86_expand_sse_movcc): Ditto.
7695 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
7696 New instruction pattern.
7697 (*eq<VI_32:mode>3): Ditto.
7698 (*gt<VI_32:mode>3): Ditto.
7699 (*xop_pcmov_<VI_32:mode>): Ditto.
7700 (mmx_pblendvb32): Ditto.
7701 (mmx_pblendvb64): Rename from mmx_pblendvb.
7702 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
7703 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
7704 (vcond<VI_32:mode><VI_32:mode>): Ditto.
7705 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
7706 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
7707
7708 2021-05-21 Jakub Jelinek <jakub@redhat.com>
7709
7710 PR tree-optimization/94589
7711 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
7712 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
7713 not the same as cmp3) treat <= the same as < and >= the same as >.
7714 Don't require that cond2_phi_edge is true edge, instead take
7715 false/true edges into account based on cmp1/cmp2 comparison kinds.
7716
7717 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
7718
7719 PR target/100637
7720 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
7721 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
7722 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
7723 using SMAXMIN_MMXMODEI mode iterator.
7724 (*<smaxmin:code>v4qi3): New insn pattern.
7725 (*<smaxmin:code>v2hi3): Ditto.
7726 (SMAXMIN_VI_32): New mode iterator.
7727 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
7728 (UMAXMIN_MMXMODEI): New mode iterator.
7729 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
7730 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
7731 using UMAXMIN_MMXMODEI mode iterator.
7732 (*<umaxmin:code>v4qi3): New insn pattern.
7733 (*<umaxmin:code>v2hi3): Ditto.
7734 (UMAXMIN_VI_32): New mode iterator.
7735 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
7736 (abs<VI_32:mode>2): New insn pattern.
7737 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
7738 * config/i386/sse.md: ... here.
7739
7740 2021-05-20 Clement Chigot <clement.chigot@atos.net>
7741 David Edelsohn <dje.gcc@gmail.com>
7742
7743 * collect2.c (scan_prog_file): Issue non-fatal warning for
7744 non-COFF files.
7745
7746 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
7747
7748 * doc/invoke.texi (-Wno-c++11-extensions)
7749 (-Wno-c++14-extensions, -Wno-c++17-extensions)
7750 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
7751 new options.
7752
7753 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
7754
7755 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
7756 * config/darwin.c (darwin_override_options): Likewise.
7757 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
7758 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
7759 (DWARF2_FRAME_REG_OUT): Likewise.
7760 * config/mips/mips.c (mips_output_filename): Likewise.
7761 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
7762 Likewise.
7763 (rs6000_dbx_register_number): Likewise.
7764 * dbxout.c: Include flags.h.
7765 * dwarf2cfi.c (cfi_label_required_p): Likewise.
7766 (dwarf2out_do_frame): Likewise.
7767 * except.c: Include flags.h.
7768 * final.c (dwarf2_debug_info_emitted_p): Likewise.
7769 (final_scan_insn_1): Likewise.
7770 * flags.h (dwarf_debuginfo_p): New function declaration.
7771 * opts.c (dwarf_debuginfo_p): New function definition.
7772 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
7773 * toplev.c (process_options): Likewise.
7774
7775 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
7776
7777 * common.opt: Change type to support bitmasks.
7778 * flag-types.h (enum debug_info_type): Rename enumerator constants.
7779 (NO_DEBUG): New bitmask.
7780 (DBX_DEBUG): Likewise.
7781 (DWARF2_DEBUG): Likewise.
7782 (XCOFF_DEBUG): Likewise.
7783 (VMS_DEBUG): Likewise.
7784 (VMS_AND_DWARF2_DEBUG): Likewise.
7785 * flags.h (debug_set_to_format): New function declaration.
7786 (debug_set_count): Likewise.
7787 (debug_set_names): Likewise.
7788 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
7789 (debug_set_to_format): New function definition.
7790 (debug_set_count): Likewise.
7791 (debug_set_names): Likewise.
7792 (set_debug_level): Update access to debug_type_names.
7793 * toplev.c: Likewise.
7794
7795 2021-05-20 Martin Sebor <msebor@redhat.com>
7796
7797 PR middle-end/100684
7798 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
7799
7800 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
7801
7802 PR target/100701
7803 * config/i386/i386.md (isa): Remove x64_bmi.
7804 (enabled): Remove x64_bmi.
7805 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
7806 Remove general register alternative.
7807 (*andnot<VI_32:mode>3): Ditto.
7808 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
7809 (*<any_logic:code><VI_32:mode>3): Ditto.
7810
7811 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
7812
7813 * config/arm/arm.c: Include head files tree-vectorizer.h and
7814 cfgloop.h.
7815
7816 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
7817
7818 PR target/100637
7819 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
7820 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
7821 (<s>mulv4hi3_highpart): New expander.
7822 (*<s>mulv2hi3_highpart): New insn pattern.
7823 (<s>mulv2hi3_higpart): New expander.
7824 (*<any_shift:insn>v2hi3): New insn pattern.
7825 (<any_shift:insn>v2hi3): New expander.
7826 * config/i386/sse.md (smulhrsv2hi3): New expander.
7827 (*smulhrsv2hi3): New insn pattern.
7828
7829 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
7830
7831 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
7832 parameter.
7833 * params.opt (vect-inner-loop-cost-factor): New.
7834 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
7835 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
7836 tree-vectorizer.h and its required ones.
7837 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
7838 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
7839 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
7840 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
7841 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
7842 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
7843 Likewise.
7844 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
7845 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
7846 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
7847
7848 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
7849 Torbjörn Svensson <torbjorn.svensson@st.com>
7850
7851 PR c/42579
7852 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
7853
7854 2021-05-20 Jakub Jelinek <jakub@redhat.com>
7855
7856 PR middle-end/99928
7857 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
7858 explicit linear clause when combined with target, make it map(tofrom:)
7859 instead of no clause or firstprivate.
7860
7861 2021-05-20 Jakub Jelinek <jakub@redhat.com>
7862
7863 PR tree-optimization/94589
7864 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
7865 of integral conversions.
7866
7867 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
7868
7869 * gimple-range.cc (fur_source::get_operand): New.
7870 (gimple_range_fold): Delete.
7871 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
7872 (fold_using_range::range_of_range_op): Move from gimple_ranger.
7873 (fold_using_range::range_of_address): Ditto.
7874 (fold_using_range::range_of_phi): Ditto.
7875 (fold_using_range::range_of_call): Ditto.
7876 (fold_using_range::range_of_builtin_ubsan_call): Move from
7877 range_of_builtin_ubsan_call.
7878 (fold_using_range::range_of_builtin_call): Move from
7879 range_of_builtin_call.
7880 (gimple_ranger::range_of_builtin_call): Delete.
7881 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
7882 (gimple_ranger::fold_range_internal): New.
7883 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
7884 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
7885 gimple_ranger. Improve ranges of SSA_NAMES when possible.
7886 * gimple-range.h (gimple_ranger): Remove various range_of routines.
7887 (class fur_source): New.
7888 (class fold_using_range): New.
7889 (fur_source::fur_source): New.
7890 (fold_range): New.
7891 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
7892 instead of range_of_builtin_call.
7893
7894 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
7895
7896 * doc/cpp.texi (Common Predefined Macros): Update documentation
7897 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
7898
7899 2021-05-19 Alex Coplan <alex.coplan@arm.com>
7900
7901 PR target/100333
7902 * config/arm/arm.md (nonsecure_call_internal): Always ensure
7903 callee's address is in a register.
7904
7905 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
7906
7907 * common/config/riscv/riscv-common.c
7908 (riscv_subset_list::parsing_subset_version): Properly parse the letter
7909 'p' in '-march'.
7910 (riscv_subset_list::parse_std_ext,
7911 riscv_subset_list::parse_multiletter_ext): To handle errors generated
7912 in riscv_subset_list::parsing_subset_version.
7913
7914 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
7915
7916 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
7917 type attribute in patterns generating XTN(2).
7918
7919 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
7920
7921 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
7922 Remove as duplicate of...
7923 (aarch64_xtn<mode>): This.
7924 (aarch64_xtn2<mode>_le): Move position in file.
7925 (aarch64_xtn2<mode>_be): Move position in file.
7926 (aarch64_xtn2<mode>): Move position in file.
7927 (vec_pack_trunc_<mode>): Define as an expander.
7928
7929 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
7930
7931 * config/aarch64/aarch64-simd-builtins.def: Split builtin
7932 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
7933 separate scalar and vector generators.
7934 * config/aarch64/aarch64-simd.md
7935 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
7936 split into...
7937 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
7938 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
7939 * config/aarch64/iterators.md: Define SD_HSDI iterator.
7940
7941 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
7942
7943 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
7944 of UNSPEC_SQXTUN2.
7945 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
7946
7947 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
7948
7949 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
7950 Implement as an expand emitting a big/little endian
7951 instruction pattern.
7952 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
7953 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
7954
7955 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
7956
7957 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
7958 Implement as an expand emitting a big/little endian
7959 instruction pattern.
7960 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
7961 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
7962 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
7963 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
7964
7965 2021-05-19 Richard Biener <rguenther@suse.de>
7966
7967 PR middle-end/100672
7968 * fold-const.c (fold_negate_expr_1): Use element_precision.
7969 (negate_expr_p): Likewise.
7970
7971 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
7972
7973 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
7974 (pred_load): New int attribute.
7975 * config/aarch64/aarch64-sve.md
7976 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
7977 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
7978 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
7979 code_for_aarch64_load.
7980
7981 2021-05-19 Richard Biener <rguenther@suse.de>
7982
7983 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
7984 sure TARGET_MEM_REF bases are expanded as memory.
7985 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
7986 Do not mark TARGET_MEM_REF bases addressable.
7987 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
7988 TARGET_MEM_REF bases as never rewritable.
7989 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
7990 walk TARGET_MEM_REF bases as address-takens.
7991 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
7992
7993 2021-05-19 Richard Biener <rguenther@suse.de>
7994
7995 * builtins.c (get_object_alignment_1): Strip outer
7996 WITH_SIZE_EXPR.
7997 * tree-dfa.c (get_ref_base_and_extent): Handle outer
7998 WITH_SIZE_EXPR for size processing and process the
7999 containing ref.
8000 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
8001 outer WITH_SIZE_EXPR.
8002 (ao_ref_base_alias_ptr_type): Likewise.
8003 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
8004 and handle that accordingly, stripping it for the
8005 core alias workers.
8006 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
8007 looking through it instead of returning NULL.
8008
8009 2021-05-19 Jakub Jelinek <jakub@redhat.com>
8010
8011 PR middle-end/100576
8012 * builtins.c (check_read_access): Convert bound to size_type_node if
8013 non-NULL.
8014
8015 2021-05-19 Richard Biener <rguenther@suse.de>
8016
8017 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
8018 (verify_types_in_gimple_reference): ... here. Sanitize.
8019 (verify_gimple_call): Verify references in LHS and arguments.
8020 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
8021
8022 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
8023
8024 * config/i386/i386.h (VALID_INT_MODE_P):
8025 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
8026 * config/i386/i386.md (isa): Add x64_bmi.
8027 (enabled): Handle x64_bmi.
8028 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
8029 Add alternative using 64bit general registers.
8030 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
8031
8032 2021-05-19 Jakub Jelinek <jakub@redhat.com>
8033
8034 PR middle-end/99928
8035 * tree.h (OMP_MASTER_COMBINED): Define.
8036 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
8037 handling for outer combined/composite constructs to a loop.
8038 Handle lastprivate on combined target.
8039 (gimplify_expr): Formatting fix.
8040
8041 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
8042
8043 * passes.def: Add sink_code pass before store_merging.
8044 * tree-ssa-sink.c (pass_sink_code:clone): New.
8045
8046 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
8047
8048 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
8049 rs6000_special_adjust_field_align_p.
8050 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8051 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
8052 Remove ABI warning.
8053 (rs6000_function_arg): Likewise.
8054 * config/rs6000/rs6000-protos.h
8055 (rs6000_special_adjust_field_align_p): Remove prototype.
8056 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
8057 Remove.
8058 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
8059 rs6000_special_adjust_field_align_p.
8060
8061 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
8062
8063 PR target/100637
8064 * config/i386/i386.h (VALID_SSE2_REG_MODE):
8065 Add V4QI and V2HI modes.
8066 (VALID_INT_MODE_P): Ditto.
8067 * config/i386/mmx.md (VI_32): New mode iterator.
8068 (mmxvecsize): Handle V4QI and V2HI.
8069 (Yv_Yw): Ditto.
8070 (mov<VI_32:mode>): New expander.
8071 (*mov<mode>_internal): New insn pattern.
8072 (movmisalign<VI_32:mode>): New expander.
8073 (neg<VI_32:mode>): New expander.
8074 (<plusminus:insn><VI_32:mode>3): New expander.
8075 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
8076 (mulv2hi3): New expander.
8077 (*mulv2hi3): New insn pattern.
8078 (one_cmpl<VI_32:mode>2): New expander.
8079 (*andnot<VI_32:mode>3): New insn pattern.
8080 (<any_logic:code><VI_32:mode>3): New expander.
8081 (*<any_logic:code><VI_32:mode>3): New insn pattern.
8082
8083 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
8084
8085 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
8086 Fix a mode mismatch with operand 1.
8087
8088 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
8089
8090 PR target/100626
8091 * config/i386/i386-expand.c (split_double_mode): Return
8092 temporary register when simplify_gen_subreg fails with
8093 the high half od the paradoxical subreg.
8094
8095 2021-05-18 Richard Biener <rguenther@suse.de>
8096
8097 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
8098 and honor it when expanding.
8099 (expand_used_vars_for_block): Pass through forced_stack_var.
8100 (expand_used_vars): Likewise.
8101 (discover_nonconstant_array_refs_r): Set bits in
8102 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
8103 (avoid_type_punning_on_regs): Likewise.
8104 (discover_nonconstant_array_refs): Likewise.
8105 (pass_expand::execute): Create and pass down forced_stack_var
8106 bitmap. For parameters and returns temporarily set
8107 TREE_ADDRESSABLE when expand_function_start.
8108
8109 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
8110
8111 * doc/sourcebuild.texi: Document 'dg-note'.
8112
8113 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
8114
8115 PR other/100598
8116 * configure: Regenerate.
8117 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
8118
8119 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
8120
8121 * gimple.h (is_gimple_omp_oacc): Tighten.
8122 * omp-low.c (check_omp_nesting_restrictions): Adjust.
8123
8124 2021-05-18 Richard Biener <rguenther@suse.de>
8125
8126 * tree-ssa-operands.c (mark_address_taken): Simplify.
8127
8128 2021-05-18 Martin Liska <mliska@suse.cz>
8129
8130 * config/gcn/mkoffload.c (STR): Redefine.
8131 * config/i386/intelmic-mkoffload.c (STR): Likewise.
8132 * config/nvptx/mkoffload.c (STR): Likewise.
8133
8134 2021-05-18 Martin Liska <mliska@suse.cz>
8135
8136 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
8137 Use startswith function instead of strncmp.
8138 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
8139 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
8140 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
8141 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
8142 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
8143 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
8144 * config/arm/arm.c (arm_file_start): Likewise.
8145 (arm_valid_target_attribute_rec): Likewise.
8146 (thumb1_md_asm_adjust): Likewise.
8147 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
8148 * config/avr/avr.c (STR_PREFIX_P): Likewise.
8149 (avr_set_current_function): Likewise.
8150 (avr_handle_addr_attribute): Likewise.
8151 (avr_asm_output_aligned_decl_common): Likewise.
8152 (avr_asm_named_section): Likewise.
8153 (avr_section_type_flags): Likewise.
8154 (avr_asm_select_section): Likewise.
8155 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
8156 (c6x_section_type_flags): Likewise.
8157 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
8158 (darwin_objc_declare_unresolved_class_reference): Likewise.
8159 (darwin_objc_declare_class_definition): Likewise.
8160 * config/darwin.c (indirect_data): Likewise.
8161 (darwin_encode_section_info): Likewise.
8162 (darwin_objc2_section): Likewise.
8163 (darwin_objc1_section): Likewise.
8164 (machopic_select_section): Likewise.
8165 (darwin_globalize_label): Likewise.
8166 (darwin_label_is_anonymous_local_objc_name): Likewise.
8167 (darwin_asm_named_section): Likewise.
8168 (darwin_asm_output_dwarf_offset): Likewise.
8169 * config/frv/frv.c (frv_string_begins_with): Likewise.
8170 (frv_in_small_data_p): Likewise.
8171 * config/gcn/mkoffload.c (STR): Likewise.
8172 (main): Likewise.
8173 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
8174 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
8175 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
8176 (ix86_md_asm_adjust): Likewise.
8177 * config/i386/intelmic-mkoffload.c (STR): Likewise.
8178 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
8179 (i386_pe_file_end): Likewise.
8180 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
8181 (ia64_section_type_flags): Likewise.
8182 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
8183 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
8184 (mips16_stub_function_p): Likewise.
8185 (mips_function_rodata_section): Likewise.
8186 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
8187 (msp430_function_section): Likewise.
8188 (msp430_section_type_flags): Likewise.
8189 (msp430_expand_helper): Likewise.
8190 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
8191 (nios2_valid_target_attribute_rec): Likewise.
8192 * config/nvptx/mkoffload.c (process): Likewise.
8193 (STR): Likewise.
8194 * config/pa/som.h: Likewise.
8195 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
8196 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
8197 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
8198 (rs6000_inner_target_options): Likewise.
8199 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
8200 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
8201 * config/vax/vax.c (vax_output_int_move): Likewise.
8202 * config/vms/vms-ld.c (startswith): Likewise.
8203 (process_args): Likewise.
8204 (main): Likewise.
8205 * config/vms/vms.c: Likewise.
8206
8207 2021-05-18 Jakub Jelinek <jakub@redhat.com>
8208
8209 PR rtl-optimization/100590
8210 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
8211 they are NONJUMP_INSN_P.
8212
8213 2021-05-18 Jakub Jelinek <jakub@redhat.com>
8214
8215 PR c++/100580
8216 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
8217 DECL_ASSEMBLER_NAME on the fn_decl.
8218
8219 2021-05-18 Jakub Jelinek <jakub@redhat.com>
8220
8221 PR tree-optimization/94589
8222 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
8223 phi result used in (res & ~1) == 0 comparison as res >= 0 as
8224 res == 2 would be UB with -ffinite-math-only.
8225
8226 2021-05-18 Martin Liska <mliska@suse.cz>
8227
8228 * Makefile.in: genversion.o should depend on DATESTAMP.
8229
8230 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
8231
8232 * config/arc/simdext.md (negv2si2): Remove round bracket.
8233
8234 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
8235
8236 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
8237 _Bool as macro expanding to _Bool.
8238
8239 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
8240
8241 PR c++/100281
8242 * tree.c (build_reference_type_for_mode)
8243 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
8244 is VOIDmode.
8245 (build_reference_type, build_pointer_type): Invoke
8246 build_*_type_for_mode with VOIDmode.
8247
8248 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
8249
8250 PR tree-optimization/100512
8251 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
8252 and non-zero pointer ranges as invariant.
8253 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
8254 processing from here.
8255
8256 2021-05-17 Tom de Vries <tdevries@suse.de>
8257
8258 PR target/100497
8259 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
8260 * config/nvptx/nvptx.c (nvptx_output_barrier)
8261 (nvptx_output_atomic_insn): New function.
8262 (nvptx_print_operand): Add support for 'B'.
8263 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
8264 insns.
8265
8266 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
8267
8268 PR tree-optimization/100349
8269 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
8270 NULL.
8271
8272 2021-05-17 Tamar Christina <tamar.christina@arm.com>
8273
8274 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
8275 (host_detect_local_cpu): Use it.
8276
8277 2021-05-17 Martin Liska <mliska@suse.cz>
8278
8279 * doc/invoke.texi: Add 2 missing dots.
8280
8281 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
8282
8283 PR bootstrap/100552
8284 * configure.ac: Replace pattern substitution with call to sed.
8285 * configure: Regenerate.
8286
8287 2021-05-17 Richard Biener <rguenther@suse.de>
8288
8289 PR middle-end/100582
8290 * tree.c (array_at_struct_end_p): Get to the base of the
8291 reference before looking for the underlying decl.
8292
8293 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
8294
8295 * genoutput.c (validate_insn_alternatives) Make "wrong number of
8296 alternatives" message more specific, and remove assumption on where
8297 the problem is.
8298
8299 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
8300
8301 * config/arm/iterators.md (V16): New iterator.
8302 (VH_cvtto): New iterator.
8303 (v_cmp_result): Added V4HF and V8HF support.
8304 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
8305 (vcond<mode><mode>): Likewise.
8306 (vcond_mask_<mode><v_cmp_result>): Likewise.
8307 (vcond<VH_cvtto><mode>): New expander.
8308
8309 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
8310
8311 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
8312 prototype.
8313 * config/arm/arm.c (arm_expand_vector_compare): Add support for
8314 MVE.
8315 (arm_expand_vcond): Likewise.
8316 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
8317 VCMPEQQ_N_S, VCMPNEQ_N_S.
8318 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
8319 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
8320 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
8321 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
8322 (@mve_vpselq_<supf><mode>): Likewise.
8323 (@mve_vpselq_f<mode>"): Likewise.
8324 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
8325 and move to vec-common.md.
8326 (vec_cmpu<mode><mode>): Likewise.
8327 (vcond<mode><mode>): Likewise.
8328 (vcond<V_cvtto><mode>): Likewise.
8329 (vcondu<mode><v_cmp_result>): Likewise.
8330 (vcond_mask_<mode><v_cmp_result>): Likewise.
8331 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
8332 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
8333 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
8334 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
8335 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
8336 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
8337 from neon.md.
8338 (vec_cmpu<mode><mode>): Likewise.
8339 (vcond<mode><mode>): Likewise.
8340 (vcond<V_cvtto><mode>): Likewise.
8341 (vcondu<mode><v_cmp_result>): Likewise.
8342 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
8343 condition.
8344
8345 2021-05-17 liuhongt <hongtao.liu@intel.com>
8346
8347 PR target/100549
8348 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
8349 gsi_insert_seq_before instead.
8350
8351 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
8352
8353 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
8354 (arm_sat_ok): ...this.
8355
8356 2021-05-17 Martin Liska <mliska@suse.cz>
8357
8358 * lto-wrapper.c (merge_flto_options): Factor out a new function.
8359 (merge_and_complain): Use it.
8360 (run_gcc): Merge also linker command line -flto=foo argument
8361 with IL files.
8362
8363 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
8364
8365 * config/arm/arm.h (CPP_SPEC): Remove error message about
8366 -mlittle-endian/-mbig-endian conflict.
8367
8368 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
8369
8370 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8371 __ROP_PROTECT__ if -mrop-protect is selected.
8372
8373 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
8374
8375 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
8376 rop_hash_save_offset and rop_hash_size.
8377 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
8378 rop_hash_size and rop_hash_save_offset.
8379 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
8380 (rs6000_emit_prologue): Emit hashst[p] in prologue.
8381 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
8382 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
8383 UNSPEC_HASHCHK.
8384 (hashst): New define_insn.
8385 (hashchk): Likewise.
8386
8387 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
8388
8389 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8390 Disable shrink wrap when inserting ROP-protect instructions.
8391 * config/rs6000/rs6000.opt (mrop-protect): New option.
8392 (mprivileged): Likewise.
8393 * doc/invoke.texi: Document mrop-protect and mprivileged.
8394
8395 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
8396
8397 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
8398 "Remove CC0".
8399
8400 2021-05-15 Martin Jambor <mjambor@suse.cz>
8401
8402 Revert:
8403 2021-05-13 Martin Jambor <mjambor@suse.cz>
8404
8405 PR tree-optimization/100453
8406 * tree-sra.c (sra_modify_assign): All const base accesses do not
8407 need refreshing, not just those from decl_pool.
8408 (sra_modify_assign): Do not refresh into a const base decl.
8409
8410 2021-05-15 Jakub Jelinek <jakub@redhat.com>
8411
8412 PR rtl-optimization/100342
8413 * regcprop.c (copy_value): When copying a source reg in a wider
8414 mode than it has recorded for the value, adjust recorded destination
8415 mode too or punt if !REG_CAN_CHANGE_MODE_P.
8416
8417 2021-05-14 Jason Merrill <jason@redhat.com>
8418
8419 * intl.h: Add comments.
8420
8421 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8422
8423 * config/aarch64/aarch64-simd.md
8424 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
8425 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
8426 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
8427 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
8428 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
8429 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
8430 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
8431 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
8432 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
8433
8434 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8435
8436 PR target/66791
8437 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
8438 boolean logic equivalent.
8439 (vtst_s16): Likewise.
8440 (vtst_s32): Likewise.
8441 (vtst_u8): Likewise.
8442 (vtst_u16): Likewise.
8443 (vtst_u32): Likewise.
8444 (vtst_p8): Likewise.
8445 (vtst_p16): Likewise.
8446 (vtstq_s8): Likewise.
8447 (vtstq_s16): Likewise.
8448 (vtstq_s32): Likewise.
8449 (vtstq_u8): Likewise.
8450 (vtstq_u16): Likewise.
8451 (vtstq_u32): Likewise.
8452 (vtstq_p8): Likewise.
8453 (vtstq_p16): Likewise.
8454 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
8455 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
8456
8457 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8458
8459 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
8460 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
8461 (aarch64_sqdmlsl2<mode>): Delete.
8462 (aarch64_sqdmlal2_lane<mode>): Merge this...
8463 (aarch64_sqdmlsl2_lane<mode>): ... And this...
8464 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
8465 (aarch64_sqdmlal2_laneq<mode>): Merge this...
8466 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
8467 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
8468 (aarch64_sqdmlal2_n<mode>): Merge this...
8469 (aarch64_sqdmlsl2_n<mode>): ... And this...
8470 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
8471
8472 2021-05-13 Martin Sebor <msebor@redhat.com>
8473
8474 PR middle-end/100574
8475 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
8476 all null arguments.
8477
8478 2021-05-13 Martin Sebor <msebor@redhat.com>
8479
8480 PR tree-optimization/93100
8481 PR middle-end/98583
8482 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
8483 don't modify referenced objects.
8484
8485 2021-05-13 Martin Jambor <mjambor@suse.cz>
8486
8487 PR tree-optimization/100453
8488 * tree-sra.c (sra_modify_assign): All const base accesses do not
8489 need refreshing, not just those from decl_pool.
8490 (sra_modify_assign): Do not refresh into a const base decl.
8491
8492 2021-05-13 Martin Liska <mliska@suse.cz>
8493
8494 * tree-ssa-dom.c: Remove m_simplifier.
8495
8496 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
8497
8498 PR target/100563
8499 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
8500 canonicalize DImode inequality comparisons against the
8501 maximum integral value.
8502
8503 2021-05-13 Jakub Jelinek <jakub@redhat.com>
8504
8505 PR tree-optimization/98856
8506 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
8507 Expect V2DI and V4DI arithmetic right shifts to be emulated.
8508 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
8509 caller.
8510 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
8511 expand_vec_perm_2perm_pblendv): New functions.
8512 (ix86_expand_vec_perm_const_1): Use them.
8513 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
8514 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
8515 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
8516 (ashrv4di3): New define_expand.
8517 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
8518 and !TARGET_AVX512VL expansion.
8519
8520 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
8521
8522 PR target/100581
8523 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
8524 sizes < 16 to a register when constructing vpcmov pattern.
8525 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
8526
8527 2021-05-13 Martin Liska <mliska@suse.cz>
8528
8529 * gcov-io.c (gcov_write_block): Remove.
8530 (gcov_write_words): Likewise.
8531 (gcov_read_words): Re-implement using gcov_read_bytes.
8532 (gcov_allocate): Remove.
8533 (GCOV_BLOCK_SIZE): Likewise.
8534 (struct gcov_var): Remove most of the fields.
8535 (gcov_position): Implement with ftell.
8536 (gcov_rewrite): Remove setting of start and offset fields.
8537 (from_file): Re-format.
8538 (gcov_open): Remove setbuf call. It should not be needed.
8539 (gcov_close): Remove internal buffer handling.
8540 (gcov_magic): Use __builtin_bswap32.
8541 (gcov_write_counter): Use directly gcov_write_unsigned.
8542 (gcov_write_string): Use direct fwrite and do not round
8543 to 4 bytes.
8544 (gcov_seek): Use directly fseek.
8545 (gcov_write_tag): Use gcov_write_unsigned directly.
8546 (gcov_write_length): Likewise.
8547 (gcov_write_tag_length): Likewise.
8548 (gcov_read_bytes): Use directly fread.
8549 (gcov_read_unsigned): Use gcov_read_words.
8550 (gcov_read_counter): Likewise.
8551 (gcov_read_string): Use gcov_read_bytes.
8552 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
8553 that size is not in bytes, but words (4B).
8554 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
8555 (GCOV_TAG_ARCS_LENGTH): Likewise.
8556 (GCOV_TAG_ARCS_NUM): Likewise.
8557 (GCOV_TAG_COUNTER_LENGTH): Likewise.
8558 (GCOV_TAG_COUNTER_NUM): Likewise.
8559 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
8560
8561 2021-05-13 liuhongt <hongtao.liu@intel.com>
8562
8563 PR target/94680
8564 * config/i386/sse.md (ssedoublevecmode): Add attribute for
8565 V64QI/V32HI/V16SI/V4DI.
8566 (ssehalfvecmode): Add attribute for V2DI/V2DF.
8567 (*vec_concatv4si_0): Extend to VI124_128.
8568 (*vec_concat<mode>_0): New pre-reload splitter.
8569 * config/i386/predicates.md (movq_parallel): New predicate.
8570
8571 2021-05-13 Alexandre Oliva <oliva@adacore.com>
8572
8573 * targhooks.c (default_zero_call_used_regs): Retry using
8574 successfully-zeroed registers as sources.
8575
8576 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
8577
8578 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
8579
8580 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
8581
8582 PR c/100521
8583 * gimple-range.cc (range_of_builtin_call): Skip out on
8584 processing __builtin_clz when varying.
8585
8586 2021-05-12 Tom de Vries <tdevries@suse.de>
8587
8588 PR target/96005
8589 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
8590 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
8591 to ptx_version_option.
8592 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
8593 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
8594 (define_insn "nvptx_vote_ballot"): Use sync variant for
8595 TARGET_PTX_6_3.
8596 * config/nvptx/nvptx.opt (ptx_version): Add enum.
8597 (mptx): Add option.
8598 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
8599
8600 2021-05-12 Richard Biener <rguenther@suse.de>
8601
8602 PR tree-optimization/100566
8603 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
8604 allow_back for all edge queries.
8605
8606 2021-05-12 liuhongt <hongtao.liu@intel.com>
8607
8608 PR target/99908
8609 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
8610 splitters for pblendvb of NOT mask register.
8611
8612 2021-05-12 Richard Biener <rguenther@suse.de>
8613
8614 PR tree-optimization/100519
8615 * tree-ssa-reassoc.c (can_associate_p): Split into...
8616 (can_associate_op_p): ... this
8617 (can_associate_type_p): ... and this.
8618 (is_reassociable_op): Call can_associate_op_p.
8619 (break_up_subtract_bb): Call the appropriate predicates.
8620 (reassociate_bb): Likewise.
8621
8622 2021-05-12 Martin Liska <mliska@suse.cz>
8623
8624 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
8625 (run_gcc): Use -flto argument detection for merged
8626 fdecoded_options.
8627
8628 2021-05-12 Martin Liska <mliska@suse.cz>
8629
8630 * lto-wrapper.c (print_lto_docs_link): New function.
8631 (run_gcc): Print warning about missing job server detection
8632 after we know NR of partitions. Do the same for -flto{,=1}.
8633 * opts.c (get_option_html_page): Support -flto option.
8634
8635 2021-05-12 Martin Liska <mliska@suse.cz>
8636
8637 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
8638 return type.
8639 (append_option): Remove.
8640 (find_option): Rework to use the vector type.
8641 (remove_option): Remove.
8642 (merge_and_complain): Use vectors for cl_decoded_option data
8643 type arguments.
8644 (append_compiler_options): Likewise.
8645 (append_diag_options): Likewise.
8646 (append_linker_options): Likewise.
8647 (append_offload_options): Likewise.
8648 (compile_offload_image): Likewise.
8649 (compile_images_for_offload_targets): Likewise.
8650 (find_and_merge_options): Likewise.
8651 (run_gcc): Likewise.
8652
8653 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
8654
8655 PR debug/100515
8656 * dwarf2out.c (dwarf2out_finish): Set
8657 have_multiple_function_sections with multi-range text_section.
8658
8659 2021-05-12 Martin Liska <mliska@suse.cz>
8660
8661 PR bootstrap/100560
8662 * Makefile.in: Remove version.h from linker command line.
8663
8664 2021-05-12 Richard Biener <rguenther@suse.de>
8665
8666 PR middle-end/100547
8667 * rtl.h (rtvec_alloc): Make argument size_t.
8668 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
8669
8670 2021-05-12 Jakub Jelinek <jakub@redhat.com>
8671
8672 PR middle-end/100508
8673 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
8674 type, don't reuse DECL_RTL if it has different mode, instead force
8675 creation of a new DEBUG_EXPR.
8676
8677 2021-05-12 Jakub Jelinek <jakub@redhat.com>
8678 Marc Glisse <marc.glisse@inria.fr>
8679
8680 PR tree-optimization/94589
8681 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
8682 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
8683
8684 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
8685
8686 PR target/98218
8687 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
8688 * config/i386/mmx.md (MMXMODE124): New mode iterator.
8689 (V2FI): Ditto.
8690 (mmxintvecmode): New mode attribute.
8691 (mmxintvecmodelower): Ditto.
8692 (*mmx_maskcmpv2sf3_comm): New insn pattern.
8693 (*mmx_maskcmpv2sf3): Ditto.
8694 (vec_cmpv2sfv2si): New expander.
8695 (vcond<V2FI:mode>v2si): Ditto.
8696 (mmx_vlendvps): New insn pattern.
8697 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
8698 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
8699 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
8700
8701 2021-05-11 Martin Sebor <msebor@redhat.com>
8702
8703 PR middle-end/21433
8704 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
8705
8706 2021-05-11 Richard Biener <rguenther@suse.de>
8707
8708 * gimple-fold.c (gimple_fold_call): Do not call
8709 maybe_fold_reference on call arguments or the static chain.
8710 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
8711 inputs.
8712
8713 2021-05-11 Martin Liska <mliska@suse.cz>
8714
8715 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
8716 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
8717 (DEF_HSAIL_SAT_BUILTIN): Likewise.
8718 (DEF_HSAIL_INTR_BUILTIN): Likewise.
8719 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
8720 * doc/frontends.texi: Remove BRIG.
8721 * doc/install.texi: Likewise.
8722 * doc/invoke.texi: Likewise.
8723 * doc/standards.texi: Likewise.
8724 * brig-builtins.def: Removed.
8725 * brig/ChangeLog: Removed.
8726 * brig/Make-lang.in: Removed.
8727 * brig/brig-builtins.h: Removed.
8728 * brig/brig-c.h: Removed.
8729 * brig/brig-lang.c: Removed.
8730 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
8731 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
8732 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
8733 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
8734 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
8735 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
8736 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
8737 * brig/brigfrontend/brig-comment-handler.cc: Removed.
8738 * brig/brigfrontend/brig-control-handler.cc: Removed.
8739 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
8740 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
8741 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
8742 * brig/brigfrontend/brig-function-handler.cc: Removed.
8743 * brig/brigfrontend/brig-function.cc: Removed.
8744 * brig/brigfrontend/brig-function.h: Removed.
8745 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
8746 * brig/brigfrontend/brig-label-handler.cc: Removed.
8747 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
8748 * brig/brigfrontend/brig-machine.c: Removed.
8749 * brig/brigfrontend/brig-machine.h: Removed.
8750 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
8751 * brig/brigfrontend/brig-module-handler.cc: Removed.
8752 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
8753 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
8754 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
8755 * brig/brigfrontend/brig-to-generic.cc: Removed.
8756 * brig/brigfrontend/brig-to-generic.h: Removed.
8757 * brig/brigfrontend/brig-util.cc: Removed.
8758 * brig/brigfrontend/brig-util.h: Removed.
8759 * brig/brigfrontend/brig-variable-handler.cc: Removed.
8760 * brig/brigfrontend/hsa-brig-format.h: Removed.
8761 * brig/brigfrontend/phsa.h: Removed.
8762 * brig/brigspec.c: Removed.
8763 * brig/config-lang.in: Removed.
8764 * brig/gccbrig.texi: Removed.
8765 * brig/lang-specs.h: Removed.
8766 * brig/lang.opt: Removed.
8767
8768 2021-05-11 Richard Biener <rguenther@suse.de>
8769
8770 PR ipa/100513
8771 * ipa-param-manipulation.c
8772 (ipa_param_body_adjustments::modify_call_stmt): Avoid
8773 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
8774 via gimple_call_lhs_ptr.
8775
8776 2021-05-11 Alex Coplan <alex.coplan@arm.com>
8777
8778 PR target/99725
8779 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
8780 Avoid emitting CFA adjusts on the sp if we have the fp.
8781
8782 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
8783
8784 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
8785 (VMULD): New iterator.
8786 (VCOND): Handle V4HF and V8HF.
8787 (VCONQ): Fix entry for V2SF.
8788 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
8789 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
8790 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
8791 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
8792 Use a 128-bit vector mode for the indexed operand. Use stype for
8793 the scheduling type.
8794
8795 2021-05-11 Richard Biener <rguenther@suse.de>
8796
8797 * gimple-fold.c (maybe_fold_reference): Only return
8798 is_gimple_min_invariant values.
8799
8800 2021-05-11 Richard Biener <rguenther@suse.de>
8801
8802 PR middle-end/100509
8803 * gimple-fold.c (fold_gimple_assign): Only call
8804 get_symbol_constant_value on register type symbols.
8805
8806 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
8807 Joe Ramsay <joe.ramsay@arm.com>
8808
8809 PR target/100419
8810 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
8811 (__arm_vcmpneq): Remove duplicate definition.
8812 (__arm_vstrwq_scatter_offset_p): Likewise.
8813 (__arm_vmaxq_x): Likewise.
8814 (__arm_vmlsdavaq): Likewise.
8815 (__arm_vmlsdavaxq): Likewise.
8816 (__arm_vmlsdavq_p): Likewise.
8817 (__arm_vmlsdavxq_p): Likewise.
8818 (__arm_vrmlaldavhaq): Likewise.
8819 (__arm_vstrbq_p): Likewise.
8820 (__arm_vstrbq_scatter_offset): Likewise.
8821 (__arm_vstrbq_scatter_offset_p): Likewise.
8822 (__arm_vstrdq_scatter_offset): Likewise.
8823 (__arm_vstrdq_scatter_offset_p): Likewise.
8824 (__arm_vstrdq_scatter_shifted_offset): Likewise.
8825 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
8826
8827 2021-05-11 Jakub Jelinek <jakub@redhat.com>
8828
8829 PR middle-end/100471
8830 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
8831 is 0, bypass the reduction loop including
8832 GOMP_taskgroup_reduction_unregister call.
8833
8834 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
8835
8836 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
8837 costing_for_scalar.
8838 (rs6000_density_test): Early return if costing_for_scalar is true.
8839 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
8840
8841 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
8842
8843 * doc/tm.texi: Regenerated.
8844 * target.def (init_cost): Add new parameter costing_for_scalar.
8845 * targhooks.c (default_init_cost): Adjust for new parameter.
8846 * targhooks.h (default_init_cost): Likewise.
8847 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
8848 (vect_compute_single_scalar_iteration_cost): Likewise.
8849 (vect_analyze_loop_2): Likewise.
8850 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
8851 (vect_bb_vectorization_profitable_p): Likewise.
8852 * tree-vectorizer.h (init_cost): Likewise.
8853 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
8854 * config/i386/i386.c (ix86_init_cost): Likewise.
8855 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
8856
8857 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
8858
8859 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
8860 vect_nonmem and moved into...
8861 (struct rs6000_cost_data): ...here.
8862 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
8863 (rs6000_add_stmt_cost): Likewise.
8864 (rs6000_finish_cost): Likewise.
8865
8866 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
8867
8868 * range-op.cc (get_bool_state): Adjust head comment.
8869 (operator_not_equal::op1_range): Fix comment.
8870 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
8871
8872 2021-05-10 Martin Sebor <msebor@redhat.com>
8873
8874 PR middle-end/100425
8875 PR middle-end/100510
8876 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
8877 (pass_walloca::xlimit_certain_p): ...to this.
8878 (pass_walloca::gate): Execute for any kind of handled warning.
8879 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
8880 warnings when xlimit_certain_p is set.
8881
8882 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
8883
8884 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
8885 Return ALTIVEC_REGS if that is best_class.
8886 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
8887
8888 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
8889
8890 * config/arm/arm.h (CPP_SPEC): Remove error message about
8891 -mfloat-abi.
8892
8893 2021-05-10 Martin Jambor <mjambor@suse.cz>
8894
8895 * ipa-prop.h (IPA_NODE_REF): Removed.
8896 (IPA_NODE_REF_GET_CREATE): Likewise.
8897 (IPA_EDGE_REF): Likewise.
8898 (IPA_EDGE_REF_GET_CREATE): Likewise.
8899 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
8900 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
8901 use of ipa_node_params_sum.
8902 (ipcp_versionable_function_p): Likewise.
8903 (push_node_to_stack): Likewise.
8904 (pop_node_from_stack): Likewise.
8905 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
8906 direct use of ipa_node_params_sum.
8907 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
8908 ipa_node_params_sum.
8909 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
8910 ipa_edge_args_sum.
8911 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
8912 use of ipa_node_params_sum.
8913 (self_recursively_generated_p): Likewise.
8914 (propagate_scalar_across_jump_function): Likewise.
8915 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
8916 direct use of ipa_edge_args_sum, moved the lookup after the early
8917 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
8918 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
8919 direct uses of ipa_node_params_sum.
8920 (propagate_vr_across_jump_function): Likewise.
8921 (propagate_aggregate_lattice): Likewise.
8922 (propagate_aggs_across_jump_function): Likewise.
8923 (propagate_constants_across_call): Likewise, also replaced
8924 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
8925 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
8926 of ipa_node_params_sum.
8927 (estimate_local_effects): Likewise.
8928 (add_all_node_vals_to_toposort): Likewise.
8929 (propagate_constants_topo): Likewise.
8930 (ipcp_propagate_stage): Likewise.
8931 (ipcp_discover_new_direct_edges): Likewise.
8932 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
8933 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
8934 (get_info_about_necessary_edges): Likewise.
8935 (want_remove_some_param_p): Likewise.
8936 (create_specialized_node): Likewise.
8937 (self_recursive_pass_through_p): Likewise.
8938 (self_recursive_agg_pass_through_p): Likewise.
8939 (find_more_scalar_values_for_callers_subset): Likewise and also
8940 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
8941 case replacing two of those with a single query.
8942 (find_more_contexts_for_caller_subset): Likewise for the
8943 ipa_polymorphic_call_context overload.
8944 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
8945 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
8946 ipa_node_params_sum.
8947 (find_aggregate_values_for_callers_subset): Likewise, also reusing
8948 results of ipa_edge_args_sum->get.
8949 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
8950 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
8951 direct use of ipa_edge_args_sum.
8952 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
8953 summary query after the early exit and reused the result later.
8954 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
8955 ipa_node_params_sum.
8956 (decide_whether_version_node): Likewise. Removed re-querying for
8957 summaries after cloning.
8958 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
8959 ipa_node_params_sum.
8960 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
8961 some queries.
8962 (identify_dead_nodes): Likewise.
8963 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
8964 ipa_node_params_sum.
8965 (ipcp_store_vr_results): Likewise.
8966 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
8967 (ipa_fn_summary_t::duplicate): Likewise.
8968 (analyze_function_body): Likewise.
8969 (estimate_calls_size_and_time): Likewise.
8970 (ipa_cached_call_context::duplicate_from): Likewise.
8971 (ipa_call_context::equal_to): Likewise.
8972 (remap_edge_params): Likewise.
8973 (ipa_merge_fn_summary_after_inlining): Likewise.
8974 (inline_read_section): Likewise.
8975 * ipa-icf.c (sem_function::param_used_p): Likewise.
8976 * ipa-modref.c (compute_parm_map): Likewise.
8977 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
8978 ipa_edge_args_sum.
8979 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
8980 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
8981 ipa_edge_args_sum.
8982 * ipa-profile.c (check_argument_count): Likewise.
8983 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
8984 with a direct use of ipa_node_params_sum.
8985 (ipa_initialize_node_params): Likewise.
8986 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
8987 direct use of ipa_edge_args_sum and reused the query result.
8988 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
8989 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
8990 direct use of ipa_edge_args_sum.
8991 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
8992 ipa_node_params_sum and reused the result of the query.
8993 (ipa_analyze_node): Likewise.
8994 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
8995 of ipa_node_params_sum.
8996 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
8997 direct uses of ipa_edge_args_sum.
8998 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
8999 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
9000 direct use of ipa_edge_args_sum. Removed superficial re-querying the
9001 top edge summary.
9002 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
9003 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
9004 ipa_edge_args_sum.
9005 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
9006 direct use of ipa_edge_args_sum.
9007 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
9008 use of ipa_node_params_sum.
9009 (ipa_print_node_params): Likewise.
9010 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
9011 direct uses of ipa_edge_args_sum.
9012 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
9013 ipa_edge_args_sum.
9014 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
9015 ipa_node_params_sum.
9016 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
9017 scopes where it is used.
9018
9019 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
9020
9021 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
9022 <case E_V2SImode>: Force op_true to register.
9023
9024 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
9025
9026 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
9027 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
9028 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
9029 patterns.
9030 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
9031 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
9032 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
9033 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
9034 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
9035 (mve_vcmpneq_n_f<mode>): Remove.
9036 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
9037 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
9038 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
9039
9040 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
9041
9042 * config/arm/iterators.md (MVE_COMPARISONS): New.
9043 (mve_cmp_op): New.
9044 (mve_cmp_type): New.
9045 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
9046 mve_vcmp patterns.
9047 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
9048 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
9049 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
9050 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
9051 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
9052 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
9053 (mve_vcmpneq_n_<mode>): Remove.
9054
9055 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
9056
9057 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
9058 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
9059 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
9060 names.
9061
9062 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
9063
9064 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
9065 (vcmpneq_n_u): Likewise.
9066 (vcmpeqq_u,): Likewise.
9067 (vcmpeqq_n_u): Likewise.
9068 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
9069 VCMPEQQ_N_U and VCMPNEQ_N_U.
9070 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
9071 (mve_vcmpeqq_n): Likewise.
9072 (mve_vcmpeqq): Likewise.
9073 (mve_vcmpneq_n): Likewise.
9074
9075 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
9076
9077 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
9078 the 's' version of the builtin.
9079
9080 2021-05-10 Richard Biener <rguenther@suse.de>
9081
9082 PR tree-optimization/100492
9083 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
9084 Find nothing when the loop contains an irreducible region.
9085
9086 2021-05-10 Richard Biener <rguenther@suse.de>
9087
9088 PR middle-end/100464
9089 PR c++/100468
9090 * gimple-fold.c (canonicalize_constructor_val): Do not set
9091 TREE_ADDRESSABLE.
9092
9093 2021-05-10 Richard Biener <rguenther@suse.de>
9094
9095 PR tree-optimization/100434
9096 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
9097 call LHS.
9098 (dse_optimize_stmt): Handle call LHS by dropping the
9099 LHS or the whole call if it doesn't have other
9100 side-effects.
9101 (pass_dse::execute): Adjust.
9102
9103 2021-05-10 Martin Liska <mliska@suse.cz>
9104
9105 * Makefile.in: Add missing genversion rule.
9106
9107 2021-05-10 Alex Coplan <alex.coplan@arm.com>
9108
9109 PR target/99960
9110 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
9111 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
9112
9113 2021-05-10 Martin Liska <mliska@suse.cz>
9114
9115 * builtins.c (is_builtin_name): Use startswith
9116 function instead of strncmp.
9117 * collect2.c (main): Likewise.
9118 (has_lto_section): Likewise.
9119 (scan_libraries): Likewise.
9120 * coverage.c (coverage_checksum_string): Likewise.
9121 (coverage_init): Likewise.
9122 * dwarf2out.c (is_cxx): Likewise.
9123 (gen_compile_unit_die): Likewise.
9124 * gcc-ar.c (main): Likewise.
9125 * gcc.c (init_spec): Likewise.
9126 (read_specs): Likewise.
9127 (execute): Likewise.
9128 (check_live_switch): Likewise.
9129 * genattrtab.c (write_attr_case): Likewise.
9130 (IS_ATTR_GROUP): Likewise.
9131 * gencfn-macros.c (main): Likewise.
9132 * gengtype.c (type_for_name): Likewise.
9133 (gen_rtx_next): Likewise.
9134 (get_file_langdir): Likewise.
9135 (write_local): Likewise.
9136 * genmatch.c (get_operator): Likewise.
9137 (get_operand_type): Likewise.
9138 (expr::gen_transform): Likewise.
9139 * genoutput.c (validate_optab_operands): Likewise.
9140 * incpath.c (add_sysroot_to_chain): Likewise.
9141 * langhooks.c (lang_GNU_C): Likewise.
9142 (lang_GNU_CXX): Likewise.
9143 (lang_GNU_Fortran): Likewise.
9144 (lang_GNU_OBJC): Likewise.
9145 * lto-wrapper.c (run_gcc): Likewise.
9146 * omp-general.c (omp_max_simt_vf): Likewise.
9147 * omp-low.c (omp_runtime_api_call): Likewise.
9148 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
9149 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
9150 * real.c (real_from_string): Likewise.
9151 * selftest.c (assert_str_startswith): Likewise.
9152 * timevar.c (timer::validate_phases): Likewise.
9153 * tree.c (get_file_function_name): Likewise.
9154 * ubsan.c (ubsan_use_new_style_p): Likewise.
9155 * varasm.c (default_function_rodata_section): Likewise.
9156 (incorporeal_function_p): Likewise.
9157 (default_section_type_flags): Likewise.
9158 * system.h (startswith): Define startswith.
9159
9160 2021-05-10 Martin Liska <mliska@suse.cz>
9161
9162 * bitmap.h (class auto_bitmap): Remove
9163 __cplusplus >= 201103.
9164 * config/aarch64/aarch64.c: Likewise.
9165 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
9166 Likewise.
9167 * sbitmap.h: Likewise.
9168
9169 2021-05-10 Martin Liska <mliska@suse.cz>
9170
9171 * Makefile.in: Rename gcov-iov to genversion and depend
9172 on version.h (instead of gcov-iov.h).
9173 * gcov-io.h: Include version.h instread of gcov-iov.h.
9174 * gengtype-state.c (read_state_version): Likewise.
9175 * gcov-iov.c: Moved to...
9176 * genversion.c: ...here.
9177 * lto-streamer.h (LTO_major_version): Define it with
9178 GCC_major_version.
9179 * version.c: Removed.
9180 * version.h: Removed.
9181
9182 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
9183
9184 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
9185 * config/arc/simdext.md (VCT): Add predicates for iterator
9186 elements.
9187 (EMUVEC): Define.
9188 (voptab): Likewise.
9189 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
9190 (<voptab>v2si3): New patterns.
9191 (neg): Likewise.
9192 (reduc_plus_scal_v4hi): Likewise.
9193 (reduc_plus_scal_v2si): Likewise.
9194 (vec_duplicatev2si): Likewise.
9195 (vec_duplicatev4hi): Likewise.
9196
9197 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
9198
9199 * config/arc/simdext.md: Format and cleanup file.
9200
9201 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
9202
9203 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
9204 only when munaligned-access option is on.
9205 (movmisalign<mode>): Likewise.
9206
9207 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
9208
9209 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
9210 from string.
9211 * config/arc/arc.c (arc_reorg): Remove underscore from string.
9212
9213 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
9214
9215 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
9216 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
9217 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
9218 (norm_f): Likewise.
9219 (ffs): Likewise.
9220 (ffs_f): Likewise.
9221 (clzsi2): Use fls instruction when available.
9222 (arc_clzsi2): Likewise.
9223
9224 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
9225
9226 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
9227
9228 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
9229
9230 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
9231
9232 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
9233
9234 PR middle-end/100467
9235 * toplev.c (compile_file): Call insn_locations_init before
9236 targetm.asm_out.code_end.
9237
9238 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
9239
9240 Revert:
9241 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
9242
9243 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
9244
9245 2021-05-07 Jakub Jelinek <jakub@redhat.com>
9246 Andrew Stubbs <amd@codesourcery.com>
9247
9248 PR target/100418
9249 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
9250 emit_move_insn operands.
9251
9252 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
9253
9254 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
9255 location for the outgoing edges of an empty block.
9256 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
9257 type by means of the get_array_descr_info langhook, if it is set and
9258 returns true. Remove obsolete code dealing with unnamed subtypes.
9259
9260 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
9261
9262 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
9263 (sbr_vector): Renamed from ssa_block_cache.
9264 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
9265 (ssa_block_ranges::~ssa_block_ranges): Remove.
9266 (sbr_vector::set_bb_range): Use varying and undefined cached values.
9267 (ssa_block_ranges::set_bb_varying): Remove.
9268 (sbr_vector::get_bb_range): Adjust assert.
9269 (sbr_vector::bb_range_p): Adjust assert.
9270 (~block_range_cache): No freeing loop required.
9271 (block_range_cache::get_block_ranges): Remove.
9272 (block_range_cache::set_bb_range): Inline get_block_ranges.
9273 (block_range_cache::set_bb_varying): Remove.
9274 * gimple-range-cache.h (set_bb_varying): Remove prototype.
9275 * value-range.h (irange_allocator::get_memory): New.
9276
9277 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
9278
9279 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
9280 dominator tree is available and requested.
9281 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
9282 (ranger_cache::fill_block_cache): Don't search dom tree here either.
9283 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
9284
9285 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
9286
9287 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
9288 only PHI nodes better.
9289
9290 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
9291
9292 * gimple-range-edge.h (gimple_outgoing_range): Rename from
9293 outgoing_range.
9294 (gcond_edge_range): Export prototype.
9295 * gimple-range-edge.cc (gcond_edge_range): New.
9296 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
9297 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
9298
9299 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
9300
9301 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
9302 default range into a temp and allocate only what is needed.
9303
9304 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
9305
9306 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
9307
9308 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
9309
9310 * gimple-range.h (gimple_range_global): Pick up parameter initial
9311 values, and use-before defined locals are UNDEFINED.
9312
9313 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
9314
9315 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
9316 and vector fields.
9317 * tree.h (reverse_storage_order_for_component_p): Return false if
9318 the type is a pointer.
9319
9320 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
9321
9322 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
9323
9324 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
9325
9326 PR target/98218
9327 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
9328 Handle V8QI, V4HI and V2SI modes.
9329 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
9330 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
9331 * config/i386/i386.md (unspec): ... here.
9332
9333 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
9334 Tom de Vries <tdevries@suse.de>
9335
9336 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
9337 a truth_value_p reduction variable is nonintegral.
9338
9339 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
9340
9341 PR target/100445
9342 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
9343 Return false for mode sizes < 16.
9344
9345 2021-05-07 Jakub Jelinek <jakub@redhat.com>
9346
9347 PR target/100445
9348 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
9349
9350 2021-05-06 Martin Jambor <mjambor@suse.cz>
9351
9352 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
9353 when there is no function summary.
9354 (ipa_sra_summarize_function): produce edge summaries even when
9355 bailing out early.
9356
9357 2021-05-06 Tom Tromey <tom@tromey.com>
9358
9359 * godump.c (string_hash_eq): Remove.
9360 (go_finish): Use htab_eq_string.
9361
9362 2021-05-06 Tom Tromey <tom@tromey.com>
9363
9364 * gengtype-state.c (read_state): Use htab_eq_string.
9365 (string_eq): Remove.
9366
9367 2021-05-06 Tom Tromey <tom@tromey.com>
9368
9369 * gensupport.c (htab_eq_string): Remove.
9370
9371 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
9372
9373 PR ipa/97937
9374 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
9375 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
9376 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
9377 set_ignored_loc callbacks.
9378 * debug.c (do_nothing_debug_hooks): Likewise.
9379 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9380 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
9381 (in_text_section_p, last_text_label, last_cold_label,
9382 switch_text_ranges, switch_cold_ranges): New data items.
9383 (dwarf2out_note_section_used): Remove.
9384 (dwarf2out_begin_prologue): Set fde->ignored_debug and
9385 in_text_section_p.
9386 (mark_ignored_debug_section): New helper function.
9387 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
9388 mark_ignored_debug_section.
9389 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
9390 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
9391 (size_of_aranges): Adjust formula for multi-part text ranges size.
9392 (output_aranges): Output multi-part text ranges.
9393 (dwarf2out_set_ignored_loc): New callback function.
9394 (dwarf2out_finish): Output multi-part text ranges.
9395 (dwarf2out_c_finalize): Clear new data items.
9396 * final.c (final_start_function_1): Call set_ignored_loc callback.
9397 (final_scan_insn_1): Likewise.
9398 * ggc-page.c (gt_ggc_mx): New helper function.
9399 * stringpool.c (gt_pch_nx): Likewise.
9400
9401 2021-05-06 Richard Biener <rguenther@suse.de>
9402
9403 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
9404 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
9405 (TV_TREE_INTO_SSA): New.
9406 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
9407 (rewrite_blocks): Likewise.
9408 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
9409
9410 2021-05-06 Jakub Jelinek <jakub@redhat.com>
9411
9412 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
9413 abs_replacement, xor_replacement,
9414 cond_removal_in_popcount_clz_ctz_pattern,
9415 replace_phi_edge_with_variable): Change type of phi argument from
9416 gimple * to gphi *.
9417
9418 2021-05-06 Richard Biener <rguenther@suse.de>
9419
9420 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
9421 Output an opt-info message.
9422 (do_split_loop_on_cond): Likewise.
9423 (tree_ssa_split_loops): Update SSA form here.
9424
9425 2021-05-06 Richard Biener <rguenther@suse.de>
9426
9427 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
9428 return variable removal.
9429
9430 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
9431
9432 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
9433 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
9434 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
9435 operand.
9436 * config/s390/s390.c (s390_const_operand_ok): Remove unused
9437 values.
9438
9439 2021-05-06 Jakub Jelinek <jakub@redhat.com>
9440
9441 PR tree-optimization/94589
9442 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
9443 spaceship_replacement.
9444 (cond_only_block_p, spaceship_replacement): New functions.
9445
9446 2021-05-06 Richard Biener <rguenther@suse.de>
9447
9448 PR ipa/100373
9449 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
9450 dealing with a debug use and only query existing addresses
9451 if so.
9452 (lower_emutls_1): Avoid splitting out addresses for debug
9453 stmts, reset the debug stmt when we fail to find existing
9454 lowered addresses.
9455 (lower_emutls_phi_arg): Set wi.stmt.
9456
9457 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
9458
9459 PR target/100266
9460 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
9461 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
9462 (stack_protect_test): Use cbranch helper.
9463
9464 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
9465
9466 PR target/100402
9467 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
9468 always return the establisher frame for __builtin_frame_address (0).
9469
9470 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
9471
9472 PR target/91400
9473 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
9474 (ix86_cpu_model_var): Likewise.
9475 (ix86_cpu_features2_type_node): Likewise.
9476 (ix86_cpu_features2_var): Likewise.
9477 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
9478 their types.
9479
9480 2021-05-05 Martin Sebor <msebor@redhat.com>
9481
9482 * passes.def (pass_warn_printf): Run after SSA.
9483
9484 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9485
9486 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
9487 * config/arm/predicates.md (minus_one_operand): New predicate.
9488
9489 2021-05-05 Jeff Law <jlaw@tachyum.com>
9490
9491 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
9492
9493 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
9494
9495 PR rtl-optimization/100263
9496 * postreload.c (move2add_valid_value_p): Ensure register can
9497 change mode.
9498
9499 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
9500
9501 PR rtl-optimization/100411
9502 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
9503 and beginning of function markers.
9504
9505 2021-05-05 Jeff Law <jlaw@tachyum.com>
9506
9507 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
9508 * config/cr16/cr16.c (notice_update_cc): Remove.
9509 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
9510
9511 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
9512
9513 PR target/98218
9514 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
9515 Handle V8QI, V4HI and V2SI modes.
9516 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
9517 (ix86_build_signbit_mask): Ditto.
9518 * config/i386/mmx.md (MMXMODE14): New mode iterator.
9519 (<smaxmin:code><MMXMODE14:mode>3): New expander.
9520 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
9521 (<umaxmin:code><MMXMODE24:mode>3): New expander.
9522 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
9523 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
9524 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
9525 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
9526 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
9527 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
9528
9529 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
9530
9531 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
9532 not expand the VALUE_EXPR of variables put in the non-local frame.
9533 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
9534 to be ignored for debug info, ensure its variable offsets are not.
9535
9536 2021-05-05 Richard Biener <rguenther@suse.de>
9537
9538 PR tree-optimization/79333
9539 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
9540 Fold stmt following SSA edges.
9541
9542 2021-05-05 Richard Biener <rguenther@suse.de>
9543
9544 PR middle-end/100394
9545 * calls.c (expand_call): Preserve possibly throwing calls.
9546 * cfgexpand.c (expand_call_stmt): When a call can throw signal
9547 RTL expansion there are side-effects.
9548 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
9549 mark all possibly throwing stmts necessary unless we can elide
9550 dead EH.
9551 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
9552 -fdelete-dead-exceptions.
9553 * tree.h (DECL_PURE_P): Add note about exceptions.
9554
9555 2021-05-05 Alexandre Oliva <oliva@adacore.com>
9556
9557 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
9558 unconditional.
9559
9560 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
9561
9562 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9563 get_fnname_from_decl for name of thunk.
9564 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
9565 and ASM_OUTPUT_LABEL.
9566 (rs6000_xcoff_declare_function_name): Use assemble_name and
9567 ASM_OUTPUT_LABEL.
9568 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
9569 (rs6000_xcoff_encode_section_info): Don't add mapping class
9570 for aliases. Always add [DS] mapping class to primary
9571 FUNCTION_DECL.
9572 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
9573
9574 2021-05-04 Martin Sebor <msebor@redhat.com>
9575
9576 PR middle-end/100307
9577 * builtins.c (compute_objsize_r): Clear base0 for pointers.
9578
9579 2021-05-04 Jeff Law <jlaw@tachyum.com>
9580
9581 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
9582
9583 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9584
9585 * caller-save.c: Remove CC0.
9586 * cfgcleanup.c: Remove CC0.
9587 * cfgrtl.c: Remove CC0.
9588 * combine.c: Remove CC0.
9589 * compare-elim.c: Remove CC0.
9590 * conditions.h: Remove CC0.
9591 * config/h8300/h8300.h: Remove CC0.
9592 * config/h8300/h8300-protos.h: Remove CC0.
9593 * config/h8300/peepholes.md: Remove CC0.
9594 * config/i386/x86-tune-sched.c: Remove CC0.
9595 * config/m68k/m68k.c: Remove CC0.
9596 * config/rl78/rl78.c: Remove CC0.
9597 * config/sparc/sparc.c: Remove CC0.
9598 * config/xtensa/xtensa.c: Remove CC0.
9599 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
9600 RTL where that is used as a placeholder only.
9601 * cprop.c: Remove CC0.
9602 * cse.c: Remove CC0.
9603 * cselib.c: Remove CC0.
9604 * df-problems.c: Remove CC0.
9605 * df-scan.c: Remove CC0.
9606 * doc/md.texi: Remove CC0. Adjust an example.
9607 * doc/rtl.texi: Remove CC0. Adjust an example.
9608 * doc/tm.texi: Regenerate.
9609 * doc/tm.texi.in: Remove CC0.
9610 * emit-rtl.c: Remove CC0.
9611 * final.c: Remove CC0.
9612 * fwprop.c: Remove CC0.
9613 * gcse-common.c: Remove CC0.
9614 * gcse.c: Remove CC0.
9615 * genattrtab.c: Remove CC0.
9616 * genconfig.c: Remove CC0.
9617 * genemit.c: Remove CC0.
9618 * genextract.c: Remove CC0.
9619 * gengenrtl.c: Remove CC0.
9620 * genrecog.c: Remove CC0.
9621 * haifa-sched.c: Remove CC0.
9622 * ifcvt.c: Remove CC0.
9623 * ira-costs.c: Remove CC0.
9624 * ira.c: Remove CC0.
9625 * jump.c: Remove CC0.
9626 * loop-invariant.c: Remove CC0.
9627 * lra-constraints.c: Remove CC0.
9628 * lra-eliminations.c: Remove CC0.
9629 * optabs.c: Remove CC0.
9630 * postreload-gcse.c: Remove CC0.
9631 * postreload.c: Remove CC0.
9632 * print-rtl.c: Remove CC0.
9633 * read-rtl-function.c: Remove CC0.
9634 * reg-notes.def: Remove CC0.
9635 * reg-stack.c: Remove CC0.
9636 * reginfo.c: Remove CC0.
9637 * regrename.c: Remove CC0.
9638 * reload.c: Remove CC0.
9639 * reload1.c: Remove CC0.
9640 * reorg.c: Remove CC0.
9641 * resource.c: Remove CC0.
9642 * rtl.c: Remove CC0.
9643 * rtl.def: Remove CC0.
9644 * rtl.h: Remove CC0.
9645 * rtlanal.c: Remove CC0.
9646 * sched-deps.c: Remove CC0.
9647 * sched-rgn.c: Remove CC0.
9648 * shrink-wrap.c: Remove CC0.
9649 * simplify-rtx.c: Remove CC0.
9650 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
9651 CC_STATUS_MDEP, and CC_STATUS.
9652 * target.def: Remove CC0.
9653 * valtrack.c: Remove CC0.
9654 * var-tracking.c: Remove CC0.
9655
9656 2021-05-04 Richard Biener <rguenther@suse.de>
9657
9658 PR tree-optimization/100414
9659 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
9660 info here.
9661 (tree_ssa_phiopt_worker): But unconditionally here.
9662
9663 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
9664
9665 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
9666 && and || with floating-point and complex arguments.
9667
9668 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
9669
9670 * tree-inline.c (insert_debug_decl_map): Delete.
9671 (copy_debug_stmt): Minor tweak.
9672 (setup_one_parameter): Do not use a variable if the value is either
9673 a read-only DECL or a non-addressable local variable in the caller.
9674 In this case, insert the debug-only variable in the map manually.
9675 (expand_call_inline): Do not generate a CLOBBER for these values.
9676 * tree-inline.h (debug_map): Minor tweak.
9677
9678 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
9679
9680 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
9681 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
9682
9683 2021-05-04 Richard Biener <rguenther@suse.de>
9684
9685 PR tree-optimization/100329
9686 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
9687 asm goto defs.
9688 (insert_stmt_after): Assert we're not running into asm goto.
9689
9690 2021-05-04 Richard Biener <rguenther@suse.de>
9691
9692 PR tree-optimization/100398
9693 * tree-ssa-dse.c (pass_dse::execute): Preserve control
9694 altering stmts.
9695
9696 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9697
9698 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
9699
9700 2021-05-04 Alexandre Oliva <oliva@adacore.com>
9701
9702 * builtins.c (try_store_by_multiple_pieces): New.
9703 (expand_builtin_memset_args): Use it. If target_char_cast
9704 fails, proceed as for non-constant val. Pass len's ctz to...
9705 * expr.c (clear_storage_hints): ... this. Try store by
9706 multiple pieces after setmem.
9707 (clear_storage): Adjust.
9708 * expr.h (clear_storage_hints): Likewise.
9709 (try_store_by_multiple_pieces): Declare.
9710 * passes.def: Replace the last copy_prop with ccp.
9711
9712 2021-05-03 Tom de Vries <tdevries@suse.de>
9713
9714 PR target/100321
9715 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
9716 reduction.
9717
9718 2021-05-03 Richard Biener <rguenther@suse.de>
9719
9720 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
9721
9722 2021-05-03 Richard Biener <rguenther@suse.de>
9723
9724 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
9725 (dse_dom_walker): Remove.
9726 (dse_dom_walker::dse_optimize_stmt): Rename...
9727 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
9728 (dse_dom_walker::before_dom_children): Inline ...
9729 (pass_dse::execute): ... here. Perform a reverse program
9730 order walk.
9731
9732 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
9733
9734 PR bootstrap/99703
9735 * configure: Regenerated.
9736
9737 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
9738
9739 PR target/100217
9740 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
9741 (s390_md_asm_adjust): Handle hard registers.
9742
9743 2021-05-03 Jakub Jelinek <jakub@redhat.com>
9744
9745 PR tree-optimization/100382
9746 * tree-ssa-dse.c: Include tree-eh.h.
9747 (dse_dom_walker::before_dom_children): Don't remove stmts if
9748 stmt_unremovable_because_of_non_call_eh_p is true.
9749
9750 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
9751
9752 * varasm.c (compute_reloc_for_var): Split out from...
9753 (get_variable_section): Use it.
9754 * output.h (compute_reloc_for_var): Declare.
9755 * config/rs6000/rs6000-protos.h
9756 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
9757 unsigned int.
9758 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
9759 Don't append storage mapping class to symbol.
9760 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
9761 Don't convert TLS BSS to common.
9762 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
9763 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
9764 bss_initializer.
9765 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
9766 mapping class.
9767 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
9768 If align is 0 from TLS class, use the same rules as varasm.c
9769 If not common, switch to BSS section manually.
9770 If common, emit appropriate comm or lcomm directive.
9771 (rs6000_xcoff_encode_section_info): Add logic to append all
9772 storage mapping classes.
9773 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
9774 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
9775 rs6000_xcoff_asm_output_aligned_decl_common.
9776 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
9777 rs6000_xcoff_asm_output_aligned_decl_common.
9778 (ASM_OUTPUT_TLS_COMMON): Use
9779 rs6000_xcoff_asm_output_aligned_decl_common.
9780
9781 2021-05-02 Jakub Jelinek <jakub@redhat.com>
9782
9783 PR target/100375
9784 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
9785 as first argument of pseudo_node_t constructors.
9786
9787 2021-05-02 Jakub Jelinek <jakub@redhat.com>
9788
9789 PR target/100336
9790 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
9791
9792 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
9793
9794 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
9795 (gt_pch_nx (int_range<1> *&)): New.
9796 (gt_ggc_mx (int_range<1> *&)): New.
9797 * value-range.h (class irange): Add GTY support for
9798 the base class.
9799
9800 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
9801
9802 * doc/options.texi (Negative): Change either or to both and.
9803
9804 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
9805
9806 * config/aarch64/aarch64-simd-builtins.def: Add
9807 float_ml[as][q]_laneq builtin generator macros.
9808 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
9809 (aarch64_float_mla_laneq<mode>): Define.
9810 (aarch64_float_mls_laneq<mode>): Define.
9811 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
9812 instead of GCC vector extensions.
9813 (vmlaq_laneq_f32): Likewise.
9814 (vmls_laneq_f32): Likewise.
9815 (vmlsq_laneq_f32): Likewise.
9816
9817 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
9818
9819 * config/aarch64/aarch64-simd-builtins.def: Add
9820 float_ml[as]_lane builtin generator macros.
9821 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
9822 Rename to...
9823 (mul_lane<mode>3): This, and re-order arguments.
9824 (aarch64_float_mla_lane<mode>): Define.
9825 (aarch64_float_mls_lane<mode>): Define.
9826 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
9827 instead of GCC vector extensions.
9828 (vmlaq_lane_f32): Likewise.
9829 (vmls_lane_f32): Likewise.
9830 (vmlsq_lane_f32): Likewise.
9831
9832 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
9833
9834 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
9835 builtin generator macros.
9836 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
9837 Define.
9838 (aarch64_float_mls<mode>): Define.
9839 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
9840 instead of relying on GCC vector extensions.
9841 (vmla_f64): Likewise.
9842 (vmlaq_f32): Likewise.
9843 (vmlaq_f64): Likewise.
9844 (vmls_f32): Likewise.
9845 (vmls_f64): Likewise.
9846 (vmlsq_f32): Likewise.
9847 (vmlsq_f64): Likewise.
9848 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
9849
9850 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
9851
9852 * config/aarch64/aarch64-simd-builtins.def: Add
9853 float_ml[as]_n_builtin generator macros.
9854 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
9855 Rename to...
9856 (mul_n<mode>3): This, and re-order arguments.
9857 (aarch64_float_mla_n<mode>): Define.
9858 (aarch64_float_mls_n<mode>): Define.
9859 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
9860 instead of inline asm.
9861 (vmlaq_n_f32): Likewise.
9862 (vmls_n_f32): Likewise.
9863 (vmlsq_n_f32): Likewise.
9864
9865 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
9866
9867 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
9868 builtin generator macros.
9869 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
9870 (aarch64_pmull_hiv16qi_insn): Define.
9871 (aarch64_pmull_hiv16qi): Define.
9872 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
9873 instead of inline asm.
9874 (vmull_p8): Likewise.
9875
9876 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
9877
9878 * config/avr/avr.md: Adjust peepholes to match and
9879 generate parallels with clobber of REG_CC.
9880 (mov<mode>_insn): Rename to mov<mode>_insn_split.
9881 (*mov<mode>_insn): Rename to mov<mode>_insn.
9882
9883 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
9884
9885 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
9886 for VAR_DECLs if -fdata-sections enabled.
9887
9888 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
9889
9890 PR bootstrap/100327
9891 * config/rs6000/rs6000.c
9892 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
9893 (rs6000_libgcc_floating_mode_supported_p): New target hook.
9894
9895 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
9896
9897 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
9898 from here...
9899 (class back_threader_registry): ...to here...
9900 (class back_threader_profitability): ...and here...
9901 (thread_jumps::thread_through_all_blocks): Remove argument.
9902 (back_threader_registry::back_threader_registry): New.
9903 (back_threader_registry::~back_threader_registry): New.
9904 (back_threader_registry::thread_through_all_blocks): New.
9905 (thread_jumps::profitable_jump_thread_path): Move from here...
9906 (back_threader_profitability::profitable_path_p): ...to here.
9907 (thread_jumps::find_taken_edge): New.
9908 (thread_jumps::convert_and_register_current_path): Move...
9909 (back_threader_registry::register_path): ...to here.
9910 (thread_jumps::register_jump_thread_path_if_profitable): Move...
9911 (thread_jumps::maybe_register_path): ...to here.
9912 (thread_jumps::handle_phi): Call find_taken_edge and
9913 maybe_register_path.
9914 (thread_jumps::handle_assignment): Same.
9915 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
9916 tree argument to handle_phi and handle_assignment.
9917 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
9918 set of m_speed_p and m_max_threaded_paths.
9919 (pass_thread_jumps::execute): Remove second argument from
9920 find_jump_threads_backwards.
9921 (pass_early_thread_jumps::execute): Same.
9922
9923 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
9924
9925 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
9926 (class dom_opt_dom_walker): Initialize some class variables.
9927 (pass_dominator::execute): Pass evrp_range_analyzer and
9928 dom_jump_threader_simplifier to dom_opt_dom_walker.
9929 Adjust for some functions moving into classes.
9930 (simplify_stmt_for_jump_threading): Adjust and move to...
9931 (jump_threader_simplifier::simplify): ...here.
9932 (dom_opt_dom_walker::before_dom_children): Adjust for
9933 m_evrp_range_analyzer.
9934 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
9935 (test_for_singularity): Place in dom_opt_dom_walker class.
9936 (dom_opt_dom_walker::optimize_stmt): The argument
9937 evrp_range_analyzer is now a class field.
9938 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
9939 (thread_jumps::thread_through_all_blocks): New.
9940 (thread_jumps::convert_and_register_current_path): Use m_registry.
9941 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
9942 being in the threader class.
9943 (pass_early_thread_jumps::execute): Same.
9944 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
9945 (jump_threader::jump_threader): ...here.
9946 (threadedge_finalize_values): Move...
9947 (jump_threader::~jump_threader): ...here.
9948 (jump_threader::remove_jump_threads_including): New.
9949 (jump_threader::thread_through_all_blocks): New.
9950 (record_temporary_equivalences_from_phis): Move...
9951 (jump_threader::record_temporary_equivalences_from_phis): ...here.
9952 (record_temporary_equivalences_from_stmts_at_dest): Move...
9953 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
9954 Here...
9955 (simplify_control_stmt_condition_1): Move to jump_threader class.
9956 (simplify_control_stmt_condition): Move...
9957 (jump_threader::simplify_control_stmt_condition): ...here.
9958 (thread_around_empty_blocks): Move...
9959 (jump_threader::thread_around_empty_blocks): ...here.
9960 (thread_through_normal_block): Move...
9961 (jump_threader::thread_through_normal_block): ...here.
9962 (thread_across_edge): Move...
9963 (jump_threader::thread_across_edge): ...here.
9964 (thread_outgoing_edges): Move...
9965 (jump_threader::thread_outgoing_edges): ...here.
9966 * tree-ssa-threadedge.h: Move externally facing functings...
9967 (class jump_threader): ...here...
9968 (class jump_threader_simplifier): ...and here.
9969 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
9970 (jump_thread_path_allocator::jump_thread_path_allocator): New.
9971 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
9972 (jump_thread_path_allocator::allocate_thread_edge): New.
9973 (jump_thread_path_allocator::allocate_thread_path): New.
9974 (jump_thread_path_registry::jump_thread_path_registry): New.
9975 (jump_thread_path_registry::~jump_thread_path_registry): New.
9976 (jump_thread_path_registry::allocate_thread_edge): New.
9977 (jump_thread_path_registry::allocate_thread_path): New.
9978 (dump_jump_thread_path): Make extern.
9979 (debug (const vec<jump_thread_edge *> &path)): New.
9980 (struct removed_edges): Move to tree-ssa-threadupdate.h.
9981 (struct thread_stats_d): Remove.
9982 (remove_ctrl_stmt_and_useless_edges): Make static.
9983 (lookup_redirection_data): Move...
9984 (jump_thread_path_registry::lookup_redirection_data): ...here.
9985 (ssa_redirect_edges): Make static.
9986 (thread_block_1): Move...
9987 (jump_thread_path_registry::thread_block_1): ...here.
9988 (thread_block): Move...
9989 (jump_thread_path_registry::thread_block): ...here.
9990 (thread_through_loop_header): Move...
9991 (jump_thread_path_registry::thread_through_loop_header): ...here.
9992 (mark_threaded_blocks): Move...
9993 (jump_thread_path_registry::mark_threaded_blocks): ...here.
9994 (debug_path): Move...
9995 (jump_thread_path_registry::debug_path): ...here.
9996 (debug_all_paths): Move...
9997 (jump_thread_path_registry::dump): ..here.
9998 (rewire_first_differing_edge): Move...
9999 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
10000 (adjust_paths_after_duplication): Move...
10001 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
10002 (duplicate_thread_path): Move...
10003 (jump_thread_path_registry::duplicate_thread_path): ..here.
10004 (remove_jump_threads_including): Move...
10005 (jump_thread_path_registry::remove_jump_threads_including): ...here.
10006 (thread_through_all_blocks): Move to...
10007 (jump_thread_path_registry::thread_through_all_blocks): ...here.
10008 (delete_jump_thread_path): Remove.
10009 (register_jump_thread): Move...
10010 (jump_thread_path_registry::register_jump_thread): ...here.
10011 * tree-ssa-threadupdate.h: Move externally facing functions...
10012 (class jump_thread_path_allocator): ...here...
10013 (class jump_thread_path_registry): ...and here.
10014 (thread_through_all_blocks): Remove.
10015 (struct removed_edges): New.
10016 (register_jump_thread): Remove.
10017 (remove_jump_threads_including): Remove.
10018 (delete_jump_thread_path): Remove.
10019 (remove_ctrl_stmt_and_useless_edges): Remove.
10020 (free_dom_edge_info): New prototype.
10021 * tree-vrp.c: Remove x_vr_values hack.
10022 (class vrp_jump_threader_simplifier): New.
10023 (vrp_jump_threader_simplifier::simplify): New.
10024 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
10025 Remove m_dummy_cond.
10026 Instantiate m_simplifier and m_threader.
10027 (vrp_jump_threader::thread_through_all_blocks): New.
10028 (vrp_jump_threader::simplify_stmt): Remove.
10029 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
10030 Remove x_vr_values hack.
10031 (execute_vrp): Adjust for thread_through_all_blocks being in a
10032 class.
10033
10034 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
10035
10036 * genflags.c (gen_insn): Print failed expansion string.
10037
10038 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
10039
10040 * expr.c (alignment_for_piecewise_move): Call mode_for_size
10041 without limit to MAX_FIXED_MODE_SIZE.
10042
10043 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
10044
10045 PR middle-end/90773
10046 * builtins.c (builtin_memset_gen_str): Don't use return from
10047 simplify_gen_subreg.
10048
10049 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
10050
10051 PR target/98060
10052 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
10053 (*addsi3_carry_zext_0r): Ditto.
10054 (*sub<mode>3_carry_0): Ditto.
10055 (*subsi3_carry_zext_0r): Ditto.
10056 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
10057 New predicate.
10058 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
10059 Also consider ix86_carry_flag_unset_operator to calculate
10060 the cost of adc/sbb insn.
10061
10062 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
10063
10064 PR rtl-optimization/100225
10065 PR rtl-optimization/84878
10066 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
10067 where we have an instruction which touches (writes) any hard
10068 register from df->regular_block_artificial_uses set.
10069 Allow not-single-set instruction only right before basic block
10070 tail.
10071
10072 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
10073
10074 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
10075
10076 2021-04-30 LevyHsu <admin@levyhsu.com>
10077
10078 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
10079 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
10080 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
10081 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
10082
10083 2021-04-29 Alexandre Oliva <oliva@adacore.com>
10084
10085 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
10086
10087 2021-04-29 Alexandre Oliva <oliva@adacore.com>
10088
10089 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
10090 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
10091 * config/i386/i386.c: Adjust.
10092 * config/i386/i386.md: Adjust.
10093 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
10094 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10095 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10096 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10097 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10098 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10099 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10100 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10101 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10102 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10103 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
10104
10105 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
10106
10107 * config/i386/i386-expand.c (ix86_expand_int_compare):
10108 Swap operands of GTU and LEU comparison to emit carry flag comparison.
10109 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
10110 predicate to allow more combine opportunities with memory operands.
10111 (*sub<mode>3_carry_0): Ditto.
10112
10113 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
10114
10115 PR rtl-optimization/100303
10116 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
10117 boolean that indicates whether the use will only be used in
10118 debug instructions. Treat it in the same way that existing
10119 cross-EBB debug references would be handled if so.
10120 (function_info::make_uses_available): Likewise.
10121 * rtl-ssa/functions.h (function_info::make_uses_available): Update
10122 prototype accordingly.
10123 (function_info::make_uses_available): Likewise.
10124 * fwprop.c (try_fwprop_subst): Update call accordingly.
10125
10126 2021-04-29 Jeff Law <jlaw@tachyum.com>
10127
10128 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
10129 of RTX_CODE guard.
10130
10131 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
10132 Richard Biener <rguenther@suse.de>
10133
10134 PR target/100312
10135 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
10136 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
10137 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
10138 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
10139 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
10140 to PURE_ARGS category.
10141 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
10142 Handle PURE_ARGS category.
10143 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
10144
10145 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
10146
10147 * configure.ac: Check for the presence of sys/locking.h header and
10148 for whether _LK_LOCK is supported by _locking.
10149 * configure: Regenerate.
10150 * config.in: Likewise.
10151 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
10152 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
10153 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
10154
10155 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
10156
10157 * config/i386/predicates.md (fcmov_comparison_operator):
10158 Do not check for trivial FP comparison operator.
10159 <case GEU, case LTU>: Allow CCGZmode.
10160 <case GTU, case LEU>: Do not allow CCCmode.
10161 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
10162 (ix86_carry_flag_operator): Match only LTU and UNLT code.
10163 Do not check for trivial FP comparison operator. Allow CCGZmode.
10164
10165 2021-04-29 Tom de Vries <tdevries@suse.de>
10166
10167 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
10168 fd->loop.step by either step or orig_step.
10169
10170 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
10171
10172 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
10173 (load_got_register): Do the PIC dance here.
10174 (sparc_legitimize_tls_address): Simplify.
10175 (sparc_emit_probe_stack_range): Likewise.
10176 (sparc32_initialize_trampoline): Likewise.
10177 (sparc64_initialize_trampoline): Likewise.
10178 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
10179 (probe_stack_range<P:mode>): Likewise.
10180 (flush<P:mode>): Likewise.
10181 (tgd_hi22<P:mode>): Likewise.
10182 (tgd_lo10<P:mode>): Likewise.
10183 (tgd_add<P:mode>): Likewise.
10184 (tgd_call<P:mode>): Likewise.
10185 (tldm_hi22<P:mode>): Likewise.
10186 (tldm_lo10<P:mode>): Likewise.
10187 (tldm_add<P:mode>): Likewise.
10188 (tldm_call<P:mode>): Likewise.
10189 (tldo_hix22<P:mode>): Likewise.
10190 (tldo_lox10<P:mode>): Likewise.
10191 (tldo_add<P:mode>): Likewise.
10192 (tie_hi22<P:mode>): Likewise.
10193 (tie_lo10<P:mode>): Likewise.
10194 (tie_add<P:mode>): Likewise.
10195 (tle_hix22<P:mode>): Likewise.
10196 (tle_lox10<P:mode>): Likewise.
10197 (stack_protect_setsi): Rename to...
10198 (stack_protect_set32): ...this.
10199 (stack_protect_setdi): Rename to...
10200 (stack_protect_set64): ...this.
10201 (stack_protect_set): Adjust calls to above.
10202 (stack_protect_testsi): Rename to...
10203 (stack_protect_test32): ...this.
10204 (stack_protect_testdi): Rename to...
10205 (stack_protect_test64): ...this.
10206 (stack_protect_test): Adjust calls to above.
10207
10208 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
10209
10210 PR middle-end/90773
10211 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
10212 (builtin_strncpy_read_str): Likewise.
10213 (builtin_memset_read_str): Add an argument for the previous RTL
10214 information and generate the new RTL from the previous RTL info.
10215 (builtin_memset_gen_str): Likewise.
10216 * builtins.h (builtin_strncpy_read_str): Update the prototype.
10217 (builtin_memset_read_str): Likewise.
10218 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
10219 returns true, round up size and alignment to the widest integer
10220 mode for maximum size.
10221 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
10222 and pass it to m_constfn.
10223 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
10224 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
10225 initialize m_push. Initialize m_overlap_op_by_pieces with
10226 targetm.overlap_op_by_pieces_p ().
10227 (op_by_pieces_d::run): Pass the previous RTL information to
10228 pieces_addr::adjust and generate overlapping operations if
10229 m_overlap_op_by_pieces is true.
10230 (PUSHG_P): New.
10231 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
10232 change.
10233 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
10234 change.
10235 (can_store_by_pieces): Use by_pieces_constfn on constfun.
10236 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
10237 for op_by_pieces_d change.
10238 (clear_by_pieces_1): Add a dummy argument.
10239 (clear_by_pieces): Updated for op_by_pieces_d change.
10240 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
10241 (string_cst_read_str): Add a dummy argument.
10242 * expr.h (by_pieces_constfn): Add a dummy argument.
10243 (by_pieces_prev): New.
10244 * target.def (overlap_op_by_pieces_p): New target hook.
10245 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
10246 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
10247 * doc/tm.texi: Regenerated.
10248
10249 2021-04-29 Richard Biener <rguenther@suse.de>
10250
10251 PR tree-optimization/100253
10252 * tree-vect-stmts.c (vectorizable_load): Do not assume
10253 element alignment when DR_MISALIGNMENT is -1.
10254 (vectorizable_store): Likewise.
10255
10256 2021-04-29 Jakub Jelinek <jakub@redhat.com>
10257
10258 PR target/100302
10259 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
10260 absu_hwi instead of abs_hwi.
10261
10262 2021-04-29 Richard Biener <rguenther@suse.de>
10263
10264 PR middle-end/38474
10265 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
10266 forwarding when indirect forwarding through ESCAPED
10267 alread happens.
10268
10269 2021-04-29 Tom de Vries <tdevries@suse.de>
10270
10271 PR target/100232
10272 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
10273 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
10274 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
10275 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
10276
10277 2021-04-29 Richard Biener <rguenther@suse.de>
10278
10279 PR tree-optimization/99912
10280 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
10281 (dse_dom_walker::todo): Likewise.
10282 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
10283 caller.
10284 (dse_dom_walker::before_dom_children): Remove trivially
10285 dead SSA defs and schedule CFG cleanup if we removed all
10286 PHIs in a block.
10287 (pass_dse::execute): Get TODO as computed by the DOM walker
10288 and return it. Wipe dominator info earlier.
10289
10290 2021-04-29 Richard Biener <rguenther@suse.de>
10291
10292 PR ipa/100308
10293 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
10294 Track blocks to cleanup EH in new m_need_eh_cleanup.
10295 (ipcp_modif_dom_walker::cleanup_eh): New.
10296 (ipcp_transform_function): Release dominator info before
10297 doing EH cleanup.
10298
10299 2021-04-29 Martin Sebor <msebor@redhat.com>
10300
10301 PR middle-end/100250
10302 * attribs.c (attr_access::array_as_string): Avoid dereferencing
10303 a pointer when it's null.
10304
10305 2021-04-29 Martin Sebor <msebor@redhat.com>
10306
10307 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
10308 * ipa-free-lang-data.cc: New file.
10309 * tree.c: Move pass free_lang_data to file above.
10310 (build_array_type_1): Declare extern.
10311 * tree.h (build_array_type_1): Declare.
10312
10313 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10314
10315 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
10316 make consistent with updated RTL pattern.
10317 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
10318 Implement using ss_truncate and us_truncate rather than
10319 unspecs.
10320 * config/aarch64/iterators.md: Remove redundant unspecs and
10321 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
10322
10323 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10324
10325 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
10326 attributes consistent with those defined in arm_neon.h.
10327
10328 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10329
10330 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
10331 attributes consistent with those defined in arm_neon.h.
10332
10333 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10334
10335 * config/aarch64/aarch64-simd-builtins.def: Add
10336 float_trunc_rodd builtin generator macros.
10337 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
10338 Define.
10339 (aarch64_float_trunc_rodd_lo_v2sf): Define.
10340 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
10341 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
10342 (aarch64_float_trunc_rodd_hi_v4sf): Define.
10343 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
10344 instead of inline asm.
10345 (vcvtx_high_f32_f64): Likewise.
10346 (vcvtxd_f32_f64): Likewise.
10347 * config/aarch64/iterators.md: Add FCVTXN unspec.
10348
10349 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10350
10351 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
10352 generator macros.
10353 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
10354 Define.
10355 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
10356 instead of inline asm.
10357 (vqtbx1_u8): Likewise.
10358 (vqtbx1_p8): Likewise.
10359 (vqtbx1q_s8): Likewise.
10360 (vqtbx1q_u8): Likewise.
10361 (vqtbx1q_p8): Likewise.
10362 (vtbx2_s8): Likewise.
10363 (vtbx2_u8): Likewise.
10364 (vtbx2_p8): Likewise.
10365
10366 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10367
10368 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
10369 generator macros.
10370 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
10371 instead of inline asm.
10372 (vqtbl1_s8): Likewise.
10373 (vqtbl1_u8): Likewise.
10374 (vqtbl1q_p8): Likewise.
10375 (vqtbl1q_s8): Likewise.
10376 (vqtbl1q_u8): Likewise.
10377 (vtbl1_s8): Likewise.
10378 (vtbl1_u8): Likewise.
10379 (vtbl1_p8): Likewise.
10380 (vtbl2_s8): Likewise.
10381 (vtbl2_u8): Likewise.
10382 (vtbl2_p8): Likewise.
10383
10384 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10385
10386 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
10387 ssri_n buitin generator macro.
10388 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
10389 instead of inline asm.
10390 (vsri_n_p16): Likewise.
10391 (vsri_n_p64): Likewise.
10392 (vsriq_n_p8): Likewise.
10393 (vsriq_n_p16): Likewise.
10394 (vsriq_n_p64): Likewise.
10395
10396 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10397
10398 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
10399 iterator for polynomial ssli_n builtin generator macro.
10400 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
10401 instead of inline asm.
10402 (vsli_n_p16): Likewise.
10403 (vsliq_n_p8): Likewise.
10404 (vsliq_n_p16): Likewise.
10405 * config/aarch64/iterators.md: Define VALLP mode iterator.
10406
10407 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10408
10409 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
10410 iterator to generate [su]adalp RTL builtins.
10411 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
10412 [su]adalp RTL pattern.
10413 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
10414 instead of inline asm.
10415 (vpadal_u32): Likewise.
10416
10417 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10418
10419 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
10420 builtin generator macros.
10421 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
10422 Define.
10423 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
10424 instead of inline asm.
10425 (vpaddl_s16): Likewise.
10426 (vpaddl_s32): Likewise.
10427 (vpaddl_u8): Likewise.
10428 (vpaddl_u16): Likewise.
10429 (vpaddl_u32): Likewise.
10430 (vpaddlq_s8): Likewise.
10431 (vpaddlq_s16): Likewise.
10432 (vpaddlq_s32): Likewise.
10433 (vpaddlq_u8): Likewise.
10434 (vpaddlq_u16): Likewise.
10435 (vpaddlq_u32): Liwewise.
10436 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
10437 appropriate attributes.
10438
10439 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10440
10441 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
10442 for aarch64_addp<mode> builtin macro generator.
10443 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
10444 aarch64_addp<mode> RTL pattern.
10445 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
10446 instead of inline asm.
10447 (vpaddq_s16): Likewise.
10448 (vpaddq_s32): Likewise.
10449 (vpaddq_s64): Likewise.
10450 (vpaddq_u8): Likewise.
10451 (vpaddq_u16): Likewise.
10452 (vpaddq_u32): Likewise.
10453 (vpaddq_u64): Likewise.
10454
10455 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
10456
10457 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
10458 builtin generator macros.
10459 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
10460 Define.
10461 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
10462 instead of inline asm.
10463 (vqdmulh_n_s32): Likewise.
10464 (vqdmulhq_n_s16): Likewise.
10465 (vqdmulhq_n_s32): Likewise.
10466 (vqrdmulh_n_s16): Likewise.
10467 (vqrdmulh_n_s32): Likewise.
10468 (vqrdmulhq_n_s16): Likewise.
10469 (vqrdmulhq_n_s32): Likewise.
10470
10471 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
10472
10473 * doc/install.texi (--enable-offload-defaulted): Document.
10474
10475 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
10476
10477 * config/avr/avr-dimode.md: Turn existing patterns into
10478 define_insn_and_split style patterns where the splitter
10479 adds a clobber of the condition code register. Drop "cc"
10480 attribute. Add new patterns to match output of
10481 the splitters.
10482 * config/avr/avr-fixed.md: Likewise.
10483 * config/avr/avr.c (cc_reg_rtx): New.
10484 (avr_parallel_insn_from_insns): Adjust insn count
10485 for removal of set of cc0.
10486 (avr_is_casesi_sequence): Likewise.
10487 (avr_casei_sequence_check_operands): Likewise.
10488 (avr_optimize_casesi): Likewise. Also insert
10489 new insns after jump_insn.
10490 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
10491 for removal of set of cc0.
10492 (avr_init_expanders): Initialize cc_reg_rtx.
10493 (avr_regno_reg_class): Handle REG_CC.
10494 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
10495 (avr_notice_update_cc): Remove function.
10496 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
10497 (compare_condition): Adjust for PARALLEL with
10498 REG_CC clobber.
10499 (out_shift_with_cnt): Likewise.
10500 (ashlhi3_out): Likewise.
10501 (ashrhi3_out): Likewise.
10502 (lshrhi3_out): Likewise.
10503 (avr_class_max_nregs): Return single reg for REG_CC.
10504 (avr_compare_pattern): Check for REG_CC instead
10505 of cc0_rtx.
10506 (avr_reorg_remove_redundant_compare): Likewise.
10507 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
10508 (avr_hard_regno_nregs): Return single reg for REG_CC.
10509 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
10510 (avr_md_asm_adjust): Clobber REG_CC.
10511 (TARGET_HARD_REGNO_NREGS): Define.
10512 (TARGET_CLASS_MAX_NREGS): Define.
10513 (TARGET_MD_ASM_ADJUST): Define.
10514 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
10515 for REG_CC.
10516 (enum reg_class): Add CC_REG class.
10517 (NOTICE_UPDATE_CC): Remove.
10518 (CC_OVERFLOW_UNUSABLE): Remove.
10519 (CC_NO_CARRY): Remove.
10520 * config/avr/avr.md: Turn existing patterns into
10521 define_insn_and_split style patterns where the splitter
10522 adds a clobber of the condition code register. Drop "cc"
10523 attribute. Add new patterns to match output of
10524 the splitters.
10525 (sez): Remove unused pattern.
10526
10527 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
10528
10529 PR target/100311
10530 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
10531 used in HImode.
10532
10533 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
10534
10535 PR target/100305
10536 * config/aarch64/constraints.md (Utq): Require the address to
10537 be valid for both the element mode and for V2DImode.
10538
10539 2021-04-28 Jakub Jelinek <jakub@redhat.com>
10540 Tobias Burnus <tobias@codesourcery.com>
10541
10542 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
10543 * gcc.c (process_command): New variable.
10544 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
10545 set it if -foffload is defaulted.
10546 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
10547 (compile_offload_image): If OFFLOAD_DEFAULTED and
10548 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
10549 if corresponding mkoffload can't be found.
10550 (compile_images_for_offload_targets): Likewise. Free and clear
10551 offload_names if no valid offload is found.
10552 * config.in: Regenerate.
10553 * configure: Regenerate.
10554
10555 2021-04-28 Richard Biener <rguenther@suse.de>
10556
10557 PR tree-optimization/100292
10558 * tree-vect-generic.c (expand_vector_condition): Do not fold
10559 the comparisons.
10560
10561 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
10562
10563 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
10564 * config/rs6000/aix64.opt (m64): New.
10565 (m32): New.
10566
10567 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
10568
10569 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
10570 (index_term_p): Handle ASHIFT too.
10571
10572 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
10573
10574 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
10575 (sync_lock_test_and_set<mode>): Adjust accordingly.
10576 (sync_lock_release<mode>): Likewise.
10577
10578 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
10579
10580 * config/vax/vax-protos.h (adjacent_operands_p): Remove
10581 prototype.
10582 * config/vax/vax.c (adjacent_operands_p): Remove.
10583
10584 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
10585
10586 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
10587 through to the non-conditional execution case if getting the
10588 condition for conditional execution has failed.
10589
10590 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
10591
10592 PR middle-end/100284
10593 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
10594 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
10595 than asserting on it.
10596
10597 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
10598
10599 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
10600 with TARGET_AIX_OS.
10601
10602 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
10603
10604 PR target/94177
10605 * calls.c (precompute_register_parameters): Additionally test
10606 targetm.precompute_tls_p to pre-compute argument.
10607 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
10608 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
10609 * target.def (precompute_tls_p): New.
10610 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
10611 * doc/tm.texi: Regenerated.
10612
10613 2021-04-27 Jakub Jelinek <jakub@redhat.com>
10614
10615 PR target/100200
10616 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
10617 back to HOST_WIDE_INT.
10618
10619 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
10620
10621 PR target/100106
10622 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
10623 memory alignment for the outer mode.
10624
10625 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
10626
10627 PR middle-end/90773
10628 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
10629 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
10630
10631 2021-04-27 Alex Coplan <alex.coplan@arm.com>
10632
10633 PR target/99977
10634 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
10635 with negative immediates: ensure we expand cbranchsi4_scratch
10636 correctly and ensure we satisfy its constraints.
10637 * config/arm/sync.md
10638 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
10639 attempt to tie two output operands together with constraints;
10640 collapse two alternatives.
10641 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
10642 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
10643
10644 2021-04-27 Jakub Jelinek <jakub@redhat.com>
10645
10646 PR target/100200
10647 * config/aarch64/predicates.md (aarch64_sub_immediate,
10648 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
10649 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
10650 * config/aarch64/aarch64.c (aarch64_print_operand,
10651 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
10652
10653 2021-04-27 Jakub Jelinek <jakub@redhat.com>
10654
10655 PR tree-optimization/100239
10656 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
10657 permutations with all indices from the first zero element as vec_shl.
10658
10659 2021-04-27 Jakub Jelinek <jakub@redhat.com>
10660
10661 PR rtl-optimization/100254
10662 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
10663 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
10664
10665 2021-04-27 Richard Biener <rguenther@suse.de>
10666
10667 PR tree-optimization/99912
10668 * passes.def: Add comment about new TODO_remove_unused_locals.
10669 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
10670 at start.
10671
10672 2021-04-27 Richard Biener <rguenther@suse.de>
10673
10674 PR tree-optimization/99912
10675 * passes.def (pass_all_optimizations): Add pass_dse before
10676 the first pass_dce, move the first pass_dse before the
10677 pass_dce following pass_pre.
10678
10679 2021-04-27 Jakub Jelinek <jakub@redhat.com>
10680
10681 PR tree-optimization/95527
10682 * generic-match-head.c: Include tm.h.
10683 * gimple-match-head.c: Include tm.h.
10684 * match.pd (CLZ == INTEGER_CST): Don't use
10685 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
10686 if clz == CFN_CLZ. Add missing val declaration.
10687 (CTZ cmp CST): New simplifications.
10688
10689 2021-04-27 Jakub Jelinek <jakub@redhat.com>
10690
10691 PR tree-optimization/96696
10692 * expr.c (expand_expr_divmod): New function.
10693 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
10694 divisions. Formatting fixes.
10695 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
10696 cheaper.
10697
10698 2021-04-27 Martin Jambor <mjambor@suse.cz>
10699
10700 PR ipa/99951
10701 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
10702 If removing a call statement LHS SSA name, release it.
10703
10704 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
10705
10706 PR target/100236
10707 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
10708 is valid before including it in the mask.
10709
10710 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
10711
10712 PR target/100270
10713 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
10714 SVE attributes.
10715
10716 2021-04-27 Richard Biener <rguenther@suse.de>
10717
10718 PR tree-optimization/100051
10719 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
10720 disambiguator based on access size vs. decl size.
10721
10722 2021-04-27 Richard Biener <rguenther@suse.de>
10723
10724 PR tree-optimization/100278
10725 * tree-ssa-pre.c (compute_avail): Give up when we cannot
10726 adjust TBAA beacuse of mismatching bases.
10727
10728 2021-04-27 Jakub Jelinek <jakub@redhat.com>
10729
10730 PR target/99405
10731 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
10732 For any_rotate define_insn_split and following splitters, use
10733 SWI iterator instead of SWI48.
10734
10735 2021-04-27 Richard Biener <rguenther@suse.de>
10736
10737 PR tree-optimization/99776
10738 * match.pd (bit_field_ref (ctor)): Relax element extract
10739 type compatibility checks.
10740
10741 2021-04-27 Cui,Lili <lili.cui@intel.com>
10742
10743 * common/config/i386/i386-common.c (processor_names):
10744 Sync processor_names with processor_type.
10745 * config/i386/i386-options.c (processor_cost_table):
10746 Sync processor_cost_table with processor_type.
10747
10748 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
10749
10750 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
10751 (irange::set): Call irange_set_1bit_anti_range for handling all
10752 1-bit ranges. Fall through on ~[MIN,MAX].
10753
10754 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
10755
10756 * value-range.cc (irange::legacy_num_pairs): Remove.
10757 (irange::invert): Change gcc_assert to gcc_checking_assert.
10758 * value-range.h (irange::num_pairs): Adjust for a cached
10759 num_pairs(). Also, rename all gcc_assert's to
10760 gcc_checking_assert's.
10761
10762 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
10763
10764 * value-range.cc (irange::operator=): Set m_kind.
10765 (irange::copy_to_legacy): Handle varying and undefined sources
10766 as a legacy copy since they can be easily copied.
10767 (irange::irange_set): Set m_kind.
10768 (irange::irange_set_anti_range): Same.
10769 (irange::set): Rename normalize_min_max to normalize_kind.
10770 (irange::verify_range): Adjust for multi-ranges having the
10771 m_kind field set.
10772 (irange::irange_union): Set m_kind.
10773 (irange::irange_intersect): Same.
10774 (irange::invert): Same.
10775 * value-range.h (irange::kind): Always return m_kind.
10776 (irange::varying_p): Rename to...
10777 (irange::varying_comptaible_p): ...this.
10778 (irange::undefined_p): Only look at m_kind.
10779 (irange::irange): Always set VR_UNDEFINED if applicable.
10780 (irange::set_undefined): Always set VR_UNDEFINED.
10781 (irange::set_varying): Always set m_kind to VR_VARYING.
10782 (irange::normalize_min_max): Rename to...
10783 (irange::normalize_kind): ...this.
10784
10785 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
10786
10787 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
10788 Adjust for constant_p including varying_p.
10789 * tree-vrp.c (vrp_prop::finalize): Same.
10790 (determine_value_range): Same.
10791 * vr-values.c (vr_values::range_of_expr): Same.
10792 * value-range.cc (irange::symbolic_p): Do not check varying_p.
10793 (irange::constant_p): Same.
10794
10795 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
10796
10797 * value-range.cc (irange::legacy_lower_bound): Replace
10798 !undefined_p check with num_ranges > 0.
10799 (irange::legacy_upper_bound): Same.
10800 * value-range.h (irange::type): Same.
10801 (irange::lower_bound): Same.
10802 (irange::upper_bound): Same.
10803
10804 2021-04-26 Richard Biener <rguenther@suse.de>
10805
10806 PR tree-optimization/99956
10807 * gimple-loop-interchange.cc (compute_access_stride):
10808 Try instantiating the access in a shallower loop nest
10809 if instantiating failed.
10810 (compute_access_strides): Pass adjustable loop_nest
10811 to compute_access_stride.
10812
10813 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
10814
10815 * doc/sourcebuild.texi (arm_cmse_hw): Document.
10816
10817 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10818
10819 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
10820
10821 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
10822 Nathan Sidwell <nathan@codesourcery.com>
10823 Tom de Vries <vries@codesourcery.com>
10824 Julian Brown <julian@codesourcery.com>
10825 Kwok Cheung Yeung <kcy@codesourcery.com>
10826
10827 * omp-offload.c (oacc_validate_dims): Implement
10828 '-Wopenacc-parallelism'.
10829 * doc/invoke.texi (-Wopenacc-parallelism): Document.
10830
10831 2021-04-26 Richard Biener <rguenther@suse.de>
10832
10833 * tree-cfg.h (gimplify_build1): Remove.
10834 (gimplify_build2): Likewise.
10835 (gimplify_build3): Likewise.
10836 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
10837 (gimplify_build2): Likewise.
10838 (gimplify_build3): Likewise.
10839 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
10840 Modernize.
10841 (gimplify_build2): Likewise.
10842 (gimplify_build3): Likewise.
10843 (tree_vec_extract): Use resimplify with following SSA edges.
10844 (expand_vector_parallel): Avoid passing NULL size/bitpos
10845 to tree_vec_extract.
10846 * expr.c (store_constructor): Deal with zero-element CTORs.
10847 * match.pd (bit_field_ref <vector CTOR>): Make sure to
10848 produce vector constants when possible.
10849
10850 2021-04-26 Richard Biener <rguenther@suse.de>
10851
10852 * tree-complex.c: Include gimple-fold.h.
10853 (expand_complex_addition): Use gimple_build.
10854 (expand_complex_multiplication_components): Likewise.
10855 (expand_complex_multiplication): Likewise.
10856 (expand_complex_div_straight): Likewise.
10857 (expand_complex_div_wide): Likewise.
10858 (expand_complex_division): Likewise.
10859 (expand_complex_conjugate): Likewise.
10860 (expand_complex_comparison): Likewise.
10861
10862 2021-04-26 Richard Biener <rguenther@suse.de>
10863
10864 * tree-ssa-phiopt.c (two_value_replacement): Remove use
10865 of legacy gimplify_buildN API.
10866
10867 2021-04-26 Richard Biener <rguenther@suse.de>
10868
10869 PR tree-optimization/99473
10870 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
10871 stores.
10872
10873 2021-04-26 Richard Biener <rguenther@suse.de>
10874
10875 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
10876 Use replace_call_with_value.
10877
10878 2021-04-26 Richard Biener <rguenther@suse.de>
10879
10880 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
10881 (update_gimple_call): Likewise.
10882 (update_call_from_tree): Likewise.
10883 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
10884 (valid_gimple_call_p): Likewise.
10885 (move_ssa_defining_stmt_for_defs): Likewise.
10886 (finish_update_gimple_call): Likewise.
10887 (update_gimple_call): Likewise.
10888 (update_call_from_tree): Likewise.
10889 (propagate_tree_value_into_stmt): Use replace_call_with_value.
10890 * gimple-fold.h (update_gimple_call): Declare.
10891 * gimple-fold.c (valid_gimple_rhs_p): Move here from
10892 tree-ssa-propagate.c.
10893 (update_gimple_call): Likewise.
10894 (valid_gimple_call_p): Likewise.
10895 (finish_update_gimple_call): Likewise, and simplify.
10896 (gimplify_and_update_call_from_tree): Implement
10897 update_call_from_tree functionality, avoid excessive
10898 push/pop_gimplify_context.
10899 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
10900 (gimple_fold_call): Likewise.
10901 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
10902 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
10903 (pass_fold_builtins::execute): Likewise.
10904 (optimize_stack_restore): Use replace_call_with_value.
10905 * tree-cfg.c (fold_loop_internal_call): Likewise.
10906 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
10907 only gimplify_and_update_call_from_tree.
10908 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
10909 (handle_builtin_strchr): Likewise.
10910 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
10911
10912 2021-04-26 Jakub Jelinek <jakub@redhat.com>
10913
10914 PR debug/100255
10915 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
10916 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
10917 register keywords.
10918
10919 2021-04-25 liuhongt <hongtao.liu@intel.com>
10920
10921 PR target/98911
10922 * config/i386/i386-builtin.def (BDESC): Change the icode of
10923 the following builtins to CODE_FOR_nothing.
10924 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
10925 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
10926 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
10927 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
10928 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
10929 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
10930 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
10931 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
10932 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
10933 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
10934 (sse2_eq<mode>3): Ditto.
10935 (sse4_1_eqv2di3): Ditto.
10936 (sse2_gt<mode>3): Rename to ..
10937 (*sse2_gt<mode>3): .. this.
10938
10939 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
10940
10941 Revert:
10942 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
10943
10944 PR target/100152
10945 * config/darwin.c (darwin_binds_local_p): Assume that any
10946 public symbol might be interposed for PIC code. Update function
10947 header comment to reflect current Darwin capability.
10948
10949 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
10950
10951 PR target/100152
10952 * config/darwin.c (darwin_binds_local_p): Assume that any
10953 public symbol might be interposed for PIC code. Update function
10954 header comment to reflect current Darwin capability.
10955
10956 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
10957
10958 * doc/sourcebuild.texi: Document no-opts and any-opts target
10959 selectors.
10960
10961 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
10962
10963 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
10964
10965 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
10966
10967 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
10968
10969 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
10970
10971 PR target/100041
10972 * config/i386/i386-options.c (ix86_option_override_internal):
10973 Error out when -m96bit-long-double is used with 64bit targets.
10974 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
10975
10976 2021-04-23 Martin Liska <mliska@suse.cz>
10977
10978 * lto-wrapper.c: Remove FIXME about usage of
10979 hardware_concurrency. The function is not on par with
10980 what we have now.
10981
10982 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
10983
10984 PR target/100182
10985 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
10986 Copy operand 3 to operand 4. Use sse_reg_operand
10987 as operand 3 predicate.
10988 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
10989 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
10990 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
10991 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
10992 Copy operand 1 to operand 0.
10993 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
10994 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
10995 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
10996
10997 2021-04-23 Alex Coplan <alex.coplan@arm.com>
10998
10999 PR rtl-optimization/100230
11000 * early-remat.c (early_remat::sort_candidates): Use delete[]
11001 instead of delete for array allocated with new[].
11002
11003 2021-04-23 Richard Biener <rguenther@suse.de>
11004
11005 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
11006 (capture_info::capture_info): Likewise.
11007 (capture_info::walk_match): Likewise.
11008 (expr::gen_transform): Likewise.
11009 (dt_simplify::gen_1): Likewise.
11010 * gimple-match-head.c (maybe_resimplify_conditional_op):
11011 Remove VEC_COND_EXPR special-casing.
11012 (gimple_simplify): Likewise.
11013 * gimple.c (gimple_could_trap_p_1): Adjust.
11014 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
11015 to participate in PRE.
11016
11017 2021-04-23 Richard Biener <rguenther@suse.de>
11018
11019 * cfganal.c (connect_infinite_loops_to_exit): First call
11020 add_noreturn_fake_exit_edges.
11021 * ipa-sra.c (process_scan_results): Do not call the now redundant
11022 add_noreturn_fake_exit_edges.
11023 * predict.c (tree_estimate_probability): Likewise.
11024 (rebuild_frequencies): Likewise.
11025 * store-motion.c (one_store_motion_pass): Likewise.
11026
11027 2021-04-23 Richard Biener <rguenther@suse.de>
11028
11029 PR tree-optimization/100222
11030 * predict.c (pass_profile::execute): Remove redundant call to
11031 mark_irreducible_loops.
11032 (report_predictor_hitrates): Likewise.
11033
11034 2021-04-23 Richard Biener <rguenther@suse.de>
11035
11036 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
11037 valid_gimple_rhs_p by instead gimplifying to one.
11038
11039 2021-04-23 Richard Biener <rguenther@suse.de>
11040
11041 PR tree-optimization/99971
11042 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
11043 Always use TBAA for loads.
11044
11045 2021-04-23 liuhongt <hongtao.liu@intel.com>
11046
11047 PR target/100093
11048 * config/i386/i386-options.c (ix86_option_override_internal):
11049 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
11050 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
11051 by target attribute.
11052
11053 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
11054
11055 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
11056 DWARF2_DEBUG.
11057 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
11058
11059 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
11060
11061 * config.gcc (powerpc-ibm-aix6.*): Remove.
11062 * config/rs6000/aix61.h: Delete.
11063
11064 2021-04-22 Martin Liska <mliska@suse.cz>
11065
11066 PR testsuite/100159
11067 PR testsuite/100192
11068 * builtins.c (expand_builtin): Fix typos and missing comments.
11069 * dwarf2out.c (gen_subprogram_die): Likewise.
11070 (gen_struct_or_union_type_die): Likewise.
11071
11072 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
11073
11074 PR target/100119
11075 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
11076 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
11077
11078 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
11079
11080 * config/i386/darwin.h (TARGET_64BIT): Remove definition
11081 based on TARGET_ISA_64BIT.
11082 (TARGET_64BIT_P): Remove definition based on
11083 TARGET_ISA_64BIT_P().
11084
11085 2021-04-21 Martin Liska <mliska@suse.cz>
11086
11087 Revert:
11088 2021-04-21 Martin Liska <mliska@suse.cz>
11089
11090 * lto-wrapper.c (cpuset_popcount): Remove.
11091 (init_num_threads): Remove and use hardware_concurrency.
11092
11093 2021-04-21 Martin Liska <mliska@suse.cz>
11094
11095 PR jit/98615
11096 * main.c (main): Call toplev::finalize in CHECKING_P mode.
11097 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
11098 when incremental LTO linking happens.
11099
11100 2021-04-21 Martin Liska <mliska@suse.cz>
11101
11102 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
11103 makeserver cannot be detected, then use -flto=N fallback.
11104
11105 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
11106
11107 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
11108 default to yes for aarch64-linux-gnu.
11109 * configure: Regenerate.
11110
11111 2021-04-21 Martin Liska <mliska@suse.cz>
11112
11113 * lto-wrapper.c (cpuset_popcount): Remove.
11114 (init_num_threads): Remove and use hardware_concurrency.
11115
11116 2021-04-21 Martin Liska <mliska@suse.cz>
11117
11118 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
11119 which remains to be '(... || 0)' and clang complains about it.
11120 * dwarf2out.c (AT_vms_delta): Declare conditionally.
11121 (add_AT_vms_delta): Likewise.
11122 * tree.c (fld_simplified_type): Use rather more common pattern
11123 for disabling of something (#if 0).
11124 (get_tree_code_name): Likewise.
11125 (verify_type_variant): Likewise.
11126
11127 2021-04-21 Martin Liska <mliska@suse.cz>
11128
11129 * config/i386/i386-expand.c (decide_alignment): Use newly named
11130 macro TARGET_CPU_P.
11131 * config/i386/i386.c (ix86_decompose_address): Likewise.
11132 (ix86_address_cost): Likewise.
11133 (ix86_lea_outperforms): Likewise.
11134 (ix86_avoid_lea_for_addr): Likewise.
11135 (ix86_add_stmt_cost): Likewise.
11136 * config/i386/i386.h (TARGET_*): Remove.
11137 (TARGET_CPU_P): New macro.
11138 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
11139 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
11140 (swap_top_of_ready_list): Likewise.
11141 (ix86_atom_sched_reorder): Likewise.
11142 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
11143 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
11144
11145 2021-04-21 Martin Liska <mliska@suse.cz>
11146
11147 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
11148 Define.
11149 (SET_TARGET_NO_SAHF): Likewise.
11150 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
11151 (SET_TARGET_PREFETCH_SSE): Likewise.
11152 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
11153 (SET_TARGET_NO_TUNE): Likewise.
11154 (TARGET_EXPLICIT_NO_80387_P): Likewise.
11155 (SET_TARGET_NO_80387): Likewise.
11156 (DEF_PTA): New.
11157 * config/i386/i386.h (TARGET_*): Remove.
11158 * opth-gen.awk: Generate new used macros.
11159
11160 2021-04-21 Martin Liska <mliska@suse.cz>
11161
11162 * config/i386/i386.h (PTA_*): Remove.
11163 (enum pta_flag): New.
11164 (DEF_PTA): Generate PTA_* values from i386-isa.def.
11165 * config/i386/i386-isa.def: New file.
11166
11167 2021-04-21 Alex Coplan <alex.coplan@arm.com>
11168
11169 PR target/99988
11170 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
11171 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
11172 jump table targets.
11173
11174 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
11175
11176 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
11177 x86_64-*-* targets.
11178 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
11179 New.
11180 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
11181 (ix86_handle_option): Handle -mmwait.
11182 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
11183 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
11184 __builtin_ia32_monitor and __builtin_ia32_mwait.
11185 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
11186 (ix86_valid_target_attribute_inner_p): Likewise.
11187 (ix86_option_override_internal): Enable mwait/monitor
11188 instructions for -msse3.
11189 * config/i386/i386.h (TARGET_MWAIT): New.
11190 (TARGET_MWAIT_P): Likewise.
11191 * config/i386/i386.opt: Add -mmwait.
11192 * config/i386/mwaitintrin.h: New file.
11193 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
11194 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
11195 TARGET_MWAIT.
11196 (@sse3_monitor_<mode>): Likewise.
11197 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
11198 * doc/extend.texi: Document mwait target attribute.
11199 * doc/invoke.texi: Document -mmwait.
11200
11201 2021-04-21 Martin Liska <mliska@suse.cz>
11202
11203 * config/i386/i386-options.c (DEF_ENUM): Remove it.
11204 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
11205 * config/i386/stringop.def (DEF_ENUM): Likewise.
11206
11207 2021-04-21 Martin Liska <mliska@suse.cz>
11208
11209 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
11210 of print_generic_expr.
11211
11212 2021-04-21 Jakub Jelinek <jakub@redhat.com>
11213
11214 PR rtl-optimization/100148
11215 * cprop.c (constprop_register): Use next_nondebug_insn instead of
11216 NEXT_INSN.
11217
11218 2021-04-21 Martin Liska <mliska@suse.cz>
11219
11220 PR ipa/98815
11221 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
11222 free_dominance_info calls.
11223
11224 2021-04-21 Richard Biener <rguenther@suse.de>
11225
11226 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
11227 parameter (and assume it to be false).
11228 (fold_gimple_assign): Adjust, remove all callers of
11229 maybe_fold_reference calling it with is_lhs true.
11230 (gimple_fold_call): Likewise.
11231 (fold_stmt_1): Likewise.
11232
11233 2021-04-21 Richard Biener <rguenther@suse.de>
11234
11235 * fold-const.c (pedantic_non_lvalue_loc): Remove.
11236 (fold_binary_loc): Adjust.
11237 (fold_ternary_loc): Likewise.
11238
11239 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
11240
11241 PR middle-end/100130
11242 * varasm.c (get_block_for_decl): Make sure that any use of the
11243 retain attribute matches the section's retain flag.
11244 (switch_to_section): Check for retain mismatches even when
11245 changing sections, but do not warn if the given decl is the
11246 section's named.decl.
11247 (output_object_block): Pass the first decl in the block (if any)
11248 to switch_to_section.
11249
11250 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
11251
11252 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11253 __CRC32__ for -mcrc32.
11254 * config/i386/i386-options.c (ix86_option_override_internal):
11255 Enable crc32 instruction for -msse4.2.
11256 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
11257 check.
11258 (sse4_2_crc32di): Likewise.
11259 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
11260 intrinsics.
11261
11262 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
11263
11264 PR target/100108
11265 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
11266 OPTION_MASK_ISEL.
11267
11268 2021-04-20 Martin Liska <mliska@suse.cz>
11269
11270 * doc/invoke.texi: Fix typo.
11271 * params.opt: Likewise.
11272
11273 2021-04-20 Martin Liska <mliska@suse.cz>
11274
11275 * doc/invoke.texi: Document new param.
11276
11277 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
11278
11279 PR tree-optimization/100081
11280 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
11281 rather than gori_compute_cache.
11282 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
11283 (range_def_chain::m_logical_depth): New member.
11284 (range_def_chain::range_def_chain): Initialize m_logical_depth.
11285 (range_def_chain::get_def_chain): Don't build defchains through more
11286 than LOGICAL_LIMIT logical expressions.
11287 * params.opt (param_ranger_logical_depth): New.
11288
11289 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
11290
11291 PR target/100067
11292 * config/arm/arm.c (arm_configure_build_target): Do not strip
11293 extended FPU/SIMD feature bits from the target ISA when -mfpu
11294 is specified (partial revert of r11-8168).
11295
11296 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
11297
11298 * params.opt (-param=openacc-kernels=): Add.
11299 * omp-oacc-kernels-decompose.cc
11300 (pass_omp_oacc_kernels_decompose::gate): Use it.
11301 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
11302 (--param): ... here, 'openacc-kernels'.
11303
11304 2021-04-19 Martin Liska <mliska@suse.cz>
11305
11306 PR c/100143
11307 * gengtype.c (finish_root_table): Align function arguments
11308 in between declaration and definition.
11309
11310 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
11311
11312 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
11313 frames larger than the SEH maximum frame size.
11314
11315 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
11316
11317 PR rtl-optimization/99927
11318 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
11319 is dead, just drop it.
11320
11321 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
11322
11323 PR d/99914
11324 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
11325 * doc/tm.texi: Regenerate.
11326 * doc/tm.texi.in (D language and ABI): Add @hook for
11327 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
11328
11329 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
11330
11331 * config/darwin-d.c (darwin_d_handle_target_object_format): New
11332 function.
11333 (darwin_d_register_target_info): New function.
11334 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11335 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
11336 function.
11337 (dragonfly_d_register_target_info): New function.
11338 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11339 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
11340 function.
11341 (freebsd_d_register_target_info): New function.
11342 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11343 * config/glibc-d.c (glibc_d_handle_target_object_format): New
11344 function.
11345 (glibc_d_register_target_info): New function.
11346 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11347 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
11348 function.
11349 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
11350 as handler for objectFormat key.
11351 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
11352 function.
11353 (winnt_d_register_target_info): New function.
11354 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11355 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
11356 function.
11357 (netbsd_d_register_target_info): New function.
11358 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11359 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
11360 function.
11361 (openbsd_d_register_target_info): New function.
11362 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11363 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
11364 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
11365 handler for objectFormat key.
11366 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
11367 function.
11368 (rs6000_d_register_target_info): Add
11369 rs6000_d_handle_target_object_format as handler for objectFormat key.
11370 * config/sol2-d.c (solaris_d_handle_target_object_format): New
11371 function.
11372 (solaris_d_register_target_info): New function.
11373 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
11374
11375 2021-04-16 Jakub Jelinek <jakub@redhat.com>
11376
11377 PR target/91710
11378 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
11379 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
11380 alignment.
11381 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
11382 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
11383 the old and new alignment after applying MIN/MAX to it is different.
11384
11385 2021-04-16 Tamar Christina <tamar.christina@arm.com>
11386
11387 PR target/100048
11388 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
11389 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
11390 TRN optab.
11391 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
11392
11393 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
11394
11395 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
11396 this section and its subsections.
11397
11398 2021-04-16 Jakub Jelinek <jakub@redhat.com>
11399
11400 PR target/100075
11401 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
11402 define_insn patterns.
11403
11404 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
11405
11406 PR rtl-optimization/98689
11407 * reg-notes.def (UNTYPED_CALL): New note.
11408 * combine.c (distribute_notes): Handle it.
11409 * emit-rtl.c (try_split): Likewise.
11410 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
11411 that calls with the note implicitly set all return value registers.
11412 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
11413 to untyped_calls.
11414
11415 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
11416
11417 PR rtl-optimization/99596
11418 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
11419 register accesses for const calls. Assume that pure functions
11420 can only read from global registers. Ignore cases in which
11421 the stack pointer has been marked global.
11422
11423 2021-04-16 Jakub Jelinek <jakub@redhat.com>
11424
11425 PR target/99767
11426 * tree-vect-loop.c (vect_transform_loop): Don't remove just
11427 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
11428 them by their last argument.
11429
11430 2021-04-15 Martin Liska <mliska@suse.cz>
11431
11432 * doc/invoke.texi: Other params don't use it, remove it.
11433
11434 2021-04-15 Richard Biener <rguenther@suse.de>
11435
11436 * gimple-builder.h: Add deprecation note.
11437
11438 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
11439
11440 PR c++/98852
11441 * attribs.h (restrict_type_identity_attributes_to): Declare.
11442 * attribs.c (restrict_type_identity_attributes_to): New function.
11443
11444 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
11445
11446 PR c/98852
11447 * attribs.h (affects_type_identity_attributes): Declare.
11448 * attribs.c (remove_attributes_matching): New function.
11449 (affects_type_identity_attributes): Likewise.
11450
11451 2021-04-15 Jakub Jelinek <jakub@redhat.com>
11452
11453 PR target/100056
11454 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
11455 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
11456 ZERO_EXTEND, SIGN_EXTEND or AND.
11457
11458 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
11459
11460 PR rtl-optimization/99929
11461 * rtl.h (same_vector_encodings_p): New function.
11462 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
11463 * cselib.c (rtx_equal_for_cselib_1): Likewise.
11464 * jump.c (rtx_renumbered_equal_p): Likewise.
11465 * lra-constraints.c (operands_match_p): Likewise.
11466 * reload.c (operands_match_p): Likewise.
11467 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
11468
11469 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
11470
11471 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
11472 more information about variable-length CONST_VECTORs.
11473
11474 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
11475
11476 PR rtl-optimization/100066
11477 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
11478 ordered modes when choosing splitting mode for hard reg.
11479
11480 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
11481
11482 PR target/99246
11483 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
11484 New function.
11485 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
11486
11487 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
11488
11489 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
11490 for mask operand types.
11491 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
11492 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
11493 operand.
11494 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
11495 immediate operand.
11496 * config/s390/s390.c (s390_const_operand_ok): Check the new
11497 operand types and generate a list of valid values.
11498
11499 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
11500
11501 * doc/tm.texi: Regenerate.
11502 * doc/tm.texi.in (D language and ABI): Add @hook for
11503 TARGET_D_REGISTER_OS_TARGET_INFO.
11504
11505 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
11506
11507 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
11508 function.
11509 (aarch64_d_register_target_info): New function.
11510 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
11511 Declare.
11512 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
11513 Define.
11514 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
11515 (arm_d_register_target_info): New function.
11516 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
11517 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
11518 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
11519 (ix86_d_register_target_info): New function.
11520 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
11521 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
11522 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
11523 (mips_d_register_target_info): New function.
11524 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
11525 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
11526 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
11527 (pa_d_register_target_info): New function.
11528 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
11529 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
11530 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
11531 function.
11532 (riscv_d_register_target_info): New function.
11533 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
11534 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
11535 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
11536 function.
11537 (rs6000_d_register_target_info): New function.
11538 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
11539 Declare.
11540 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
11541 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
11542 (s390_d_register_target_info): New function.
11543 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
11544 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
11545 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
11546 function.
11547 (sparc_d_register_target_info): New function.
11548 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
11549 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
11550 * doc/tm.texi: Regenerate.
11551 * doc/tm.texi.in (D language and ABI): Add @hook for
11552 TARGET_D_REGISTER_CPU_TARGET_INFO.
11553
11554 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
11555
11556 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
11557 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
11558 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
11559 * doc/tm.texi: Regenerate.
11560 * doc/tm.texi.in (D language and ABI): Add @hook for
11561 TARGET_D_HAS_STDCALL_CONVENTION.
11562
11563 2021-04-14 Richard Biener <rguenther@suse.de>
11564
11565 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
11566 VEC_COND_EXPRs have a gimple_val condition.
11567 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
11568 can no longer have a GENERIC condition.
11569
11570 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
11571
11572 PR target/100067
11573 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
11574 from the isa_delta when -mfpu has been used.
11575 (arm_options_perform_arch_sanity_checks): It's the architecture that
11576 lacks an FPU not the processor.
11577
11578 2021-04-13 Richard Biener <rguenther@suse.de>
11579
11580 PR tree-optimization/100053
11581 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
11582 not use optimistic dominance queries for backedges to validate
11583 predicated values.
11584 (dominated_by_p_w_unex): Add parameter to ignore executable
11585 state on backedges.
11586 (rpo_elim::eliminate_avail): Adjust.
11587
11588 2021-04-13 Jakub Jelinek <jakub@redhat.com>
11589
11590 PR target/100028
11591 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
11592 *aarch64_bfxilsi_extrdi): New define_insn patterns.
11593
11594 2021-04-13 Jakub Jelinek <jakub@redhat.com>
11595
11596 PR target/99648
11597 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
11598 outermode, return NULL if the result doesn't encode back to the
11599 original byte sequence.
11600 (simplify_gen_subreg): Don't create SUBREGs from constants to
11601 MODE_COMPOSITE_P outermode.
11602
11603 2021-04-12 Jakub Jelinek <jakub@redhat.com>
11604
11605 PR rtl-optimization/99905
11606 * combine.c (expand_compound_operation): If pos + len > modewidth,
11607 perform the right shift by pos in inner_mode and then convert to mode,
11608 instead of trying to simplify a shift of rtx with inner_mode by pos
11609 as if it was a shift in mode.
11610
11611 2021-04-12 Jakub Jelinek <jakub@redhat.com>
11612
11613 PR debug/99830
11614 * combine.c (simplify_and_const_int_1): Don't optimize varop
11615 away if it has side-effects.
11616
11617 2021-04-12 Martin Liska <mliska@suse.cz>
11618
11619 * doc/extend.texi: Escape @smallexample content.
11620
11621 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
11622
11623 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
11624 alternative in order to load a DFP zero.
11625
11626 2021-04-12 Martin Liska <mliska@suse.cz>
11627
11628 * doc/extend.texi: Be more precise in documentation
11629 of symver attribute.
11630
11631 2021-04-12 Martin Liska <mliska@suse.cz>
11632
11633 PR sanitizer/99877
11634 * gimplify.c (gimplify_expr): Right now, we unpoison all
11635 variables before a goto <dest>. We should not do it if we are
11636 in a omp context.
11637
11638 2021-04-12 Cui,Lili <lili.cui@intel.com>
11639
11640 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
11641 rocketlake.
11642 * common/config/i386/i386-common.c (processor_names): Add
11643 rocketlake.
11644 (processor_alias_table): Add rocketlake.
11645 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
11646 INTEL_COREI7_ROCKETLAKE.
11647 * config.gcc: Add -march=rocketlake.
11648 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11649 rocketlake.
11650 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
11651 (processor_cost_table): Add rocketlake cost.
11652 * config/i386/i386.h (ix86_size_cost) : Define
11653 TARGET_ROCKETLAKE.
11654 (processor_type) : Add PROCESSOR_ROCKETLAKE.
11655 (PTA_ROCKETLAKE): Ditto.
11656 * doc/extend.texi: Add rocketlake.
11657 * doc/invoke.texi: Add rocketlake.
11658
11659 2021-04-12 Cui,Lili <lili.cui@intel.com>
11660
11661 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
11662 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
11663 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
11664 * doc/invoke.texi: Change alderlake ISA list.
11665
11666 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
11667
11668 PR middle-end/98088
11669 * omp-expand.c (expand_oacc_collapse_init): Update condition in
11670 a gcc_assert.
11671
11672 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
11673
11674 PR target/99744
11675 * config/i386/serializeintrin.h (_serialize): Defined as macro.
11676
11677 2021-04-10 Jakub Jelinek <jakub@redhat.com>
11678
11679 PR lto/99849
11680 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
11681 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
11682
11683 2021-04-10 Jakub Jelinek <jakub@redhat.com>
11684
11685 PR middle-end/99989
11686 * gimple-ssa-warn-alloca.c
11687 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
11688 0 with integer precision unconditionally.
11689
11690 2021-04-10 Jakub Jelinek <jakub@redhat.com>
11691
11692 PR rtl-optimization/98601
11693 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
11694 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
11695 unaligned_mems handle VOIDmode like BLKmode.
11696
11697 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
11698
11699 PR lto/99857
11700 * tree.c (free_lang_data_in_decl): Do not release body of
11701 declare_variant_alt.
11702
11703 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
11704
11705 * config/aarch64/aarch64.c (aarch64_option_restore): If the
11706 architecture was specified explicitly and the tuning wasn't,
11707 tune for the architecture rather than the configured default CPU.
11708
11709 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
11710
11711 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
11712 as the temporary register.
11713
11714 2021-04-09 Martin Liska <mliska@suse.cz>
11715
11716 * doc/extend.texi: Move non-target attributes on the top level.
11717
11718 2021-04-09 Martin Liska <mliska@suse.cz>
11719
11720 * doc/invoke.texi: Document minimum and maximum value of the
11721 argument for both supported compression algorithms.
11722
11723 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
11724
11725 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
11726 TLS BSS before TLS data.
11727 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
11728
11729 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
11730
11731 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
11732
11733 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
11734
11735 * match.pd: Extend vec_cond folds to handle shifts.
11736
11737 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
11738
11739 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
11740 peephole.
11741
11742 2021-04-08 Alex Coplan <alex.coplan@arm.com>
11743
11744 PR target/99647
11745 * config/arm/iterators.md (MVE_vecs): New.
11746 (V_elem): Also handle V2DF.
11747 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
11748 (*mve_vdup<mode>): ... this. Remove second alternative since
11749 vec_duplicate of const_int is not canonical RTL, and we don't
11750 want to match symbol_refs.
11751 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
11752
11753 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
11754
11755 * fold-const.c (fold_single_bit_test): Fix typo.
11756 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
11757 instead.
11758
11759 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
11760
11761 PR tree-optimization/97513
11762 * tree-vect-slp.c (vect_add_slp_permutation): New function,
11763 split out from...
11764 (vectorizable_slp_permutation): ...here. Detect cases in which
11765 all VEC_PERM_EXPRs are guaranteed to have the same stepped
11766 permute vector and only generate one permute vector for that case.
11767 Extend that case to handle variable-length vectors.
11768
11769 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
11770
11771 PR tree-optimization/99873
11772 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
11773 (vect_build_slp_instance): Don't split store groups that could
11774 use IFN_STORE_LANES.
11775
11776 2021-04-07 Jakub Jelinek <jakub@redhat.com>
11777
11778 PR target/99872
11779 * varasm.c (output_constant_pool_contents): Don't strip name encoding
11780 from XSTR (desc->sym, 0) or from label before passing those to
11781 ASM_OUTPUT_DEF.
11782
11783 2021-04-07 Richard Biener <rguenther@suse.de>
11784
11785 PR tree-optimization/99954
11786 * tree-loop-distribution.c: Include tree-affine.h.
11787 (generate_memcpy_builtin): Try using tree-affine to prove
11788 non-overlap.
11789 (loop_distribution::classify_builtin_ldst): Always classify
11790 as PKIND_MEMMOVE.
11791
11792 2021-04-07 Richard Biener <rguenther@suse.de>
11793
11794 PR tree-optimization/99947
11795 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
11796 steps vector to avoid pushing elements from the reallocated
11797 vector.
11798
11799 2021-04-07 Richard Biener <rguenther@suse.de>
11800
11801 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
11802 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
11803 printing...
11804 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
11805 function.
11806 (debug_vn_reference_ops): New.
11807
11808 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
11809
11810 PR tree-optimization/98736
11811 * tree-loop-distribution.c
11812 * (loop_distribution::bb_top_order_init):
11813 Compute RPO with programing order preserved by calling function
11814 rev_post_order_and_mark_dfs_back_seme.
11815
11816 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
11817
11818 PR target/99781
11819 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
11820 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
11821 functions.
11822 (process_bb_lives): Don't update biggest mode of hard reg for
11823 implicit in multi-register group. Use the new functions for
11824 updating dead_set and unused_set by register notes.
11825
11826 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
11827
11828 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
11829 instead of *.
11830
11831 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
11832
11833 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
11834 (skylake_memset): Likewise.
11835 (skylake_cost): Change CLEAR_RATIO to 17.
11836 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
11837 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
11838 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
11839
11840 2021-04-06 Richard Biener <rguenther@suse.de>
11841
11842 PR tree-optimization/99880
11843 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
11844 set vectorized defs of relevant PHIs.
11845
11846 2021-04-06 Richard Biener <rguenther@suse.de>
11847
11848 PR tree-optimization/99924
11849 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
11850 nodes w/o scalar stmts as visited.
11851
11852 2021-04-06 Alex Coplan <alex.coplan@arm.com>
11853
11854 PR target/99748
11855 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
11856 PCS for [su]fix_optab.
11857
11858 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
11859
11860 * config/darwin.c (machopic_legitimize_pic_address): Check
11861 that the current pic register is one of the hard reg set
11862 before setting liveness.
11863
11864 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
11865
11866 * config/darwin.c (machopic_legitimize_pic_address): Fix
11867 whitespace, remove unused code.
11868
11869 2021-04-03 Jakub Jelinek <jakub@redhat.com>
11870
11871 PR tree-optimization/99882
11872 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
11873 pointer type.
11874
11875 2021-04-03 Jakub Jelinek <jakub@redhat.com>
11876
11877 PR rtl-optimization/99863
11878 * dse.c (replace_read): Drop regs_live argument. Instead of
11879 regs_live, use store_insn->fixed_regs_live if non-NULL,
11880 otherwise punt if insns sequence clobbers or sets any hard
11881 registers.
11882
11883 2021-04-03 Jakub Jelinek <jakub@redhat.com>
11884
11885 PR testsuite/98125
11886 * targhooks.h (default_print_patchable_function_entry_1): Declare.
11887 * targhooks.c (default_print_patchable_function_entry_1): New function,
11888 copied from default_print_patchable_function_entry with an added flags
11889 argument.
11890 (default_print_patchable_function_entry): Rewritten into a small
11891 wrapper around default_print_patchable_function_entry_1.
11892 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
11893 Redefine.
11894 (rs6000_print_patchable_function_entry): New function.
11895
11896 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
11897
11898 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
11899
11900 2021-04-01 Jason Merrill <jason@redhat.com>
11901
11902 PR c++/98481
11903 * common.opt: Document v15 and v16.
11904
11905 2021-04-01 Richard Biener <rguenther@suse.de>
11906
11907 PR tree-optimization/99863
11908 * gimplify.c (gimplify_init_constructor): Recompute vector
11909 constructor flags.
11910
11911 2021-04-01 Jakub Jelinek <jakub@redhat.com>
11912
11913 * doc/extend.texi (symver attribute): Fix up syntax errors
11914 in the examples.
11915
11916 2021-04-01 Jakub Jelinek <jakub@redhat.com>
11917
11918 PR tree-optimization/96573
11919 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
11920 also pointer types.
11921
11922 2021-04-01 Richard Biener <rguenther@suse.de>
11923
11924 PR tree-optimization/99856
11925 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
11926 precision to vector element precision.
11927
11928 2021-04-01 Martin Jambor <mjambor@suse.cz>
11929
11930 PR tree-optimization/97009
11931 * tree-sra.c (access_or_its_child_written): New function.
11932 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
11933 test.
11934
11935 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
11936
11937 PR ipa/98265
11938 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
11939
11940 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
11941
11942 PR target/99133
11943 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
11944 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
11945 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
11946 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
11947 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
11948 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
11949 Likewise.
11950 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
11951 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
11952 (define_attr "prefixed"): Update initializer.
11953
11954 2021-03-31 Jakub Jelinek <jakub@redhat.com>
11955
11956 PR debug/99490
11957 * dwarf2out.c (debug_ranges_dwo_section): New variable.
11958 (DW_RANGES_IDX_SKELETON): Define.
11959 (struct dw_ranges): Add begin_entry and end_entry members.
11960 (DEBUG_DWO_RNGLISTS_SECTION): Define.
11961 (add_ranges_num): Adjust r initializer for addition of *_entry
11962 members.
11963 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
11964 set idx to DW_RANGES_IDX_SKELETON.
11965 (use_distinct_base_address_for_range): New function.
11966 (index_rnglists): Don't set r->idx if it is equal to
11967 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
11968 r->end_entry for -gsplit-dwarf if those will be needed by
11969 output_rnglists.
11970 (output_rnglists): Add DWO argument. If true, switch to
11971 debug_ranges_dwo_section rather than debug_ranges_section.
11972 Adjust l1/l2 label indexes. Only output the offset table when
11973 dwo is true and don't include in there the skeleton range
11974 entry if present. For -gsplit-dwarf, skip ranges that belong
11975 to the other rnglists section. Change return type from void
11976 to bool and return true if there are any range entries for
11977 the other section. For dwarf_split_debug_info use
11978 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
11979 entries instead of DW_RLE_start_end, DW_RLE_start_length and
11980 DW_RLE_base_address. Use use_distinct_base_address_for_range.
11981 (init_sections_and_labels): Initialize debug_ranges_dwo_section
11982 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
11983 and range_base_label indexes.
11984 (dwarf2out_finish): Call index_rnglists earlier before finalizing
11985 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
11986 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
11987 with different dwo arguments.
11988 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
11989
11990 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
11991
11992 PR tree-optimization/98268
11993 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
11994 recompute_tree_invariant_for_addr_expr after successfully
11995 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
11996
11997 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
11998
11999 PR tree-optimization/99726
12000 * tree-data-ref.c (create_intersect_range_checks_index): Bail
12001 out if there is more than one access function SCEV for the loop
12002 being versioned.
12003
12004 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
12005
12006 PR rtl-optimization/97141
12007 PR rtl-optimization/98726
12008 * emit-rtl.c (valid_for_const_vector_p): Return true for
12009 CONST_POLY_INT_P.
12010 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
12011 poly_wide_int instead of a wide_int.
12012 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
12013 of a wide_int.
12014 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
12015 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
12016 false for CONST_VECTORs that cannot be forced to memory.
12017 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
12018 is too complex to force to memory, build it up from individual
12019 elements instead.
12020
12021 2021-03-31 Jan Hubicka <jh@suse.cz>
12022
12023 PR lto/99447
12024 * cgraph.c (cgraph_node::release_body): Fix overactive check.
12025
12026 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
12027
12028 PR target/99786
12029 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
12030 for V4HI and V2SI.
12031
12032 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
12033
12034 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
12035 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
12036 to SImode.
12037 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
12038 "rep movsb/stosb" only for known sizes.
12039 * config/i386/i386-options.c (processor_cost_table): Use Ice
12040 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
12041 Rapids and Alder Lake.
12042 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
12043 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
12044 (icelake_memset): Likewise.
12045 (icelake_cost): Likewise.
12046 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
12047 New.
12048
12049 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
12050
12051 PR target/98119
12052 * config/aarch64/aarch64.c
12053 (aarch64_vectorize_preferred_vector_alignment): Query the size
12054 of the provided SVE vector; do not assume that all SVE vectors
12055 have the same size.
12056
12057 2021-03-31 Jan Hubicka <jh@suse.cz>
12058
12059 PR lto/99447
12060 * cgraph.c (cgraph_node::release_body): Remove all callers and
12061 references.
12062 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
12063 * cgraphunit.c (cgraph_node::expand): And here.
12064
12065 2021-03-31 Martin Liska <mliska@suse.cz>
12066
12067 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
12068 and one negated condition.
12069
12070 2021-03-31 Jakub Jelinek <jakub@redhat.com>
12071 Richard Sandiford <richard.sandiford@arm.com>
12072
12073 PR target/99813
12074 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
12075 constraints on operands[2] and similarly 0 and rk constraints
12076 on operands[1] corresponding to that.
12077
12078 2021-03-31 Jakub Jelinek <jakub@redhat.com>
12079
12080 PR bootstrap/98860
12081 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
12082 linker doesn't support DWARF sections new in DWARF5.
12083 * config/i386/i386-options.c (ix86_option_override_internal): Default
12084 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
12085 targets.
12086 * config.in: Regenerated.
12087 * configure: Regenerated.
12088
12089 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12090
12091 PR target/99820
12092 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
12093 available issue_info before using it.
12094
12095 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12096
12097 PR target/99822
12098 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
12099 in operand 1.
12100
12101 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
12102
12103 PR target/99718
12104 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
12105 (altivec_lvsl_reg_<mode>): ... this.
12106 (altivec_lvsr_reg): Change to ...
12107 (altivec_lvsr_reg_<mode>): ... this.
12108 * config/rs6000/predicates.md (vec_set_index_operand): New.
12109 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12110 Enable 32bit variable vec_insert for all TARGET_VSX.
12111 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
12112 Enable 32bit variable vec_insert for p9 and above.
12113 (rs6000_expand_vector_set_var_p8): Rename to ...
12114 (rs6000_expand_vector_set_var_p7): ... this.
12115 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
12116 position.
12117 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
12118 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
12119 gen_altivec_lvsr_reg_di.
12120
12121 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
12122
12123 PR target/99744
12124 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
12125 (__rdtscp): Likewise.
12126
12127 2021-03-30 Tamar Christina <tamar.christina@arm.com>
12128
12129 PR tree-optimization/99825
12130 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
12131 Reject non-mult 2 lanes.
12132
12133 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
12134
12135 PR target/99773
12136 * config/arm/arm.c (arm_file_start): Fix emission of
12137 Tag_ABI_VFP_args attribute.
12138
12139 2021-03-30 Richard Biener <rguenther@suse.de>
12140
12141 PR tree-optimization/99824
12142 * stor-layout.c (set_min_and_max_values_for_integral_type):
12143 Assert the precision is within the bounds of
12144 WIDE_INT_MAX_PRECISION.
12145 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
12146 the outermost component ref only to lower the access size
12147 and initialize that from the access type.
12148
12149 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
12150
12151 PR target/98136
12152 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
12153 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
12154
12155 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
12156
12157 * config/aarch64/aarch64.md
12158 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
12159 attribute to disambiguate between SIMD and FP variants of the
12160 instruction.
12161
12162 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
12163
12164 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
12165 (analyze_ssa_name_flags): Fix typo in comment.
12166
12167 2021-03-29 Alex Coplan <alex.coplan@arm.com>
12168
12169 PR target/99216
12170 * config/aarch64/aarch64-sve-builtins.cc
12171 (function_builder::add_function): Add placeholder_p argument, use
12172 placeholder decls if this is set.
12173 (function_builder::add_unique_function): Instead of conditionally adding
12174 direct overloads, unconditionally add either a direct overload or a
12175 placeholder.
12176 (function_builder::add_overloaded_function): Set placeholder_p if we're
12177 using C++ overloads. Use the obstack for string storage instead
12178 of relying on the tree nodes.
12179 (function_builder::add_overloaded_functions): Don't return early for
12180 m_direct_overloads: we need to add placeholders.
12181 * config/aarch64/aarch64-sve-builtins.h
12182 (function_builder::add_function): Add placeholder_p argument.
12183
12184 2021-03-29 Richard Biener <rguenther@suse.de>
12185
12186 PR tree-optimization/99807
12187 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
12188 assert below VEC_PERM handling.
12189
12190 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12191
12192 PR target/99037
12193 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
12194 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
12195 matching const_int 0.
12196 (move_lo_quad_internal_be_<mode>): Likewise.
12197 (move_lo_quad_<mode>): Update for the above.
12198 * config/aarch64/iterators.md (VQ_2E): Delete.
12199
12200 2021-03-29 Jakub Jelinek <jakub@redhat.com>
12201
12202 PR tree-optimization/99777
12203 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
12204 types other than scalar integral types.
12205
12206 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
12207
12208 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
12209 XCOFF TLS reloc decorations.
12210
12211 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
12212
12213 * doc/analyzer.texi (Analyzer Internals): Update link to
12214 "A Memory Model for Static Analysis of C Programs".
12215
12216 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
12217
12218 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
12219 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
12220 Declare.
12221 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
12222 (rs6000_special_round_type_align): Recursively check innermost first
12223 field.
12224
12225 2021-03-26 Jakub Jelinek <jakub@redhat.com>
12226
12227 PR debug/99334
12228 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
12229 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
12230 assignment with drap_reg active, queue reg save for hfp with offset 0
12231 and flush queued reg saves. When handling a push with rule18,
12232 defer queueing reg save for hfp and just assert the offset is 0.
12233 (scan_trace): Assert that fde->rule18 is false.
12234
12235 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
12236
12237 PR target/99766
12238 * ira-costs.c (record_reg_classes): Put case with
12239 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
12240 * ira.c (ira_setup_alts): Ditto.
12241 * lra-constraints.c (process_alt_operands): Ditto.
12242 * recog.c (asm_operand_ok): Ditto.
12243 * reload.c (find_reloads): Ditto.
12244
12245 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12246
12247 * config/aarch64/aarch64-protos.h
12248 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
12249 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
12250 * config/aarch64/aarch64.c (generic_addrcost_table): Update
12251 accordingly, using the same costs as for post_modify.
12252 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
12253 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
12254 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
12255 (a64fx_addrcost_table): Likewise.
12256 (neoversev1_addrcost_table): New.
12257 (neoversev1_tunings): Use neoversev1_addrcost_table.
12258 (aarch64_address_cost): Use the new post_modify costs for CImode
12259 and XImode.
12260
12261 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12262
12263 * config/aarch64/aarch64.opt
12264 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
12265 * doc/invoke.texi: Document it.
12266 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
12267 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
12268 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
12269 (aarch64_vec_issue_info): New structures.
12270 (cpu_vector_cost): Write comments above the variables rather
12271 than to the side.
12272 (cpu_vector_cost::issue_info): New member variable.
12273 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
12274 and tree-ssa-loop-niter.h.
12275 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
12276 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
12277 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
12278 (thunderx3t110_vector_cost): Initialize issue_info to null.
12279 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
12280 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
12281 (neoversev1_vector_cost): Use them.
12282 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
12283 (aarch64_vector_costs::saw_sve_only_op): New member variable.
12284 (aarch64_vector_costs::num_vector_iterations): Likewise.
12285 (aarch64_vector_costs::scalar_ops): Likewise.
12286 (aarch64_vector_costs::advsimd_ops): Likewise.
12287 (aarch64_vector_costs::sve_ops): Likewise.
12288 (aarch64_vector_costs::seen_loads): Likewise.
12289 (aarch64_simd_vec_costs_for_flags): New function.
12290 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
12291 Count the number of predicate operations required by SVE WHILE
12292 instructions.
12293 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
12294 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
12295 (aarch64_count_ops): Likewise.
12296 (aarch64_add_stmt_cost): Record whether see an SVE operation
12297 that cannot currently be implementing using Advanced SIMD.
12298 Record issue information about the scalar, Advanced SIMD
12299 and (where relevant) SVE versions of a loop.
12300 (aarch64_vec_op_count::dump): New function.
12301 (aarch64_sve_op_count::dump): Likewise.
12302 (aarch64_estimate_min_cycles_per_iter): Likewise.
12303 (aarch64_adjust_body_cost): If issue information is available,
12304 try to compare the issue rates of the various loop implementations
12305 and increase or decrease the vector body cost accordingly.
12306
12307 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12308
12309 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
12310 Assume a zero cost for induction phis.
12311
12312 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12313
12314 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
12315 function.
12316 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
12317 vector comparisons.
12318
12319 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12320
12321 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
12322 New function.
12323 (aarch64_add_stmt_cost): Call it.
12324
12325 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12326
12327 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
12328 New tuning parameter.
12329 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
12330 (aarch64_estimated_sve_vq): New function.
12331 (aarch64_vector_costs::analyzed_vinfo): New member variable.
12332 (aarch64_vector_costs::is_loop): Likewise.
12333 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
12334 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
12335 (aarch64_record_potential_advsimd_unrolling): New function.
12336 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
12337 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
12338 aarch64_analyze_bb_vinfo on the first use of a costs structure.
12339 Detect whether we're vectorizing a loop for SVE that might be
12340 completely unrolled if it used Advanced SIMD instead.
12341 (aarch64_adjust_body_cost_for_latency): New function.
12342 (aarch64_finish_cost): Call it.
12343
12344 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12345
12346 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
12347 (aarch64_init_cost): New function.
12348 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
12349 the default unsigned[3].
12350 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
12351 (TARGET_VECTORIZE_INIT_COST): Override.
12352 (TARGET_VECTORIZE_FINISH_COST): Likewise.
12353 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
12354
12355 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12356
12357 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
12358 (neoversev1_sve_vector_cost): New cost structures.
12359 (neoversev1_vector_cost): Likewise.
12360 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
12361
12362 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12363
12364 * config/aarch64/aarch64-protos.h
12365 (sve_vec_cost::scatter_store_elt_cost): New member variable.
12366 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
12367 accordingly, taking the cost from the cost of a scalar_store.
12368 (a64fx_sve_vector_cost): Likewise.
12369 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
12370
12371 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12372
12373 * config/aarch64/aarch64-protos.h
12374 (simd_vec_cost::store_elt_extra_cost): New member variable.
12375 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
12376 accordingly, using the vec_to_scalar cost for the new field.
12377 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
12378 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
12379 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
12380 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
12381 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
12382 (thunderx3t110_advsimd_vector_cost): Likewise.
12383 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
12384
12385 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12386
12387 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
12388 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
12389 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
12390 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
12391 accordingly, using zero for the new costs.
12392 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
12393 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
12394 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
12395 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
12396 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
12397 (thunderx3t110_advsimd_vector_cost): Likewise.
12398 (aarch64_ld234_st234_vectors): New function.
12399 (aarch64_adjust_stmt_cost): Likewise.
12400 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
12401 the new vector costs.
12402
12403 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12404
12405 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
12406 derived class of simd_vec_cost. Add information about CLAST[AB]
12407 and FADDA instructions.
12408 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
12409 accordingly, using the vec_to_scalar costs for the new fields.
12410 (a64fx_sve_vector_cost): Likewise.
12411 (aarch64_reduc_type): New function.
12412 (aarch64_sve_in_loop_reduction_latency): Likewise.
12413 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
12414 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
12415 that occur in the loop body.
12416 (aarch64_add_stmt_cost): Update call accordingly.
12417
12418 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
12419
12420 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
12421 New tuning flag.
12422 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
12423 above the fields rather than to the right.
12424 (simd_vec_cost::reduc_i8_cost): New member variable.
12425 (simd_vec_cost::reduc_i16_cost): Likewise.
12426 (simd_vec_cost::reduc_i32_cost): Likewise.
12427 (simd_vec_cost::reduc_i64_cost): Likewise.
12428 (simd_vec_cost::reduc_f16_cost): Likewise.
12429 (simd_vec_cost::reduc_f32_cost): Likewise.
12430 (simd_vec_cost::reduc_f64_cost): Likewise.
12431 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
12432 accordingly, using the vec_to_scalar_cost for the new fields.
12433 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
12434 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
12435 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
12436 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
12437 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
12438 (thunderx3t110_advsimd_vector_cost): Likewise.
12439 (aarch64_use_new_vector_costs_p): New function.
12440 (aarch64_simd_vec_costs): New function, split out from...
12441 (aarch64_builtin_vectorization_cost): ...here.
12442 (aarch64_is_reduction): New function.
12443 (aarch64_detect_vector_stmt_subtype): Likewise.
12444 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
12445 using the new vector costs.
12446
12447 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
12448
12449 PR ipa/99466
12450 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
12451 TLS declarations as public.
12452
12453 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
12454
12455 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
12456 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
12457 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
12458 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
12459 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
12460 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
12461 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
12462 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
12463 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
12464
12465 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
12466
12467 PR d/91595
12468 * config.gcc (*-*-cygwin*): Add winnt-d.o
12469 (*-*-mingw*): Likewise.
12470 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
12471 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
12472 * config/i386/t-cygming: Add winnt-d.o.
12473 * config/i386/winnt-d.c: New file.
12474
12475 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
12476
12477 * config/freebsd-d.c: Include memmodel.h.
12478
12479 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
12480
12481 PR d/99691
12482 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
12483 * config/t-openbsd: Add openbsd-d.o.
12484 * config/openbsd-d.c: New file.
12485
12486 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
12487
12488 PR tree-optimization/96974
12489 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
12490 with graceful exit.
12491
12492 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
12493
12494 Revert:
12495 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
12496
12497 PR target/98209
12498 PR target/99744
12499 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
12500 always_inline in system headers.
12501
12502 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
12503
12504 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
12505
12506 2021-03-25 Jakub Jelinek <jakub@redhat.com>
12507
12508 PR c++/99565
12509 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
12510 * fold-const.c (operand_compare::operand_equal_p): Don't compare
12511 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
12512
12513 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
12514
12515 PR target/98209
12516 PR target/99744
12517 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
12518 always_inline in system headers.
12519
12520 2021-03-25 Richard Biener <rguenther@suse.de>
12521
12522 PR tree-optimization/99746
12523 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
12524 the scalar stmt as patterned. Instead set up required things
12525 manually.
12526
12527 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
12528
12529 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
12530 from 256 to 512.
12531
12532 2021-03-24 Martin Liska <mliska@suse.cz>
12533
12534 PR target/99753
12535 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
12536 error.
12537 * config/i386/i386-options.c (ix86_option_override_internal):
12538 Add run-time assert.
12539
12540 2021-03-24 Martin Jambor <mjambor@suse.cz>
12541
12542 PR ipa/99122
12543 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
12544 parameters with unknown type.
12545 (ipacp_value_safe_for_type): New function.
12546 (propagate_vals_across_arith_jfunc): Verify that the constant type
12547 can be used for a type of the formal parameter.
12548 (propagate_vals_across_ancestor): Likewise.
12549 (propagate_scalar_across_jump_function): Likewise. Pass the type
12550 also to propagate_vals_across_ancestor.
12551
12552 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
12553
12554 PR target/99727
12555 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
12556 constraint.
12557 (movmisalign<mode>_mve_load): Likewise.
12558
12559 2021-03-24 Jakub Jelinek <jakub@redhat.com>
12560
12561 PR target/99724
12562 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
12563 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
12564
12565 2021-03-24 Alexandre Oliva <oliva@adacore.com>
12566
12567 * doc/sourcebuild.texi (sysconf): New effective target.
12568
12569 2021-03-24 Alexandre Oliva <oliva@adacore.com>
12570
12571 * config/i386/predicates.md (reg_or_const_vec_operand): New.
12572 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
12573 the now *-prefixed insn_and_split, turn the splitter const vec
12574 into an input for the insn, making it an ignored immediate for
12575 non-split cases, and loaded into the scratch register
12576 otherwise.
12577
12578 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
12579
12580 PR target/99581
12581 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
12582 Use define_relaxed_memory_constraint for them.
12583
12584 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
12585
12586 PR target/99733
12587 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
12588 colon to the diagnostic message.
12589
12590 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
12591
12592 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
12593 set_info's uses.
12594 (try_fwprop_subst_note): Use set_info instead of insn_info.
12595 (try_fwprop_subst_pattern): Likewise.
12596 (try_fwprop_subst_notes): Likewise.
12597 (try_fwprop_subst): Likewise.
12598 (forward_propagate_subreg): Likewise.
12599 (forward_propagate_and_simplify): Likewise.
12600 (forward_propagate_into): Likewise.
12601 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
12602 method.
12603 (set_info::single_nondebug_insn_use): Likewise.
12604 (set_info::single_phi_use): Likewise.
12605 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
12606 method.
12607 (set_info::single_nondebug_insn_use): Likewise.
12608 (set_info::single_phi_use): Likewise.
12609
12610 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
12611
12612 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
12613
12614 2021-03-23 Jakub Jelinek <jakub@redhat.com>
12615
12616 PR target/99540
12617 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
12618 expand_mult to perform an unsigned rather than a signed
12619 multiplication.
12620
12621 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
12622
12623 PR target/99704
12624 * config/i386/cpuid.h (__cpuid): Add __volatile__.
12625 (__cpuid_count): Likewise.
12626
12627 2021-03-23 Richard Biener <rguenther@suse.de>
12628
12629 PR tree-optimization/99721
12630 * tree-vect-slp.c (vect_slp_analyze_node_operations):
12631 Make sure we can schedule the node.
12632
12633 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
12634
12635 * config/riscv/riscv.c (riscv_subword): Take endianness into
12636 account when calculating the byte offset.
12637
12638 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
12639
12640 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
12641 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
12642 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
12643 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
12644 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
12645 new predicate "subreg_lowpart_operator"
12646
12647 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
12648
12649 * config/riscv/riscv.c (riscv_swap_instruction): New function
12650 to byteswap an SImode rtx containing an instruction.
12651 (riscv_trampoline_init): Byteswap the generated instructions
12652 when needed.
12653
12654 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
12655
12656 * common/config/riscv/riscv-common.c
12657 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
12658 * config.gcc (riscv32be-*, riscv64be-*): Set
12659 TARGET_BIG_ENDIAN_DEFAULT to 1.
12660 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
12661 depending on default endianness.
12662 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
12663 * config/riscv/linux.h (LINK_SPEC): Likewise.
12664 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
12665 default endianness.
12666 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
12667
12668 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
12669
12670 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
12671 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
12672 * config/riscv/linux.h (LINK_SPEC): Likewise.
12673 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
12674 -mlittle-endian.
12675 (BYTES_BIG_ENDIAN): Handle big endian.
12676 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
12677 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
12678 options.
12679 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
12680
12681 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
12682
12683 * regcprop.c (find_oldest_value_reg): Ask target whether
12684 different mode is fine for replacement register.
12685
12686 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
12687
12688 PR tree-optimization/99296
12689 * value-range.cc (irange::irange_set_1bit_anti_range): New.
12690 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
12691 * value-range.h (irange::irange_set_1bit_anti_range): New.
12692
12693 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
12694
12695 PR target/99581
12696 * config/aarch64/constraints.md (UtQ): Use
12697 define_relaxed_memory_constraint for it.
12698 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
12699 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
12700 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
12701 (have_relaxed_memory_constraints): New static var.
12702 (relaxed_memory_start, relaxed_memory_end): Ditto.
12703 (add_constraint): Add arg is_relaxed_memory. Check name for
12704 relaxed memory. Set up is_relaxed_memory in constraint_data and
12705 have_relaxed_memory_constraints. Adjust calls.
12706 (choose_enum_order): Process relaxed memory.
12707 (write_tm_preds_h): Ditto.
12708 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
12709 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
12710 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
12711 * ira-lives.c (single_reg_class): Use
12712 insn_extra_relaxed_memory_constraint.
12713 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
12714 * lra-constraints.c (valid_address_p): Use
12715 insn_extra_relaxed_memory_constraint instead of other memory
12716 constraints.
12717 (process_alt_operands): Process CT_RELAXED_MEMORY.
12718 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
12719 * recog.c (asm_operand_ok, preprocess_constraints): Process
12720 CT_RELAXED_MEMORY.
12721 * reload.c (find_reloads): Ditto.
12722 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
12723 * stmt.c (parse_input_constraint): Use
12724 insn_extra_relaxed_memory_constraint.
12725
12726 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
12727
12728 PR target/97926
12729 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
12730 there are no NaNs.
12731
12732 2021-03-22 Alex Coplan <alex.coplan@arm.com>
12733
12734 PR target/97252
12735 * config/arm/arm-protos.h (neon_make_constant): Add generate
12736 argument to guard emitting insns, default to true.
12737 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
12738 CONST_VECTORs which neon_make_constant can't handle.
12739 (neon_vdup_constant): Add generate argument, avoid emitting
12740 insns if it's not set.
12741 (neon_make_constant): Plumb new generate argument through.
12742 * config/arm/constraints.md (Ui): New. Use it...
12743 * config/arm/mve.md (*mve_mov<mode>): ... here.
12744 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
12745 synthesize constants.
12746
12747 2021-03-22 Richard Biener <rguenther@suse.de>
12748
12749 * debug.h: Add deprecation warning.
12750
12751 2021-03-22 Richard Biener <rguenther@suse.de>
12752
12753 PR tree-optimization/99694
12754 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
12755 PHI result.
12756
12757 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
12758
12759 PR target/99702
12760 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
12761 after type checking.
12762
12763 2021-03-22 Jakub Jelinek <jakub@redhat.com>
12764
12765 PR debug/99562
12766 PR debug/66728
12767 * dwarf2out.c (get_full_len): Use get_precision rather than
12768 min_precision.
12769 (add_const_value_attribute): Make sure add_AT_wide argument has
12770 precision prec rather than some very wide one.
12771
12772 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
12773
12774 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
12775 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
12776 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
12777 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
12778 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
12779 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
12780 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
12781 *fix_trunc<mode>si2_internal): Fix empty split condition.
12782 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
12783 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
12784 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
12785 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
12786
12787 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
12788
12789 PR target/98914
12790 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
12791 Convert idx to DImode.
12792 (rs6000_expand_vector_set_var_p8): Likewise.
12793
12794 2021-03-21 Jakub Jelinek <jakub@redhat.com>
12795
12796 PR debug/99388
12797 * dwarf2out.c (insert_float): Change return type from void to
12798 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
12799 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
12800 Adjust callers.
12801
12802 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
12803
12804 PR target/99679
12805 * config/i386/i386.c (construct_container): Check cfun != NULL
12806 before accessing silent_p.
12807
12808 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
12809
12810 * asan.c: Fix typos in comments.
12811
12812 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
12813
12814 PR rtl-optimization/99680
12815 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
12816 (process_address_1): Check empty constraint before using
12817 CONSTRAINT_LEN.
12818
12819 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
12820
12821 * config/rs6000/rs6000.c (power10_cost): New.
12822 (rs6000_option_override_internal): Set Power10 costs.
12823 (rs6000_issue_rate): Set Power10 issue rate.
12824 * config/rs6000/power10.md: Rewrite for Power10.
12825
12826 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
12827
12828 PR target/99663
12829 * lra-constraints.c (process_address_1): Don't use unknown
12830 constraint for address constraint.
12831
12832 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
12833
12834 PR target/99661
12835 * config.gcc (powerpc-*-darwin8): Delete the reference to
12836 the now removed darwin8.h.
12837
12838 2021-03-19 Olivier Hainque <hainque@adacore.com>
12839
12840 PR target/99660
12841 * config/vxworksae.h (VX_CPU_PREFIX): Define.
12842
12843 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
12844
12845 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
12846
12847 2021-03-19 Tamar Christina <tamar.christina@arm.com>
12848
12849 PR tree-optimization/99656
12850 * tree-vect-slp-patterns.c (linear_loads_p,
12851 complex_add_pattern::matches, is_eq_or_top,
12852 vect_validate_multiplication, complex_mul_pattern::matches,
12853 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
12854 * tree-vectorizer.h: (complex_load_perm_t): Removed.
12855 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
12856 complex_load_perm_t.
12857
12858 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
12859
12860 PR target/99652
12861 * config/i386/i386-options.c (ix86_init_machine_status): Set
12862 silent_p to true.
12863 * config/i386/i386.c (init_cumulative_args): Set silent_p to
12864 false.
12865 (construct_container): Return early for return and argument
12866 errors if silent_p is true.
12867 * config/i386/i386.h (machine_function): Add silent_p.
12868
12869 2021-03-19 Jakub Jelinek <jakub@redhat.com>
12870
12871 PR target/99593
12872 * config/arm/constraints.md (Ds): New constraint.
12873 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
12874 constraint instead of w,Dm.
12875
12876 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
12877
12878 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
12879 in error message.
12880
12881 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
12882
12883 PR middle-end/99641
12884 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
12885 array type, do the computation of the current position in sizetype.
12886
12887 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
12888
12889 PR target/99422
12890 * lra-constraints.c (process_address_1): Use lookup_constraint
12891 only for a single constraint.
12892
12893 2021-03-18 Martin Sebor <msebor@redhat.com>
12894
12895 PR middle-end/99502
12896 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
12897 (inbounds_memaccess_p): ...to this. Check the ending offset of
12898 the accessed member.
12899
12900 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
12901
12902 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
12903 %> quote markers to error messages.
12904 (gcn_goacc_validate_dims): Likewise.
12905 (gcn_conditional_register_usage): Remove exclaimation mark from error
12906 message.
12907 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
12908
12909 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
12910
12911 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
12912 integer divides1.
12913
12914 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
12915 Kito Cheng <kito.cheng@sifive.com>
12916
12917 * config/riscv/riscv.c (riscv_block_move_straight): Change type
12918 to unsigned HOST_WIDE_INT for parameter and local variable with
12919 HOST_WIDE_INT type.
12920 (riscv_adjust_block_mem): Ditto.
12921 (riscv_block_move_loop): Ditto.
12922 (riscv_expand_block_move): Ditto.
12923
12924 2021-03-18 Nick Clifton <nickc@redhat.com>
12925
12926 * config/v850/v850.c (construct_restore_jr): Increase static
12927 buffer size.
12928 (construct_save_jarl): Likewise.
12929 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
12930
12931 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12932
12933 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
12934 (aarch64_override_options_internal): Use it.
12935 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
12936 tune_flags.
12937
12938 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
12939
12940 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
12941 error message format issues.
12942 (nios2_option_override): Likewise.
12943 (nios2_expand_fpu_builtin): Likewise.
12944 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
12945 truncation warning.
12946 (nios2_expand_custom_builtin): More error message format fixes.
12947 (nios2_expand_rdwrctl_builtin): Likewise.
12948 (nios2_expand_rdprs_builtin): Likewise.
12949 (nios2_expand_eni_builtin): Likewise.
12950 (nios2_expand_builtin): Likewise.
12951 (nios2_register_custom_code): Likewise.
12952 (nios2_valid_target_attribute_rec): Likewise.
12953 (nios2_add_insn_asm): Fix uninitialized variable warning.
12954
12955 2021-03-17 Jan Hubicka <jh@suse.cz>
12956
12957 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
12958 of gather to match reality.
12959 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
12960
12961 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12962
12963 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
12964 to compare against CC_REG rather than NE.
12965
12966 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
12967
12968 PR target/99504
12969 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
12970 inline assembly statements.
12971 (ix86_print_operand): Update 'P' handling for -fno-plt.
12972
12973 2021-03-17 Tamar Christina <tamar.christina@arm.com>
12974
12975 PR target/99542
12976 * config/aarch64/aarch64.c
12977 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
12978
12979 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
12980
12981 PR target/98092
12982 * config/rs6000/predicates.md (branch_comparison_operator): Allow
12983 ordered and unordered for CCFPmode, if flag_finite_math_only.
12984
12985 2021-03-16 Jakub Jelinek <jakub@redhat.com>
12986
12987 PR target/99600
12988 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
12989 rather than ASHIFT.
12990 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
12991
12992 2021-03-16 Martin Liska <mliska@suse.cz>
12993
12994 PR target/99592
12995 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
12996 cl_optimization_compare function.
12997
12998 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
12999
13000 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
13001 as "v".
13002
13003 2021-03-16 Jakub Jelinek <jakub@redhat.com>
13004
13005 PR target/99563
13006 * config/i386/i386.h (struct machine_function): Add
13007 has_explicit_vzeroupper bitfield.
13008 * config/i386/i386-expand.c (ix86_expand_builtin): Set
13009 cfun->machine->has_explicit_vzeroupper when expanding
13010 IX86_BUILTIN_VZEROUPPER.
13011 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
13012 Do the mode switching only when TARGET_VZEROUPPER, expensive
13013 optimizations turned on and not optimizing for size.
13014 (pass_insert_vzeroupper::gate): Enable even when
13015 cfun->machine->has_explicit_vzeroupper is set.
13016
13017 2021-03-16 Jakub Jelinek <jakub@redhat.com>
13018
13019 PR target/99542
13020 * config/aarch64/aarch64.c
13021 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
13022 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
13023 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
13024
13025 2021-03-15 Richard Biener <rguenther@suse.de>
13026
13027 PR tree-optimization/98834
13028 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
13029 subsetting by truncating the access size.
13030
13031 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
13032
13033 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
13034 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
13035 of znver2_cost.
13036
13037 2021-03-15 Martin Liska <mliska@suse.cz>
13038
13039 * spellcheck.c: Add missing comma in initialization.
13040
13041 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
13042
13043 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
13044 alternative 2 and alternative 1 with alternative 3 using
13045 YW register constraint.
13046 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
13047 using YW register constraint.
13048 (*vec_extractv16qi_zext): Ditto.
13049 (*vec_extractv4si): Merge alternatives 4 and 5
13050 using Yw register constraint.
13051 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
13052
13053 2021-03-13 Martin Sebor <msebor@redhat.com>
13054
13055 PR tree-optimization/99489
13056 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
13057 is not a call statement.
13058
13059 2021-03-13 Jakub Jelinek <jakub@redhat.com>
13060
13061 PR tree-optimization/99544
13062 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
13063 if for vector types multiplication can't be done in type's mode.
13064
13065 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
13066
13067 PR target/99422
13068 * config/sparc/constraints.md (w): Rename to...
13069 (W): ... this and ditch previous implementation.
13070 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
13071 (*movdf_insn_sp64): Likewise.
13072 (*mov<VM64:mode>_insn_sp64): Likewise.
13073 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
13074 w with W.
13075 (atomic_compare_and_swap_leon3_1): Likewise.
13076 (*atomic_compare_and_swapdi_v8plus): Likewise.
13077 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
13078 architecture and add missing address validity check during LRA.
13079
13080 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
13081
13082 PR fortran/98858
13083 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
13084 occuring for assumed-size arrays in use_device_{ptr,addr}.
13085
13086 2021-03-12 Jakub Jelinek <jakub@redhat.com>
13087
13088 PR target/99321
13089 * config/i386/constraints.md (YW): New internal constraint.
13090 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
13091 (*<sse2_avx2>_<insn><mode>3<mask_name>,
13092 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
13093 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
13094 constraints.
13095 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
13096 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
13097 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
13098 into one, use Yw instead of former x,v.
13099 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
13100 the last alternative.
13101 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
13102 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
13103 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
13104 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
13105 into one, use <v_Yw> instead of former x,v.
13106 (avx2_interleave_highv32qi<mask_name>,
13107 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
13108 constraints. Add && <mask_avx512bw_condition> to condition.
13109 (avx2_interleave_lowv32qi<mask_name>,
13110 vec_interleave_lowv16qi<mask_name>,
13111 avx2_interleave_highv16hi<mask_name>,
13112 vec_interleave_highv8hi<mask_name>,
13113 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
13114 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
13115 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
13116 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
13117 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
13118 Yw instead of v in constraints.
13119 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
13120 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
13121 instead of Yv in constraints.
13122 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
13123 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
13124 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
13125 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
13126 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
13127 constraints.
13128 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
13129 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
13130 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
13131 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
13132 two, one with just x, another isa avx512vl with v.
13133
13134 2021-03-12 Martin Liska <mliska@suse.cz>
13135
13136 * doc/invoke.texi: Add missing param documentation.
13137
13138 2021-03-11 David Malcolm <dmalcolm@redhat.com>
13139
13140 PR analyzer/96374
13141 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
13142 analyzer/trimmed-graph.o.
13143 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
13144 feasibility checking to reflect new implementation.
13145 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
13146 option.
13147 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
13148
13149 2021-03-11 David Malcolm <dmalcolm@redhat.com>
13150
13151 * digraph.cc (selftest::test_shortest_paths): Update
13152 shortest_paths init for new param. Add test of
13153 SPS_TO_GIVEN_TARGET.
13154 * shortest-paths.h (enum shortest_path_sense): New.
13155 (shortest_paths::shortest_paths): Add "sense" param.
13156 Update for renamings. Generalize to use "sense" param.
13157 (shortest_paths::get_shortest_path): Rename param.
13158 (shortest_paths::m_sense): New field.
13159 (shortest_paths::m_prev): Rename...
13160 (shortest_paths::m_best_edge): ...to this.
13161 (shortest_paths::get_shortest_path): Update for renamings.
13162 Conditionalize flipping of path on sense of traversal.
13163
13164 2021-03-11 David Malcolm <dmalcolm@redhat.com>
13165
13166 * digraph.cc (selftest::test_shortest_paths): Add test coverage
13167 for paths from B and C.
13168 * shortest-paths.h (shortest_paths::shortest_paths): Handle
13169 unreachable nodes, rather than asserting.
13170
13171 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
13172
13173 PR target/99094
13174 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
13175 xcoff_tbss_section_name.
13176 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
13177 * xcoffout.c (xcoff_tbss_section_name): Delete.
13178 * xcoffout.h (xcoff_tbss_section_name): Delete.
13179
13180 2021-03-11 Richard Biener <rguenther@suse.de>
13181
13182 PR tree-optimization/99523
13183 * tree-cfg.c (dump_function_to_file): Dump SSA names
13184 w/o identifier to the decls section as well, not only those
13185 without a VAR_DECL.
13186
13187 2021-03-11 Jakub Jelinek <jakub@redhat.com>
13188
13189 PR ipa/99517
13190 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
13191 function calls with lhs fail if the lhs don't have compatible types.
13192
13193 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
13194
13195 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
13196 Change FRAME_POINTER_REGNUM to correspond to a new faked
13197 register faked_fp, part of GENNONACR_REGS like faked_ap.
13198 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
13199 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
13200 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
13201 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
13202 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
13203 register.
13204 (CRIS_REAL_FP_REGNUM): New constant.
13205 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
13206 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
13207 (cris_initial_elimination_offset): Handle elimination changes
13208 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
13209 and add one from FRAME_POINTER_REGNUM to
13210 HARD_FRAME_POINTER_REGNUM.
13211 (cris_expand_prologue, cris_expand_epilogue): Emit code for
13212 hard_frame_pointer_rtx instead of frame_pointer_rtx.
13213
13214 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
13215
13216 PR target/99492
13217 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
13218 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
13219
13220 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
13221
13222 PR target/99422
13223 * lra-constraints.c (process_address_1): Don't check unknown
13224 constraint, use X for empty constraint.
13225
13226 2021-03-10 Alex Coplan <alex.coplan@arm.com>
13227
13228 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
13229 Fix typo in comment describing "is_ha" argument.
13230
13231 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
13232
13233 * doc/sourcebuild.texi: Document LRA target selector.
13234
13235 2021-03-10 David Malcolm <dmalcolm@redhat.com>
13236
13237 * doc/ux.texi: Add subsection contrasting interactive versus
13238 batch usage of GCC.
13239
13240 2021-03-10 Joel Hutton <joel.hutton@arm.com>
13241
13242 PR target/99102
13243 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
13244 check condition.
13245 (vectorizable_load): Fix gather load mask check condition.
13246
13247 2021-03-10 Richard Biener <rguenther@suse.de>
13248
13249 PR tree-optimization/99510
13250 * tree.c (check_aligned_type): Check that the candidate
13251 has TYPE_USER_ALIGN set instead of matching with the
13252 original type.
13253
13254 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
13255
13256 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
13257 float and vector integer modes only if the mode is not larger.
13258
13259 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
13260
13261 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
13262
13263 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
13264
13265 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
13266 constraints > 9.
13267 * ira-lives.c (single_reg_class): Ditto.
13268
13269 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
13270
13271 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
13272 the architecture-specific rtems.h.
13273 (aarch64-*-rtems*): Likewise.
13274 (arm*-*-rtems*): Likewise.
13275 (epiphany-*-rtems*): Likewise.
13276 (riscv*-*-rtems*): Likewise.
13277
13278 2021-03-09 Jakub Jelinek <jakub@redhat.com>
13279
13280 PR tree-optimization/99305
13281 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
13282 before integer_all_onesp instead of vice versa.
13283
13284 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
13285
13286 * common/config/arm/arm-common.c (arm_config_default): Change type
13287 of 'i' to unsigned.
13288
13289 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
13290
13291 PR target/99454
13292 * lra-constraints.c (process_address_1): Process constraint 'g'
13293 separately and digital constraints containing more one digit.
13294
13295 2021-03-09 Nick Clifton <nickc@redhat.com>
13296
13297 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
13298 (DWARF"_DEBUGGING_INFO): Define.
13299
13300 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
13301
13302 PR c++/90448
13303 * calls.c (initialize_argument_information): When the argument
13304 is passed by reference, do not make a copy in a thunk only if
13305 the argument is already in memory. Remove redundant test for
13306 the case of callee copy.
13307
13308 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
13309
13310 PR target/99454
13311 * lra-constraints.c (process_address_1): Process 0..9 constraints
13312 in process_address_1.
13313
13314 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
13315
13316 * config/s390/s390.c (struct s390_processor processor_table):
13317 Binutils name string must not be empty.
13318
13319 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
13320
13321 * config/arc/arc.c (arc_attr_type): Remove function.
13322
13323 2021-03-09 Martin Liska <mliska@suse.cz>
13324
13325 PR target/99464
13326 * config/i386/i386-options.c (ix86_option_override_internal):
13327 Set isa_flags for OPTS argument and not for the global
13328 global_options.
13329
13330 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
13331
13332 * config/rs6000/predicates.md (ds_form_mem_operand): Check
13333 in correct code.
13334
13335 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
13336
13337 PR target/99070
13338 * config/rs6000/predicates.md (ds_form_mem_operand) New
13339 predicate.
13340 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
13341 ds_form_mem_operand in ld/lwa patterns.
13342 * config/rs6000/fusion.md: Regenerate file.
13343
13344 2021-03-08 Martin Sebor <msebor@redhat.com>
13345
13346 PR middle-end/98266
13347 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
13348 (array_bounds_checker::check_array_bounds): Call it.
13349
13350 2021-03-08 Martin Sebor <msebor@redhat.com>
13351
13352 PR middle-end/97631
13353 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
13354 (handle_builtin_stxncpy_strncat): Rename locals. Determine
13355 destination size from allocation calls. Issue a more appropriate
13356 kind of warning.
13357 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
13358 (handle_builtin_memset): Same.
13359
13360 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
13361
13362 PR target/98959
13363 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
13364 to ensure we do not have an Altivec style address.
13365 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
13366 an Altivec style address.
13367 (*vsx_le_perm_store_<mode>): Likewise.
13368 (splitters after *vsx_le_perm_store_<mode>): Likewise.
13369 (vsx_load_<mode>): Disable special expander if passed an Altivec
13370 style address.
13371 (vsx_store_<mode>): Likewise.
13372
13373 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13374
13375 PR target/99437
13376 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
13377 (aarch64_simd_shift_imm_vec_hi): Likewise.
13378 (aarch64_simd_shift_imm_vec_si): Likewise.
13379 (aarch64_simd_shift_imm_vec_di): Likewise.
13380 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
13381 predicate from above.
13382 (aarch64_shrn<mode>_insn_be): Likewise.
13383 (aarch64_rshrn<mode>_insn_le): Likewise.
13384 (aarch64_rshrn<mode>_insn_be): Likewise.
13385 (aarch64_shrn2<mode>_insn_le): Likewise.
13386 (aarch64_shrn2<mode>_insn_be): Likewise.
13387 (aarch64_rshrn2<mode>_insn_le): Likewise.
13388 (aarch64_rshrn2<mode>_insn_be): Likewise.
13389
13390 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
13391
13392 PR target/99422
13393 * lra-constraints.c (skip_contraint_modifiers): New function.
13394 (process_address_1): Use it before lookup_constraint call.
13395
13396 2021-03-08 Martin Liska <mliska@suse.cz>
13397
13398 PR target/99463
13399 * config/i386/i386-options.c (ix86_option_override_internal):
13400 Enable UINTR and HRESET for -march that supports it.
13401
13402 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
13403
13404 * config/s390/s390.c (f_constraint_p): New function.
13405 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
13406 (TARGET_MD_ASM_ADJUST): Likewise.
13407
13408 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
13409
13410 PR fortran/97927
13411 * tree-nested.c (convert_local_reference_stmt): Avoid calling
13412 lookup_field_for_decl for Fortran module (= namespace context).
13413
13414 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
13415
13416 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
13417 comparison with arithmetic right shift.
13418 (s390_expand_vcond): No need for a force_reg anymore.
13419 s390_vec_compare will do it.
13420 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
13421 immediate operands.
13422
13423 2021-03-07 Jakub Jelinek <jakub@redhat.com>
13424
13425 PR target/99321
13426 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
13427 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
13428 and comment.
13429 * config/i386/sse.md (v_Yw): New define_mode_attr.
13430 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
13431 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
13432 in constraints.
13433 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
13434 xYw in constraints.
13435
13436 2021-03-06 Julian Brown <julian@codesourcery.com>
13437
13438 * tree-pretty-print.c (dump_generic_node): Emit non-generic
13439 address space info for aggregates.
13440
13441 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
13442
13443 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
13444
13445 2021-03-05 Jakub Jelinek <jakub@redhat.com>
13446
13447 PR middle-end/99322
13448 * tree-cfg.c (bb_to_omp_idx): New variable.
13449 (execute_build_cfg): Release the bb_to_omp_idx vector after
13450 cleanup_tree_cfg returns.
13451 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
13452 for bb_to_omp_idx being a vec<int> instead of pointer to array
13453 of ints.
13454 (make_edges): Remove bb_to_omp_idx local variable, don't pass
13455 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
13456 vec<int> instead of pointer to array of ints and don't free/release
13457 it at the end.
13458 (remove_bb): When removing a bb and placing forced label somewhere
13459 else, ensure it is put into the same OpenMP region during cfg
13460 pass if possible or to entry successor as fallback. Unregister
13461 bb from bb_to_omp_idx.
13462
13463 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
13464
13465 PR target/99378
13466 * lra-constraints.c (process_address_1): Skip decomposing address
13467 for asm insn operand with unknown constraint.
13468
13469 2021-03-05 Martin Jambor <mjambor@suse.cz>
13470
13471 PR ipa/98078
13472 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
13473 corresponding speculative edges if we are about to resolve
13474 sepculation. Make edge direct (and so resolve speculations) before
13475 removing it from call_site_hash.
13476 (cgraph_edge::make_direct): Relax the initial assert to allow calling
13477 the function on speculative direct edges.
13478
13479 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
13480
13481 PR rtl-optimization/99376
13482 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
13483 of low-order zero bits is too large, set the result to 0 directly.
13484
13485 2021-03-04 Jakub Jelinek <jakub@redhat.com>
13486
13487 PR middle-end/93235
13488 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
13489 SUBREG and a SUBREG to op_mode can't be created.
13490
13491 2021-03-04 Alex Coplan <alex.coplan@arm.com>
13492
13493 PR target/99381
13494 * config/aarch64/aarch64-sve-builtins.cc
13495 (function_resolver::require_vector_type): Handle error_mark_node.
13496
13497 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
13498
13499 * cfgexpand.c (expand_asm_loc): Pass new parameter.
13500 (expand_asm_stmt): Likewise.
13501 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
13502 parameter.
13503 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
13504 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
13505 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
13506 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
13507 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
13508 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
13509 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
13510 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
13511 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
13512 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
13513 * doc/tm.texi (md_asm_adjust): Likewise.
13514 * target.def (md_asm_adjust): Likewise.
13515
13516 2021-03-04 Richard Biener <rguenther@suse.de>
13517
13518 PR middle-end/97855
13519 * tree-pretty-print.c: Poison pp_printf.
13520 (dump_decl_name): Avoid use of pp_printf.
13521 (dump_block_node): Likewise.
13522 (dump_generic_node): Likewise.
13523
13524 2021-03-04 Martin Sebor <msebor@redhat.com>
13525
13526 PR middle-end/96963
13527 PR middle-end/94655
13528 * builtins.c (handle_array_ref): New helper.
13529 (handle_mem_ref): New helper.
13530 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
13531 into new helper functions. Correct a workaround for vectorized
13532 assignments.
13533
13534 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
13535
13536 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
13537 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
13538 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
13539 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
13540 attribute for Power10.
13541 * config/rs6000/mma.md (*movoo): Likewise.
13542 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
13543 (define_mode_attr bits): Add DD/TD modes.
13544 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
13545 store_conditionalpti): Update size attribute for Power10.
13546
13547 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13548
13549 PR bootstrap/92002
13550 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
13551 -Wuninitialized, -Wmaybe-uninitialized.
13552 (wide-int.o-warn): Likewise.
13553
13554 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
13555
13556 * common/config/arm/arm-common.c: Include configargs.h.
13557 (arm_config_default): New function.
13558 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
13559 processors that do not support Thumb. Take into account the
13560 --with-mode configuration setting for selecting the default.
13561 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
13562 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
13563
13564 2021-03-03 Martin Liska <mliska@suse.cz>
13565
13566 PR gcov-profile/97461
13567 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
13568
13569 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
13570
13571 PR target/99234
13572 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
13573 point back the hard frame pointer to its default location when the
13574 frame is larger than SEH_MAX_FRAME_SIZE.
13575
13576 2021-03-03 Jakub Jelinek <jakub@redhat.com>
13577
13578 PR target/99321
13579 * config/i386/predicates.md (logic_operator): New define_predicate.
13580 * config/i386/i386.md (mov + mem using comm arith peephole2):
13581 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
13582 and the inner mode is [QH]Imode.
13583
13584 2021-03-03 Jakub Jelinek <jakub@redhat.com>
13585
13586 PR debug/99090
13587 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
13588 (new_loc_list): Clear end_entry.
13589 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
13590 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
13591 typo.
13592 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
13593 initialize also end_entry.
13594
13595 2021-03-03 Jakub Jelinek <jakub@redhat.com>
13596
13597 PR target/99085
13598 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
13599 partitions, if in non-layout mode after reorder_blocks also move
13600 affected blocks to ensure a single partition transition.
13601
13602 2021-03-03 Jason Merrill <jason@redhat.com>
13603
13604 PR c++/96078
13605 * cgraphunit.c (process_function_and_variable_attributes): Don't
13606 warn about flatten on an alias if the target also has it.
13607 * cgraph.h (symtab_node::get_alias_target_tree): New.
13608
13609 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
13610
13611 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
13612 period to symbol name.
13613 (tls_get_addr_internal<mode>): Same.
13614
13615 2021-03-02 David Malcolm <dmalcolm@redhat.com>
13616
13617 PR c/99323
13618 * diagnostic-show-locus.c
13619 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
13620 column 0.
13621
13622 2021-03-02 Martin Sebor <msebor@redhat.com>
13623
13624 PR middle-end/99276
13625 * builtins.c (warn_for_access): Remove stray warning text.
13626
13627 2021-03-02 Martin Sebor <msebor@redhat.com>
13628
13629 PR middle-end/99295
13630 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
13631 property.
13632
13633 2021-03-02 Jakub Jelinek <jakub@redhat.com>
13634
13635 PR debug/99319
13636 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
13637 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
13638 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
13639 DW_MACRO_define_strx and DW_MACRO_undef_strx.
13640 (save_macinfo_strings): Use DW_MACRO_*_str* even with
13641 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
13642 DW_MACRO_undef_strx.
13643
13644 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
13645
13646 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
13647 builtin signature.
13648 (BT_FN_V8HI_V8HI_UINT): Likewise.
13649 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
13650 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
13651 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
13652 New builtin definitions.
13653 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
13654 vector extension version.
13655 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
13656 available with current -march level.
13657 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
13658 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
13659 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
13660 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
13661 (vec_extend_to_fp32_lo): Likewise.
13662 (vec_round_from_fp32): Likewise.
13663 (vec_convert_to_fp16): Likewise.
13664 (vec_convert_from_fp16): Likewise.
13665 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
13666 (vclfnls_v8hi): Likewise.
13667 (vcrnfs_v8hi): Likewise.
13668 (vcfn_v8hi): Likewise.
13669 (vcnf_v8hi): Likewise.
13670
13671 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
13672
13673 * common/config/s390/s390-common.c (processor_flags_table): New entry.
13674 * config.gcc: Enable arch14 for --with-arch and --with-tune.
13675 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
13676 arch14 for unknown CPU models.
13677 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
13678 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
13679 (s390_get_sched_attrmask): Likewise.
13680 (s390_get_unit_mask): Likewise.
13681 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
13682 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
13683 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
13684 (TARGET_NNPA_P): New macro definitions.
13685 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
13686 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
13687
13688 2021-03-02 Jakub Jelinek <jakub@redhat.com>
13689
13690 PR middle-end/95757
13691 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
13692 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
13693 != 1 comparisons if name is lhs of a comparison.
13694
13695 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
13696
13697 PR target/44107
13698 PR target/48097
13699 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
13700 * config/darwin.c (darwin_should_restore_cfa_state): New.
13701 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
13702 * doc/tm.texi: Regenerated.
13703 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
13704 * dwarf2cfi.c (connect_traces): If the target requests, restore
13705 the CFA expression after a DW_CFA_restore.
13706 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
13707
13708 2021-03-01 Martin Liska <mliska@suse.cz>
13709
13710 PR target/99313
13711 * optc-save-gen.awk: Add 4 more exceptions.
13712
13713 2021-03-01 Nathan Sidwell <nathan@acm.org>
13714
13715 PR c++/99294
13716 * tree.h (TYPE_ALIGN_RAW): New accessor.
13717 (TYPE_ALIGN): Use it.
13718
13719 2021-03-01 Jan Hubicka <jh@suse.cz>
13720
13721 PR ipa/98338
13722 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
13723
13724 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
13725
13726 PR target/99234
13727 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
13728 point the hard frame pointer to the SSE register save area instead
13729 of the general register save area. Perform only minimal adjustment
13730 for small frames if it is initially not correctly aligned.
13731 (ix86_expand_prologue): Remove early saves for a SEH target.
13732 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
13733
13734 2021-02-28 Jakub Jelinek <jakub@redhat.com>
13735
13736 PR c/99304
13737 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
13738 typo - referneced -> referenced.
13739 * tree.c (component_ref_size): Fix comment typo -
13740 refernce -> reference.
13741 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
13742 traling -> trailing.
13743 (aliasing_component_refs_p): Fix comment typos -
13744 refernce -> reference and refernece -> reference and
13745 traling -> trailing.
13746 (nonoverlapping_refs_since_match_p): Fix comment typo -
13747 referneces -> references.
13748 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
13749 referneces -> references.
13750
13751 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
13752
13753 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
13754 diagnostic message to avoid use of a contraction and format
13755 warning.
13756
13757 2021-02-27 Jakub Jelinek <jakub@redhat.com>
13758
13759 PR other/99288
13760 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
13761 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
13762 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
13763 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
13764 typos.
13765
13766 2021-02-26 Richard Biener <rguenther@suse.de>
13767
13768 PR middle-end/99281
13769 * expr.c (store_field): For calls with return-slot optimization
13770 and addressable return type expand the store directly.
13771
13772 2021-02-26 Richard Biener <rguenther@suse.de>
13773
13774 PR c/99275
13775 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
13776
13777 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
13778
13779 PR target/99279
13780 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
13781 with an "if" test.
13782
13783 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
13784
13785 * config.gcc: Add rs6000-pcrel-opt.o.
13786 * config/rs6000/rs6000-pcrel-opt.c: New file.
13787 * config/rs6000/pcrel-opt.md: New file.
13788 * config/rs6000/predicates.md: Add d_form_memory predicate.
13789 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
13790 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
13791 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
13792 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
13793 and make_pass_pcrel_opt().
13794 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
13795 (rs6000_option_override_internal): Add pcrel-opt.
13796 (rs6000_delegitimize_address): Support pcrel-opt.
13797 (rs6000_opt_masks): Add pcrel-opt.
13798 (pcrel_opt_valid_mem_p): New function.
13799 (reg_to_non_prefixed): Make global.
13800 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
13801 (output_pcrel_opt_reloc): New function.
13802 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
13803 (pcrel_extern_addr): Set loads_extern_addr.
13804 Add include for pcrel-opt.md.
13805 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
13806 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
13807 pcrel-opt.md.
13808
13809 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
13810
13811 PR target/98996
13812 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
13813 If TARGET_64BIT and dest is SUBREG, we check the width, if it
13814 equal to SImode, we use SImode operation, just like what we are
13815 doing for REG one.
13816
13817 2021-02-26 Marek Polacek <polacek@redhat.com>
13818
13819 * builtins.c (warn_for_access): Fix typos.
13820
13821 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
13822
13823 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
13824 mark in front of the immediate quantity.
13825 (<optab>_rolsi3_uxtw): Likewise.
13826
13827 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
13828
13829 PR target/99271
13830 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
13831 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
13832 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
13833 address and disable when the FPCXT is not available.
13834 (nonsecure_call_value_reg_thumb2): Likewise.
13835
13836 2021-02-25 Nathan Sidwell <nathan@acm.org>
13837
13838 PR c++/99166
13839 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
13840
13841 2021-02-25 Tamar Christina <tamar.christina@arm.com>
13842
13843 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
13844
13845 2021-02-25 Richard Biener <rguenther@suse.de>
13846
13847 PR tree-optimization/99253
13848 * tree-vect-loop.c (check_reduction_path): First compute
13849 code, then verify out-of-loop uses.
13850
13851 2021-02-25 Jakub Jelinek <jakub@redhat.com>
13852
13853 PR target/95798
13854 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
13855
13856 2021-02-25 Jakub Jelinek <jakub@redhat.com>
13857
13858 PR tree-optimization/80635
13859 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
13860 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
13861 has mode precision.
13862
13863 2021-02-25 Richard Biener <rguenther@suse.de>
13864
13865 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
13866 load_map population.
13867 (vect_match_slp_patterns_2): Revert part of last change.
13868 (vect_analyze_slp): Do not interleave optimize_load_redistribution
13869 with pattern detection but do it afterwards. Dump the
13870 whole SLP graph after pattern recognition and load
13871 redistribution optimization finished.
13872
13873 2021-02-24 Jakub Jelinek <jakub@redhat.com>
13874
13875 PR fortran/99226
13876 * omp-low.c (struct omp_context): Add teams_nested_p and
13877 nonteams_nested_p members.
13878 (scan_omp_target): Diagnose teams nested inside of target with other
13879 directives strictly nested inside of the same target.
13880 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
13881 ctx->nonteams_nested_p as needed.
13882
13883 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
13884
13885 PR inline-asm/99123
13886 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
13887
13888 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
13889
13890 * config/cris/cris.c (cris_expand_prologue): Set
13891 current_function_static_stack_size, if flag_stack_usage_info.
13892
13893 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
13894
13895 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
13896 (rs6000_final_prescan_insn): Adjust.
13897 (rs6000_asm_output_opcode): Likewise.
13898
13899 2021-02-24 Martin Sebor <msebor@redhat.com>
13900
13901 PR middle-end/97172
13902 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
13903 from function arguments.
13904
13905 2021-02-24 Tamar Christina <tamar.christina@arm.com>
13906
13907 PR tree-optimization/99220
13908 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
13909 node from cache when it's about to be deleted.
13910
13911 2021-02-24 Jakub Jelinek <jakub@redhat.com>
13912
13913 PR tree-optimization/99225
13914 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
13915 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
13916 build_int_cst (..., 1). Formatting fixes.
13917
13918 2021-02-24 Tamar Christina <tamar.christina@arm.com>
13919
13920 PR tree-optimization/99149
13921 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
13922 buffer.
13923 (vect_slp_reset_pattern): Remove.
13924 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
13925 (complex_mul_pattern::build, complex_fma_pattern::build,
13926 complex_fms_pattern::build): Fix ref counts.
13927 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
13928 when node is being deleted.
13929 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
13930 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
13931 stores.
13932 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
13933
13934 2021-02-24 Matthias Klose <doko@ubuntu.com>
13935
13936 Revert:
13937 2020-12-07 Matthias Klose <doko@ubuntu.com>
13938
13939 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
13940 and ENABLE_RTL_FLAG_CHECKING.
13941
13942 2021-02-24 Richard Biener <rguenther@suse.de>
13943
13944 PR c/99224
13945 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
13946
13947 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
13948
13949 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
13950 (vsx_assemble_pair): ...to this.
13951 (*mma_assemble_pair): Rename from this...
13952 (*vsx_assemble_pair): ...to this.
13953 (mma_disassemble_pair): Rename from this...
13954 (vsx_disassemble_pair): ...to this.
13955 (*mma_disassemble_pair): Rename from this...
13956 (*vsx_disassemble_pair): ...to this.
13957 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
13958 BU_COMPAT): New macros.
13959 (mma_assemble_pair): Rename from this...
13960 (vsx_assemble_pair): ...to this.
13961 (mma_disassemble_pair): Rename from this...
13962 (vsx_disassemble_pair): ...to this.
13963 (mma_assemble_pair): New compatibility built-in.
13964 (mma_disassemble_pair): Likewise.
13965 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
13966 (RS6000_BUILTIN_COMPAT): Define.
13967 (bdesc_compat): New.
13968 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
13969 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
13970 and VSX_BUILTIN_ASSEMBLE_PAIR.
13971 (rs6000_init_builtins): Register compatibility built-ins.
13972 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
13973 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
13974 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
13975 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
13976 (__builtin_vsx_assemble_pair): ...to this.
13977 (__builtin_mma_disassemble_pair): Rename from this...
13978 (__builtin_vsx_disassemble_pair): ...to this.
13979
13980 2021-02-23 Martin Liska <mliska@suse.cz>
13981
13982 PR sanitizer/99168
13983 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
13984 with different alignment. That leads to an invalid red zone
13985 size allocated in runtime.
13986
13987 2021-02-23 Jakub Jelinek <jakub@redhat.com>
13988
13989 PR tree-optimization/99204
13990 * fold-const.c (fold_read_from_constant_string): Check that
13991 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
13992
13993 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
13994 Kewen Lin <linkw@gcc.gnu.org>
13995
13996 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
13997 (rotl<mode>3_insert_3): ...this.
13998 (plus_ior_xor): New code_iterator.
13999 (define_split for GPR rl*imi): New splitter.
14000 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
14001 for integer merging.
14002
14003 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14004
14005 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
14006 Define.
14007 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
14008 into a register when the above is enabled.
14009 * config/aarch64/aarch64.c (neoversev1_tunings):
14010 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
14011 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
14012
14013 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
14014
14015 * config/cris/cris.c (cris_print_operand) <'T'>: Change
14016 valid operand from is now an addi mult-value to shift-value.
14017 * config/cris/cris.md (*addi): Change expression of scaled
14018 operand from mult to ashift.
14019 * config/cris/cris.md (*addi_reload): New insn_and_split.
14020
14021 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
14022
14023 PR target/85074
14024 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
14025 hook_bool_const_tree_hwi_hwi_const_tree_true.
14026 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
14027
14028 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
14029
14030 PR rtl-optimization/98791
14031 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
14032 for unordered modes.
14033
14034 2021-02-22 Martin Liska <mliska@suse.cz>
14035
14036 * tree-inline.c (inline_forbidden_p): Set
14037 inline_forbidden_reason.
14038
14039 2021-02-22 Richard Biener <rguenther@suse.de>
14040
14041 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
14042 costed subgraph.
14043
14044 2021-02-22 Richard Biener <rguenther@suse.de>
14045
14046 PR tree-optimization/99165
14047 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
14048 Accumulate changed to ret.
14049
14050 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
14051
14052 Revert:
14053 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
14054
14055 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
14056
14057 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
14058
14059 PR target/99134
14060 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
14061 pattern.
14062 (trunctf<DFP_ALL:mode>2): Likewise.
14063 (trunctdtf2_vr): Likewise.
14064 (trunctdtf2): Likewise.
14065 (extend<DFP_ALL:mode>tf2_vr): Likewise.
14066 (extend<DFP_ALL:mode>tf2): Likewise.
14067 (extendtftd2_vr): Likewise.
14068 (extendtftd2): Likewise.
14069
14070 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
14071
14072 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
14073 add memory alternative.
14074 (tf_to_fprx2): New pattern.
14075
14076 2021-02-19 Martin Sebor <msebor@redhat.com>
14077
14078 PR c/97172
14079 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
14080 (attr_access::free_lang_data): Remove a spurious test.
14081
14082 2021-02-19 Nathan Sidwell <nathan@acm.org>
14083
14084 * doc/invoke.texi (flang-info-module-read): Document.
14085
14086 2021-02-19 Martin Liska <mliska@suse.cz>
14087
14088 PR translation/99167
14089 * params.opt: Fix typo.
14090
14091 2021-02-19 Richard Biener <rguenther@suse.de>
14092
14093 PR middle-end/99122
14094 * tree-inline.c (inline_forbidden_p): Do not inline functions
14095 with VLA arguments or return value.
14096
14097 2021-02-19 Jakub Jelinek <jakub@redhat.com>
14098
14099 PR target/98998
14100 * config/arm/arm.md (*stack_protect_combined_set_insn,
14101 *stack_protect_combined_test_insn): If force_const_mem result
14102 is not valid general operand, force its address into the destination
14103 register first.
14104
14105 2021-02-19 Jakub Jelinek <jakub@redhat.com>
14106
14107 PR ipa/99034
14108 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
14109 pad or non-local label, put FORCED_LABELs from bb b after that label
14110 rather than before it.
14111
14112 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
14113
14114 PR target/98657
14115 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
14116 expand_vector_broadcast' to emit the vec_duplicate operand.
14117
14118 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
14119
14120 PR rtl-optimization/96264
14121 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
14122 hard regs.
14123
14124 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
14125
14126 PR target/99113
14127 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
14128 looking up the retain attribute.
14129 (resolve_unique_section): Likewise.
14130 (get_variable_section): Likewise.
14131 (switch_to_section): Likewise. Warn when a symbol without the
14132 retain attribute and a symbol with the retain attribute are
14133 placed in the section with the same name, instead of the used
14134 attribute.
14135 * doc/extend.texi: Document the "retain" attribute.
14136
14137 2021-02-18 Nathan Sidwell <nathan@acm.org>
14138
14139 PR c++/99023
14140 * doc/invoke.texi (flang-info-include-translate): Document header
14141 lookup behaviour.
14142
14143 2021-02-18 Richard Biener <rguenther@suse.de>
14144
14145 PR middle-end/99122
14146 * ipa-fnsummary.c (analyze_function_body): Set
14147 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
14148 * tree-inline.c (insert_init_debug_bind): Pass NULL for
14149 error_mark_node values.
14150 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
14151 values.
14152 (setup_one_parameter): Delay force_value_to_type until when
14153 it's needed.
14154
14155 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
14156
14157 PR tree-optimization/99142
14158 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
14159
14160 2021-02-18 Jakub Jelinek <jakub@redhat.com>
14161
14162 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
14163 wide_int_bitmask::wide_int_bitmask (uint64_t),
14164 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
14165 wide_int_bitmask::operator ~ () const,
14166 wide_int_bitmask::operator | (wide_int_bitmask) const,
14167 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
14168 instead of inline.
14169 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
14170 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
14171 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
14172 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
14173 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
14174 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
14175 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
14176 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
14177 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
14178 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
14179 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
14180 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
14181 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
14182 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
14183 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
14184 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
14185 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
14186 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
14187 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
14188 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
14189 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
14190 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
14191 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
14192 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
14193
14194 2021-02-18 Jakub Jelinek <jakub@redhat.com>
14195
14196 PR middle-end/99109
14197 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
14198 (build_printable_array_type): ... this. Add nelts argument. For
14199 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
14200 nelts, call build_array_type_nelts.
14201 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
14202 instead of build_zero_elt_array_type and build_array_type_nelts.
14203
14204 2021-02-18 Jakub Jelinek <jakub@redhat.com>
14205
14206 PR target/99104
14207 * config/i386/i386.c (distance_non_agu_define): Don't call
14208 extract_insn_cached here.
14209 (ix86_lea_outperforms): Save and restore recog_data around call
14210 to distance_non_agu_define and distance_agu_use.
14211 (ix86_ok_to_clobber_flags): Remove.
14212 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
14213 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
14214 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
14215 into define_insn. Move the splitting to define_peephole2 and
14216 check there using peep2_regno_dead_p if FLAGS_REG is dead.
14217
14218 2021-02-17 Julian Brown <julian@codesourcery.com>
14219
14220 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
14221 for non-decls.
14222
14223 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
14224
14225 PR target/98491
14226 * config/mips/mips.c (mips_symbol_insns): Do not use
14227 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
14228
14229 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
14230
14231 PR inline-asm/98096
14232 * stmt.c (resolve_operand_name_1): Take inout operands into account
14233 for access to labels by names.
14234 * doc/extend.texi: Describe counting operands for accessing labels.
14235
14236 2021-02-16 Richard Biener <rguenther@suse.de>
14237
14238 PR tree-optimization/38474
14239 * tree-ssa-structalias.c (variable_info::address_taken): New.
14240 (new_var_info): Initialize address_taken.
14241 (process_constraint): Set address_taken.
14242 (solve_constraints): Use the new address_taken flag rather
14243 than is_reg_var for sorting variables.
14244 (dump_constraint): Dump the variable number if the name
14245 is just NULL.
14246
14247 2021-02-16 Jakub Jelinek <jakub@redhat.com>
14248
14249 PR target/99100
14250 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
14251 multiply by 4096 and for inbranch by 8192.
14252 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
14253 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
14254
14255 2021-02-15 Maya Rashish <coypu@sdf.org>
14256
14257 * config/aarch64/aarch64.c (aarch64_init_builtins):
14258 Call SUBTARGET_INIT_BUILTINS.
14259
14260 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
14261
14262 PR rtl-optimization/98872
14263 * init-regs.c (initialize_uninitialized_regs): Skip initialization
14264 if CONST0_RTX is NULL.
14265
14266 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
14267
14268 PR rtl-optimization/98863
14269 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
14270 (function_info::build_info): Turn into a declaration, moving the
14271 definition to internals.h.
14272 (function_info::bb_walker): Declare.
14273 (function_info::create_reg_use): Likewise.
14274 (function_info::calculate_potential_phi_regs): Take a build_info
14275 parameter.
14276 (function_info::place_phis, function_info::create_ebbs): Declare.
14277 (function_info::calculate_ebb_live_in_for_debug): Likewise.
14278 (function_info::populate_backedge_phis): Delete.
14279 (function_info::start_block, function_info::end_block): Declare.
14280 (function_info::populate_phi_inputs): Delete.
14281 (function_info::m_potential_phi_regs): Move information to build_info.
14282 * rtl-ssa/internals.h: New file.
14283 (function_info::bb_phi_info): New class.
14284 (function_info::build_info): Moved from functions.h.
14285 Add a constructor and destructor.
14286 (function_info::build_info::ebb_use): Delete.
14287 (function_info::build_info::ebb_def): Likewise.
14288 (function_info::build_info::bb_live_out): Likewise.
14289 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
14290 (function_info::build_info::potential_phi_regs): Likewise.
14291 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
14292 (function_info::build_info::ebb_def_regs): Likewise.
14293 (function_info::build_info::bb_phis): Likewise.
14294 (function_info::build_info::bb_mem_live_out): Likewise.
14295 (function_info::build_info::bb_to_rpo): Likewise.
14296 (function_info::build_info::def_stack): Likewise.
14297 (function_info::build_info::old_def_stack_limit): Likewise.
14298 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
14299 Remove the regno argument. Push the previous definition onto the
14300 definition stack where necessary.
14301 * rtl-ssa/accesses.cc: Include internals.h.
14302 * rtl-ssa/changes.cc: Likewise.
14303 * rtl-ssa/blocks.cc: Likewise.
14304 (function_info::build_info::build_info): Define.
14305 (function_info::build_info::~build_info): Likewise.
14306 (function_info::bb_walker): New class.
14307 (function_info::bb_walker::bb_walker): Define.
14308 (function_info::add_live_out_use): Convert a logarithmic-complexity
14309 test into a linear one. Allow the same definition to be passed
14310 multiple times.
14311 (function_info::calculate_potential_phi_regs): Moved from
14312 functions.cc. Take a build_info parameter and store the
14313 information there instead.
14314 (function_info::place_phis): New function.
14315 (function_info::add_entry_block_defs): Update call to record_reg_def.
14316 (function_info::calculate_ebb_live_in_for_debug): New function.
14317 (function_info::add_phi_nodes): Use bb_phis to decide which
14318 registers need phi nodes and initialize ebb_def_regs accordingly.
14319 Do not add degenerate phis here.
14320 (function_info::add_artificial_accesses): Use create_reg_use.
14321 Assert that all definitions are listed in the DF LR sets.
14322 Update call to record_reg_def.
14323 (function_info::record_block_live_out): Record live-out register
14324 values in the phis of successor blocks. Use the live-out set
14325 when processing the last block in an EBB, instead of always
14326 using the live-in sets of successor blocks. AND the live sets
14327 with the set of registers that have been defined in the EBB,
14328 rather than with all potential phi registers. Cope correctly
14329 with branches back to the start of the current EBB.
14330 (function_info::start_block): New function.
14331 (function_info::end_block): Likewise.
14332 (function_info::populate_phi_inputs): Likewise.
14333 (function_info::create_ebbs): Likewise.
14334 (function_info::process_all_blocks): Rewrite into a multi-phase
14335 process.
14336 * rtl-ssa/functions.cc: Include internals.h.
14337 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
14338 (function_info::init_function_data): Remove caller.
14339 * rtl-ssa/insns.cc: Include internals.h
14340 (function_info::create_reg_use): New function. Lazily any
14341 degenerate phis needed by the linear RPO view.
14342 (function_info::record_use): Use create_reg_use. When processing
14343 debug uses, use potential_phi_regs and test it before checking
14344 whether the register is live on entry to the current EBB. Lazily
14345 calculate ebb_live_in_for_debug.
14346 (function_info::record_call_clobbers): Update call to record_reg_def.
14347 (function_info::record_def): Likewise.
14348
14349 2021-02-15 Martin Liska <mliska@suse.cz>
14350
14351 * toplev.c (init_asm_output): Free output of
14352 gen_command_line_string function.
14353 (process_options): Likewise.
14354
14355 2021-02-15 Martin Liska <mliska@suse.cz>
14356
14357 * params.opt: Add 2 missing Param keywords.
14358
14359 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
14360
14361 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
14362
14363 2021-02-15 Jakub Jelinek <jakub@redhat.com>
14364
14365 PR tree-optimization/99079
14366 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
14367 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
14368 require both type and TREE_TYPE (@1) to be integral types and either
14369 type having smaller or equal precision, or TREE_TYPE (@1) being
14370 unsigned type, or type being signed type. If TREE_TYPE (@1)
14371 doesn't have wrapping overflow, perform the subtraction of one in
14372 unsigned type.
14373
14374 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
14375 Richard Biener <rguether@suse.de>
14376
14377 PR ipa/97346
14378 * ipa-reference.c (ipa_init): Only conditinally initialize
14379 reference_vars_to_consider.
14380 (propagate): Conditionally deninitialize reference_vars_to_consider.
14381 (ipa_reference_write_optimization_summary): Sanity check that
14382 reference_vars_to_consider is not allocated.
14383
14384 2021-02-13 Levy Hsu <admin@levyhsu.com>
14385
14386 PR target/97417
14387 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
14388 extend parameter to get_si_mem_base_reg declaration.
14389 (get_si_mem_base_reg): Add extend parameter. Set it.
14390 (analyze): Pass extend arg to get_si_mem_base_reg.
14391 (transform): Likewise. Use it when rewriting mems.
14392 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
14393 loads and emit sign/zero extending load followed by subreg move.
14394
14395 2021-02-13 Jim Wilson <jimw@sifive.com>
14396
14397 PR target/97417
14398 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
14399 exit when !reload_completed. Only perform check for compressed reg
14400 if reload_completed.
14401 (riscv_rtx_costs): In MEM case, when optimizing for size and
14402 shorten memrefs, if not compressible, then increase cost.
14403
14404 2021-02-13 Jakub Jelinek <jakub@redhat.com>
14405
14406 PR rtl-optimization/98439
14407 * recog.c (pass_split_before_regstack::gate): Enable even when
14408 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
14409 on.
14410
14411 2021-02-13 Jakub Jelinek <jakub@redhat.com>
14412
14413 PR target/96166
14414 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
14415 swap of V2SImode elements in memory into DImode memory rotate by 32.
14416
14417 2021-02-12 Martin Sebor <msebor@redhat.com>
14418
14419 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
14420
14421 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
14422
14423 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
14424 m_temp_obstack rather than m_obstack to allocate the temporary use.
14425
14426 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
14427
14428 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
14429 as read-modify operations.
14430
14431 2021-02-12 Richard Biener <rguenther@suse.de>
14432
14433 PR middle-end/38474
14434 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
14435 fbi->aa_walk_budget is bigger than zero. Update
14436 fbi->aa_walk_budget.
14437 (param_change_prob): Likewise.
14438 * ipa-prop.c (detect_type_change_from_memory_writes):
14439 Properly account walk_aliased_vdefs.
14440 (parm_preserved_before_stmt_p): Canonicalize updates.
14441 (parm_ref_data_preserved_p): Likewise.
14442 (parm_ref_data_pass_through_p): Likewise.
14443 (determine_known_aggregate_parts): Account own alias queries.
14444
14445 2021-02-12 Martin Liska <mliska@suse.cz>
14446
14447 * opts-common.c (decode_cmdline_option): Release werror_arg.
14448 * opts.c (gen_producer_string): Release output of
14449 gen_command_line_string.
14450
14451 2021-02-12 Richard Biener <rguenther@suse.de>
14452
14453 PR tree-optimization/38474
14454 * params.opt (-param=max-store-chains-to-track=): New param.
14455 (-param=max-stores-to-track=): Likewise.
14456 * doc/invoke.texi (max-store-chains-to-track): Document.
14457 (max-stores-to-track): Likewise.
14458 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
14459 New.
14460 (pass_store_merging::m_n_stores): Likewise.
14461 (pass_store_merging::terminate_and_process_chain): Update
14462 m_n_stores and m_n_chains.
14463 (pass_store_merging::process_store): Likewise. Terminate
14464 oldest chains if the number of stores or chains get too large.
14465 (imm_store_chain_info::terminate_and_process_chain): Dump
14466 chain length.
14467
14468 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
14469
14470 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
14471 the cold section, emit a nop before the directive if the previous
14472 active instruction can throw.
14473
14474 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
14475
14476 PR target/99041
14477 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
14478 memory addresses that are legal for quad word accesses.
14479
14480 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
14481
14482 PR target/98931
14483 * config/arm/thumb2.md (*doloop_end_internal): Generate
14484 alternative sequence to handle long range branches.
14485
14486 2021-02-11 Joel Hutton <joel.hutton@arm.com>
14487
14488 PR tree-optimization/98772
14489 * optabs-tree.c (supportable_half_widening_operation): New function
14490 to check for supportable V8QI->V8HI widening patterns.
14491 * optabs-tree.h (supportable_half_widening_operation): New function.
14492 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
14493 to create promotion stmts for V8QI->V8HI widening patterns.
14494 (vectorizable_conversion): Add case for V8QI->V8HI.
14495
14496 2021-02-11 Richard Biener <rguenther@suse.de>
14497
14498 * sparseset.h (SPARSESET_ELT_BITS): Remove.
14499 (SPARSESET_ELT_TYPE): Use unsigned int.
14500 * fwprop.c: Do not include sparseset.h.
14501
14502 2021-02-10 Jakub Jelinek <jakub@redhat.com>
14503
14504 PR c++/99035
14505 * varasm.c (declare_weak): For -fsyntax-only, allow even
14506 TREE_ASM_WRITTEN function decls.
14507
14508 2021-02-10 Jakub Jelinek <jakub@redhat.com>
14509
14510 PR target/99025
14511 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
14512 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
14513 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
14514 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
14515 calling simplify_gen_subreg on it.
14516
14517 2021-02-10 Martin Liska <mliska@suse.cz>
14518
14519 * config/nvptx/nvptx.c (nvptx_option_override): Use
14520 flag_patchable_function_entry instead of the removed
14521 function_entry_patch_area_size.
14522
14523 2021-02-10 Martin Liska <mliska@suse.cz>
14524
14525 PR tree-optimization/99002
14526 PR tree-optimization/99026
14527 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
14528 leak when adjacent cases are merged.
14529 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
14530 release_clusters.
14531 (make_pass_lower_switch): Remove trailing whitespace.
14532 * tree-switch-conversion.h (release_clusters): New.
14533
14534 2021-02-10 Richard Biener <rguenther@suse.de>
14535
14536 PR rtl-optimization/99054
14537 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
14538 (fixup_partitions): Adjust.
14539 (rtl_verify_edges): Likewise.
14540
14541 2021-02-10 Jakub Jelinek <jakub@redhat.com>
14542
14543 PR middle-end/99007
14544 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
14545 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
14546 calls.
14547
14548 2021-02-10 Richard Biener <rguenther@suse.de>
14549
14550 PR ipa/99029
14551 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
14552 for callees.
14553
14554 2021-02-10 Richard Biener <rguenther@suse.de>
14555
14556 PR tree-optimization/99024
14557 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
14558 clear loop->aux if it is associated with the destroyed loop_vinfo.
14559
14560 2021-02-10 Martin Liska <mliska@suse.cz>
14561
14562 PR tree-optimization/99002
14563 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
14564 in the function.
14565
14566 2021-02-10 Martin Liska <mliska@suse.cz>
14567
14568 PR ipa/99003
14569 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
14570 a reference exists.
14571
14572 2021-02-10 Jakub Jelinek <jakub@redhat.com>
14573
14574 PR debug/98755
14575 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
14576 at class scope for DWARF5+.
14577
14578 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
14579
14580 PR rtl-optimization/96015
14581 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
14582 (relax_delay_slots): When deleting a jump to the next active
14583 instruction over a barrier, first delete the barrier if the
14584 jump is the only way to reach the target label.
14585
14586 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
14587
14588 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
14589 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
14590 vector multiplies and vect.alu for SSRA.
14591 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
14592 vect.mul cost field.
14593 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
14594 * config/arm/arm.c: Likewise.
14595
14596 2021-02-09 Richard Biener <rguenther@suse.de>
14597
14598 PR tree-optimization/98863
14599 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
14600 * tree-ssa-sccvn.c (last_pushed_avail): New global.
14601 (rpo_elim::eliminate_push_avail): Chain pushed avails.
14602 (unwind_state::avail_top): Add.
14603 (do_unwind): Rewrite unwinding of avail entries.
14604 (do_rpo_vn): Initialize last_pushed_avail and
14605 avail_top of the undo state.
14606
14607 2021-02-09 Jakub Jelinek <jakub@redhat.com>
14608
14609 PR middle-end/99004
14610 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
14611 const char * to char * and free those pointers after use.
14612
14613 2021-02-09 Richard Biener <rguenther@suse.de>
14614
14615 PR tree-optimization/99017
14616 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
14617 zero vector cost entries.
14618
14619 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
14620
14621 PR middle-end/98974
14622 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
14623 parameter in vectorizable_condition.
14624
14625 2021-02-08 Richard Biener <rguenther@suse.de>
14626
14627 PR lto/96591
14628 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
14629
14630 2021-02-08 Martin Liska <mliska@suse.cz>
14631
14632 PR lto/98971
14633 * cfgexpand.c (pass_expand::execute): Parse per-function option
14634 flag_patchable_function_entry and use it.
14635 * common.opt: Remove function_entry_patch_area_size and
14636 function_entry_patch_area_start global variables.
14637 * opts.c (parse_and_check_patch_area): New function.
14638 (common_handle_option): Use it.
14639 * opts.h (parse_and_check_patch_area): New function.
14640 * toplev.c (process_options): Parse and use
14641 function_entry_patch_area_size.
14642
14643 2021-02-08 Martin Sebor <msebor@redhat.com>
14644
14645 * doc/extend.texi (attribute malloc): Correct typos.
14646
14647 2021-02-05 Nathan Sidwell <nathan@acm.org>
14648
14649 PR driver/98943
14650 * gcc.c (driver::maybe_run_linker): Check for input file
14651 accessibility if not linking.
14652
14653 2021-02-05 Richard Biener <rguenther@suse.de>
14654
14655 PR tree-optimization/98855
14656 * tree-vectorizer.h (add_stmt_cost): New overload.
14657 * tree-vect-slp.c (li_cost_vec_cmp): New.
14658 (vect_bb_slp_scalar_cost): Cost individual loop regions
14659 separately. Account for the scalar instance root stmt.
14660
14661 2021-02-05 Tom de Vries <tdevries@suse.de>
14662
14663 PR debug/98656
14664 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
14665 argument.
14666 (bit_test_cluster::emit): Reuse location_t for newly created
14667 gswitch statement.
14668 (switch_decision_tree::try_switch_expansion): Preserve
14669 location_t.
14670 * tree-switch-conversion.h: Change function signatures.
14671
14672 2021-02-05 Jakub Jelinek <jakub@redhat.com>
14673
14674 PR target/98957
14675 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
14676 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
14677 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
14678 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
14679
14680 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14681
14682 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
14683 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
14684 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
14685 (vget_high_f16): Reimplement using new builtin.
14686 (vget_high_f32): Likewise.
14687 (vget_high_f64): Likewise.
14688 (vget_high_p8): Likewise.
14689 (vget_high_p16): Likewise.
14690 (vget_high_p64): Likewise.
14691 (vget_high_s8): Likewise.
14692 (vget_high_s16): Likewise.
14693 (vget_high_s32): Likewise.
14694 (vget_high_s64): Likewise.
14695 (vget_high_u8): Likewise.
14696 (vget_high_u16): Likewise.
14697 (vget_high_u32): Likewise.
14698 (vget_high_u64): Likewise.
14699
14700 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14701
14702 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
14703 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
14704 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
14705 (vget_low_f16): Reimplement using new builtin.
14706 (vget_low_f32): Likewise.
14707 (vget_low_f64): Likewise.
14708 (vget_low_p8): Likewise.
14709 (vget_low_p16): Likewise.
14710 (vget_low_p64): Likewise.
14711 (vget_low_s8): Likewise.
14712 (vget_low_s16): Likewise.
14713 (vget_low_s32): Likewise.
14714 (vget_low_s64): Likewise.
14715 (vget_low_u8): Likewise.
14716 (vget_low_u16): Likewise.
14717 (vget_low_u32): Likewise.
14718 (vget_low_u64): Likewise.
14719
14720 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
14721
14722 * gcc.c (print_multilib_info): Check all required argument is provided
14723 by default arg.
14724
14725 2021-02-05 liuhongt <hongtao.liu@intel.com>
14726
14727 PR target/98537
14728 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
14729 generate integer mask comparison for 128/256-bits vector when
14730 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
14731 delete redundant !maskcmp condition.
14732 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
14733 here.
14734 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
14735 condition directly to if (maskcmp), add extra check for
14736 cmpmode, it should be MODE_INT.
14737 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
14738 parameters op_true/op_false.
14739 (ix86_use_mask_cmp_p): New.
14740
14741 2021-02-05 liuhongt <hongtao.liu@intel.com>
14742
14743 PR target/98172
14744 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
14745 Remove m_GENERIC from ~list.
14746 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
14747
14748 2021-02-04 David Malcolm <dmalcolm@redhat.com>
14749
14750 PR c/97932
14751 * diagnostic-show-locus.c (compatible_locations_p): Require
14752 locations in the same macro map to be either both from the
14753 macro definition, or both from the macro arguments.
14754
14755 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
14756
14757 * config/aarch64/aarch64-simd-builtins.def: Add
14758 [su]mull_hi_lane[q] builtin generator macros.
14759 * config/aarch64/aarch64-simd.md
14760 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
14761 (aarch64_<su>mull_hi_lane<mode>): Define.
14762 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
14763 (aarch64_<su>mull_hi_laneq<mode>): Define.
14764 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
14765 builtin instead of inline asm.
14766 (vmull_high_lane_s32): Likewise.
14767 (vmull_high_lane_u16): Likewise.
14768 (vmull_high_lane_u32): Likewise.
14769 (vmull_high_laneq_s16): Likewise.
14770 (vmull_high_laneq_s32): Likewise.
14771 (vmull_high_laneq_u16): Likewise.
14772 (vmull_high_laneq_u32): Liekwise.
14773
14774 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
14775
14776 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
14777 builtin generator macros.
14778 * config/aarch64/aarch64-simd.md
14779 (aarch64_<su>mull_hi_n<mode>_insn): Define.
14780 (aarch64_<su>mull_hi_n<mode>): Define.
14781 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
14782 instead of inline asm.
14783 (vmull_high_n_s32): Likewise.
14784 (vmull_high_n_u16): Likewise.
14785 (vmull_high_n_u32): Likewise.
14786
14787 2021-02-04 Richard Biener <rguenther@suse.de>
14788
14789 PR tree-optimization/98855
14790 * tree-vect-loop.c (vectorizable_phi): Do not cost
14791 single-argument PHIs.
14792 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
14793 * tree-vect-stmts.c (vectorizable_bswap): Also perform
14794 costing for SLP operation.
14795
14796 2021-02-04 Martin Liska <mliska@suse.cz>
14797
14798 * doc/extend.texi: Mention -mprefer-vector-width in target
14799 attributes.
14800
14801 2021-02-03 Martin Sebor <msebor@redhat.com>
14802
14803 PR tree-optimization/98937
14804 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
14805 Flush pointer_query cache.
14806
14807 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
14808
14809 * config/rs6000/genfusion.pl (gen_2logical): Add missing
14810 fixes based on patch review.
14811 * config/rs6000/fusion.md: Regenerate file.
14812
14813 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
14814
14815 * config/rs6000/t-rs6000: Comment out auto generation of
14816 fusion.md for now.
14817
14818 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
14819
14820 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
14821 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
14822 (output_file_start): Add gfx908.
14823 * config/gcn/gcn.opt (gpu_type): Add gfx908.
14824 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
14825 (MULTILIB_DIRNAMES): Add gfx908.
14826 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
14827 (main): Recognize gfx908.
14828 * config/gcn/t-omp-device: Add gfx908.
14829
14830 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
14831
14832 * config/aarch64/aarch64-simd-builtins.def: Add
14833 [su]mlsl_hi_lane[q] builtin macro generators.
14834 * config/aarch64/aarch64-simd.md
14835 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
14836 (aarch64_<su>mlsl_hi_lane<mode>): Define.
14837 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
14838 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
14839 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
14840 builtin instead of inline asm.
14841 (vmlsl_high_lane_s32): Likewise.
14842 (vmlsl_high_lane_u16): Likewise.
14843 (vmlsl_high_lane_u32): Likewise.
14844 (vmlsl_high_laneq_s16): Likewise.
14845 (vmlsl_high_laneq_s32): Likewise.
14846 (vmlsl_high_laneq_u16): Likewise.
14847 (vmlsl_high_laneq_u32): Likewise.
14848 (vmlal_high_laneq_u32): Likewise.
14849
14850 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
14851
14852 * config/aarch64/aarch64-simd-builtins.def: Add
14853 [su]mlal_hi_lane[q] builtin generator macros.
14854 * config/aarch64/aarch64-simd.md
14855 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
14856 (aarch64_<su>mlal_hi_lane<mode>): Define.
14857 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
14858 (aarch64_<su>mlal_hi_laneq<mode>): Define.
14859 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
14860 builtin instead of inline asm.
14861 (vmlal_high_lane_s32): Likewise.
14862 (vmlal_high_lane_u16): Likewise.
14863 (vmlal_high_lane_u32): Likewise.
14864 (vmlal_high_laneq_s16): Likewise.
14865 (vmlal_high_laneq_s32): Likewise.
14866 (vmlal_high_laneq_u16): Likewise.
14867 (vmlal_high_laneq_u32): Likewise.
14868
14869 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
14870
14871 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
14872 builtin generator macros.
14873 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
14874 Define.
14875 (aarch64_<su>mlsl_hi_n<mode>): Define.
14876 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
14877 instead of inline asm.
14878 (vmlsl_high_n_s32): Likewise.
14879 (vmlsl_high_n_u16): Likewise.
14880 (vmlsl_high_n_u32): Likewise.
14881
14882 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
14883
14884 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
14885 builtin generator macros.
14886 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
14887 Define.
14888 (aarch64_<su>mlal_hi_n<mode>): Define.
14889 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
14890 instead of inline asm.
14891 (vmlal_high_n_s32): Likewise.
14892 (vmlal_high_n_u16): Likewise.
14893 (vmlal_high_n_u32): Likewise.
14894
14895 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
14896
14897 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
14898 generator macros.
14899 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
14900 Rename to...
14901 (aarch64_<su>mlal_hi<mode>_insn): This.
14902 (aarch64_<su>mlal_hi<mode>): Define.
14903 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
14904 instead of inline asm.
14905 (vmlal_high_s16): Likewise.
14906 (vmlal_high_s32): Likewise.
14907 (vmlal_high_u8): Likewise.
14908 (vmlal_high_u16): Likewise.
14909 (vmlal_high_u32): Likewise.
14910
14911 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
14912
14913 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
14914 after calling alter_subreg() on a (mem).
14915
14916 2021-02-03 Martin Liska <mliska@suse.cz>
14917
14918 PR lto/98912
14919 * lto-streamer-out.c (produce_lto_section): Fill up missing
14920 padding.
14921 * lto-streamer.h (struct lto_section): Add _padding field.
14922
14923 2021-02-03 Richard Biener <rguenther@suse.de>
14924
14925 * lto-streamer.c (lto_get_section_name): Free temporary
14926 buffer.
14927 * tree-loop-distribution.c
14928 (loop_distribution::merge_dep_scc_partitions): Free edge data.
14929
14930 2021-02-03 Jakub Jelinek <jakub@redhat.com>
14931
14932 PR middle-end/97487
14933 * ifcvt.c (noce_can_force_operand): New function.
14934 (noce_emit_move_insn): Use it.
14935 (noce_try_sign_mask): Likewise. Formatting fix.
14936
14937 2021-02-03 Jakub Jelinek <jakub@redhat.com>
14938
14939 PR middle-end/97971
14940 * lra-constraints.c (process_alt_operands): For inline asm, don't call
14941 fatal_insn, but instead return false.
14942
14943 2021-02-03 Jakub Jelinek <jakub@redhat.com>
14944
14945 PR tree-optimization/98287
14946 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
14947 for V1DImode.
14948
14949 2021-02-03 Tamar Christina <tamar.christina@arm.com>
14950
14951 PR tree-optimization/98928
14952 * tree-vect-loop.c (vect_analyze_loop_2): Change
14953 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
14954 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
14955 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
14956 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
14957
14958 2021-02-02 Richard Biener <rguenther@suse.de>
14959
14960 * gimple-loop-interchange.cc (prepare_data_references):
14961 Release vectors.
14962 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
14963 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
14964 * tree-vect-stmts.c (vectorizable_condition): Do not
14965 allocate vectors.
14966 (vectorizable_comparison): Likewise.
14967
14968 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14969
14970 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
14971 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
14972 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
14973 (vrsqrteq_u32): Likewise.
14974
14975 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14976
14977 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
14978 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
14979 (aarch64_sqxtun2<mode>_be): Likewise.
14980 (aarch64_sqxtun2<mode>): Likewise.
14981 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
14982 (vqmovun_high_s32): Likewise.
14983 (vqmovun_high_s64): Likewise.
14984 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
14985
14986 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14987
14988 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
14989 AUTO_FP flags.
14990 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
14991
14992 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14993
14994 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
14995 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
14996 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
14997 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
14998 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
14999 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
15000 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
15001 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
15002
15003 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15004
15005 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
15006 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
15007 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
15008
15009 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15010
15011 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
15012 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
15013
15014 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15015
15016 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
15017 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
15018 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
15019 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
15020 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
15021 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
15022 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
15023 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
15024 NONE builtin flags.
15025
15026 2021-02-02 Jakub Jelinek <jakub@redhat.com>
15027
15028 PR tree-optimization/98848
15029 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
15030 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
15031
15032 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
15033
15034 PR target/98743
15035 * expr.c: Check mode before calling store_expr.
15036
15037 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
15038
15039 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
15040 (VORNQ): Remove.
15041 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
15042 instruction using expression ior.
15043 (mve_vornq_u<mode>): New expander.
15044 (mve_vornq_f<mode>): Use ior code instead of unspec.
15045 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
15046
15047 2021-02-02 Alexandre Oliva <oliva@adacore.com>
15048
15049 * tree-nested.c (convert_nonlocal_reference_op): Move
15050 current_function_decl restore after re-gimplification.
15051 (convert_local_reference_op): Likewise.
15052
15053 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15054
15055 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
15056 Define builtins.
15057 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
15058 Define.
15059 (aarch64_rshrn<mode>_insn_be): Likewise.
15060 (aarch64_rshrn<mode>): Likewise.
15061 (aarch64_rshrn2<mode>_insn_le): Likewise.
15062 (aarch64_rshrn2<mode>_insn_be): Likewise.
15063 (aarch64_rshrn2<mode>): Likewise.
15064 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
15065 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
15066 using builtin.
15067 (vrshrn_high_n_s32): Likewise.
15068 (vrshrn_high_n_s64): Likewise.
15069 (vrshrn_high_n_u16): Likewise.
15070 (vrshrn_high_n_u32): Likewise.
15071 (vrshrn_high_n_u64): Likewise.
15072 (vrshrn_n_s16): Likewise.
15073 (vrshrn_n_s32): Likewise.
15074 (vrshrn_n_s64): Likewise.
15075 (vrshrn_n_u16): Likewise.
15076 (vrshrn_n_u32): Likewise.
15077 (vrshrn_n_u64): Likewise.
15078
15079 2021-02-01 Sergei Trofimovich <siarheit@google.com>
15080
15081 PR tree-optimization/98499
15082 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
15083 conservatively and assume all possible side-effects.
15084
15085 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15086
15087 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
15088 vec_unpacku_hi_): Define builtins.
15089 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
15090 builtin.
15091 (vmovl_high_s16): Likewise.
15092 (vmovl_high_s32): Likewise.
15093 (vmovl_high_u8): Likewise.
15094 (vmovl_high_u16): Likewise.
15095 (vmovl_high_u32): Likewise.
15096
15097 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15098
15099 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
15100 Define builtins.
15101 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
15102 pattern.
15103 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
15104 UNSPEC_UABDL.
15105 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
15106 builtin.
15107 (vabdl_s16): Likewise.
15108 (vabdl_s32): Likewise.
15109 (vabdl_u8): Likewise.
15110 (vabdl_u16): Likewise.
15111 (vabdl_u32): Likewise.
15112 * config/aarch64/iterators.md (ABDL): New int iterator.
15113 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
15114
15115 2021-02-01 Martin Sebor <msebor@redhat.com>
15116
15117 * tree.h (BLOCK_VARS): Add comment.
15118 (BLOCK_SUBBLOCKS): Same.
15119 (BLOCK_SUPERCONTEXT): Same.
15120 (BLOCK_ABSTRACT_ORIGIN): Same.
15121 (inlined_function_outer_scope_p): Same.
15122
15123 2021-02-01 Martin Sebor <msebor@redhat.com>
15124
15125 PR middle-end/97172
15126 * attribs.c (attr_access::free_lang_data): Define new function.
15127 * attribs.h (attr_access::free_lang_data): Declare new function.
15128
15129 2021-02-01 Richard Biener <rguenther@suse.de>
15130
15131 * vec.h (auto_vec::auto_vec): Add memory stat parameters
15132 and pass them on.
15133 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
15134
15135 2021-02-01 Tamar Christina <tamar.christina@arm.com>
15136
15137 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
15138 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
15139
15140 2021-02-01 Richard Biener <rguenther@suse.de>
15141
15142 PR rtl-optimization/98863
15143 * config/i386/i386-features.c (convert_scalars_to_vector):
15144 Set DF_RD_PRUNE_DEAD_DEFS.
15145
15146 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
15147
15148 * system.h (SIZE_MAX): Define if not already defined.
15149
15150 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
15151
15152 * config/rs6000/genfusion.pl (gen_2logical): New function to
15153 generate patterns for logical-logical fusion.
15154 * config/rs6000/fusion.md: Regenerated patterns.
15155 * config/rs6000/rs6000-cpus.def: Add
15156 OPTION_MASK_P10_FUSION_2LOGICAL.
15157 * config/rs6000/rs6000.c (rs6000_option_override_internal):
15158 Enable logical-logical fusion for p10.
15159 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
15160
15161 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
15162
15163 * config/rs6000/rs6000.opt: Add periods to new AIX options.
15164
15165 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
15166
15167 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
15168 (mabi=vec-default): New.
15169 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
15170 __EXTABI__ for AIX Vector extended ABI.
15171 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
15172 extabi info.
15173 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
15174 are non-volatile.
15175 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
15176
15177 2021-01-30 Jakub Jelinek <jakub@redhat.com>
15178
15179 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
15180 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
15181
15182 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
15183
15184 PR target/97701
15185 * lra-constraints.c (in_class_p): Don't narrow class only for REG
15186 or MEM.
15187
15188 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
15189
15190 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
15191 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
15192 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
15193
15194 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
15195
15196 PR tree-optimization/98866
15197 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
15198 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
15199 (gori_map::m_maybe_invariant): Rename from all_outgoing.
15200 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
15201 (gori_map::is_export_p): Ditto.
15202 (gori_map::calculate_gori): Ditto.
15203 (gori_compute::set_range_invariant): New.
15204 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
15205 invariant for pointers evaluating to [1, +INF].
15206
15207 2021-01-29 Richard Biener <rguenther@suse.de>
15208
15209 PR rtl-optimization/98863
15210 * config/i386/i386-features.c (remove_partial_avx_dependency):
15211 Do not perform DF analysis.
15212 (pass_data_remove_partial_avx_dependency): Remove
15213 TODO_df_finish.
15214
15215 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
15216
15217 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
15218 builtin generator macros.
15219 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
15220 Define.
15221 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
15222 instead of inline asm.
15223 (vmull_n_s32): Likewise.
15224 (vmull_n_u16): Likewise.
15225 (vmull_n_u32): Likewise.
15226
15227 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15228
15229 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
15230 Define builtins.
15231 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
15232 Rename to...
15233 (aarch64_<sur>abdl2<mode>): ... This.
15234 (<sur>sadv16qi): Adjust use of above.
15235 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
15236 builtin.
15237 (vabdl_high_s16): Likewise.
15238 (vabdl_high_s32): Likewise.
15239 (vabdl_high_u8): Likewise.
15240 (vabdl_high_u16): Likewise.
15241 (vabdl_high_u32): Likewise.
15242
15243 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15244
15245 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
15246 builtin.
15247 (uabal2): Likewise.
15248 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
15249 pattern.
15250 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
15251 UNSPEC_UABAL2.
15252 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
15253 builtin.
15254 (vabal_high_s16): Likewise.
15255 (vabal_high_s32): Likewise.
15256 (vabal_high_u8): Likewise.
15257 (vabal_high_u16): Likewise.
15258 (vabal_high_u32): Likewise.
15259 * config/aarch64/iterators.md (ABAL2): New mode iterator.
15260 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
15261
15262 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15263
15264 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
15265 builtin.
15266 (uabal): Likewise.
15267 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
15268 Rename to...
15269 (aarch64_<sur>abal<mode>): ... This
15270 (<sur>sadv16qi): Adust use of the above.
15271 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
15272 builtin.
15273 (vabal_s16): Likewise.
15274 (vabal_s32): Likewise.
15275 (vabal_u8): Likewise.
15276 (vabal_u16): Likewise.
15277 (vabal_u32): Likewise.
15278
15279 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15280
15281 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
15282 Define builtins.
15283 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
15284 Define.
15285 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
15286 builtin.
15287 (vaddlv_s16): Likewise.
15288 (vaddlv_u8): Likewise.
15289 (vaddlv_u16): Likewise.
15290 (vaddlvq_s8): Likewise.
15291 (vaddlvq_s16): Likewise.
15292 (vaddlvq_s32): Likewise.
15293 (vaddlvq_u8): Likewise.
15294 (vaddlvq_u16): Likewise.
15295 (vaddlvq_u32): Likewise.
15296 (vaddlv_s32): Likewise.
15297 (vaddlv_u32): Likewise.
15298 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
15299 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
15300 (Vwstype): New mode attribute.
15301 (Vwsuf): Likewise.
15302 (VWIDE_S): Likewise.
15303 (USADDLV): New int iterator.
15304 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
15305
15306 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
15307
15308 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
15309 builtin generator macros.
15310 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
15311 Define.
15312 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
15313 instead of inline asm.
15314 (vmlsl_lane_s32): Likewise.
15315 (vmlsl_lane_u16): Likewise.
15316 (vmlsl_lane_u32): Likewise.
15317 (vmlsl_laneq_s16): Likewise.
15318 (vmlsl_laneq_s32): Likewise.
15319 (vmlsl_laneq_u16): Likewise.
15320 (vmlsl_laneq_u32): Likewise.
15321
15322 2021-01-29 Richard Biener <rguenther@suse.de>
15323
15324 * doc/invoke.texi (--param max-gcse-memory): Document unit
15325 of size.
15326 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
15327 * params.opt (--param max-gcse-memory): Adjust default and
15328 document unit of size.
15329
15330 2021-01-29 Richard Biener <rguenther@suse.de>
15331
15332 PR rtl-optimization/98863
15333 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
15334 HOST_WIDE_INT for the memory estimate.
15335
15336 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
15337 Richard Biener <rguenther@suse.de>
15338
15339 PR tree-optimization/97627
15340 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
15341 Do not analyze fake edges.
15342
15343 2021-01-29 Richard Biener <rguenther@suse.de>
15344
15345 PR rtl-optimization/98144
15346 * df.h (df_mir_bb_info): Add con_visited member.
15347 * df-problems.c (df_mir_alloc): Initialize con_visited,
15348 do not fully populate IN and OUT.
15349 (df_mir_reset): Likewise.
15350 (df_mir_confluence_0): Set con_visited.
15351 (df_mir_confluence_n): Properly handle implicitely
15352 fully populated IN and OUT as designated by con_visited
15353 and update con_visited accordingly.
15354
15355 2021-01-29 Jakub Jelinek <jakub@redhat.com>
15356
15357 PR target/98849
15358 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
15359 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
15360 && !TARGET_REALLY_IWMMXT to conditions.
15361
15362 2021-01-29 Jakub Jelinek <jakub@redhat.com>
15363
15364 PR debug/98331
15365 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
15366 a BARRIER.
15367
15368 2021-01-28 Marek Polacek <polacek@redhat.com>
15369
15370 PR c++/94775
15371 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
15372 the main variant, maybe reset it in its variants too.
15373 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
15374 (check_aligned_type): Check if TYPE_USER_ALIGN match.
15375
15376 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
15377
15378 PR target/98730
15379 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
15380 of constant zero for comparisons.
15381
15382 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
15383
15384 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
15385 support for mapping built-in function names for long double
15386 built-in functions if long double is IEEE 128-bit.
15387
15388 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
15389
15390 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
15391 builtin generator macros.
15392 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
15393 Define.
15394 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
15395 instead of inline asm.
15396 (vmlsl_n_s32): Likewise.
15397 (vmlsl_n_u16): Likewise.
15398 (vmlsl_n_u32): Likewise.
15399
15400 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
15401
15402 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
15403 builtin generator macros.
15404 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
15405 Define.
15406 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
15407 instead of inline asm.
15408 (vmlal_n_s32): Likewise.
15409 (vmlal_n_u16): Likewise.
15410 (vmlal_n_u32): Likewise.
15411
15412 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15413
15414 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
15415 builtin.
15416 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
15417 Define.
15418 (aarch64_shrn2<mode>_insn_be): Likewise.
15419 (aarch64_shrn2<mode>): Likewise.
15420 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
15421 using builtins.
15422 (vshrn_high_n_s32): Likewise.
15423 (vshrn_high_n_s64): Likewise.
15424 (vshrn_high_n_u16): Likewise.
15425 (vshrn_high_n_u32): Likewise.
15426 (vshrn_high_n_u64): Likewise.
15427
15428 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15429
15430 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
15431 builtin.
15432 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
15433 Define.
15434 (aarch64_shrn<mode>_insn_be): Likewise.
15435 (aarch64_shrn<mode>): Likewise.
15436 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
15437 builtins.
15438 (vshrn_n_s32): Likewise.
15439 (vshrn_n_s64): Likewise.
15440 (vshrn_n_u16): Likewise.
15441 (vshrn_n_u32): Likewise.
15442 (vshrn_n_u64): Likewise.
15443 * config/aarch64/iterators.md (vn_mode): New mode attribute.
15444
15445 2021-01-28 Richard Biener <rguenther@suse.de>
15446
15447 PR rtl-optimization/80960
15448 * dse.c (check_mem_read_rtx): Call get_addr on the
15449 offsetted address.
15450
15451 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
15452 David Edelsohn <dje.gcc@gmail.com>
15453
15454 PR target/98799
15455 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15456 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
15457 when -m32.
15458 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
15459 Delete.
15460 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
15461 wrapper call rs6000_expand_vector_set_var for cleanup. Call
15462 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
15463 directly.
15464 (rs6000_expand_vector_set_var): Delete.
15465 (rs6000_expand_vector_set_var_p9): Make static.
15466 (rs6000_expand_vector_set_var_p8): Make static.
15467
15468 2021-01-28 Xing GUO <higuoxing@gmail.com>
15469
15470 * common/config/riscv/riscv-common.c
15471 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
15472 when `p` extension exists.
15473
15474 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
15475
15476 PR rtl-optimization/97684
15477 * ira.c (ira): Call ira_set_pseudo_classes before
15478 update_equiv_regs when it is necessary.
15479
15480 2021-01-27 Jakub Jelinek <jakub@redhat.com>
15481
15482 PR target/98853
15483 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
15484 %w0, %w1 and %2 instead of %0, %1 and %2.
15485
15486 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
15487
15488 * config/rs6000/genfusion.pl: New script to generate
15489 define_insn_and_split patterns so combine can arrange fused
15490 instructions next to each other.
15491 * config/rs6000/fusion.md: New file, generated fused instruction
15492 patterns for combine.
15493 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
15494 (non_update_memory_operand): New predicate.
15495 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
15496 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
15497 POWERPC_MASKS.
15498 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
15499 prototype.
15500 * config/rs6000/rs6000.c (rs6000_option_override_internal):
15501 Automatically set OPTION_MASK_P10_FUSION and
15502 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
15503 (rs600_opt_masks): Allow -mpower10-fusion
15504 in function attributes.
15505 (address_is_non_pfx_d_or_x): New function.
15506 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
15507 * config/rs6000/rs6000.md: Include fusion.md.
15508 * config/rs6000/rs6000.opt: Add -mpower10-fusion
15509 and -mpower10-fusion-ld-cmpi.
15510 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
15511
15512 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
15513
15514 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
15515 builtin generator macros.
15516 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
15517 Rename to...
15518 (aarch64_<su>mlal<mode>): This.
15519 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
15520 instead of inline asm.
15521 (vmlal_s16): Likewise.
15522 (vmlal_s32): Likewise.
15523 (vmlal_u8): Likewise.
15524 (vmlal_u16): Likewise.
15525 (vmlal_u32): Likewise.
15526
15527 2021-01-27 Richard Biener <rguenther@suse.de>
15528
15529 PR tree-optimization/98854
15530 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
15531 PHIs from scalars when the number of CTORs matches the
15532 number of children.
15533
15534 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
15535
15536 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
15537 generator macro.
15538 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
15539 Rename to...
15540 (aarch64_mls_n<mode>): This.
15541 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
15542 instead of asm.
15543 (vmls_n_s32): Likewise.
15544 (vmls_n_u16): Likewise.
15545 (vmls_n_u32): Likewise.
15546 (vmlsq_n_s16): Likewise.
15547 (vmlsq_n_s32): Likewise.
15548 (vmlsq_n_u16): Likewise.
15549 (vmlsq_n_u32): Likewise.
15550
15551 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
15552
15553 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
15554 generator macro.
15555 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
15556 than asm.
15557 (vmls_s16): Likewise.
15558 (vmls_s32): Likewise.
15559 (vmls_u8): Likewise.
15560 (vmls_u16): Likewise.
15561 (vmls_u32): Likewise.
15562 (vmlsq_s8): Likewise.
15563 (vmlsq_s16): Likewise.
15564 (vmlsq_s32): Likewise.
15565 (vmlsq_u8): Likewise.
15566 (vmlsq_u16): Likewise.
15567 (vmlsq_u32): Likewise.
15568
15569 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
15570
15571 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
15572 generator macro.
15573 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
15574 Rename to...
15575 (aarch64_mla_n<mode>): This.
15576 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
15577 instead of asm.
15578 (vmla_n_s32): Likewise.
15579 (vmla_n_u16): Likewise.
15580 (vmla_n_u32): Likewise.
15581 (vmlaq_n_s16): Likewise.
15582 (vmlaq_n_s32): Likewise.
15583 (vmlaq_n_u16): Likewise.
15584 (vmlaq_n_u32): Likewise.
15585
15586 2021-01-27 liuhongt <hongtao.liu@intel.com>
15587
15588 PR target/98833
15589 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
15590 (*sse2_eq<mode>3): Ditto.
15591
15592 2021-01-27 Jakub Jelinek <jakub@redhat.com>
15593
15594 * tree-pass.h (PROP_trees): Rename to ...
15595 (PROP_gimple): ... this.
15596 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
15597 * passes.c (execute_function_dump, execute_function_todo,
15598 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
15599 * varpool.c (ctor_for_folding): Likewise.
15600
15601 2021-01-27 Jakub Jelinek <jakub@redhat.com>
15602
15603 PR tree-optimization/97260
15604 * varpool.c: Include tree-pass.h.
15605 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
15606 non-TREE_SIDE_EFFECTS automatic variables.
15607
15608 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
15609
15610 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
15611 or -std=gnu++23.
15612 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
15613 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
15614 (gen_compile_unit_die): Recognise C++23.
15615
15616 2021-01-26 Jakub Jelinek <jakub@redhat.com>
15617
15618 PR bootstrap/98839
15619 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
15620 in comparison.
15621
15622 2021-01-26 Jakub Jelinek <jakub@redhat.com>
15623
15624 PR target/98681
15625 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
15626 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
15627 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
15628
15629 2021-01-26 Richard Biener <rguenther@suse.de>
15630
15631 * gimple-pretty-print.c (dump_binary_rhs): Handle
15632 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
15633
15634 2021-01-26 Richard Biener <rguenther@suse.de>
15635
15636 PR middle-end/98726
15637 * tree.h (vector_cst_int_elt): Remove.
15638 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
15639 make static.
15640
15641 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
15642
15643 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
15644 for V64DFmode min/max reductions.
15645
15646 2021-01-26 Jakub Jelinek <jakub@redhat.com>
15647
15648 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
15649 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
15650 two halves, one with x and the other with const0_rtx, ordered
15651 depending on endianity.
15652
15653 2021-01-26 Alexandre Oliva <oliva@adacore.com>
15654
15655 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
15656 temporaries not seen in binding block, and not about to be
15657 added as gimple variables.
15658
15659 2021-01-25 Martin Sebor <msebor@redhat.com>
15660
15661 PR c++/98646
15662 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
15663
15664 2021-01-25 Martin Liska <mliska@suse.cz>
15665
15666 * value-prof.c (get_nth_most_common_value): Use %s instead
15667 of %qs string.
15668
15669 2021-01-25 Jakub Jelinek <jakub@redhat.com>
15670
15671 PR debug/98811
15672 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
15673 readelf -wi is able to read the emitted .debug_info back.
15674 * configure: Regenerated.
15675
15676 2021-01-25 Martin Liska <mliska@suse.cz>
15677
15678 PR gcov-profile/98739
15679 * common.opt: Add missing sign symbol.
15680 * value-prof.c (get_nth_most_common_value): Restore handling
15681 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
15682 PROFILE_REPRODUCIBILITY_MULTITHREADED.
15683
15684 2021-01-25 Richard Biener <rguenther@suse.de>
15685
15686 PR middle-end/98807
15687 * tree.c (vector_element_bits): Always use precision of
15688 the element type for boolean vectors.
15689
15690 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
15691
15692 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
15693 (ENDFILE_SPEC): Evaluate qnolinkcmds.
15694
15695 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
15696
15697 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
15698 nostartfiles handling since this is already done by
15699 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
15700 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
15701 is already done by LINK_COMMAND_SPEC.
15702 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
15703 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
15704 evaluation.
15705
15706 2021-01-25 Jakub Jelinek <jakub@redhat.com>
15707
15708 PR testsuite/98771
15709 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
15710 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
15711 value rather than host size_t.
15712 (fold_const_call): Change type of s2 from size_t to
15713 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
15714 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
15715 instead of s2 as last argument.
15716
15717 2021-01-25 Tamar Christina <tamar.christina@arm.com>
15718
15719 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
15720 VCMLA_OP, VCMUL_OP): New.
15721 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
15722 * config/arm/neon.md (cmul<conj_op><mode>3): New.
15723 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
15724 UNSPEC_VCMUL_CONJ): New.
15725 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
15726 cml<fcmac1><conj_op><mode>4): New.
15727
15728 2021-01-23 Jakub Jelinek <jakub@redhat.com>
15729
15730 PR testsuite/97301
15731 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
15732
15733 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
15734
15735 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
15736 generator macro.
15737 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
15738 than asm.
15739 (vmla_s16): Likewise.
15740 (vmla_s32): Likewise.
15741 (vmla_u8): Likewise.
15742 (vmla_u16): Likewise.
15743 (vmla_u32): Likewise.
15744 (vmlaq_s8): Likewise.
15745 (vmlaq_s16): Likewise.
15746 (vmlaq_s32): Likewise.
15747 (vmlaq_u8): Likewise.
15748 (vmlaq_u16): Likewise.
15749 (vmlaq_u32): Likewise.
15750
15751 2021-01-22 David Malcolm <dmalcolm@redhat.com>
15752
15753 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
15754 directive.
15755
15756 2021-01-22 Jakub Jelinek <jakub@redhat.com>
15757
15758 PR debug/98796
15759 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
15760 filenames to emit, still emit the required 0 index directory and
15761 filename entries that match DW_AT_comp_dir and DW_AT_name of the
15762 compilation unit.
15763
15764 2021-01-22 Marek Polacek <polacek@redhat.com>
15765
15766 PR c++/98545
15767 * doc/invoke.texi: Update C++ ABI Version 15 description.
15768
15769 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15770
15771 PR tree-optimization/98766
15772 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
15773 comparing against type size with param_avoid_fma_max_bits.
15774
15775 2021-01-22 Richard Biener <rguenther@suse.de>
15776
15777 PR middle-end/98793
15778 * tree.c (vector_element_bits): Key single-bit bool vector on
15779 integer mode rather than not vector mode.
15780
15781 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
15782
15783 PR target/98093
15784 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15785 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
15786 platforms.
15787 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
15788 to call different path for P8 and P9.
15789 (rs6000_expand_vector_set_var_p9): New function.
15790 (rs6000_expand_vector_set_var_p8): New function.
15791
15792 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
15793
15794 PR target/79251
15795 PR target/98065
15796 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15797 Ajdust variable index vec_insert from address dereference to
15798 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
15799 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
15800 New declaration.
15801 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
15802
15803 2021-01-22 Martin Liska <mliska@suse.cz>
15804
15805 PR gcov-profile/98739
15806 * profile.c (compute_value_histograms): Drop time profile for
15807 -fprofile-reproducible=multithreaded.
15808
15809 2021-01-22 Nathan Sidwell <nathan@acm.org>
15810
15811 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
15812 existence here.
15813
15814 2021-01-22 Richard Biener <rguenther@suse.de>
15815
15816 PR middle-end/98773
15817 * tree-data-ref.c (initalize_matrix_A): Revert previous
15818 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
15819
15820 2021-01-22 Jakub Jelinek <jakub@redhat.com>
15821
15822 PR tree-optimization/90248
15823 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
15824 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
15825 simplifications.
15826 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
15827 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
15828
15829 2021-01-22 Jakub Jelinek <jakub@redhat.com>
15830
15831 PR tree-optimization/98255
15832 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
15833 extend index - low_bound from sizetype's precision rather than index
15834 precision.
15835 (get_addr_base_and_unit_offset_1): Likewise.
15836 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
15837 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
15838
15839 2021-01-22 Richard Biener <rguenther@suse.de>
15840
15841 PR tree-optimization/98786
15842 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
15843 adding new uses of abnormals. Verify we deal with a conditional
15844 conversion.
15845
15846 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15847
15848 PR target/98636
15849 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
15850
15851 2021-01-22 liuhongt <hongtao.liu@intel.com>
15852
15853 PR target/96891
15854 PR target/98348
15855 * config/i386/sse.md (VI_128_256): New mode iterator.
15856 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
15857 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
15858 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
15859 define_insn_and_split to lower avx512 vector comparison to avx
15860 version when dest is vector.
15861 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
15862 define_insn_and_split for negating the comparison result.
15863 * config/i386/predicates.md (float_vector_all_ones_operand):
15864 New predicate.
15865 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
15866 general NOT operator without UNSPEC_MASKOP.
15867
15868 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
15869
15870 PR rtl-optimization/98777
15871 * lra-int.h (lra_pmode_pseudo): New extern.
15872 * lra.c (lra_pmode_pseudo): New global.
15873 (lra): Set it up.
15874 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
15875
15876 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
15877
15878 * fwprop.c (fwprop_propagation::classify_result): Allow
15879 (subreg (mem)) simplifications.
15880
15881 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15882
15883 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
15884 Split into...
15885 (aarch64_sqdmlal<mode>): ... This...
15886 (aarch64_sqdmlsl<mode>): ... And this.
15887 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
15888 (aarch64_sqdmlal_lane<mode>): ... This...
15889 (aarch64_sqdmlsl_lane<mode>): ... And this.
15890 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
15891 (aarch64_sqdmlsl_laneq<mode>): ... This...
15892 (aarch64_sqdmlal_laneq<mode>): ... And this.
15893 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
15894 (aarch64_sqdmlsl_n<mode>): ... This...
15895 (aarch64_sqdmlal_n<mode>): ... And this.
15896 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
15897 (aarch64_sqdmlal2<mode>_internal): ... This...
15898 (aarch64_sqdmlsl2<mode>_internal): ... And this.
15899
15900 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
15901
15902 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
15903
15904 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
15905
15906 PR target/96372
15907 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
15908
15909 2021-01-21 liuhongt <hongtao.liu@intel.com>
15910
15911 PR rtl-optimization/98694
15912 * regcprop.c (copy_value): If SRC had been assigned a mode
15913 narrower than the copy, we can't link DEST into the chain even
15914 they have same hard_regno_nregs(i.e. HImode/SImode in i386
15915 backend).
15916
15917 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15918
15919 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
15920 Convert to define_insn_and_split. Split into simple move when moving
15921 bottom element.
15922
15923 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
15924
15925 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
15926 Adjust comment. Simplify code.
15927
15928 2021-01-20 Jakub Jelinek <jakub@redhat.com>
15929
15930 PR debug/98765
15931 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
15932 with DW_FORM_line_strp form.
15933 (prune_unused_types_update_strings): Don't add into debug_str_hash
15934 indirect strings with DW_FORM_line_strp form.
15935 (adjust_name_comp_dir): New function.
15936 (dwarf2out_finish): Call it on CU DIEs after resetting
15937 debug_line_str_hash.
15938
15939 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
15940
15941 PR rtl-optimization/98722
15942 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
15943 has no 3-op add insn to transform insns containing two pluses.
15944
15945 2021-01-20 Richard Biener <rguenther@suse.de>
15946
15947 * hwint.h (add_hwi): New function.
15948 (mul_hwi): Likewise.
15949 * tree-data-ref.c (initialize_matrix_A): Properly translate
15950 tree constants and avoid HOST_WIDE_INT_MIN.
15951 (lambda_matrix_row_add): Avoid undefined integer overflow
15952 and return true on such overflow.
15953 (lambda_matrix_right_hermite): Handle overflow from
15954 lambda_matrix_row_add gracefully. Simplify previous fix.
15955 (analyze_subscript_affine_affine): Likewise.
15956
15957 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
15958
15959 PR tree-optimization/96674
15960 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
15961 x >= y && y != XXX_MIN --> x > y - 1
15962
15963 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
15964
15965 PR tree-optimization/98535
15966 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
15967 If the high and low permutes are the same, remove the high permutes
15968 from the working set and only continue with the low ones.
15969
15970 2021-01-20 Jakub Jelinek <jakub@redhat.com>
15971
15972 PR tree-optimization/98721
15973 * builtins.c (access_ref::inform_access): Don't assume
15974 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
15975 object whenever allocfn is NULL, rather than only when DECL_P
15976 is true. Use %qE instead of %qD for that. Formatting fixes.
15977
15978 2021-01-20 Richard Biener <rguenther@suse.de>
15979
15980 PR tree-optimization/98758
15981 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
15982 (lambda_matrix_right_hermite): Avoid undefinedness with
15983 signed integer abs and multiplication.
15984 (analyze_subscript_affine_affine): Use lambda_int.
15985
15986 2021-01-20 David Malcolm <dmalcolm@redhat.com>
15987
15988 PR debug/98751
15989 * dwarf2out.c (output_line_info): Rename static variable
15990 "generation", moving it out of the function to...
15991 (output_line_info_generation): New.
15992 (init_sections_and_labels): Likewise, renaming the variable to...
15993 (init_sections_and_labels_generation): New.
15994 (dwarf2out_c_finalize): Reset the new variables.
15995
15996 2021-01-19 Martin Sebor <msebor@redhat.com>
15997
15998 PR middle-end/98664
15999 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
16000 all functions, even if they're not declared artificial or inline.
16001 * tree.c (tree_inlined_location): Use macro expansion location
16002 only if scope traversal fails to expose one.
16003
16004 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
16005
16006 PR rtl-optimization/92294
16007 * alias.c (compare_base_symbol_refs): Take an extra parameter
16008 and add the distance between two symbols to it. Enshrine in
16009 comments that -1 means "either 0 or 1, but we can't tell
16010 which at compile time".
16011 (memrefs_conflict_p): Update call accordingly.
16012 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
16013 into account.
16014
16015 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16016
16017 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
16018 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
16019 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
16020 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
16021 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
16022 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
16023 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
16024 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
16025 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
16026 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
16027 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
16028 sqmovun): Use NONE flags.
16029
16030 2021-01-19 Richard Biener <rguenther@suse.de>
16031
16032 PR ipa/98330
16033 * ipa-modref.c (analyze_stmt): Only record a summary for a
16034 direct call.
16035
16036 2021-01-19 Richard Biener <rguenther@suse.de>
16037
16038 PR middle-end/98638
16039 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
16040
16041 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
16042
16043 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
16044 built-in define __FIX_LEON3FT_TN0018.
16045
16046 2021-01-19 Richard Biener <rguenther@suse.de>
16047
16048 PR ipa/97673
16049 * tree-inline.c (tree_function_versioning): Set input_location
16050 to UNKNOWN_LOCATION throughout the function.
16051
16052 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
16053
16054 PR fortran/98476
16055 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
16056
16057 2021-01-19 Martin Jambor <mjambor@suse.cz>
16058
16059 PR ipa/98690
16060 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
16061 whether non-call exceptions allow removal of a statement.
16062 (isra_analyze_call): Pass the appropriate function to
16063 ssa_name_only_returned_p.
16064
16065 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
16066
16067 * config/riscv/arch-canonicalize (longext_sort): New function for
16068 sorting 'multi-letter'.
16069 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
16070 'alts'. The 'arch' may not be the first of 'alts'.
16071 (_expand_combination): Add underline for the 'ext' without '*'.
16072 This is because, a single-letter extension can always be treated well
16073 with a '_' prefix, but it cannot be separated out if it is appended
16074 to a multi-letter.
16075
16076 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
16077
16078 PR target/97847
16079 * ira.c (ira): Skip abnormal critical edge splitting.
16080
16081 2021-01-18 Jakub Jelinek <jakub@redhat.com>
16082
16083 PR tree-optimization/98727
16084 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
16085 second .MUL_OVERFLOW operand for signed multiplication with overflow
16086 checking if the second operand of multiplication is not constant.
16087
16088 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
16089
16090 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
16091 defaults to version 4.
16092
16093 2021-01-18 David Malcolm <dmalcolm@redhat.com>
16094
16095 * attribs.h (fndecl_dealloc_argno): New decl.
16096 * builtins.c (call_dealloc_argno): Split out second half of
16097 function into...
16098 (fndecl_dealloc_argno): New.
16099 * doc/extend.texi (Common Function Attributes): Document the
16100 interaction between the analyzer and the malloc attribute.
16101 * doc/invoke.texi (Static Analyzer Options): Likewise.
16102
16103 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
16104
16105 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
16106 dwarf_version to 4.
16107 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
16108
16109 2021-01-17 Martin Jambor <mjambor@suse.cz>
16110
16111 PR ipa/98222
16112 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
16113 the clone tree.
16114
16115 2021-01-17 Mark Wielaard <mark@klomp.org>
16116
16117 * common.opt (gdwarf-): Init(5).
16118 * doc/invoke.texi (-gdwarf): Document default to 5.
16119
16120 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
16121
16122 * builtin-types.def
16123 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
16124 to...
16125 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
16126 ...this. Add extra argument.
16127 * gimplify.c (omp_default_clause): Ensure that event handle is
16128 firstprivate in a task region.
16129 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
16130 (gimplify_adjust_omp_clauses): Likewise.
16131 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
16132 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
16133 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
16134 if detach clause specified. Add detach argument when generating
16135 call to GOMP_task.
16136 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
16137 clause.
16138 (finish_taskreg_scan): Move field for variable containing the event
16139 handle to the front of the struct.
16140 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
16141 ordering.
16142 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
16143 OMP_CLAUSE_DETACH clause.
16144 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
16145 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
16146 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
16147 Fix ordering.
16148 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
16149 ordering.
16150 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
16151
16152 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
16153
16154 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
16155 multilib directory names. Use MULTILIB_REQUIRED instead of
16156 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
16157 -mcustom-fpu-cfg=fph2 multilib.
16158
16159 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
16160
16161 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
16162 (nios2_init_fpu_configs): Provide register values for new
16163 -mcustom-fpu-cfg=fph2 option variant.
16164 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
16165 variant.
16166
16167 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
16168
16169 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
16170 custom instruction warnings.
16171
16172 2021-01-16 Jakub Jelinek <jakub@redhat.com>
16173
16174 PR tree-optimization/96669
16175 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
16176
16177 2021-01-16 Jakub Jelinek <jakub@redhat.com>
16178
16179 PR tree-optimization/96271
16180 * passes.def: Pass false argument to first two pass_cd_dce
16181 instances and true to last instance. Add comment that
16182 last instance rewrites no longer addressed locals.
16183 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
16184 initialize it.
16185 (pass_cd_dce::set_pass_param): New method.
16186 (pass_cd_dce::execute): Return TODO_update_address_taken from
16187 last cd_dce instance.
16188
16189 2021-01-15 Carl Love <cel@us.ibm.com>
16190
16191 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
16192 New defines.
16193 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
16194 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
16195 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
16196 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
16197 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
16198 Add builtin define.
16199 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
16200 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
16201 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
16202 New overloaded definitions.
16203 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
16204 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
16205 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
16206 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
16207 P10V_BUILTIN_MULHU_V4SI]: Add case
16208 statement for builtins.
16209 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
16210 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
16211 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
16212 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
16213 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
16214 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
16215 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
16216 Add define_insn, mode is VIlong.
16217 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
16218 Add builtin descriptions.
16219
16220 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
16221
16222 * final.c (final_start_function_1): Reset force_source_line.
16223
16224 2021-01-15 Jakub Jelinek <jakub@redhat.com>
16225
16226 PR tree-optimization/96669
16227 * match.pd (((1 << A) & 1) != 0 -> A == 0,
16228 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
16229 possibly different power of two constants and to right shift too.
16230
16231 2021-01-15 Jakub Jelinek <jakub@redhat.com>
16232
16233 PR tree-optimization/96681
16234 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
16235 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
16236 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
16237 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
16238
16239 2021-01-15 Alexandre Oliva <oliva@adacore.com>
16240
16241 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
16242
16243 2021-01-15 Tamar Christina <tamar.christina@arm.com>
16244
16245 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
16246 cmul<conj_op><mode>3): New.
16247 * config/aarch64/iterators.md (UNSPEC_FCMUL,
16248 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
16249 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
16250 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
16251 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
16252 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
16253 (rot_op): Renamed to conj_op.
16254 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
16255 cmul<conj_op><mode>3): New.
16256 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
16257 cmul<conj_op><mode>3): New.
16258
16259 2021-01-15 David Malcolm <dmalcolm@redhat.com>
16260
16261 PR bootstrap/98696
16262 * diagnostic.c
16263 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
16264 Escape the tempfile name when constructing the expected output.
16265
16266 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16267
16268 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
16269 Rename to...
16270 (aarch64_<su>mlsl_hi<mode>): ... This.
16271 (aarch64_<su>mlsl_hi<mode>): Define.
16272 (*aarch64_<su>mlsl<mode): Rename to...
16273 (aarch64_<su>mlsl<mode): ... This.
16274 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
16275 smlsl_hi, umlsl_hi): Define builtins.
16276 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
16277 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
16278 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
16279 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
16280
16281 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
16282
16283 * config/i386/i386-c.c (ix86_target_macros):
16284 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
16285
16286 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
16287
16288 PR target/88836
16289 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
16290 * Makefile.in (RTL_SSA_H): New variable.
16291 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
16292 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
16293 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
16294 pass_combine.
16295 * config/aarch64/aarch64-cc-fusion.cc: New file.
16296
16297 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
16298
16299 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
16300 calling cancel_changes for changes that no longer exist.
16301
16302 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
16303
16304 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
16305 (function_info::reg_defs): ...this.
16306 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
16307 (function_info::reg_defs): ...this.
16308
16309 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
16310
16311 PR target/71233
16312 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
16313
16314 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
16315
16316 Revert:
16317 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
16318
16319 PR target/71233
16320 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
16321
16322 2021-01-15 Richard Biener <rguenther@suse.de>
16323
16324 PR tree-optimization/96376
16325 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
16326 for VMAT_INVARIANT.
16327
16328 2021-01-15 Martin Liska <mliska@suse.cz>
16329
16330 * doc/install.texi: Document that some tests need pytest module.
16331 * doc/sourcebuild.texi: Likewise.
16332
16333 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
16334
16335 PR target/71233
16336 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
16337
16338 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
16339
16340 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
16341 (mve_vshrq_n_u<mode>_imm): Likewise.
16342 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
16343 * config/arm/vec-common.md: ... here.
16344
16345 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
16346
16347 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
16348 vec-commond.md.
16349 * config/arm/neon.md (vashl<mode>3): Delete.
16350 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
16351 (vasl<mode>3): New expander.
16352
16353 2021-01-15 Richard Biener <rguenther@suse.de>
16354
16355 PR tree-optimization/98685
16356 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
16357 of vector extern defs.
16358
16359 2021-01-14 David Malcolm <dmalcolm@redhat.com>
16360
16361 PR jit/98586
16362 * diagnostic.c (diagnostic_kind_text): Break out this array
16363 from...
16364 (diagnostic_build_prefix): ...here.
16365 (fancy_abort): Detect when diagnostic_initialize has not yet been
16366 called and fall back to a minimal implementation of printing the
16367 ICE, rather than segfaulting in internal_error.
16368
16369 2021-01-14 David Malcolm <dmalcolm@redhat.com>
16370
16371 * diagnostic.c (diagnostic_initialize): Eliminate
16372 parseable_fixits_p in favor of initializing extra_output_kind from
16373 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
16374 (convert_column_unit): New function, split out from...
16375 (diagnostic_converted_column): ...this.
16376 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
16377 Use them to call convert_column_unit on the column values.
16378 (diagnostic_report_diagnostic): Eliminate conditional on
16379 parseable_fixits_p in favor of a switch statement on
16380 extra_output_kind, passing the appropriate values to the new
16381 params of print_parseable_fixits.
16382 (selftest::test_print_parseable_fixits_none): Update for new
16383 params of print_parseable_fixits.
16384 (selftest::test_print_parseable_fixits_insert): Likewise.
16385 (selftest::test_print_parseable_fixits_remove): Likewise.
16386 (selftest::test_print_parseable_fixits_replace): Likewise.
16387 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
16388 New.
16389 (selftest::diagnostic_c_tests): Call it.
16390 * diagnostic.h (enum diagnostics_extra_output_kind): New.
16391 (diagnostic_context::parseable_fixits_p): Delete field in favor
16392 of...
16393 (diagnostic_context::extra_output_kind): ...this new field.
16394 * doc/invoke.texi (Environment Variables): Add
16395 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
16396 * opts.c (common_handle_option): Update handling of
16397 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
16398 fields.
16399
16400 2021-01-14 Tamar Christina <tamar.christina@arm.com>
16401
16402 * tree-vect-slp-patterns.c (class complex_operations_pattern,
16403 complex_operations_pattern::matches,
16404 complex_operations_pattern::recognize,
16405 complex_operations_pattern::build): New.
16406 (slp_patterns): Use it.
16407
16408 2021-01-14 Tamar Christina <tamar.christina@arm.com>
16409
16410 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
16411 * optabs.def (cmls_optab, cmls_conj_optab): New.
16412 * doc/md.texi: Document them.
16413 * tree-vect-slp-patterns.c (class complex_fms_pattern,
16414 complex_fms_pattern::matches, complex_fms_pattern::recognize,
16415 complex_fms_pattern::build): New.
16416
16417 2021-01-14 Tamar Christina <tamar.christina@arm.com>
16418
16419 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
16420 * optabs.def (cmla_optab, cmla_conj_optab): New.
16421 * doc/md.texi: Document them.
16422 * tree-vect-slp-patterns.c (vect_match_call_p,
16423 class complex_fma_pattern, vect_slp_reset_pattern,
16424 complex_fma_pattern::matches, complex_fma_pattern::recognize,
16425 complex_fma_pattern::build): New.
16426
16427 2021-01-14 Tamar Christina <tamar.christina@arm.com>
16428
16429 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
16430 * optabs.def (cmul_optab, cmul_conj_optab): New.
16431 * doc/md.texi: Document them.
16432 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
16433 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
16434 vect_build_combine_node, class complex_mul_pattern,
16435 complex_mul_pattern::matches, complex_mul_pattern::recognize,
16436 complex_mul_pattern::build): New.
16437
16438 2021-01-14 Tamar Christina <tamar.christina@arm.com>
16439
16440 * tree-vect-slp.c (optimize_load_redistribution_1): New.
16441 (optimize_load_redistribution, vect_is_slp_load_node): New.
16442 (vect_match_slp_patterns): Use it.
16443
16444 2021-01-14 Tamar Christina <tamar.christina@arm.com>
16445
16446 * tree-vect-slp-patterns.c (complex_add_pattern::build):
16447 Elide nodes.
16448
16449 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
16450
16451 * config/gcn/mkoffload.c (main): Create an offload image only in
16452 64-bit configurations.
16453
16454 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
16455
16456 PR target/98667
16457 * config/i386/i386-options.c (ix86_option_override_internal):
16458 Issue an error for -fcf-protection with CF_BRANCH when compiling
16459 for 32-bit non-TARGET_CMOV targets.
16460
16461 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
16462
16463 PR target/98671
16464 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
16465 Remove declaration and initialization of shadow variable "ret".
16466 (ix86_option_override_internal): Remove delcaration of
16467 shadow variable "i". Redeclare shadowed variable to unsigned.
16468 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
16469 * config/i386/i386-builtins.c (get_builtin_code_for_version):
16470 Update for redeclaration.
16471 * config/i386/i386.h (pta_size): Ditto.
16472
16473 2021-01-14 Richard Biener <rguenther@suse.de>
16474
16475 PR tree-optimization/98674
16476 * tree-data-ref.c (base_supports_access_fn_components_p): New.
16477 (initialize_data_dependence_relation): For two bases without
16478 possible access fns resort to type size equality when determining
16479 shape compatibility.
16480
16481 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16482
16483 PR target/66791
16484 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
16485 <=, >= operators in vcle and vcge intrinsics respectively.
16486 * config/arm/arm_neon_builtins.def: Remove entry for
16487 vcge and vcgeu.
16488
16489 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
16490
16491 PR target/98671
16492 * config/i386/i386-options.c (ix86_function_specific_save):
16493 Remove redundant assignment to opts->x_ix86_branch_cost.
16494 * config/i386/i386.c (ix86_prefetch_sse):
16495 Rename from x86_prefetch_sse. Update all uses.
16496 * config/i386/i386.h: Update for rename.
16497 * config/i386/i386-options.h: Ditto.
16498
16499 2021-01-14 Jakub Jelinek <jakub@redhat.com>
16500
16501 PR target/98670
16502 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
16503 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
16504 Use Bm instead of m for non-avx. Add isa attribute.
16505
16506 2021-01-14 Jakub Jelinek <jakub@redhat.com>
16507
16508 PR tree-optimization/96688
16509 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
16510 ~X can be simplified.
16511
16512 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
16513
16514 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
16515 IFN_LOAD_LANES results.
16516
16517 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16518
16519 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
16520 Define.
16521 (aarch64_xtn<mode>): Likewise.
16522 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
16523 Define
16524 builtins.
16525 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
16526 builtin.
16527 (vmovl_s16): Likewise.
16528 (vmovl_s32): Likewise.
16529 (vmovl_u8): Likewise.
16530 (vmovl_u16): Likewise.
16531 (vmovl_u32): Likewise.
16532 (vmovn_s16): Likewise.
16533 (vmovn_s32): Likewise.
16534 (vmovn_s64): Likewise.
16535 (vmovn_u16): Likewise.
16536 (vmovn_u32): Likewise.
16537 (vmovn_u64): Likewise.
16538
16539 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16540
16541 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
16542 Define.
16543 (aarch64_<su>qxtn2<mode>_be): Likewise.
16544 (aarch64_<su>qxtn2<mode>): Likewise.
16545 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
16546 Define builtins.
16547 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
16548 (su): Handle ss_truncate and us_truncate.
16549 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
16550 builtin.
16551 (vqmovn_high_s32): Likewise.
16552 (vqmovn_high_s64): Likewise.
16553 (vqmovn_high_u16): Likewise.
16554 (vqmovn_high_u32): Likewise.
16555 (vqmovn_high_u64): Likewise.
16556
16557 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16558
16559 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
16560 Define.
16561 (aarch64_xtn2<mode>_be): Likewise.
16562 (aarch64_xtn2<mode>): Likewise.
16563 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
16564 builtins.
16565 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
16566 builtins.
16567 (vmovn_high_s32): Likewise.
16568 (vmovn_high_s64): Likewise.
16569 (vmovn_high_u16): Likewise.
16570 (vmovn_high_u32): Likewise.
16571 (vmovn_high_u64): Likewise.
16572
16573 2021-01-13 Stafford Horne <shorne@gmail.com>
16574
16575 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
16576
16577 2021-01-13 Stafford Horne <shorne@gmail.com>
16578
16579 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
16580
16581 2021-01-13 Stafford Horne <shorne@gmail.com>
16582
16583 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
16584 define for __or1k_hard_float__.
16585
16586 2021-01-13 Stafford Horne <shorne@gmail.com>
16587
16588 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
16589 (PROFILE_HOOK): Define to call _mcount.
16590 (FUNCTION_PROFILER): Change from abort to no-op.
16591
16592 2021-01-13 Jakub Jelinek <jakub@redhat.com>
16593
16594 PR tree-optimization/96691
16595 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
16596 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
16597 (~D ^ C) or (D ^ C) can be simplified.
16598
16599 2021-01-13 Richard Biener <rguenther@suse.de>
16600
16601 PR tree-optimization/92645
16602 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
16603 until after vector lowering.
16604
16605 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
16606
16607 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
16608 to SVE_I.
16609 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
16610 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
16611
16612 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
16613
16614 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
16615 to SVE_I.
16616 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
16617 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
16618
16619 2021-01-13 Richard Biener <rguenther@suse.de>
16620
16621 PR tree-optimization/92645
16622 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
16623 BIT_FIELD_REF argument.
16624 (vect_build_slp_tree_2): Record the desired vector type
16625 on the external vector def.
16626 (vectorizable_slp_permutation): Handle required punning
16627 of existing vector defs.
16628
16629 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
16630
16631 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
16632
16633 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
16634
16635 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
16636
16637 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
16638
16639 * config.gcc [$target == *-*-gnu*]: Enable
16640 'default_gnu_indirect_function'.
16641
16642 2021-01-13 Jakub Jelinek <jakub@redhat.com>
16643
16644 PR target/95905
16645 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
16646 registers before calling targetm.vectorize.vec_perm_const, only after
16647 that.
16648 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
16649 two argument permutation when one operand is zero vector and only
16650 after that force operands into registers.
16651 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
16652 define_insn_and_split pattern.
16653 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
16654 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
16655 (*avx2_zero_extendv8hiv8si2_1): Likewise.
16656 (*avx512f_zero_extendv8siv8di2_1): Likewise.
16657 (*avx2_zero_extendv4siv4di2_1): Likewise.
16658 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
16659 into registers.
16660 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
16661 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
16662 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
16663 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
16664 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
16665 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
16666
16667 2021-01-13 Martin Liska <mliska@suse.cz>
16668
16669 PR tree-optimization/98455
16670 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
16671 Record also virtual PHIs.
16672 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
16673 conditionally.
16674
16675 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
16676
16677 * doc/invoke.texi (C++ Modules): Fix typos.
16678
16679 2021-01-13 Richard Biener <rguenther@suse.de>
16680
16681 PR tree-optimization/98640
16682 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
16683 handle plus or minus from a truncated operand to be
16684 sign-extended.
16685
16686 2021-01-13 Jakub Jelinek <jakub@redhat.com>
16687
16688 PR target/96938
16689 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
16690 define_insn_and_split patterns.
16691 (splitter after *btr<mode>_2): New splitter.
16692
16693 2021-01-13 Martin Liska <mliska@suse.cz>
16694
16695 PR ipa/98652
16696 * cgraphunit.c (analyze_functions): Remove dead code.
16697
16698 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
16699
16700 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
16701 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
16702 (a64fx_regmove_cost, a64fx_vector_cost): New.
16703 (a64fx_tunings): Use the new added cost tables.
16704
16705 2021-01-13 Jakub Jelinek <jakub@redhat.com>
16706
16707 PR target/95905
16708 * config/i386/predicates.md (pmovzx_parallel): New predicate.
16709 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
16710 define_insn_and_split pattern.
16711 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
16712 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
16713
16714 2021-01-13 Julian Brown <julian@codesourcery.com>
16715
16716 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
16717 to fix v0 register.
16718
16719 2021-01-13 Julian Brown <julian@codesourcery.com>
16720
16721 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
16722 on entry to a BB.
16723
16724 2021-01-13 Julian Brown <julian@codesourcery.com>
16725
16726 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
16727 for reciprocal-approximation instructions.
16728 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
16729 refinement and division result.
16730 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
16731
16732 2021-01-13 Julian Brown <julian@codesourcery.com>
16733
16734 * config/gcn/gcn-valu.md (subdf): Rename to...
16735 (subdf3): This.
16736
16737 2021-01-12 Martin Liska <mliska@suse.cz>
16738
16739 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
16740
16741 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
16742
16743 * function-abi.h: Fix typo.
16744
16745 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
16746
16747 PR target/97875
16748 PR target/97875
16749 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
16750 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
16751 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
16752 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
16753 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
16754 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
16755 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
16756 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
16757 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
16758 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
16759 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
16760 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
16761 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
16762 (ARM_HAVE_V2DI_LDST): Likewise.
16763 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
16764 (*movmisalign<mode>_mve_load): New pattern.
16765 * config/arm/neon.md (movmisalign<mode>): Move to ...
16766 * config/arm/vec-common.md: ... here.
16767
16768 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
16769
16770 PR target/97969
16771 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
16772 of pattern 'plus (plus (hard reg, const), pseudo)'.
16773
16774 2021-01-12 Richard Biener <rguenther@suse.de>
16775
16776 PR tree-optimization/98550
16777 * tree-vect-slp.c (vect_record_max_nunits): Check whether
16778 the group size is a multiple of the vector element count.
16779 (vect_build_slp_tree_1): When we need to fail because
16780 the vector type choosen causes unrolling do so lazily
16781 without affecting matches only at the end to guide group splitting.
16782
16783 2021-01-12 Martin Liska <mliska@suse.cz>
16784
16785 PR c++/97284
16786 * optc-save-gen.awk: Compare also n_target_save vars with
16787 strcmp.
16788
16789 2021-01-12 Martin Liska <mliska@suse.cz>
16790
16791 * gcov.c (source_info::debug): New.
16792 (print_usage): Add --debug (-D) option.
16793 (process_args): Likewise.
16794 (generate_results): Call src->debug after
16795 accumulate_line_counts.
16796 (read_graph_file): Properly assign id for EXIT_BLOCK.
16797 * profile.c (branch_prob): Dump function body before it is
16798 instrumented.
16799
16800 2021-01-12 Jakub Jelinek <jakub@redhat.com>
16801
16802 PR tree-optimization/98629
16803 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
16804 unless returning non-zero.
16805
16806 2021-01-12 Jakub Jelinek <jakub@redhat.com>
16807
16808 PR tree-optimization/95731
16809 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
16810 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
16811 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
16812 only after optimize_range_tests_var_bound.
16813
16814 2021-01-12 Jakub Jelinek <jakub@redhat.com>
16815
16816 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
16817 * configure: Regenerated.
16818
16819 2021-01-12 liuhongt <hongtao.liu@intel.com>
16820
16821 PR target/98612
16822 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
16823 Deleted.
16824 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
16825 dead code.
16826
16827 2021-01-12 Alexandre Oliva <oliva@adacore.com>
16828
16829 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
16830 declare.
16831 (auto_end_imm_use_stmt_traverse): New struct.
16832 (FOR_EACH_IMM_USE_STMT): Use it.
16833 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
16834 along with uses...
16835 * gimple-ssa-strength-reduction.c: ... here, ...
16836 * graphite-scop-detection.c: ... here, ...
16837 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
16838 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
16839 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
16840 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
16841 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
16842 * tree-vect-slp.c: ... and here, ...
16843 * doc/tree-ssa.texi: ... and the example here.
16844
16845 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16846
16847 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
16848 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
16849 (*sdiv_pow2<mode>3): New pattern.
16850 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
16851 Wrap the ASRD in an UNSPEC_PRED_X.
16852 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
16853 predicate with a constant PTRUE, if it isn't already.
16854 (*cond_<sve_int_op><mode>_z): Replace with...
16855 (*cond_<sve_int_op><mode>_any): ...this new pattern.
16856
16857 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16858
16859 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
16860 SVE_FULL_I to SVE_I.
16861 (*cond_bic<mode>_any): Likewise.
16862
16863 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16864
16865 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
16866 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
16867 to SVE_I.
16868
16869 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16870
16871 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
16872 SVE_FULL_I to SVE_I.
16873 (*aarch64_cond_<su>abd<mode>_2): Likewise.
16874 (*aarch64_cond_<su>abd<mode>_any): Likewise.
16875 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
16876 for the max and min but not for the minus.
16877 (*aarch64_cond_<su>abd<mode>_3): New pattern.
16878
16879 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16880
16881 * config/aarch64/iterators.md (SVE_24I): New iterator.
16882 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
16883 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
16884
16885 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16886
16887 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
16888 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
16889 to SVE_I.
16890 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
16891 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
16892 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
16893 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
16894
16895 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16896
16897 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
16898 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
16899 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
16900 to SVE_I.
16901
16902 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
16903
16904 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
16905 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
16906 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
16907
16908 2021-01-11 Martin Liska <mliska@suse.cz>
16909
16910 PR jit/98615
16911 * symtab-clones.h (clone_info::release): Release
16912 symtab::m_clones with ggc_delete as it's a GGC memory.
16913
16914 2021-01-11 Matthias Klose <doko@ubuntu.com>
16915
16916 * Makefile.in (LINK_PROGRESS): Show the link target.
16917
16918 2021-01-11 Richard Biener <rguenther@suse.de>
16919
16920 PR tree-optimization/91403
16921 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
16922 single-element interleaving group size at 4096 elements.
16923
16924 2021-01-11 Richard Biener <rguenther@suse.de>
16925
16926 PR tree-optimization/98526
16927 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
16928 of the actual reduction op for the regular case.
16929 (vectorizable_reduction): Cost the stmts
16930 vect_transform_reduction produces here.
16931
16932 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
16933
16934 * tree-ssa-forwprop.c (simplify_vector_constructor): For
16935 big-endian, use UNPACK[_FLOAT]_HI.
16936
16937 2021-01-11 Tamar Christina <tamar.christina@arm.com>
16938
16939 * tree-vect-slp-patterns.c (class complex_pattern,
16940 class complex_add_pattern): Add parameters to matches.
16941 (complex_add_pattern::build): Free memory.
16942 (complex_add_pattern::matches): Move validation end of match.
16943 (complex_add_pattern::recognize): Likewise.
16944
16945 2021-01-11 Tamar Christina <tamar.christina@arm.com>
16946
16947 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
16948
16949 2021-01-11 Tamar Christina <tamar.christina@arm.com>
16950
16951 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
16952
16953 2021-01-11 Jakub Jelinek <jakub@redhat.com>
16954
16955 PR tree-optimization/95867
16956 * tree-ssa-math-opts.h: New header.
16957 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
16958 (powi_as_mults): No longer static. Use build_one_cst instead of
16959 build_real. Formatting fix.
16960 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
16961 (attempt_builtin_powi): Handle multiplication reassociation without
16962 powi_fndecl using powi_as_mults.
16963 (reassociate_bb): For integral types don't require
16964 -funsafe-math-optimizations to call attempt_builtin_powi.
16965
16966 2021-01-11 Jakub Jelinek <jakub@redhat.com>
16967
16968 PR tree-optimization/95852
16969 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
16970 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
16971 allow in the bb any of the stmts in that vector, div_stmt and
16972 up to 3 cast stmts.
16973 (arith_cast_equal_p): New function.
16974 (arith_overflow_check_p): Add cast_stmt argument, handle signed
16975 multiply overflow checks.
16976 (match_arith_overflow): Adjust caller. Handle signed multiply
16977 overflow checks.
16978
16979 2021-01-11 Jakub Jelinek <jakub@redhat.com>
16980
16981 PR tree-optimization/95852
16982 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
16983 (uaddsub_overflow_check_p): Renamed to ...
16984 (arith_overflow_check_p): ... this. Handle also multiplication
16985 with overflow check.
16986 (match_uaddsub_overflow): Renamed to ...
16987 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
16988 also multiplication with overflow check. Adjust function comment.
16989 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
16990 match_arith_overflow also for MULT_EXPR.
16991
16992 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16993
16994 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
16995 __builtin_convertvector.
16996 (vmovl_s16): Likewise.
16997 (vmovl_s32): Likewise.
16998 (vmovl_u8): Likewise.
16999 (vmovl_u16): Likewise.
17000 (vmovl_u32): Likewise.
17001 (vmovn_s16): Likewise.
17002 (vmovn_s32): Likewise.
17003 (vmovn_s64): Likewise.
17004 (vmovn_u16): Likewise.
17005 (vmovn_u32): Likewise.
17006 (vmovn_u64): Likewise.
17007
17008 2021-01-11 Martin Liska <mliska@suse.cz>
17009
17010 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
17011 (if_chain::is_beneficial): Delete clusters
17012 (find_conditions): Make second argument of conditions_in_bbs a
17013 pointer so that we control over it's lifetime.
17014 (pass_if_to_switch::execute): Delete them.
17015
17016 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
17017
17018 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
17019 it isn't set.
17020
17021 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
17022
17023 * config/vax/vax.md (cc): Remove mode attribute.
17024 (subst_<cc>, subst_f<cc>): Rename to...
17025 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
17026 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
17027 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
17028 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
17029
17030 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
17031
17032 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
17033 `const_double_zero'.
17034
17035 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
17036
17037 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
17038 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
17039 operands.
17040
17041 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
17042
17043 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
17044 rtx.
17045 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
17046 with `const_double_zero'.
17047 * doc/rtl.texi (Constant Expression Types): Document it.
17048
17049 2021-01-09 Jakub Jelinek <jakub@redhat.com>
17050
17051 PR c++/98556
17052 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
17053 POINTER_DIFF_EXPR to be any integral type.
17054
17055 2021-01-09 Jakub Jelinek <jakub@redhat.com>
17056
17057 PR rtl-optimization/98603
17058 * function.c (instantiate_virtual_regs_in_insn): For asm goto
17059 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
17060 if any, set ASM_OPERANDS mode to VOIDmode and change
17061 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
17062
17063 2021-01-09 Alexandre Oliva <oliva@gnu.org>
17064
17065 PR debug/97714
17066 * final.c (notice_source_line): Narrow down the condition to
17067 skip a line-0 marker.
17068
17069 2021-01-08 Sergei Trofimovich <siarheit@google.com>
17070
17071 * ipa-modref.c (merge_call_side_effects): Fix
17072 linebreak split by reordering two print calls.
17073
17074 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
17075
17076 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
17077 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
17078 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
17079 consistency, fix constraint.
17080
17081 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
17082
17083 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
17084 callables instead of mask values.
17085 (struct target_flag_set_p): New predicate.
17086 (s390_cpu_cpp_builtins_internal): Define or undefine
17087 __LONG_DOUBLE_VX__ macro.
17088
17089 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
17090
17091 PR target/98482
17092 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
17093 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
17094 targets.
17095
17096 2021-01-08 Richard Biener <rguenther@suse.de>
17097
17098 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
17099
17100 2021-01-08 Richard Biener <rguenther@suse.de>
17101
17102 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
17103 (vect_build_slp_tree): On cache hit release the matched
17104 scalar stmts vector.
17105 * tree-vect-stmts.c (vectorizable_store): Properly free
17106 vec_oprnds before possibly gathering them again.
17107
17108 2021-01-08 Richard Biener <rguenther@suse.de>
17109
17110 PR tree-optimization/98544
17111 * tree-vect-slp.c (vect_optimize_slp): Always materialize
17112 permutes at a permute node.
17113
17114 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
17115
17116 PR target/98482
17117 * config/i386/i386.c (x86_function_profiler): Use R10 to call
17118 mcount in large model. Sorry for large model with PIC.
17119
17120 2021-01-08 Jakub Jelinek <jakub@redhat.com>
17121
17122 PR target/98585
17123 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
17124 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
17125 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
17126 TargetSave and initialize for variables with enum types.
17127 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
17128 mstack-protector-guard-symbol=): Add Save.
17129 * config/i386/i386-options.c (ix86_function_specific_save,
17130 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
17131 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
17132 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
17133 x_ix86_veclibabi_type.
17134
17135 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
17136
17137 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
17138 SVE_FULL_I to SVE_I.
17139 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
17140
17141 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
17142
17143 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
17144 SVE_FULL_I to SVE_I.
17145 (*cond_uxt<mode>_any): Likewise.
17146
17147 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17148
17149 * config/aarch64/iterators.md (Vwhalf): New iterator.
17150 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
17151 Rename to...
17152 (aarch64_<sur>adalp<mode>): ... This. Make more
17153 builtin-friendly.
17154 (<sur>sadv16qi): Adjust callsite of the above.
17155 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
17156 builtins.
17157 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
17158 builtins.
17159 (vpadal_s16): Likewise.
17160 (vpadal_u8): Likewise.
17161 (vpadal_u16): Likewise.
17162 (vpadalq_s8): Likewise.
17163 (vpadalq_s16): Likewise.
17164 (vpadalq_s32): Likewise.
17165 (vpadalq_u8): Likewise.
17166 (vpadalq_u16): Likewise.
17167 (vpadalq_u32): Likewise.
17168
17169 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17170
17171 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
17172 Rename to...
17173 (aarch64_<su>abd<mode>): ... This.
17174 (<sur>sadv16qi): Adjust callsite of the above.
17175 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
17176 builtins.
17177 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
17178 builtin.
17179 (vabd_s16): Likewise.
17180 (vabd_s32): Likewise.
17181 (vabd_u8): Likewise.
17182 (vabd_u16): Likewise.
17183 (vabd_u32): Likewise.
17184 (vabdq_s8): Likewise.
17185 (vabdq_s16): Likewise.
17186 (vabdq_s32): Likewise.
17187 (vabdq_u8): Likewise.
17188 (vabdq_u16): Likewise.
17189 (vabdq_u32): Likewise.
17190
17191 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17192
17193 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
17194 builtins.
17195 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
17196 (vaba_s16): Likewise.
17197 (vaba_s32): Likewise.
17198 (vaba_u8): Likewise.
17199 (vaba_u16): Likewise.
17200 (vaba_u32): Likewise.
17201 (vabaq_s8): Likewise.
17202 (vabaq_s16): Likewise.
17203 (vabaq_s32): Likewise.
17204 (vabaq_u8): Likewise.
17205 (vabaq_u16): Likewise.
17206 (vabaq_u32): Likewise.
17207
17208 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17209
17210 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
17211 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
17212 Change RTL pattern to match.
17213
17214 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
17215
17216 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
17217 * config/riscv/riscv-c.c (riscv-subset.h): New.
17218 (INCLUDE_STRING): Define.
17219 (riscv_cpu_cpp_builtins): Add new style architecture extension
17220 test macros.
17221 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
17222 (riscv_subset_list::end): New.
17223 (riscv_current_subset_list): New.
17224
17225 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
17226
17227 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
17228 Move to riscv-subset.h.
17229 (struct riscv_subset_t): Ditto.
17230 (class riscv_subset_list): Ditto.
17231 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
17232 from riscv-common.c.
17233 (struct riscv_subset_t): Ditto.
17234 (class riscv_subset_list): Ditto.
17235 * config/riscv/t-riscv ($(common_out_file)): Add file
17236 dependency.
17237
17238 2021-01-07 Jakub Jelinek <jakub@redhat.com>
17239
17240 PR target/98567
17241 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
17242 New define_insn patterns.
17243
17244 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
17245
17246 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
17247 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
17248 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
17249
17250 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
17251
17252 PR tree-optimization/98560
17253 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
17254 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
17255 argument 1.
17256 (vec_cond_direct): Likewise argument 2.
17257 (vec_condu_direct, vec_condeq_direct): Delete.
17258 (expand_vect_cond_optab_fn): Rename to...
17259 (expand_vec_cond_optab_fn): ...this, replacing old macro.
17260 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
17261 (expand_vect_cond_mask_optab_fn): Rename to...
17262 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
17263 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
17264 convert optab.
17265 (direct_vec_cond_optab_supported_p): Likewise.
17266 (direct_vec_condu_optab_supported_p): Delete.
17267 (direct_vec_condeq_optab_supported_p): Delete.
17268 * gimple-isel.cc: Include internal-fn.h.
17269 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
17270 before using it.
17271
17272 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
17273
17274 PR tree-optimization/98560
17275 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
17276 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
17277
17278 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
17279
17280 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
17281 rotate_insn and optab code attributes.
17282 Update all uses to merged code attribute.
17283 * config/i386/sse.md: Update all uses to merged code attribute.
17284 * config/i386/mmx.md: Update all uses to merged code attribute.
17285
17286 2021-01-07 Jakub Jelinek <jakub@redhat.com>
17287
17288 PR tree-optimization/98568
17289 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
17290 (bswap_replace): Use it.
17291
17292 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
17293
17294 PR rtl-optimization/97978
17295 * lra-int.h (lra_hard_reg_split_p): New external.
17296 * lra.c (lra_hard_reg_split_p): New global.
17297 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
17298 * lra-assigns.c (lra_assign): Don't check allocation correctness
17299 after hard reg splitting.
17300
17301 2021-01-06 Martin Sebor <msebor@redhat.com>
17302
17303 PR c++/98305
17304 * builtins.c (new_delete_mismatch_p): New overload.
17305 (new_delete_mismatch_p (tree, tree)): Call it.
17306
17307 2021-01-06 Alexandre Oliva <oliva@adacore.com>
17308
17309 * Makefile.in (T_GLIMITS_H): New.
17310 (stmp-int-hdrs): Depend on it, use it.
17311 * config/t-vxworks (T_GLIMITS_H): Override it.
17312 (vxw-glimits.h): New.
17313
17314 2021-01-06 Richard Biener <rguenther@suse.de>
17315
17316 PR tree-optimization/98513
17317 * value-range.cc (intersect_ranges): Compare the upper bounds
17318 for the expected relation.
17319
17320 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
17321
17322 Revert:
17323 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
17324
17325 * doc/standards.texi (HSAIL): Remove section.
17326
17327 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17328
17329 * configure: Re-generate.
17330
17331 2021-01-05 Jakub Jelinek <jakub@redhat.com>
17332
17333 * doc/invoke.texi (-std=c++20): Adjust for the publication of
17334 ISO 14882:2020 standard.
17335 * doc/standards.texi: Likewise.
17336
17337 2021-01-05 Jakub Jelinek <jakub@redhat.com>
17338
17339 PR tree-optimization/94802
17340 * expr.h (maybe_optimize_sub_cmp_0): Declare.
17341 * expr.c: Include tree-pretty-print.h and flags.h.
17342 (maybe_optimize_sub_cmp_0): New function.
17343 (do_store_flag): Use it.
17344 * cfgexpand.c (expand_gimple_cond): Likewise.
17345
17346 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
17347
17348 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
17349 * rtlanal.c (simple_regno_set): Tweak description to clarify the
17350 RMW condition.
17351
17352 2021-01-05 Richard Biener <rguenther@suse.de>
17353
17354 PR tree-optimization/98516
17355 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
17356 lanes when materializing on a VEC_PERM node.
17357 (vectorizable_slp_permutation): Dump the permute properly.
17358
17359 2021-01-05 Richard Biener <rguenther@suse.de>
17360
17361 * tree-vect-slp.c (vect_slp_region): Move debug counter
17362 to cover individual subgraphs.
17363
17364 2021-01-05 Richard Biener <rguenther@suse.de>
17365
17366 PR tree-optimization/98428
17367 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
17368 vector lane extracts for loop vectorization.
17369
17370 2021-01-05 Jakub Jelinek <jakub@redhat.com>
17371
17372 PR tree-optimization/98514
17373 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
17374 int64_t *.
17375 (operand_rank): Change type from hash_map<tree, long> to
17376 hash_map<tree, int64_t>.
17377 (phi_rank): Change return type from long to int64_t.
17378 (loop_carried_phi): Change block_rank variable type from long to
17379 int64_t.
17380 (propagate_rank): Change return type, rank parameter type and
17381 op_rank variable type from long to int64_t.
17382 (find_operand_rank): Change return type from long to int64_t
17383 and change slot variable type from long * to int64_t *.
17384 (insert_operand_rank): Change rank parameter type from long to
17385 int64_t.
17386 (get_rank): Change return type and rank variable type from long to
17387 int64_t. Use PRId64 instead of ld to print the rank.
17388 (init_reassoc): Change rank variable type from long to int64_t
17389 and adjust correspondingly bb_rank and operand_rank initialization.
17390
17391 2021-01-05 Jakub Jelinek <jakub@redhat.com>
17392
17393 PR tree-optimization/96928
17394 * tree-ssa-phiopt.c (xor_replacement): New function.
17395 (tree_ssa_phiopt_worker): Call it.
17396
17397 2021-01-05 Jakub Jelinek <jakub@redhat.com>
17398
17399 PR tree-optimization/96930
17400 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
17401 from narrower value which has the same type as 1 << B, perform
17402 the right shift on the narrower value followed by extension.
17403
17404 2021-01-05 Jakub Jelinek <jakub@redhat.com>
17405
17406 PR tree-optimization/96239
17407 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
17408 function.
17409 (get_status_for_store_merging): Don't return BB_INVALID for blocks
17410 with potential bswap optimizable CONSTRUCTORs.
17411 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
17412 if possible.
17413
17414 2021-01-05 Richard Biener <rguenther@suse.de>
17415
17416 PR tree-optimization/98381
17417 * tree.c (vector_element_bits): Properly compute bool vector
17418 element size.
17419 * tree-vect-loop.c (vectorizable_live_operation): Properly
17420 compute the last lane bit offset.
17421
17422 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
17423
17424 PR target/98522
17425 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
17426 Clear the top 64 bytes of the input XMM register.
17427 (sse_cvttps2pi): Ditto.
17428
17429 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
17430
17431 PR target/98521
17432 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
17433
17434 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
17435
17436 PR target/98495
17437 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
17438 short first.
17439
17440 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
17441
17442 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
17443 (umaddsidi4_split): Likewise.
17444
17445 2021-01-05 liuhongt <hongtao.liu@intel.com>
17446
17447 PR target/98461
17448 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
17449 define_insn_and_split for zero_extend of subreg HI of pmovskb
17450 result.
17451 (*sse2_pmovskb_zexthisi): Add new combine splitters for
17452 zero_extend of not of subreg HI of pmovskb result.
17453
17454 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
17455
17456 PR target/97269
17457 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
17458 nested in CONSTs.
17459 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
17460 convert_memory_address to convert symbolic immediates to ptr_mode
17461 before forcing them to memory.
17462
17463 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
17464
17465 PR rtl-optimization/97144
17466 * recog.c (constrain_operands): Initialize matching_operand
17467 for each alternative, rather than only doing it once.
17468
17469 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
17470
17471 PR rtl-optimization/98403
17472 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
17473 why we don't remove call clobbers.
17474 (function_info::apply_changes_to_insn): Don't attempt to add
17475 call clobbers here.
17476
17477 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
17478
17479 PR tree-optimization/98371
17480 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
17481 (vect_analyze_loop): If an epilogue loop appears to be cheaper
17482 than the main loop, re-analyze it as a main loop before adopting
17483 it as a main loop.
17484
17485 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17486
17487 PR c++/98316
17488 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
17489 * aclocal.m4, configure: Regenerate.
17490 * Makefile.in (NETLIBS): Define.
17491 (BACKEND): Remove $(CODYLIB).
17492
17493 2021-01-05 Jakub Jelinek <jakub@redhat.com>
17494
17495 PR rtl-optimization/98334
17496 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
17497 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
17498
17499 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
17500
17501 * tree-inline.c (expand_call_inline): Restore input_location.
17502 Return result from recursive call.
17503
17504 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
17505
17506 PR tree-optimization/95401
17507 * config/aarch64/aarch64-sve-builtins.cc
17508 (gimple_folder::load_store_cookie): Use bits rather than bytes
17509 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
17510 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
17511 * tree-vect-stmts.c (vectorizable_store): Likewise.
17512 (vectorizable_load): Likewise.
17513
17514 2021-01-04 Richard Biener <rguenther@suse.de>
17515
17516 PR tree-optimization/98308
17517 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
17518 SLP vectype.
17519
17520 2021-01-04 Jakub Jelinek <jakub@redhat.com>
17521
17522 PR tree-optimization/95771
17523 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
17524 with precision smaller than int's precision and types with precision
17525 twice as large as long long. Formatting fixes.
17526
17527 2021-01-04 Richard Biener <rguenther@suse.de>
17528
17529 PR tree-optimization/98464
17530 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
17531 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
17532 (process_bb): Adjust.
17533
17534 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
17535
17536 PR other/98437
17537 * doc/invoke.texi (-fsanitize=address): Fix wording describing
17538 clash with -fsanitize=hwaddress.
17539
17540 2021-01-04 Richard Biener <rguenther@suse.de>
17541
17542 PR tree-optimization/98282
17543 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
17544 invariants as VN_NARY.
17545
17546 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
17547
17548 PR target/89057
17549 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
17550 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
17551 to handle zero operands.
17552
17553 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
17554
17555 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
17556 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
17557 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
17558 [-32, 31].
17559
17560 2021-01-04 Richard Biener <rguenther@suse.de>
17561
17562 PR tree-optimization/98393
17563 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
17564 when hitting the limit.
17565
17566 2021-01-04 Richard Biener <rguenther@suse.de>
17567
17568 PR tree-optimization/98291
17569 * tree-vect-loop.c (vectorizable_reduction): Bypass
17570 associativity check for SLP reductions with VF 1.
17571
17572 2021-01-04 Jakub Jelinek <jakub@redhat.com>
17573
17574 PR tree-optimization/96782
17575 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
17576
17577 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
17578
17579 * collect-utils.c (collect_execute): Check dumppfx.
17580 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
17581 to collect_execute.
17582 (do_link): Add new parameter atsuffix.
17583 (main): Handle -dumpdir option. Skip one argument for
17584 -o, -isystem and -B options.
17585 * gcc.c (make_at_file): New helper function.
17586 (close_at_file): Use it.
17587
17588 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
17589
17590 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
17591 Amend handling for LD64_VERSION fallback defaults.
17592
17593 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
17594
17595 * config.gcc: Compute default version information
17596 from the configured target. Likewise defaults for
17597 ld64.
17598 * config/darwin10.h: Removed.
17599 * config/darwin12.h: Removed.
17600 * config/darwin9.h: Removed.
17601 * config/rs6000/darwin8.h: Removed.
17602
17603 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
17604
17605 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
17606
17607 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
17608
17609 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
17610 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
17611
17612 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
17613
17614 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
17615 here...
17616 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
17617
17618 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
17619
17620 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
17621 for the Darwin10 unwinder stub from here ...
17622 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
17623
17624 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
17625
17626 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
17627 (ASM_DEBUG_SPEC):Only define if the assembler supports
17628 stabs.
17629 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
17630 (DARWIN_PREFER_DWARF): Define.
17631 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
17632 (DARWIN_PREFER_DWARF): Likewise
17633 (DSYMUTIL_SPEC): Likewise.
17634 (COLLECT_RUN_DSYMUTIL): Likewise.
17635 (ASM_DEBUG_SPEC): Likewise.
17636 (ASM_DEBUG_OPTION_SPEC): Likewise.
17637
17638 2021-01-02 Jan Hubicka <jh@suse.cz>
17639
17640 * cfg.c (free_block): ggc_free bb.
17641
17642 2021-01-01 Jakub Jelinek <jakub@redhat.com>
17643
17644 * gcc.c (process_command): Update copyright notice dates.
17645 * gcov-dump.c (print_version): Ditto.
17646 * gcov.c (print_version): Ditto.
17647 * gcov-tool.c (print_version): Ditto.
17648 * gengtype.c (create_file): Ditto.
17649 * doc/cpp.texi: Bump @copying's copyright year.
17650 * doc/cppinternals.texi: Ditto.
17651 * doc/gcc.texi: Ditto.
17652 * doc/gccint.texi: Ditto.
17653 * doc/gcov.texi: Ditto.
17654 * doc/install.texi: Ditto.
17655 * doc/invoke.texi: Ditto.
17656
17657 2021-01-01 Jakub Jelinek <jakub@redhat.com>
17658
17659 * ChangeLog-2020: Rotate ChangeLog. New file.
17660
17661 \f
17662 Copyright (C) 2021 Free Software Foundation, Inc.
17663
17664 Copying and distribution of this file, with or without modification,
17665 are permitted in any medium without royalty provided the copyright
17666 notice and this notice are preserved.